Skip to content

Commit

Permalink
Fix docs for importing compact tokens in Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Dec 18, 2024
1 parent 288f841 commit bb1d0b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions proprietary/tokens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ As they are already prefixed, the namespace that Sass would assign isn’t neces
@use "@amsterdam/design-system-tokens/dist/index.scss" as *;
```

Import the compact tokens if you need them.
Sass will override spacious values automatically.
Import the compact tokens if needed.
Note that Sass doesn't allow importing them alongside the default set due to naming conflicts.
Address these tokens through the `compact` namespace and do not use the spacious tokens they replace.

```sass
@use "@amsterdam/design-system-tokens/dist/compact.scss" as *;
@use "@amsterdam/design-system-tokens/dist/compact.scss";
```

## Usage in JavaScript
Expand Down

0 comments on commit bb1d0b8

Please sign in to comment.