@kiva/kv-tokens 3.7.3-next.1 → 3.7.3-next.2
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/CHANGELOG.md +12 -0
- package/configs/kivaTypography.js +48 -31
- package/configs/tailwind.config.js +5 -5
- package/package.json +2 -2
- package/primitives.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.7.3-next.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.7.3-next.1...@kiva/kv-tokens@3.7.3-next.2) (2026-03-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* semantic style class ([cc62fce](https://github.com/kiva/kv-ui-elements/commit/cc62fce672058ab82d84abafae1d12c28cf9cdf0))
|
|
12
|
+
* update global html headers + jumbo to match new type guidelines, refine underline sizes ([10e7295](https://github.com/kiva/kv-ui-elements/commit/10e7295686bca126525e3a4b5ff00de6fbe28dcc))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [3.7.3-next.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.7.3-next.0...@kiva/kv-tokens@3.7.3-next.1) (2026-03-26)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -291,71 +291,88 @@ export const textStyles = (() => {
|
|
|
291
291
|
const textJumbo = {
|
|
292
292
|
fontFamily: fonts.serif,
|
|
293
293
|
fontWeight: fontWeights.medium,
|
|
294
|
-
fontSize: rem(
|
|
295
|
-
letterSpacing: letterSpacings['-
|
|
296
|
-
lineHeight:
|
|
294
|
+
fontSize: rem(semanticFontSizes.jumbo.sm),
|
|
295
|
+
letterSpacing: em(letterSpacings['-400'], semanticFontSizes.jumbo.sm),
|
|
296
|
+
lineHeight: em(lineHeightsAbsolute.jumbo.sm, semanticFontSizes.jumbo.sm),
|
|
297
297
|
'@screen md': {
|
|
298
|
-
fontSize: rem(
|
|
298
|
+
fontSize: rem(semanticFontSizes.jumbo.md),
|
|
299
|
+
letterSpacing: em(letterSpacings['-500'], semanticFontSizes.jumbo.md),
|
|
300
|
+
lineHeight: em(lineHeightsAbsolute.jumbo.md, semanticFontSizes.jumbo.md),
|
|
299
301
|
},
|
|
300
302
|
'@screen lg': {
|
|
301
|
-
fontSize: rem(
|
|
303
|
+
fontSize: rem(semanticFontSizes.jumbo.lg),
|
|
304
|
+
letterSpacing: em(letterSpacings['-600'], semanticFontSizes.jumbo.lg),
|
|
305
|
+
lineHeight: em(lineHeightsAbsolute.jumbo.lg, semanticFontSizes.jumbo.lg),
|
|
302
306
|
},
|
|
303
307
|
};
|
|
304
308
|
|
|
305
309
|
const textH1 = {
|
|
306
310
|
fontFamily: fonts.serif,
|
|
307
|
-
fontSize: rem(
|
|
311
|
+
fontSize: rem(semanticFontSizes.h1.sm),
|
|
308
312
|
fontWeight: fontWeights.medium,
|
|
309
|
-
letterSpacing: em(letterSpacings['-
|
|
310
|
-
lineHeight:
|
|
313
|
+
letterSpacing: em(letterSpacings['-200'], semanticFontSizes.h1.sm),
|
|
314
|
+
lineHeight: em(lineHeightsAbsolute.h1.sm, semanticFontSizes.h1.sm),
|
|
311
315
|
'@screen md': {
|
|
312
|
-
fontSize: rem(
|
|
316
|
+
fontSize: rem(semanticFontSizes.h1.md),
|
|
317
|
+
letterSpacing: em(letterSpacings['-200'], semanticFontSizes.h1.md),
|
|
318
|
+
lineHeight: em(lineHeightsAbsolute.h1.md, semanticFontSizes.h1.md),
|
|
313
319
|
},
|
|
314
320
|
'@screen lg': {
|
|
315
|
-
fontSize: rem(
|
|
321
|
+
fontSize: rem(semanticFontSizes.h1.lg),
|
|
322
|
+
letterSpacing: em(letterSpacings['-300'], semanticFontSizes.h1.lg),
|
|
323
|
+
lineHeight: em(lineHeightsAbsolute.h1.lg, semanticFontSizes.h1.lg),
|
|
316
324
|
},
|
|
317
325
|
};
|
|
318
326
|
|
|
319
327
|
const textH2 = {
|
|
320
328
|
fontFamily: fonts.serif,
|
|
321
|
-
fontSize: rem(
|
|
329
|
+
fontSize: rem(semanticFontSizes.h2.sm),
|
|
322
330
|
fontWeight: fontWeights.medium,
|
|
323
|
-
letterSpacing: em(letterSpacings
|
|
324
|
-
lineHeight:
|
|
331
|
+
letterSpacing: em(letterSpacings['-100'], semanticFontSizes.h2.sm),
|
|
332
|
+
lineHeight: em(lineHeightsAbsolute.h2.sm, semanticFontSizes.h2.sm),
|
|
325
333
|
'@screen md': {
|
|
326
|
-
fontSize: rem(
|
|
327
|
-
letterSpacing: em(letterSpacings['-
|
|
334
|
+
fontSize: rem(semanticFontSizes.h2.md),
|
|
335
|
+
letterSpacing: em(letterSpacings['-100'], semanticFontSizes.h2.md),
|
|
336
|
+
lineHeight: em(lineHeightsAbsolute.h2.md, semanticFontSizes.h2.md),
|
|
328
337
|
},
|
|
329
338
|
'@screen lg': {
|
|
330
|
-
fontSize: rem(
|
|
331
|
-
letterSpacing: em(letterSpacings['-
|
|
332
|
-
lineHeight:
|
|
339
|
+
fontSize: rem(semanticFontSizes.h2.lg),
|
|
340
|
+
letterSpacing: em(letterSpacings['-200'], semanticFontSizes.h2.lg),
|
|
341
|
+
lineHeight: em(lineHeightsAbsolute.h2.lg, semanticFontSizes.h2.lg),
|
|
333
342
|
},
|
|
334
343
|
};
|
|
335
344
|
|
|
336
345
|
const textH3 = {
|
|
337
|
-
fontSize: rem(
|
|
338
|
-
fontWeight: fontWeights.
|
|
339
|
-
letterSpacing: em(letterSpacings
|
|
340
|
-
lineHeight:
|
|
346
|
+
fontSize: rem(semanticFontSizes.h3.sm),
|
|
347
|
+
fontWeight: fontWeights.light,
|
|
348
|
+
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.sm),
|
|
349
|
+
lineHeight: em(lineHeightsAbsolute.h3.sm, semanticFontSizes.h3.sm),
|
|
341
350
|
'@screen md': {
|
|
342
|
-
fontSize: rem(
|
|
351
|
+
fontSize: rem(semanticFontSizes.h3.md),
|
|
352
|
+
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.md),
|
|
353
|
+
lineHeight: em(lineHeightsAbsolute.h3.md, semanticFontSizes.h3.md),
|
|
343
354
|
},
|
|
344
355
|
'@screen lg': {
|
|
345
|
-
fontSize: rem(
|
|
356
|
+
fontSize: rem(semanticFontSizes.h3.lg),
|
|
357
|
+
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.lg),
|
|
358
|
+
lineHeight: em(lineHeightsAbsolute.h3.lg, semanticFontSizes.h3.lg),
|
|
346
359
|
},
|
|
347
360
|
};
|
|
348
361
|
|
|
349
362
|
const textH4 = {
|
|
350
|
-
fontSize: rem(
|
|
363
|
+
fontSize: rem(semanticFontSizes.h3.sm),
|
|
351
364
|
fontWeight: fontWeights.normal,
|
|
352
|
-
|
|
353
|
-
|
|
365
|
+
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.sm),
|
|
366
|
+
lineHeight: em(lineHeightsAbsolute.h3.sm, semanticFontSizes.h3.sm),
|
|
354
367
|
'@screen md': {
|
|
355
|
-
fontSize: rem(
|
|
368
|
+
fontSize: rem(semanticFontSizes.h3.md),
|
|
369
|
+
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.md),
|
|
370
|
+
lineHeight: em(lineHeightsAbsolute.h3.md, semanticFontSizes.h3.md),
|
|
356
371
|
},
|
|
357
372
|
'@screen lg': {
|
|
358
|
-
fontSize: rem(
|
|
373
|
+
fontSize: rem(semanticFontSizes.h3.lg),
|
|
374
|
+
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.lg),
|
|
375
|
+
lineHeight: em(lineHeightsAbsolute.h3.lg, semanticFontSizes.h3.lg),
|
|
359
376
|
},
|
|
360
377
|
};
|
|
361
378
|
|
|
@@ -482,7 +499,7 @@ export const textStyles = (() => {
|
|
|
482
499
|
},
|
|
483
500
|
};
|
|
484
501
|
|
|
485
|
-
const
|
|
502
|
+
const textSubheadline = {
|
|
486
503
|
fontFamily: fonts.sans,
|
|
487
504
|
fontWeight: fontWeights.light,
|
|
488
505
|
fontSize: rem(semanticFontSizes.h3.sm),
|
|
@@ -561,7 +578,7 @@ export const textStyles = (() => {
|
|
|
561
578
|
textDisplay,
|
|
562
579
|
textHeadline,
|
|
563
580
|
textHeadlineTwo,
|
|
564
|
-
|
|
581
|
+
textSubheadline,
|
|
565
582
|
textTitle,
|
|
566
583
|
textButtonLink,
|
|
567
584
|
textUpper,
|
|
@@ -205,11 +205,11 @@ export default {
|
|
|
205
205
|
'text-rendering': 'optimizeLegibility',
|
|
206
206
|
},
|
|
207
207
|
button: { fontWeight: 'inherit' },
|
|
208
|
-
h1: textStyles.
|
|
209
|
-
h2: textStyles.
|
|
210
|
-
h3: textStyles.
|
|
211
|
-
h4: textStyles.
|
|
212
|
-
h5: textStyles.
|
|
208
|
+
h1: textStyles.textHeadline,
|
|
209
|
+
h2: textStyles.textHeadlineTwo,
|
|
210
|
+
h3: textStyles.textSubheadline,
|
|
211
|
+
h4: textStyles.textTitle,
|
|
212
|
+
h5: textStyles.textH5,
|
|
213
213
|
small: textStyles.textSmall,
|
|
214
214
|
code: {
|
|
215
215
|
fontSize: '0.875em',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-tokens",
|
|
3
|
-
"version": "3.7.3-next.
|
|
3
|
+
"version": "3.7.3-next.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"@tailwindcss/typography": "^0.5.1",
|
|
24
24
|
"tailwindcss": "^3.4.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "c37f6bfc8cd9718a3e86c4f92947eda3ff70f5a8"
|
|
27
27
|
}
|
package/primitives.js
CHANGED
|
@@ -517,6 +517,7 @@ export default {
|
|
|
517
517
|
},
|
|
518
518
|
},
|
|
519
519
|
fontWeights: {
|
|
520
|
+
// Conicides with "book" for Post Grotesk in Figma
|
|
520
521
|
light: 300,
|
|
521
522
|
// Note: this is referred to as "medium" in the figma files for Post Grotesk but matches the font-weight of the font file we load
|
|
522
523
|
normal: 400,
|
|
@@ -534,7 +535,7 @@ export default {
|
|
|
534
535
|
150: 1.5,
|
|
535
536
|
},
|
|
536
537
|
lineHeightsAbsolute: {
|
|
537
|
-
jumbo: { sm:
|
|
538
|
+
jumbo: { sm: 52, md: 52, lg: 57 },
|
|
538
539
|
h1: { sm: 31, md: 31, lg: 36 },
|
|
539
540
|
h2: { sm: 26, md: 26, lg: 31 },
|
|
540
541
|
h3: { sm: 23, md: 23, lg: 26 },
|