@nova-design-system/nova-base 3.0.0-beta.30 → 3.0.0-beta.33

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 (35) hide show
  1. package/dist/css/mccs.css +1378 -0
  2. package/dist/css/nova-utils.css +951 -73
  3. package/dist/css/ocean.css +453 -28446
  4. package/dist/css/spark.css +434 -28427
  5. package/dist/js/ocean_dark.d.ts +119 -124
  6. package/dist/js/ocean_dark.js +152 -157
  7. package/dist/js/ocean_light.d.ts +119 -124
  8. package/dist/js/ocean_light.js +143 -148
  9. package/dist/js/primitives.d.ts +0 -6
  10. package/dist/js/primitives.js +0 -6
  11. package/dist/js/spacings.d.ts +2 -0
  12. package/dist/js/spacings.js +3 -1
  13. package/dist/js/spark_dark.d.ts +108 -113
  14. package/dist/js/spark_dark.js +120 -125
  15. package/dist/js/spark_light.d.ts +108 -113
  16. package/dist/js/spark_light.js +108 -113
  17. package/dist/lib/cjs/generated/nova-tailwind-components.js +292 -0
  18. package/dist/lib/cjs/{nova-plugin.js → lib/nova-plugin.js} +30 -82
  19. package/dist/lib/cjs/{nova-safelist.js → lib/nova-safelist.js} +13 -5
  20. package/dist/lib/cjs/{nova-theme.js → lib/nova-theme.js} +14 -2
  21. package/dist/lib/generated/nova-tailwind-components.d.ts +288 -0
  22. package/dist/lib/generated/nova-tailwind-components.js +289 -0
  23. package/dist/lib/{nova-plugin.js → lib/nova-plugin.js} +12 -64
  24. package/dist/lib/{nova-safelist.d.ts → lib/nova-safelist.d.ts} +2 -2
  25. package/dist/lib/{nova-safelist.js → lib/nova-safelist.js} +14 -4
  26. package/dist/lib/{nova-theme.js → lib/nova-theme.js} +14 -2
  27. package/package.json +7 -2
  28. /package/dist/lib/cjs/{nova-tailwind-tokens.js → generated/nova-tailwind-tokens.js} +0 -0
  29. /package/dist/lib/cjs/{index.js → lib/index.js} +0 -0
  30. /package/dist/lib/{nova-tailwind-tokens.d.ts → generated/nova-tailwind-tokens.d.ts} +0 -0
  31. /package/dist/lib/{nova-tailwind-tokens.js → generated/nova-tailwind-tokens.js} +0 -0
  32. /package/dist/lib/{index.d.ts → lib/index.d.ts} +0 -0
  33. /package/dist/lib/{index.js → lib/index.js} +0 -0
  34. /package/dist/lib/{nova-plugin.d.ts → lib/nova-plugin.d.ts} +0 -0
  35. /package/dist/lib/{nova-theme.d.ts → lib/nova-theme.d.ts} +0 -0
