Skip to content

Commit a86746f

Browse files
committed
fix: typography tokens declaration
1 parent 0275c6e commit a86746f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.changeset/mean-trains-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Fix typography presets declaration.

src/tokens/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { LAYOUT_TOKENS } from './layout';
2222
import { SHADOW_TOKENS } from './shadows';
2323
import { SIZE_NAME_TO_KEY, SIZE_TOKENS, SIZES } from './sizes';
2424
import { SPACE_TOKENS } from './spacing';
25+
import { TYPOGRAPHY_PRESETS } from './typography';
2526

2627
import type { Styles } from '@tenphi/tasty';
2728
import type { SizeKey, SizeName } from './sizes';
@@ -47,7 +48,7 @@ export const TOKENS: Styles = {
4748
...SIZE_TOKENS,
4849
...SHADOW_TOKENS,
4950
...LAYOUT_TOKENS,
50-
...generateTypographyTokens(),
51+
...generateTypographyTokens(TYPOGRAPHY_PRESETS),
5152
...COLOR_TOKENS,
5253
};
5354

@@ -59,4 +60,5 @@ export { SPACE_TOKENS } from './spacing';
5960
export { SHADOW_TOKENS } from './shadows';
6061
export { LAYOUT_TOKENS } from './layout';
6162
export { BASE_TOKENS } from './base';
62-
// TypographyPreset and TYPOGRAPHY_PRESETS are re-exported from @tenphi/tasty
63+
export { TYPOGRAPHY_PRESETS } from './typography';
64+
export type { TypographyPreset } from './typography';

0 commit comments

Comments
 (0)