@kaizen/design-tokens 3.1.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.
Files changed (129) hide show
  1. package/CHANGELOG.md +773 -0
  2. package/LICENSE +21 -0
  3. package/README.md +66 -0
  4. package/dist/index.d.ts +8 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +23 -0
  7. package/dist/react/ThemeProvider.d.ts +13 -0
  8. package/dist/react/ThemeProvider.d.ts.map +1 -0
  9. package/dist/react/ThemeProvider.js +42 -0
  10. package/dist/react/index.d.ts +2 -0
  11. package/dist/react/index.d.ts.map +1 -0
  12. package/dist/react/index.js +13 -0
  13. package/dist/src/ThemeManager.d.ts +23 -0
  14. package/dist/src/ThemeManager.d.ts.map +1 -0
  15. package/dist/src/ThemeManager.js +70 -0
  16. package/dist/src/lib/addExtraThemeEntries.d.ts +25 -0
  17. package/dist/src/lib/addExtraThemeEntries.d.ts.map +1 -0
  18. package/dist/src/lib/addExtraThemeEntries.js +56 -0
  19. package/dist/src/lib/cssVariables.d.ts +23 -0
  20. package/dist/src/lib/cssVariables.d.ts.map +1 -0
  21. package/dist/src/lib/cssVariables.js +33 -0
  22. package/dist/src/lib/makeCssVariableDefinitionsMap.d.ts +30 -0
  23. package/dist/src/lib/makeCssVariableDefinitionsMap.d.ts.map +1 -0
  24. package/dist/src/lib/makeCssVariableDefinitionsMap.js +57 -0
  25. package/dist/src/lib/makeCssVariableTheme.d.ts +35 -0
  26. package/dist/src/lib/makeCssVariableTheme.d.ts.map +1 -0
  27. package/dist/src/lib/makeCssVariableTheme.js +54 -0
  28. package/dist/src/lib/mapLeafsOfObject.d.ts +23 -0
  29. package/dist/src/lib/mapLeafsOfObject.d.ts.map +1 -0
  30. package/dist/src/lib/mapLeafsOfObject.js +59 -0
  31. package/dist/src/themes/heart.d.ts +3 -0
  32. package/dist/src/themes/heart.d.ts.map +1 -0
  33. package/dist/src/themes/heart.js +286 -0
  34. package/dist/src/themes/index.d.ts +4 -0
  35. package/dist/src/themes/index.d.ts.map +1 -0
  36. package/dist/src/themes/index.js +9 -0
  37. package/dist/src/themes/zen.d.ts +3 -0
  38. package/dist/src/themes/zen.d.ts.map +1 -0
  39. package/dist/src/themes/zen.js +293 -0
  40. package/dist/src/types.d.ts +205 -0
  41. package/dist/src/types.d.ts.map +1 -0
  42. package/dist/src/types.js +2 -0
  43. package/elm/Kaizen/Theme.elm +29 -0
  44. package/index.ts +9 -0
  45. package/less/animation.less +49 -0
  46. package/less/border.less +47 -0
  47. package/less/color.less +210 -0
  48. package/less/layout.less +8 -0
  49. package/less/shadow.less +12 -0
  50. package/less/spacing.less +20 -0
  51. package/less/typography.less +526 -0
  52. package/package.json +63 -0
  53. package/react/ThemeProvider.d.ts +12 -0
  54. package/react/ThemeProvider.js +43 -0
  55. package/react/ThemeProvider.js.map +1 -0
  56. package/react/ThemeProvider.tsx +39 -0
  57. package/react/index.d.ts +1 -0
  58. package/react/index.js +14 -0
  59. package/react/index.js.map +1 -0
  60. package/react/index.tsx +1 -0
  61. package/sass/animation.scss +49 -0
  62. package/sass/border.scss +47 -0
  63. package/sass/color.scss +210 -0
  64. package/sass/layout.scss +8 -0
  65. package/sass/shadow.scss +12 -0
  66. package/sass/spacing.scss +20 -0
  67. package/sass/typography.scss +526 -0
  68. package/src/ThemeManager.d.ts +22 -0
  69. package/src/ThemeManager.js +71 -0
  70. package/src/ThemeManager.js.map +1 -0
  71. package/src/ThemeManager.ts +70 -0
  72. package/src/lib/__tests__/themeForTesting.d.ts +38 -0
  73. package/src/lib/__tests__/themeForTesting.js +21 -0
  74. package/src/lib/__tests__/themeForTesting.js.map +1 -0
  75. package/src/lib/__tests__/themeForTesting.ts +17 -0
  76. package/src/lib/addExtraThemeEntries.d.ts +24 -0
  77. package/src/lib/addExtraThemeEntries.js +57 -0
  78. package/src/lib/addExtraThemeEntries.js.map +1 -0
  79. package/src/lib/addExtraThemeEntries.ts +56 -0
  80. package/src/lib/cssVariables.d.ts +22 -0
  81. package/src/lib/cssVariables.js +34 -0
  82. package/src/lib/cssVariables.js.map +1 -0
  83. package/src/lib/cssVariables.ts +27 -0
  84. package/src/lib/makeCssVariableDefinitionsMap.d.ts +29 -0
  85. package/src/lib/makeCssVariableDefinitionsMap.js +58 -0
  86. package/src/lib/makeCssVariableDefinitionsMap.js.map +1 -0
  87. package/src/lib/makeCssVariableDefinitionsMap.ts +55 -0
  88. package/src/lib/makeCssVariableTheme.d.ts +34 -0
  89. package/src/lib/makeCssVariableTheme.js +55 -0
  90. package/src/lib/makeCssVariableTheme.js.map +1 -0
  91. package/src/lib/makeCssVariableTheme.ts +63 -0
  92. package/src/lib/mapLeafsOfObject.d.ts +22 -0
  93. package/src/lib/mapLeafsOfObject.js +60 -0
  94. package/src/lib/mapLeafsOfObject.js.map +1 -0
  95. package/src/lib/mapLeafsOfObject.ts +50 -0
  96. package/src/lib/patterns.d.ts +2 -0
  97. package/src/lib/patterns.js +6 -0
  98. package/src/lib/patterns.js.map +1 -0
  99. package/src/lib/patterns.ts +2 -0
  100. package/src/themes/heart.d.ts +2 -0
  101. package/src/themes/heart.js +287 -0
  102. package/src/themes/heart.js.map +1 -0
  103. package/src/themes/heart.ts +285 -0
  104. package/src/themes/index.d.ts +3 -0
  105. package/src/themes/index.js +17 -0
  106. package/src/themes/index.js.map +1 -0
  107. package/src/themes/index.ts +4 -0
  108. package/src/themes/zen.d.ts +2 -0
  109. package/src/themes/zen.js +294 -0
  110. package/src/themes/zen.js.map +1 -0
  111. package/src/themes/zen.ts +292 -0
  112. package/src/types.d.ts +204 -0
  113. package/src/types.js +3 -0
  114. package/src/types.js.map +1 -0
  115. package/src/types.ts +225 -0
  116. package/tokens/animation.json +34 -0
  117. package/tokens/animation.json.d.ts +12 -0
  118. package/tokens/border.json +44 -0
  119. package/tokens/border.json.d.ts +12 -0
  120. package/tokens/color.json +228 -0
  121. package/tokens/color.json.d.ts +12 -0
  122. package/tokens/layout.json +9 -0
  123. package/tokens/layout.json.d.ts +12 -0
  124. package/tokens/shadow.json +12 -0
  125. package/tokens/shadow.json.d.ts +12 -0
  126. package/tokens/spacing.json +22 -0
  127. package/tokens/spacing.json.d.ts +12 -0
  128. package/tokens/typography.json +236 -0
  129. package/tokens/typography.json.d.ts +12 -0