@@ -0,0 +1,292 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.NOVA_TAILWIND_COMPONENTS = void 0;
5
+ /**
6
+ * Do not edit directly, this file was auto-generated
7
+ * @ref generate-tailwind-components.ts
8
+ */
9
+ exports.NOVA_TAILWIND_COMPONENTS = {
10
+ '.nv-button': {
11
+ 'textDecoration': 'none',
12
+ 'display': 'inline-flex',
13
+ 'justifyContent': 'center',
14
+ 'alignItems': 'center',
15
+ 'fontStyle': 'normal',
16
+ 'fontWeight': 'var(--font-weight-medium-emphasis)',
17
+ 'fontFamily': '\'TT Norms Pro\', sans-serif',
18
+ 'transition': 'background-color 150ms ease-out',
19
+ 'userSelect': 'none',
20
+ 'cursor': 'pointer',
21
+ 'height': 'fit-content',
22
+ 'width': 'fit-content',
23
+ 'padding': 'var(--button-md-padding-y) var(--button-md-padding-x)',
24
+ 'gap': 'var(--button-md-gap)',
25
+ 'borderRadius': 'var(--button-md-border-radius)',
26
+ 'lineHeight': 'var(--button-md-line-height)',
27
+ 'fontSize': 'var(--button-md-font-size)',
28
+ 'background': 'var(--components-button-medium-background)',
29
+ 'border': '1px solid var(--components-button-medium-border)',
30
+ 'color': 'var(--components-button-medium-text)'
31
+ },
32
+ '.nv-button nv-icon > svg': {
33
+ 'width': 'var(--spacing-5)',
34
+ 'height': 'var(--spacing-5)',
35
+ 'strokeWidth': '1.6px'
36
+ },
37
+ '.nv-button:hover': {
38
+ 'background': 'var(--components-button-medium-background-hover)',
39
+ 'border': '1px solid var(--components-button-medium-border)',
40
+ 'color': 'var(--components-button-medium-text-hover)'
41
+ },
42
+ '.nv-button:focus, .nv-button:focus-within': {
43
+ 'outline': 'none'
44
+ },
45
+ '.nv-button:focus-visible, .nv-button:has(:focus-visible)': {
46
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
47
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
48
+ },
49
+ '.nv-button:disabled:not([disabled=false])': {
50
+ 'opacity': '0.5',
51
+ 'cursor': 'not-allowed',
52
+ 'boxShadow': 'none'
53
+ },
54
+ '.nv-button.danger': {
55
+ 'background': 'var(--components-button-destructive-high-background)',
56
+ 'border': '1px solid unset',
57
+ 'color': 'var(--components-button-destructive-high-text)'
58
+ },
59
+ '.nv-button.danger:hover': {
60
+ 'background': 'var(--components-button-destructive-high-background-hover)',
61
+ 'border': '1px solid unset',
62
+ 'color': 'var(--components-button-destructive-high-text-hover)'
63
+ },
64
+ '.nv-button.danger:focus, .nv-button.danger:focus-within': {
65
+ 'outline': 'none'
66
+ },
67
+ '.nv-button.danger:focus-visible, .nv-button.danger:has(:focus-visible)': {
68
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
69
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
70
+ },
71
+ '.nv-button.size-xs': {
72
+ 'padding': 'var(--button-xs-padding-y) var(--button-xs-padding-x)',
73
+ 'gap': 'var(--button-xs-gap)',
74
+ 'borderRadius': 'var(--button-xs-border-radius)',
75
+ 'lineHeight': 'var(--button-xs-line-height)',
76
+ 'fontSize': 'var(--button-xs-font-size)'
77
+ },
78
+ '.nv-button.size-xs nv-icon > svg': {
79
+ 'width': 'var(--spacing-3)',
80
+ 'height': 'var(--spacing-3)',
81
+ 'strokeWidth': '1.2px'
82
+ },
83
+ '.nv-button.size-sm': {
84
+ 'padding': 'var(--button-sm-padding-y) var(--button-sm-padding-x)',
85
+ 'gap': 'var(--button-sm-gap)',
86
+ 'borderRadius': 'var(--button-sm-border-radius)',
87
+ 'lineHeight': 'var(--button-sm-line-height)',
88
+ 'fontSize': 'var(--button-sm-font-size)'
89
+ },
90
+ '.nv-button.size-sm nv-icon > svg': {
91
+ 'width': 'var(--spacing-4)',
92
+ 'height': 'var(--spacing-4)',
93
+ 'strokeWidth': '1.5px'
94
+ },
95
+ '.nv-button.size-md': {
96
+ 'padding': 'var(--button-md-padding-y) var(--button-md-padding-x)',
97
+ 'gap': 'var(--button-md-gap)',
98
+ 'borderRadius': 'var(--button-md-border-radius)',
99
+ 'lineHeight': 'var(--button-md-line-height)',
100
+ 'fontSize': 'var(--button-md-font-size)'
101
+ },
102
+ '.nv-button.size-md nv-icon > svg': {
103
+ 'width': 'var(--spacing-5)',
104
+ 'height': 'var(--spacing-5)',
105
+ 'strokeWidth': '1.6px'
106
+ },
107
+ '.nv-button.size-lg': {
108
+ 'padding': 'var(--button-lg-padding-y) var(--button-lg-padding-x)',
109
+ 'gap': 'var(--button-lg-gap)',
110
+ 'borderRadius': 'var(--button-lg-border-radius)',
111
+ 'lineHeight': 'var(--button-lg-line-height)',
112
+ 'fontSize': 'var(--button-lg-font-size)'
113
+ },
114
+ '.nv-button.size-lg nv-icon > svg': {
115
+ 'width': 'var(--spacing-6)',
116
+ 'height': 'var(--spacing-6)',
117
+ 'strokeWidth': '1.8px'
118
+ },
119
+ '.nv-button.emphasis-high': {
120
+ 'background': 'var(--components-button-high-background)',
121
+ 'border': '1px solid var(--components-button-high-border)',
122
+ 'color': 'var(--components-button-high-text)'
123
+ },
124
+ '.nv-button.emphasis-high:hover': {
125
+ 'background': 'var(--components-button-high-background-hover)',
126
+ 'border': '1px solid var(--components-button-high-border)',
127
+ 'color': 'var(--components-button-high-text-hover)'
128
+ },
129
+ '.nv-button.emphasis-high:focus, .nv-button.emphasis-high:focus-within': {
130
+ 'outline': 'none'
131
+ },
132
+ '.nv-button.emphasis-high:focus-visible, .nv-button.emphasis-high:has(:focus-visible)': {
133
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
134
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
135
+ },
136
+ '.nv-button.emphasis-high:disabled:not([disabled=false])': {
137
+ 'opacity': '0.5',
138
+ 'cursor': 'not-allowed',
139
+ 'boxShadow': 'none'
140
+ },
141
+ '.nv-button.emphasis-high.danger': {
142
+ 'background': 'var(--components-button-destructive-high-background)',
143
+ 'border': '1px solid unset',
144
+ 'color': 'var(--components-button-destructive-high-text)'
145
+ },
146
+ '.nv-button.emphasis-high.danger:hover': {
147
+ 'background': 'var(--components-button-destructive-high-background-hover)',
148
+ 'border': '1px solid unset',
149
+ 'color': 'var(--components-button-destructive-high-text-hover)'
150
+ },
151
+ '.nv-button.emphasis-high.danger:focus, .nv-button.emphasis-high.danger:focus-within': {
152
+ 'outline': 'none'
153
+ },
154
+ '.nv-button.emphasis-high.danger:focus-visible, .nv-button.emphasis-high.danger:has(:focus-visible)': {
155
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
156
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
157
+ },
158
+ '.nv-button.emphasis-medium': {
159
+ 'background': 'var(--components-button-medium-background)',
160
+ 'border': '1px solid var(--components-button-medium-border)',
161
+ 'color': 'var(--components-button-medium-text)'
162
+ },
163
+ '.nv-button.emphasis-medium:hover': {
164
+ 'background': 'var(--components-button-medium-background-hover)',
165
+ 'border': '1px solid var(--components-button-medium-border)',
166
+ 'color': 'var(--components-button-medium-text-hover)'
167
+ },
168
+ '.nv-button.emphasis-medium:focus, .nv-button.emphasis-medium:focus-within': {
169
+ 'outline': 'none'
170
+ },
171
+ '.nv-button.emphasis-medium:focus-visible, .nv-button.emphasis-medium:has(:focus-visible)': {
172
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
173
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
174
+ },
175
+ '.nv-button.emphasis-medium:disabled:not([disabled=false])': {
176
+ 'opacity': '0.5',
177
+ 'cursor': 'not-allowed',
178
+ 'boxShadow': 'none'
179
+ },
180
+ '.nv-button.emphasis-medium.danger': {
181
+ 'background': 'var(--components-button-destructive-medium-background)',
182
+ 'border': '1px solid var(--components-button-destructive-medium-border)',
183
+ 'color': 'var(--components-button-destructive-medium-text)'
184
+ },
185
+ '.nv-button.emphasis-medium.danger:hover': {
186
+ 'background': 'var(--components-button-destructive-medium-background-hover)',
187
+ 'border': '1px solid var(--components-button-destructive-medium-border)',
188
+ 'color': 'var(--components-button-destructive-medium-text-hover)'
189
+ },
190
+ '.nv-button.emphasis-medium.danger:focus, .nv-button.emphasis-medium.danger:focus-within': {
191
+ 'outline': 'none'
192
+ },
193
+ '.nv-button.emphasis-medium.danger:focus-visible, .nv-button.emphasis-medium.danger:has(:focus-visible)': {
194
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
195
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
196
+ },
197
+ '.nv-button.emphasis-low': {
198
+ 'background': 'var(--components-button-low-background)',
199
+ 'border': '1px solid var(--components-button-low-border)',
200
+ 'color': 'var(--components-button-low-text)'
201
+ },
202
+ '.nv-button.emphasis-low:hover': {
203
+ 'background': 'var(--components-button-low-background-hover)',
204
+ 'border': '1px solid var(--components-button-low-border)',
205
+ 'color': 'var(--components-button-low-text-hover)'
206
+ },
207
+ '.nv-button.emphasis-low:focus, .nv-button.emphasis-low:focus-within': {
208
+ 'outline': 'none'
209
+ },
210
+ '.nv-button.emphasis-low:focus-visible, .nv-button.emphasis-low:has(:focus-visible)': {
211
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
212
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
213
+ },
214
+ '.nv-button.emphasis-low:disabled:not([disabled=false])': {
215
+ 'opacity': '0.5',
216
+ 'cursor': 'not-allowed',
217
+ 'boxShadow': 'none'
218
+ },
219
+ '.nv-button.emphasis-low.danger': {
220
+ 'background': 'var(--components-button-destructive-low-background)',
221
+ 'border': '1px solid var(--components-button-destructive-low-border)',
222
+ 'color': 'var(--components-button-destructive-low-text)'
223
+ },
224
+ '.nv-button.emphasis-low.danger:hover': {
225
+ 'background': 'var(--components-button-destructive-low-background-hover)',
226
+ 'border': '1px solid var(--components-button-destructive-low-border)',
227
+ 'color': 'var(--components-button-destructive-low-text-hover)'
228
+ },
229
+ '.nv-button.emphasis-low.danger:focus, .nv-button.emphasis-low.danger:focus-within': {
230
+ 'outline': 'none'
231
+ },
232
+ '.nv-button.emphasis-low.danger:focus-visible, .nv-button.emphasis-low.danger:has(:focus-visible)': {
233
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
234
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
235
+ },
236
+ '.nv-button.emphasis-lower': {
237
+ 'background': 'var(--components-button-lower-background)',
238
+ 'border': '1px solid var(--components-button-lower-border)',
239
+ 'color': 'var(--components-button-lower-text)'
240
+ },
241
+ '.nv-button.emphasis-lower:hover': {
242
+ 'background': 'var(--components-button-lower-background-hover)',
243
+ 'border': '1px solid var(--components-button-lower-border)',
244
+ 'color': 'var(--components-button-lower-text-hover)'
245
+ },
246
+ '.nv-button.emphasis-lower:focus, .nv-button.emphasis-lower:focus-within': {
247
+ 'outline': 'none'
248
+ },
249
+ '.nv-button.emphasis-lower:focus-visible, .nv-button.emphasis-lower:has(:focus-visible)': {
250
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
251
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
252
+ },
253
+ '.nv-button.emphasis-lower:disabled:not([disabled=false])': {
254
+ 'opacity': '0.5',
255
+ 'cursor': 'not-allowed',
256
+ 'boxShadow': 'none'
257
+ },
258
+ '.nv-button.emphasis-lower.danger': {
259
+ 'background': 'var(--components-button-destructive-lower-background)',
260
+ 'border': '1px solid var(--components-button-destructive-lower-border)',
261
+ 'color': 'var(--components-button-destructive-lower-text)'
262
+ },
263
+ '.nv-button.emphasis-lower.danger:hover': {
264
+ 'background': 'var(--components-button-destructive-lower-background-hover)',
265
+ 'border': '1px solid var(--components-button-destructive-lower-border)',
266
+ 'color': 'var(--components-button-destructive-lower-text-hover)'
267
+ },
268
+ '.nv-button.emphasis-lower.danger:focus, .nv-button.emphasis-lower.danger:focus-within': {
269
+ 'outline': 'none'
270
+ },
271
+ '.nv-button.emphasis-lower.danger:focus-visible, .nv-button.emphasis-lower.danger:has(:focus-visible)': {
272
+ 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
273
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
274
+ },
275
+ '.nv-button.fluid': {
276
+ 'width': '100%'
277
+ },
278
+ '.nv-link': {
279
+ 'color': 'var(--color-interaction-link-high-text)',
280
+ 'fontWeight': '500',
281
+ 'textDecoration': 'none'
282
+ },
283
+ '.nv-link:hover': {
284
+ 'color': 'var(--color-interaction-link-high-text-hover)'
285
+ },
286
+ '.nv-tabs .nv-link': {
287
+ 'borderColor': 'transparent'
288
+ },
289
+ '.nv-tabs .nv-link:hover,\n.nv-tabs .selected': {
290
+ 'borderColor': 'var(--color-interaction-container-branded-high-border)'
291
+ }
292
+ };
@@ -2,12 +2,25 @@
2
2
  /**
3
3
  * @fileoverview This file contains various tailwind utilities for nova
4
4
  */
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
5
16
  var __importDefault = (this && this.__importDefault) || function (mod) {
6
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
7
18
  };
