@evolve.ui/theme-system 1.0.1 → 1.2.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 (119) hide show
  1. package/{allThemes-CFS_9-tk.cjs → allThemes-3d8nhymo.cjs} +12 -2
  2. package/allThemes-3d8nhymo.cjs.map +1 -0
  3. package/{allThemes-OV-ayn4C.mjs → allThemes-Abn6KDm7.mjs} +7 -3
  4. package/allThemes-Abn6KDm7.mjs.map +1 -0
  5. package/allThemes.cjs +1 -1
  6. package/allThemes.d.cts +1 -0
  7. package/allThemes.d.cts.map +1 -1
  8. package/allThemes.d.mts +1 -0
  9. package/allThemes.d.mts.map +1 -1
  10. package/allThemes.mjs +1 -1
  11. package/brands-CE0wIkKX.d.cts +58 -0
  12. package/brands-CE0wIkKX.d.cts.map +1 -0
  13. package/brands-CE0wIkKX.d.mts +58 -0
  14. package/brands-CE0wIkKX.d.mts.map +1 -0
  15. package/brands.cjs +16 -13
  16. package/brands.cjs.map +1 -1
  17. package/brands.d.cts +2 -2
  18. package/brands.d.mts +2 -2
  19. package/brands.mjs +16 -13
  20. package/brands.mjs.map +1 -1
  21. package/css/EverydayHarbor.css +377 -0
  22. package/css/EverydayHarbor.effects.css +650 -0
  23. package/{default-b-tgfyxR.cjs → default-B6VWF0Js.cjs} +237 -36
  24. package/default-B6VWF0Js.cjs.map +1 -0
  25. package/{default-B2n4PnsJ.mjs → default-BogJDhKE.mjs} +238 -37
  26. package/default-BogJDhKE.mjs.map +1 -0
  27. package/effects.cjs +26 -0
  28. package/effects.cjs.map +1 -0
  29. package/effects.d.cts +22 -0
  30. package/effects.d.cts.map +1 -0
  31. package/effects.d.mts +22 -0
  32. package/effects.d.mts.map +1 -0
  33. package/effects.mjs +22 -0
  34. package/effects.mjs.map +1 -0
  35. package/evolve-ui.entries.json +51 -0
  36. package/index.cjs +12 -5
  37. package/index.cjs.map +1 -1
  38. package/index.d.cts +108 -4
  39. package/index.d.cts.map +1 -1
  40. package/index.d.mts +108 -4
  41. package/index.d.mts.map +1 -1
  42. package/index.mjs +9 -6
  43. package/index.mjs.map +1 -1
  44. package/package.json +5 -1
  45. package/{plugin-DPtvp4lp.cjs → plugin-B3PF4RMI.cjs} +299 -110
  46. package/plugin-B3PF4RMI.cjs.map +1 -0
  47. package/{plugin-D4eCyUJe.mjs → plugin-D6aLCeNB.mjs} +258 -111
  48. package/plugin-D6aLCeNB.mjs.map +1 -0
  49. package/src/effects/__fixtures__/fixtureLayer.ts +88 -0
  50. package/src/effects/brands/EverydayHarbor.ts +392 -0
  51. package/src/effects/classes.ts +19 -0
  52. package/src/effects/emit.ts +314 -0
  53. package/src/effects/hooks.ts +493 -0
  54. package/src/effects/index.ts +2 -0
  55. package/src/effects/layers.ts +18 -0
  56. package/src/effects/rules.ts +90 -0
  57. package/src/effects/rules.typecheck.ts +50 -0
  58. package/src/effects/tokens.ts +148 -0
  59. package/src/effects/validate.ts +683 -0
  60. package/src/effects/vocabulary.ts +32 -0
  61. package/src/index.ts +40 -0
  62. package/src/tailwind/animation.ts +30 -0
  63. package/src/tailwind/borderRadius.ts +32 -0
  64. package/src/tailwind/borderWidth.ts +14 -0
  65. package/src/tailwind/boxShadow.ts +19 -0
  66. package/src/tailwind/colors.ts +332 -0
  67. package/src/tailwind/cssVars.ts +301 -0
  68. package/src/tailwind/fontFamily.ts +14 -0
  69. package/src/tailwind/plugin.ts +299 -0
  70. package/src/tailwind/reducedMotion.ts +164 -0
  71. package/src/tailwind/screens.ts +22 -0
  72. package/src/tailwind/spacing.ts +20 -0
  73. package/src/tailwind/text.ts +172 -0
  74. package/src/tailwind/width.ts +14 -0
  75. package/src/themeValues.snapshot.ts +6735 -0
  76. package/src/themes/BasketballTraining.ts +166 -0
  77. package/src/themes/Default.ts +165 -0
  78. package/src/themes/EverydayHarbor.ts +147 -0
  79. package/src/themes/ProfessionalBrand.ts +166 -0
  80. package/src/themes/allThemes.ts +14 -0
  81. package/src/themes/brandSources.ts +37 -0
  82. package/src/themes/brands.ts +63 -0
  83. package/src/themes/common.ts +65 -0
  84. package/src/themes/contrastFloors.ts +26 -0
  85. package/src/themes/generateCSSVars.ts +123 -0
  86. package/src/themes/inkRamps.ts +43 -0
  87. package/src/themes/runtime/basketballTraining.ts +3 -0
  88. package/src/themes/runtime/buildTheme.ts +411 -0
  89. package/src/themes/runtime/default.ts +3 -0
  90. package/src/themes/runtime/everydayHarbor.ts +3 -0
  91. package/src/themes/runtime/professionalBrand.ts +3 -0
  92. package/src/themes/semanticColorTokenSteps.ts +23 -0
  93. package/src/themes/themeType.ts +169 -0
  94. package/src/themes/themeValues.ts +374 -0
  95. package/src/themes/wcag.ts +48 -0
  96. package/src/themes/writeToCSSFile.ts +11 -0
  97. package/src/utils/cn.ts +35 -0
  98. package/src/utils/color.ts +82 -0
  99. package/src/utils/wrapVar.ts +24 -0
  100. package/tailwind/plugin.cjs +5 -1
  101. package/tailwind/plugin.d.cts +458 -1
  102. package/tailwind/plugin.d.cts.map +1 -1
  103. package/tailwind/plugin.d.mts +458 -1
  104. package/tailwind/plugin.d.mts.map +1 -1
  105. package/tailwind/plugin.mjs +2 -2
  106. package/themes/runtime/default.cjs +1 -1
  107. package/themes/runtime/default.mjs +1 -1
  108. package/themes/themeType.d.cts +1 -1
  109. package/themes/themeType.d.mts +1 -1
  110. package/allThemes-CFS_9-tk.cjs.map +0 -1
  111. package/allThemes-OV-ayn4C.mjs.map +0 -1
  112. package/brands-n30rolHQ.d.cts +0 -33
  113. package/brands-n30rolHQ.d.cts.map +0 -1
  114. package/brands-n30rolHQ.d.mts +0 -33
  115. package/brands-n30rolHQ.d.mts.map +0 -1
  116. package/default-B2n4PnsJ.mjs.map +0 -1
  117. package/default-b-tgfyxR.cjs.map +0 -1
  118. package/plugin-D4eCyUJe.mjs.map +0 -1
  119. package/plugin-DPtvp4lp.cjs.map +0 -1