package/src/types.ts ADDED
@@ -0,0 +1,225 @@
1
+ import type { CSSProperties as ReactCSSProperties } from "react"
2
+
3
+ /**
4
+ * Use a custom type for CSS properties becauase we should eventually write a more strongly typed version using template literal types.
5
+ * This could definitely be contributed back to the community too. An example starting point here https://github.com/ghoullier/awesome-template-literal-types#css-parser
6
+ * For example:
7
+ * ```ts
8
+ * type Font = {
9
+ * fontSize: `${number}rem`,
10
+ *
11
+ * }
12
+ * type HexDigit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F ;
13
+ * type Color = `rgba(${number}, ${number}, ${number}, ${number}) | #${HexDigit}${HexDigit}${HexDigit}` // You get the point
14
+ *
15
+ * ```
16
+ * */
17
+ type KaizenCSSProperties = ReactCSSProperties
18
+
19
+ type Hex = string
20
+ // Once TypeScript is upgraded in the repo, you can use Lowercase<>
21
+ // type Hex = Lowercase<string>
22
+
23
+ export type TypographyFont = {
24
+ fontFamily: KaizenCSSProperties["fontFamily"]
25
+ fontWeight: KaizenCSSProperties["fontWeight"]
26
+ fontSize: KaizenCSSProperties["fontSize"]
27
+ lineHeight: KaizenCSSProperties["lineHeight"]
28
+ letterSpacing: KaizenCSSProperties["letterSpacing"]
29
+ }
30
+
31
+ export type ThemeKey = "zen" | "heart" | "custom"
32
+
33
+ export type Theme = {
34
+ themeKey: ThemeKey
35
+ border: {
36
+ solid: {
37
+ borderWidth: KaizenCSSProperties["borderWidth"]
38
+ borderRadius: KaizenCSSProperties["borderRadius"]
39
+ borderStyle: KaizenCSSProperties["borderStyle"]
40
+ borderColor: KaizenCSSProperties["borderColor"]
41
+ }
42
+ dashed: {
43
+ borderWidth: KaizenCSSProperties["borderWidth"]
44
+ borderRadius: KaizenCSSProperties["borderRadius"]
45
+ borderStyle: KaizenCSSProperties["borderStyle"]
46
+ }
47
+ borderless: {
48
+ borderWidth: KaizenCSSProperties["borderWidth"]
49
+ borderRadius: KaizenCSSProperties["borderRadius"]
50
+ borderStyle: KaizenCSSProperties["borderStyle"]
51
+ borderColor: KaizenCSSProperties["borderColor"]
52
+ }
53
+ focusRing: {
54
+ borderWidth: KaizenCSSProperties["borderWidth"]
55
+ borderRadius: KaizenCSSProperties["borderRadius"]
56
+ borderStyle: KaizenCSSProperties["borderStyle"]
57
+ }
58
+ }
59
+ animation: {
60
+ easingFunction: {
61
+ easeInOut: string
62
+ easeIn: string
63
+ easeOut: string
64
+ linear: string
65
+ bounceIn: string
66
+ bounceOut: string
67
+ bounceInOut: string
68
+ }
69
+ duration: {
70
+ instant: string
71
+ immediate: string
72
+ rapid: string
73
+ fast: string
74
+ slow: string
75
+ deliberate: string
76
+ }
77
+ }
78
+ color: {
79
+ purple: {
80
+ "100": Hex
81
+ "200": Hex
82
+ "300": Hex
83
+ "400": Hex
84
+ "500": Hex
85
+ "600": Hex
86
+ "700": Hex
87
+ "800": Hex
88
+ }
89
+ blue: {
90
+ "100": Hex
91
+ "200": Hex
92
+ "300": Hex
93
+ "400": Hex
94
+ "500": Hex
95
+ "600": Hex
96
+ "700": Hex
97
+ }
98
+ green: {
99
+ "100": Hex
100
+ "200": Hex
101
+ "300": Hex
102
+ "400": Hex
103
+ "500": Hex
104
+ "600": Hex
105
+ "700": Hex
106
+ }
107
+ yellow: {
108
+ "100": Hex
109
+ "200": Hex
110
+ "300": Hex
111
+ "400": Hex
112
+ "500": Hex
113
+ "600": Hex
114
+ "700": Hex
115
+ }
116
+ red: {
117
+ "100": Hex
118
+ "200": Hex
119
+ "300": Hex
120
+ "400": Hex
121
+ "500": Hex
122
+ "600": Hex
123
+ "700": Hex
124
+ }
125
+ orange: {
126
+ "100": Hex
127
+ "200": Hex
128
+ "300": Hex
129
+ "400": Hex
130
+ "500": Hex
131
+ "600": Hex
132
+ "700": Hex
133
+ }
134
+ gray: {
135
+ "100": Hex
136
+ "200": Hex
137
+ "300": Hex
138
+ "400": Hex
139
+ "500": Hex
140
+ "600": Hex
141
+ }
142
+ white: Hex
143
+ }
144
+ dataViz: {
145
+ favorable: Hex
146
+ unfavorable: Hex
147
+ }
148
+ layout: {
149
+ contentMaxWidth: string
150
+ contentSideMargin: string
151
+ mobileActionsDrawerHeight: string
152
+ navigationBarHeight: string
153
+ breakpoints: {
154
+ medium: string
155
+ large: string
156
+ }
157
+ }
158
+ shadow: {
159
+ small: {
160
+ boxShadow: string
161
+ }
162
+ large: {
163
+ boxShadow: string
164
+ }
165
+ }
166
+ spacing: {
167
+ xs: string
168
+ sm: string
169
+ md: string
170
+ lg: string
171
+ xl: string
172
+ xxl: string
173
+ xxxl: string
174
+ xxxxl: string
175
+ xxxxxl: string
176
+ }
177
+ typography: {
178
+ dataLarge: TypographyFont
179
+ dataLargeUnits: TypographyFont
180
+ dataMedium: TypographyFont
181
+ dataMediumUnits: TypographyFont
182
+ dataSmall: TypographyFont
183
+ dataSmallUnits: TypographyFont
184
+ display0: TypographyFont
185
+ heading1: TypographyFont
186
+ heading2: TypographyFont
187
+ heading3: TypographyFont
188
+ heading4: TypographyFont
189
+ heading5: TypographyFont
190
+ heading6: TypographyFont
191
+ paragraphIntroLede: TypographyFont
192
+ paragraphBody: TypographyFont
193
+ paragraphSmall: TypographyFont
194
+ paragraphExtraSmall: TypographyFont
195
+ paragraphBold: {
196
+ fontWeight: KaizenCSSProperties["fontWeight"]
197
+ }
198
+ buttonPrimary: TypographyFont
199
+ buttonSecondary: TypographyFont
200
+ }
201
+ }
202
+
203
+ // Converts all leafs (values that aren't objects) of an object tree to LeafType.
204
+ export type DeepMapObjectLeafs<T, LeafType> = T extends
205
+ | string
206
+ | number
207
+ | bigint
208
+ | boolean
209
+ | symbol
210
+ | null
211
+ | undefined
212
+ | ((...params: any[]) => any)
213
+ ? LeafType
214
+ : T extends Record<any, any>
215
+ ? {
216
+ [Key in keyof T]: DeepMapObjectLeafs<T[Key], LeafType>
217
+ }
218
+ : T
219
+
220
+ /**
221
+ * Apologies for the complex types.
222
+ * This type represents the Theme type but with every leaf value in the tree mapped strictly to a string, rather than a number or a more complex type such as a string union.
223
+ * The reason for this is to have a more accurate type for the generated hierarchy of design tokens which are represented as CSS custom properties, e.g. `var(--color-purple-800)`.
224
+ */
225
+ export type CSSVariableTheme = DeepMapObjectLeafs<Theme, string>
@@ -0,0 +1,34 @@
1
+ {
2
+ "animation": {
3
+ "easingFunction": {
4
+ "easeInOut": "var(--animation-easing-function-ease-in-out, cubic-bezier(0.455, 0.03, 0.515, 0.955))",
5
+ "easeInOut-id": "--animation-easing-function-ease-in-out",
6
+ "easeIn": "var(--animation-easing-function-ease-in, cubic-bezier(0.55, 0.085, 0.68, 0.53))",
7
+ "easeIn-id": "--animation-easing-function-ease-in",
8
+ "easeOut": "var(--animation-easing-function-ease-out, cubic-bezier(0.25, 0.46, 0.45, 0.94))",
9
+ "easeOut-id": "--animation-easing-function-ease-out",
10
+ "linear": "var(--animation-easing-function-linear, linear)",
11
+ "linear-id": "--animation-easing-function-linear",
12
+ "bounceIn": "var(--animation-easing-function-bounce-in, cubic-bezier(0.485, 0.155, 0.24, 1.245))",
13
+ "bounceIn-id": "--animation-easing-function-bounce-in",
14
+ "bounceOut": "var(--animation-easing-function-bounce-out, cubic-bezier(0.485, 0.155, 0.515, 0.845))",
15
+ "bounceOut-id": "--animation-easing-function-bounce-out",
16
+ "bounceInOut": "var(--animation-easing-function-bounce-in-out, cubic-bezier(0.76, -0.245, 0.24, 1.245))",
17
+ "bounceInOut-id": "--animation-easing-function-bounce-in-out"
18
+ },
19
+ "duration": {
20
+ "instant": "var(--animation-duration-instant, 0ms)",
21
+ "instant-id": "--animation-duration-instant",
22
+ "immediate": "var(--animation-duration-immediate, 100ms)",
23
+ "immediate-id": "--animation-duration-immediate",
24
+ "rapid": "var(--animation-duration-rapid, 200ms)",
25
+ "rapid-id": "--animation-duration-rapid",
26
+ "fast": "var(--animation-duration-fast, 300ms)",
27
+ "fast-id": "--animation-duration-fast",
28
+ "slow": "var(--animation-duration-slow, 400ms)",
29
+ "slow-id": "--animation-duration-slow",
30
+ "deliberate": "var(--animation-duration-deliberate, 700ms)",
31
+ "deliberate-id": "--animation-duration-deliberate"
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,12 @@
1
+ import { DeepMapObjectLeafs, Theme } from "../src/types"
2
+ import { useTheme, ThemeProvider } from "../react"
3
+ /**
4
+ * @deprecated
5
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
6
+ */
7
+ export const animation: DeepMapObjectLeafs<Theme["animation"], string>
8
+ /**
9
+ * @deprecated
10
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
11
+ */
12
+ export default { animation }
@@ -0,0 +1,44 @@
1
+ {
2
+ "border": {
3
+ "solid": {
4
+ "borderWidth": "var(--border-solid-border-width, 2px)",
5
+ "borderWidth-id": "--border-solid-border-width",
6
+ "borderRadius": "var(--border-solid-border-radius, 7px)",
7
+ "borderRadius-id": "--border-solid-border-radius",
8
+ "borderStyle": "var(--border-solid-border-style, solid)",
9
+ "borderStyle-id": "--border-solid-border-style",
10
+ "borderColor": "var(--border-solid-border-color, #e1e2ea)",
11
+ "borderColor-rgb": "var(--border-solid-border-color-rgb, 225, 226, 234)",
12
+ "borderColor-rgb-id": "--border-solid-border-color-rgb",
13
+ "borderColor-id": "--border-solid-border-color"
14
+ },
15
+ "dashed": {
16
+ "borderWidth": "var(--border-dashed-border-width, 2px)",
17
+ "borderWidth-id": "--border-dashed-border-width",
18
+ "borderRadius": "var(--border-dashed-border-radius, 7px)",
19
+ "borderRadius-id": "--border-dashed-border-radius",
20
+ "borderStyle": "var(--border-dashed-border-style, dashed)",
21
+ "borderStyle-id": "--border-dashed-border-style"
22
+ },
23
+ "borderless": {
24
+ "borderWidth": "var(--border-borderless-border-width, 2px)",
25
+ "borderWidth-id": "--border-borderless-border-width",
26
+ "borderRadius": "var(--border-borderless-border-radius, 7px)",
27
+ "borderRadius-id": "--border-borderless-border-radius",
28
+ "borderStyle": "var(--border-borderless-border-style, solid)",
29
+ "borderStyle-id": "--border-borderless-border-style",
30
+ "borderColor": "var(--border-borderless-border-color, transparent)",
31
+ "borderColor-rgb": "var(--border-borderless-border-color-rgb, 0, 0, 0)",
32
+ "borderColor-rgb-id": "--border-borderless-border-color-rgb",
33
+ "borderColor-id": "--border-borderless-border-color"
34
+ },
35
+ "focusRing": {
36
+ "borderWidth": "var(--border-focus-ring-border-width, 2px)",
37
+ "borderWidth-id": "--border-focus-ring-border-width",
38
+ "borderRadius": "var(--border-focus-ring-border-radius, 10px)",
39
+ "borderRadius-id": "--border-focus-ring-border-radius",
40
+ "borderStyle": "var(--border-focus-ring-border-style, solid)",
41
+ "borderStyle-id": "--border-focus-ring-border-style"
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,12 @@
1
+ import { DeepMapObjectLeafs, Theme } from "../src/types"
2
+ import { useTheme, ThemeProvider } from "../react"
3
+ /**
4
+ * @deprecated
5
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
6
+ */
7
+ export const border: DeepMapObjectLeafs<Theme["border"], string>
8
+ /**
9
+ * @deprecated
10
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
11
+ */
12
+ export default { border }
@@ -0,0 +1,228 @@
1
+ {
2
+ "dataViz": {
3
+ "favorable": "var(--data-viz-favorable, #7dd5bd)",
4
+ "favorable-rgb": "var(--data-viz-favorable-rgb, 125, 213, 189)",
5
+ "favorable-rgb-id": "--data-viz-favorable-rgb",
6
+ "favorable-id": "--data-viz-favorable",
7
+ "unfavorable": "var(--data-viz-unfavorable, #e68d97)",
8
+ "unfavorable-rgb": "var(--data-viz-unfavorable-rgb, 230, 141, 151)",
9
+ "unfavorable-rgb-id": "--data-viz-unfavorable-rgb",
10
+ "unfavorable-id": "--data-viz-unfavorable"
11
+ },
12
+ "color": {
13
+ "purple": {
14
+ "100": "var(--color-purple-100, #f4edf8)",
15
+ "200": "var(--color-purple-200, #dfc9ea)",
16
+ "300": "var(--color-purple-300, #c9a5dd)",
17
+ "400": "var(--color-purple-400, #ae67b1)",
18
+ "500": "var(--color-purple-500, #844587)",
19
+ "600": "var(--color-purple-600, #5f3361)",
20
+ "700": "var(--color-purple-700, #4a234d)",
21
+ "800": "var(--color-purple-800, #2f2438)",
22
+ "100-rgb": "var(--color-purple-100-rgb, 244, 237, 248)",
23
+ "100-rgb-id": "--color-purple-100-rgb",
24
+ "100-id": "--color-purple-100",
25
+ "200-rgb": "var(--color-purple-200-rgb, 223, 201, 234)",
26
+ "200-rgb-id": "--color-purple-200-rgb",
27
+ "200-id": "--color-purple-200",
28
+ "300-rgb": "var(--color-purple-300-rgb, 201, 165, 221)",
29
+ "300-rgb-id": "--color-purple-300-rgb",
30
+ "300-id": "--color-purple-300",
31
+ "400-rgb": "var(--color-purple-400-rgb, 174, 103, 177)",
32
+ "400-rgb-id": "--color-purple-400-rgb",
33
+ "400-id": "--color-purple-400",
34
+ "500-rgb": "var(--color-purple-500-rgb, 132, 69, 135)",
35
+ "500-rgb-id": "--color-purple-500-rgb",
36
+ "500-id": "--color-purple-500",
37
+ "600-rgb": "var(--color-purple-600-rgb, 95, 51, 97)",
38
+ "600-rgb-id": "--color-purple-600-rgb",
39
+ "600-id": "--color-purple-600",
40
+ "700-rgb": "var(--color-purple-700-rgb, 74, 35, 77)",
41
+ "700-rgb-id": "--color-purple-700-rgb",
42
+ "700-id": "--color-purple-700",
43
+ "800-rgb": "var(--color-purple-800-rgb, 47, 36, 56)",
44
+ "800-rgb-id": "--color-purple-800-rgb",
45
+ "800-id": "--color-purple-800"
46
+ },
47
+ "blue": {
48
+ "100": "var(--color-blue-100, #e6f6ff)",
49
+ "200": "var(--color-blue-200, #bde2f5)",
50
+ "300": "var(--color-blue-300, #73c0e8)",
51
+ "400": "var(--color-blue-400, #008bd6)",
52
+ "500": "var(--color-blue-500, #0168b3)",
53
+ "600": "var(--color-blue-600, #004970)",
54
+ "700": "var(--color-blue-700, #003157)",
55
+ "100-rgb": "var(--color-blue-100-rgb, 230, 246, 255)",
56
+ "100-rgb-id": "--color-blue-100-rgb",
57
+ "100-id": "--color-blue-100",
58
+ "200-rgb": "var(--color-blue-200-rgb, 189, 226, 245)",
59
+ "200-rgb-id": "--color-blue-200-rgb",
60
+ "200-id": "--color-blue-200",
61
+ "300-rgb": "var(--color-blue-300-rgb, 115, 192, 232)",
62
+ "300-rgb-id": "--color-blue-300-rgb",
63
+ "300-id": "--color-blue-300",
64
+ "400-rgb": "var(--color-blue-400-rgb, 0, 139, 214)",
65
+ "400-rgb-id": "--color-blue-400-rgb",
66
+ "400-id": "--color-blue-400",
67
+ "500-rgb": "var(--color-blue-500-rgb, 1, 104, 179)",
68
+ "500-rgb-id": "--color-blue-500-rgb",
69
+ "500-id": "--color-blue-500",
70
+ "600-rgb": "var(--color-blue-600-rgb, 0, 73, 112)",
71
+ "600-rgb-id": "--color-blue-600-rgb",
72
+ "600-id": "--color-blue-600",
73
+ "700-rgb": "var(--color-blue-700-rgb, 0, 49, 87)",
74
+ "700-rgb-id": "--color-blue-700-rgb",
75
+ "700-id": "--color-blue-700"
76
+ },
77
+ "green": {
78
+ "100": "var(--color-green-100, #e8f8f4)",
79
+ "200": "var(--color-green-200, #c4ede2)",
80
+ "300": "var(--color-green-300, #8fdbc7)",
81
+ "400": "var(--color-green-400, #5dcbad)",
82
+ "500": "var(--color-green-500, #3caf90)",
83
+ "600": "var(--color-green-600, #2c7d67)",
84
+ "700": "var(--color-green-700, #22594a)",
85
+ "100-rgb": "var(--color-green-100-rgb, 232, 248, 244)",
86
+ "100-rgb-id": "--color-green-100-rgb",
87
+ "100-id": "--color-green-100",
88
+ "200-rgb": "var(--color-green-200-rgb, 196, 237, 226)",
89
+ "200-rgb-id": "--color-green-200-rgb",
90
+ "200-id": "--color-green-200",
91
+ "300-rgb": "var(--color-green-300-rgb, 143, 219, 199)",
92
+ "300-rgb-id": "--color-green-300-rgb",
93
+ "300-id": "--color-green-300",
94
+ "400-rgb": "var(--color-green-400-rgb, 93, 203, 173)",
95
+ "400-rgb-id": "--color-green-400-rgb",
96
+ "400-id": "--color-green-400",
97
+ "500-rgb": "var(--color-green-500-rgb, 60, 175, 144)",
98
+ "500-rgb-id": "--color-green-500-rgb",
99
+ "500-id": "--color-green-500",
100
+ "600-rgb": "var(--color-green-600-rgb, 44, 125, 103)",
101
+ "600-rgb-id": "--color-green-600-rgb",
102
+ "600-id": "--color-green-600",
103
+ "700-rgb": "var(--color-green-700-rgb, 34, 89, 74)",
104
+ "700-rgb-id": "--color-green-700-rgb",
105
+ "700-id": "--color-green-700"
106
+ },
107
+ "yellow": {
108
+ "100": "var(--color-yellow-100, #fff9e4)",
109
+ "200": "var(--color-yellow-200, #ffeeb3)",
110
+ "300": "var(--color-yellow-300, #ffe36e)",
111
+ "400": "var(--color-yellow-400, #ffca4d)",
112
+ "500": "var(--color-yellow-500, #ffb600)",
113
+ "600": "var(--color-yellow-600, #c68600)",
114
+ "700": "var(--color-yellow-700, #876400)",
115
+ "100-rgb": "var(--color-yellow-100-rgb, 255, 249, 228)",
116
+ "100-rgb-id": "--color-yellow-100-rgb",
117
+ "100-id": "--color-yellow-100",
118
+ "200-rgb": "var(--color-yellow-200-rgb, 255, 238, 179)",
119
+ "200-rgb-id": "--color-yellow-200-rgb",
120
+ "200-id": "--color-yellow-200",
121
+ "300-rgb": "var(--color-yellow-300-rgb, 255, 227, 110)",
122
+ "300-rgb-id": "--color-yellow-300-rgb",
123
+ "300-id": "--color-yellow-300",
124
+ "400-rgb": "var(--color-yellow-400-rgb, 255, 202, 77)",
125
+ "400-rgb-id": "--color-yellow-400-rgb",
126
+ "400-id": "--color-yellow-400",
127
+ "500-rgb": "var(--color-yellow-500-rgb, 255, 182, 0)",
128
+ "500-rgb-id": "--color-yellow-500-rgb",
129
+ "500-id": "--color-yellow-500",
130
+ "600-rgb": "var(--color-yellow-600-rgb, 198, 134, 0)",
131
+ "600-rgb-id": "--color-yellow-600-rgb",
132
+ "600-id": "--color-yellow-600",
133
+ "700-rgb": "var(--color-yellow-700-rgb, 135, 100, 0)",
134
+ "700-rgb-id": "--color-yellow-700-rgb",
135
+ "700-id": "--color-yellow-700"
136
+ },
137
+ "red": {
138
+ "100": "var(--color-red-100, #fdeaee)",
139
+ "200": "var(--color-red-200, #f9c2cb)",
140
+ "300": "var(--color-red-300, #f597a8)",
141
+ "400": "var(--color-red-400, #e0707d)",
142
+ "500": "var(--color-red-500, #c93b55)",
143
+ "600": "var(--color-red-600, #a82433)",
144
+ "700": "var(--color-red-700, #6c1e20)",
145
+ "100-rgb": "var(--color-red-100-rgb, 253, 234, 238)",
146
+ "100-rgb-id": "--color-red-100-rgb",
147
+ "100-id": "--color-red-100",
148
+ "200-rgb": "var(--color-red-200-rgb, 249, 194, 203)",
149
+ "200-rgb-id": "--color-red-200-rgb",
150
+ "200-id": "--color-red-200",
151
+ "300-rgb": "var(--color-red-300-rgb, 245, 151, 168)",
152
+ "300-rgb-id": "--color-red-300-rgb",
153
+ "300-id": "--color-red-300",
154
+ "400-rgb": "var(--color-red-400-rgb, 224, 112, 125)",
155
+ "400-rgb-id": "--color-red-400-rgb",
156
+ "400-id": "--color-red-400",
157
+ "500-rgb": "var(--color-red-500-rgb, 201, 59, 85)",
158
+ "500-rgb-id": "--color-red-500-rgb",
159
+ "500-id": "--color-red-500",
160
+ "600-rgb": "var(--color-red-600-rgb, 168, 36, 51)",
161
+ "600-rgb-id": "--color-red-600-rgb",
162
+ "600-id": "--color-red-600",
163
+ "700-rgb": "var(--color-red-700-rgb, 108, 30, 32)",
164
+ "700-rgb-id": "--color-red-700-rgb",
165
+ "700-id": "--color-red-700"
166
+ },
167
+ "orange": {
168
+ "100": "var(--color-orange-100, #fff0e8)",
169
+ "200": "var(--color-orange-200, #ffd1b9)",
170
+ "300": "var(--color-orange-300, #ffb08a)",
171
+ "400": "var(--color-orange-400, #ff9461)",
172
+ "500": "var(--color-orange-500, #e96c2f)",
173
+ "600": "var(--color-orange-600, #b74302)",
174
+ "700": "var(--color-orange-700, #903c00)",
175
+ "100-rgb": "var(--color-orange-100-rgb, 255, 240, 232)",
176
+ "100-rgb-id": "--color-orange-100-rgb",
177
+ "100-id": "--color-orange-100",
178
+ "200-rgb": "var(--color-orange-200-rgb, 255, 209, 185)",
179
+ "200-rgb-id": "--color-orange-200-rgb",
180
+ "200-id": "--color-orange-200",
181
+ "300-rgb": "var(--color-orange-300-rgb, 255, 176, 138)",
182
+ "300-rgb-id": "--color-orange-300-rgb",
183
+ "300-id": "--color-orange-300",
184
+ "400-rgb": "var(--color-orange-400-rgb, 255, 148, 97)",
185
+ "400-rgb-id": "--color-orange-400-rgb",
186
+ "400-id": "--color-orange-400",
187
+ "500-rgb": "var(--color-orange-500-rgb, 233, 108, 47)",
188
+ "500-rgb-id": "--color-orange-500-rgb",
189
+ "500-id": "--color-orange-500",
190
+ "600-rgb": "var(--color-orange-600-rgb, 183, 67, 2)",
191
+ "600-rgb-id": "--color-orange-600-rgb",
192
+ "600-id": "--color-orange-600",
193
+ "700-rgb": "var(--color-orange-700-rgb, 144, 60, 0)",
194
+ "700-rgb-id": "--color-orange-700-rgb",
195
+ "700-id": "--color-orange-700"
196
+ },
197
+ "gray": {
198
+ "100": "var(--color-gray-100, #f9f9f9)",
199
+ "200": "var(--color-gray-200, #f4f4f5)",
200
+ "300": "var(--color-gray-300, #eaeaec)",
201
+ "400": "var(--color-gray-400, #cdcdd0)",
202
+ "500": "var(--color-gray-500, #8c8c97)",
203
+ "600": "var(--color-gray-600, #524e56)",
204
+ "100-rgb": "var(--color-gray-100-rgb, 249, 249, 249)",
205
+ "100-rgb-id": "--color-gray-100-rgb",
206
+ "100-id": "--color-gray-100",
207
+ "200-rgb": "var(--color-gray-200-rgb, 244, 244, 245)",
208
+ "200-rgb-id": "--color-gray-200-rgb",
209
+ "200-id": "--color-gray-200",
210
+ "300-rgb": "var(--color-gray-300-rgb, 234, 234, 236)",
211
+ "300-rgb-id": "--color-gray-300-rgb",
212
+ "300-id": "--color-gray-300",
213
+ "400-rgb": "var(--color-gray-400-rgb, 205, 205, 208)",
214
+ "400-rgb-id": "--color-gray-400-rgb",
215
+ "400-id": "--color-gray-400",
216
+ "500-rgb": "var(--color-gray-500-rgb, 140, 140, 151)",
217
+ "500-rgb-id": "--color-gray-500-rgb",
218
+ "500-id": "--color-gray-500",
219
+ "600-rgb": "var(--color-gray-600-rgb, 82, 78, 86)",
220
+ "600-rgb-id": "--color-gray-600-rgb",
221
+ "600-id": "--color-gray-600"
222
+ },
223
+ "white": "var(--color-white, #ffffff)",
224
+ "white-rgb": "var(--color-white-rgb, 255, 255, 255)",
225
+ "white-rgb-id": "--color-white-rgb",
226
+ "white-id": "--color-white"
227
+ }
228
+ }
@@ -0,0 +1,12 @@
1
+ import { DeepMapObjectLeafs, Theme } from "../src/types"
2
+ import { useTheme, ThemeProvider } from "../react"
3
+ /**
4
+ * @deprecated
5
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
6
+ */
7
+ export const color: DeepMapObjectLeafs<Theme["color"], string>
8
+ /**
9
+ * @deprecated
10
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
11
+ */
12
+ export default { color }
@@ -0,0 +1,9 @@
1
+ {
2
+ "layout": {
3
+ "contentMaxWidth": "1392px",
4
+ "contentSideMargin": "72px",
5
+ "mobileActionsDrawerHeight": "60px",
6
+ "navigationBarHeight": "72px",
7
+ "breakpoints": { "medium": "768px", "large": "1080px" }
8
+ }
9
+ }
@@ -0,0 +1,12 @@
1
+ import { DeepMapObjectLeafs, Theme } from "../src/types"
2
+ import { useTheme, ThemeProvider } from "../react"
3
+ /**
4
+ * @deprecated
5
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
6
+ */
7
+ export const layout: DeepMapObjectLeafs<Theme["layout"], string>
8
+ /**
9
+ * @deprecated
10
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
11
+ */
12
+ export default { layout }
@@ -0,0 +1,12 @@
1
+ {
2
+ "shadow": {
3
+ "small": {
4
+ "boxShadow": "var(--shadow-small-box-shadow, 0 0 6px rgba(53, 55, 74, 0.09))",
5
+ "boxShadow-id": "--shadow-small-box-shadow"
6
+ },
7
+ "large": {
8
+ "boxShadow": "var(--shadow-large-box-shadow, 0 0 12px rgba(53, 55, 74, 0.19))",
9
+ "boxShadow-id": "--shadow-large-box-shadow"
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import { DeepMapObjectLeafs, Theme } from "../src/types"
2
+ import { useTheme, ThemeProvider } from "../react"
3
+ /**
4
+ * @deprecated
5
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
6
+ */
7
+ export const shadow: DeepMapObjectLeafs<Theme["shadow"], string>
8
+ /**
9
+ * @deprecated
10
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
11
+ */
12
+ export default { shadow }
@@ -0,0 +1,22 @@
1
+ {
2
+ "spacing": {
3
+ "xs": "var(--spacing-xs, 0.375rem)",
4
+ "xs-id": "--spacing-xs",
5
+ "sm": "var(--spacing-sm, 0.75rem)",
6
+ "sm-id": "--spacing-sm",
7
+ "md": "var(--spacing-md, 1.5rem)",
8
+ "md-id": "--spacing-md",
9
+ "lg": "var(--spacing-lg, 2.25rem)",
10
+ "lg-id": "--spacing-lg",
11
+ "xl": "var(--spacing-xl, 3rem)",
12
+ "xl-id": "--spacing-xl",
13
+ "xxl": "var(--spacing-xxl, 3.75rem)",
14
+ "xxl-id": "--spacing-xxl",
15
+ "xxxl": "var(--spacing-xxxl, 4.5rem)",
16
+ "xxxl-id": "--spacing-xxxl",
17
+ "xxxxl": "var(--spacing-xxxxl, 5.25rem)",
18
+ "xxxxl-id": "--spacing-xxxxl",
19
+ "xxxxxl": "var(--spacing-xxxxxl, 6rem)",
20
+ "xxxxxl-id": "--spacing-xxxxxl"
21
+ }
22
+ }
@@ -0,0 +1,12 @@
1
+ import { DeepMapObjectLeafs, Theme } from "../src/types"
2
+ import { useTheme, ThemeProvider } from "../react"
3
+ /**
4
+ * @deprecated
5
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
6
+ */
7
+ export const spacing: DeepMapObjectLeafs<Theme["spacing"], string>
8
+ /**
9
+ * @deprecated
10
+ * The preferred way to use Kaizen tokens in TypeScript/JavaScript is to use the React hook {@link useTheme} paired with a {@link ThemeProvider}
11
+ */
12
+ export default { spacing }