Skip to content

Commit 5f0b4b5

Browse files
committed
feat(theme): expose typography tokens
1 parent 908ec62 commit 5f0b4b5

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎ui/theme/package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
},
1111
"main": "./src/index.ts",
1212
"files": [
13-
"dist"
13+
"assets",
14+
"dist",
15+
"licenses"
1416
],
1517
"scripts": {
1618
"build": "yarn library build",

‎ui/theme/src/theme.ts‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
import type { Colors } from './tokens/index.js'
1+
import type { Colors } from './tokens/index.js'
2+
import type { TypographyTokens } from './tokens/index.js'
23

3-
import { darkColors } from './tokens/index.js'
4-
import { lightColors } from './tokens/index.js'
4+
import { darkColors } from './tokens/index.js'
5+
import { lightColors } from './tokens/index.js'
6+
import { typography } from './tokens/index.js'
57

68
export interface Theme {
79
colors: Colors
10+
typography: TypographyTokens
811
}
912

1013
export const lightTheme: Theme = {
1114
colors: lightColors,
15+
typography,
1216
}
1317

1418
export const darkTheme: Theme = {
1519
colors: darkColors,
20+
typography,
1621
}

‎ui/theme/src/tokens/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export * from './colors/index.js'
33
export * from './opacities.js'
44
export * from './radii.js'
55
export * from './space.js'
6+
export * from './typography/index.js'
67
export * from './z-index.js'

0 commit comments

Comments
 (0)