@kaizen/design-tokens 9.0.5 → 10.0.1

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 (71) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/index.js +1 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/react/ThemeProvider.d.ts +1 -1
  5. package/dist/react/ThemeProvider.d.ts.map +1 -1
  6. package/dist/react/ThemeProvider.js +32 -8
  7. package/dist/react/ThemeProvider.js.map +1 -0
  8. package/dist/react/index.js +1 -0
  9. package/dist/react/index.js.map +1 -0
  10. package/dist/src/ThemeManager.d.ts +4 -1
  11. package/dist/src/ThemeManager.d.ts.map +1 -1
  12. package/dist/src/ThemeManager.js +10 -2
  13. package/dist/src/ThemeManager.js.map +1 -0
  14. package/dist/src/lib/addExtraThemeEntries.js +1 -0
  15. package/dist/src/lib/addExtraThemeEntries.js.map +1 -0
  16. package/dist/src/lib/cssVariables.js +1 -0
  17. package/dist/src/lib/cssVariables.js.map +1 -0
  18. package/dist/src/lib/makeCssVariableDefinitionsMap.js +1 -0
  19. package/dist/src/lib/makeCssVariableDefinitionsMap.js.map +1 -0
  20. package/dist/src/lib/makeCssVariableTheme.js +1 -0
  21. package/dist/src/lib/makeCssVariableTheme.js.map +1 -0
  22. package/dist/src/lib/mapLeafsOfObject.js +1 -0
  23. package/dist/src/lib/mapLeafsOfObject.js.map +1 -0
  24. package/dist/src/themes/heart.js +1 -0
  25. package/dist/src/themes/heart.js.map +1 -0
  26. package/dist/src/themes/index.js +1 -0
  27. package/dist/src/themes/index.js.map +1 -0
  28. package/dist/src/types.js +1 -0
  29. package/dist/src/types.js.map +1 -0
  30. package/package.json +2 -2
  31. package/react/ThemeProvider.tsx +49 -8
  32. package/src/ThemeManager.ts +9 -1
  33. package/react/ThemeProvider.d.ts +0 -12
  34. package/react/ThemeProvider.js +0 -45
  35. package/react/ThemeProvider.js.map +0 -1
  36. package/react/index.d.ts +0 -1
  37. package/react/index.js +0 -14
  38. package/react/index.js.map +0 -1
  39. package/src/ThemeManager.d.ts +0 -22
  40. package/src/ThemeManager.js +0 -68
  41. package/src/ThemeManager.js.map +0 -1
  42. package/src/lib/__tests__/themeForTesting.d.ts +0 -38
  43. package/src/lib/__tests__/themeForTesting.js +0 -21
  44. package/src/lib/__tests__/themeForTesting.js.map +0 -1
  45. package/src/lib/addExtraThemeEntries.d.ts +0 -24
  46. package/src/lib/addExtraThemeEntries.js +0 -60
  47. package/src/lib/addExtraThemeEntries.js.map +0 -1
  48. package/src/lib/cssVariables.d.ts +0 -22
  49. package/src/lib/cssVariables.js +0 -36
  50. package/src/lib/cssVariables.js.map +0 -1
  51. package/src/lib/makeCssVariableDefinitionsMap.d.ts +0 -29
  52. package/src/lib/makeCssVariableDefinitionsMap.js +0 -58
  53. package/src/lib/makeCssVariableDefinitionsMap.js.map +0 -1
  54. package/src/lib/makeCssVariableTheme.d.ts +0 -34
  55. package/src/lib/makeCssVariableTheme.js +0 -58
  56. package/src/lib/makeCssVariableTheme.js.map +0 -1
  57. package/src/lib/mapLeafsOfObject.d.ts +0 -22
  58. package/src/lib/mapLeafsOfObject.js +0 -62
  59. package/src/lib/mapLeafsOfObject.js.map +0 -1
  60. package/src/lib/patterns.d.ts +0 -2
  61. package/src/lib/patterns.js +0 -6
  62. package/src/lib/patterns.js.map +0 -1
  63. package/src/themes/heart.d.ts +0 -2
  64. package/src/themes/heart.js +0 -288
  65. package/src/themes/heart.js.map +0 -1
  66. package/src/themes/index.d.ts +0 -2
  67. package/src/themes/index.js +0 -15
  68. package/src/themes/index.js.map +0 -1
  69. package/src/types.d.ts +0 -205
  70. package/src/types.js +0 -3
  71. package/src/types.js.map +0 -1
