@mich8060/unified-design-system 0.2.8 → 0.2.10

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 (195) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  4. package/dist/_virtual/_commonjsHelpers.js +1 -0
  5. package/dist/_virtual/prism.cjs +1 -0
  6. package/dist/_virtual/prism.js +1 -0
  7. package/dist/_virtual/prism2.cjs +1 -0
  8. package/dist/_virtual/prism2.js +1 -0
  9. package/dist/assets/svg/comphealth-symbol.svg.cjs +6 -0
  10. package/dist/assets/svg/comphealth-symbol.svg.js +6 -0
  11. package/dist/assets/svg/comphealth.svg.cjs +15 -0
  12. package/dist/assets/svg/comphealth.svg.js +15 -0
  13. package/dist/assets/svg/connect-symbol.svg.cjs +5 -0
  14. package/dist/assets/svg/connect-symbol.svg.js +5 -0
  15. package/dist/assets/svg/connect.svg.cjs +15 -0
  16. package/dist/assets/svg/connect.svg.js +15 -0
  17. package/dist/assets/svg/design-system-symbol.svg.cjs +4 -0
  18. package/dist/assets/svg/design-system-symbol.svg.js +4 -0
  19. package/dist/assets/svg/design-system.svg.cjs +13 -0
  20. package/dist/assets/svg/design-system.svg.js +13 -0
  21. package/dist/assets/svg/locumsmart-symbol.svg.cjs +8 -0
  22. package/dist/assets/svg/locumsmart-symbol.svg.js +8 -0
  23. package/dist/assets/svg/locumsmart.svg.cjs +18 -0
  24. package/dist/assets/svg/locumsmart.svg.js +18 -0
  25. package/dist/assets/svg/modio-symbol.svg.cjs +4 -0
  26. package/dist/assets/svg/modio-symbol.svg.js +4 -0
  27. package/dist/assets/svg/modio.svg.cjs +9 -0
  28. package/dist/assets/svg/modio.svg.js +9 -0
  29. package/dist/assets/svg/weatherby-symbol.svg.cjs +5 -0
  30. package/dist/assets/svg/weatherby-symbol.svg.js +5 -0
  31. package/dist/assets/svg/weatherby.svg.cjs +14 -0
  32. package/dist/assets/svg/weatherby.svg.js +14 -0
  33. package/dist/assets/svg/wireframe-symbol.svg.cjs +7 -0
  34. package/dist/assets/svg/wireframe-symbol.svg.js +7 -0
  35. package/dist/assets/svg/wireframe.svg.cjs +17 -0
  36. package/dist/assets/svg/wireframe.svg.js +17 -0
  37. package/dist/components/Accordion/Accordion.cjs +1 -0
  38. package/dist/components/Accordion/Accordion.js +1 -0
  39. package/dist/components/ActionMenu/ActionMenu.cjs +1 -0
  40. package/dist/components/ActionMenu/ActionMenu.js +1 -0
  41. package/dist/components/Avatar/Avatar.cjs +1 -0
  42. package/dist/components/Avatar/Avatar.js +1 -0
  43. package/dist/components/Badge/Badge.cjs +1 -0
  44. package/dist/components/Badge/Badge.js +1 -0
  45. package/dist/components/Branding/Branding.cjs +1 -0
  46. package/dist/components/Branding/Branding.js +1 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.js +1 -0
  49. package/dist/components/Button/Button.cjs +1 -0
  50. package/dist/components/Button/Button.js +1 -0
  51. package/dist/components/Calendar/Calendar.cjs +1 -0
  52. package/dist/components/Calendar/Calendar.js +1 -0
  53. package/dist/components/Card/Card.cjs +1 -0
  54. package/dist/components/Card/Card.js +1 -0
  55. package/dist/components/Checkbox/Checkbox.cjs +1 -0
  56. package/dist/components/Checkbox/Checkbox.js +1 -0
  57. package/dist/components/Chip/Chip.cjs +1 -0
  58. package/dist/components/Chip/Chip.js +1 -0
  59. package/dist/components/Code/Code.cjs +1 -0
  60. package/dist/components/Code/Code.js +1 -0
  61. package/dist/components/Container/Container.cjs +1 -0
  62. package/dist/components/Container/Container.js +1 -0
  63. package/dist/components/Datepicker/Datepicker.cjs +1 -0
  64. package/dist/components/Datepicker/Datepicker.js +1 -0
  65. package/dist/components/Dialog/Dialog.cjs +1 -0
  66. package/dist/components/Dialog/Dialog.js +1 -0
  67. package/dist/components/Divider/Divider.cjs +1 -0
  68. package/dist/components/Divider/Divider.js +1 -0
  69. package/dist/components/DotStatus/DotStatus.cjs +1 -0
  70. package/dist/components/DotStatus/DotStatus.js +1 -0
  71. package/dist/components/Dropdown/Dropdown.cjs +1 -0
  72. package/dist/components/Dropdown/Dropdown.js +1 -0
  73. package/dist/components/EmptyState/EmptyState.cjs +1 -0
  74. package/dist/components/EmptyState/EmptyState.js +1 -0
  75. package/dist/components/EventCard/EventCard.cjs +1 -0
  76. package/dist/components/EventCard/EventCard.js +1 -0
  77. package/dist/components/Field/Field.cjs +1 -0
  78. package/dist/components/Field/Field.js +1 -0
  79. package/dist/components/FileUpload/FileUpload.cjs +1 -0
  80. package/dist/components/FileUpload/FileUpload.js +1 -0
  81. package/dist/components/Flex/Flex.cjs +1 -0
  82. package/dist/components/Flex/Flex.js +1 -0
  83. package/dist/components/Icon/Icon.cjs +1 -0
  84. package/dist/components/Icon/Icon.js +1 -0
  85. package/dist/components/ImageAspect/ImageAspect.cjs +1 -0
  86. package/dist/components/ImageAspect/ImageAspect.js +1 -0
  87. package/dist/components/Key/Key.cjs +1 -0
  88. package/dist/components/Key/Key.js +1 -0
  89. package/dist/components/Menu/Menu.cjs +1 -0
  90. package/dist/components/Menu/Menu.js +1 -0
  91. package/dist/components/MicroCalendar/MicroCalendar.cjs +1 -0
  92. package/dist/components/MicroCalendar/MicroCalendar.js +1 -0
  93. package/dist/components/Modal/Modal.cjs +1 -0
  94. package/dist/components/Modal/Modal.js +1 -0
  95. package/dist/components/Pagination/Pagination.cjs +1 -0
  96. package/dist/components/Pagination/Pagination.js +1 -0
  97. package/dist/components/PillToggle/PillToggle.cjs +1 -0
  98. package/dist/components/PillToggle/PillToggle.js +1 -0
  99. package/dist/components/Playground/Playground.cjs +9 -0
  100. package/dist/components/Playground/Playground.js +9 -0
  101. package/dist/components/ProgressCircle/ProgressCircle.cjs +1 -0
  102. package/dist/components/ProgressCircle/ProgressCircle.js +1 -0
  103. package/dist/components/ProgressIndicator/ProgressIndicator.cjs +1 -0
  104. package/dist/components/ProgressIndicator/ProgressIndicator.js +1 -0
  105. package/dist/components/Radio/Radio.cjs +1 -0
  106. package/dist/components/Radio/Radio.js +1 -0
  107. package/dist/components/Slider/Slider.cjs +1 -0
  108. package/dist/components/Slider/Slider.js +1 -0
  109. package/dist/components/Status/Status.cjs +1 -0
  110. package/dist/components/Status/Status.js +1 -0
  111. package/dist/components/Steps/Steps.cjs +1 -0
  112. package/dist/components/Steps/Steps.js +1 -0
  113. package/dist/components/Table/Table.cjs +1 -0
  114. package/dist/components/Table/Table.js +1 -0
  115. package/dist/components/Tabs/TabItem.cjs +1 -0
  116. package/dist/components/Tabs/TabItem.js +1 -0
  117. package/dist/components/Tabs/Tabs.cjs +1 -0
  118. package/dist/components/Tabs/Tabs.js +1 -0
  119. package/dist/components/Tag/Tag.cjs +1 -0
  120. package/dist/components/Tag/Tag.js +1 -0
  121. package/dist/components/Text/Text.cjs +1 -0
  122. package/dist/components/Text/Text.js +1 -0
  123. package/dist/components/Text/Text.spec.cjs +1 -0
  124. package/dist/components/Text/Text.spec.js +1 -0
  125. package/dist/components/TextInput/TextInput.cjs +1 -0
  126. package/dist/components/TextInput/TextInput.js +1 -0
  127. package/dist/components/Textarea/Textarea.cjs +1 -0
  128. package/dist/components/Textarea/Textarea.js +1 -0
  129. package/dist/components/Toast/Toast.cjs +1 -0
  130. package/dist/components/Toast/Toast.js +1 -0
  131. package/dist/components/Toggle/Toggle.cjs +1 -0
  132. package/dist/components/Toggle/Toggle.js +1 -0
  133. package/dist/components/Tooltip/Tooltip.cjs +1 -0
  134. package/dist/components/Tooltip/Tooltip.js +1 -0
  135. package/dist/constants.cjs +1 -0
  136. package/dist/constants.js +1 -0
  137. package/dist/design-system/components/Badge/Badge.d.ts +4 -2
  138. package/dist/design-system/components/Badge/Badge.types.d.ts +5 -1
  139. package/dist/design-system/components/Container/Container.d.ts +3 -0
  140. package/dist/design-system/components/Container/Container.types.d.ts +7 -0
  141. package/dist/design-system/components/Container/index.d.ts +2 -0
  142. package/dist/design-system/components/Dropdown/Dropdown.d.ts +4 -1
  143. package/dist/design-system/components/EmptyState/EmptyState.d.ts +3 -0
  144. package/dist/design-system/components/EmptyState/EmptyState.types.d.ts +11 -0
  145. package/dist/design-system/components/EmptyState/index.d.ts +2 -0
  146. package/dist/design-system/components/Icon/Icon.d.ts +8 -1
  147. package/dist/design-system/components/Menu/Menu.d.ts +1 -30
  148. package/dist/design-system/components/Menu/Menu.types.d.ts +2 -0
  149. package/dist/design-system/components/Modal/Modal.d.ts +3 -1
  150. package/dist/design-system/components/Table/Table.d.ts +6 -11
  151. package/dist/design-system/components/Tabs/TabItem.d.ts +4 -2
  152. package/dist/design-system/components/Tabs/Tabs.d.ts +4 -1
  153. package/dist/design-system/components/TextInput/index.d.ts +1 -0
  154. package/dist/design-system/index.d.ts +3 -0
  155. package/dist/design-system/theme/ThemeProvider.d.ts +13 -0
  156. package/dist/design-system/theme/createBrand.d.ts +7 -0
  157. package/dist/design-system/theme/createTheme.d.ts +2 -0
  158. package/dist/design-system/theme/index.d.ts +4 -0
  159. package/dist/design-system/theme/theme.types.d.ts +55 -0
  160. package/dist/index.cjs +1 -162
  161. package/dist/index.js +1 -6677
  162. package/dist/node_modules/prismjs/prism.cjs +9 -0
  163. package/dist/node_modules/prismjs/prism.js +9 -0
  164. package/dist/src/app-shell/AppShell.cjs +1 -0
  165. package/dist/src/app-shell/AppShell.js +1 -0
  166. package/dist/src/app-shell/layout.types.cjs +1 -0
  167. package/dist/src/app-shell/layout.types.js +1 -0
  168. package/dist/style.css +1 -0
  169. package/dist/theme/ThemeProvider.cjs +1 -0
  170. package/dist/theme/ThemeProvider.js +1 -0
  171. package/dist/theme/createBrand.cjs +1 -0
  172. package/dist/theme/createBrand.js +1 -0
  173. package/dist/theme/createTheme.cjs +1 -0
  174. package/dist/theme/createTheme.js +1 -0
  175. package/dist/tokens/color.d.ts +40 -0
  176. package/dist/tokens/color.js +81 -0
  177. package/dist/tokens/generateCss.d.ts +2 -0
  178. package/dist/tokens/generateCss.js +34 -0
  179. package/dist/tokens/index.d.ts +475 -0
  180. package/dist/tokens/index.js +29 -0
  181. package/dist/tokens/motion.d.ts +14 -0
  182. package/dist/tokens/motion.js +15 -0
  183. package/dist/tokens/radius.d.ts +14 -0
  184. package/dist/tokens/radius.js +15 -0
  185. package/dist/tokens/shadow.d.ts +22 -0
  186. package/dist/tokens/shadow.js +24 -0
  187. package/dist/tokens/spacing.d.ts +21 -0
  188. package/dist/tokens/spacing.js +22 -0
  189. package/dist/tokens/tokens.css +421 -0
  190. package/dist/tokens/types.d.ts +21 -0
  191. package/dist/tokens/types.js +1 -0
  192. package/dist/tokens/typography.d.ts +87 -0
  193. package/dist/tokens/typography.js +95 -0
  194. package/package.json +330 -11
  195. package/dist/unified-design-system.css +0 -1
