You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/1.guide/3.API.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,14 @@ description: Discover how to create and use your tokens with @nuxtjs/design-toke
5
5
6
6
`tokens` are a [Design Tokens format](https://design-tokens.github.io/community-group/format/) compatible object definition that gets processed by [Style Dictionary](https://amzn.github.io/style-dictionary).
7
7
8
-
This allows the options defined by the theme author in his `designTokens.tokens` key to be type-safe for the theme user that will configure his theme via the same key or a `tokens.config` file.
8
+
This allows the options defined by the theme author in his `style.tokens` key to be type-safe for the theme user that will configure his theme via the same key or a `tokens.config` file.
9
9
10
10
### Defining theme tokens
11
11
12
12
There is two ways to define theme tokens:
13
13
14
-
- Via the `designTokens.tokens` key in the `nuxt.config` file.
15
-
- Via the `tokens.config.{js|ts}` file at the root of your project.
14
+
- Via the `style.tokens` key in the `nuxt.config` file.
15
+
- Via the `style.config.{js|ts}` file at the root of your project.
16
16
17
17
Both of these options will be merged in the end.
18
18
@@ -21,7 +21,7 @@ These two ways will both work for theme authors and theme users as they will get
0 commit comments