@nova-design-system/nova-base 3.14.0 → 3.16.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/assets/icons/icon-sprite.svg +1 -1
- package/dist/cjs/generated/nova-tailwind-components.js +205 -3
- package/dist/cjs/plugin/nova-plugin.js +49 -49
- package/dist/cjs/plugin/nova-theme.js +26 -0
- package/dist/css/nova-utils.css +207 -4
- package/dist/css/ocean.css +29 -4
- package/dist/css/spark.css +29 -4
- package/dist/generated/nova-tailwind-components.d.ts +199 -0
- package/dist/generated/nova-tailwind-components.js +205 -3
- package/dist/js/ocean_dark.d.ts +10 -0
- package/dist/js/ocean_dark.js +10 -0
- package/dist/js/ocean_light.d.ts +10 -0
- package/dist/js/ocean_light.js +12 -2
- package/dist/js/primitives.d.ts +5 -0
- package/dist/js/primitives.js +5 -0
- package/dist/js/spark_dark.d.ts +10 -0
- package/dist/js/spark_dark.js +10 -0
- package/dist/js/spark_light.d.ts +10 -0
- package/dist/js/spark_light.js +12 -2
- package/dist/plugin/nova-plugin.js +49 -49
- package/dist/plugin/nova-theme.js +26 -0
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase
|
|
|
24
24
|
a: {
|
|
25
25
|
color: 'var(--color-interaction-link-high-text)',
|
|
26
26
|
'text-decoration': 'underline',
|
|
27
|
-
fontWeight: '
|
|
27
|
+
fontWeight: 'var(--font-weight-high-emphasis)',
|
|
28
28
|
},
|
|
29
29
|
'a:hover': {
|
|
30
30
|
color: 'var(--color-interaction-link-high-text-hover)',
|
|
@@ -97,223 +97,223 @@ export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase
|
|
|
97
97
|
// Headings
|
|
98
98
|
'.typo-heading-xl-regular': {
|
|
99
99
|
'font-size': 'var(--font-size-4xl)',
|
|
100
|
-
'font-weight': '
|
|
100
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
101
101
|
'line-height': 'var(--leading-px-10)',
|
|
102
102
|
'letter-spacing': 'var(--letter-spacing-heading-xl)',
|
|
103
103
|
},
|
|
104
104
|
'.typo-heading-xl-medium': {
|
|
105
105
|
'font-size': 'var(--font-size-4xl)',
|
|
106
|
-
'font-weight': '
|
|
106
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
107
107
|
'line-height': 'var(--leading-px-10)',
|
|
108
108
|
'letter-spacing': 'var(--letter-spacing-heading-xl)',
|
|
109
109
|
},
|
|
110
110
|
'.typo-heading-xl-bold': {
|
|
111
111
|
'font-size': 'var(--font-size-4xl)',
|
|
112
|
-
'font-weight': '
|
|
112
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
113
113
|
'line-height': 'var(--leading-px-10)',
|
|
114
114
|
'letter-spacing': 'var(--letter-spacing-heading-xl)',
|
|
115
115
|
},
|
|
116
116
|
'.typo-heading-lg-regular': {
|
|
117
117
|
'font-size': 'var(--font-size-3xl)',
|
|
118
|
-
'font-weight': '
|
|
118
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
119
119
|
'line-height': 'var(--leading-px-8)',
|
|
120
120
|
'letter-spacing': 'var(--letter-spacing-heading-lg)',
|
|
121
121
|
},
|
|
122
122
|
'.typo-heading-lg-medium': {
|
|
123
123
|
'font-size': 'var(--font-size-3xl)',
|
|
124
|
-
'font-weight': '
|
|
124
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
125
125
|
'line-height': 'var(--leading-px-8)',
|
|
126
126
|
'letter-spacing': 'var(--letter-spacing-heading-lg)',
|
|
127
127
|
},
|
|
128
128
|
'.typo-heading-lg-bold': {
|
|
129
129
|
'font-size': 'var(--font-size-3xl)',
|
|
130
|
-
'font-weight': '
|
|
130
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
131
131
|
'line-height': 'var(--leading-px-8)',
|
|
132
132
|
'letter-spacing': 'var(--letter-spacing-heading-lg)',
|
|
133
133
|
},
|
|
134
134
|
'.typo-heading-md-regular': {
|
|
135
135
|
'font-size': 'var(--font-size-2xl)',
|
|
136
|
-
'font-weight': '
|
|
136
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
137
137
|
'line-height': 'var(--leading-px-7)',
|
|
138
138
|
'letter-spacing': 'var(--letter-spacing-heading-md)',
|
|
139
139
|
},
|
|
140
140
|
'.typo-heading-md-medium': {
|
|
141
141
|
'font-size': 'var(--font-size-2xl)',
|
|
142
|
-
'font-weight': '
|
|
142
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
143
143
|
'line-height': 'var(--leading-px-7)',
|
|
144
144
|
'letter-spacing': 'var(--letter-spacing-heading-md)',
|
|
145
145
|
},
|
|
146
146
|
'.typo-heading-md-bold': {
|
|
147
147
|
'font-size': 'var(--font-size-2xl)',
|
|
148
|
-
'font-weight': '
|
|
148
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
149
149
|
'line-height': 'var(--leading-px-7)',
|
|
150
150
|
'letter-spacing': 'var(--letter-spacing-heading-md)',
|
|
151
151
|
},
|
|
152
152
|
'.typo-heading-sm-regular': {
|
|
153
153
|
'font-size': 'var(--font-size-xl)',
|
|
154
|
-
'font-weight': '
|
|
154
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
155
155
|
'line-height': 'var(--leading-px-6)',
|
|
156
156
|
'letter-spacing': 'var(--letter-spacing-heading-sm)',
|
|
157
157
|
},
|
|
158
158
|
'.typo-heading-sm-medium': {
|
|
159
159
|
'font-size': 'var(--font-size-xl)',
|
|
160
|
-
'font-weight': '
|
|
160
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
161
161
|
'line-height': 'var(--leading-px-6)',
|
|
162
162
|
'letter-spacing': 'var(--letter-spacing-heading-sm)',
|
|
163
163
|
},
|
|
164
164
|
'.typo-heading-sm-bold': {
|
|
165
165
|
'font-size': 'var(--font-size-xl)',
|
|
166
|
-
'font-weight': '
|
|
166
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
167
167
|
'line-height': 'var(--leading-px-6)',
|
|
168
168
|
'letter-spacing': 'var(--letter-spacing-heading-sm)',
|
|
169
169
|
},
|
|
170
170
|
'.typo-heading-xs-regular': {
|
|
171
171
|
'font-size': 'var(--font-size-lg)',
|
|
172
|
-
'font-weight': '
|
|
172
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
173
173
|
'line-height': 'var(--leading-px-6)',
|
|
174
174
|
'letter-spacing': 'var(--letter-spacing-heading-xs)',
|
|
175
175
|
},
|
|
176
176
|
'.typo-heading-xs-medium': {
|
|
177
177
|
'font-size': 'var(--font-size-lg)',
|
|
178
|
-
'font-weight': '
|
|
178
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
179
179
|
'line-height': 'var(--leading-px-6)',
|
|
180
180
|
'letter-spacing': 'var(--letter-spacing-heading-xs)',
|
|
181
181
|
},
|
|
182
182
|
'.typo-heading-xs-bold': {
|
|
183
183
|
'font-size': 'var(--font-size-lg)',
|
|
184
|
-
'font-weight': '
|
|
184
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
185
185
|
'line-height': 'var(--leading-px-6)',
|
|
186
186
|
'letter-spacing': 'var(--letter-spacing-heading-xs)',
|
|
187
187
|
},
|
|
188
188
|
// Text
|
|
189
189
|
'.typo-text-xl-regular': {
|
|
190
190
|
'font-size': 'var(--font-size-xl)',
|
|
191
|
-
'font-weight': '
|
|
191
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
192
192
|
'line-height': 'var(--line-height-xl)',
|
|
193
193
|
},
|
|
194
194
|
'.typo-text-xl-medium': {
|
|
195
195
|
'font-size': 'var(--font-size-xl)',
|
|
196
|
-
'font-weight': '
|
|
196
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
197
197
|
'line-height': 'var(--line-height-xl)',
|
|
198
198
|
},
|
|
199
199
|
'.typo-text-xl-bold': {
|
|
200
200
|
'font-size': 'var(--font-size-xl)',
|
|
201
|
-
'font-weight': '
|
|
201
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
202
202
|
'line-height': 'var(--line-height-xl)',
|
|
203
203
|
},
|
|
204
204
|
'.typo-text-lg-regular': {
|
|
205
205
|
'font-size': 'var(--font-size-lg)',
|
|
206
|
-
'font-weight': '
|
|
206
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
207
207
|
'line-height': 'var(--line-height-lg)',
|
|
208
208
|
},
|
|
209
209
|
'.typo-text-lg-medium': {
|
|
210
210
|
'font-size': 'var(--font-size-lg)',
|
|
211
|
-
'font-weight': '
|
|
211
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
212
212
|
'line-height': 'var(--line-height-lg)',
|
|
213
213
|
},
|
|
214
214
|
'.typo-text-lg-bold': {
|
|
215
215
|
'font-size': 'var(--font-size-lg)',
|
|
216
|
-
'font-weight': '
|
|
216
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
217
217
|
'line-height': 'var(--line-height-lg)',
|
|
218
218
|
},
|
|
219
219
|
'.typo-text-md-regular': {
|
|
220
220
|
'font-size': 'var(--font-size-md)',
|
|
221
|
-
'font-weight': '
|
|
221
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
222
222
|
'line-height': 'var(--line-height-base)',
|
|
223
223
|
},
|
|
224
224
|
'.typo-text-md-medium': {
|
|
225
225
|
'font-size': 'var(--font-size-md)',
|
|
226
|
-
'font-weight': '
|
|
226
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
227
227
|
'line-height': 'var(--line-height-base)',
|
|
228
228
|
},
|
|
229
229
|
'.typo-text-md-bold': {
|
|
230
230
|
'font-size': 'var(--font-size-md)',
|
|
231
|
-
'font-weight': '
|
|
231
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
232
232
|
'line-height': 'var(--line-height-base)',
|
|
233
233
|
},
|
|
234
234
|
'.typo-text-sm-regular': {
|
|
235
235
|
'font-size': 'var(--font-size-sm)',
|
|
236
|
-
'font-weight': '
|
|
236
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
237
237
|
'line-height': 'var(--line-height-sm)',
|
|
238
238
|
},
|
|
239
239
|
'.typo-text-sm-medium': {
|
|
240
240
|
'font-size': 'var(--font-size-sm)',
|
|
241
|
-
'font-weight': '
|
|
241
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
242
242
|
'line-height': 'var(--line-height-sm)',
|
|
243
243
|
},
|
|
244
244
|
'.typo-text-sm-bold': {
|
|
245
245
|
'font-size': 'var(--font-size-sm)',
|
|
246
|
-
'font-weight': '
|
|
246
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
247
247
|
'line-height': 'var(--line-height-sm)',
|
|
248
248
|
},
|
|
249
249
|
'.typo-text-xs-regular': {
|
|
250
250
|
'font-size': 'var(--font-size-xs)',
|
|
251
|
-
'font-weight': '
|
|
251
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
252
252
|
'line-height': 'var(--line-height-xs)',
|
|
253
253
|
},
|
|
254
254
|
'.typo-text-xs-medium': {
|
|
255
255
|
'font-size': 'var(--font-size-xs)',
|
|
256
|
-
'font-weight': '
|
|
256
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
257
257
|
'line-height': 'var(--line-height-xs)',
|
|
258
258
|
},
|
|
259
259
|
'.typo-text-xs-bold': {
|
|
260
260
|
'font-size': 'var(--font-size-xs)',
|
|
261
|
-
'font-weight': '
|
|
261
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
262
262
|
'line-height': 'var(--line-height-xs)',
|
|
263
263
|
},
|
|
264
264
|
// Mono
|
|
265
265
|
'.typo-mono-md-regular': {
|
|
266
|
-
'font-family': '
|
|
266
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
267
267
|
'font-size': 'var(--font-size-md)',
|
|
268
|
-
'font-weight': '
|
|
268
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
269
269
|
'line-height': 'var(--line-height-base)',
|
|
270
270
|
},
|
|
271
271
|
'.typo-mono-md-medium': {
|
|
272
|
-
'font-family': '
|
|
272
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
273
273
|
'font-size': 'var(--font-size-md)',
|
|
274
|
-
'font-weight': '
|
|
274
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
275
275
|
'line-height': 'var(--line-height-base)',
|
|
276
276
|
},
|
|
277
277
|
'.typo-mono-md-bold': {
|
|
278
|
-
'font-family': '
|
|
278
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
279
279
|
'font-size': 'var(--font-size-md)',
|
|
280
|
-
'font-weight': '
|
|
280
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
281
281
|
'line-height': 'var(--line-height-base)',
|
|
282
282
|
},
|
|
283
283
|
'.typo-mono-sm-regular': {
|
|
284
|
-
'font-family': '
|
|
284
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
285
285
|
'font-size': 'var(--font-size-sm)',
|
|
286
|
-
'font-weight': '
|
|
286
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
287
287
|
'line-height': 'var(--line-height-sm)',
|
|
288
288
|
},
|
|
289
289
|
'.typo-mono-sm-medium': {
|
|
290
|
-
'font-family': '
|
|
290
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
291
291
|
'font-size': 'var(--font-size-sm)',
|
|
292
|
-
'font-weight': '
|
|
292
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
293
293
|
'line-height': 'var(--line-height-sm)',
|
|
294
294
|
},
|
|
295
295
|
'.typo-mono-sm-bold': {
|
|
296
|
-
'font-family': '
|
|
296
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
297
297
|
'font-size': 'var(--font-size-sm)',
|
|
298
|
-
'font-weight': '
|
|
298
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
299
299
|
'line-height': 'var(--line-height-sm)',
|
|
300
300
|
},
|
|
301
301
|
'.typo-mono-xs-regular': {
|
|
302
|
-
'font-family': '
|
|
302
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
303
303
|
'font-size': 'var(--font-size-xs)',
|
|
304
|
-
'font-weight': '
|
|
304
|
+
'font-weight': 'var(--font-weight-low-emphasis)',
|
|
305
305
|
'line-height': 'var(--line-height-xs)',
|
|
306
306
|
},
|
|
307
307
|
'.typo-mono-xs-medium': {
|
|
308
|
-
'font-family': '
|
|
308
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
309
309
|
'font-size': 'var(--font-size-xs)',
|
|
310
|
-
'font-weight': '
|
|
310
|
+
'font-weight': 'var(--font-weight-medium-emphasis)',
|
|
311
311
|
'line-height': 'var(--line-height-xs)',
|
|
312
312
|
},
|
|
313
313
|
'.typo-mono-xs-bold': {
|
|
314
|
-
'font-family': '
|
|
314
|
+
'font-family': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
|
|
315
315
|
'font-size': 'var(--font-size-xs)',
|
|
316
|
-
'font-weight': '
|
|
316
|
+
'font-weight': 'var(--font-weight-high-emphasis)',
|
|
317
317
|
'line-height': 'var(--line-height-xs)',
|
|
318
318
|
},
|
|
319
319
|
});
|
|
@@ -217,6 +217,32 @@ export const colors = {
|
|
|
217
217
|
900: 'var(--color-orange-900)',
|
|
218
218
|
950: 'var(--color-orange-950)',
|
|
219
219
|
},
|
|
220
|
+
// Brand colors
|
|
221
|
+
brand: {
|
|
222
|
+
50: 'var(--color-brand-50)',
|
|
223
|
+
100: 'var(--color-brand-100)',
|
|
224
|
+
200: 'var(--color-brand-200)',
|
|
225
|
+
300: 'var(--color-brand-300)',
|
|
226
|
+
400: 'var(--color-brand-400)',
|
|
227
|
+
500: 'var(--color-brand-500)',
|
|
228
|
+
600: 'var(--color-brand-600)',
|
|
229
|
+
700: 'var(--color-brand-700)',
|
|
230
|
+
800: 'var(--color-brand-800)',
|
|
231
|
+
900: 'var(--color-brand-900)',
|
|
232
|
+
},
|
|
233
|
+
// Accent colors
|
|
234
|
+
accent: {
|
|
235
|
+
50: 'var(--color-accent-50)',
|
|
236
|
+
100: 'var(--color-accent-100)',
|
|
237
|
+
200: 'var(--color-accent-200)',
|
|
238
|
+
300: 'var(--color-accent-300)',
|
|
239
|
+
400: 'var(--color-accent-400)',
|
|
240
|
+
500: 'var(--color-accent-500)',
|
|
241
|
+
600: 'var(--color-accent-600)',
|
|
242
|
+
700: 'var(--color-accent-700)',
|
|
243
|
+
800: 'var(--color-accent-800)',
|
|
244
|
+
900: 'var(--color-accent-900)',
|
|
245
|
+
},
|
|
220
246
|
// Base colors
|
|
221
247
|
black: 'var(--color-base-black)',
|
|
222
248
|
white: 'var(--color-base-white)',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nova-design-system/nova-base",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"description": "Nova is a design system created by Elia Group to empower creators to efficiently build solutions that people love to use.",
|
|
5
5
|
"author": "Elia Group",
|
|
6
6
|
"homepage": "https://nova.eliagroup.io",
|