@sanity/ui 3.0.0-static.7 → 3.0.0-static.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +14 -14
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-es/_visual-editing.mjs +14 -14
  4. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/css.d.mts +196 -184
  7. package/dist/css.d.ts +196 -184
  8. package/dist/css.js +293 -238
  9. package/dist/css.js.map +1 -1
  10. package/dist/css.mjs +293 -238
  11. package/dist/css.mjs.map +1 -1
  12. package/dist/sanity-theme.css +1 -1
  13. package/dist/system.css +1105 -904
  14. package/dist/theme.d.mts +84 -76
  15. package/dist/theme.d.ts +84 -76
  16. package/dist/theme.js +147 -123
  17. package/dist/theme.js.map +1 -1
  18. package/dist/theme.mjs +147 -123
  19. package/dist/theme.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/src/css/compile/compileTheme_v3.ts +46 -37
  22. package/src/css/primitives/badge/badge.style.ts +1 -1
  23. package/src/css/primitives/button/button.style.ts +20 -0
  24. package/src/css/primitives/card/card.style.ts +47 -41
  25. package/src/css/primitives/kbd/kbd.style.ts +1 -1
  26. package/src/css/primitives/text/text.style.ts +11 -3
  27. package/src/css/types.ts +200 -188
  28. package/src/css/varNames.ts +86 -76
  29. package/src/css/vars.ts +85 -76
  30. package/src/theme/v3/color/buildColor_v3.ts +43 -38
  31. package/src/theme/v3/color/card.ts +43 -38
  32. package/src/theme/v3/color/color.ts +42 -38
  33. package/src/theme/v3/defaults.ts +62 -46
  34. package/src/theme/v3/resolveTokens.ts +43 -38
  35. package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
  36. package/src/ui/components/autocomplete/__workshop__/async.tsx +0 -1
  37. package/src/ui/primitives/box/box.tsx +1 -1
