@nova-design-system/nova-base 3.29.0 → 3.30.0
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.
- package/README.md +25 -32
- package/dist/cjs/generated/nova-tailwind-tokens.js +45 -0
- package/dist/cjs/plugin/index.js +0 -1
- package/dist/cjs/plugin/nova-plugin.js +2 -100
- package/dist/cjs/plugin/typography.js +135 -0
- package/dist/css/nova-utils.css +26768 -24637
- package/dist/css/ocean.css +51 -8
- package/dist/css/spark.css +53 -10
- package/dist/generated/nova-tailwind-tokens.d.ts +45 -0
- package/dist/generated/nova-tailwind-tokens.js +45 -0
- package/dist/js/ocean_dark.d.ts +15 -0
- package/dist/js/ocean_dark.js +26 -11
- package/dist/js/ocean_light.d.ts +15 -0
- package/dist/js/ocean_light.js +17 -2
- package/dist/js/spacings.d.ts +14 -1
- package/dist/js/spacings.js +14 -1
- package/dist/js/spark_dark.d.ts +15 -0
- package/dist/js/spark_dark.js +29 -14
- package/dist/js/spark_light.d.ts +15 -0
- package/dist/js/spark_light.js +17 -2
- package/dist/plugin/index.d.ts +0 -1
- package/dist/plugin/index.js +0 -1
- package/dist/plugin/nova-plugin.d.ts +2 -4
- package/dist/plugin/nova-plugin.js +2 -99
- package/dist/plugin/typography.d.ts +79 -0
- package/dist/plugin/typography.js +127 -0
- package/generated/figma-to-tailwind-mapping.json +197 -17
- package/generated/nova-tailwind-tokens.ts +45 -0
- package/package.json +6 -3
- package/dist/cjs/plugin/nova-safelist.js +0 -341
- package/dist/plugin/nova-safelist.d.ts +0 -26
- package/dist/plugin/nova-safelist.js +0 -355
package/dist/js/spark_dark.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export const ColorFeedbackInformationHighIcon : string;
|
|
|
131
131
|
export const ColorFeedbackInformationHighText : string;
|
|
132
132
|
export const ColorFeedbackInformationLowBackground : string;
|
|
133
133
|
export const ColorFeedbackInformationLowBorder : string;
|
|
134
|
+
export const ColorFeedbackInformationLowBorderSubtle : string;
|
|
134
135
|
export const ColorFeedbackInformationLowIcon : string;
|
|
135
136
|
export const ColorFeedbackInformationLowText : string;
|
|
136
137
|
export const ColorFeedbackInformationHighContrastBackground : string;
|
|
@@ -144,6 +145,7 @@ export const ColorFeedbackErrorHighIcon : string;
|
|
|
144
145
|
export const ColorFeedbackErrorHighText : string;
|
|
145
146
|
export const ColorFeedbackErrorLowBackground : string;
|
|
146
147
|
export const ColorFeedbackErrorLowBorder : string;
|
|
148
|
+
export const ColorFeedbackErrorLowBorderSubtle : string;
|
|
147
149
|
export const ColorFeedbackErrorLowIcon : string;
|
|
148
150
|
export const ColorFeedbackErrorLowText : string;
|
|
149
151
|
export const ColorFeedbackErrorHighContrastBackground : string;
|
|
@@ -157,6 +159,7 @@ export const ColorFeedbackNeutralHighIcon : string;
|
|
|
157
159
|
export const ColorFeedbackNeutralHighText : string;
|
|
158
160
|
export const ColorFeedbackNeutralLowBackground : string;
|
|
159
161
|
export const ColorFeedbackNeutralLowBorder : string;
|
|
162
|
+
export const ColorFeedbackNeutralLowBorderSubtle : string;
|
|
160
163
|
export const ColorFeedbackNeutralLowIcon : string;
|
|
161
164
|
export const ColorFeedbackNeutralLowText : string;
|
|
162
165
|
export const ColorFeedbackNeutralHighContrastBackground : string;
|
|
@@ -170,6 +173,7 @@ export const ColorFeedbackWarningHighIcon : string;
|
|
|
170
173
|
export const ColorFeedbackWarningHighText : string;
|
|
171
174
|
export const ColorFeedbackWarningLowBackground : string;
|
|
172
175
|
export const ColorFeedbackWarningLowBorder : string;
|
|
176
|
+
export const ColorFeedbackWarningLowBorderSubtle : string;
|
|
173
177
|
export const ColorFeedbackWarningLowIcon : string;
|
|
174
178
|
export const ColorFeedbackWarningLowText : string;
|
|
175
179
|
export const ColorFeedbackWarningHighContrastBackground : string;
|
|
@@ -183,6 +187,7 @@ export const ColorFeedbackSuccessHighIcon : string;
|
|
|
183
187
|
export const ColorFeedbackSuccessHighText : string;
|
|
184
188
|
export const ColorFeedbackSuccessLowBackground : string;
|
|
185
189
|
export const ColorFeedbackSuccessLowBorder : string;
|
|
190
|
+
export const ColorFeedbackSuccessLowBorderSubtle : string;
|
|
186
191
|
export const ColorFeedbackSuccessLowIcon : string;
|
|
187
192
|
export const ColorFeedbackSuccessLowText : string;
|
|
188
193
|
export const ColorFeedbackSuccessHighContrastBackground : string;
|
|
@@ -198,42 +203,52 @@ export const ColorFocusDestructiveInField : string;
|
|
|
198
203
|
export const ColorFocusSuccess : string;
|
|
199
204
|
export const ColorRainbow1Background : string;
|
|
200
205
|
export const ColorRainbow1Border : string;
|
|
206
|
+
export const ColorRainbow1BorderLight : string;
|
|
201
207
|
export const ColorRainbow1Icon : string;
|
|
202
208
|
export const ColorRainbow1Text : string;
|
|
203
209
|
export const ColorRainbow2Background : string;
|
|
204
210
|
export const ColorRainbow2Border : string;
|
|
211
|
+
export const ColorRainbow2BorderLight : string;
|
|
205
212
|
export const ColorRainbow2Icon : string;
|
|
206
213
|
export const ColorRainbow2Text : string;
|
|
207
214
|
export const ColorRainbow3Background : string;
|
|
208
215
|
export const ColorRainbow3Border : string;
|
|
216
|
+
export const ColorRainbow3BorderLight : string;
|
|
209
217
|
export const ColorRainbow3Icon : string;
|
|
210
218
|
export const ColorRainbow3Text : string;
|
|
211
219
|
export const ColorRainbow4Background : string;
|
|
212
220
|
export const ColorRainbow4Border : string;
|
|
221
|
+
export const ColorRainbow4BorderLight : string;
|
|
213
222
|
export const ColorRainbow4Icon : string;
|
|
214
223
|
export const ColorRainbow4Text : string;
|
|
215
224
|
export const ColorRainbow5Background : string;
|
|
216
225
|
export const ColorRainbow5Border : string;
|
|
226
|
+
export const ColorRainbow5BorderLight : string;
|
|
217
227
|
export const ColorRainbow5Icon : string;
|
|
218
228
|
export const ColorRainbow5Text : string;
|
|
219
229
|
export const ColorRainbow6Background : string;
|
|
220
230
|
export const ColorRainbow6Border : string;
|
|
231
|
+
export const ColorRainbow6BorderLight : string;
|
|
221
232
|
export const ColorRainbow6Icon : string;
|
|
222
233
|
export const ColorRainbow6Text : string;
|
|
223
234
|
export const ColorRainbow7Background : string;
|
|
224
235
|
export const ColorRainbow7Border : string;
|
|
236
|
+
export const ColorRainbow7BorderLight : string;
|
|
225
237
|
export const ColorRainbow7Icon : string;
|
|
226
238
|
export const ColorRainbow7Text : string;
|
|
227
239
|
export const ColorRainbow8Background : string;
|
|
228
240
|
export const ColorRainbow8Border : string;
|
|
241
|
+
export const ColorRainbow8BorderLight : string;
|
|
229
242
|
export const ColorRainbow8Icon : string;
|
|
230
243
|
export const ColorRainbow8Text : string;
|
|
231
244
|
export const ColorRainbow9Background : string;
|
|
232
245
|
export const ColorRainbow9Border : string;
|
|
246
|
+
export const ColorRainbow9BorderLight : string;
|
|
233
247
|
export const ColorRainbow9Icon : string;
|
|
234
248
|
export const ColorRainbow9Text : string;
|
|
235
249
|
export const ColorRainbow10Background : string;
|
|
236
250
|
export const ColorRainbow10Border : string;
|
|
251
|
+
export const ColorRainbow10BorderLight : string;
|
|
237
252
|
export const ColorRainbow10Icon : string;
|
|
238
253
|
export const ColorRainbow10Text : string;
|
|
239
254
|
export const ColorDontUseBorder : string;
|
package/dist/js/spark_dark.js
CHANGED
|
@@ -131,6 +131,7 @@ export const ColorFeedbackInformationHighIcon = "#09285c";
|
|
|
131
131
|
export const ColorFeedbackInformationHighText = "#09285c";
|
|
132
132
|
export const ColorFeedbackInformationLowBackground = "#001c37";
|
|
133
133
|
export const ColorFeedbackInformationLowBorder = "#659fff";
|
|
134
|
+
export const ColorFeedbackInformationLowBorderSubtle = "#113a80";
|
|
134
135
|
export const ColorFeedbackInformationLowIcon = "#659fff";
|
|
135
136
|
export const ColorFeedbackInformationLowText = "#659fff";
|
|
136
137
|
export const ColorFeedbackInformationHighContrastBackground = "#659fff";
|
|
@@ -144,6 +145,7 @@ export const ColorFeedbackErrorHighIcon = "#380101";
|
|
|
144
145
|
export const ColorFeedbackErrorHighText = "#380101";
|
|
145
146
|
export const ColorFeedbackErrorLowBackground = "#380101";
|
|
146
147
|
export const ColorFeedbackErrorLowBorder = "#ff6161";
|
|
148
|
+
export const ColorFeedbackErrorLowBorderSubtle = "#911515";
|
|
147
149
|
export const ColorFeedbackErrorLowIcon = "#ff6161";
|
|
148
150
|
export const ColorFeedbackErrorLowText = "#ff6161";
|
|
149
151
|
export const ColorFeedbackErrorHighContrastBackground = "#ff6161";
|
|
@@ -157,6 +159,7 @@ export const ColorFeedbackNeutralHighIcon = "#1d1d1d";
|
|
|
157
159
|
export const ColorFeedbackNeutralHighText = "#1d1d1d";
|
|
158
160
|
export const ColorFeedbackNeutralLowBackground = "#1d1d1d";
|
|
159
161
|
export const ColorFeedbackNeutralLowBorder = "#a9a9a9";
|
|
162
|
+
export const ColorFeedbackNeutralLowBorderSubtle = "#484848";
|
|
160
163
|
export const ColorFeedbackNeutralLowIcon = "#a9a9a9";
|
|
161
164
|
export const ColorFeedbackNeutralLowText = "#a9a9a9";
|
|
162
165
|
export const ColorFeedbackNeutralHighContrastBackground = "#a9a9a9";
|
|
@@ -170,6 +173,7 @@ export const ColorFeedbackWarningHighIcon = "#302300";
|
|
|
170
173
|
export const ColorFeedbackWarningHighText = "#302300";
|
|
171
174
|
export const ColorFeedbackWarningLowBackground = "#302300";
|
|
172
175
|
export const ColorFeedbackWarningLowBorder = "#e0a917";
|
|
176
|
+
export const ColorFeedbackWarningLowBorderSubtle = "#805c00";
|
|
173
177
|
export const ColorFeedbackWarningLowIcon = "#e0a917";
|
|
174
178
|
export const ColorFeedbackWarningLowText = "#e0a917";
|
|
175
179
|
export const ColorFeedbackWarningHighContrastBackground = "#e0a917";
|
|
@@ -183,6 +187,7 @@ export const ColorFeedbackSuccessHighIcon = "#003603";
|
|
|
183
187
|
export const ColorFeedbackSuccessHighText = "#003603";
|
|
184
188
|
export const ColorFeedbackSuccessLowBackground = "#002302";
|
|
185
189
|
export const ColorFeedbackSuccessLowBorder = "#45d24d";
|
|
190
|
+
export const ColorFeedbackSuccessLowBorderSubtle = "#035707";
|
|
186
191
|
export const ColorFeedbackSuccessLowIcon = "#45d24d";
|
|
187
192
|
export const ColorFeedbackSuccessLowText = "#45d24d";
|
|
188
193
|
export const ColorFeedbackSuccessHighContrastBackground = "#45d24d";
|
|
@@ -198,42 +203,52 @@ export const ColorFocusDestructiveInField = "#ff6161";
|
|
|
198
203
|
export const ColorFocusSuccess = "#45d24d";
|
|
199
204
|
export const ColorRainbow1Background = "#432306";
|
|
200
205
|
export const ColorRainbow1Border = "#f0801a";
|
|
206
|
+
export const ColorRainbow1BorderLight = "#9c5311";
|
|
201
207
|
export const ColorRainbow1Icon = "#f0801a";
|
|
202
|
-
export const ColorRainbow1Text = "#
|
|
208
|
+
export const ColorRainbow1Text = "#f39642";
|
|
203
209
|
export const ColorRainbow2Background = "#45190a";
|
|
204
210
|
export const ColorRainbow2Border = "#eb7247";
|
|
211
|
+
export const ColorRainbow2BorderLight = "#963715";
|
|
205
212
|
export const ColorRainbow2Icon = "#eb7247";
|
|
206
213
|
export const ColorRainbow2Text = "#eb7247";
|
|
207
214
|
export const ColorRainbow3Background = "#4d3a00";
|
|
208
215
|
export const ColorRainbow3Border = "#d29f00";
|
|
216
|
+
export const ColorRainbow3BorderLight = "#a67d00";
|
|
209
217
|
export const ColorRainbow3Icon = "#d29f00";
|
|
210
218
|
export const ColorRainbow3Text = "#d29f00";
|
|
211
|
-
export const ColorRainbow4Background = "#
|
|
219
|
+
export const ColorRainbow4Background = "#3d0909";
|
|
212
220
|
export const ColorRainbow4Border = "#e79494";
|
|
221
|
+
export const ColorRainbow4BorderLight = "#a81818";
|
|
213
222
|
export const ColorRainbow4Icon = "#e79494";
|
|
214
223
|
export const ColorRainbow4Text = "#e79494";
|
|
215
224
|
export const ColorRainbow5Background = "#1c2b28";
|
|
216
|
-
export const ColorRainbow5Border = "#
|
|
217
|
-
export const
|
|
218
|
-
export const
|
|
219
|
-
export const
|
|
225
|
+
export const ColorRainbow5Border = "#84b8b1";
|
|
226
|
+
export const ColorRainbow5BorderLight = "#456e68";
|
|
227
|
+
export const ColorRainbow5Icon = "#84b8b1";
|
|
228
|
+
export const ColorRainbow5Text = "#84b8b1";
|
|
229
|
+
export const ColorRainbow6Background = "#2e0010";
|
|
220
230
|
export const ColorRainbow6Border = "#cf869f";
|
|
231
|
+
export const ColorRainbow6BorderLight = "#7e002c";
|
|
221
232
|
export const ColorRainbow6Icon = "#cf869f";
|
|
222
233
|
export const ColorRainbow6Text = "#cf869f";
|
|
223
|
-
export const ColorRainbow7Background = "#
|
|
234
|
+
export const ColorRainbow7Background = "#062908";
|
|
224
235
|
export const ColorRainbow7Border = "#66b16a";
|
|
236
|
+
export const ColorRainbow7BorderLight = "#106f15";
|
|
225
237
|
export const ColorRainbow7Icon = "#66b16a";
|
|
226
238
|
export const ColorRainbow7Text = "#66b16a";
|
|
227
|
-
export const ColorRainbow8Background = "#
|
|
239
|
+
export const ColorRainbow8Background = "#0b292e";
|
|
228
240
|
export const ColorRainbow8Border = "#71b2bc";
|
|
241
|
+
export const ColorRainbow8BorderLight = "#1f717d";
|
|
229
242
|
export const ColorRainbow8Icon = "#71b2bc";
|
|
230
243
|
export const ColorRainbow8Text = "#71b2bc";
|
|
231
244
|
export const ColorRainbow9Background = "#2a330e";
|
|
232
245
|
export const ColorRainbow9Border = "#8da930";
|
|
246
|
+
export const ColorRainbow9BorderLight = "#5c6e1f";
|
|
233
247
|
export const ColorRainbow9Icon = "#8da930";
|
|
234
248
|
export const ColorRainbow9Text = "#8da930";
|
|
235
249
|
export const ColorRainbow10Background = "#313131";
|
|
236
250
|
export const ColorRainbow10Border = "#a9a9a9";
|
|
251
|
+
export const ColorRainbow10BorderLight = "#4f4f4f";
|
|
237
252
|
export const ColorRainbow10Icon = "#a9a9a9";
|
|
238
253
|
export const ColorRainbow10Text = "#a9a9a9";
|
|
239
254
|
export const ColorDontUseBorder = "#252525";
|
|
@@ -424,18 +439,18 @@ export const ComponentsAlertNeutralIcon = "#a9a9a9";
|
|
|
424
439
|
export const ComponentsAvatarBackground1 = "#432306";
|
|
425
440
|
export const ComponentsAvatarBackground2 = "#45190a";
|
|
426
441
|
export const ComponentsAvatarBackground3 = "#4d3a00";
|
|
427
|
-
export const ComponentsAvatarBackground4 = "#
|
|
442
|
+
export const ComponentsAvatarBackground4 = "#3d0909";
|
|
428
443
|
export const ComponentsAvatarBackground5 = "#1c2b28";
|
|
429
|
-
export const ComponentsAvatarBackground6 = "#
|
|
430
|
-
export const ComponentsAvatarBackground7 = "#
|
|
431
|
-
export const ComponentsAvatarBackground8 = "#
|
|
444
|
+
export const ComponentsAvatarBackground6 = "#2e0010";
|
|
445
|
+
export const ComponentsAvatarBackground7 = "#062908";
|
|
446
|
+
export const ComponentsAvatarBackground8 = "#0b292e";
|
|
432
447
|
export const ComponentsAvatarBackground9 = "#2a330e";
|
|
433
448
|
export const ComponentsAvatarBackground10 = "#313131";
|
|
434
449
|
export const ComponentsAvatarBorder1 = "#f0801a";
|
|
435
450
|
export const ComponentsAvatarBorder2 = "#eb7247";
|
|
436
451
|
export const ComponentsAvatarBorder3 = "#d29f00";
|
|
437
452
|
export const ComponentsAvatarBorder4 = "#e79494";
|
|
438
|
-
export const ComponentsAvatarBorder5 = "#
|
|
453
|
+
export const ComponentsAvatarBorder5 = "#84b8b1";
|
|
439
454
|
export const ComponentsAvatarBorder6 = "#cf869f";
|
|
440
455
|
export const ComponentsAvatarBorder7 = "#66b16a";
|
|
441
456
|
export const ComponentsAvatarBorder8 = "#71b2bc";
|
|
@@ -445,7 +460,7 @@ export const ComponentsAvatarContent1 = "#f0801a";
|
|
|
445
460
|
export const ComponentsAvatarContent2 = "#eb7247";
|
|
446
461
|
export const ComponentsAvatarContent3 = "#d29f00";
|
|
447
462
|
export const ComponentsAvatarContent4 = "#e79494";
|
|
448
|
-
export const ComponentsAvatarContent5 = "#
|
|
463
|
+
export const ComponentsAvatarContent5 = "#84b8b1";
|
|
449
464
|
export const ComponentsAvatarContent6 = "#cf869f";
|
|
450
465
|
export const ComponentsAvatarContent7 = "#66b16a";
|
|
451
466
|
export const ComponentsAvatarContent8 = "#71b2bc";
|
package/dist/js/spark_light.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export const ColorFeedbackInformationHighIcon : string;
|
|
|
131
131
|
export const ColorFeedbackInformationHighText : string;
|
|
132
132
|
export const ColorFeedbackInformationLowBackground : string;
|
|
133
133
|
export const ColorFeedbackInformationLowBorder : string;
|
|
134
|
+
export const ColorFeedbackInformationLowBorderSubtle : string;
|
|
134
135
|
export const ColorFeedbackInformationLowIcon : string;
|
|
135
136
|
export const ColorFeedbackInformationLowText : string;
|
|
136
137
|
export const ColorFeedbackInformationHighContrastBackground : string;
|
|
@@ -144,6 +145,7 @@ export const ColorFeedbackErrorHighIcon : string;
|
|
|
144
145
|
export const ColorFeedbackErrorHighText : string;
|
|
145
146
|
export const ColorFeedbackErrorLowBackground : string;
|
|
146
147
|
export const ColorFeedbackErrorLowBorder : string;
|
|
148
|
+
export const ColorFeedbackErrorLowBorderSubtle : string;
|
|
147
149
|
export const ColorFeedbackErrorLowIcon : string;
|
|
148
150
|
export const ColorFeedbackErrorLowText : string;
|
|
149
151
|
export const ColorFeedbackErrorHighContrastBackground : string;
|
|
@@ -157,6 +159,7 @@ export const ColorFeedbackNeutralHighIcon : string;
|
|
|
157
159
|
export const ColorFeedbackNeutralHighText : string;
|
|
158
160
|
export const ColorFeedbackNeutralLowBackground : string;
|
|
159
161
|
export const ColorFeedbackNeutralLowBorder : string;
|
|
162
|
+
export const ColorFeedbackNeutralLowBorderSubtle : string;
|
|
160
163
|
export const ColorFeedbackNeutralLowIcon : string;
|
|
161
164
|
export const ColorFeedbackNeutralLowText : string;
|
|
162
165
|
export const ColorFeedbackNeutralHighContrastBackground : string;
|
|
@@ -170,6 +173,7 @@ export const ColorFeedbackWarningHighIcon : string;
|
|
|
170
173
|
export const ColorFeedbackWarningHighText : string;
|
|
171
174
|
export const ColorFeedbackWarningLowBackground : string;
|
|
172
175
|
export const ColorFeedbackWarningLowBorder : string;
|
|
176
|
+
export const ColorFeedbackWarningLowBorderSubtle : string;
|
|
173
177
|
export const ColorFeedbackWarningLowIcon : string;
|
|
174
178
|
export const ColorFeedbackWarningLowText : string;
|
|
175
179
|
export const ColorFeedbackWarningHighContrastBackground : string;
|
|
@@ -183,6 +187,7 @@ export const ColorFeedbackSuccessHighIcon : string;
|
|
|
183
187
|
export const ColorFeedbackSuccessHighText : string;
|
|
184
188
|
export const ColorFeedbackSuccessLowBackground : string;
|
|
185
189
|
export const ColorFeedbackSuccessLowBorder : string;
|
|
190
|
+
export const ColorFeedbackSuccessLowBorderSubtle : string;
|
|
186
191
|
export const ColorFeedbackSuccessLowIcon : string;
|
|
187
192
|
export const ColorFeedbackSuccessLowText : string;
|
|
188
193
|
export const ColorFeedbackSuccessHighContrastBackground : string;
|
|
@@ -198,42 +203,52 @@ export const ColorFocusDestructiveInField : string;
|
|
|
198
203
|
export const ColorFocusSuccess : string;
|
|
199
204
|
export const ColorRainbow1Background : string;
|
|
200
205
|
export const ColorRainbow1Border : string;
|
|
206
|
+
export const ColorRainbow1BorderLight : string;
|
|
201
207
|
export const ColorRainbow1Icon : string;
|
|
202
208
|
export const ColorRainbow1Text : string;
|
|
203
209
|
export const ColorRainbow2Background : string;
|
|
204
210
|
export const ColorRainbow2Border : string;
|
|
211
|
+
export const ColorRainbow2BorderLight : string;
|
|
205
212
|
export const ColorRainbow2Icon : string;
|
|
206
213
|
export const ColorRainbow2Text : string;
|
|
207
214
|
export const ColorRainbow3Background : string;
|
|
208
215
|
export const ColorRainbow3Border : string;
|
|
216
|
+
export const ColorRainbow3BorderLight : string;
|
|
209
217
|
export const ColorRainbow3Icon : string;
|
|
210
218
|
export const ColorRainbow3Text : string;
|
|
211
219
|
export const ColorRainbow4Background : string;
|
|
212
220
|
export const ColorRainbow4Border : string;
|
|
221
|
+
export const ColorRainbow4BorderLight : string;
|
|
213
222
|
export const ColorRainbow4Icon : string;
|
|
214
223
|
export const ColorRainbow4Text : string;
|
|
215
224
|
export const ColorRainbow5Background : string;
|
|
216
225
|
export const ColorRainbow5Border : string;
|
|
226
|
+
export const ColorRainbow5BorderLight : string;
|
|
217
227
|
export const ColorRainbow5Icon : string;
|
|
218
228
|
export const ColorRainbow5Text : string;
|
|
219
229
|
export const ColorRainbow6Background : string;
|
|
220
230
|
export const ColorRainbow6Border : string;
|
|
231
|
+
export const ColorRainbow6BorderLight : string;
|
|
221
232
|
export const ColorRainbow6Icon : string;
|
|
222
233
|
export const ColorRainbow6Text : string;
|
|
223
234
|
export const ColorRainbow7Background : string;
|
|
224
235
|
export const ColorRainbow7Border : string;
|
|
236
|
+
export const ColorRainbow7BorderLight : string;
|
|
225
237
|
export const ColorRainbow7Icon : string;
|
|
226
238
|
export const ColorRainbow7Text : string;
|
|
227
239
|
export const ColorRainbow8Background : string;
|
|
228
240
|
export const ColorRainbow8Border : string;
|
|
241
|
+
export const ColorRainbow8BorderLight : string;
|
|
229
242
|
export const ColorRainbow8Icon : string;
|
|
230
243
|
export const ColorRainbow8Text : string;
|
|
231
244
|
export const ColorRainbow9Background : string;
|
|
232
245
|
export const ColorRainbow9Border : string;
|
|
246
|
+
export const ColorRainbow9BorderLight : string;
|
|
233
247
|
export const ColorRainbow9Icon : string;
|
|
234
248
|
export const ColorRainbow9Text : string;
|
|
235
249
|
export const ColorRainbow10Background : string;
|
|
236
250
|
export const ColorRainbow10Border : string;
|
|
251
|
+
export const ColorRainbow10BorderLight : string;
|
|
237
252
|
export const ColorRainbow10Icon : string;
|
|
238
253
|
export const ColorRainbow10Text : string;
|
|
239
254
|
export const ColorDontUseBorder : string;
|
package/dist/js/spark_light.js
CHANGED
|
@@ -131,6 +131,7 @@ export const ColorFeedbackInformationHighIcon = "#09285c";
|
|
|
131
131
|
export const ColorFeedbackInformationHighText = "#09285c";
|
|
132
132
|
export const ColorFeedbackInformationLowBackground = "#f0f6ff";
|
|
133
133
|
export const ColorFeedbackInformationLowBorder = "#2660c2";
|
|
134
|
+
export const ColorFeedbackInformationLowBorderSubtle = "#c7dcff";
|
|
134
135
|
export const ColorFeedbackInformationLowIcon = "#2660c2";
|
|
135
136
|
export const ColorFeedbackInformationLowText = "#2660c2";
|
|
136
137
|
export const ColorFeedbackInformationHighContrastBackground = "#09285c";
|
|
@@ -144,6 +145,7 @@ export const ColorFeedbackErrorHighIcon = "#380101";
|
|
|
144
145
|
export const ColorFeedbackErrorHighText = "#380101";
|
|
145
146
|
export const ColorFeedbackErrorLowBackground = "#ffeded";
|
|
146
147
|
export const ColorFeedbackErrorLowBorder = "#bb1919";
|
|
148
|
+
export const ColorFeedbackErrorLowBorderSubtle = "#f5c4c4";
|
|
147
149
|
export const ColorFeedbackErrorLowIcon = "#bb1919";
|
|
148
150
|
export const ColorFeedbackErrorLowText = "#bb1919";
|
|
149
151
|
export const ColorFeedbackErrorHighContrastBackground = "#bb1919";
|
|
@@ -157,6 +159,7 @@ export const ColorFeedbackNeutralHighIcon = "#1d1d1d";
|
|
|
157
159
|
export const ColorFeedbackNeutralHighText = "#1d1d1d";
|
|
158
160
|
export const ColorFeedbackNeutralLowBackground = "#f6f6f6";
|
|
159
161
|
export const ColorFeedbackNeutralLowBorder = "#4f4f4f";
|
|
162
|
+
export const ColorFeedbackNeutralLowBorderSubtle = "#e3e3e3";
|
|
160
163
|
export const ColorFeedbackNeutralLowIcon = "#4f4f4f";
|
|
161
164
|
export const ColorFeedbackNeutralLowText = "#4f4f4f";
|
|
162
165
|
export const ColorFeedbackNeutralHighContrastBackground = "#4f4f4f";
|
|
@@ -170,6 +173,7 @@ export const ColorFeedbackWarningHighIcon = "#302300";
|
|
|
170
173
|
export const ColorFeedbackWarningHighText = "#302300";
|
|
171
174
|
export const ColorFeedbackWarningLowBackground = "#fff7df";
|
|
172
175
|
export const ColorFeedbackWarningLowBorder = "#805c00";
|
|
176
|
+
export const ColorFeedbackWarningLowBorderSubtle = "#fae49d";
|
|
173
177
|
export const ColorFeedbackWarningLowIcon = "#805c00";
|
|
174
178
|
export const ColorFeedbackWarningLowText = "#805c00";
|
|
175
179
|
export const ColorFeedbackWarningHighContrastBackground = "#805c00";
|
|
@@ -183,6 +187,7 @@ export const ColorFeedbackSuccessHighIcon = "#003603";
|
|
|
183
187
|
export const ColorFeedbackSuccessHighText = "#003603";
|
|
184
188
|
export const ColorFeedbackSuccessLowBackground = "#eafeeb";
|
|
185
189
|
export const ColorFeedbackSuccessLowBorder = "#008207";
|
|
190
|
+
export const ColorFeedbackSuccessLowBorderSubtle = "#c8facb";
|
|
186
191
|
export const ColorFeedbackSuccessLowIcon = "#008207";
|
|
187
192
|
export const ColorFeedbackSuccessLowText = "#008207";
|
|
188
193
|
export const ColorFeedbackSuccessHighContrastBackground = "#008207";
|
|
@@ -198,42 +203,52 @@ export const ColorFocusDestructiveInField = "#bb1919";
|
|
|
198
203
|
export const ColorFocusSuccess = "#008207";
|
|
199
204
|
export const ColorRainbow1Background = "#fdefe2";
|
|
200
205
|
export const ColorRainbow1Border = "#9c5311";
|
|
206
|
+
export const ColorRainbow1BorderLight = "#fbd9ba";
|
|
201
207
|
export const ColorRainbow1Icon = "#9c5311";
|
|
202
208
|
export const ColorRainbow1Text = "#9c5311";
|
|
203
209
|
export const ColorRainbow2Background = "#fceae3";
|
|
204
210
|
export const ColorRainbow2Border = "#963715";
|
|
211
|
+
export const ColorRainbow2BorderLight = "#f8ccbc";
|
|
205
212
|
export const ColorRainbow2Icon = "#963715";
|
|
206
213
|
export const ColorRainbow2Text = "#963715";
|
|
207
|
-
export const ColorRainbow3Background = "#
|
|
214
|
+
export const ColorRainbow3Background = "#fff7df";
|
|
208
215
|
export const ColorRainbow3Border = "#795c00";
|
|
216
|
+
export const ColorRainbow3BorderLight = "#ffe286";
|
|
209
217
|
export const ColorRainbow3Icon = "#795c00";
|
|
210
218
|
export const ColorRainbow3Text = "#795c00";
|
|
211
219
|
export const ColorRainbow4Background = "#f9e3e3";
|
|
212
220
|
export const ColorRainbow4Border = "#cc1d1d";
|
|
221
|
+
export const ColorRainbow4BorderLight = "#f0bbbb";
|
|
213
222
|
export const ColorRainbow4Icon = "#cc1d1d";
|
|
214
223
|
export const ColorRainbow4Text = "#cc1d1d";
|
|
215
224
|
export const ColorRainbow5Background = "#ecf4f3";
|
|
216
225
|
export const ColorRainbow5Border = "#32504c";
|
|
226
|
+
export const ColorRainbow5BorderLight = "#d2e5e3";
|
|
217
227
|
export const ColorRainbow5Icon = "#32504c";
|
|
218
228
|
export const ColorRainbow5Text = "#32504c";
|
|
219
229
|
export const ColorRainbow6Background = "#f7e9ee";
|
|
220
230
|
export const ColorRainbow6Border = "#ab2d58";
|
|
231
|
+
export const ColorRainbow6BorderLight = "#e0b3c2";
|
|
221
232
|
export const ColorRainbow6Icon = "#ab2d58";
|
|
222
233
|
export const ColorRainbow6Text = "#ab2d58";
|
|
223
234
|
export const ColorRainbow7Background = "#e2f0e2";
|
|
224
235
|
export const ColorRainbow7Border = "#106f15";
|
|
236
|
+
export const ColorRainbow7BorderLight = "#b8dbba";
|
|
225
237
|
export const ColorRainbow7Icon = "#106f15";
|
|
226
238
|
export const ColorRainbow7Text = "#106f15";
|
|
227
239
|
export const ColorRainbow8Background = "#e4f0f2";
|
|
228
240
|
export const ColorRainbow8Border = "#1f717d";
|
|
241
|
+
export const ColorRainbow8BorderLight = "#bedce0";
|
|
229
242
|
export const ColorRainbow8Icon = "#1f717d";
|
|
230
243
|
export const ColorRainbow8Text = "#1f717d";
|
|
231
244
|
export const ColorRainbow9Background = "#f1f4e5";
|
|
232
245
|
export const ColorRainbow9Border = "#5c6e1f";
|
|
246
|
+
export const ColorRainbow9BorderLight = "#dde5c1";
|
|
233
247
|
export const ColorRainbow9Icon = "#5c6e1f";
|
|
234
248
|
export const ColorRainbow9Text = "#5c6e1f";
|
|
235
249
|
export const ColorRainbow10Background = "#ededed";
|
|
236
250
|
export const ColorRainbow10Border = "#484848";
|
|
251
|
+
export const ColorRainbow10BorderLight = "#cccccc";
|
|
237
252
|
export const ColorRainbow10Icon = "#484848";
|
|
238
253
|
export const ColorRainbow10Text = "#484848";
|
|
239
254
|
export const ColorDontUseBorder = "#e3e3e3";
|
|
@@ -423,7 +438,7 @@ export const ComponentsAlertNeutralBorder = "#4f4f4f";
|
|
|
423
438
|
export const ComponentsAlertNeutralIcon = "#4f4f4f";
|
|
424
439
|
export const ComponentsAvatarBackground1 = "#fdefe2";
|
|
425
440
|
export const ComponentsAvatarBackground2 = "#fceae3";
|
|
426
|
-
export const ComponentsAvatarBackground3 = "#
|
|
441
|
+
export const ComponentsAvatarBackground3 = "#fff7df";
|
|
427
442
|
export const ComponentsAvatarBackground4 = "#f9e3e3";
|
|
428
443
|
export const ComponentsAvatarBackground5 = "#ecf4f3";
|
|
429
444
|
export const ComponentsAvatarBackground6 = "#f7e9ee";
|
package/dist/plugin/index.d.ts
CHANGED
package/dist/plugin/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview This file contains various tailwind utilities for nova
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
config?: Partial<import("tailwindcss/types/config.js").Config>;
|
|
7
|
-
};
|
|
4
|
+
import plugin from 'tailwindcss/plugin.js';
|
|
5
|
+
export declare const novaTailwindPlugin: ReturnType<typeof plugin>;
|
|
8
6
|
export default novaTailwindPlugin;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import plugin from 'tailwindcss/plugin.js';
|
|
5
5
|
import { NOVA_TAILWIND_TOKENS } from '../generated/nova-tailwind-tokens.js';
|
|
6
6
|
import { NOVA_TAILWIND_COMPONENTS } from '../generated/nova-tailwind-components.js';
|
|
7
|
+
import { getTypographyUtilities } from './typography.js';
|
|
7
8
|
export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase, theme }) => {
|
|
8
9
|
addBase({
|
|
9
10
|
'body, html': {
|
|
@@ -66,103 +67,6 @@ export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase
|
|
|
66
67
|
addComponents({
|
|
67
68
|
...NOVA_TAILWIND_COMPONENTS,
|
|
68
69
|
});
|
|
69
|
-
// Typography configuration for programmatic utility generation
|
|
70
|
-
const typographyConfig = {
|
|
71
|
-
heading: {
|
|
72
|
-
xl: {
|
|
73
|
-
size: '4xl',
|
|
74
|
-
lineHeight: 'leading-px-10',
|
|
75
|
-
letterSpacing: 'heading-xl',
|
|
76
|
-
},
|
|
77
|
-
lg: {
|
|
78
|
-
size: '3xl',
|
|
79
|
-
lineHeight: 'leading-px-8',
|
|
80
|
-
letterSpacing: 'heading-lg',
|
|
81
|
-
},
|
|
82
|
-
md: {
|
|
83
|
-
size: '2xl',
|
|
84
|
-
lineHeight: 'leading-px-7',
|
|
85
|
-
letterSpacing: 'heading-md',
|
|
86
|
-
},
|
|
87
|
-
sm: {
|
|
88
|
-
size: 'xl',
|
|
89
|
-
lineHeight: 'leading-px-6',
|
|
90
|
-
letterSpacing: 'heading-sm',
|
|
91
|
-
},
|
|
92
|
-
xs: {
|
|
93
|
-
size: 'lg',
|
|
94
|
-
lineHeight: 'leading-px-6',
|
|
95
|
-
letterSpacing: 'heading-xs',
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
text: {
|
|
99
|
-
xl: {
|
|
100
|
-
size: 'xl',
|
|
101
|
-
lineHeight: 'xl',
|
|
102
|
-
},
|
|
103
|
-
lg: {
|
|
104
|
-
size: 'lg',
|
|
105
|
-
lineHeight: 'lg',
|
|
106
|
-
},
|
|
107
|
-
md: {
|
|
108
|
-
size: 'md',
|
|
109
|
-
lineHeight: 'base',
|
|
110
|
-
},
|
|
111
|
-
sm: {
|
|
112
|
-
size: 'sm',
|
|
113
|
-
lineHeight: 'sm',
|
|
114
|
-
},
|
|
115
|
-
xs: {
|
|
116
|
-
size: 'xs',
|
|
117
|
-
lineHeight: 'xs',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
mono: {
|
|
121
|
-
md: {
|
|
122
|
-
size: 'md',
|
|
123
|
-
lineHeight: 'base',
|
|
124
|
-
},
|
|
125
|
-
sm: {
|
|
126
|
-
size: 'sm',
|
|
127
|
-
lineHeight: 'sm',
|
|
128
|
-
},
|
|
129
|
-
xs: {
|
|
130
|
-
size: 'xs',
|
|
131
|
-
lineHeight: 'xs',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
const weights = ['regular', 'medium', 'bold'];
|
|
136
|
-
const weightMap = {
|
|
137
|
-
regular: 'low-emphasis',
|
|
138
|
-
medium: 'medium-emphasis',
|
|
139
|
-
bold: 'high-emphasis',
|
|
140
|
-
};
|
|
141
|
-
// Generate typography utilities programmatically
|
|
142
|
-
const typographyUtilities = {};
|
|
143
|
-
Object.entries(typographyConfig).forEach(([type, sizes]) => {
|
|
144
|
-
Object.entries(sizes).forEach(([size, config]) => {
|
|
145
|
-
weights.forEach((weight) => {
|
|
146
|
-
const className = `.typo-${type}-${size}-${weight}`;
|
|
147
|
-
const baseStyles = {
|
|
148
|
-
'font-size': `var(--font-size-${config.size})`,
|
|
149
|
-
'font-weight': `var(--font-weight-${weightMap[weight]})`,
|
|
150
|
-
'line-height': `var(--${config.lineHeight.startsWith('leading-')
|
|
151
|
-
? config.lineHeight
|
|
152
|
-
: `line-height-${config.lineHeight}`})`,
|
|
153
|
-
};
|
|
154
|
-
// Add letter-spacing for headings
|
|
155
|
-
if (type === 'heading' && 'letterSpacing' in config) {
|
|
156
|
-
baseStyles['letter-spacing'] = `var(--letter-spacing-${config.letterSpacing})`;
|
|
157
|
-
}
|
|
158
|
-
// Add font-family for mono
|
|
159
|
-
if (type === 'mono') {
|
|
160
|
-
baseStyles['font-family'] = 'var(--font-family-mono), monospace';
|
|
161
|
-
}
|
|
162
|
-
typographyUtilities[className] = baseStyles;
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
70
|
addUtilities({
|
|
167
71
|
...NOVA_TAILWIND_TOKENS,
|
|
168
72
|
'.w-inherit': {
|
|
@@ -183,8 +87,7 @@ export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase
|
|
|
183
87
|
'.w-unset': {
|
|
184
88
|
width: 'unset',
|
|
185
89
|
},
|
|
186
|
-
|
|
187
|
-
...typographyUtilities,
|
|
90
|
+
...getTypographyUtilities(),
|
|
188
91
|
});
|
|
189
92
|
});
|
|
190
93
|
export default novaTailwindPlugin;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Shared source of truth for the `.typo-{type}-{size}-{weight}`
|
|
3
|
+
* utility classes. Consumed by the Tailwind plugin (runtime utilities), the
|
|
4
|
+
* `@source inline()` generator (CSS safelisting), and the LLM extractor
|
|
5
|
+
* (structured JSON for AI consumers).
|
|
6
|
+
*/
|
|
7
|
+
export declare const TYPOGRAPHY_WEIGHTS: readonly ["regular", "medium", "bold"];
|
|
8
|
+
export type TypographyWeight = (typeof TYPOGRAPHY_WEIGHTS)[number];
|
|
9
|
+
export declare const TYPOGRAPHY_WEIGHT_MAP: Record<TypographyWeight, string>;
|
|
10
|
+
/** Heading size configuration with letter spacing token. */
|
|
11
|
+
type HeadingSizeConfig = {
|
|
12
|
+
/** Font size token key (matches `--font-size-{size}`). */
|
|
13
|
+
size: string;
|
|
14
|
+
/** Line-height token key (either `leading-*` utility or `--line-height-*` var suffix). */
|
|
15
|
+
lineHeight: string;
|
|
16
|
+
/** Letter-spacing token key (matches `--letter-spacing-{letterSpacing}`). */
|
|
17
|
+
letterSpacing: string;
|
|
18
|
+
};
|
|
19
|
+
/** Text/mono size configuration without letter spacing. */
|
|
20
|
+
type TextSizeConfig = {
|
|
21
|
+
/** Font size token key (matches `--font-size-{size}`). */
|
|
22
|
+
size: string;
|
|
23
|
+
/** Line-height token key (either `leading-*` utility or `--line-height-*` var suffix). */
|
|
24
|
+
lineHeight: string;
|
|
25
|
+
};
|
|
26
|
+
/** Top-level typography configuration grouped by type. */
|
|
27
|
+
type TypographyConfig = {
|
|
28
|
+
/** Heading typography sizes keyed by size name (xs…xl). */
|
|
29
|
+
heading: Record<string, HeadingSizeConfig>;
|
|
30
|
+
/** Body text typography sizes keyed by size name (xs…xl). */
|
|
31
|
+
text: Record<string, TextSizeConfig>;
|
|
32
|
+
/** Monospace typography sizes keyed by size name (xs…md). */
|
|
33
|
+
mono: Record<string, TextSizeConfig>;
|
|
34
|
+
};
|
|
35
|
+
export declare const TYPOGRAPHY_CONFIG: TypographyConfig;
|
|
36
|
+
export type TypographyType = keyof typeof TYPOGRAPHY_CONFIG;
|
|
37
|
+
/** Structured typography entry consumed by Tailwind, safelisting, and LLM tooling. */
|
|
38
|
+
export type TypographyTokenEntry = {
|
|
39
|
+
/** Utility class name without the leading dot (e.g. `typo-heading-md-bold`). */
|
|
40
|
+
className: string;
|
|
41
|
+
/** Typography family (heading, text, or mono). */
|
|
42
|
+
type: TypographyType;
|
|
43
|
+
/** Size key within the given type (e.g. `md`, `xl`). */
|
|
44
|
+
size: string;
|
|
45
|
+
/** Weight variant (regular, medium, bold). */
|
|
46
|
+
weight: TypographyWeight;
|
|
47
|
+
/** CSS custom-property references (with leading `--`) resolved for this entry. */
|
|
48
|
+
tokens: {
|
|
49
|
+
/** Font-size CSS variable name. */
|
|
50
|
+
fontSize: string;
|
|
51
|
+
/** Font-weight CSS variable name. */
|
|
52
|
+
fontWeight: string;
|
|
53
|
+
/** Line-height CSS variable name. */
|
|
54
|
+
lineHeight: string;
|
|
55
|
+
/** Letter-spacing CSS variable name (heading only). */
|
|
56
|
+
letterSpacing?: string;
|
|
57
|
+
/** Font-family CSS variable name (mono only). */
|
|
58
|
+
fontFamily?: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Returns the `{ '.typo-...': { 'font-size': 'var(--...)', ... } }` map
|
|
63
|
+
* consumed by Tailwind's `addUtilities`.
|
|
64
|
+
* @returns {Record<string, Record<string, string>>} Map from utility class selector to CSS declaration block.
|
|
65
|
+
*/
|
|
66
|
+
export declare function getTypographyUtilities(): Record<string, Record<string, string>>;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the typography class names without the leading `.`, suitable for
|
|
69
|
+
* Tailwind v4 `@source inline()` directives.
|
|
70
|
+
* @returns {string[]} List of utility class names.
|
|
71
|
+
*/
|
|
72
|
+
export declare function getTypographyClassNames(): string[];
|
|
73
|
+
/**
|
|
74
|
+
* Returns structured, JSON-friendly typography token entries for LLM and
|
|
75
|
+
* documentation consumers.
|
|
76
|
+
* @returns {TypographyTokenEntry[]} Array of structured typography entries.
|
|
77
|
+
*/
|
|
78
|
+
export declare function getTypographyTokenEntries(): TypographyTokenEntry[];
|
|
79
|
+
export {};
|