8
19
  Object.defineProperty(exports, "__esModule", { value: true });
9
20
  exports.novaTailwindPlugin = void 0;
10
21
  var plugin_js_1 = __importDefault(require("tailwindcss/plugin.js"));
22
+ var nova_tailwind_tokens_js_1 = require("../generated/nova-tailwind-tokens.js");
23
+ var nova_tailwind_components_js_1 = require("../generated/nova-tailwind-components.js");
11
24
  exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
12
25
  var addUtilities = _a.addUtilities, addComponents = _a.addComponents, addBase = _a.addBase, theme = _a.theme;
13
26
  addBase({
@@ -27,62 +40,52 @@ exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
27
40
  'border-radius': 'var(--radius-rounded)',
28
41
  },
29
42
  a: {
30
- color: 'var(--color-interaction-link-inline-text)',
43
+ color: 'var(--color-interaction-link-high-text)',
31
44
  'text-decoration': 'underline',
32
45
  fontWeight: '700',
33
46
  },
34
47
  'a:hover': {
35
- color: 'var(--color-interaction-link-inline-text-hover)',
48
+ color: 'var(--color-interaction-link-high-text-hover)',
36
49
  },
37
50
  h1: {
38
51
  fontSize: 'var(--global-typography-h1-font-size)',
39
52
  lineHeight: 'var(--global-typography-h1-line-height)',
40
53
  fontWeight: 'var(--global-typography-h1-font-weight)',
41
- color: 'var(--color-base-content-high-emphasis)',
54
+ color: 'var(--color-content-high-text)',
42
55
  },
43
56
  h2: {
44
57
  fontSize: 'var(--global-typography-h2-font-size)',
45
58
  lineHeight: 'var(--global-typography-h2-line-height)',
46
59
  fontWeight: 'var(--global-typography-h2-font-weight)',
47
- color: 'var(--color-base-content-high-emphasis)',
60
+ color: 'var(--color-content-high-text)',
48
61
  },
49
62
  h3: {
50
63
  fontSize: 'var(--global-typography-h3-font-size)',
51
64
  lineHeight: 'var(--global-typography-h3-line-height)',
52
65
  fontWeight: 'var(--global-typography-h3-font-weight)',
53
- color: 'var(--color-base-content-high-emphasis)',
66
+ color: 'var(--color-content-high-text)',
54
67
  },
55
68
  h4: {
56
69
  fontSize: 'var(--global-typography-h4-font-size)',
57
70
  lineHeight: 'var(--global-typography-h4-line-height)',
58
71
  fontWeight: 'var(--global-typography-h4-font-weight)',
59
- color: 'var(--color-base-content-high-emphasis)',
72
+ color: 'var(--color-content-high-text)',
60
73
  },
61
74
  h5: {
62
75
  fontSize: 'var(--global-typography-h4-font-size)',
63
76
  lineHeight: 'var(--global-typography-h4-line-height)',
64
77
  fontWeight: 'var(--font-weight-medium-emphasis)',
65
- color: 'var(--color-base-content-medium-emphasis)',
78
+ color: 'var(--color-content-medium-text)',
66
79
  },
67
80
  h6: {
68
81
  fontSize: 'var(--global-typography-h4-font-size)',
69
82
  lineHeight: 'var(--global-typography-h4-line-height)',
70
83
  fontWeight: 'var(--font-weight-low-emphasis)',
71
- color: 'var(--color-base-content-low-emphasis)',
72
- },
73
- });
74
- addComponents({
75
- '.link': {
76
- color: 'var(--color-interaction-link-standalone-text)',
77
- fontWeight: '500',
78
- 'text-decoration': 'none',
79
- },
80
- '.link:hover': {
81
- color: 'var(--color-interaction-link-standalone-text-hover)',
84
+ color: 'var(--color-content-low-text)',
82
85
  },
83
86
  });
