Skip to content

Commit

Permalink
Add darkside tokens to stylelint rule value-no-unknown-custom-propert…
Browse files Browse the repository at this point in the history
…ies (#3297)
  • Loading branch information
HalvorHaugan authored Oct 30, 2024
1 parent 1e2b1d8 commit e88d328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions @navikt/core/css/darkside/primitives/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable csstools/value-no-unknown-custom-properties */
@layer aksel.layout.component, aksel.layout.base;

@import "./base.darkside.css" layer(aksel.layout.base);
Expand All @@ -9,7 +8,7 @@
@import "./stack.darkside.css" layer(aksel.layout.component);
@import "./responsive.darkside.css" layer(aksel.layout.component);

/* Custom override to avoid hacing to edit react-syntax in Primtives */
/* Custom override to avoid having to edit react-syntax in Primtives */
@layer aksel.layout {
:root {
--a-spacing-1-alt: var(--ax-spacing-1-alt);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@
true,
{
"importFrom": [
"@navikt/core/tokens/dist/tokens.css"
"@navikt/core/tokens/dist/tokens.css",
"@navikt/core/tokens/dist/darkside/tokens.css"
]
}
]
Expand Down

0 comments on commit e88d328

Please sign in to comment.