@@ -1,288 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.heartTheme = void 0;
4
- exports.heartTheme = {
5
- themeKey: "heart",
6
- animation: {
7
- easingFunction: {
8
- easeInOut: "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
9
- easeIn: "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
10
- easeOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
11
- linear: "linear",
12
- bounceIn: "cubic-bezier(0.485, 0.155, 0.24, 1.245)",
13
- bounceOut: "cubic-bezier(0.485, 0.155, 0.515, 0.845)",
14
- bounceInOut: "cubic-bezier(0.76, -0.245, 0.24, 1.245)"
15
- },
16
- duration: {
17
- instant: "0ms",
18
- immediate: "100ms",
19
- rapid: "200ms",
20
- fast: "300ms",
21
- slow: "400ms",
22
- deliberate: "700ms"
23
- }
24
- },
25
- border: {
26
- solid: {
27
- borderWidth: "2px",
28
- borderRadius: "7px",
29
- borderStyle: "solid",
30
- borderColor: "#e1e2ea"
31
- },
32
- dashed: {
33
- borderWidth: "2px",
34
- borderRadius: "7px",
35
- borderStyle: "dashed"
36
- },
37
- borderless: {
38
- borderWidth: "2px",
39
- borderRadius: "7px",
40
- borderStyle: "solid",
41
- borderColor: "transparent"
42
- },
43
- focusRing: {
44
- borderWidth: "2px",
45
- borderRadius: "10px",
46
- borderStyle: "solid"
47
- }
48
- },
49
- color: {
50
- purple: {
51
- 100: "#f4edf8",
52
- 200: "#dfc9ea",
53
- 300: "#c9a5dd",
54
- 400: "#ae67b1",
55
- 500: "#844587",
56
- 600: "#5f3361",
57
- 700: "#4a234d",
58
- 800: "#2f2438"
59
- },
60
- blue: {
61
- 100: "#e6f6ff",
62
- 200: "#bde2f5",
63
- 300: "#73c0e8",
64
- 400: "#008bd6",
65
- 500: "#0168b3",
66
- 600: "#004970",
67
- 700: "#003157"
68
- },
69
- green: {
70
- 100: "#e8f8f4",
71
- 200: "#c4ede2",
72
- 300: "#8fdbc7",
73
- 400: "#5dcbad",
74
- 500: "#44a289",
75
- 600: "#2c7d67",
76
- 700: "#22594a"
77
- },
78
- yellow: {
79
- 100: "#fff9e4",
80
- 200: "#ffeeb3",
81
- 300: "#ffe36e",
82
- 400: "#ffca4d",
83
- 500: "#ffb600",
84
- 600: "#c68600",
85
- 700: "#876400"
86
- },
87
- red: {
88
- 100: "#fdeaee",
89
- 200: "#f9c2cb",
90
- 300: "#f597a8",
91
- 400: "#e0707d",
92
- 500: "#c93b55",
93
- 600: "#a82433",
94
- 700: "#6c1e20"
95
- },
96
- orange: {
97
- 100: "#fff0e8",
98
- 200: "#ffd1b9",
99
- 300: "#ffb08a",
100
- 400: "#ff9461",
101
- 500: "#e96c2f",
102
- 600: "#b74302",
103
- 700: "#903c00"
104
- },
105
- gray: {
106
- 100: "#f9f9f9",
107
- 200: "#f4f4f5",
108
- 300: "#eaeaec",
109
- 400: "#cdcdd0",
110
- 500: "#8c8c97",
111
- 600: "#524e56"
112
- },
113
- white: "#ffffff"
114
- },
115
- dataViz: {
116
- favorable: "#7dd5bd",
117
- unfavorable: "#e68d97"
118
- },
119
- layout: {
120
- contentMaxWidth: "1392px",
121
- contentMaxWidthWithSidebar: "1080px",
122
- contentSideMargin: "72px",
123
- mobileActionsDrawerHeight: "60px",
124
- navigationBarHeight: "72px",
125
- breakpoints: {
126
- medium: "768px",
127
- large: "1080px"
128
- }
129
- },
130
- shadow: {
131
- small: {
132
- boxShadow: "0px 3px 16px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"
133
- },
134
- large: {
135
- boxShadow: "0px 8px 40px rgba(0, 0, 0, 0.08), 0px 3px 9px rgba(0, 0, 0, 0.1)"
136
- }
137
- },
138
- spacing: {
139
- xs: "0.375rem",
140
- sm: "0.75rem",
141
- md: "1.5rem",
142
- lg: "2.25rem",
143
- xl: "3rem",
144
- xxl: "3.75rem",
145
- xxxl: "4.5rem",
146
- xxxxl: "5.25rem",
147
- xxxxxl: "6rem"
148
- },
149
- typography: {
150
- dataLarge: {
151
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
152
- fontWeight: 700,
153
- fontSize: "5.25rem",
154
- lineHeight: "5.25rem",
155
- letterSpacing: "normal"
156
- },
157
- dataLargeUnits: {
158
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
159
- fontWeight: 700,
160
- fontSize: "2.625rem",
161
- lineHeight: "5.25rem",
162
- letterSpacing: "normal"
163
- },
164
- dataMedium: {
165
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
166
- fontWeight: 700,
167
- fontSize: "3rem",
168
- lineHeight: "5rem",
169
- letterSpacing: "normal"
170
- },
171
- dataMediumUnits: {
172
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
173
- fontWeight: 700,
174
- fontSize: "1.5rem",
175
- lineHeight: "5rem",
176
- letterSpacing: "normal"
177
- },
178
- dataSmall: {
179
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
180
- fontWeight: 700,
181
- fontSize: "1.5rem",
182
- lineHeight: "1.5rem",
183
- letterSpacing: "normal"
184
- },
185
- dataSmallUnits: {
186
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
187
- fontWeight: 700,
188
- fontSize: "1.125rem",
189
- lineHeight: "1.5rem",
190
- letterSpacing: "normal"
191
- },
192
- display0: {
193
- fontFamily: '"Tiempos Headline", Georgia, serif',
194
- fontWeight: 800,
195
- fontSize: "4.5rem",
196
- lineHeight: "5.25rem",
197
- letterSpacing: "0em"
198
- },
199
- heading1: {
200
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
201
- fontWeight: 700,
202
- fontSize: "2.125rem",
203
- lineHeight: "2.625rem",
204
- letterSpacing: "normal"
205
- },
206
- heading2: {
207
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
208
- fontWeight: 700,
209
- fontSize: "1.75rem",
210
- lineHeight: "2.25rem",
211
- letterSpacing: "normal"
212
- },
213
- heading3: {
214
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
215
- fontWeight: 700,
216
- fontSize: "1.375rem",
217
- lineHeight: "1.875rem",
218
- letterSpacing: "normal"
219
- },
220
- heading4: {
221
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
222
- fontWeight: 600,
223
- fontSize: "1.125rem",
224
- lineHeight: "1.5rem",
225
- letterSpacing: "normal"
226
- },
227
- heading5: {
228
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
229
- fontWeight: 600,
230
- fontSize: "1rem",
231
- lineHeight: "1.5rem",
232
- letterSpacing: "normal"
233
- },
234
- heading6: {
235
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
236
- fontWeight: 700,
237
- fontSize: "0.875rem",
238
- lineHeight: "1.5rem",
239
- letterSpacing: "normal"
240
- },
241
- paragraphIntroLede: {
242
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
243
- fontWeight: 400,
244
- fontSize: "1.25rem",
245
- lineHeight: "1.875rem",
246
- letterSpacing: "-0.5px"
247
- },
248
- paragraphBody: {
249
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
250
- fontWeight: 400,
251
- fontSize: "1rem",
252
- lineHeight: "1.5rem",
253
- letterSpacing: "normal"
254
- },
255
- paragraphSmall: {
256
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
257
- fontWeight: 400,
258
- fontSize: "0.875rem",
259
- lineHeight: "1.125rem",
260
- letterSpacing: "normal"
261
- },
262
- paragraphExtraSmall: {
263
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
264
- fontWeight: 400,
265
- fontSize: "0.75rem",
266
- lineHeight: "1.125rem",
267
- letterSpacing: "normal"
268
- },
269
- paragraphBold: {
270
- fontWeight: 600
271
- },
272
- buttonPrimary: {
273
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
274
- fontWeight: 700,
275
- fontSize: "1.125rem",
276
- lineHeight: "1.5rem",
277
- letterSpacing: "normal"
278
- },
279
- buttonSecondary: {
280
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
281
- fontWeight: 500,
282
- fontSize: "1rem",
283
- lineHeight: "1.5rem",
284
- letterSpacing: "normal"
285
- }
286
- }
287
- };
288
- //# sourceMappingURL=heart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heart.js","sourceRoot":"","sources":["heart.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAU;IAC/B,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE;QACT,cAAc,EAAE;YACd,SAAS,EAAE,yCAAyC;YACpD,MAAM,EAAE,uCAAuC;YAC/C,OAAO,EAAE,sCAAsC;YAC/C,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,yCAAyC;YACnD,SAAS,EAAE,0CAA0C;YACrD,WAAW,EAAE,yCAAyC;SACvD;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,OAAO;YAClB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,OAAO;YACb,UAAU,EAAE,OAAO;SACpB;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE;YACL,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,SAAS;SACvB;QACD,MAAM,EAAE;YACN,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,QAAQ;SACtB;QACD,UAAU,EAAE;YACV,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,aAAa;SAC3B;QACD,SAAS,EAAE;YACT,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,MAAM;YACpB,WAAW,EAAE,OAAO;SACrB;KACF;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd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E,QAAQ;YACpB,aAAa,EAAE,QAAQ;SACxB;QACD,kBAAkB,EAAE;YAClB,UAAU,EAAE,oDAAoD;YAChE,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,QAAQ;SACxB;QACD,aAAa,EAAE;YACb,UAAU,EAAE,oDAAoD;YAChE,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,QAAQ;YACpB,aAAa,EAAE,QAAQ;SACxB;QACD,cAAc,EAAE;YACd,UAAU,EAAE,oDAAoD;YAChE,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,QAAQ;SACxB;QACD,mBAAmB,EAAE;YACnB,UAAU,EAAE,oDAAoD;YAChE,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,QAAQ;SACxB;QACD,aAAa,EAAE;YACb,UAAU,EAAE,GAAG;SAChB;QACD,aAAa,EAAE;YACb,UAAU,EAAE,oDAAoD;YAChE,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,QAAQ;YACpB,aAAa,EAAE,QAAQ;SACxB;QACD,eAAe,EAAE;YACf,UAAU,EAAE,oDAAoD;YAChE,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,QAAQ;YACpB,aAAa,EAAE,QAAQ;SACxB;KACF;CACF,CAAA"}
@@ -1,2 +0,0 @@
1
- export { heartTheme } from "./heart";
2
- export declare const defaultTheme: import("../types").Theme;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- exports.__esModule = true;
10
- exports.defaultTheme = exports.heartTheme = void 0;
11
- var heart_1 = require("./heart");
12
- var heart_2 = require("./heart");
13
- __createBinding(exports, heart_2, "heartTheme");
14
- exports.defaultTheme = heart_1.heartTheme;
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,iCAAoC;AACpC,iCAAoC;AAA3B,gDAAU;AACN,QAAA,YAAY,GAAG,kBAAU,CAAA"}
package/src/types.d.ts DELETED
@@ -1,205 +0,0 @@
1
- import type { CSSProperties as ReactCSSProperties } from "react";
2
- /**
3
- * Use a custom type for CSS properties becauase we should eventually write a more strongly typed version using template literal types.
4
- * 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
5
- * For example:
6
- * ```ts
7
- * type Font = {
8
- * fontSize: `${number}rem`,
9
- *
10
- * }
11
- * type HexDigit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F ;
12
- * type Color = `rgba(${number}, ${number}, ${number}, ${number}) | #${HexDigit}${HexDigit}${HexDigit}` // You get the point
13
- *
14
- * ```
15
- * */
16
- declare type KaizenCSSProperties = ReactCSSProperties;
17
- declare type Hex = string;
18
- export declare type TypographyFont = {
19
- fontFamily: KaizenCSSProperties["fontFamily"];
20
- fontWeight: KaizenCSSProperties["fontWeight"];
21
- fontSize: KaizenCSSProperties["fontSize"];
22
- lineHeight: KaizenCSSProperties["lineHeight"];
23
- letterSpacing: KaizenCSSProperties["letterSpacing"];
24
- };
25
- export declare type ThemeKey = "heart" | "custom";
26
- export declare type Theme = {
27
- themeKey: ThemeKey;
28
- border: {
29
- solid: {
30
- borderWidth: KaizenCSSProperties["borderWidth"];
31
- borderRadius: KaizenCSSProperties["borderRadius"];
32
- borderStyle: KaizenCSSProperties["borderStyle"];
33
- borderColor: KaizenCSSProperties["borderColor"];
34
- };
35
- dashed: {
36
- borderWidth: KaizenCSSProperties["borderWidth"];
37
- borderRadius: KaizenCSSProperties["borderRadius"];
38
- borderStyle: KaizenCSSProperties["borderStyle"];
39
- };
40
- borderless: {
41
- borderWidth: KaizenCSSProperties["borderWidth"];
42
- borderRadius: KaizenCSSProperties["borderRadius"];
43
- borderStyle: KaizenCSSProperties["borderStyle"];
44
- borderColor: KaizenCSSProperties["borderColor"];
45
- };
46
- focusRing: {
47
- borderWidth: KaizenCSSProperties["borderWidth"];
48
- borderRadius: KaizenCSSProperties["borderRadius"];
49
- borderStyle: KaizenCSSProperties["borderStyle"];
50
- };
51
- };
52
- animation: {
53
- easingFunction: {
54
- easeInOut: string;
55
- easeIn: string;
56
- easeOut: string;
57
- linear: string;
58
- bounceIn: string;
59
- bounceOut: string;
60
- bounceInOut: string;
61
- };
62
- duration: {
63
- instant: string;
64
- immediate: string;
65
- rapid: string;
66
- fast: string;
67
- slow: string;
68
- deliberate: string;
69
- };
70
- };
71
- color: {
72
- purple: {
73
- "100": Hex;
74
- "200": Hex;
75
- "300": Hex;
76
- "400": Hex;
77
- "500": Hex;
78
- "600": Hex;
79
- "700": Hex;
80
- "800": Hex;
81
- };
82
- blue: {
83
- "100": Hex;
84
- "200": Hex;
85
- "300": Hex;
86
- "400": Hex;
87
- "500": Hex;
88
- "600": Hex;
89
- "700": Hex;
90
- };
91
- green: {
92
- "100": Hex;
93
- "200": Hex;
94
- "300": Hex;
95
- "400": Hex;
96
- "500": Hex;
97
- "600": Hex;
98
- "700": Hex;
99
- };
100
- yellow: {
101
- "100": Hex;
102
- "200": Hex;
103
- "300": Hex;
104
- "400": Hex;
105
- "500": Hex;
106
- "600": Hex;
107
- "700": Hex;
108
- };
109
- red: {
110
- "100": Hex;
111
- "200": Hex;
112
- "300": Hex;
113
- "400": Hex;
114
- "500": Hex;
115
- "600": Hex;
116
- "700": Hex;
117
- };
118
- orange: {
119
- "100": Hex;
120
- "200": Hex;
121
- "300": Hex;
122
- "400": Hex;
123
- "500": Hex;
124
- "600": Hex;
125
- "700": Hex;
126
- };
127
- gray: {
128
- "100": Hex;
129
- "200": Hex;
130
- "300": Hex;
131
- "400": Hex;
132
- "500": Hex;
133
- "600": Hex;
134
- };
135
- white: Hex;
136
- };
137
- dataViz: {
138
- favorable: Hex;
139
- unfavorable: Hex;
140
- };
141
- layout: {
142
- contentMaxWidth: string;
143
- contentMaxWidthWithSidebar: string;
144
- contentSideMargin: string;
145
- mobileActionsDrawerHeight: string;
146
- navigationBarHeight: string;
147
- breakpoints: {
148
- medium: string;
149
- large: string;
150
- };
151
- };
152
- shadow: {
153
- small: {
154
- boxShadow: string;
155
- };
156
- large: {
157
- boxShadow: string;
158
- };
159
- };
160
- spacing: {
161
- xs: string;
162
- sm: string;
163
- md: string;
164
- lg: string;
165
- xl: string;
166
- xxl: string;
167
- xxxl: string;
168
- xxxxl: string;
169
- xxxxxl: string;
170
- };
171
- typography: {
172
- dataLarge: TypographyFont;
173
- dataLargeUnits: TypographyFont;
174
- dataMedium: TypographyFont;
175
- dataMediumUnits: TypographyFont;
176
- dataSmall: TypographyFont;
177
- dataSmallUnits: TypographyFont;
178
- display0: TypographyFont;
179
- heading1: TypographyFont;
180
- heading2: TypographyFont;
181
- heading3: TypographyFont;
182
- heading4: TypographyFont;
183
- heading5: TypographyFont;
184
- heading6: TypographyFont;
185
- paragraphIntroLede: TypographyFont;
186
- paragraphBody: TypographyFont;
187
- paragraphSmall: TypographyFont;
188
- paragraphExtraSmall: TypographyFont;
189
- paragraphBold: {
190
- fontWeight: KaizenCSSProperties["fontWeight"];
191
- };
192
- buttonPrimary: TypographyFont;
193
- buttonSecondary: TypographyFont;
194
- };
195
- };
196
- export declare type DeepMapObjectLeafs<T, LeafType> = T extends string | number | bigint | boolean | symbol | null | undefined | ((...params: any[]) => any) ? LeafType : T extends Record<any, any> ? {
197
- [Key in keyof T]: DeepMapObjectLeafs<T[Key], LeafType>;
198
- } : T;
199
- /**
200
- * Apologies for the complex types.
201
- * 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.
202
- * 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)`.
203
- */
204
- export declare type CSSVariableTheme = DeepMapObjectLeafs<Theme, string>;
205
- export {};
package/src/types.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- //# sourceMappingURL=types.js.map
package/src/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":""}