@sanity/ui 2.0.0-beta.1 → 2.0.0-beta.11

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 (89) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -3
  3. package/dist/index.cjs.mjs +11 -36
  4. package/dist/index.d.ts +248 -268
  5. package/dist/index.esm.js +502 -356
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +511 -569
  8. package/dist/index.js.map +1 -1
  9. package/dist/theme.cjs.mjs +1 -1
  10. package/dist/theme.d.ts +81 -114
  11. package/dist/theme.esm.js +355 -290
  12. package/dist/theme.esm.js.map +1 -1
  13. package/dist/theme.js +355 -290
  14. package/dist/theme.js.map +1 -1
  15. package/package.json +6 -3
  16. package/src/core/__workshop__/constants.ts +3 -2
  17. package/src/core/_compat.ts +236 -87
  18. package/src/core/components/menu/__workshop__/selectedItem.tsx +7 -2
  19. package/src/core/components/menu/menuButton.tsx +12 -1
  20. package/src/core/constants.ts +18 -0
  21. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +6 -3
  22. package/src/core/middleware/origin.ts +47 -0
  23. package/src/core/primitives/avatar/__workshop__/asButton.tsx +1 -1
  24. package/src/core/primitives/avatar/__workshop__/stack.tsx +1 -1
  25. package/src/core/primitives/avatar/avatar.tsx +14 -4
  26. package/src/core/primitives/avatar/avatarCounter.tsx +16 -5
  27. package/src/core/primitives/avatar/avatarStack.tsx +2 -2
  28. package/src/core/primitives/badge/badge.tsx +1 -3
  29. package/src/core/primitives/kbd/kbd.tsx +2 -0
  30. package/src/core/primitives/popover/popover.tsx +67 -13
  31. package/src/core/primitives/popover/popoverCard.tsx +26 -15
  32. package/src/core/primitives/select/select.tsx +1 -1
  33. package/src/core/primitives/switch/styles.ts +6 -1
  34. package/src/core/primitives/textInput/__workshop__/plain.tsx +1 -1
  35. package/src/core/primitives/textInput/__workshop__/states.tsx +10 -2
  36. package/src/core/primitives/tooltip/tooltip.tsx +47 -57
  37. package/src/core/primitives/tooltip/tooltipCard.tsx +104 -0
  38. package/src/core/styles/card/_cardColorStyle.ts +2 -0
  39. package/src/core/styles/input/textInputStyle.ts +33 -2
  40. package/src/core/styles/margin/marginsStyle.test.ts +2 -2
  41. package/src/core/styles/padding/paddingStyle.test.ts +2 -2
  42. package/src/core/theme/__workshop__/build/Root.tsx +20 -3
  43. package/src/core/theme/__workshop__/build/story.tsx +16 -10
  44. package/src/core/theme/__workshop__/canvas.tsx +7 -7
  45. package/src/core/theme/__workshop__/debug/story.tsx +196 -0
  46. package/src/core/theme/__workshop__/index.ts +5 -0
  47. package/src/core/theme/theme.test.tsx +2 -2
  48. package/src/core/types/avatar.ts +1 -1
  49. package/src/core/types/button.ts +1 -2
  50. package/src/core/{primitives/tooltip → utils/conditionalWrapper}/conditionalWrapper.tsx +3 -0
  51. package/src/core/utils/conditionalWrapper/index.ts +1 -0
  52. package/src/core/utils/index.ts +1 -0
  53. package/src/theme/build/_deprecated/color/factory.ts +3 -3
  54. package/src/theme/build/buildColorTheme.test.ts +2 -2
  55. package/src/theme/build/buildColorTheme.ts +16 -16
  56. package/src/theme/build/colorToken/colorToken.ts +19 -0
  57. package/src/theme/build/colorToken/compileColorToken.ts +21 -0
  58. package/src/theme/build/colorToken/index.ts +2 -0
  59. package/src/theme/build/colorToken/types.ts +6 -0
  60. package/src/theme/build/renderColorTheme.ts +14 -15
  61. package/src/theme/build/renderColorValue.ts +9 -2
  62. package/src/theme/config/system.ts +12 -10
  63. package/src/theme/config/tokens/color/types.ts +12 -1
  64. package/src/theme/config/tokens/parseTokenKey.ts +1 -0
  65. package/src/theme/config/tokens/parseTokenValue.test.ts +13 -16
  66. package/src/theme/config/tokens/parseTokenValue.ts +45 -14
  67. package/src/theme/config/tokens/types.ts +3 -2
  68. package/src/theme/defaults/colorTokens.ts +278 -252
  69. package/src/theme/defaults/config.ts +2 -1
  70. package/src/theme/defaults/fonts.ts +13 -5
  71. package/src/theme/index.ts +0 -7
  72. package/src/theme/system/color/_constants.ts +5 -2
  73. package/src/theme/system/color/_system.ts +2 -1
  74. package/src/theme/system/color/avatar.ts +2 -12
  75. package/src/theme/system/color/button.ts +4 -20
  76. package/src/theme/system/color/input.ts +3 -11
  77. package/src/theme/system/color/selectable.ts +3 -14
  78. package/src/theme/system/shadow.ts +0 -6
  79. package/src/theme/system/styles.ts +0 -6
  80. package/src/theme/system/theme.ts +2 -0
  81. package/src/theme/system/v0/avatar.ts +1 -1
  82. package/src/theme/system/v0/color/button.ts +4 -4
  83. package/src/theme/system/v0/color/card.ts +2 -2
  84. package/src/theme/system/v0/color/input.ts +3 -3
  85. package/src/theme/system/v0/color/muted.ts +2 -2
  86. package/src/theme/system/v0/color/solid.ts +2 -2
  87. package/src/theme/versioning/themeColor_v0_v2.ts +2 -2
  88. package/src/theme/versioning/v2_v0.ts +2 -2
  89. package/src/theme/build/colorToken.ts +0 -39
