Skip to content

Commit

Permalink
Fix linting on colours
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Oct 9, 2023
1 parent 5c1400c commit 3c7feef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
"selector-class-pattern": null,
"plugin/selector-bem-pattern": {
"preset": "bem"
}
},
"color-function-notation": [
"legacy",
{
"ignore": [
"with-var-inside"
]
}
]
}
}
8 changes: 5 additions & 3 deletions src/nationalarchives/variables/_colour.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ $colour-palette-brand: (

$dark-grey: #26262a;
$base-font: #343338 !default;
$link-colour: #1d70ab !default;
$link-colour-visited: #4c2c92 !default;

/*
=========================================
Expand All @@ -44,10 +46,10 @@ $colour-palette-default: (
"font-dark": brand-colour("black"),
"font-light": rgba($base-font, 0.7),
"icon-light": rgba($base-font, 0.45),
"link": #1d70ab,
"link-visited": #4c2c92,
"link": $link-colour,
"link-visited": $link-colour-visited,
"focus-outline": brand-colour("blue"),
"keyline": #ccc,
"keyline": rgba($dark-grey, 0.25),
"keyline-dark": $dark-grey,
"button-text": brand-colour("white"),
"button-background": brand-colour("black"),
Expand Down

0 comments on commit 3c7feef

Please sign in to comment.