@kiva/kv-tokens 3.7.3-next.2 → 3.7.4
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 +4 -29
- package/configs/kivaTypography.js +33 -56
- package/configs/tailwind.config.js +4 -4
- package/package.json +2 -2
- package/primitives.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,48 +3,23 @@
|
|
|
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.
|
|
6
|
+
## [3.7.4](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.7.3...@kiva/kv-tokens@3.7.4) (2026-04-01)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
*
|
|
12
|
-
* update global html headers + jumbo to match new type guidelines, refine underline sizes ([10e7295](https://github.com/kiva/kv-ui-elements/commit/10e7295686bca126525e3a4b5ff00de6fbe28dcc))
|
|
11
|
+
* update global base and small type sizes to match updated design definitions ([9b90164](https://github.com/kiva/kv-ui-elements/commit/9b901648e2d71164e108f18c628c0e7c0b8a62c2))
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
## [3.7.3
|
|
17
|
+
## [3.7.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.7.2...@kiva/kv-tokens@3.7.3) (2026-03-25)
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
### Bug Fixes
|
|
22
21
|
|
|
23
|
-
*
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## [3.7.3-next.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.7.2...@kiva/kv-tokens@3.7.3-next.0) (2026-03-19)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
* add smaller line-height to match new type base style definitions ([6b5b4fe](https://github.com/kiva/kv-ui-elements/commit/6b5b4feffa71f70066fdce9d2cc5dd11d9e98c69))
|
|
35
|
-
* demo base and small type sizes ([865dacc](https://github.com/kiva/kv-ui-elements/commit/865dacc45b00f10181b84cd000db2cca51643a0d))
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [3.7.3-alpha.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.7.2...@kiva/kv-tokens@3.7.3-alpha.0) (2026-03-19)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Bug Fixes
|
|
45
|
-
|
|
46
|
-
* add smaller line-height to match new type base style definitions ([6b5b4fe](https://github.com/kiva/kv-ui-elements/commit/6b5b4feffa71f70066fdce9d2cc5dd11d9e98c69))
|
|
47
|
-
* demo base and small type sizes ([865dacc](https://github.com/kiva/kv-ui-elements/commit/865dacc45b00f10181b84cd000db2cca51643a0d))
|
|
22
|
+
* semantic style class ([d6dd649](https://github.com/kiva/kv-ui-elements/commit/d6dd649e5ec97153a97a5facf8d9ebbeb8edecd0))
|
|
48
23
|
|
|
49
24
|
|
|
50
25
|
|
|
@@ -291,88 +291,71 @@ export const textStyles = (() => {
|
|
|
291
291
|
const textJumbo = {
|
|
292
292
|
fontFamily: fonts.serif,
|
|
293
293
|
fontWeight: fontWeights.medium,
|
|
294
|
-
fontSize: rem(
|
|
295
|
-
letterSpacing:
|
|
296
|
-
lineHeight:
|
|
294
|
+
fontSize: rem(fontSizes.jumbo.sm),
|
|
295
|
+
letterSpacing: letterSpacings['-1'],
|
|
296
|
+
lineHeight: lineHeights.tight,
|
|
297
297
|
'@screen md': {
|
|
298
|
-
fontSize: rem(
|
|
299
|
-
letterSpacing: em(letterSpacings['-500'], semanticFontSizes.jumbo.md),
|
|
300
|
-
lineHeight: em(lineHeightsAbsolute.jumbo.md, semanticFontSizes.jumbo.md),
|
|
298
|
+
fontSize: rem(fontSizes.jumbo.md),
|
|
301
299
|
},
|
|
302
300
|
'@screen lg': {
|
|
303
|
-
fontSize: rem(
|
|
304
|
-
letterSpacing: em(letterSpacings['-600'], semanticFontSizes.jumbo.lg),
|
|
305
|
-
lineHeight: em(lineHeightsAbsolute.jumbo.lg, semanticFontSizes.jumbo.lg),
|
|
301
|
+
fontSize: rem(fontSizes.jumbo.lg),
|
|
306
302
|
},
|
|
307
303
|
};
|
|
308
304
|
|
|
309
305
|
const textH1 = {
|
|
310
306
|
fontFamily: fonts.serif,
|
|
311
|
-
fontSize: rem(
|
|
307
|
+
fontSize: rem(fontSizes.h1.sm),
|
|
312
308
|
fontWeight: fontWeights.medium,
|
|
313
|
-
letterSpacing: em(letterSpacings['-
|
|
314
|
-
lineHeight:
|
|
309
|
+
letterSpacing: em(letterSpacings['-0.5'], fontSizes.h1.md),
|
|
310
|
+
lineHeight: lineHeights.tight,
|
|
315
311
|
'@screen md': {
|
|
316
|
-
fontSize: rem(
|
|
317
|
-
letterSpacing: em(letterSpacings['-200'], semanticFontSizes.h1.md),
|
|
318
|
-
lineHeight: em(lineHeightsAbsolute.h1.md, semanticFontSizes.h1.md),
|
|
312
|
+
fontSize: rem(fontSizes.h1.md),
|
|
319
313
|
},
|
|
320
314
|
'@screen lg': {
|
|
321
|
-
fontSize: rem(
|
|
322
|
-
letterSpacing: em(letterSpacings['-300'], semanticFontSizes.h1.lg),
|
|
323
|
-
lineHeight: em(lineHeightsAbsolute.h1.lg, semanticFontSizes.h1.lg),
|
|
315
|
+
fontSize: rem(fontSizes.h1.lg),
|
|
324
316
|
},
|
|
325
317
|
};
|
|
326
318
|
|
|
327
319
|
const textH2 = {
|
|
328
320
|
fontFamily: fonts.serif,
|
|
329
|
-
fontSize: rem(
|
|
321
|
+
fontSize: rem(fontSizes.h2.sm),
|
|
330
322
|
fontWeight: fontWeights.medium,
|
|
331
|
-
letterSpacing: em(letterSpacings
|
|
332
|
-
lineHeight:
|
|
323
|
+
letterSpacing: em(letterSpacings.normal, fontSizes.h2.sm),
|
|
324
|
+
lineHeight: lineHeights.tight,
|
|
333
325
|
'@screen md': {
|
|
334
|
-
fontSize: rem(
|
|
335
|
-
letterSpacing: em(letterSpacings['-
|
|
336
|
-
lineHeight: em(lineHeightsAbsolute.h2.md, semanticFontSizes.h2.md),
|
|
326
|
+
fontSize: rem(fontSizes.h2.md),
|
|
327
|
+
letterSpacing: em(letterSpacings['-0.3'], fontSizes.h2.md),
|
|
337
328
|
},
|
|
338
329
|
'@screen lg': {
|
|
339
|
-
fontSize: rem(
|
|
340
|
-
letterSpacing: em(letterSpacings['-
|
|
341
|
-
lineHeight:
|
|
330
|
+
fontSize: rem(fontSizes.h2.lg),
|
|
331
|
+
letterSpacing: em(letterSpacings['-0.3'], fontSizes.h2.lg),
|
|
332
|
+
lineHeight: lineHeights['nearly-none'],
|
|
342
333
|
},
|
|
343
334
|
};
|
|
344
335
|
|
|
345
336
|
const textH3 = {
|
|
346
|
-
fontSize: rem(
|
|
347
|
-
fontWeight: fontWeights.
|
|
348
|
-
letterSpacing: em(letterSpacings
|
|
349
|
-
lineHeight:
|
|
337
|
+
fontSize: rem(fontSizes.h3.sm),
|
|
338
|
+
fontWeight: fontWeights.normal,
|
|
339
|
+
letterSpacing: em(letterSpacings['-1'], fontSizes.h3.sm),
|
|
340
|
+
lineHeight: lineHeights.tight,
|
|
350
341
|
'@screen md': {
|
|
351
|
-
fontSize: rem(
|
|
352
|
-
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.md),
|
|
353
|
-
lineHeight: em(lineHeightsAbsolute.h3.md, semanticFontSizes.h3.md),
|
|
342
|
+
fontSize: rem(fontSizes.h3.md),
|
|
354
343
|
},
|
|
355
344
|
'@screen lg': {
|
|
356
|
-
fontSize: rem(
|
|
357
|
-
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.lg),
|
|
358
|
-
lineHeight: em(lineHeightsAbsolute.h3.lg, semanticFontSizes.h3.lg),
|
|
345
|
+
fontSize: rem(fontSizes.h3.lg),
|
|
359
346
|
},
|
|
360
347
|
};
|
|
361
348
|
|
|
362
349
|
const textH4 = {
|
|
363
|
-
fontSize: rem(
|
|
350
|
+
fontSize: rem(fontSizes.h4.sm),
|
|
364
351
|
fontWeight: fontWeights.normal,
|
|
365
|
-
|
|
366
|
-
|
|
352
|
+
lineHeight: lineHeights.normal,
|
|
353
|
+
textTransform: 'uppercase',
|
|
367
354
|
'@screen md': {
|
|
368
|
-
fontSize: rem(
|
|
369
|
-
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.md),
|
|
370
|
-
lineHeight: em(lineHeightsAbsolute.h3.md, semanticFontSizes.h3.md),
|
|
355
|
+
fontSize: rem(fontSizes.h4.md),
|
|
371
356
|
},
|
|
372
357
|
'@screen lg': {
|
|
373
|
-
fontSize: rem(
|
|
374
|
-
letterSpacing: em(letterSpacings.normal, semanticFontSizes.h3.lg),
|
|
375
|
-
lineHeight: em(lineHeightsAbsolute.h3.lg, semanticFontSizes.h3.lg),
|
|
358
|
+
fontSize: rem(fontSizes.h4.lg),
|
|
376
359
|
},
|
|
377
360
|
};
|
|
378
361
|
|
|
@@ -401,20 +384,14 @@ export const textStyles = (() => {
|
|
|
401
384
|
const textBase = {
|
|
402
385
|
fontWeight: fontWeights.light,
|
|
403
386
|
fontSize: rem(fontSizes.base.sm),
|
|
404
|
-
|
|
405
|
-
lineHeight: lineHeights['140'],
|
|
406
|
-
'@screen lg': {
|
|
407
|
-
fontSize: rem(fontSizes.base.lg),
|
|
408
|
-
letterSpacing: em(letterSpacings.normal, fontSizes.base.sm),
|
|
409
|
-
},
|
|
387
|
+
lineHeight: em(lineHeightsAbsolute.base.sm, fontSizes.small.sm),
|
|
410
388
|
};
|
|
411
389
|
|
|
412
390
|
const textSmall = {
|
|
413
391
|
fontSize: rem(fontSizes.small.sm),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
},
|
|
392
|
+
fontWeight: fontWeights.light,
|
|
393
|
+
letterSpacing: em(letterSpacings.normal, fontSizes.small.sm),
|
|
394
|
+
lineHeight: em(lineHeightsAbsolute.caption.sm, fontSizes.small.sm),
|
|
418
395
|
};
|
|
419
396
|
|
|
420
397
|
const textLink = {
|
|
@@ -205,10 +205,10 @@ 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.
|
|
208
|
+
h1: textStyles.textH1,
|
|
209
|
+
h2: textStyles.textH2,
|
|
210
|
+
h3: textStyles.textH3,
|
|
211
|
+
h4: textStyles.textH4,
|
|
212
212
|
h5: textStyles.textH5,
|
|
213
213
|
small: textStyles.textSmall,
|
|
214
214
|
code: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-tokens",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.4",
|
|
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": "fa9a67cbfea7573790441d22c0e3a841b476c762"
|
|
27
27
|
}
|
package/primitives.js
CHANGED
|
@@ -433,7 +433,7 @@ export default {
|
|
|
433
433
|
base: {
|
|
434
434
|
sm: 16,
|
|
435
435
|
md: 16,
|
|
436
|
-
lg:
|
|
436
|
+
lg: 6,
|
|
437
437
|
},
|
|
438
438
|
jumbo: {
|
|
439
439
|
sm: 42,
|
|
@@ -535,7 +535,7 @@ export default {
|
|
|
535
535
|
150: 1.5,
|
|
536
536
|
},
|
|
537
537
|
lineHeightsAbsolute: {
|
|
538
|
-
jumbo: { sm:
|
|
538
|
+
jumbo: { sm: 47, md: 52, lg: 57 },
|
|
539
539
|
h1: { sm: 31, md: 31, lg: 36 },
|
|
540
540
|
h2: { sm: 26, md: 26, lg: 31 },
|
|
541
541
|
h3: { sm: 23, md: 23, lg: 26 },
|