Skip to content

Commit

Permalink
Use new Sass @use rule in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Dec 17, 2024
1 parent 04ff755 commit a96f3d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proprietary/tokens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,17 @@ Note that redefining the value of a token is a much better approach than redecla
## Usage in Sass

The tokens can be imported as Sass variables as well.
As they are already prefixed, the namespace that Sass would assign isn’t necessary.

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

Import the compact tokens if you need them.
Sass will override spacious values automatically.

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

## Usage in JavaScript
Expand Down

0 comments on commit a96f3d2

Please sign in to comment.