package/src/css/vars.ts CHANGED
@@ -90,6 +90,49 @@ const colorVars: Vars['color'] = {
90
90
  backdrop: `var(${varNames.color.backdrop})`,
91
91
  bg: `var(${varNames.color.bg})`,
92
92
  border: `var(${varNames.color.border})`,
93
+ code: {
94
+ bg: `var(${varNames.color.code.bg})`,
95
+ fg: `var(${varNames.color.code.fg})`,
96
+
97
+ token: {
98
+ atrule: `var(${varNames.color.code.token.atrule})`,
99
+ attrName: `var(${varNames.color.code.token.attrName})`,
100
+ attrValue: `var(${varNames.color.code.token.attrValue})`,
101
+ attribute: `var(${varNames.color.code.token.attribute})`,
102
+ boolean: `var(${varNames.color.code.token.boolean})`,
103
+ builtin: `var(${varNames.color.code.token.builtin})`,
104
+ cdata: `var(${varNames.color.code.token.cdata})`,
105
+ char: `var(${varNames.color.code.token.char})`,
106
+ class: `var(${varNames.color.code.token.class})`,
107
+ className: `var(${varNames.color.code.token.className})`,
108
+ comment: `var(${varNames.color.code.token.comment})`,
109
+ constant: `var(${varNames.color.code.token.constant})`,
110
+ deleted: `var(${varNames.color.code.token.deleted})`,
111
+ doctype: `var(${varNames.color.code.token.doctype})`,
112
+ entity: `var(${varNames.color.code.token.entity})`,
113
+ function: `var(${varNames.color.code.token.function})`,
114
+ hexcode: `var(${varNames.color.code.token.hexcode})`,
115
+ id: `var(${varNames.color.code.token.id})`,
116
+ important: `var(${varNames.color.code.token.important})`,
117
+ inserted: `var(${varNames.color.code.token.inserted})`,
118
+ keyword: `var(${varNames.color.code.token.keyword})`,
119
+ number: `var(${varNames.color.code.token.number})`,
120
+ operator: `var(${varNames.color.code.token.operator})`,
121
+ prolog: `var(${varNames.color.code.token.prolog})`,
122
+ property: `var(${varNames.color.code.token.property})`,
123
+ pseudoClass: `var(${varNames.color.code.token.pseudoClass})`,
124
+ pseudoElement: `var(${varNames.color.code.token.pseudoElement})`,
125
+ punctuation: `var(${varNames.color.code.token.punctuation})`,
126
+ regex: `var(${varNames.color.code.token.regex})`,
127
+ selector: `var(${varNames.color.code.token.selector})`,
128
+ string: `var(${varNames.color.code.token.string})`,
129
+ symbol: `var(${varNames.color.code.token.symbol})`,
130
+ tag: `var(${varNames.color.code.token.tag})`,
131
+ unit: `var(${varNames.color.code.token.unit})`,
132
+ url: `var(${varNames.color.code.token.url})`,
133
+ variable: `var(${varNames.color.code.token.variable})`,
134
+ },
135
+ },
93
136
  fg: `var(${varNames.color.fg})`,
94
137
  focusRing: `var(${varNames.color.focusRing})`,
95
138
  input: {
@@ -115,44 +158,6 @@ const colorVars: Vars['color'] = {
115
158
  from: `var(${varNames.color.skeleton.from})`,
116
159
  to: `var(${varNames.color.skeleton.to})`,
117
160
  },
118
- token: {
119
- atrule: `var(${varNames.color.token.atrule})`,
120
- attrName: `var(${varNames.color.token.attrName})`,
121
- attrValue: `var(${varNames.color.token.attrValue})`,
122
- attribute: `var(${varNames.color.token.attribute})`,
123
- boolean: `var(${varNames.color.token.boolean})`,
124
- builtin: `var(${varNames.color.token.builtin})`,
125
- cdata: `var(${varNames.color.token.cdata})`,
126
- char: `var(${varNames.color.token.char})`,
127
- class: `var(${varNames.color.token.class})`,
128
- className: `var(${varNames.color.token.className})`,
129
- comment: `var(${varNames.color.token.comment})`,
130
- constant: `var(${varNames.color.token.constant})`,
131
- deleted: `var(${varNames.color.token.deleted})`,
132
- doctype: `var(${varNames.color.token.doctype})`,
133
- entity: `var(${varNames.color.token.entity})`,
134
- function: `var(${varNames.color.token.function})`,
135
- hexcode: `var(${varNames.color.token.hexcode})`,
136
- id: `var(${varNames.color.token.id})`,
137
- important: `var(${varNames.color.token.important})`,
138
- inserted: `var(${varNames.color.token.inserted})`,
139
- keyword: `var(${varNames.color.token.keyword})`,
140
- number: `var(${varNames.color.token.number})`,
141
- operator: `var(${varNames.color.token.operator})`,
142
- prolog: `var(${varNames.color.token.prolog})`,
143
- property: `var(${varNames.color.token.property})`,
144
- pseudoClass: `var(${varNames.color.token.pseudoClass})`,
145
- pseudoElement: `var(${varNames.color.token.pseudoElement})`,
146
- punctuation: `var(${varNames.color.token.punctuation})`,
147
- regex: `var(${varNames.color.token.regex})`,
148
- selector: `var(${varNames.color.token.selector})`,
149
- string: `var(${varNames.color.token.string})`,
150
- symbol: `var(${varNames.color.token.symbol})`,
151
- tag: `var(${varNames.color.token.tag})`,
152
- unit: `var(${varNames.color.token.unit})`,
153
- url: `var(${varNames.color.token.url})`,
154
- variable: `var(${varNames.color.token.variable})`,
155
- },
156
161
 
157
162
  solid: buildColorVariantVars({variant: 'solid'}),
158
163
  tinted: buildColorVariantVars({variant: 'tinted'}),
@@ -319,6 +324,48 @@ function buildColorCardVars(props: {scheme?: Scheme; tone: CardTone}): ColorCard
319
324
  }, {} as ColorAvatarVars),
320
325
  },
321
326
  backdrop: `var(${prefix.backdrop})`,