84
- addUtilities({
85
- '.visually-hidden': {
87
+ addComponents(__assign({}, nova_tailwind_components_js_1.NOVA_TAILWIND_COMPONENTS));
88
+ addUtilities(__assign(__assign({}, nova_tailwind_tokens_js_1.NOVA_TAILWIND_TOKENS), { '.visually-hidden': {
86
89
  position: 'absolute',
87
90
  padding: '0',
88
91
  border: '0',
@@ -92,72 +95,17 @@ exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
92
95
  height: '1px',
93
96
  margin: '-1px',
94
97
  clip: 'rect(0, 0, 0, 0)',
95
- },
96
- '.text-high-emphasis': {
97
- color: 'var(--color-base-content-high-emphasis)',
98
- },
99
- '.text-medium-emphasis': {
100
- color: 'var(--color-base-content-medium-emphasis)',
101
- },
102
- '.text-low-emphasis': {
103
- color: 'var(--color-base-content-low-emphasis)',
104
- },
105
- '.bg-level-00': {
106
- 'background-color': 'var(--color-base-level-00)',
107
- },
108
- '.bg-level-00-hover': {
109
- 'background-color': 'var(--color-base-level-00-hover)',
110
- },
111
- '.bg-level-10': {
112
- 'background-color': 'var(--color-base-level-10)',
113
- },
114
- '.bg-level-10-hover': {
115
- 'background-color': 'var(--color-base-level-10-hover)',
116
- },
117
- '.bg-level-20': {
118
- 'background-color': 'var(--color-base-level-20)',
119
- },
120
- '.bg-level-20-hover': {
121
- 'background-color': 'var(--color-base-level-20-hover)',
122
- },
123
- '.bg-level-30': {
124
- 'background-color': 'var(--color-base-level-30)',
125
- },
126
- '.bg-level-30-hover': {
127
- 'background-color': 'var(--color-base-level-30-hover)',
128
- },
129
- '.bg-level-40': {
130
- 'background-color': 'var(--color-base-level-40)',
131
- },
132
- '.bg-level-40-hover': {
133
- 'background-color': 'var(--color-base-level-40-hover)',
134
- },
135
- '.border-high-emphasis': {
136
- 'border-color': 'var(--color-base-border-high-emphasis)',
137
- },
138
- '.border-medium-emphasis': {
139
- 'border-color': 'var(--color-base-border-medium-emphasis)',
140
- },
141
- '.border-low-emphasis': {
142
- 'border-color': 'var(--color-base-border-low-emphasis)',
143
- },
144
- '.w-inherit': {
98
+ }, '.w-inherit': {
145
99
  width: 'inherit',
146
- },
147
- '.w-initial': {
100
+ }, '.w-initial': {
148
101
  width: 'initial',
149
- },
150
- '.w-max-content': {
102
+ }, '.w-max-content': {
151
103
  width: 'max-content',
152
- },
153
- '.w-min-content': {
104
+ }, '.w-min-content': {
154
105
  width: 'min-content',
155
- },
156
- '.w-revert': {
106
+ }, '.w-revert': {
157
107
  width: 'revert',
158
- },
159
- '.w-unset': {
108
+ }, '.w-unset': {
160
109
  width: 'unset',
161
- },
162
- });
110
+ } }));
163
111
  });
