Skip to content

Commit

Permalink
Merge pull request #4240 from grommet/token-docs-fix
Browse files Browse the repository at this point in the history
Update tokens in code docs
  • Loading branch information
taysea authored Oct 31, 2024
2 parents 9e81683 + d27d155 commit b6a4cb9
Show file tree
Hide file tree
Showing 2 changed files with 479 additions and 472 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ To use hpe-design-tokens as CSS variables, first import the CSS files into your

```
// For example, main.jsx
import 'hpe-design-tokens/css/base.css';
import 'hpe-design-tokens/css/color.light.css';
import 'hpe-design-tokens/css/color.dark.css';
import 'hpe-design-tokens/css/global.css';
import 'hpe-design-tokens/css/components.css';
import 'hpe-design-tokens/css/dimension.large.css';
import 'hpe-design-tokens/css/dimension.small.css';
import 'hpe-design-tokens/dist/css/base.css';
import 'hpe-design-tokens/dist/css/color.light.css';
import 'hpe-design-tokens/dist/css/color.dark.css';
import 'hpe-design-tokens/dist/css/global.css';
import 'hpe-design-tokens/dist/css/components.css';
import 'hpe-design-tokens/dist/css/dimension.large.css';
import 'hpe-design-tokens/dist/css/dimension.small.css';
```

Then, apply the token directly to a CSS property, or create your own CSS variable that can be modified across states.
Expand Down
Loading

0 comments on commit b6a4cb9

Please sign in to comment.