327
+ code: {
328
+ bg: `var(${prefix.code.bg})`,
329
+ fg: `var(${prefix.code.fg})`,
330
+ token: {
331
+ atrule: `var(${prefix.code.token.atrule})`,
332
+ attrName: `var(${prefix.code.token.attrName})`,
333
+ attrValue: `var(${prefix.code.token.attrValue})`,
334
+ attribute: `var(${prefix.code.token.attribute})`,
335
+ boolean: `var(${prefix.code.token.boolean})`,
336
+ builtin: `var(${prefix.code.token.builtin})`,
337
+ cdata: `var(${prefix.code.token.cdata})`,
338
+ char: `var(${prefix.code.token.char})`,
339
+ class: `var(${prefix.code.token.class})`,
340
+ className: `var(${prefix.code.token.className})`,
341
+ comment: `var(${prefix.code.token.comment})`,
342
+ constant: `var(${prefix.code.token.constant})`,
343
+ deleted: `var(${prefix.code.token.deleted})`,
344
+ doctype: `var(${prefix.code.token.doctype})`,
345
+ entity: `var(${prefix.code.token.entity})`,
346
+ function: `var(${prefix.code.token.function})`,
347
+ hexcode: `var(${prefix.code.token.hexcode})`,
348
+ id: `var(${prefix.code.token.id})`,
349
+ important: `var(${prefix.code.token.important})`,
350
+ inserted: `var(${prefix.code.token.inserted})`,
351
+ keyword: `var(${prefix.code.token.keyword})`,
352
+ number: `var(${prefix.code.token.number})`,
353
+ operator: `var(${prefix.code.token.operator})`,
354
+ prolog: `var(${prefix.code.token.prolog})`,
355
+ property: `var(${prefix.code.token.property})`,
356
+ pseudoClass: `var(${prefix.code.token.pseudoClass})`,
357
+ pseudoElement: `var(${prefix.code.token.pseudoElement})`,
358
+ punctuation: `var(${prefix.code.token.punctuation})`,
359
+ regex: `var(${prefix.code.token.regex})`,
360
+ selector: `var(${prefix.code.token.selector})`,
361
+ string: `var(${prefix.code.token.string})`,
362
+ symbol: `var(${prefix.code.token.symbol})`,
363
+ tag: `var(${prefix.code.token.tag})`,
364
+ unit: `var(${prefix.code.token.unit})`,
365
+ url: `var(${prefix.code.token.url})`,
366
+ variable: `var(${prefix.code.token.variable})`,
367
+ },
368
+ },
322
369
  focusRing: `var(${prefix.focusRing})`,
323
370
  link: {
324
371
  fg: `var(${prefix.link.fg})`,
@@ -337,44 +384,6 @@ function buildColorCardVars(props: {scheme?: Scheme; tone: CardTone}): ColorCard
337
384
  from: `var(${prefix.skeleton.from})`,
338
385
  to: `var(${prefix.skeleton.to})`,
339
386
  },
340
- token: {
341
- atrule: `var(${prefix.token.atrule})`,
342
- attrName: `var(${prefix.token.attrName})`,
343
- attrValue: `var(${prefix.token.attrValue})`,
344
- attribute: `var(${prefix.token.attribute})`,
345
- boolean: `var(${prefix.token.boolean})`,
346
- builtin: `var(${prefix.token.builtin})`,
347
- cdata: `var(${prefix.token.cdata})`,
348
- char: `var(${prefix.token.char})`,
349
- class: `var(${prefix.token.class})`,
350
- className: `var(${prefix.token.className})`,
351
- comment: `var(${prefix.token.comment})`,
352
- constant: `var(${prefix.token.constant})`,
353
- deleted: `var(${prefix.token.deleted})`,
354
- doctype: `var(${prefix.token.doctype})`,
355
- entity: `var(${prefix.token.entity})`,
356
- function: `var(${prefix.token.function})`,
357
- hexcode: `var(${prefix.token.hexcode})`,
358
- id: `var(${prefix.token.id})`,
359
- important: `var(${prefix.token.important})`,
360
- inserted: `var(${prefix.token.inserted})`,
361
- keyword: `var(${prefix.token.keyword})`,
362
- number: `var(${prefix.token.number})`,
363
- operator: `var(${prefix.token.operator})`,
364
- prolog: `var(${prefix.token.prolog})`,
365
- property: `var(${prefix.token.property})`,
366
- pseudoClass: `var(${prefix.token.pseudoClass})`,
367
- pseudoElement: `var(${prefix.token.pseudoElement})`,
368
- punctuation: `var(${prefix.token.punctuation})`,
369
- regex: `var(${prefix.token.regex})`,
370
- selector: `var(${prefix.token.selector})`,
371
- string: `var(${prefix.token.string})`,
372
- symbol: `var(${prefix.token.symbol})`,
373
- tag: `var(${prefix.token.tag})`,
374
- unit: `var(${prefix.token.unit})`,
375
- url: `var(${prefix.token.url})`,
376
- variable: `var(${prefix.token.variable})`,
377
- },
378
387
 
