Skip to content

Commit

Permalink
Use colour maps in scss
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Aug 4, 2024
1 parent eaf0850 commit c82401d
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions _extensions/aagi/aagi.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@

// define AAGI colours

$aagi-black: #414042;
$aagi-blue: #648fd2;
$aagi-bright-green: #b6d438;
$aagi-green: #54921e;
$aagi-grey: #f2f2f2;
$aagi-orange: #ec8525;
$aagi-teal: #00808b;
$aagi-yellow: #ffbc42;
$colors (
"aagi-black": #414042,
"aagi-blue": #648fd2,
"aagi-bright-green": #b6d438,
"aagi-green": #54921e,
"aagi-grey": #f2f2f2,
"aagi-orange": #ec8525,
"aagi-teal": #00808b,
"aagi-yellow": #ffbc42,
)

// functions
// From Emil Hvitfeldt, https://emilhvitfeldt.com/post/slidecraft-scss-uses/
@function theme-color($color) {
@return map-get($colors, $color);
}
//

// colours

Expand Down Expand Up @@ -62,10 +71,12 @@ $font-family-monospace: "Fira Code";
z-index: -99 !important; // Sets the footer div further down the z-index
}

.reveal table, th, td {
.reveal table,
th,
td {
border: 2px solid #ffffff;
background: $aagi-grey;
color: $aagi-black
color: $aagi-black;
}

.reveal table th {
Expand Down

0 comments on commit c82401d

Please sign in to comment.