Skip to content

Commit

Permalink
Tweak light font colour for better contrast (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Aug 29, 2024
1 parent c11b09f commit 170306d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/nationalarchives/variables/_colour.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ $colour-palette-dark: map.merge(
"background-tint": #323334,
"font-base": brand-colour("white", 0.95),
"font-dark": brand-colour("white"),
"font-light": brand-colour("white", 0.51),
"font-light": brand-colour("white", 0.65),
"icon-light": brand-colour("white", 0.35),
"link": brand-colour("blue"),
"link-visited": #a8f,
Expand Down Expand Up @@ -150,15 +150,17 @@ $colour-palette-high-contrast: map.merge(
"background-tint": #ddd,
"font-base": brand-colour("black"),
"font-light": brand-colour("black"),
"icon-light": brand-colour("black", 0.75),
"icon-light": brand-colour("black", 0.8),
"link": #34d,
"link-visited": #848,
"focus-outline": brand-colour("orange"),
"keyline": brand-colour("black"),
"keyline-dark": brand-colour("black"),
"contrast-background": brand-colour("black"),
"contrast-link": brand-colour("blue"),
"contrast-font-light": brand-colour("white", 0.8),
"contrast-link-visited": #a8f,
"accent-font-light": brand-colour("black", 0.8),
)
) !default;

Expand All @@ -173,12 +175,14 @@ $colour-palette-high-contrast-dark: map.merge(
"background": #111,
"font-base": brand-colour("white"),
"font-light": brand-colour("white"),
"icon-light": brand-colour("white", 0.75),
"icon-light": brand-colour("white", 0.8),
"keyline": brand-colour("white"),
"form-error-border": #ff6b6b,
"form-error-text": #ff6b6b,
"contrast-background": brand-colour("black"),
"contrast-link": brand-colour("blue"),
"contrast-font-light": brand-colour("white", 0.8),
"contrast-link-visited": #a8f,
"accent-font-light": brand-colour("black", 0.8),
)
) !default;

0 comments on commit 170306d

Please sign in to comment.