379
388
  solid: buildColorVariantVars({scheme, tone, variant: 'solid'}),
380
389
  tinted: buildColorVariantVars({scheme, tone, variant: 'tinted'}),
@@ -72,6 +72,48 @@ function buildColorCard_v3(
72
72
  return acc
73
73
  }, {} as ThemeColorAvatar_v2),
74
74
  backdrop: renderColor(tokens.backdrop, context),
75
+ code: {
76
+ bg: renderColor(tokens.code.bg, context),
77
+ fg: renderColor(tokens.code.fg, context),
78
+ token: {
79
+ atrule: renderColor(tokens.code.token.atrule, context),
80
+ attrName: renderColor(tokens.code.token.attrName, context),
81
+ attrValue: renderColor(tokens.code.token.attrValue, context),
82
+ attribute: renderColor(tokens.code.token.attribute, context),
83
+ boolean: renderColor(tokens.code.token.boolean, context),
84
+ builtin: renderColor(tokens.code.token.builtin, context),
85
+ cdata: renderColor(tokens.code.token.cdata, context),
86
+ char: renderColor(tokens.code.token.char, context),
87
+ class: renderColor(tokens.code.token.class, context),
88
+ className: renderColor(tokens.code.token.className, context),
89
+ comment: renderColor(tokens.code.token.comment, context),
90
+ constant: renderColor(tokens.code.token.constant, context),
91
+ deleted: renderColor(tokens.code.token.deleted, context),
92
+ doctype: renderColor(tokens.code.token.doctype, context),
93
+ entity: renderColor(tokens.code.token.entity, context),
94
+ function: renderColor(tokens.code.token.function, context),
95
+ hexcode: renderColor(tokens.code.token.hexcode, context),
96
+ id: renderColor(tokens.code.token.id, context),
97
+ important: renderColor(tokens.code.token.important, context),
98
+ inserted: renderColor(tokens.code.token.inserted, context),
99
+ keyword: renderColor(tokens.code.token.keyword, context),
100
+ number: renderColor(tokens.code.token.number, context),
101
+ operator: renderColor(tokens.code.token.operator, context),
102
+ prolog: renderColor(tokens.code.token.prolog, context),
103
+ property: renderColor(tokens.code.token.property, context),
104
+ pseudoClass: renderColor(tokens.code.token.pseudoClass, context),
105
+ pseudoElement: renderColor(tokens.code.token.pseudoElement, context),
106
+ punctuation: renderColor(tokens.code.token.punctuation, context),
107
+ regex: renderColor(tokens.code.token.regex, context),
108
+ selector: renderColor(tokens.code.token.selector, context),
109
+ string: renderColor(tokens.code.token.string, context),
110
+ symbol: renderColor(tokens.code.token.symbol, context),
111
+ tag: renderColor(tokens.code.token.tag, context),
112
+ unit: renderColor(tokens.code.token.unit, context),
113
+ url: renderColor(tokens.code.token.url, context),
114
+ variable: renderColor(tokens.code.token.variable, context),
115
+ },
116
+ },
75
117
  focusRing: renderColor(tokens.focusRing, context),