@@ -19,6 +19,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.novaThemeSafelist = exports.gap = exports.margin = exports.padding = exports.pointer = exports.colorSchemes = exports.responsive = void 0;
21
21
  var nova_theme_js_1 = require("./nova-theme.js");
22
+ var nova_tailwind_tokens_js_1 = require("../generated/nova-tailwind-tokens.js");
23
+ var nova_tailwind_components_js_1 = require("../generated/nova-tailwind-components.js");
22
24
  // Enables responsive spacing modifiers for safelist variants
23
25
  exports.responsive = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'];
24
26
  // Enables responsive color schemes for safelist variants
@@ -324,10 +326,16 @@ var resize = [
324
326
  // From the nova tailwind plugin (nova-plugin.ts)
325
327
  var utils = [
326
328
  { pattern: /^visually-hidden$/, variants: exports.responsive },
327
- { pattern: /^font-(high|medium|low)-emphasis$/ },
329
+ { pattern: /^text-(high|medium|low)$/ },
328
330
  { pattern: /^bg-level-(00|10|20|30|40)(-hover)?$/ },
329
- { pattern: /^border-(high|medium|low)-emphasis$/ },
331
+ { pattern: /^border-(high|medium|low)$/ },
330
332
  ];
331
- // From the nova tailwind plugin (nova-plugin.ts)
332
- var components = [{ pattern: /^link$/, variants: exports.pointer }];
333
- exports.novaThemeSafelist = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.padding, true), exports.margin, true), exports.gap, true), flexBox, true), grid, true), spaceBetween, true), overflow, true), position, true), display, true), textAlign, true), textSize, true), whitespace, true), verticalAlign, true), fontWeight, true), borders, true), width, true), height, true), colors, true), cursors, true), resize, true), utils, true), components, true);
333
+ // From the nova tailwind components (nova-tailwind-components.ts)
334
+ var components = __spreadArray([], Object.keys(nova_tailwind_components_js_1.NOVA_TAILWIND_COMPONENTS).filter(function (key) {
335
+ return /^\.[a-zA-Z0-9-]+$/.test(key);
336
+ }), true);
337
+ // From the nova tailwind tokens (nova-tailwind-tokens.ts)
338
+ var tokens = __spreadArray(__spreadArray([], Object.keys(nova_tailwind_tokens_js_1.NOVA_TAILWIND_TOKENS), true), [
339
+ { pattern: /-hover$/, variants: ['hover'] },
340
+ ], false);
341
+ exports.novaThemeSafelist = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.padding, true), exports.margin, true), exports.gap, true), flexBox, true), grid, true), spaceBetween, true), overflow, true), position, true), display, true), textAlign, true), textSize, true), whitespace, true), verticalAlign, true), fontWeight, true), borders, true), width, true), height, true), colors, true), cursors, true), resize, true), utils, true), components, true), tokens, true);
@@ -87,8 +87,20 @@ exports.lineHeight = {
87
87
  '9xl': 'var(--line-height-9xl)',
88
88
  };
89
89
  exports.colors = {
90
- background: 'var(--color-base-level-00)',
91
- text: 'var(--color-base-content-medium-emphasis)',
90
+ background: 'var(--color-level-00-background)',
91
+ text: 'var(--color-content-medium-text)',
92
+ brand: {
93
+ 50: 'var(--color-brand-50)',
94
+ 100: 'var(--color-brand-100)',
95
+ 200: 'var(--color-brand-200)',
96
+ 300: 'var(--color-brand-300)',
97
+ 400: 'var(--color-brand-400)',
98
+ 500: 'var(--color-brand-500)',
99
+ 600: 'var(--color-brand-600)',
100
+ 700: 'var(--color-brand-700)',
101
+ 800: 'var(--color-brand-800)',
102
+ 900: 'var(--color-brand-900)',
103
+ },
92
104
  green: {
93
105
  50: 'var(--color-green-50)',
94
106
  100: 'var(--color-green-100)',