@@ -0,0 +1,40 @@
1
+ import type { TokenCategory } from "./types.js";
2
+ type Tone11 = "25" | "50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "1000";
3
+ type Tone10 = Exclude<Tone11, "1000">;
4
+ type Scale11 = Record<Tone11, string>;
5
+ type Scale10 = Record<Tone10, string>;
6
+ export declare const colorTokens: {
7
+ readonly system: {
8
+ readonly black: "#111111";
9
+ readonly white: "#ffffff";
10
+ readonly transparent: "rgba(255, 255, 255, 0.0099999998)";
11
+ };
12
+ readonly neutrals: Scale11;
13
+ readonly brand: {
14
+ readonly primary: Scale10;
15
+ readonly secondary: Scale10;
16
+ readonly tertiary: Scale10;
17
+ readonly quaternary: Scale10;
18
+ };
19
+ readonly accent: {
20
+ readonly amber: Scale11;
21
+ readonly aqua: Scale11;
22
+ readonly blue: Scale11;
23
+ readonly cyan: Scale11;
24
+ readonly emerald: Scale11;
25
+ readonly fuchsia: Scale11;
26
+ readonly green: Scale11;
27
+ readonly indigo: Scale11;
28
+ readonly lime: Scale11;
29
+ readonly magenta: Scale11;
30
+ readonly orange: Scale11;
31
+ readonly purple: Scale11;
32
+ readonly red: Scale11;
33
+ readonly rose: Scale11;
34
+ readonly sky: Scale11;
35
+ readonly violet: Scale11;
36
+ readonly yellow: Scale11;
37
+ };
38
+ };
39
+ export declare const colorCategory: TokenCategory;
40
+ export {};
@@ -0,0 +1,81 @@
1
+ const scale11 = (values) => ({
2
+ "25": values[0],
3
+ "50": values[1],
4
+ "100": values[2],
5
+ "200": values[3],
6
+ "300": values[4],
7
+ "400": values[5],
8
+ "500": values[6],
9
+ "600": values[7],
10
+ "700": values[8],
11
+ "800": values[9],
12
+ "900": values[10],
13
+ "1000": values[11],
14
+ });
15
+ const scale10 = (values) => ({
16
+ "25": values[0],
17
+ "50": values[1],
18
+ "100": values[2],
19
+ "200": values[3],
20
+ "300": values[4],
21
+ "400": values[5],
22
+ "500": values[6],
23
+ "600": values[7],
24
+ "700": values[8],
25
+ "800": values[9],
26
+ "900": values[10],
27
+ });
28
+ export const colorTokens = {
29
+ system: {
30
+ black: "#111111",
31
+ white: "#ffffff",
32
+ transparent: "rgba(255, 255, 255, 0.0099999998)",
33
+ },
34
+ neutrals: scale11(["#fafbfc", "#f9fafc", "#f3f4f6", "#e6e7eb", "#d2d5dc", "#9ca2ae", "#6b7380", "#4c5564", "#384152", "#202938", "#111828", "#0d1320"]),
35
+ brand: {
36
+ primary: scale10(["#f2fafd", "#e3f5fa", "#aee0f4", "#78cbec", "#41b7e5", "#00a7e1", "#009add", "#008dcf", "#0c6bb0", "#006aa8", "#004b88"]),
37
+ secondary: scale10(["#fefbf5", "#fef8ee", "#feefd6", "#fbdcad", "#f9c278", "#f59e42", "#f2821f", "#e36613", "#bc4d12", "#963e16", "#793515"]),
38
+ tertiary: scale10(["#eff2f5", "#e6ebf0", "#bfcddb", "#97adc3", "#708caa", "#4f7499", "#295d8b", "#215583", "#174b77", "#12416b", "#0f3152"]),
39
+ quaternary: scale10(["#fefdf6", "#fdfbed", "#f8f3cb", "#f1e796", "#ead55f", "#f8ca10", "#fbb03a", "#c3841c", "#a26e1b", "#845c1c", "#6d4d1a"]),
40
+ },
41
+ accent: {
42
+ amber: scale11(["#fffbeb", "#fef3c7", "#fde68a", "#fcd34d", "#fbc02d", "#fbbf24", "#f59e0b", "#d97706", "#b45309", "#92400e", "#78350f", "#5f2a09"]),
43
+ aqua: scale11(["#f0fdfa", "#ccfbf1", "#99f6e4", "#5eead4", "#2dd4bf", "#14b8a6", "#0d9488", "#0f766e", "#115e59", "#134e4a", "#0f3a37", "#0a2e2c"]),
44
+ blue: scale11(["#f2f7ff", "#eff6ff", "#dbeaff", "#bfdcfe", "#93c4fc", "#61a5fa", "#3b82f6", "#2563ec", "#1d4ed7", "#1f41af", "#1f3a8b", "#182e6f"]),
45
+ cyan: scale11(["#effeff", "#ecfeff", "#cffbfe", "#a5f3fd", "#66e8f8", "#21d3ed", "#07b6d5", "#0891b3", "#0f7490", "#165e76", "#164f63", "#113f4f"]),
46
+ emerald: scale11(["#effdf7", "#ecfdf5", "#d0fae4", "#a7f3cf", "#6de7b6", "#34d399", "#10b982", "#05976a", "#057857", "#075f47", "#064d3b", "#043d2f"]),
47
+ fuchsia: scale11(["#fef6ff", "#fef4ff", "#fae8fe", "#f5cffe", "#f0abfc", "#e879f9", "#d946ef", "#c026d4", "#a21caf", "#861990", "#701a75", "#59145d"]),
48
+ green: scale11(["#f3fdf6", "#f0fdf4", "#dcfce7", "#bbf7d1", "#86efac", "#4ade80", "#23c55e", "#17a34a", "#157f3d", "#176535", "#15532e", "#104224"]),
49
+ indigo: scale11(["#f1f4fe", "#eef2fe", "#e1e7ff", "#c7d2ff", "#a6b4fd", "#818cf8", "#6366f1", "#5046e5", "#4438ca", "#3730a2", "#312d81", "#272467"]),
50
+ lime: scale11(["#f7feeb", "#f6fee7", "#ecfccb", "#daf99c", "#bef164", "#a3e636", "#83cc16", "#64a30e", "#5a8720", "#3f6212", "#365313", "#2b420f"]),
51
+ magenta: scale11(["#fff5fb", "#fdf2f8", "#fce7f3", "#fbcfe8", "#f9a8d4", "#f472b6", "#ec4899", "#db2777", "#be185d", "#9d174d", "#831843", "#6b1235"]),
52
+ orange: scale11(["#fffbf7", "#fffaf5", "#fff6ed", "#ffead5", "#fddcab", "#feb273", "#fd853a", "#fb6514", "#ec4a0a", "#9c2a10", "#7e2410", "#641c0c"]),
53
+ purple: scale11(["#fbf7ff", "#fbf5ff", "#f4e8fe", "#ead5fe", "#d8b4fe", "#c085fd", "#a755f7", "#9334ea", "#7e22cf", "#6b22a8", "#571c86", "#45166b"]),
54
+ red: scale11(["#fef4f4", "#fef2f2", "#fee2e1", "#fecbca", "#fda5a4", "#f87070", "#f04444", "#dc2625", "#ba1c1d", "#991b1c", "#7f1d1e", "#651718"]),
55
+ rose: scale11(["#fff3f3", "#fff1f1", "#fee4e7", "#fecdd3", "#fea4b0", "#fb7286", "#f43f5e", "#e21d48", "#be113c", "#9f133a", "#891336", "#6d0f2b"]),
56
+ sky: scale11(["#f3faff", "#f0f9ff", "#e0f2fe", "#bae7fe", "#7ed3fc", "#38bdf8", "#0ea5ea", "#0384c6", "#0469a1", "#075a86", "#0c4a6f", "#0c4a6f"]),
57
+ violet: scale11(["#f7f5ff", "#f5f3ff", "#edeaff", "#ddd6ff", "#c5b5fe", "#a78bfa", "#8b5cf6", "#7d3aec", "#6d28d9", "#5b20b6", "#4d1d95", "#3d1777"]),
58
+ yellow: scale11(["#fefcec", "#fefce8", "#fef9c3", "#fef08a", "#fde047", "#facc15", "#e9b308", "#ca8a04", "#a26208", "#854e0e", "#723f12", "#5b320e"]),
59
+ },
60
+ };
61
+ const rootVars = {
62
+ "--system-color-black": colorTokens.system.black,
63
+ "--system-color-white": colorTokens.system.white,
64
+ "--system-color-transparent": colorTokens.system.transparent,
65
+ };
66
+ for (const [tone, value] of Object.entries(colorTokens.neutrals)) {
67
+ rootVars[`--system-color-neutrals-${tone}`] = value;
68
+ }
69
+ for (const [family, tones] of Object.entries(colorTokens.brand)) {
70
+ for (const [tone, value] of Object.entries(tones)) {
71
+ rootVars[`--system-color-${family}-${tone}`] = value;
72
+ }
73
+ }
74
+ for (const [family, tones] of Object.entries(colorTokens.accent)) {
75
+ for (const [tone, value] of Object.entries(tones)) {
76
+ rootVars[`--system-color-accent-${family}-${tone}`] = value;
77
+ }
78
+ }
79
+ export const colorCategory = {
80
+ cssVars: rootVars,
81
+ };
@@ -0,0 +1,2 @@
1
+ import type { RuntimeTokens } from "./types.js";
2
+ export declare const generateRuntimeTokensCss: (tokens: RuntimeTokens) => string;
@@ -0,0 +1,34 @@
1
+ const renderCssVars = (vars) => Object.entries(vars)
2
+ .map(([name, value]) => ` ${name}: ${value};`)
3
+ .join("\n");
4
+ const renderRootBlock = (vars) => `:root {\n${renderCssVars(vars)}\n}`;
5
+ export const generateRuntimeTokensCss = (tokens) => {
6
+ const sections = [];
7
+ sections.push(renderRootBlock(tokens.color.cssVars));
8
+ sections.push(renderRootBlock(tokens.spacing.cssVars));
9
+ sections.push(renderRootBlock(tokens.radius.cssVars));
10
+ sections.push(renderRootBlock(tokens.typography.cssVars));
11
+ sections.push(renderRootBlock(tokens.shadow.cssVars));
12
+ sections.push(renderRootBlock(tokens.motion.cssVars));
13
+ if (tokens.typography.media) {
14
+ for (const media of tokens.typography.media) {
15
+ sections.push(`@media ${media.query} {\n${renderRootBlock(media.cssVars)}\n}`);
16
+ }
17
+ }
18
+ if (tokens.shadow.darkCssVars) {
19
+ sections.push(`.theme-dark {\n${renderCssVars(tokens.shadow.darkCssVars)}\n}`);
20
+ }
21
+ if (tokens.color.darkCssVars) {
22
+ sections.push(`.theme-dark {\n${renderCssVars(tokens.color.darkCssVars)}\n}`);
23
+ }
24
+ if (tokens.motion.darkCssVars) {
25
+ sections.push(`.theme-dark {\n${renderCssVars(tokens.motion.darkCssVars)}\n}`);
26
+ }
27
+ if (tokens.spacing.darkCssVars) {
28
+ sections.push(`.theme-dark {\n${renderCssVars(tokens.spacing.darkCssVars)}\n}`);
29
+ }
30
+ if (tokens.radius.darkCssVars) {
31
+ sections.push(`.theme-dark {\n${renderCssVars(tokens.radius.darkCssVars)}\n}`);
32
+ }
33
+ return `${sections.join("\n\n")}\n`;
34
+ };
@@ -0,0 +1,475 @@
1
+ import type { RuntimeTokens } from "./types.js";
2
+ export { colorTokens } from "./color.js";
3
+ export { spacingTokens } from "./spacing.js";
4
+ export { radiusTokens } from "./radius.js";
5
+ export { typographyTokens } from "./typography.js";
6
+ export { shadowTokens } from "./shadow.js";
7
+ export { motionTokens } from "./motion.js";
8
+ export { generateRuntimeTokensCss } from "./generateCss.js";
9
+ export type { CssVarMap, RuntimeTokens, TokenCategory, TypographyCategory } from "./types.js";
10
+ export declare const runtimeTokens: RuntimeTokens;
11
+ export declare const tokensByCategory: {
12
+ readonly color: {
13
+ readonly system: {
14
+ readonly black: "#111111";
15
+ readonly white: "#ffffff";
16
+ readonly transparent: "rgba(255, 255, 255, 0.0099999998)";
17
+ };
18
+ readonly neutrals: {
19
+ 25: string;
20
+ 50: string;
21
+ 100: string;
22
+ 200: string;
23
+ 300: string;
24
+ 400: string;
25
+ 500: string;
26
+ 600: string;
27
+ 700: string;
28
+ 800: string;
29
+ 900: string;
30
+ 1000: string;
31
+ };
32
+ readonly brand: {
33
+ readonly primary: {
34
+ 25: string;
35
+ 50: string;
36
+ 100: string;
37
+ 200: string;
38
+ 300: string;
39
+ 400: string;
40
+ 500: string;
41
+ 600: string;
42
+ 700: string;
43
+ 800: string;
44
+ 900: string;
45
+ };
46
+ readonly secondary: {
47
+ 25: string;
48
+ 50: string;
49
+ 100: string;
50
+ 200: string;
51
+ 300: string;
52
+ 400: string;
53
+ 500: string;
54
+ 600: string;
55
+ 700: string;
56
+ 800: string;
57
+ 900: string;
58
+ };
59
+ readonly tertiary: {
60
+ 25: string;
61
+ 50: string;
62
+ 100: string;
63
+ 200: string;
64
+ 300: string;
65
+ 400: string;
66
+ 500: string;
67
+ 600: string;
68
+ 700: string;
69
+ 800: string;
70
+ 900: string;
71
+ };
72
+ readonly quaternary: {
73
+ 25: string;
74
+ 50: string;
75
+ 100: string;
76
+ 200: string;
77
+ 300: string;
78
+ 400: string;
79
+ 500: string;
80
+ 600: string;
81
+ 700: string;
82
+ 800: string;
83
+ 900: string;
84
+ };
85
+ };
86
+ readonly accent: {
87
+ readonly amber: {
88
+ 25: string;
89
+ 50: string;
90
+ 100: string;
91
+ 200: string;
92
+ 300: string;
93
+ 400: string;
94
+ 500: string;
95
+ 600: string;
96
+ 700: string;
97
+ 800: string;
98
+ 900: string;
99
+ 1000: string;
100
+ };
101
+ readonly aqua: {
102
+ 25: string;
103
+ 50: string;
104
+ 100: string;
105
+ 200: string;
106
+ 300: string;
107
+ 400: string;
108
+ 500: string;
109
+ 600: string;
110
+ 700: string;
111
+ 800: string;
112
+ 900: string;
113
+ 1000: string;
114
+ };
115
+ readonly blue: {
116
+ 25: string;
117
+ 50: string;
118
+ 100: string;
119
+ 200: string;
120
+ 300: string;
121
+ 400: string;
122
+ 500: string;
123
+ 600: string;
124
+ 700: string;
125
+ 800: string;
126
+ 900: string;
127
+ 1000: string;
128
+ };
129
+ readonly cyan: {
130
+ 25: string;
131
+ 50: string;
132
+ 100: string;
133
+ 200: string;
134
+ 300: string;
135
+ 400: string;
136
+ 500: string;
137
+ 600: string;
138
+ 700: string;
139
+ 800: string;
140
+ 900: string;
141
+ 1000: string;
142
+ };
143
+ readonly emerald: {
144
+ 25: string;
145
+ 50: string;
146
+ 100: string;
147
+ 200: string;
148
+ 300: string;
149
+ 400: string;
150
+ 500: string;
151
+ 600: string;
152
+ 700: string;
153
+ 800: string;
154
+ 900: string;
155
+ 1000: string;
156
+ };
157
+ readonly fuchsia: {
158
+ 25: string;
159
+ 50: string;
160
+ 100: string;
161
+ 200: string;
162
+ 300: string;
163
+ 400: string;
164
+ 500: string;
165
+ 600: string;
166
+ 700: string;
167
+ 800: string;
168
+ 900: string;
169
+ 1000: string;
170
+ };
171
+ readonly green: {
172
+ 25: string;
173
+ 50: string;
174
+ 100: string;
175
+ 200: string;
176
+ 300: string;
177
+ 400: string;
178
+ 500: string;
179
+ 600: string;
180
+ 700: string;
181
+ 800: string;
182
+ 900: string;
183
+ 1000: string;
184
+ };
185
+ readonly indigo: {
186
+ 25: string;
187
+ 50: string;
188
+ 100: string;
189
+ 200: string;
190
+ 300: string;
191
+ 400: string;
192
+ 500: string;
193
+ 600: string;
194
+ 700: string;
195
+ 800: string;
196
+ 900: string;
197
+ 1000: string;
198
+ };
199
+ readonly lime: {
200
+ 25: string;
201
+ 50: string;
202
+ 100: string;
203
+ 200: string;
204
+ 300: string;
205
+ 400: string;
206
+ 500: string;
207
+ 600: string;
208
+ 700: string;
209
+ 800: string;
210
+ 900: string;
211
+ 1000: string;
212
+ };
213
+ readonly magenta: {
214
+ 25: string;
215
+ 50: string;
216
+ 100: string;
217
+ 200: string;
218
+ 300: string;
219
+ 400: string;
220
+ 500: string;
221
+ 600: string;
222
+ 700: string;
223
+ 800: string;
224
+ 900: string;
225
+ 1000: string;
226
+ };
227
+ readonly orange: {
228
+ 25: string;
229
+ 50: string;
230
+ 100: string;
231
+ 200: string;
232
+ 300: string;
233
+ 400: string;
234
+ 500: string;
235
+ 600: string;
236
+ 700: string;
237
+ 800: string;
238
+ 900: string;
239
+ 1000: string;
240
+ };
241
+ readonly purple: {
242
+ 25: string;
243
+ 50: string;
244
+ 100: string;
245
+ 200: string;
246
+ 300: string;
247
+ 400: string;
248
+ 500: string;
249
+ 600: string;
250
+ 700: string;
251
+ 800: string;
252
+ 900: string;
253
+ 1000: string;
254
+ };
255
+ readonly red: {
256
+ 25: string;
257
+ 50: string;
258
+ 100: string;
259
+ 200: string;
260
+ 300: string;
261
+ 400: string;
262
+ 500: string;
263
+ 600: string;
264
+ 700: string;
265
+ 800: string;
266
+ 900: string;
267
+ 1000: string;
268
+ };
269
+ readonly rose: {
270
+ 25: string;
271
+ 50: string;
272
+ 100: string;
273
+ 200: string;
274
+ 300: string;
275
+ 400: string;
276
+ 500: string;
277
+ 600: string;
278
+ 700: string;
279
+ 800: string;
280
+ 900: string;
281
+ 1000: string;
282
+ };
283
+ readonly sky: {
284
+ 25: string;
285
+ 50: string;
286
+ 100: string;
287
+ 200: string;
288
+ 300: string;
289
+ 400: string;
290
+ 500: string;
291
+ 600: string;
292
+ 700: string;
293
+ 800: string;
294
+ 900: string;
295
+ 1000: string;
296
+ };
297
+ readonly violet: {
298
+ 25: string;
299
+ 50: string;
300
+ 100: string;
301
+ 200: string;
302
+ 300: string;
303
+ 400: string;
304
+ 500: string;
305
+ 600: string;
306
+ 700: string;
307
+ 800: string;
308
+ 900: string;
309
+ 1000: string;
310
+ };
311
+ readonly yellow: {
312
+ 25: string;
313
+ 50: string;
314
+ 100: string;
315
+ 200: string;
316
+ 300: string;
317
+ 400: string;
318
+ 500: string;
319
+ 600: string;
320
+ 700: string;
321
+ 800: string;
322
+ 900: string;
323
+ 1000: string;
324
+ };
325
+ };
326
+ };
327
+ readonly spacing: {
328
+ readonly "0": "0px";
329
+ readonly "2": "2px";
330
+ readonly "4": "4px";
331
+ readonly "6": "6px";
332
+ readonly "8": "8px";
333
+ readonly "10": "10px";
334
+ readonly "12": "12px";
335
+ readonly "14": "14px";
336
+ readonly "16": "16px";
337
+ readonly "18": "18px";
338
+ readonly "24": "24px";
339
+ readonly "32": "32px";
340
+ readonly "36": "36px";
341
+ readonly "40": "40px";
342
+ readonly "48": "48px";
343
+ readonly "64": "64px";
344
+ readonly "80": "80px";
345
+ };
346
+ readonly radius: {
347
+ readonly "0": "0px";
348
+ readonly "2": "2px";
349
+ readonly "4": "4px";
350
+ readonly "6": "6px";
351
+ readonly "8": "8px";
352
+ readonly "12": "12px";
353
+ readonly "16": "16px";
354
+ readonly "20": "20px";
355
+ readonly "24": "24px";
356
+ readonly "9999": "9999px";
357
+ };
358
+ readonly typography: {
359
+ readonly root: {
360
+ readonly "--uds-font-family": "\"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial";
361
+ readonly "--uds-font-size-128": "128px";
362
+ readonly "--uds-font-size-96": "96px";
363
+ readonly "--uds-font-size-72": "72px";
364
+ readonly "--uds-font-size-60": "60px";
365
+ readonly "--uds-font-size-48": "48px";
366
+ readonly "--uds-font-size-36": "36px";
367
+ readonly "--uds-font-size-32": "32px";
368
+ readonly "--uds-font-size-28": "28px";
369
+ readonly "--uds-font-size-24": "24px";
370
+ readonly "--uds-font-size-20": "20px";
371
+ readonly "--uds-font-size-16": "16px";
372
+ readonly "--uds-font-size-14": "14px";
373
+ readonly "--uds-font-size-12": "12px";
374
+ readonly "--uds-font-size-10": "10px";
375
+ readonly "--uds-line-128": "136px";
376
+ readonly "--uds-line-96": "104px";
377
+ readonly "--uds-line-72": "80px";
378
+ readonly "--uds-line-60": "68px";
379
+ readonly "--uds-line-48": "56px";
380
+ readonly "--uds-line-36": "44px";
381
+ readonly "--uds-line-32": "40px";
382
+ readonly "--uds-line-28": "36px";
383
+ readonly "--uds-line-24": "32px";
384
+ readonly "--uds-line-20": "28px";
385
+ readonly "--uds-line-16": "24px";
386
+ readonly "--uds-line-14": "20px";
387
+ readonly "--uds-line-12": "16px";
388
+ readonly "--uds-line-10": "14px";
389
+ readonly "--uds-line-heading-20": "var(--uds-line-20)";
390
+ readonly "--uds-font-weight": "400";
391
+ readonly "--uds-font-weight-medium": "500";
392
+ readonly "--uds-font-weight-semibold": "600";
393
+ readonly "--uds-font-weight-bold": "700";
394
+ readonly "--uds-typography-body-md": "var(--uds-font-weight) var(--uds-font-size-16) / var(--uds-line-16) var(--uds-font-family)";
395
+ readonly "--uds-typography-body-xs": "var(--uds-font-weight) var(--uds-font-size-12) / var(--uds-line-12) var(--uds-font-family)";
396
+ readonly "--uds-typography-label-md": "var(--uds-font-weight-semibold) var(--uds-font-size-14) / var(--uds-line-14) var(--uds-font-family)";
397
+ };
398
+ readonly tablet: {
399
+ readonly "--uds-font-size-128": "96px";
400
+ readonly "--uds-line-128": "104px";
401
+ readonly "--uds-font-size-96": "72px";
402
+ readonly "--uds-line-96": "80px";
403
+ readonly "--uds-font-size-72": "60px";
404
+ readonly "--uds-line-72": "68px";
405
+ readonly "--uds-font-size-60": "48px";
406
+ readonly "--uds-line-60": "56px";
407
+ readonly "--uds-font-size-48": "40px";
408
+ readonly "--uds-line-48": "48px";
409
+ readonly "--uds-font-size-36": "32px";
410
+ readonly "--uds-line-36": "40px";
411
+ readonly "--uds-font-size-32": "28px";
412
+ readonly "--uds-line-32": "36px";
413
+ readonly "--uds-font-size-28": "24px";
414
+ readonly "--uds-line-28": "32px";
415
+ readonly "--uds-font-size-24": "22px";
416
+ readonly "--uds-line-24": "30px";
417
+ readonly "--uds-font-size-20": "18px";
418
+ readonly "--uds-line-20": "26px";
419
+ };
420
+ readonly mobile: {
421
+ readonly "--uds-font-size-128": "72px";
422
+ readonly "--uds-line-128": "80px";
423
+ readonly "--uds-font-size-96": "60px";
424
+ readonly "--uds-line-96": "68px";
425
+ readonly "--uds-font-size-72": "48px";
426
+ readonly "--uds-line-72": "56px";
427
+ readonly "--uds-font-size-60": "40px";
428
+ readonly "--uds-line-60": "48px";
429
+ readonly "--uds-font-size-48": "32px";
430
+ readonly "--uds-line-48": "40px";
431
+ readonly "--uds-font-size-36": "28px";
432
+ readonly "--uds-line-36": "36px";
433
+ readonly "--uds-font-size-32": "24px";
434
+ readonly "--uds-line-32": "32px";
435
+ readonly "--uds-font-size-28": "22px";
436
+ readonly "--uds-line-28": "30px";
437
+ readonly "--uds-font-size-24": "20px";
438
+ readonly "--uds-line-24": "28px";
439
+ readonly "--uds-font-size-20": "18px";
440
+ readonly "--uds-line-20": "26px";
441
+ };
442
+ };
443
+ readonly shadow: {
444
+ readonly light: {
445
+ readonly "--uds-shadow-5": "rgba(0, 0, 0, 0.05)";
446
+ readonly "--uds-shadow-8": "rgba(0, 0, 0, 0.08)";
447
+ readonly "--uds-shadow-10": "rgba(0, 0, 0, 0.1)";
448
+ readonly "--uds-shadow-12": "rgba(0, 0, 0, 0.12)";
449
+ readonly "--uds-shadow-15": "rgba(0, 0, 0, 0.15)";
450
+ readonly "--uds-shadow-18": "rgba(0, 0, 0, 0.18)";
451
+ readonly "--uds-shadow-25": "rgba(0, 0, 0, 0.25)";
452
+ };
453
+ readonly dark: {
454
+ readonly "--uds-shadow-5": "rgba(249, 250, 252, 0.05)";
455
+ readonly "--uds-shadow-8": "rgba(249, 250, 252, 0.08)";
456
+ readonly "--uds-shadow-10": "rgba(249, 250, 252, 0.1)";
457
+ readonly "--uds-shadow-12": "rgba(249, 250, 252, 0.12)";
458
+ readonly "--uds-shadow-15": "rgba(249, 250, 252, 0.15)";
459
+ readonly "--uds-shadow-18": "rgba(249, 250, 252, 0.18)";
460
+ readonly "--uds-shadow-25": "rgba(249, 250, 252, 0.25)";
461
+ };
462
+ };
463
+ readonly motion: {
464
+ readonly "--uds-animation-duration-100": "100ms";
465
+ readonly "--uds-animation-duration-200": "200ms";
466
+ readonly "--uds-animation-duration-300": "300ms";
467
+ readonly "--uds-animation-duration-500": "500ms";
468
+ readonly "--uds-animation-ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)";
469
+ readonly "--uds-animation-ease-accelerate": "cubic-bezier(0.4, 0, 1, 1)";
470
+ readonly "--uds-animation-ease-decelerate": "cubic-bezier(0, 0, 0.2, 1)";
471
+ readonly "--uds-animation-ease-emphasized": "cubic-bezier(0.2, 0, 0, 1)";
472
+ readonly "--uds-transition-property-colors": "color, background-color, border-color";
473
+ readonly "--uds-focus-ring-width": "2px";
474
+ };
475
+ };
@@ -0,0 +1,29 @@
1
+ import { colorCategory, colorTokens } from "./color.js";
2
+ import { spacingCategory, spacingTokens } from "./spacing.js";
3
+ import { radiusCategory, radiusTokens } from "./radius.js";
4
+ import { typographyCategory, typographyTokens } from "./typography.js";
5
+ import { shadowCategory, shadowTokens } from "./shadow.js";
6
+ import { motionCategory, motionTokens } from "./motion.js";
7
+ export { colorTokens } from "./color.js";
8
+ export { spacingTokens } from "./spacing.js";
9
+ export { radiusTokens } from "./radius.js";
10
+ export { typographyTokens } from "./typography.js";
11
+ export { shadowTokens } from "./shadow.js";
12
+ export { motionTokens } from "./motion.js";
13
+ export { generateRuntimeTokensCss } from "./generateCss.js";
14
+ export const runtimeTokens = {
15
+ color: colorCategory,
16
+ spacing: spacingCategory,
17
+ radius: radiusCategory,
18
+ typography: typographyCategory,
19
+ shadow: shadowCategory,
20
+ motion: motionCategory,
21
+ };
22
+ export const tokensByCategory = {
23
+ color: colorTokens,
24
+ spacing: spacingTokens,
25
+ radius: radiusTokens,
26
+ typography: typographyTokens,
27
+ shadow: shadowTokens,
28
+ motion: motionTokens,
29
+ };
@@ -0,0 +1,14 @@
1
+ import type { TokenCategory } from "./types.js";
2
+ export declare const motionTokens: {
3
+ readonly "--uds-animation-duration-100": "100ms";
4
+ readonly "--uds-animation-duration-200": "200ms";
5
+ readonly "--uds-animation-duration-300": "300ms";
6
+ readonly "--uds-animation-duration-500": "500ms";
7
+ readonly "--uds-animation-ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)";
8
+ readonly "--uds-animation-ease-accelerate": "cubic-bezier(0.4, 0, 1, 1)";
9
+ readonly "--uds-animation-ease-decelerate": "cubic-bezier(0, 0, 0.2, 1)";
10
+ readonly "--uds-animation-ease-emphasized": "cubic-bezier(0.2, 0, 0, 1)";
11
+ readonly "--uds-transition-property-colors": "color, background-color, border-color";
12
+ readonly "--uds-focus-ring-width": "2px";
13
+ };
14
+ export declare const motionCategory: TokenCategory;