76
118
  shadow: {
77
119
  outline: renderColor(tokens.shadow.outline, context),
@@ -83,44 +125,7 @@ function buildColorCard_v3(
83
125
  from: renderColor(tokens.skeleton.from, context),
84
126
  to: renderColor(tokens.skeleton.to, context),
85
127
  },
86
- token: {
87
- atrule: renderColor(tokens.token.atrule, context),
88
- attrName: renderColor(tokens.token.attrName, context),
89
- attrValue: renderColor(tokens.token.attrValue, context),
90
- attribute: renderColor(tokens.token.attribute, context),
91
- boolean: renderColor(tokens.token.boolean, context),
92
- builtin: renderColor(tokens.token.builtin, context),
93
- cdata: renderColor(tokens.token.cdata, context),
94
- char: renderColor(tokens.token.char, context),
95
- class: renderColor(tokens.token.class, context),
96
- className: renderColor(tokens.token.className, context),
97
- comment: renderColor(tokens.token.comment, context),
98
- constant: renderColor(tokens.token.constant, context),
99
- deleted: renderColor(tokens.token.deleted, context),
100
- doctype: renderColor(tokens.token.doctype, context),
101
- entity: renderColor(tokens.token.entity, context),
102
- function: renderColor(tokens.token.function, context),
103
- hexcode: renderColor(tokens.token.hexcode, context),
104
- id: renderColor(tokens.token.id, context),
105
- important: renderColor(tokens.token.important, context),
106
- inserted: renderColor(tokens.token.inserted, context),
107
- keyword: renderColor(tokens.token.keyword, context),
108
- number: renderColor(tokens.token.number, context),
109
- operator: renderColor(tokens.token.operator, context),
110
- prolog: renderColor(tokens.token.prolog, context),
111
- property: renderColor(tokens.token.property, context),
112
- pseudoClass: renderColor(tokens.token.pseudoClass, context),
113
- pseudoElement: renderColor(tokens.token.pseudoElement, context),
114
- punctuation: renderColor(tokens.token.punctuation, context),
115
- regex: renderColor(tokens.token.regex, context),
116
- selector: renderColor(tokens.token.selector, context),
117
- string: renderColor(tokens.token.string, context),
118
- symbol: renderColor(tokens.token.symbol, context),
119
- tag: renderColor(tokens.token.tag, context),
120
- unit: renderColor(tokens.token.unit, context),
121
- url: renderColor(tokens.token.url, context),
122
- variable: renderColor(tokens.token.variable, context),
123
- },
128
+
124
129
  variant: {
125
130
  solid: {
126
131
  ...THEME_COLOR_STATE_TONES.reduce(
@@ -15,6 +15,48 @@ export interface CardColorTokens {
15
15
  }
16
16
  >
17
17
  backdrop: [ColorToken, ColorToken]
18
+ code: {
19
+ bg: [ColorToken, ColorToken]
20
+ fg: [ColorToken, ColorToken]
21
+ token: {
22
+ atrule: [ColorToken, ColorToken]
23
+ attrName: [ColorToken, ColorToken]
24
+ attrValue: [ColorToken, ColorToken]
25
+ attribute: [ColorToken, ColorToken]
26
+ boolean: [ColorToken, ColorToken]
27
+ builtin: [ColorToken, ColorToken]
28
+ cdata: [ColorToken, ColorToken]
29
+ char: [ColorToken, ColorToken]
30
+ class: [ColorToken, ColorToken]
31
+ className: [ColorToken, ColorToken]
32
+ comment: [ColorToken, ColorToken]
33
+ constant: [ColorToken, ColorToken]
34
+ deleted: [ColorToken, ColorToken]
35
+ doctype: [ColorToken, ColorToken]
36
+ entity: [ColorToken, ColorToken]
37
+ function: [ColorToken, ColorToken]
38
+ hexcode: [ColorToken, ColorToken]
39
+ id: [ColorToken, ColorToken]
40
+ important: [ColorToken, ColorToken]
41
+ inserted: [ColorToken, ColorToken]
42
+ keyword: [ColorToken, ColorToken]
43
+ number: [ColorToken, ColorToken]
44
+ operator: [ColorToken, ColorToken]
45
+ prolog: [ColorToken, ColorToken]
46
+ property: [ColorToken, ColorToken]
47
+ pseudoClass: [ColorToken, ColorToken]
48
+ pseudoElement: [ColorToken, ColorToken]
49
+ punctuation: [ColorToken, ColorToken]
50
+ regex: [ColorToken, ColorToken]
51
+ selector: [ColorToken, ColorToken]
52
+ string: [ColorToken, ColorToken]
53
+ symbol: [ColorToken, ColorToken]
54
+ tag: [ColorToken, ColorToken]
55
+ unit: [ColorToken, ColorToken]
56
+ url: [ColorToken, ColorToken]
57
+ variable: [ColorToken, ColorToken]
58
+ }
59
+ }
18
60
  focusRing: [ColorToken, ColorToken]
19
61
  link: {
20
62
  fg: [ColorToken, ColorToken]
@@ -29,44 +71,7 @@ export interface CardColorTokens {
29
71
  from: [ColorToken, ColorToken]
30
72
  to: [ColorToken, ColorToken]
31
73
  }
32
- token: {
33
- atrule: [ColorToken, ColorToken]
34
- attrName: [ColorToken, ColorToken]
35
- attrValue: [ColorToken, ColorToken]
36
- attribute: [ColorToken, ColorToken]
37
- boolean: [ColorToken, ColorToken]
38
- builtin: [ColorToken, ColorToken]
39
- cdata: [ColorToken, ColorToken]
40
- char: [ColorToken, ColorToken]
41
- class: [ColorToken, ColorToken]
42
- className: [ColorToken, ColorToken]
43
- comment: [ColorToken, ColorToken]
44
- constant: [ColorToken, ColorToken]
45
- deleted: [ColorToken, ColorToken]
46
- doctype: [ColorToken, ColorToken]
47
- entity: [ColorToken, ColorToken]
48
- function: [ColorToken, ColorToken]
49
- hexcode: [ColorToken, ColorToken]
50
- id: [ColorToken, ColorToken]
51
- important: [ColorToken, ColorToken]
52
- inserted: [ColorToken, ColorToken]
53
- keyword: [ColorToken, ColorToken]
54
- number: [ColorToken, ColorToken]
55
- operator: [ColorToken, ColorToken]
56
- prolog: [ColorToken, ColorToken]
57
- property: [ColorToken, ColorToken]
58
- pseudoClass: [ColorToken, ColorToken]
59
- pseudoElement: [ColorToken, ColorToken]
60
- punctuation: [ColorToken, ColorToken]
61
- regex: [ColorToken, ColorToken]
62
- selector: [ColorToken, ColorToken]
63
- string: [ColorToken, ColorToken]
64
- symbol: [ColorToken, ColorToken]
65
- tag: [ColorToken, ColorToken]
66
- unit: [ColorToken, ColorToken]
67
- url: [ColorToken, ColorToken]
68
- variable: [ColorToken, ColorToken]
69
- }
74
+
70
75
  variant: {
71
76
  solid: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
72
77
  tinted: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
@@ -34,6 +34,48 @@ export interface ThemeColorCard_v3 {
34
34
  _hue: Hue
35
35
  avatar: ThemeColorAvatar_v2
36
36
  backdrop: string
37
+ code: {
38
+ bg: string
39
+ fg: string
40
+ token: {
41
+ atrule: string
42
+ attrName: string
43
+ attrValue: string
44
+ attribute: string
45
+ boolean: string
46
+ builtin: string
47
+ cdata: string
48
+ char: string
49
+ class: string
50
+ className: string
51
+ comment: string
52
+ constant: string
53
+ deleted: string
54
+ doctype: string
55
+ entity: string
56
+ function: string
57
+ hexcode: string
58
+ id: string
59
+ important: string
60
+ inserted: string
61
+ keyword: string
62
+ number: string
63
+ operator: string
64
+ prolog: string
65
+ property: string
66
+ pseudoClass: string
67
+ pseudoElement: string
68
+ punctuation: string
69
+ regex: string
70
+ selector: string
71
+ string: string
72
+ symbol: string
73
+ tag: string
74
+ unit: string
75
+ url: string
76
+ variable: string
77
+ }
78
+ }
37
79
  focusRing: string
38
80
  shadow: {
39
81
  outline: string
@@ -41,44 +83,6 @@ export interface ThemeColorCard_v3 {
41
83
  penumbra: string
42
84
  ambient: string
43
85
  }
44
- token: {
45
- atrule: string
46
- attrName: string
47
- attrValue: string
48
- attribute: string
49
- boolean: string
50
- builtin: string
51
- cdata: string
52
- char: string
53
- class: string
54
- className: string
55
- comment: string
56
- constant: string
57
- deleted: string
58
- doctype: string
59
- entity: string
60
- function: string
61
- hexcode: string
62
- id: string
63
- important: string
64
- inserted: string
65
- keyword: string
66
- number: string
67
- operator: string
68
- prolog: string
69
- property: string
70
- pseudoClass: string
71
- pseudoElement: string
72
- punctuation: string
73
- regex: string
74
- selector: string
75
- string: string
76
- symbol: string
77
- tag: string
78
- unit: string
79
- url: string
80
- variable: string
81
- }
82
86
  skeleton: {
83
87
  from: string
84
88
  to: string
@@ -5,6 +5,47 @@ export const defaultTokens: PartialTokens<Tokens> = {
5
5
  '*': {
6
6
  // backdrop: ['black/0.2', '200/0.2'],
7
7
  backdrop: ['black/0.5', 'gray/100/0.5'],
8
+ code: {
9
+ bg: ['950', '50'],
10
+ fg: ['300', '700'],
11
+ token: {
12
+ atrule: ['purple/300', 'purple/600'],
13
+ attrName: ['green/300', 'green/600'],
14
+ attrValue: ['yellow/300', 'yellow/600'],
15
+ attribute: ['yellow/300', 'yellow/600'],
16
+ boolean: ['purple/300', 'purple/600'],
17
+ builtin: ['purple/300', 'purple/600'],
18
+ cdata: ['yellow/300', 'yellow/600'],
19
+ char: ['yellow/300', 'yellow/600'],
20
+ class: ['orange/300', 'orange/600'],
21
+ className: ['cyan/300', 'cyan/600'],
22
+ comment: ['gray/600', 'gray/300'],
23
+ constant: ['purple/300', 'purple/600'],
24
+ deleted: ['red/300', 'red/600'],
25
+ entity: ['red/300', 'red/600'],
26
+ function: ['green/300', 'green/600'],
27
+ hexcode: ['blue/300', 'blue/600'],
28
+ id: ['purple/300', 'purple/600'],
29
+ important: ['purple/300', 'purple/600'],
30
+ inserted: ['green/300', 'green/600'],
31
+ keyword: ['magenta/300', 'magenta/600'],
32
+ number: ['purple/300', 'purple/600'],
33
+ operator: ['magenta/300', 'magenta/600'],
34
+ prolog: ['gray/300', 'gray/600'],
35
+ property: ['blue/300', 'blue/600'],
36
+ pseudoClass: ['yellow/300', 'yellow/600'],
37
+ pseudoElement: ['yellow/300', 'yellow/600'],
38
+ punctuation: ['gray/300', 'gray/600'],
39
+ regex: ['blue/300', 'blue/600'],
40
+ selector: ['red/300', 'red/600'],
41
+ string: ['yellow/300', 'yellow/600'],
42
+ symbol: ['purple/300', 'purple/600'],
43
+ tag: ['red/300', 'red/600'],
44
+ unit: ['orange/300', 'orange/600'],
45
+ url: ['red/300', 'red/600'],
46
+ variable: ['red/300', 'red/600'],
47
+ },
48
+ },
8
49
  focusRing: ['blue/500', 'blue/500'],
9
50
  link: {
10
51
  fg: ['blue/400', 'blue/600'],
@@ -15,53 +56,16 @@ export const defaultTokens: PartialTokens<Tokens> = {
15
56
  penumbra: ['black/0.14', '500/0.07'],
16
57
  ambient: ['black/0.12', '500/0.06'],
17
58
  },
18
- token: {
19
- atrule: ['purple/300', 'purple/600'],
20
- attrName: ['green/300', 'green/600'],
21
- attrValue: ['yellow/300', 'yellow/600'],
22
- attribute: ['yellow/300', 'yellow/600'],
23
- boolean: ['purple/300', 'purple/600'],
24
- builtin: ['purple/300', 'purple/600'],
25
- cdata: ['yellow/300', 'yellow/600'],
26
- char: ['yellow/300', 'yellow/600'],
27
- class: ['orange/300', 'orange/600'],
28
- className: ['cyan/300', 'cyan/600'],
29
- comment: ['gray/600', 'gray/300'],
30
- constant: ['purple/300', 'purple/600'],
31
- deleted: ['red/300', 'red/600'],
32
- entity: ['red/300', 'red/600'],
33
- function: ['green/300', 'green/600'],
34
- hexcode: ['blue/300', 'blue/600'],
35
- id: ['purple/300', 'purple/600'],
36
- important: ['purple/300', 'purple/600'],
37
- inserted: ['green/300', 'green/600'],
38
- keyword: ['magenta/300', 'magenta/600'],
39
- number: ['purple/300', 'purple/600'],
40
- operator: ['magenta/300', 'magenta/600'],
41
- prolog: ['gray/300', 'gray/600'],
42
- property: ['blue/300', 'blue/600'],
43
- pseudoClass: ['yellow/300', 'yellow/600'],
44
- pseudoElement: ['yellow/300', 'yellow/600'],
45
- punctuation: ['gray/300', 'gray/600'],
46
- regex: ['blue/300', 'blue/600'],
47
- selector: ['red/300', 'red/600'],
48
- string: ['yellow/300', 'yellow/600'],
49
- symbol: ['purple/300', 'purple/600'],
50
- tag: ['red/300', 'red/600'],
51
- unit: ['orange/300', 'orange/600'],
52
- url: ['red/300', 'red/600'],
53
- variable: ['red/300', 'red/600'],
54
- },
55
59
  variant: {
56
60
  tinted: {
57
61
  '*': {
58
62
  bg: {
59
63
  0: ['950', '50'],
60
- 4: ['800', '100'],
64
+ 4: ['800', '200'],
61
65
  },
62
66
  border: {
63
- 0: ['800', '100'],
64
- 4: ['600', '300'],
67
+ 0: ['700', '100'],
68
+ 4: ['500', '300'],
65
69
  },
66
70
  fg: {
67
71
  0: ['100', '900'],
@@ -87,8 +91,8 @@ export const defaultTokens: PartialTokens<Tokens> = {
87
91
  solid: {
88
92
  '*': {
89
93
  bg: {
90
- 0: ['300', '500'],
91
- 4: ['200', '600'],
94
+ 0: ['400', '500'],
95
+ 4: ['300', '600'],
92
96
  },
93
97
  border: {
94
98
  0: ['200', '400'],
@@ -136,12 +140,12 @@ export const defaultTokens: PartialTokens<Tokens> = {
136
140
  4: ['800', '300 50%'],
137
141
  },
138
142
  border: {
139
- 0: ['900', '300 40%'],
140
- 4: ['700', '300'],
143
+ 0: ['800', '300 40%'],
144
+ 4: ['600', '300'],
141
145
  },
142
146
  fg: {
143
147
  0: ['100', 'black'],
144
- 4: ['500', '600'],
148
+ 4: ['400', '700'],
145
149
  },
146
150
  },
147
151
  },
@@ -152,7 +156,7 @@ export const defaultTokens: PartialTokens<Tokens> = {
152
156
  tinted: {
153
157
  '*': {
154
158
  bg: {
155
- 0: ['gray/950', 'white'],
159
+ 0: ['950', 'white'],
156
160
  4: ['800', '200'],
157
161
  },
158
162
  border: {
@@ -167,6 +171,18 @@ export const defaultTokens: PartialTokens<Tokens> = {
167
171
  },
168
172
  },
169
173
  },
174
+ 'neutral': {
175
+ variant: {
176
+ tinted: {
177
+ '*': {
178
+ bg: {
179
+ 0: ['900', '50'],
180
+ 4: ['700', '200'],
181
+ },
182
+ },
183
+ },
184
+ },
185
+ },
170
186
  'primary': {
171
187
  _hue: 'blue',
172
188
  },