@sanity/ui 2.3.6 → 2.4.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.
package/dist/theme.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var color = require("@sanity/color");
3
+ var getTheme_v2 = require("./_chunks-cjs/getTheme_v2.js"), color = require("@sanity/color");
4
4
  function createSelectableTones(opts, base, dark, solid, muted) {
5
5
  return {
6
6
  default: _createSelectableStates(opts, base, dark, solid, muted, "default"),
@@ -686,85 +686,7 @@ function _createColor(opts, dark, name) {
686
686
  muted
687
687
  };
688
688
  }
689
- const BORDER_WIDTH = 1, OUTLINE_WIDTH = 0.5, defaultThemeConfig = {
690
- _version: 2,
691
- avatar: {
692
- sizes: [
693
- { distance: -4, size: 19 },
694
- { distance: -4, size: 25 },
695
- { distance: -8, size: 33 },
696
- { distance: -12, size: 49 }
697
- ],
698
- focusRing: { offset: 1, width: 1 }
699
- },
700
- button: {
701
- textWeight: "medium",
702
- border: { width: BORDER_WIDTH },
703
- focusRing: { offset: -1, width: 1 }
704
- },
705
- card: {
706
- border: { width: BORDER_WIDTH },
707
- focusRing: { offset: -1, width: 1 },
708
- shadow: { outline: OUTLINE_WIDTH }
709
- },
710
- container: [320, 640, 960, 1280, 1600, 1920],
711
- media: [360, 600, 900, 1200, 1800, 2400],
712
- layer: {
713
- dialog: { zOffset: 600 },
714
- popover: { zOffset: 400 },
715
- tooltip: { zOffset: 200 }
716
- },
717
- radius: [0, 1, 3, 6, 9, 12, 21],
718
- shadow: [
719
- null,
720
- { umbra: [0, 0, 0, 0], penumbra: [0, 0, 0, 0], ambient: [0, 0, 0, 0] },
721
- { umbra: [0, 3, 5, -2], penumbra: [0, 6, 10, 0], ambient: [0, 1, 18, 1] },
722
- { umbra: [0, 7, 8, -4], penumbra: [0, 12, 17, 2], ambient: [0, 5, 22, 4] },
723
- { umbra: [0, 9, 11, -5], penumbra: [0, 18, 28, 2], ambient: [0, 7, 34, 6] },
724
- { umbra: [0, 11, 15, -7], penumbra: [0, 24, 38, 3], ambient: [0, 9, 46, 8] }
725
- ],
726
- space: [0, 4, 8, 12, 20, 32, 52, 84, 136, 220],
727
- input: {
728
- border: {
729
- width: BORDER_WIDTH
730
- },
731
- checkbox: {
732
- size: 17,
733
- focusRing: { offset: -1, width: 1 }
734
- },
735
- radio: {
736
- size: 17,
737
- markSize: 9,
738
- focusRing: { offset: -1, width: 1 }
739
- },
740
- switch: {
741
- width: 25,
742
- height: 17,
743
- padding: 5,
744
- transitionDurationMs: 150,
745
- transitionTimingFunction: "ease-out",
746
- focusRing: { offset: 1, width: 1 }
747
- },
748
- select: {
749
- focusRing: { offset: -1, width: 1 }
750
- },
751
- text: {
752
- focusRing: { offset: -1, width: 1 }
753
- }
754
- },
755
- style: {
756
- button: {
757
- root: {
758
- transition: "background-color 100ms,border-color 100ms,color 100ms"
759
- }
760
- }
761
- // card: {
762
- // root: {
763
- // transition: 'background-color 100ms,border-color 100ms,color 100ms',
764
- // },
765
- // },
766
- }
767
- }, defaultThemeFonts = {
689
+ const defaultThemeFonts = {
768
690
  code: {
769
691
  family: "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
770
692
  weights: {
@@ -985,242 +907,7 @@ const BORDER_WIDTH = 1, OUTLINE_WIDTH = 0.5, defaultThemeConfig = {
985
907
  }
986
908
  ]
987
909
  }
988
- }, cache$4 = /* @__PURE__ */ new WeakMap();
989
- function themeColor_v0_v2(color_v0) {
990
- var _a, _b, _c;
991
- const cached_v2 = cache$4.get(color_v0);
992
- if (cached_v2) return cached_v2;
993
- const base = stateThemeColor_v0_v2(color_v0, color_v0.card.enabled), color_v2 = {
994
- _blend: color_v0._blend || (color_v0.dark ? "screen" : "multiply"),
995
- _dark: color_v0.dark,
996
- accent: base.accent,
997
- avatar: base.avatar,
998
- backdrop: color_v0.base.shadow.ambient,
999
- badge: base.badge,
1000
- bg: color_v0.base.bg,
1001
- border: color_v0.base.border,
1002
- button: {
1003
- default: stateTonesThemeColor_v0_v2(color_v0, color_v0.button.default),
1004
- ghost: stateTonesThemeColor_v0_v2(color_v0, color_v0.button.ghost),
1005
- bleed: stateTonesThemeColor_v0_v2(color_v0, color_v0.button.bleed)
1006
- },
1007
- code: base.code,
1008
- fg: color_v0.base.fg,
1009
- focusRing: color_v0.base.focusRing,
1010
- icon: base.muted.fg,
1011
- input: {
1012
- default: inputStatesThemeColor_v0_v2(color_v0.input.default),
1013
- invalid: inputStatesThemeColor_v0_v2(color_v0.input.invalid)
1014
- },
1015
- kbd: base.kbd,
1016
- link: base.link,
1017
- muted: {
1018
- ...base.muted,
1019
- bg: ((_a = color_v0.selectable) == null ? void 0 : _a.default.enabled.bg2) || color_v0.base.bg
1020
- },
1021
- selectable: stateTonesThemeColor_v0_v2(color_v0, color_v0.selectable || color_v0.muted),
1022
- shadow: color_v0.base.shadow,
1023
- skeleton: {
1024
- from: ((_b = color_v0.skeleton) == null ? void 0 : _b.from) || color_v0.base.border,
1025
- to: ((_c = color_v0.skeleton) == null ? void 0 : _c.to) || color_v0.base.border
1026
- },
1027
- syntax: color_v0.syntax
1028
- };
1029
- return cache$4.set(color_v0, color_v2), color_v2;
1030
- }
1031
- function stateTonesThemeColor_v0_v2(v0, t) {
1032
- return {
1033
- default: {
1034
- enabled: stateThemeColor_v0_v2(v0, t.default.enabled),
1035
- hovered: stateThemeColor_v0_v2(v0, t.default.hovered),
1036
- pressed: stateThemeColor_v0_v2(v0, t.default.pressed),
1037
- selected: stateThemeColor_v0_v2(v0, t.default.selected),
1038
- disabled: stateThemeColor_v0_v2(v0, t.default.disabled)
1039
- },
1040
- primary: {
1041
- enabled: stateThemeColor_v0_v2(v0, t.primary.enabled),
1042
- hovered: stateThemeColor_v0_v2(v0, t.primary.hovered),
1043
- pressed: stateThemeColor_v0_v2(v0, t.primary.pressed),
1044
- selected: stateThemeColor_v0_v2(v0, t.primary.selected),
1045
- disabled: stateThemeColor_v0_v2(v0, t.primary.disabled)
1046
- },
1047
- positive: {
1048
- enabled: stateThemeColor_v0_v2(v0, t.positive.enabled),
1049
- hovered: stateThemeColor_v0_v2(v0, t.positive.hovered),
1050
- pressed: stateThemeColor_v0_v2(v0, t.positive.pressed),
1051
- selected: stateThemeColor_v0_v2(v0, t.positive.selected),
1052
- disabled: stateThemeColor_v0_v2(v0, t.positive.disabled)
1053
- },
1054
- caution: {
1055
- enabled: stateThemeColor_v0_v2(v0, t.caution.enabled),
1056
- hovered: stateThemeColor_v0_v2(v0, t.caution.hovered),
1057
- pressed: stateThemeColor_v0_v2(v0, t.caution.pressed),
1058
- selected: stateThemeColor_v0_v2(v0, t.caution.selected),
1059
- disabled: stateThemeColor_v0_v2(v0, t.caution.disabled)
1060
- },
1061
- critical: {
1062
- enabled: stateThemeColor_v0_v2(v0, t.critical.enabled),
1063
- hovered: stateThemeColor_v0_v2(v0, t.critical.hovered),
1064
- pressed: stateThemeColor_v0_v2(v0, t.critical.pressed),
1065
- selected: stateThemeColor_v0_v2(v0, t.critical.selected),
1066
- disabled: stateThemeColor_v0_v2(v0, t.critical.disabled)
1067
- }
1068
- };
1069
- }
1070
- function stateThemeColor_v0_v2(v0, state) {
1071
- var _a, _b;
1072
- return {
1073
- ...state,
1074
- avatar: {
1075
- gray: {
1076
- bg: v0.spot.gray,
1077
- fg: v0.base.bg
1078
- },
1079
- blue: {
1080
- bg: v0.spot.blue,
1081
- fg: v0.base.bg
1082
- },
1083
- purple: {
1084
- bg: v0.spot.purple,
1085
- fg: v0.base.bg
1086
- },
1087
- magenta: {
1088
- bg: v0.spot.magenta,
1089
- fg: v0.base.bg
1090
- },
1091
- red: {
1092
- bg: v0.spot.red,
1093
- fg: v0.base.bg
1094
- },
1095
- orange: {
1096
- bg: v0.spot.orange,
1097
- fg: v0.base.bg
1098
- },
1099
- yellow: {
1100
- bg: v0.spot.yellow,
1101
- fg: v0.base.bg
1102
- },
1103
- green: {
1104
- bg: v0.spot.green,
1105
- fg: v0.base.bg
1106
- },
1107
- cyan: {
1108
- bg: v0.spot.cyan,
1109
- fg: v0.base.bg
1110
- }
1111
- },
1112
- badge: {
1113
- default: {
1114
- bg: v0.muted.default.enabled.bg,
1115
- fg: v0.muted.default.enabled.fg,
1116
- dot: v0.muted.default.enabled.muted.fg,
1117
- icon: v0.muted.default.enabled.muted.fg
1118
- },
1119
- primary: {
1120
- bg: v0.muted.primary.enabled.bg,
1121
- fg: v0.muted.primary.enabled.fg,
1122
- dot: v0.muted.primary.enabled.muted.fg,
1123
- icon: v0.muted.primary.enabled.muted.fg
1124
- },
1125
- positive: {
1126
- bg: v0.muted.positive.enabled.bg,
1127
- fg: v0.muted.positive.enabled.fg,
1128
- dot: v0.muted.positive.enabled.muted.fg,
1129
- icon: v0.muted.positive.enabled.muted.fg
1130
- },
1131
- caution: {
1132
- bg: v0.muted.caution.enabled.bg,
1133
- fg: v0.muted.caution.enabled.fg,
1134
- dot: v0.muted.caution.enabled.muted.fg,
1135
- icon: v0.muted.caution.enabled.muted.fg
1136
- },
1137
- critical: {
1138
- bg: v0.muted.critical.enabled.bg,
1139
- fg: v0.muted.critical.enabled.fg,
1140
- dot: v0.muted.critical.enabled.muted.fg,
1141
- icon: v0.muted.critical.enabled.muted.fg
1142
- }
1143
- },
1144
- kbd: {
1145
- bg: v0.muted.default.enabled.bg,
1146
- fg: v0.muted.default.enabled.fg,
1147
- border: v0.muted.default.enabled.border
1148
- },
1149
- muted: {
1150
- ...v0.muted.default.enabled.muted,
1151
- bg: state.bg2 || state.bg
1152
- },
1153
- skeleton: {
1154
- from: ((_a = state.skeleton) == null ? void 0 : _a.from) || state.border,
1155
- to: ((_b = state.skeleton) == null ? void 0 : _b.to) || state.border
1156
- }
1157
- };
1158
- }
1159
- function inputStatesThemeColor_v0_v2(states) {
1160
- return {
1161
- enabled: inputStateThemeColor_v0_v2(states.enabled),
1162
- disabled: inputStateThemeColor_v0_v2(states.disabled),
1163
- readOnly: inputStateThemeColor_v0_v2(states.readOnly),
1164
- hovered: inputStateThemeColor_v0_v2(states.hovered)
1165
- };
1166
- }
1167
- function inputStateThemeColor_v0_v2(state) {
1168
- return {
1169
- bg: state.bg,
1170
- border: state.border,
1171
- fg: state.fg,
1172
- muted: {
1173
- bg: state.bg2
1174
- },
1175
- placeholder: state.placeholder
1176
- };
1177
- }
1178
- const cache$3 = /* @__PURE__ */ new WeakMap();
1179
- function getTheme_v2(theme) {
1180
- var _a, _b;
1181
- if ((_a = theme.sanity.v2) != null && _a._resolved) return theme.sanity.v2;
1182
- const cached_v2 = cache$3.get(theme);
1183
- if (cached_v2) return cached_v2;
1184
- const v2 = {
1185
- _version: 2,
1186
- _resolved: !0,
1187
- avatar: {
1188
- ...defaultThemeConfig.avatar,
1189
- ...theme.sanity.avatar
1190
- },
1191
- button: {
1192
- ...defaultThemeConfig.button,
1193
- ...theme.sanity.button
1194
- },
1195
- card: defaultThemeConfig.card,
1196
- color: themeColor_v0_v2(theme.sanity.color),
1197
- container: theme.sanity.container,
1198
- font: theme.sanity.fonts,
1199
- input: {
1200
- ...defaultThemeConfig.input,
1201
- ...theme.sanity.input,
1202
- checkbox: {
1203
- ...defaultThemeConfig.input.checkbox,
1204
- ...theme.sanity.input.checkbox
1205
- },
1206
- radio: {
1207
- ...defaultThemeConfig.input.radio,
1208
- ...theme.sanity.input.radio
1209
- },
1210
- switch: {
1211
- ...defaultThemeConfig.input.switch,
1212
- ...theme.sanity.input.switch
1213
- }
1214
- },
1215
- layer: (_b = theme.sanity.layer) != null ? _b : defaultThemeConfig.layer,
1216
- media: theme.sanity.media,
1217
- radius: theme.sanity.radius,
1218
- shadow: theme.sanity.shadows,
1219
- space: theme.sanity.space,
1220
- style: theme.sanity.styles
1221
- };
1222
- return cache$3.set(theme, v2), v2;
1223
- }
910
+ };
1224
911
  function is_v0(themeProp) {
1225
912
  return themeProp._version === 0;
1226
913
  }
@@ -1250,51 +937,51 @@ function v0_v2(v0) {
1250
937
  } = v0, v2 = {
1251
938
  _version: 2,
1252
939
  avatar: {
1253
- ...defaultThemeConfig.avatar,
940
+ ...getTheme_v2.defaultThemeConfig.avatar,
1254
941
  ...avatar
1255
942
  },
1256
943
  button: {
1257
- ...defaultThemeConfig.button,
944
+ ...getTheme_v2.defaultThemeConfig.button,
1258
945
  ...button
1259
946
  },
1260
- card: defaultThemeConfig.card,
947
+ card: getTheme_v2.defaultThemeConfig.card,
1261
948
  color: {
1262
949
  light: {
1263
- transparent: themeColor_v0_v2(color2.light.transparent),
1264
- default: themeColor_v0_v2(color2.light.default),
1265
- primary: themeColor_v0_v2(color2.light.primary),
1266
- positive: themeColor_v0_v2(color2.light.positive),
1267
- caution: themeColor_v0_v2(color2.light.caution),
1268
- critical: themeColor_v0_v2(color2.light.critical)
950
+ transparent: getTheme_v2.themeColor_v0_v2(color2.light.transparent),
951
+ default: getTheme_v2.themeColor_v0_v2(color2.light.default),
952
+ primary: getTheme_v2.themeColor_v0_v2(color2.light.primary),
953
+ positive: getTheme_v2.themeColor_v0_v2(color2.light.positive),
954
+ caution: getTheme_v2.themeColor_v0_v2(color2.light.caution),
955
+ critical: getTheme_v2.themeColor_v0_v2(color2.light.critical)
1269
956
  },
1270
957
  dark: {
1271
- transparent: themeColor_v0_v2(color2.dark.transparent),
1272
- default: themeColor_v0_v2(color2.dark.default),
1273
- primary: themeColor_v0_v2(color2.dark.primary),
1274
- positive: themeColor_v0_v2(color2.dark.positive),
1275
- caution: themeColor_v0_v2(color2.dark.caution),
1276
- critical: themeColor_v0_v2(color2.dark.critical)
958
+ transparent: getTheme_v2.themeColor_v0_v2(color2.dark.transparent),
959
+ default: getTheme_v2.themeColor_v0_v2(color2.dark.default),
960
+ primary: getTheme_v2.themeColor_v0_v2(color2.dark.primary),
961
+ positive: getTheme_v2.themeColor_v0_v2(color2.dark.positive),
962
+ caution: getTheme_v2.themeColor_v0_v2(color2.dark.caution),
963
+ critical: getTheme_v2.themeColor_v0_v2(color2.dark.critical)
1277
964
  }
1278
965
  },
1279
966
  container,
1280
967
  font,
1281
968
  input: {
1282
- ...defaultThemeConfig.input,
969
+ ...getTheme_v2.defaultThemeConfig.input,
1283
970
  ...input,
1284
971
  checkbox: {
1285
- ...defaultThemeConfig.input.checkbox,
972
+ ...getTheme_v2.defaultThemeConfig.input.checkbox,
1286
973
  ...input.checkbox
1287
974
  },
1288
975
  radio: {
1289
- ...defaultThemeConfig.input.radio,
976
+ ...getTheme_v2.defaultThemeConfig.input.radio,
1290
977
  ...input.radio
1291
978
  },
1292
979
  switch: {
1293
- ...defaultThemeConfig.input.switch,
980
+ ...getTheme_v2.defaultThemeConfig.input.switch,
1294
981
  ...input.switch
1295
982
  }
1296
983
  },
1297
- layer: layer != null ? layer : defaultThemeConfig.layer,
984
+ layer: layer != null ? layer : getTheme_v2.defaultThemeConfig.layer,
1298
985
  media,
1299
986
  radius,
1300
987
  shadow,
@@ -3300,24 +2987,24 @@ function buildTheme(config) {
3300
2987
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
3301
2988
  const colorTheme = buildColorTheme(config), v2 = {
3302
2989
  _version: 2,
3303
- avatar: (_a = config == null ? void 0 : config.avatar) != null ? _a : defaultThemeConfig.avatar,
3304
- button: (_b = config == null ? void 0 : config.button) != null ? _b : defaultThemeConfig.button,
3305
- card: (_c = config == null ? void 0 : config.card) != null ? _c : defaultThemeConfig.card,
2990
+ avatar: (_a = config == null ? void 0 : config.avatar) != null ? _a : getTheme_v2.defaultThemeConfig.avatar,
2991
+ button: (_b = config == null ? void 0 : config.button) != null ? _b : getTheme_v2.defaultThemeConfig.button,
2992
+ card: (_c = config == null ? void 0 : config.card) != null ? _c : getTheme_v2.defaultThemeConfig.card,
3306
2993
  // How colors are generated:
3307
2994
  // 1. Merge custom tokens with default tokens
3308
2995
  // 2. Generate tree of color keys (gray/500, black, white, etc.)
3309
2996
  // 3. Apply mixing and render to hex values
3310
2997
  // render(build(mergeWithDefaults()))
3311
2998
  color: renderThemeColorSchemes(colorTheme, config),
3312
- container: (_d = config == null ? void 0 : config.container) != null ? _d : defaultThemeConfig.container,
2999
+ container: (_d = config == null ? void 0 : config.container) != null ? _d : getTheme_v2.defaultThemeConfig.container,
3313
3000
  font: (_e = config == null ? void 0 : config.font) != null ? _e : defaultThemeFonts,
3314
- input: (_f = config == null ? void 0 : config.input) != null ? _f : defaultThemeConfig.input,
3315
- layer: (_g = config == null ? void 0 : config.layer) != null ? _g : defaultThemeConfig.layer,
3316
- media: (_h = config == null ? void 0 : config.media) != null ? _h : defaultThemeConfig.media,
3317
- radius: (_i = config == null ? void 0 : config.radius) != null ? _i : defaultThemeConfig.radius,
3318
- shadow: (_j = config == null ? void 0 : config.shadow) != null ? _j : defaultThemeConfig.shadow,
3319
- space: (_k = config == null ? void 0 : config.space) != null ? _k : defaultThemeConfig.space,
3320
- style: (_l = config == null ? void 0 : config.style) != null ? _l : defaultThemeConfig.style
3001
+ input: (_f = config == null ? void 0 : config.input) != null ? _f : getTheme_v2.defaultThemeConfig.input,
3002
+ layer: (_g = config == null ? void 0 : config.layer) != null ? _g : getTheme_v2.defaultThemeConfig.layer,
3003
+ media: (_h = config == null ? void 0 : config.media) != null ? _h : getTheme_v2.defaultThemeConfig.media,
3004
+ radius: (_i = config == null ? void 0 : config.radius) != null ? _i : getTheme_v2.defaultThemeConfig.radius,
3005
+ shadow: (_j = config == null ? void 0 : config.shadow) != null ? _j : getTheme_v2.defaultThemeConfig.shadow,
3006
+ space: (_k = config == null ? void 0 : config.space) != null ? _k : getTheme_v2.defaultThemeConfig.space,
3007
+ style: (_l = config == null ? void 0 : config.style) != null ? _l : getTheme_v2.defaultThemeConfig.style
3321
3008
  };
3322
3009
  return v2_v0(v2);
3323
3010
  }
@@ -3325,7 +3012,7 @@ const cache = /* @__PURE__ */ new Map();
3325
3012
  function getScopedTheme(themeProp, scheme, tone) {
3326
3013
  const cachedTheme = _getCachedTheme(themeProp, scheme, tone);
3327
3014
  if (cachedTheme) return cachedTheme;
3328
- const v0 = is_v2(themeProp) ? v2_v0(themeProp) : themeProp, v2 = is_v2(themeProp) ? themeProp : v0_v2(themeProp), colorScheme_v0 = v0.color[scheme] || v0.color.light, color_v0 = colorScheme_v0[tone] || colorScheme_v0.default, layer_v0 = v0.layer || defaultThemeConfig.layer, colorScheme_v2 = v2.color[scheme] || v2.color.light, color_v2 = colorScheme_v2[tone] || colorScheme_v2.default, layer_v2 = v2.layer || defaultThemeConfig.layer, theme = {
3015
+ const v0 = is_v2(themeProp) ? v2_v0(themeProp) : themeProp, v2 = is_v2(themeProp) ? themeProp : v0_v2(themeProp), colorScheme_v0 = v0.color[scheme] || v0.color.light, color_v0 = colorScheme_v0[tone] || colorScheme_v0.default, layer_v0 = v0.layer || getTheme_v2.defaultThemeConfig.layer, colorScheme_v2 = v2.color[scheme] || v2.color.light, color_v2 = colorScheme_v2[tone] || colorScheme_v2.default, layer_v2 = v2.layer || getTheme_v2.defaultThemeConfig.layer, theme = {
3329
3016
  sanity: {
3330
3017
  ...v0,
3331
3018
  color: color_v0,
@@ -3352,6 +3039,7 @@ function _setCachedTheme(rootTheme, scheme, tone, theme) {
3352
3039
  const schemeCache = cache.get(scheme);
3353
3040
  schemeCache.has(tone) || schemeCache.set(tone, /* @__PURE__ */ new WeakMap()), schemeCache.get(tone).set(rootTheme, theme);
3354
3041
  }
3042
+ exports.getTheme_v2 = getTheme_v2.getTheme_v2;
3355
3043
  exports.COLOR_CONFIG_AVATAR_COLORS = COLOR_CONFIG_AVATAR_COLORS;
3356
3044
  exports.COLOR_CONFIG_BLEND_KEYS = COLOR_CONFIG_BLEND_KEYS;
3357
3045
  exports.COLOR_CONFIG_CARD_KEYS = COLOR_CONFIG_CARD_KEYS;
@@ -3374,7 +3062,6 @@ exports.buildTheme = buildTheme;
3374
3062
  exports.createColorTheme = createColorTheme;
3375
3063
  exports.getContrastRatio = getContrastRatio;
3376
3064
  exports.getScopedTheme = getScopedTheme;
3377
- exports.getTheme_v2 = getTheme_v2;
3378
3065
  exports.hexToRgb = hexToRgb;
3379
3066
  exports.hslToRgb = hslToRgb;
3380
3067
  exports.isColorBlendModeValue = isColorBlendModeValue;