@@ -0,0 +1,32 @@
1
+ import type { EffectRule } from './rules';
2
+
3
+ /**
4
+ * Recipes emitted into every effect brand file before that brand's own bindings.
5
+ * Materials come first so `hui-fx-glass hui-fx-featured` composes in source order.
6
+ * CTA ink is a channel remap, so a component's own `color` utilities still apply when the guard matches.
7
+ */
8
+ import { effectClasses } from './classes';
9
+ import { fx } from './tokens';
10
+
11
+ const NOT_INTERACTIVE = ':disabled, [aria-disabled="true"]';
12
+
13
+ /** Opt-in glass remaps the same text colours as the catalog hooks, so `hui-fx-glass` text reads the same everywhere. */
14
+ const GLASS_TEXT = { '--color-text-secondary': fx.textMutedRgb, '--color-text-success': fx.textSuccessRgb } as const;
15
+
16
+ export const vocabularyRules: readonly EffectRule[] = [
17
+ { on: effectClasses.glass, material: 'surface', radius: 'surface-radius', vars: GLASS_TEXT },
18
+ { on: effectClasses.glassRaised, material: 'raised', radius: 'surface-radius', vars: GLASS_TEXT },
19
+ { on: effectClasses.featured, shadow: 'featured' },
20
+ { on: effectClasses.halo, shadow: 'halo' },
21
+ { on: effectClasses.glow, shadow: 'glow' },
22
+ {
23
+ on: effectClasses.cta,
24
+ unless: NOT_INTERACTIVE,
25
+ paint: { background: fx.ctaFill },
26
+ vars: { '--color-text-inverse': fx.ctaInkRgb, '--color-icon-inverse': fx.ctaInkRgb },
27
+ },
28
+ { on: effectClasses.cta, when: 'hover', unless: NOT_INTERACTIVE, paint: { background: fx.ctaFillHover } },
29
+ { on: effectClasses.accentFont, paint: { fontFamily: fx.fontAccent } },
30
+ { on: effectClasses.serif, vars: { '--effect-font-accent': fx.fontSerif } },
31
+ { on: effectClasses.backdrop, paint: { background: fx.backdrop } },
32
+ ];
package/src/index.ts ADDED
@@ -0,0 +1,40 @@
1
+ // Tailwind plugin (primary export — includes complete theme config)
2
+ export { themePlugin } from './tailwind/plugin';
3
+
4
+ // Tailwind configuration modules
5
+ export * from './tailwind/animation';
6
+ export * from './tailwind/reducedMotion';
7
+ export * from './tailwind/colors';
8
+ export * from './tailwind/screens';
9
+ export * from './tailwind/spacing';
10
+ export * from './tailwind/fontFamily';
11
+ export * from './tailwind/text';
12
+
13
+ // CSS variable constants
14
+ export * from './tailwind/cssVars';
15
+
16
+ // Variable wrapping utilities
17
+ export * from './utils/wrapVar';
18
+
19
+ // Color generation utilities
20
+ export * from './utils/color';
21
+
22
+ // Brand theme definitions
23
+ export * from './themes/brands';
24
+ export * from './themes/themeType';
25
+ export {
26
+ breakpoints as runtimeBreakpoints,
27
+ radius as runtimeRadius,
28
+ spacing as runtimeSpacing,
29
+ width as runtimeBorderWidth,
30
+ } from './themes/common';
31
+ export * from './themes/allThemes';
32
+ export * from './themes/semanticColorTokenSteps';
33
+ export * from './themes/runtime/buildTheme';
34
+ export * from './themes/runtime/default';
35
+ export * from './themes/runtime/basketballTraining';
36
+ export * from './themes/runtime/professionalBrand';
37
+ export * from './themes/runtime/everydayHarbor';
38
+
39
+ // Class name utility
40
+ export { cn } from './utils/cn';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Animation registry for the theme system
3
+ *
4
+ * The `animate-*` utilities this library registers, extracted from `plugin.ts` so the
5
+ * reduced-motion policy can be checked against them (see `./reducedMotion`). These sit under
6
+ * `theme.extend`, so Tailwind's own defaults (`spin`, `ping`, `pulse`, `bounce`, `none`) survive
7
+ * alongside them — the resolved registry is this object layered over `defaultTheme.animation`,
8
+ * and the policy must cover both.
9
+ *
10
+ * Keyframes stay in `plugin.ts` next to the `addBase` block that emits some of them.
11
+ */
12
+ export const animation = {
13
+ fadeIn: 'fadeIn .2s ease-in-out',
14
+ fadeInOpacity: 'fadeInOpacity 0.5s ease-in-out',
15
+ fadeInScaled: 'fadeInScaled .2s ease-in',
16
+ fadeOut: 'fadeOut .2s ease-in-out',
17
+ loading: 'loading 1.4s infinite ease-in-out',
18
+ 'progress-completion': 'shrink 0.15s ease-in-out both, grow 0.15s ease-in-out 0.15s both',
19
+ 'progress-icon-fade-in': 'fadeInOpacity 0.15s ease-in-out 0.15s both',
20
+ 'progress-wave':
21
+ 'progressWave 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, progressWaveRotate 1568ms linear infinite both',
22
+ saveButtonPulse: 'saveButtonPulse 500ms cubic-bezier(0.34, 1.56, 0.64, 1)',
23
+ saveButtonWiggle: 'saveButtonWiggle 500ms ease-in-out',
24
+ saveHeartColorFlash: 'saveHeartColorFlash 500ms cubic-bezier(0.45, 0, 0.55, 1)',
25
+ saveHeartPop: 'saveHeartPop 480ms cubic-bezier(0.34, 1.56, 0.64, 1)',
26
+ saveHeartTwirlBloom: 'saveHeartTwirlBloom 500ms cubic-bezier(0.45, 0, 0.55, 1)',
27
+ saveLabelShimmer: 'saveLabelShimmer 500ms ease-in-out',
28
+ slideDown: 'slideDown 0.3s ease-in forwards',
29
+ slideUp: 'slideUp 0.3s ease-out forwards',
30
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Border radius configuration for Tailwind CSS
3
+ *
4
+ * Internal reference: Hammer UI patterns
5
+ * Ported from the upstream theme system.
6
+ */
7
+
8
+ // @see https://tailwindcss.com/docs/customizing-colors#using-css-variables
9
+
10
+ import { wrapVar } from '../utils/wrapVar';
11
+ import {
12
+ buttonBorderRadius,
13
+ checkboxBorderRadius,
14
+ containerBorderRadius,
15
+ inputBorderRadius,
16
+ searchInputBorderRadius,
17
+ } from './cssVars';
18
+
19
+ export const borderRadius = {
20
+ button: wrapVar(buttonBorderRadius),
21
+ checkbox: wrapVar(checkboxBorderRadius),
22
+ container: wrapVar(containerBorderRadius),
23
+ full: '9999px',
24
+ input: wrapVar(inputBorderRadius),
25
+ lg: '16px',
26
+ md: '8px',
27
+ none: '0',
28
+ 'search-input': wrapVar(searchInputBorderRadius),
29
+ sm: '4px',
30
+ xl: '32px',
31
+ xs: '2px',
32
+ } as const;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Border width scale the theme ships.
3
+ *
4
+ * These match the widths Tailwind uses when a plugin does not replace `borderWidth`.
5
+ * They sit on the theme object so the value snapshot locks the same scale.
6
+ */
7
+
8
+ export const borderWidth = {
9
+ DEFAULT: '1px',
10
+ 0: '0px',
11
+ 2: '2px',
12
+ 4: '4px',
13
+ 8: '8px',
14
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Box shadow configuration for Tailwind CSS
3
+ *
4
+ * Internal reference: Hammer UI patterns
5
+ * Ported from the upstream theme system.
6
+ */
7
+
8
+ import { wrapVar } from '../utils/wrapVar';
9
+ import { shadow01, shadow02, shadow03, shadow04, shadow05 } from './cssVars';
10
+
11
+ // @see https://tailwindcss.com/docs/customizing-colors#using-css-variables
12
+
13
+ export const boxShadow: Record<string, string> = {
14
+ '01': wrapVar(shadow01),
15
+ '02': wrapVar(shadow02),
16
+ '03': wrapVar(shadow03),
17
+ '04': wrapVar(shadow04),
18
+ '05': wrapVar(shadow05),
19
+ };
@@ -0,0 +1,332 @@
1
+ /**
2
+ * Color configuration for Tailwind CSS
3
+ *
4
+ * Maps CSS custom properties to Tailwind color utilities using nested objects.
5
+ * Uses wrapVariableOpacity() for dynamic alpha support (e.g., `bg-primary-500/50`)
6
+ * and wrapOpacity() for fixed opacity values.
7
+ *
8
+ * @see https://tailwindcss.com/docs/customizing-colors#using-css-variables
9
+ * Internal reference: Hammer UI patterns
10
+ * Ported from the upstream theme system.
11
+ */
12
+
13
+ import { wrapOpacity, wrapVar, wrapVariableOpacity } from '../utils/wrapVar';
14
+ import {
15
+ colorBackgroundCriticalDark,
16
+ colorBackgroundCriticalLight,
17
+ colorBackgroundDisabled,
18
+ colorBackgroundHover,
19
+ colorBackgroundHoverInverse,
20
+ colorBackgroundInfoDark,
21
+ colorBackgroundInfoLight,
22
+ colorBackgroundInverse,
23
+ colorBackgroundOverlay,
24
+ colorBackgroundPressed,
25
+ colorBackgroundPressedInverse,
26
+ colorBackgroundPrimary,
27
+ colorBackgroundSecondary,
28
+ colorBackgroundSubdued,
29
+ colorBackgroundSuccessDark,
30
+ colorBackgroundSuccessLight,
31
+ colorBackgroundTertiary,
32
+ colorBackgroundWarningDark,
33
+ colorBackgroundWarningLight,
34
+ colorBorderBlack,
35
+ colorBorderCritical,
36
+ colorBorderDisabled,
37
+ colorBorderHover,
38
+ colorBorderInfo,
39
+ colorBorderInverse,
40
+ colorBorderPrimary,
41
+ colorBorderSecondary,
42
+ colorBorderSelected,
43
+ colorBorderSuccess,
44
+ colorBorderTertiary,
45
+ colorBorderWarning,
46
+ colorCritical100,
47
+ colorCritical200,
48
+ colorCritical300,
49
+ colorCritical400,
50
+ colorCritical50,
51
+ colorCritical500,
52
+ colorCritical600,
53
+ colorCritical700,
54
+ colorCritical800,
55
+ colorCritical900,
56
+ colorFocusInverse,
57
+ colorFocusPrimary,
58
+ colorIconCritical,
59
+ colorIconDisabled,
60
+ colorIconInfo,
61
+ colorIconInverse,
62
+ colorIconPrimary,
63
+ colorIconSecondary,
64
+ colorIconSuccess,
65
+ colorIconWarning,
66
+ colorInfo100,
67
+ colorInfo200,
68
+ colorInfo300,
69
+ colorInfo400,
70
+ colorInfo50,
71
+ colorInfo500,
72
+ colorInfo600,
73
+ colorInfo700,
74
+ colorInfo800,
75
+ colorInfo900,
76
+ colorLinkDisabled,
77
+ colorLinkHover,
78
+ colorLinkInverse,
79
+ colorLinkInverseDisabled,
80
+ colorLinkInverseHover,
81
+ colorLinkInversePressed,
82
+ colorLinkMonochrome,
83
+ colorLinkPressed,
84
+ colorLinkPrimary,
85
+ colorLinkSecondary,
86
+ colorPrimary100,
87
+ colorPrimary200,
88
+ colorPrimary300,
89
+ colorPrimary400,
90
+ colorPrimary50,
91
+ colorPrimary500,
92
+ colorPrimary600,
93
+ colorPrimary700,
94
+ colorPrimary800,
95
+ colorPrimary900,
96
+ colorSecondary100,
97
+ colorSecondary200,
98
+ colorSecondary300,
99
+ colorSecondary400,
100
+ colorSecondary50,
101
+ colorSecondary500,
102
+ colorSecondary600,
103
+ colorSecondary700,
104
+ colorSecondary800,
105
+ colorSecondary900,
106
+ colorSuccess100,
107
+ colorSuccess200,
108
+ colorSuccess300,
109
+ colorSuccess400,
110
+ colorSuccess50,
111
+ colorSuccess500,
112
+ colorSuccess600,
113
+ colorSuccess700,
114
+ colorSuccess800,
115
+ colorSuccess900,
116
+ colorSurface100,
117
+ colorSurface200,
118
+ colorSurface300,
119
+ colorSurface400,
120
+ colorSurface50,
121
+ colorSurface500,
122
+ colorSurface600,
123
+ colorSurface700,
124
+ colorSurface800,
125
+ colorSurface900,
126
+ colorTertiary100,
127
+ colorTertiary200,
128
+ colorTertiary300,
129
+ colorTertiary400,
130
+ colorTertiary50,
131
+ colorTertiary500,
132
+ colorTertiary600,
133
+ colorTertiary700,
134
+ colorTertiary800,
135
+ colorTertiary900,
136
+ colorTextCritical,
137
+ colorTextDisabled,
138
+ colorTextInactive,
139
+ colorTextInfo,
140
+ colorTextInverse,
141
+ colorTextPrimary,
142
+ colorTextSecondary,
143
+ colorTextSuccess,
144
+ colorTextWarning,
145
+ colorWarning100,
146
+ colorWarning200,
147
+ colorWarning300,
148
+ colorWarning400,
149
+ colorWarning50,
150
+ colorWarning500,
151
+ colorWarning600,
152
+ colorWarning700,
153
+ colorWarning800,
154
+ colorWarning900,
155
+ } from './cssVars';
156
+
157
+ export const colors: Record<string, Record<string, string> | string> = {
158
+ background: {
159
+ 'critical-dark': wrapVariableOpacity(wrapVar(colorBackgroundCriticalDark)),
160
+ 'critical-light': wrapVariableOpacity(wrapVar(colorBackgroundCriticalLight)),
161
+ disabled: wrapVariableOpacity(wrapVar(colorBackgroundDisabled)),
162
+ hover: wrapOpacity(wrapVar(colorBackgroundHover), 5),
163
+ 'hover-inverse': wrapOpacity(wrapVar(colorBackgroundHoverInverse), 5),
164
+ 'info-dark': wrapVariableOpacity(wrapVar(colorBackgroundInfoDark)),
165
+ 'info-light': wrapVariableOpacity(wrapVar(colorBackgroundInfoLight)),
166
+ inverse: wrapVariableOpacity(wrapVar(colorBackgroundInverse)),
167
+ overlay: wrapOpacity(wrapVar(colorBackgroundOverlay), 40),
168
+ pressed: wrapOpacity(wrapVar(colorBackgroundPressed), 20),
169
+ 'pressed-inverse': wrapOpacity(wrapVar(colorBackgroundPressedInverse), 20),
170
+ primary: wrapVariableOpacity(wrapVar(colorBackgroundPrimary)),
171
+ secondary: wrapVariableOpacity(wrapVar(colorBackgroundSecondary)),
172
+ subdued: wrapVariableOpacity(wrapVar(colorBackgroundSubdued)),
173
+ 'success-dark': wrapVariableOpacity(wrapVar(colorBackgroundSuccessDark)),
174
+ 'success-light': wrapVariableOpacity(wrapVar(colorBackgroundSuccessLight)),
175
+ tertiary: wrapVariableOpacity(wrapVar(colorBackgroundTertiary)),
176
+ 'warning-dark': wrapVariableOpacity(wrapVar(colorBackgroundWarningDark)),
177
+ 'warning-light': wrapVariableOpacity(wrapVar(colorBackgroundWarningLight)),
178
+ },
179
+ border: {
180
+ black: wrapVariableOpacity(wrapVar(colorBorderBlack)),
181
+ critical: wrapVariableOpacity(wrapVar(colorBorderCritical)),
182
+ disabled: wrapVariableOpacity(wrapVar(colorBorderDisabled)),
183
+ hover: wrapVariableOpacity(wrapVar(colorBorderHover)),
184
+ info: wrapVariableOpacity(wrapVar(colorBorderInfo)),
185
+ inverse: wrapVariableOpacity(wrapVar(colorBorderInverse)),
186
+ primary: wrapVariableOpacity(wrapVar(colorBorderPrimary)),
187
+ secondary: wrapVariableOpacity(wrapVar(colorBorderSecondary)),
188
+ selected: wrapVariableOpacity(wrapVar(colorBorderSelected)),
189
+ success: wrapVariableOpacity(wrapVar(colorBorderSuccess)),
190
+ tertiary: wrapVariableOpacity(wrapVar(colorBorderTertiary)),
191
+ warning: wrapVariableOpacity(wrapVar(colorBorderWarning)),
192
+ },
193
+ critical: {
194
+ '100': wrapVariableOpacity(wrapVar(colorCritical100)),
195
+ '200': wrapVariableOpacity(wrapVar(colorCritical200)),
196
+ '300': wrapVariableOpacity(wrapVar(colorCritical300)),
197
+ '400': wrapVariableOpacity(wrapVar(colorCritical400)),
198
+ '50': wrapVariableOpacity(wrapVar(colorCritical50)),
199
+ '500': wrapVariableOpacity(wrapVar(colorCritical500)),
200
+ '600': wrapVariableOpacity(wrapVar(colorCritical600)),
201
+ '700': wrapVariableOpacity(wrapVar(colorCritical700)),
202
+ '800': wrapVariableOpacity(wrapVar(colorCritical800)),
203
+ '900': wrapVariableOpacity(wrapVar(colorCritical900)),
204
+ },
205
+ current: 'currentColor',
206
+ focus: {
207
+ inverse: wrapOpacity(wrapVar(colorFocusInverse), 50),
208
+ primary: wrapOpacity(wrapVar(colorFocusPrimary), 50),
209
+ },
210
+ 'focus-inverse': wrapVariableOpacity(wrapVar(colorFocusInverse)),
211
+ 'focus-primary': wrapVariableOpacity(wrapVar(colorFocusPrimary)),
212
+ icon: {
213
+ critical: wrapVariableOpacity(wrapVar(colorIconCritical)),
214
+ default: wrapVariableOpacity(wrapVar(colorIconPrimary)),
215
+ disabled: wrapVariableOpacity(wrapVar(colorIconDisabled)),
216
+ hover: wrapVariableOpacity(wrapVar(colorIconSecondary)),
217
+ info: wrapVariableOpacity(wrapVar(colorIconInfo)),
218
+ inverse: wrapVariableOpacity(wrapVar(colorIconInverse)),
219
+ primary: wrapVariableOpacity(wrapVar(colorIconPrimary)),
220
+ secondary: wrapVariableOpacity(wrapVar(colorIconSecondary)),
221
+ success: wrapVariableOpacity(wrapVar(colorIconSuccess)),
222
+ warning: wrapVariableOpacity(wrapVar(colorIconWarning)),
223
+ },
224
+ info: {
225
+ '100': wrapVariableOpacity(wrapVar(colorInfo100)),
226
+ '200': wrapVariableOpacity(wrapVar(colorInfo200)),
227
+ '300': wrapVariableOpacity(wrapVar(colorInfo300)),
228
+ '400': wrapVariableOpacity(wrapVar(colorInfo400)),
229
+ '50': wrapVariableOpacity(wrapVar(colorInfo50)),
230
+ '500': wrapVariableOpacity(wrapVar(colorInfo500)),
231
+ '600': wrapVariableOpacity(wrapVar(colorInfo600)),
232
+ '700': wrapVariableOpacity(wrapVar(colorInfo700)),
233
+ '800': wrapVariableOpacity(wrapVar(colorInfo800)),
234
+ '900': wrapVariableOpacity(wrapVar(colorInfo900)),
235
+ },
236
+ link: {
237
+ disabled: wrapVariableOpacity(wrapVar(colorLinkDisabled)),
238
+ hover: wrapVariableOpacity(wrapVar(colorLinkHover)),
239
+ inverse: wrapVariableOpacity(wrapVar(colorLinkInverse)),
240
+ 'inverse-disabled': wrapVariableOpacity(wrapVar(colorLinkInverseDisabled)),
241
+ 'inverse-hover': wrapVariableOpacity(wrapVar(colorLinkInverseHover)),
242
+ 'inverse-pressed': wrapVariableOpacity(wrapVar(colorLinkInversePressed)),
243
+ monochrome: wrapVariableOpacity(wrapVar(colorLinkMonochrome)),
244
+ pressed: wrapVariableOpacity(wrapVar(colorLinkPressed)),
245
+ primary: wrapVariableOpacity(wrapVar(colorLinkPrimary)),
246
+ secondary: wrapVariableOpacity(wrapVar(colorLinkSecondary)),
247
+ },
248
+ primary: {
249
+ '100': wrapVariableOpacity(wrapVar(colorPrimary100)),
250
+ '200': wrapVariableOpacity(wrapVar(colorPrimary200)),
251
+ '300': wrapVariableOpacity(wrapVar(colorPrimary300)),
252
+ '400': wrapVariableOpacity(wrapVar(colorPrimary400)),
253
+ '50': wrapVariableOpacity(wrapVar(colorPrimary50)),
254
+ '500': wrapVariableOpacity(wrapVar(colorPrimary500)),
255
+ '600': wrapVariableOpacity(wrapVar(colorPrimary600)),
256
+ '700': wrapVariableOpacity(wrapVar(colorPrimary700)),
257
+ '800': wrapVariableOpacity(wrapVar(colorPrimary800)),
258
+ '900': wrapVariableOpacity(wrapVar(colorPrimary900)),
259
+ },
260
+ secondary: {
261
+ '100': wrapVariableOpacity(wrapVar(colorSecondary100)),
262
+ '200': wrapVariableOpacity(wrapVar(colorSecondary200)),
263
+ '300': wrapVariableOpacity(wrapVar(colorSecondary300)),
264
+ '400': wrapVariableOpacity(wrapVar(colorSecondary400)),
265
+ '50': wrapVariableOpacity(wrapVar(colorSecondary50)),
266
+ '500': wrapVariableOpacity(wrapVar(colorSecondary500)),
267
+ '600': wrapVariableOpacity(wrapVar(colorSecondary600)),
268
+ '700': wrapVariableOpacity(wrapVar(colorSecondary700)),
269
+ '800': wrapVariableOpacity(wrapVar(colorSecondary800)),
270
+ '900': wrapVariableOpacity(wrapVar(colorSecondary900)),
271
+ },
272
+ success: {
273
+ '100': wrapVariableOpacity(wrapVar(colorSuccess100)),
274
+ '200': wrapVariableOpacity(wrapVar(colorSuccess200)),
275
+ '300': wrapVariableOpacity(wrapVar(colorSuccess300)),
276
+ '400': wrapVariableOpacity(wrapVar(colorSuccess400)),
277
+ '50': wrapVariableOpacity(wrapVar(colorSuccess50)),
278
+ '500': wrapVariableOpacity(wrapVar(colorSuccess500)),
279
+ '600': wrapVariableOpacity(wrapVar(colorSuccess600)),
280
+ '700': wrapVariableOpacity(wrapVar(colorSuccess700)),
281
+ '800': wrapVariableOpacity(wrapVar(colorSuccess800)),
282
+ '900': wrapVariableOpacity(wrapVar(colorSuccess900)),
283
+ },
284
+ surface: {
285
+ '100': wrapVariableOpacity(wrapVar(colorSurface100)),
286
+ '200': wrapVariableOpacity(wrapVar(colorSurface200)),
287
+ '300': wrapVariableOpacity(wrapVar(colorSurface300)),
288
+ '400': wrapVariableOpacity(wrapVar(colorSurface400)),
289
+ '50': wrapVariableOpacity(wrapVar(colorSurface50)),
290
+ '500': wrapVariableOpacity(wrapVar(colorSurface500)),
291
+ '600': wrapVariableOpacity(wrapVar(colorSurface600)),
292
+ '700': wrapVariableOpacity(wrapVar(colorSurface700)),
293
+ '800': wrapVariableOpacity(wrapVar(colorSurface800)),
294
+ '900': wrapVariableOpacity(wrapVar(colorSurface900)),
295
+ },
296
+ tertiary: {
297
+ '100': wrapVariableOpacity(wrapVar(colorTertiary100)),
298
+ '200': wrapVariableOpacity(wrapVar(colorTertiary200)),
299
+ '300': wrapVariableOpacity(wrapVar(colorTertiary300)),
300
+ '400': wrapVariableOpacity(wrapVar(colorTertiary400)),
301
+ '50': wrapVariableOpacity(wrapVar(colorTertiary50)),
302
+ '500': wrapVariableOpacity(wrapVar(colorTertiary500)),
303
+ '600': wrapVariableOpacity(wrapVar(colorTertiary600)),
304
+ '700': wrapVariableOpacity(wrapVar(colorTertiary700)),
305
+ '800': wrapVariableOpacity(wrapVar(colorTertiary800)),
306
+ '900': wrapVariableOpacity(wrapVar(colorTertiary900)),
307
+ },
308
+ text: {
309
+ critical: wrapVariableOpacity(wrapVar(colorTextCritical)),
310
+ disabled: wrapVariableOpacity(wrapVar(colorTextDisabled)),
311
+ inactive: wrapVariableOpacity(wrapVar(colorTextInactive)),
312
+ info: wrapVariableOpacity(wrapVar(colorTextInfo)),
313
+ inverse: wrapVariableOpacity(wrapVar(colorTextInverse)),
314
+ primary: wrapVariableOpacity(wrapVar(colorTextPrimary)),
315
+ secondary: wrapVariableOpacity(wrapVar(colorTextSecondary)),
316
+ success: wrapVariableOpacity(wrapVar(colorTextSuccess)),
317
+ warning: wrapVariableOpacity(wrapVar(colorTextWarning)),
318
+ },
319
+ transparent: 'transparent',
320
+ warning: {
321
+ '100': wrapVariableOpacity(wrapVar(colorWarning100)),
322
+ '200': wrapVariableOpacity(wrapVar(colorWarning200)),
323
+ '300': wrapVariableOpacity(wrapVar(colorWarning300)),
324
+ '400': wrapVariableOpacity(wrapVar(colorWarning400)),
325
+ '50': wrapVariableOpacity(wrapVar(colorWarning50)),
326
+ '500': wrapVariableOpacity(wrapVar(colorWarning500)),
327
+ '600': wrapVariableOpacity(wrapVar(colorWarning600)),
328
+ '700': wrapVariableOpacity(wrapVar(colorWarning700)),
329
+ '800': wrapVariableOpacity(wrapVar(colorWarning800)),
330
+ '900': wrapVariableOpacity(wrapVar(colorWarning900)),
331
+ },
332
+ };