package/dist/theme.esm.js CHANGED
@@ -1161,6 +1161,9 @@ const defaultThemeConfig = {
1161
1161
  _version: 2,
1162
1162
  avatar: {
1163
1163
  sizes: [{
1164
+ distance: -4,
1165
+ size: 19
1166
+ }, {
1164
1167
  distance: -4,
1165
1168
  size: 25
1166
1169
  }, {
@@ -1255,7 +1258,7 @@ const defaultThemeConfig = {
1255
1258
  switch: {
1256
1259
  width: 25,
1257
1260
  height: 17,
1258
- padding: 2,
1261
+ padding: 5,
1259
1262
  transitionDurationMs: 150,
1260
1263
  transitionTimingFunction: "ease-out",
1261
1264
  focusRing: {
@@ -1398,35 +1401,42 @@ const defaultThemeFonts = {
1398
1401
  sizes: [{
1399
1402
  ascenderHeight: 2,
1400
1403
  descenderHeight: 2,
1401
- fontSize: 9.8,
1404
+ fontSize: 8.1,
1405
+ iconSize: 13,
1406
+ lineHeight: 10,
1407
+ letterSpacing: 0.5
1408
+ }, {
1409
+ ascenderHeight: 2,
1410
+ descenderHeight: 2,
1411
+ fontSize: 9.5,
1402
1412
  iconSize: 15,
1403
1413
  lineHeight: 11,
1404
1414
  letterSpacing: 0.5
1405
1415
  }, {
1406
1416
  ascenderHeight: 2,
1407
1417
  descenderHeight: 2,
1408
- fontSize: 11.25,
1418
+ fontSize: 10.8,
1409
1419
  iconSize: 17,
1410
1420
  lineHeight: 12,
1411
1421
  letterSpacing: 0.5
1412
1422
  }, {
1413
1423
  ascenderHeight: 2,
1414
1424
  descenderHeight: 2,
1415
- fontSize: 12.75,
1425
+ fontSize: 12.25,
1416
1426
  iconSize: 19,
1417
1427
  lineHeight: 13,
1418
1428
  letterSpacing: 0.5
1419
1429
  }, {
1420
1430
  ascenderHeight: 2,
1421
1431
  descenderHeight: 2,
1422
- fontSize: 14,
1432
+ fontSize: 13.6,
1423
1433
  iconSize: 21,
1424
1434
  lineHeight: 14,
1425
1435
  letterSpacing: 0.5
1426
1436
  }, {
1427
1437
  ascenderHeight: 2,
1428
1438
  descenderHeight: 2,
1429
- fontSize: 15.5,
1439
+ fontSize: 15,
1430
1440
  iconSize: 23,
1431
1441
  lineHeight: 15,
1432
1442
  letterSpacing: 0.5
@@ -1906,13 +1916,10 @@ function inputStateThemeColor_v2_v0(t) {
1906
1916
  placeholder: t.placeholder
1907
1917
  };
1908
1918
  }
1919
+ const THEME_COLOR_SCHEMES = ["light", "dark"];
1909
1920
  const THEME_COLOR_BLEND_MODES = ["multiply", "screen"];
1910
- const THEME_COLOR_CARD_TONES = ["transparent", "default", "primary",
1911
- // todo: rename to `accent` in the next breaking major version
1912
- "positive", "caution", "critical"];
1913
- const THEME_COLOR_STATE_TONES = ["default", "primary",
1914
- // todo: rename to `accent` in the next breaking major version
1915
- "positive", "caution", "critical"];
1921
+ const THEME_COLOR_CARD_TONES = ["transparent", "default", "primary", "positive", "caution", "critical"];
1922
+ const THEME_COLOR_STATE_TONES = ["default", "primary", "positive", "caution", "critical"];
1916
1923
  const THEME_COLOR_STATES = ["enabled", "hovered", "pressed", "selected", "disabled"];
1917
1924
  const THEME_COLOR_BUTTON_MODES = ["default", "ghost", "bleed"];
1918
1925
  const THEME_COLOR_INPUT_MODES = ["default", "invalid"];
@@ -1986,12 +1993,24 @@ function parseTokenKey(str) {
1986
1993
  }
1987
1994
  return void 0;
1988
1995
  }
1996
+ function isColorMixPercentValue(str) {
1997
+ return /^\d+%$/.test(str);
1998
+ }
1989
1999
  function parseTokenValue(str) {
1990
2000
  const segments = str.split("/");
1991
- const segment0 = segments.shift() || "";
2001
+ let nextSegment = segments.shift() || "";
2002
+ const [segment0, segment0mix] = nextSegment.split(" ");
1992
2003
  if (isColorTintKey(segment0)) {
1993
2004
  const tint = segment0;
1994
2005
  const segment1 = segments.shift() || "";
2006
+ if (isColorMixPercentValue(segment0mix)) {
2007
+ const mix = Number(segment0mix.slice(0, -1)) / 100;
2008
+ return {
2009
+ type: "color",
2010
+ tint,
2011
+ mix
2012
+ };
2013
+ }
1995
2014
  if (isColorOpacityValue(segment1)) {
1996
2015
  const opacity = Number(segment1);
1997
2016
  return {
@@ -2008,6 +2027,14 @@ function parseTokenValue(str) {
2008
2027
  if (isColorValue(segment0)) {
2009
2028
  const key = segment0;
2010
2029
  const segment1 = segments.shift() || "";
2030
+ if (isColorMixPercentValue(segment0mix)) {
2031
+ const mix = Number(segment0mix.slice(0, -1)) / 100;
2032
+ return {
2033
+ type: "color",
2034
+ key,
2035
+ mix
2036
+ };
2037
+ }
2011
2038
  if (isColorOpacityValue(segment1)) {
2012
2039
  const opacity = Number(segment1);
2013
2040
  return {
@@ -2023,15 +2050,24 @@ function parseTokenValue(str) {
2023
2050
  }
2024
2051
  if (isColorHueKey(segment0)) {
2025
2052
  const hue = segment0;
2026
- const segment1 = segments.shift() || "";
2053
+ nextSegment = segments.shift() || "";
2054
+ const [segment1, segment1mix] = nextSegment.split(" ");
2027
2055
  if (isColorTintKey(segment1)) {
2028
2056
  const tint = segment1;
2029
2057
  const segment2 = segments.shift() || "";
2058
+ if (isColorMixPercentValue(segment1mix)) {
2059
+ const mix = Number(segment1mix.slice(0, -1)) / 100;
2060
+ return {
2061
+ type: "color",
2062
+ hue,
2063
+ tint,
2064
+ mix
2065
+ };
2066
+ }
2030
2067
  if (isColorOpacityValue(segment2)) {
2031
2068
  const opacity = Number(segment2);
2032
2069
  return {
2033
2070
  type: "color",
2034
- key: "".concat(hue, "/").concat(tint),
2035
2071
  hue,
2036
2072
  tint,
2037
2073
  opacity
@@ -2039,21 +2075,13 @@ function parseTokenValue(str) {
2039
2075
  }
2040
2076
  return {
2041
2077
  type: "color",
2042
- key: "".concat(hue, "/").concat(tint),
2043
2078
  hue,
2044
2079
  tint
2045
2080
  };
2046
2081
  }
2047
2082
  return {
2048
2083
  type: "hue",
2049
- value: "".concat(hue)
2050
- };
2051
- }
2052
- if (isColorOpacityValue(segment0)) {
2053
- const opacity = Number(segment0);
2054
- return {
2055
- type: "color",
2056
- opacity
2084
+ value: hue
2057
2085
  };
2058
2086
  }
2059
2087
  if (isColorBlendModeValue(segment0)) {
@@ -2090,6 +2118,21 @@ function isColorValue(str) {
2090
2118
  function isColorOpacityValue(str) {
2091
2119
  return str === "0" || /^0\.[0-9]+$/.test(str) || str === "1";
2092
2120
  }
2121
+ function compileColorTokenValue(node) {
2122
+ let key = "";
2123
+ if (node.key === "black" || node.key === "white") {
2124
+ key = node.key;
2125
+ } else {
2126
+ key = "".concat(node.hue, "/").concat(node.tint);
2127
+ }
2128
+ if (node.mix !== void 0) {
2129
+ return "".concat(key, " ").concat(node.mix * 100, "%");
2130
+ }
2131
+ if (node.opacity !== void 0) {
2132
+ key += "/".concat(node.opacity);
2133
+ }
2134
+ return key;
2135
+ }
2093
2136
  const DEFAULT_COLOR_TOKEN_VALUE = ["500", "500"];
2094
2137
  function resolveColorTokenValue(context) {
2095
2138
  let value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_COLOR_TOKEN_VALUE;
@@ -2106,51 +2149,35 @@ function resolveColorTokenValue(context) {
2106
2149
  hue: node.hue || hue
2107
2150
  });
2108
2151
  }
2109
- function compileColorTokenValue(node) {
2110
- let key = "";
2111
- if (node.key === "black" || node.key === "white") {
2112
- key = node.key;
2113
- } else {
2114
- key = "".concat(node.hue, "/").concat(node.tint);
2115
- }
2116
- if (node.opacity !== void 0) {
2117
- key += "/".concat(node.opacity);
2118
- }
2119
- return key;
2120
- }
2121
2152
  const defaultColorTokens = {
2122
2153
  base: {
2123
2154
  "*": {
2124
2155
  _blend: ["multiply", "screen"],
2156
+ accent: {
2157
+ fg: ["purple/600", "purple/400"]
2158
+ },
2125
2159
  avatar: {
2126
2160
  "*": {
2127
2161
  _blend: ["screen", "multiply"],
2128
2162
  bg: ["500", "400"],
2129
2163
  fg: ["white", "black"]
2130
- },
2131
- yellow: {
2132
- bg: ["600", "400"]
2133
- },
2134
- green: {
2135
- bg: ["600", "400"]
2136
- },
2137
- cyan: {
2138
- bg: ["600", "400"]
2139
2164
  }
2140
2165
  },
2141
2166
  backdrop: ["gray/200/0.2", "black/0.5"],
2142
2167
  badge: {
2143
2168
  "*": {
2144
2169
  bg: ["100", "900"],
2145
- fg: ["600", "400"]
2170
+ fg: ["600", "400"],
2171
+ icon: ["500", "500"],
2172
+ dot: ["500", "500"]
2146
2173
  },
2147
2174
  positive: {
2148
- bg: ["200/0.6", "900"],
2149
- fg: ["700", "500"]
2175
+ bg: ["200 50%", "900"],
2176
+ fg: ["600", "500"]
2150
2177
  },
2151
2178
  caution: {
2152
- bg: ["200/0.7", "900"],
2153
- fg: ["700", "500"]
2179
+ bg: ["200 50%", "900"],
2180
+ fg: ["600", "500"]
2154
2181
  }
2155
2182
  },
2156
2183
  bg: ["50", "950"],
@@ -2161,17 +2188,18 @@ const defaultColorTokens = {
2161
2188
  },
2162
2189
  fg: ["800", "200"],
2163
2190
  focusRing: ["blue/500", "blue/500"],
2191
+ icon: ["600", "400"],
2164
2192
  kbd: {
2165
2193
  bg: ["white", "black"],
2166
2194
  fg: ["600", "400"],
2167
2195
  border: ["200", "800"]
2168
2196
  },
2169
2197
  link: {
2170
- fg: ["blue/600", "blue/400"]
2198
+ fg: ["blue/600", "blue/300"]
2171
2199
  },
2172
2200
  muted: {
2173
2201
  bg: ["50", "950"],
2174
- fg: ["600", "400"]
2202
+ fg: ["700 75%", "300 75%"]
2175
2203
  },
2176
2204
  shadow: {
2177
2205
  outline: ["500/0.3", "500/0.4"],
@@ -2181,16 +2209,18 @@ const defaultColorTokens = {
2181
2209
  },
2182
2210
  skeleton: {
2183
2211
  from: ["100", "900"],
2184
- to: ["100/0.5", "900/0.5"]
2212
+ to: ["100 50%", "900 50%"]
2185
2213
  }
2186
2214
  },
2187
2215
  transparent: {
2188
- bg: ["50", "black"],
2189
- fg: ["600", "400"]
2216
+ bg: ["50", "black"]
2190
2217
  },
2191
2218
  default: {
2192
2219
  bg: ["white", "950"],
2193
- fg: ["black", "200"]
2220
+ fg: ["800", "200"],
2221
+ muted: {
2222
+ fg: ["600", "400"]
2223
+ }
2194
2224
  },
2195
2225
  primary: {
2196
2226
  _hue: "blue"
@@ -2198,20 +2228,17 @@ const defaultColorTokens = {
2198
2228
  positive: {
2199
2229
  _hue: "green",
2200
2230
  shadow: {
2201
- outline: ["600/0.3", "500/0.25"]
2231
+ outline: ["500/0.4", "500/0.4"]
2202
2232
  }
2203
2233
  },
2204
2234
  caution: {
2205
2235
  _hue: "yellow",
2206
2236
  shadow: {
2207
- outline: ["600/0.3", "500/0.25"]
2237
+ outline: ["600/0.3", "500/0.4"]
2208
2238
  }
2209
2239
  },
2210
2240
  critical: {
2211
- _hue: "red",
2212
- shadow: {
2213
- outline: ["500/0.3", "500/0.3"]
2214
- }
2241
+ _hue: "red"
2215
2242
  }
2216
2243
  },
2217
2244
  button: {
@@ -2220,58 +2247,89 @@ const defaultColorTokens = {
2220
2247
  "*": {
2221
2248
  _blend: ["screen", "multiply"],
2222
2249
  accent: {
2223
- fg: ["purple/200", "purple/700"]
2250
+ fg: ["purple/300", "purple/700"]
2251
+ },
2252
+ avatar: {
2253
+ "*": {
2254
+ _blend: ["multiply", "screen"],
2255
+ bg: ["white", "black"],
2256
+ fg: ["black", "white"]
2257
+ }
2224
2258
  },
2225
2259
  badge: {
2226
2260
  "*": {
2227
- dot: ["300", "700"],
2228
- icon: ["600", "400"]
2261
+ bg: ["900", "100"],
2262
+ fg: ["400", "600"],
2263
+ dot: ["500", "500"],
2264
+ icon: ["500", "500"]
2229
2265
  }
2230
2266
  },
2231
2267
  bg: ["500", "400"],
2232
2268
  border: ["500/0", "400/0"],
2233
2269
  code: {
2234
- bg: ["500/0.2", "400/0.2"],
2235
- fg: ["200", "700"]
2270
+ bg: ["500 20%", "400 20%"],
2271
+ fg: ["200", "600"]
2236
2272
  },
2237
2273
  fg: ["white", "black"],
2238
- icon: ["200", "800"],
2274
+ icon: ["100 70%", "900 70%"],
2239
2275
  kbd: {
2240
- bg: ["900", "50"],
2241
- fg: ["white", "black"],
2276
+ bg: ["black", "white"],
2277
+ fg: ["200", "600"],
2242
2278
  border: ["800", "200"]
2243
2279
  },
2244
2280
  link: {
2245
- fg: ["blue/200", "blue/700"]
2281
+ fg: ["blue/200", "blue/600"]
2246
2282
  },
2247
2283
  muted: {
2248
- bg: ["900", "50"],
2249
- fg: ["200", "700"]
2284
+ bg: ["950", "50"],
2285
+ fg: ["100 70%", "900 70%"]
2250
2286
  },
2251
2287
  skeleton: {
2252
2288
  from: ["900", "100"],
2253
- to: ["900/0.5", "100/0.5"]
2289
+ to: ["900 50%", "100 50%"]
2254
2290
  }
2255
2291
  },
2256
2292
  hovered: {
2257
- bg: ["600", "300"],
2258
- border: ["600/0", "300/0"]
2293
+ bg: ["700", "300"],
2294
+ border: ["700/0", "300/0"]
2259
2295
  },
2260
2296
  pressed: {
2261
- bg: ["700", "200"]
2297
+ bg: ["700", "300"]
2262
2298
  },
2263
2299
  selected: {
2264
- bg: ["700", "200"]
2300
+ bg: ["700", "300"]
2265
2301
  },
2266
2302
  disabled: {
2267
2303
  _hue: "gray",
2304
+ accent: {
2305
+ fg: ["100 70%", "900 70%"]
2306
+ },
2307
+ badge: {
2308
+ "*": {
2309
+ bg: ["gray/700", "gray/300"],
2310
+ fg: ["white", "black"],
2311
+ dot: ["white", "black"],
2312
+ icon: ["white", "black"]
2313
+ }
2314
+ },
2268
2315
  bg: ["200", "800"],
2269
- icon: ["white", "black"]
2316
+ kbd: {
2317
+ bg: ["black", "white"],
2318
+ fg: ["white", "black"],
2319
+ border: ["700", "300"]
2320
+ },
2321
+ link: {
2322
+ fg: ["100 70%", "900 70%"]
2323
+ }
2270
2324
  }
2271
2325
  },
2272
2326
  default: {
2273
2327
  "*": {
2274
- bg: ["800", "200"]
2328
+ bg: ["800", "200"],
2329
+ muted: {
2330
+ bg: ["950", "50"],
2331
+ fg: ["400", "600"]
2332
+ }
2275
2333
  },
2276
2334
  hovered: {
2277
2335
  bg: ["900", "100"]
@@ -2282,67 +2340,46 @@ const defaultColorTokens = {
2282
2340
  selected: {
2283
2341
  bg: ["black", "white"]
2284
2342
  }
2285
- },
2286
- positive: {
2287
- "*": {
2288
- bg: ["600", "400"]
2289
- },
2290
- hovered: {
2291
- bg: ["700", "300"]
2292
- },
2293
- pressed: {
2294
- bg: ["800", "200"]
2295
- },
2296
- selected: {
2297
- bg: ["800", "200"]
2298
- }
2299
- },
2300
- caution: {
2301
- "*": {
2302
- bg: ["600", "400"]
2303
- },
2304
- hovered: {
2305
- bg: ["700", "300"]
2306
- },
2307
- pressed: {
2308
- bg: ["800", "200"]
2309
- },
2310
- selected: {
2311
- bg: ["800", "200"]
2312
- }
2313
2343
  }
2314
2344
  },
2315
2345
  ghost: {
2316
2346
  "*": {
2317
2347
  "*": {
2318
2348
  _blend: ["multiply", "screen"],
2349
+ accent: {
2350
+ fg: ["purple/700 60%", "purple/300 70%"]
2351
+ },
2352
+ badge: {
2353
+ "*": {
2354
+ bg: ["100", "900"],
2355
+ fg: ["600", "400"],
2356
+ dot: ["500", "500"],
2357
+ icon: ["500", "500"]
2358
+ }
2359
+ },
2319
2360
  bg: ["50", "950"],
2320
- fg: ["700", "400"],
2321
- icon: ["600", "500"],
2322
2361
  border: ["100", "900"],
2323
- accent: {
2324
- fg: ["purple/700/0.6", "purple/400/0.8"]
2362
+ code: {
2363
+ bg: ["500 10%", "400 10%"],
2364
+ fg: ["700 60%", "400 60%"]
2365
+ },
2366
+ fg: ["600", "400"],
2367
+ icon: ["700 60%", "300 60%"],
2368
+ kbd: {
2369
+ bg: ["white", "black"],
2370
+ fg: ["600", "400"],
2371
+ border: ["200", "800"]
2325
2372
  },
2326
2373
  link: {
2327
- fg: ["blue/700/0.6", "blue/400/0.8"]
2374
+ fg: ["blue/700 60%", "blue/300 60%"]
2328
2375
  },
2329
2376
  muted: {
2330
2377
  bg: ["100", "950"],
2331
- fg: ["700/0.6", "400/0.6"]
2332
- },
2333
- code: {
2334
- bg: ["500/0.1", "400/0.1"],
2335
- fg: ["700/0.6", "400/0.6"]
2378
+ fg: ["700 60%", "300 60%"]
2336
2379
  },
2337
2380
  skeleton: {
2338
2381
  from: ["100", "900"],
2339
- to: ["100/0.5", "900/0.5"]
2340
- },
2341
- badge: {
2342
- "*": {
2343
- dot: ["300", "700"],
2344
- icon: ["600", "400"]
2345
- }
2382
+ to: ["100 50%", "900 50%"]
2346
2383
  }
2347
2384
  },
2348
2385
  hovered: {
@@ -2359,32 +2396,46 @@ const defaultColorTokens = {
2359
2396
  },
2360
2397
  disabled: {
2361
2398
  _hue: "gray",
2362
- fg: ["200", "800"],
2363
- icon: ["200", "800"],
2399
+ accent: {
2400
+ fg: ["200", "800"]
2401
+ },
2402
+ badge: {
2403
+ "*": {
2404
+ _hue: "gray",
2405
+ bg: ["50", "950"],
2406
+ fg: ["gray/200", "gray/800"],
2407
+ dot: ["gray/200", "gray/800"],
2408
+ icon: ["gray/200", "gray/800"]
2409
+ }
2410
+ },
2364
2411
  border: ["100", "900"],
2365
- muted: {
2366
- fg: ["200/0.6", "900/0.6"]
2412
+ code: {
2413
+ bg: ["50", "950"],
2414
+ fg: ["200", "800"]
2367
2415
  },
2368
- accent: {
2369
- fg: ["200/0.6", "900/0.6"]
2416
+ fg: ["200", "800"],
2417
+ icon: ["200", "800"],
2418
+ kbd: {
2419
+ bg: ["white", "black"],
2420
+ fg: ["200", "800"],
2421
+ border: ["100", "900"]
2370
2422
  },
2371
2423
  link: {
2372
- fg: ["200/0.6", "900/0.6"]
2424
+ fg: ["200", "800"]
2373
2425
  },
2374
- code: {
2375
- bg: ["50/0.5", "950/0.5"],
2376
- fg: ["200/0.6", "900/0.6"]
2426
+ muted: {
2427
+ fg: ["200", "800"]
2377
2428
  }
2378
2429
  }
2379
2430
  },
2380
2431
  positive: {
2381
2432
  "*": {
2382
- border: ["600/0.2", "800"]
2433
+ border: ["600 20%", "800"]
2383
2434
  }
2384
2435
  },
2385
2436
  caution: {
2386
2437
  "*": {
2387
- border: ["600/0.2", "800"]
2438
+ border: ["600 20%", "800"]
2388
2439
  }
2389
2440
  }
2390
2441
  },
@@ -2392,65 +2443,86 @@ const defaultColorTokens = {
2392
2443
  "*": {
2393
2444
  "*": {
2394
2445
  _blend: ["multiply", "screen"],
2446
+ accent: {
2447
+ fg: ["purple/700 70%", "purple/300 70%"]
2448
+ },
2449
+ badge: {
2450
+ "*": {
2451
+ bg: ["100", "900"],
2452
+ fg: ["600", "400"],
2453
+ dot: ["500", "500"],
2454
+ icon: ["500", "500"]
2455
+ }
2456
+ },
2395
2457
  bg: ["white", "black"],
2396
- fg: ["700", "300"],
2397
- icon: ["700/0.7", "300/0.7"],
2398
2458
  border: ["white/0", "black/0"],
2399
- muted: {
2400
- bg: ["100", "950"],
2401
- fg: ["700/0.7", "300/0.7"]
2459
+ code: {
2460
+ bg: ["50", "950"],
2461
+ fg: ["700 75%", "300 75%"]
2402
2462
  },
2403
- accent: {
2404
- fg: ["purple/700/0.7", "purple/300/0.7"]
2463
+ fg: ["700", "300"],
2464
+ icon: ["700 75%", "300 75%"],
2465
+ kbd: {
2466
+ bg: ["white", "black"],
2467
+ fg: ["700", "300"],
2468
+ border: ["200", "800"]
2405
2469
  },
2406
2470
  link: {
2407
- fg: ["blue/700/0.7", "blue/300/0.7"]
2471
+ fg: ["blue/700 70%", "blue/300 70%"]
2408
2472
  },
2409
- code: {
2473
+ muted: {
2410
2474
  bg: ["100", "950"],
2411
- fg: ["600", "300"]
2475
+ fg: ["700 75%", "300 75%"]
2412
2476
  },
2413
2477
  skeleton: {
2414
2478
  from: ["100", "900"],
2415
- to: ["100/0.5", "900/0.5"]
2416
- },
2417
- badge: {
2418
- "*": {
2419
- dot: ["300", "700"],
2420
- icon: ["600", "400"]
2421
- }
2479
+ to: ["100 50%", "900 50%"]
2422
2480
  }
2423
2481
  },
2424
2482
  hovered: {
2425
2483
  bg: ["50", "950"],
2426
- fg: ["700", "300"],
2427
- icon: ["700/0.7", "400/0.7"]
2484
+ icon: ["700 70%", "400 70%"]
2428
2485
  },
2429
2486
  pressed: {
2430
2487
  bg: ["100", "900"],
2431
2488
  fg: ["800", "200"],
2432
- icon: ["800/0.7", "200/0.7"]
2489
+ icon: ["800 70%", "200 70%"]
2433
2490
  },
2434
2491
  selected: {
2435
2492
  bg: ["100", "900"],
2436
2493
  fg: ["800", "200"],
2437
- icon: ["800/0.7", "200/0.7"]
2494
+ icon: ["800 60%", "200 60%"]
2438
2495
  },
2439
2496
  disabled: {
2440
2497
  _hue: "gray",
2441
- fg: ["200", "800"],
2442
- muted: {
2443
- fg: ["200/0.6", "900/0.6"]
2444
- },
2445
2498
  accent: {
2446
- fg: ["200/0.6", "900/0.6"]
2499
+ fg: ["200", "800"]
2447
2500
  },
2448
- link: {
2449
- fg: ["200/0.6", "900/0.6"]
2501
+ badge: {
2502
+ "*": {
2503
+ _hue: "gray",
2504
+ bg: ["50", "950"],
2505
+ fg: ["gray/200", "gray/800"],
2506
+ dot: ["gray/200", "gray/800"],
2507
+ icon: ["gray/200", "gray/800"]
2508
+ }
2450
2509
  },
2451
2510
  code: {
2452
- bg: ["50/0.5", "950/0.5"],
2453
- fg: ["200/0.6", "900/0.6"]
2511
+ bg: ["50", "950"],
2512
+ fg: ["200", "800"]
2513
+ },
2514
+ fg: ["200", "800"],
2515
+ icon: ["200", "800"],
2516
+ kbd: {
2517
+ bg: ["white", "black"],
2518
+ fg: ["200", "800"],
2519
+ border: ["100", "900"]
2520
+ },
2521
+ link: {
2522
+ fg: ["200", "800"]
2523
+ },
2524
+ muted: {
2525
+ fg: ["200", "800"]
2454
2526
  }
2455
2527
  }
2456
2528
  }
@@ -2466,14 +2538,14 @@ const defaultColorTokens = {
2466
2538
  muted: {
2467
2539
  bg: ["50", "950"]
2468
2540
  },
2469
- placeholder: ["400", "600/0.5"]
2541
+ placeholder: ["400", "600 50%"]
2470
2542
  },
2471
2543
  hovered: {
2472
- border: ["300", "800"]
2544
+ border: ["300", "700"]
2473
2545
  },
2474
2546
  readOnly: {
2475
- border: ["200/0", "900/0"],
2476
- bg: ["100", "950"],
2547
+ bg: ["50", "950"],
2548
+ border: ["200", "800"],
2477
2549
  fg: ["800", "200"]
2478
2550
  },
2479
2551
  disabled: {
@@ -2492,52 +2564,40 @@ const defaultColorTokens = {
2492
2564
  "*": {
2493
2565
  "*": {
2494
2566
  _blend: ["multiply", "screen"],
2495
- bg: ["white", "black"],
2496
- fg: ["800", "200"],
2497
- icon: ["700/0.7", "300/0.7"],
2498
- avatar: {
2567
+ accent: {
2568
+ fg: ["purple/700 70%", "purple/300 70%"]
2569
+ },
2570
+ badge: {
2499
2571
  "*": {
2500
- _blend: ["screen", "multiply"],
2501
- bg: ["500", "400"],
2502
- fg: ["white", "black"]
2572
+ bg: ["100", "900"],
2573
+ fg: ["600", "400"],
2574
+ dot: ["500", "500"],
2575
+ icon: ["500", "500"]
2503
2576
  }
2504
- // yellow: {bg: ['600', '400']},
2505
- // green: {bg: ['600', '400']},
2506
- // cyan: {bg: ['600', '400']},
2507
2577
  },
2578
+ bg: ["white", "black"],
2508
2579
  border: ["200", "800"],
2509
- muted: {
2580
+ code: {
2510
2581
  bg: ["50", "950"],
2511
- fg: ["700", "300"]
2582
+ fg: ["600", "400"]
2512
2583
  },
2513
- accent: {
2514
- fg: ["purple/600", "purple/400"]
2584
+ fg: ["700", "300"],
2585
+ icon: ["700 75%", "300 75%"],
2586
+ kbd: {
2587
+ bg: ["white", "black"],
2588
+ fg: ["600", "400"],
2589
+ border: ["200", "800"]
2515
2590
  },
2516
2591
  link: {
2517
- fg: ["blue/700", "blue/300"]
2592
+ fg: ["blue/700 70%", "blue/300 70%"]
2518
2593
  },
2519
- code: {
2594
+ muted: {
2520
2595
  bg: ["100", "950"],
2521
- fg: ["700", "300"]
2596
+ fg: ["700 75%", "300 75%"]
2522
2597
  },
2523
2598
  skeleton: {
2524
2599
  from: ["100", "900"],
2525
- to: ["100/0.5", "900/0.5"]
2526
- },
2527
- badge: {
2528
- "*": {
2529
- // _blend: ['multiply', 'screen'],
2530
- bg: ["100", "900"],
2531
- fg: ["600", "200"],
2532
- dot: ["300", "700"],
2533
- icon: ["600", "400"]
2534
- }
2535
- },
2536
- kbd: {
2537
- // _blend: ['multiply', 'screen'],
2538
- bg: ["white", "black"],
2539
- fg: ["600", "400"],
2540
- border: ["200", "800"]
2600
+ to: ["100 50%", "900 50%"]
2541
2601
  }
2542
2602
  },
2543
2603
  hovered: {
@@ -2548,127 +2608,129 @@ const defaultColorTokens = {
2548
2608
  },
2549
2609
  selected: {
2550
2610
  _blend: ["screen", "multiply"],
2551
- bg: ["500", "400"],
2552
- fg: ["white", "black"],
2553
- icon: ["200", "800"],
2611
+ accent: {
2612
+ fg: ["purple/300", "purple/700"]
2613
+ },
2554
2614
  avatar: {
2555
2615
  "*": {
2556
2616
  _blend: ["multiply", "screen"],
2557
2617
  bg: ["white", "black"],
2558
2618
  fg: ["black", "white"]
2559
2619
  }
2560
- // magenta: {_hue: 'green'},
2561
- // yellow: {bg: ['600', '400']},
2562
- // green: {bg: ['600', '400']},
2563
- // cyan: {bg: ['600', '400']},
2564
2620
  },
2565
2621
  badge: {
2566
2622
  "*": {
2567
- // _blend: ['multiply', 'screen'],
2568
- // _blend: ['screen', 'multiply'],
2569
- bg: ["700", "300"],
2570
- fg: ["white", "black"]
2623
+ bg: ["900", "100"],
2624
+ fg: ["400", "600"],
2625
+ dot: ["500", "500"],
2626
+ icon: ["500", "500"]
2571
2627
  }
2572
2628
  },
2573
- border: ["500/0.2", "400/0.2"],
2574
- muted: {
2575
- bg: ["900", "50"],
2576
- fg: ["200", "800"]
2577
- },
2578
- accent: {
2579
- fg: ["purple/200", "purple/800"]
2629
+ bg: ["500", "400"],
2630
+ border: ["500 20%", "400 20%"],
2631
+ code: {
2632
+ bg: ["500 20%", "400 20%"],
2633
+ fg: ["200", "600"]
2580
2634
  },
2635
+ fg: ["white", "black"],
2636
+ icon: ["100 70%", "900 70%"],
2581
2637
  kbd: {
2582
- bg: ["black/0", "white/0"],
2583
- fg: ["white", "black"],
2584
- border: ["gray/700", "gray/300"]
2638
+ bg: ["black", "white"],
2639
+ fg: ["200", "600"],
2640
+ border: ["800", "200"]
2585
2641
  },
2586
2642
  link: {
2587
- fg: ["blue/200", "blue/800"]
2643
+ fg: ["blue/200", "blue/600"]
2588
2644
  },
2589
- code: {
2590
- bg: ["500/0.2", "400/0.2"],
2591
- fg: ["200", "700"]
2645
+ muted: {
2646
+ bg: ["950", "50"],
2647
+ fg: ["100 70%", "900 70%"]
2592
2648
  },
2593
2649
  skeleton: {
2594
2650
  from: ["900", "100"],
2595
- to: ["900/0.5", "100/0.5"]
2651
+ to: ["900 50%", "100 50%"]
2596
2652
  }
2597
- // badge: {
2598
- // '*': {
2599
- // _blend: ['multiply', 'screen'],
2600
- // bg: ['900', '100'],
2601
- // fg: ['white', 'black'],
2602
- // dot: ['700', '300'],
2603
- // icon: ['400', '600'],
2604
- // },
2605
- // },
2606
2653
  },
2607
2654
  disabled: {
2655
+ _hue: "gray",
2656
+ accent: {
2657
+ fg: ["200", "800"]
2658
+ },
2659
+ badge: {
2660
+ "*": {
2661
+ _hue: "gray",
2662
+ bg: ["50", "950"],
2663
+ fg: ["gray/200", "gray/800"],
2664
+ dot: ["gray/200", "gray/800"],
2665
+ icon: ["gray/200", "gray/800"]
2666
+ }
2667
+ },
2668
+ border: ["100", "900"],
2669
+ code: {
2670
+ bg: ["50", "950"],
2671
+ fg: ["200", "800"]
2672
+ },
2608
2673
  fg: ["200", "800"],
2609
2674
  icon: ["200", "800"],
2610
- muted: {
2611
- fg: ["200", "800/0.5"]
2612
- },
2613
- accent: {
2614
- fg: ["purple/200", "purple/800/0.5"]
2675
+ kbd: {
2676
+ bg: ["white", "black"],
2677
+ fg: ["200", "800"],
2678
+ border: ["100", "900"]
2615
2679
  },
2616
2680
  link: {
2617
- fg: ["blue/200", "blue/800/0.5"]
2681
+ fg: ["200", "800"]
2618
2682
  },
2619
- code: {
2620
- bg: ["100", "950/0.5"],
2621
- fg: ["200", "800/0.5"]
2683
+ muted: {
2684
+ fg: ["200", "800"]
2622
2685
  }
2623
2686
  }
2624
2687
  },
2625
2688
  default: {
2626
2689
  selected: {
2627
2690
  _hue: "blue"
2628
- // bg: ['500', '400'],
2629
2691
  }
2630
2692
  },
2631
2693
  critical: {
2632
2694
  disabled: {
2633
- bg: ["50/0.5", "950/0.5"]
2695
+ bg: ["50 50%", "950 50%"]
2634
2696
  }
2635
2697
  }
2636
2698
  },
2637
2699
  syntax: {
2638
- atrule: ["purple/700", "purple/400"],
2639
- attrName: ["green/700", "green/400"],
2640
- attrValue: ["yellow/700", "yellow/400"],
2641
- attribute: ["yellow/700", "yellow/400"],
2642
- boolean: ["purple/700", "purple/400"],
2643
- builtin: ["purple/700", "purple/400"],
2644
- cdata: ["yellow/700", "yellow/400"],
2645
- char: ["yellow/700", "yellow/400"],
2646
- class: ["orange/700", "orange/400"],
2647
- className: ["cyan/700", "cyan/400"],
2648
- comment: ["gray/700/0.5", "gray/400/0.5"],
2649
- constant: ["purple/700", "purple/400"],
2650
- deleted: ["red/700", "red/400"],
2651
- entity: ["red/700", "red/400"],
2652
- function: ["green/700", "green/400"],
2653
- hexcode: ["blue/700", "blue/400"],
2654
- id: ["purple/700", "purple/400"],
2655
- important: ["purple/700", "purple/400"],
2656
- inserted: ["yellow/700", "yellow/400"],
2657
- keyword: ["magenta/700", "magenta/400"],
2658
- number: ["purple/700", "purple/400"],
2659
- operator: ["magenta/700", "magenta/400"],
2660
- property: ["blue/700", "blue/400"],
2661
- pseudoClass: ["yellow/700", "yellow/400"],
2662
- pseudoElement: ["yellow/700", "yellow/400"],
2663
- punctuation: ["gray/700", "gray/400"],
2664
- regex: ["blue/700", "blue/400"],
2665
- selector: ["red/700", "red/400"],
2666
- string: ["yellow/700", "yellow/400"],
2667
- symbol: ["purple/700", "purple/400"],
2668
- tag: ["red/700", "red/400"],
2669
- unit: ["orange/700", "orange/400"],
2670
- url: ["red/700", "red/400"],
2671
- variable: ["red/700", "red/400"]
2700
+ atrule: ["purple/600", "purple/400"],
2701
+ attrName: ["green/600", "green/400"],
2702
+ attrValue: ["yellow/600", "yellow/400"],
2703
+ attribute: ["yellow/600", "yellow/400"],
2704
+ boolean: ["purple/600", "purple/400"],
2705
+ builtin: ["purple/600", "purple/400"],
2706
+ cdata: ["yellow/600", "yellow/400"],
2707
+ char: ["yellow/600", "yellow/400"],
2708
+ class: ["orange/600", "orange/400"],
2709
+ className: ["cyan/600", "cyan/400"],
2710
+ comment: ["gray/400", "gray/600"],
2711
+ constant: ["purple/600", "purple/400"],
2712
+ deleted: ["red/600", "red/400"],
2713
+ entity: ["red/600", "red/400"],
2714
+ function: ["green/600", "green/400"],
2715
+ hexcode: ["blue/600", "blue/400"],
2716
+ id: ["purple/600", "purple/400"],
2717
+ important: ["purple/600", "purple/400"],
2718
+ inserted: ["yellow/600", "yellow/400"],
2719
+ keyword: ["magenta/600", "magenta/400"],
2720
+ number: ["purple/600", "purple/400"],
2721
+ operator: ["magenta/600", "magenta/400"],
2722
+ property: ["blue/600", "blue/400"],
2723
+ pseudoClass: ["yellow/600", "yellow/400"],
2724
+ pseudoElement: ["yellow/600", "yellow/400"],
2725
+ punctuation: ["gray/600", "gray/400"],
2726
+ regex: ["blue/600", "blue/400"],
2727
+ selector: ["red/600", "red/400"],
2728
+ string: ["yellow/600", "yellow/400"],
2729
+ symbol: ["purple/600", "purple/400"],
2730
+ tag: ["red/600", "red/400"],
2731
+ unit: ["orange/600", "orange/400"],
2732
+ url: ["red/600", "red/400"],
2733
+ variable: ["red/600", "red/400"]
2672
2734
  }
2673
2735
  };
2674
2736
  function isRecord(value) {
@@ -3807,8 +3869,13 @@ function renderColorValue(str, options) {
3807
3869
  };
3808
3870
  try {
3809
3871
  hex = mixThemeColor(hex, mixOptions);
3872
+ if (bg && node.mix !== void 0) {
3873
+ const from = hexToRgb(bg);
3874
+ const to = hexToRgb(hex);
3875
+ hex = rgbToHex(mix(from, to, node.mix));
3876
+ }
3810
3877
  } catch (err) {
3811
- console.log("could not blend", hex, mixOptions);
3878
+ console.warn("could not blend", hex, mixOptions);
3812
3879
  throw err;
3813
3880
  }
3814
3881
  if (hex === "#aN") {
@@ -4060,10 +4127,9 @@ function renderThemeColorBadgeColor(value, options) {
4060
4127
  colorPalette
4061
4128
  };
4062
4129
  return {
4063
- // _blend: blendMode,
4064
4130
  bg,
4065
- fg: renderColorValue(value.fg, colorOptions),
4066
4131
  dot: renderColorValue(value.dot, colorOptions),
4132
+ fg: renderColorValue(value.fg, colorOptions),
4067
4133
  icon: renderColorValue(value.icon, colorOptions)
4068
4134
  };
4069
4135
  }
@@ -4122,7 +4188,7 @@ function renderThemeColorState(value, options) {
4122
4188
  blendMode
4123
4189
  }),
4124
4190
  badge: renderThemeColorBadge(value.badge, {
4125
- baseBg,
4191
+ baseBg: bg,
4126
4192
  colorPalette,
4127
4193
  blendMode
4128
4194
  }),
@@ -4330,6 +4396,5 @@ function _setCachedTheme(rootTheme, scheme, tone, theme) {
4330
4396
  const toneCache = schemeCache.get(tone);
4331
4397
  toneCache.set(rootTheme, theme);
4332
4398
  }
4333
- const defaultTheme = buildTheme();
4334
- export { COLOR_CONFIG_AVATAR_COLORS, COLOR_CONFIG_BLEND_KEYS, COLOR_CONFIG_CARD_KEYS, COLOR_CONFIG_CARD_TONES, COLOR_CONFIG_INPUT_MODES, COLOR_CONFIG_INPUT_STATES, COLOR_CONFIG_STATES, COLOR_CONFIG_STATE_KEYS, COLOR_CONFIG_STATE_TONES, THEME_COLOR_AVATAR_COLORS, THEME_COLOR_BLEND_MODES, THEME_COLOR_BUTTON_MODES, THEME_COLOR_CARD_TONES, THEME_COLOR_INPUT_MODES, THEME_COLOR_INPUT_STATES, THEME_COLOR_STATES, THEME_COLOR_STATE_TONES, buildTheme, createColorTheme, defaultTheme, getContrastRatio, getScopedTheme, getTheme_v2, hexToRgb, hslToRgb, isColorBlendModeValue, isColorButtonMode, isColorConfigBaseKey, isColorConfigBaseTone, isColorConfigBlendKey, isColorConfigStateKey, isColorConfigStateTone, isColorHueKey, isColorOpacityValue, isColorTintKey, isColorTokenValue, isColorValue, is_v0, is_v2, mix, multiply, parseColor, parseTokenKey, parseTokenValue, rgbToHex, rgbToHsl, rgba, rgbaToRGBA, screen, v0_v2, v2_v0 };
4399
+ export { COLOR_CONFIG_AVATAR_COLORS, COLOR_CONFIG_BLEND_KEYS, COLOR_CONFIG_CARD_KEYS, COLOR_CONFIG_CARD_TONES, COLOR_CONFIG_INPUT_MODES, COLOR_CONFIG_INPUT_STATES, COLOR_CONFIG_STATES, COLOR_CONFIG_STATE_KEYS, COLOR_CONFIG_STATE_TONES, THEME_COLOR_AVATAR_COLORS, THEME_COLOR_BLEND_MODES, THEME_COLOR_BUTTON_MODES, THEME_COLOR_CARD_TONES, THEME_COLOR_INPUT_MODES, THEME_COLOR_INPUT_STATES, THEME_COLOR_SCHEMES, THEME_COLOR_STATES, THEME_COLOR_STATE_TONES, buildTheme, createColorTheme, getContrastRatio, getScopedTheme, getTheme_v2, hexToRgb, hslToRgb, isColorBlendModeValue, isColorButtonMode, isColorConfigBaseKey, isColorConfigBaseTone, isColorConfigBlendKey, isColorConfigStateKey, isColorConfigStateTone, isColorHueKey, isColorOpacityValue, isColorTintKey, isColorTokenValue, isColorValue, is_v0, is_v2, mix, multiply, parseColor, parseTokenKey, parseTokenValue, rgbToHex, rgbToHsl, rgba, rgbaToRGBA, screen, v0_v2, v2_v0 };
4335
4400
  //# sourceMappingURL=theme.esm.js.map