@tamagui/themes 1.5.2 → 1.5.5

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.
@@ -45,7 +45,7 @@ const palettes = {
45
45
  light: [
46
46
  lightTransparent,
47
47
  "#fff",
48
- "#f4f4f4",
48
+ "#f9f9f9",
49
49
  "hsl(0, 0%, 99.0%)",
50
50
  "hsl(0, 0%, 97.3%)",
51
51
  "hsl(0, 0%, 95.1%)",
@@ -97,16 +97,16 @@ const template = {
97
97
  colorPress: -1,
98
98
  colorFocus: -2,
99
99
  colorTransparent: -0,
100
- borderColor: 3,
101
- borderColorHover: 4,
102
- borderColorPress: 2,
103
- borderColorFocus: 3,
100
+ borderColor: 4,
101
+ borderColorHover: 5,
102
+ borderColorPress: 3,
103
+ borderColorFocus: 4,
104
104
  placeholderColor: -4
105
105
  };
106
- const lightShadowColor = "rgba(0,0,0,0.15)";
107
- const lightShadowColorStrong = "rgba(0,0,0,0.2)";
108
- const darkShadowColor = "rgba(0,0,0,0.3)";
109
- const darkShadowColorStrong = "rgba(0,0,0,0.45)";
106
+ const lightShadowColor = "rgba(0,0,0,0.02)";
107
+ const lightShadowColorStrong = "rgba(0,0,0,0.066)";
108
+ const darkShadowColor = "rgba(0,0,0,0.2)";
109
+ const darkShadowColorStrong = "rgba(0,0,0,0.3)";
110
110
  const lightShadows = {
111
111
  shadowColor: lightShadowColorStrong,
112
112
  shadowColorHover: lightShadowColorStrong,
@@ -121,6 +121,10 @@ const darkShadows = {
121
121
  };
122
122
  const lightTemplate = {
123
123
  ...template,
124
+ borderColor: 3,
125
+ borderColorHover: 4,
126
+ borderColorPress: 2,
127
+ borderColorFocus: 3,
124
128
  ...lightShadows
125
129
  };
126
130
  const darkTemplate = { ...template, ...darkShadows };
@@ -163,20 +167,18 @@ const allThemes = (0, import_create_theme.addChildren)(baseThemes, (name, themeI
163
167
  return Object.fromEntries(
164
168
  Object.keys(colorSet).map((color) => {
165
169
  const colorPalette = Object.values(colorSet[color]);
166
- const first6 = colorPalette.slice(0, 6);
167
- const last5 = colorPalette.slice(colorPalette.length - 5);
168
- const shadows = isLight ? lightShadows : darkShadows;
170
+ const [head, tail] = [
171
+ colorPalette.slice(0, 6),
172
+ colorPalette.slice(colorPalette.length - 5)
173
+ ];
169
174
  const palette = [
170
175
  transparent(colorPalette[0]),
171
- ...first6,
172
- ...last5,
176
+ ...head,
177
+ ...tail,
173
178
  theme.color,
174
179
  transparent(colorPalette[colorPalette.length - 1])
175
180
  ];
176
- const colorTheme = (0, import_create_theme.createTheme)(palette, {
177
- ...template,
178
- ...shadows
179
- });
181
+ const colorTheme = (0, import_create_theme.createTheme)(palette, isLight ? lightTemplate : darkTemplate);
180
182
  return [color, colorTheme];
181
183
  })
182
184
  );
@@ -199,6 +201,7 @@ const allThemes = (0, import_create_theme.addChildren)(baseThemes, (name, themeI
199
201
  const inverse1 = (0, import_create_theme.applyMask)(inverse, masks.weaker, { skip });
200
202
  const inverse2 = (0, import_create_theme.applyMask)(inverse1, masks.weaker, { skip });
201
203
  return {
204
+ Card: stronger1,
202
205
  Button: stronger2,
203
206
  DrawerFrame: stronger1,
204
207
  SliderTrack: theme2,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/themes.tsx"],
4
- "sourcesContent": ["import {\n addChildren,\n applyMask,\n createStrengthenMask,\n createTheme,\n createWeakenMask,\n} from '@tamagui/create-theme'\n\nimport { colorTokens, darkColors, lightColors } from './tokens'\n\ntype ColorName = keyof typeof colorTokens.dark\n\nconst lightTransparent = 'rgba(255,255,255,0)'\nconst darkTransparent = 'rgba(10,10,10,0)'\n\n// background => foreground\nconst palettes = {\n dark: [\n darkTransparent,\n '#090909',\n '#151515',\n '#191919',\n '#232323',\n '#282828',\n '#323232',\n '#424242',\n '#494949',\n '#545454',\n '#626262',\n '#a5a5a5',\n '#fff',\n lightTransparent,\n ],\n light: [\n lightTransparent,\n '#fff',\n '#f4f4f4',\n 'hsl(0, 0%, 99.0%)',\n 'hsl(0, 0%, 97.3%)',\n 'hsl(0, 0%, 95.1%)',\n 'hsl(0, 0%, 93.0%)',\n 'hsl(0, 0%, 90.9%)',\n 'hsl(0, 0%, 80.0%)',\n 'hsl(0, 0%, 56.1%)',\n 'hsl(0, 0%, 52.3%)',\n 'hsl(0, 0%, 43.5%)',\n 'hsl(0, 0%, 9.0%)',\n darkTransparent,\n ],\n}\n\nconst colorScale = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12,\n}\n\n// we can use subset of our template as a \"skip\" so it doesn't get adjusted with masks\nconst skip = {\n ...colorScale,\n shadowColor: 1,\n shadowColorHover: 1,\n shadowColorPress: 2,\n shadowColorFocus: 2,\n}\n\n// templates use the palette and specify index\n// negative goes backwards from end so -1 is the last item\nconst template = {\n ...skip,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 1,\n backgroundFocus: 2,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 3,\n borderColorHover: 4,\n borderColorPress: 2,\n borderColorFocus: 3,\n placeholderColor: -4,\n}\n\nconst lightShadowColor = 'rgba(0,0,0,0.15)'\nconst lightShadowColorStrong = 'rgba(0,0,0,0.2)'\nconst darkShadowColor = 'rgba(0,0,0,0.3)'\nconst darkShadowColorStrong = 'rgba(0,0,0,0.45)'\n\nconst lightShadows = {\n shadowColor: lightShadowColorStrong,\n shadowColorHover: lightShadowColorStrong,\n shadowColorPress: lightShadowColor,\n shadowColorFocus: lightShadowColor,\n}\n\nconst darkShadows = {\n shadowColor: darkShadowColorStrong,\n shadowColorHover: darkShadowColorStrong,\n shadowColorPress: darkShadowColor,\n shadowColorFocus: darkShadowColor,\n}\n\nconst lightTemplate = {\n ...template,\n ...lightShadows,\n}\n\nconst darkTemplate = { ...template, ...darkShadows }\n\nconst light = createTheme(palettes.light, lightTemplate, {\n nonInheritedValues: lightColors,\n})\n\nconst dark = createTheme(palettes.dark, darkTemplate, { nonInheritedValues: darkColors })\n\ntype Theme = { [key in keyof typeof lightTemplate]: string }\n\nconst baseThemes: {\n light: Theme\n dark: Theme\n} = {\n light,\n dark,\n}\n\n// avoid transparent ends\nconst max = palettes.dark.length - 1\nconst masks = {\n weaker: createWeakenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger: createStrengthenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger2: createStrengthenMask({\n by: 2,\n min: 1,\n max,\n }),\n}\n\nconst allThemes = addChildren(baseThemes, (name, themeIn) => {\n const theme = themeIn as Theme\n const isLight = name === 'light'\n const inverseName = isLight ? 'dark' : 'light'\n const inverseTheme = baseThemes[inverseName]\n const transparent = (hsl: string, opacity = 0) =>\n hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`)\n\n // setup colorThemes and their inverses\n const [colorThemes, inverseColorThemes] = [\n colorTokens[name],\n colorTokens[inverseName],\n ].map((colorSet) => {\n return Object.fromEntries(\n Object.keys(colorSet).map((color) => {\n const colorPalette = Object.values(colorSet[color as ColorName])\n // we want a much lighter text color by default so swap them around a bit\n const first6 = colorPalette.slice(0, 6)\n const last5 = colorPalette.slice(colorPalette.length - 5)\n const shadows = isLight ? lightShadows : darkShadows\n const palette = [\n transparent(colorPalette[0]),\n ...first6,\n ...last5,\n theme.color,\n transparent(colorPalette[colorPalette.length - 1]),\n ]\n const colorTheme = createTheme(palette, {\n ...template,\n ...shadows,\n })\n return [color, colorTheme]\n })\n ) as Record<ColorName, Theme>\n })\n\n const allColorThemes = addChildren(colorThemes, (colorName, colorTheme) => {\n const inverse = inverseColorThemes[colorName]\n return {\n ...getAltThemes(colorTheme as any, inverse as any),\n ...getComponentThemes(colorTheme as any, inverse as any),\n }\n })\n\n return {\n ...getAltThemes(theme, inverseTheme),\n ...getComponentThemes(theme, inverseTheme),\n ...allColorThemes,\n }\n\n function getComponentThemes(theme: Theme, inverse: Theme) {\n const stronger1 = applyMask(theme, masks.stronger, { skip })\n const stronger2 = applyMask(stronger1, masks.stronger, { skip })\n const inverse1 = applyMask(inverse, masks.weaker, { skip })\n const inverse2 = applyMask(inverse1, masks.weaker, { skip })\n return {\n Button: stronger2,\n DrawerFrame: stronger1,\n SliderTrack: theme,\n SliderTrackActive: stronger2,\n SliderThumb: inverse1,\n Progress: stronger1,\n ProgressIndicator: inverse,\n Switch: stronger2,\n SwitchThumb: inverse2,\n TooltipArrow: stronger1,\n TooltipContent: stronger2,\n }\n }\n\n function getAltThemes(theme: Theme, inverse: Theme) {\n const alt1 = applyMask(theme, masks.weaker, { skip })\n const alt2 = applyMask(alt1, masks.weaker, { skip })\n const active = applyMask(theme, masks.stronger2, { skip })\n return addChildren({ alt1, alt2, active }, (name, theme) => {\n return getComponentThemes(theme as any, inverse)\n })\n }\n})\n\nexport const themes = {\n ...allThemes,\n // bring back the full type (the rest use a subset)\n light,\n dark,\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAMO;AAEP,oBAAqD;AAIrD,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAGxB,MAAM,WAAW;AAAA,EACf,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;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AM,WAAW,EAAE,KAAK,CAAC;AACzD,eAAO,iCAAY,EAAE,MAAM,MAAM,OAAO,GAAG,CAACC,OAAMD,WAAU;AAC1D,aAAO,mBAAmBA,QAAc,OAAO;AAAA,IACjD,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM,SAAS;AAAA,EACpB,GAAG;AAAA;AAAA,EAEH;AAAA,EACA;AACF;",
4
+ "sourcesContent": ["import {\n addChildren,\n applyMask,\n createStrengthenMask,\n createTheme,\n createWeakenMask,\n} from '@tamagui/create-theme'\n\nimport { colorTokens, darkColors, lightColors } from './tokens'\n\ntype ColorName = keyof typeof colorTokens.dark\n\nconst lightTransparent = 'rgba(255,255,255,0)'\nconst darkTransparent = 'rgba(10,10,10,0)'\n\n// background => foreground\nconst palettes = {\n dark: [\n darkTransparent,\n '#090909',\n '#151515',\n '#191919',\n '#232323',\n '#282828',\n '#323232',\n '#424242',\n '#494949',\n '#545454',\n '#626262',\n '#a5a5a5',\n '#fff',\n lightTransparent,\n ],\n light: [\n lightTransparent,\n '#fff',\n '#f9f9f9',\n 'hsl(0, 0%, 99.0%)',\n 'hsl(0, 0%, 97.3%)',\n 'hsl(0, 0%, 95.1%)',\n 'hsl(0, 0%, 93.0%)',\n 'hsl(0, 0%, 90.9%)',\n 'hsl(0, 0%, 80.0%)',\n 'hsl(0, 0%, 56.1%)',\n 'hsl(0, 0%, 52.3%)',\n 'hsl(0, 0%, 43.5%)',\n 'hsl(0, 0%, 9.0%)',\n darkTransparent,\n ],\n}\n\nconst colorScale = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12,\n}\n\n// we can use subset of our template as a \"skip\" so it doesn't get adjusted with masks\nconst skip = {\n ...colorScale,\n shadowColor: 1,\n shadowColorHover: 1,\n shadowColorPress: 2,\n shadowColorFocus: 2,\n}\n\n// templates use the palette and specify index\n// negative goes backwards from end so -1 is the last item\nconst template = {\n ...skip,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 1,\n backgroundFocus: 2,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 4,\n borderColorHover: 5,\n borderColorPress: 3,\n borderColorFocus: 4,\n placeholderColor: -4,\n}\n\nconst lightShadowColor = 'rgba(0,0,0,0.02)'\nconst lightShadowColorStrong = 'rgba(0,0,0,0.066)'\nconst darkShadowColor = 'rgba(0,0,0,0.2)'\nconst darkShadowColorStrong = 'rgba(0,0,0,0.3)'\n\nconst lightShadows = {\n shadowColor: lightShadowColorStrong,\n shadowColorHover: lightShadowColorStrong,\n shadowColorPress: lightShadowColor,\n shadowColorFocus: lightShadowColor,\n}\n\nconst darkShadows = {\n shadowColor: darkShadowColorStrong,\n shadowColorHover: darkShadowColorStrong,\n shadowColorPress: darkShadowColor,\n shadowColorFocus: darkShadowColor,\n}\n\nconst lightTemplate = {\n ...template,\n borderColor: 3,\n borderColorHover: 4,\n borderColorPress: 2,\n borderColorFocus: 3,\n ...lightShadows,\n}\n\nconst darkTemplate = { ...template, ...darkShadows }\n\nconst light = createTheme(palettes.light, lightTemplate, {\n nonInheritedValues: lightColors,\n})\n\nconst dark = createTheme(palettes.dark, darkTemplate, { nonInheritedValues: darkColors })\n\ntype Theme = { [key in keyof typeof lightTemplate]: string }\n\nconst baseThemes: {\n light: Theme\n dark: Theme\n} = {\n light,\n dark,\n}\n\n// avoid transparent ends\nconst max = palettes.dark.length - 1\nconst masks = {\n weaker: createWeakenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger: createStrengthenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger2: createStrengthenMask({\n by: 2,\n min: 1,\n max,\n }),\n}\n\nconst allThemes = addChildren(baseThemes, (name, themeIn) => {\n const theme = themeIn as Theme\n const isLight = name === 'light'\n const inverseName = isLight ? 'dark' : 'light'\n const inverseTheme = baseThemes[inverseName]\n const transparent = (hsl: string, opacity = 0) =>\n hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`)\n\n // setup colorThemes and their inverses\n const [colorThemes, inverseColorThemes] = [\n colorTokens[name],\n colorTokens[inverseName],\n ].map((colorSet) => {\n return Object.fromEntries(\n Object.keys(colorSet).map((color) => {\n const colorPalette = Object.values(colorSet[color as ColorName])\n // were re-ordering these\n const [head, tail] = [\n colorPalette.slice(0, 6),\n colorPalette.slice(colorPalette.length - 5),\n ]\n // add our transparent colors first/last\n // and make sure the last (foreground) color is white/black rather than colorful\n // this is mostly for consistency with the older theme-base\n const palette = [\n transparent(colorPalette[0]),\n ...head,\n ...tail,\n theme.color,\n transparent(colorPalette[colorPalette.length - 1]),\n ]\n const colorTheme = createTheme(palette, isLight ? lightTemplate : darkTemplate)\n return [color, colorTheme]\n })\n ) as Record<ColorName, Theme>\n })\n\n const allColorThemes = addChildren(colorThemes, (colorName, colorTheme) => {\n const inverse = inverseColorThemes[colorName]\n return {\n ...getAltThemes(colorTheme as any, inverse as any),\n ...getComponentThemes(colorTheme as any, inverse as any),\n }\n })\n\n return {\n ...getAltThemes(theme, inverseTheme),\n ...getComponentThemes(theme, inverseTheme),\n ...allColorThemes,\n }\n\n function getComponentThemes(theme: Theme, inverse: Theme) {\n const stronger1 = applyMask(theme, masks.stronger, { skip })\n const stronger2 = applyMask(stronger1, masks.stronger, { skip })\n const inverse1 = applyMask(inverse, masks.weaker, { skip })\n const inverse2 = applyMask(inverse1, masks.weaker, { skip })\n return {\n Card: stronger1,\n Button: stronger2,\n DrawerFrame: stronger1,\n SliderTrack: theme,\n SliderTrackActive: stronger2,\n SliderThumb: inverse1,\n Progress: stronger1,\n ProgressIndicator: inverse,\n Switch: stronger2,\n SwitchThumb: inverse2,\n TooltipArrow: stronger1,\n TooltipContent: stronger2,\n }\n }\n\n function getAltThemes(theme: Theme, inverse: Theme) {\n const alt1 = applyMask(theme, masks.weaker, { skip })\n const alt2 = applyMask(alt1, masks.weaker, { skip })\n const active = applyMask(theme, masks.stronger2, { skip })\n return addChildren({ alt1, alt2, active }, (name, theme) => {\n return getComponentThemes(theme as any, inverse)\n })\n }\n})\n\nexport const themes = {\n ...allThemes,\n // bring back the full type (the rest use a subset)\n light,\n dark,\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAMO;AAEP,oBAAqD;AAIrD,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAGxB,MAAM,WAAW;AAAA,EACf,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,MAAM,aAAa;AAAA,EACjB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX;AAGA,MAAM,OAAO;AAAA,EACX,GAAG;AAAA,EACH,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AACpB;AAIA,MAAM,WAAW;AAAA,EACf,GAAG;AAAA;AAAA;AA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, 99.0%)",
33
33
  "hsl(0, 0%, 97.3%)",
34
34
  "hsl(0, 0%, 95.1%)",
@@ -80,16 +80,16 @@ const template = {
80
80
  colorPress: -1,
81
81
  colorFocus: -2,
82
82
  colorTransparent: -0,
83
- borderColor: 3,
84
- borderColorHover: 4,
85
- borderColorPress: 2,
86
- borderColorFocus: 3,
83
+ borderColor: 4,
84
+ borderColorHover: 5,
85
+ borderColorPress: 3,
86
+ borderColorFocus: 4,
87
87
  placeholderColor: -4
88
88
  };
89
- const lightShadowColor = "rgba(0,0,0,0.15)";
90
- const lightShadowColorStrong = "rgba(0,0,0,0.2)";
91
- const darkShadowColor = "rgba(0,0,0,0.3)";
92
- const darkShadowColorStrong = "rgba(0,0,0,0.45)";
89
+ const lightShadowColor = "rgba(0,0,0,0.02)";
90
+ const lightShadowColorStrong = "rgba(0,0,0,0.066)";
91
+ const darkShadowColor = "rgba(0,0,0,0.2)";
92
+ const darkShadowColorStrong = "rgba(0,0,0,0.3)";
93
93
  const lightShadows = {
94
94
  shadowColor: lightShadowColorStrong,
95
95
  shadowColorHover: lightShadowColorStrong,
@@ -104,6 +104,10 @@ const darkShadows = {
104
104
  };
105
105
  const lightTemplate = {
106
106
  ...template,
107
+ borderColor: 3,
108
+ borderColorHover: 4,
109
+ borderColorPress: 2,
110
+ borderColorFocus: 3,
107
111
  ...lightShadows
108
112
  };
109
113
  const darkTemplate = { ...template, ...darkShadows };
@@ -146,20 +150,18 @@ const allThemes = addChildren(baseThemes, (name, themeIn) => {
146
150
  return Object.fromEntries(
147
151
  Object.keys(colorSet).map((color) => {
148
152
  const colorPalette = Object.values(colorSet[color]);
149
- const first6 = colorPalette.slice(0, 6);
150
- const last5 = colorPalette.slice(colorPalette.length - 5);
151
- const shadows = isLight ? lightShadows : darkShadows;
153
+ const [head, tail] = [
154
+ colorPalette.slice(0, 6),
155
+ colorPalette.slice(colorPalette.length - 5)
156
+ ];
152
157
  const palette = [
153
158
  transparent(colorPalette[0]),
154
- ...first6,
155
- ...last5,
159
+ ...head,
160
+ ...tail,
156
161
  theme.color,
157
162
  transparent(colorPalette[colorPalette.length - 1])
158
163
  ];
159
- const colorTheme = createTheme(palette, {
160
- ...template,
161
- ...shadows
162
- });
164
+ const colorTheme = createTheme(palette, isLight ? lightTemplate : darkTemplate);
163
165
  return [color, colorTheme];
164
166
  })
165
167
  );
@@ -182,6 +184,7 @@ const allThemes = addChildren(baseThemes, (name, themeIn) => {
182
184
  const inverse1 = applyMask(inverse, masks.weaker, { skip });
183
185
  const inverse2 = applyMask(inverse1, masks.weaker, { skip });
184
186
  return {
187
+ Card: stronger1,
185
188
  Button: stronger2,
186
189
  DrawerFrame: stronger1,
187
190
  SliderTrack: theme2,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/themes.tsx"],
4
- "sourcesContent": ["import {\n addChildren,\n applyMask,\n createStrengthenMask,\n createTheme,\n createWeakenMask,\n} from '@tamagui/create-theme'\n\nimport { colorTokens, darkColors, lightColors } from './tokens'\n\ntype ColorName = keyof typeof colorTokens.dark\n\nconst lightTransparent = 'rgba(255,255,255,0)'\nconst darkTransparent = 'rgba(10,10,10,0)'\n\n// background => foreground\nconst palettes = {\n dark: [\n darkTransparent,\n '#090909',\n '#151515',\n '#191919',\n '#232323',\n '#282828',\n '#323232',\n '#424242',\n '#494949',\n '#545454',\n '#626262',\n '#a5a5a5',\n '#fff',\n lightTransparent,\n ],\n light: [\n lightTransparent,\n '#fff',\n '#f4f4f4',\n 'hsl(0, 0%, 99.0%)',\n 'hsl(0, 0%, 97.3%)',\n 'hsl(0, 0%, 95.1%)',\n 'hsl(0, 0%, 93.0%)',\n 'hsl(0, 0%, 90.9%)',\n 'hsl(0, 0%, 80.0%)',\n 'hsl(0, 0%, 56.1%)',\n 'hsl(0, 0%, 52.3%)',\n 'hsl(0, 0%, 43.5%)',\n 'hsl(0, 0%, 9.0%)',\n darkTransparent,\n ],\n}\n\nconst colorScale = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12,\n}\n\n// we can use subset of our template as a \"skip\" so it doesn't get adjusted with masks\nconst skip = {\n ...colorScale,\n shadowColor: 1,\n shadowColorHover: 1,\n shadowColorPress: 2,\n shadowColorFocus: 2,\n}\n\n// templates use the palette and specify index\n// negative goes backwards from end so -1 is the last item\nconst template = {\n ...skip,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 1,\n backgroundFocus: 2,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 3,\n borderColorHover: 4,\n borderColorPress: 2,\n borderColorFocus: 3,\n placeholderColor: -4,\n}\n\nconst lightShadowColor = 'rgba(0,0,0,0.15)'\nconst lightShadowColorStrong = 'rgba(0,0,0,0.2)'\nconst darkShadowColor = 'rgba(0,0,0,0.3)'\nconst darkShadowColorStrong = 'rgba(0,0,0,0.45)'\n\nconst lightShadows = {\n shadowColor: lightShadowColorStrong,\n shadowColorHover: lightShadowColorStrong,\n shadowColorPress: lightShadowColor,\n shadowColorFocus: lightShadowColor,\n}\n\nconst darkShadows = {\n shadowColor: darkShadowColorStrong,\n shadowColorHover: darkShadowColorStrong,\n shadowColorPress: darkShadowColor,\n shadowColorFocus: darkShadowColor,\n}\n\nconst lightTemplate = {\n ...template,\n ...lightShadows,\n}\n\nconst darkTemplate = { ...template, ...darkShadows }\n\nconst light = createTheme(palettes.light, lightTemplate, {\n nonInheritedValues: lightColors,\n})\n\nconst dark = createTheme(palettes.dark, darkTemplate, { nonInheritedValues: darkColors })\n\ntype Theme = { [key in keyof typeof lightTemplate]: string }\n\nconst baseThemes: {\n light: Theme\n dark: Theme\n} = {\n light,\n dark,\n}\n\n// avoid transparent ends\nconst max = palettes.dark.length - 1\nconst masks = {\n weaker: createWeakenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger: createStrengthenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger2: createStrengthenMask({\n by: 2,\n min: 1,\n max,\n }),\n}\n\nconst allThemes = addChildren(baseThemes, (name, themeIn) => {\n const theme = themeIn as Theme\n const isLight = name === 'light'\n const inverseName = isLight ? 'dark' : 'light'\n const inverseTheme = baseThemes[inverseName]\n const transparent = (hsl: string, opacity = 0) =>\n hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`)\n\n // setup colorThemes and their inverses\n const [colorThemes, inverseColorThemes] = [\n colorTokens[name],\n colorTokens[inverseName],\n ].map((colorSet) => {\n return Object.fromEntries(\n Object.keys(colorSet).map((color) => {\n const colorPalette = Object.values(colorSet[color as ColorName])\n // we want a much lighter text color by default so swap them around a bit\n const first6 = colorPalette.slice(0, 6)\n const last5 = colorPalette.slice(colorPalette.length - 5)\n const shadows = isLight ? lightShadows : darkShadows\n const palette = [\n transparent(colorPalette[0]),\n ...first6,\n ...last5,\n theme.color,\n transparent(colorPalette[colorPalette.length - 1]),\n ]\n const colorTheme = createTheme(palette, {\n ...template,\n ...shadows,\n })\n return [color, colorTheme]\n })\n ) as Record<ColorName, Theme>\n })\n\n const allColorThemes = addChildren(colorThemes, (colorName, colorTheme) => {\n const inverse = inverseColorThemes[colorName]\n return {\n ...getAltThemes(colorTheme as any, inverse as any),\n ...getComponentThemes(colorTheme as any, inverse as any),\n }\n })\n\n return {\n ...getAltThemes(theme, inverseTheme),\n ...getComponentThemes(theme, inverseTheme),\n ...allColorThemes,\n }\n\n function getComponentThemes(theme: Theme, inverse: Theme) {\n const stronger1 = applyMask(theme, masks.stronger, { skip })\n const stronger2 = applyMask(stronger1, masks.stronger, { skip })\n const inverse1 = applyMask(inverse, masks.weaker, { skip })\n const inverse2 = applyMask(inverse1, masks.weaker, { skip })\n return {\n Button: stronger2,\n DrawerFrame: stronger1,\n SliderTrack: theme,\n SliderTrackActive: stronger2,\n SliderThumb: inverse1,\n Progress: stronger1,\n ProgressIndicator: inverse,\n Switch: stronger2,\n SwitchThumb: inverse2,\n TooltipArrow: stronger1,\n TooltipContent: stronger2,\n }\n }\n\n function getAltThemes(theme: Theme, inverse: Theme) {\n const alt1 = applyMask(theme, masks.weaker, { skip })\n const alt2 = applyMask(alt1, masks.weaker, { skip })\n const active = applyMask(theme, masks.stronger2, { skip })\n return addChildren({ alt1, alt2, active }, (name, theme) => {\n return getComponentThemes(theme as any, inverse)\n })\n }\n})\n\nexport const themes = {\n ...allThemes,\n // bring back the full type (the rest use a subset)\n light,\n dark,\n}\n"],
5
- "mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,aAAa,YAAY,mBAAmB;AAIrD,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAGxB,MAAM,WAAW;AAAA,EACf,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,MAAM,aAAa;AAAA,EACjB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;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me,\n createWeakenMask,\n} from '@tamagui/create-theme'\n\nimport { colorTokens, darkColors, lightColors } from './tokens'\n\ntype ColorName = keyof typeof colorTokens.dark\n\nconst lightTransparent = 'rgba(255,255,255,0)'\nconst darkTransparent = 'rgba(10,10,10,0)'\n\n// background => foreground\nconst palettes = {\n dark: [\n darkTransparent,\n '#090909',\n '#151515',\n '#191919',\n '#232323',\n '#282828',\n '#323232',\n '#424242',\n '#494949',\n '#545454',\n '#626262',\n '#a5a5a5',\n '#fff',\n lightTransparent,\n ],\n light: [\n lightTransparent,\n '#fff',\n '#f9f9f9',\n 'hsl(0, 0%, 99.0%)',\n 'hsl(0, 0%, 97.3%)',\n 'hsl(0, 0%, 95.1%)',\n 'hsl(0, 0%, 93.0%)',\n 'hsl(0, 0%, 90.9%)',\n 'hsl(0, 0%, 80.0%)',\n 'hsl(0, 0%, 56.1%)',\n 'hsl(0, 0%, 52.3%)',\n 'hsl(0, 0%, 43.5%)',\n 'hsl(0, 0%, 9.0%)',\n darkTransparent,\n ],\n}\n\nconst colorScale = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12,\n}\n\n// we can use subset of our template as a \"skip\" so it doesn't get adjusted with masks\nconst skip = {\n ...colorScale,\n shadowColor: 1,\n shadowColorHover: 1,\n shadowColorPress: 2,\n shadowColorFocus: 2,\n}\n\n// templates use the palette and specify index\n// negative goes backwards from end so -1 is the last item\nconst template = {\n ...skip,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 1,\n backgroundFocus: 2,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 4,\n borderColorHover: 5,\n borderColorPress: 3,\n borderColorFocus: 4,\n placeholderColor: -4,\n}\n\nconst lightShadowColor = 'rgba(0,0,0,0.02)'\nconst lightShadowColorStrong = 'rgba(0,0,0,0.066)'\nconst darkShadowColor = 'rgba(0,0,0,0.2)'\nconst darkShadowColorStrong = 'rgba(0,0,0,0.3)'\n\nconst lightShadows = {\n shadowColor: lightShadowColorStrong,\n shadowColorHover: lightShadowColorStrong,\n shadowColorPress: lightShadowColor,\n shadowColorFocus: lightShadowColor,\n}\n\nconst darkShadows = {\n shadowColor: darkShadowColorStrong,\n shadowColorHover: darkShadowColorStrong,\n shadowColorPress: darkShadowColor,\n shadowColorFocus: darkShadowColor,\n}\n\nconst lightTemplate = {\n ...template,\n borderColor: 3,\n borderColorHover: 4,\n borderColorPress: 2,\n borderColorFocus: 3,\n ...lightShadows,\n}\n\nconst darkTemplate = { ...template, ...darkShadows }\n\nconst light = createTheme(palettes.light, lightTemplate, {\n nonInheritedValues: lightColors,\n})\n\nconst dark = createTheme(palettes.dark, darkTemplate, { nonInheritedValues: darkColors })\n\ntype Theme = { [key in keyof typeof lightTemplate]: string }\n\nconst baseThemes: {\n light: Theme\n dark: Theme\n} = {\n light,\n dark,\n}\n\n// avoid transparent ends\nconst max = palettes.dark.length - 1\nconst masks = {\n weaker: createWeakenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger: createStrengthenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger2: createStrengthenMask({\n by: 2,\n min: 1,\n max,\n }),\n}\n\nconst allThemes = addChildren(baseThemes, (name, themeIn) => {\n const theme = themeIn as Theme\n const isLight = name === 'light'\n const inverseName = isLight ? 'dark' : 'light'\n const inverseTheme = baseThemes[inverseName]\n const transparent = (hsl: string, opacity = 0) =>\n hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`)\n\n // setup colorThemes and their inverses\n const [colorThemes, inverseColorThemes] = [\n colorTokens[name],\n colorTokens[inverseName],\n ].map((colorSet) => {\n return Object.fromEntries(\n Object.keys(colorSet).map((color) => {\n const colorPalette = Object.values(colorSet[color as ColorName])\n // were re-ordering these\n const [head, tail] = [\n colorPalette.slice(0, 6),\n colorPalette.slice(colorPalette.length - 5),\n ]\n // add our transparent colors first/last\n // and make sure the last (foreground) color is white/black rather than colorful\n // this is mostly for consistency with the older theme-base\n const palette = [\n transparent(colorPalette[0]),\n ...head,\n ...tail,\n theme.color,\n transparent(colorPalette[colorPalette.length - 1]),\n ]\n const colorTheme = createTheme(palette, isLight ? lightTemplate : darkTemplate)\n return [color, colorTheme]\n })\n ) as Record<ColorName, Theme>\n })\n\n const allColorThemes = addChildren(colorThemes, (colorName, colorTheme) => {\n const inverse = inverseColorThemes[colorName]\n return {\n ...getAltThemes(colorTheme as any, inverse as any),\n ...getComponentThemes(colorTheme as any, inverse as any),\n }\n })\n\n return {\n ...getAltThemes(theme, inverseTheme),\n ...getComponentThemes(theme, inverseTheme),\n ...allColorThemes,\n }\n\n function getComponentThemes(theme: Theme, inverse: Theme) {\n const stronger1 = applyMask(theme, masks.stronger, { skip })\n const stronger2 = applyMask(stronger1, masks.stronger, { skip })\n const inverse1 = applyMask(inverse, masks.weaker, { skip })\n const inverse2 = applyMask(inverse1, masks.weaker, { skip })\n return {\n Card: stronger1,\n Button: stronger2,\n DrawerFrame: stronger1,\n SliderTrack: theme,\n SliderTrackActive: stronger2,\n SliderThumb: inverse1,\n Progress: stronger1,\n ProgressIndicator: inverse,\n Switch: stronger2,\n SwitchThumb: inverse2,\n TooltipArrow: stronger1,\n TooltipContent: stronger2,\n }\n }\n\n function getAltThemes(theme: Theme, inverse: Theme) {\n const alt1 = applyMask(theme, masks.weaker, { skip })\n const alt2 = applyMask(alt1, masks.weaker, { skip })\n const active = applyMask(theme, masks.stronger2, { skip })\n return addChildren({ alt1, alt2, active }, (name, theme) => {\n return getComponentThemes(theme as any, inverse)\n })\n }\n})\n\nexport const themes = {\n ...allThemes,\n // bring back the full type (the rest use a subset)\n light,\n d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U,SAAS,MAAM,QAAQ,EAAE,KAAK,CAAC;AAC1D,UAAM,WAAW,UAAU,UAAU,MAAM,QAAQ,EAAE,KAAK,CAAC;AAC3D,WAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,aAAaA;AAAA,MACb,mBAAmB;AAAA,MACnB,aAAa;AAAA,MACb,UAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,cAAc;AAAA,MACd,gBAAgB;AAAA,IAClB;AAAA,EACF;AAEA,WAAS,aAAaA,QAAc,SAAgB;AAClD,UAAM,OAAO,UAAUA,QAAO,MAAM,QAAQ,EAAE,KAAK,CAAC;AACpD,UAAM,OAAO,UAAU,MAAM,MAAM,QAAQ,EAAE,KAAK,CAAC;AACnD,UAAM,SAAS,UAAUA,QAAO,MAAM,WAAW,EAAE,KAAK,CAAC;AACzD,WAAO,YAAY,EAAE,MAAM,MAAM,OAAO,GAAG,CAACC,OAAMD,WAAU;AAC1D,aAAO,mBAAmBA,QAAc,OAAO;AAAA,IACjD,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM,SAAS;AAAA,EACpB,GAAG;AAAA;AAAA,EAEH;AAAA,EACA;AACF;",
6
6
  "names": ["theme", "name"]
7
7
  }
@@ -28,7 +28,7 @@ const palettes = {
28
28
  light: [
29
29
  lightTransparent,
30
30
  "#fff",
31
- "#f4f4f4",
31
+ "#f9f9f9",
32
32
  "hsl(0, 0%, 99.0%)",
33
33
  "hsl(0, 0%, 97.3%)",
34
34
  "hsl(0, 0%, 95.1%)",
@@ -80,16 +80,16 @@ const template = {
80
80
  colorPress: -1,
81
81
  colorFocus: -2,
82
82
  colorTransparent: -0,
83
- borderColor: 3,
84
- borderColorHover: 4,
85
- borderColorPress: 2,
86
- borderColorFocus: 3,
83
+ borderColor: 4,
84
+ borderColorHover: 5,
85
+ borderColorPress: 3,
86
+ borderColorFocus: 4,
87
87
  placeholderColor: -4
88
88
  };
89
- const lightShadowColor = "rgba(0,0,0,0.15)";
90
- const lightShadowColorStrong = "rgba(0,0,0,0.2)";
91
- const darkShadowColor = "rgba(0,0,0,0.3)";
92
- const darkShadowColorStrong = "rgba(0,0,0,0.45)";
89
+ const lightShadowColor = "rgba(0,0,0,0.02)";
90
+ const lightShadowColorStrong = "rgba(0,0,0,0.066)";
91
+ const darkShadowColor = "rgba(0,0,0,0.2)";
92
+ const darkShadowColorStrong = "rgba(0,0,0,0.3)";
93
93
  const lightShadows = {
94
94
  shadowColor: lightShadowColorStrong,
95
95
  shadowColorHover: lightShadowColorStrong,
@@ -104,6 +104,10 @@ const darkShadows = {
104
104
  };
105
105
  const lightTemplate = {
106
106
  ...template,
107
+ borderColor: 3,
108
+ borderColorHover: 4,
109
+ borderColorPress: 2,
110
+ borderColorFocus: 3,
107
111
  ...lightShadows
108
112
  };
109
113
  const darkTemplate = { ...template, ...darkShadows };
@@ -146,20 +150,18 @@ const allThemes = addChildren(baseThemes, (name, themeIn) => {
146
150
  return Object.fromEntries(
147
151
  Object.keys(colorSet).map((color) => {
148
152
  const colorPalette = Object.values(colorSet[color]);
149
- const first6 = colorPalette.slice(0, 6);
150
- const last5 = colorPalette.slice(colorPalette.length - 5);
151
- const shadows = isLight ? lightShadows : darkShadows;
153
+ const [head, tail] = [
154
+ colorPalette.slice(0, 6),
155
+ colorPalette.slice(colorPalette.length - 5)
156
+ ];
152
157
  const palette = [
153
158
  transparent(colorPalette[0]),
154
- ...first6,
155
- ...last5,
159
+ ...head,
160
+ ...tail,
156
161
  theme.color,
157
162
  transparent(colorPalette[colorPalette.length - 1])
158
163
  ];
159
- const colorTheme = createTheme(palette, {
160
- ...template,
161
- ...shadows
162
- });
164
+ const colorTheme = createTheme(palette, isLight ? lightTemplate : darkTemplate);
163
165
  return [color, colorTheme];
164
166
  })
165
167
  );
@@ -182,6 +184,7 @@ const allThemes = addChildren(baseThemes, (name, themeIn) => {
182
184
  const inverse1 = applyMask(inverse, masks.weaker, { skip });
183
185
  const inverse2 = applyMask(inverse1, masks.weaker, { skip });
184
186
  return {
187
+ Card: stronger1,
185
188
  Button: stronger2,
186
189
  DrawerFrame: stronger1,
187
190
  SliderTrack: theme2,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/themes.tsx"],
4
- "sourcesContent": ["import {\n addChildren,\n applyMask,\n createStrengthenMask,\n createTheme,\n createWeakenMask,\n} from '@tamagui/create-theme'\n\nimport { colorTokens, darkColors, lightColors } from './tokens'\n\ntype ColorName = keyof typeof colorTokens.dark\n\nconst lightTransparent = 'rgba(255,255,255,0)'\nconst darkTransparent = 'rgba(10,10,10,0)'\n\n// background => foreground\nconst palettes = {\n dark: [\n darkTransparent,\n '#090909',\n '#151515',\n '#191919',\n '#232323',\n '#282828',\n '#323232',\n '#424242',\n '#494949',\n '#545454',\n '#626262',\n '#a5a5a5',\n '#fff',\n lightTransparent,\n ],\n light: [\n lightTransparent,\n '#fff',\n '#f4f4f4',\n 'hsl(0, 0%, 99.0%)',\n 'hsl(0, 0%, 97.3%)',\n 'hsl(0, 0%, 95.1%)',\n 'hsl(0, 0%, 93.0%)',\n 'hsl(0, 0%, 90.9%)',\n 'hsl(0, 0%, 80.0%)',\n 'hsl(0, 0%, 56.1%)',\n 'hsl(0, 0%, 52.3%)',\n 'hsl(0, 0%, 43.5%)',\n 'hsl(0, 0%, 9.0%)',\n darkTransparent,\n ],\n}\n\nconst colorScale = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12,\n}\n\n// we can use subset of our template as a \"skip\" so it doesn't get adjusted with masks\nconst skip = {\n ...colorScale,\n shadowColor: 1,\n shadowColorHover: 1,\n shadowColorPress: 2,\n shadowColorFocus: 2,\n}\n\n// templates use the palette and specify index\n// negative goes backwards from end so -1 is the last item\nconst template = {\n ...skip,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 1,\n backgroundFocus: 2,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 3,\n borderColorHover: 4,\n borderColorPress: 2,\n borderColorFocus: 3,\n placeholderColor: -4,\n}\n\nconst lightShadowColor = 'rgba(0,0,0,0.15)'\nconst lightShadowColorStrong = 'rgba(0,0,0,0.2)'\nconst darkShadowColor = 'rgba(0,0,0,0.3)'\nconst darkShadowColorStrong = 'rgba(0,0,0,0.45)'\n\nconst lightShadows = {\n shadowColor: lightShadowColorStrong,\n shadowColorHover: lightShadowColorStrong,\n shadowColorPress: lightShadowColor,\n shadowColorFocus: lightShadowColor,\n}\n\nconst darkShadows = {\n shadowColor: darkShadowColorStrong,\n shadowColorHover: darkShadowColorStrong,\n shadowColorPress: darkShadowColor,\n shadowColorFocus: darkShadowColor,\n}\n\nconst lightTemplate = {\n ...template,\n ...lightShadows,\n}\n\nconst darkTemplate = { ...template, ...darkShadows }\n\nconst light = createTheme(palettes.light, lightTemplate, {\n nonInheritedValues: lightColors,\n})\n\nconst dark = createTheme(palettes.dark, darkTemplate, { nonInheritedValues: darkColors })\n\ntype Theme = { [key in keyof typeof lightTemplate]: string }\n\nconst baseThemes: {\n light: Theme\n dark: Theme\n} = {\n light,\n dark,\n}\n\n// avoid transparent ends\nconst max = palettes.dark.length - 1\nconst masks = {\n weaker: createWeakenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger: createStrengthenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger2: createStrengthenMask({\n by: 2,\n min: 1,\n max,\n }),\n}\n\nconst allThemes = addChildren(baseThemes, (name, themeIn) => {\n const theme = themeIn as Theme\n const isLight = name === 'light'\n const inverseName = isLight ? 'dark' : 'light'\n const inverseTheme = baseThemes[inverseName]\n const transparent = (hsl: string, opacity = 0) =>\n hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`)\n\n // setup colorThemes and their inverses\n const [colorThemes, inverseColorThemes] = [\n colorTokens[name],\n colorTokens[inverseName],\n ].map((colorSet) => {\n return Object.fromEntries(\n Object.keys(colorSet).map((color) => {\n const colorPalette = Object.values(colorSet[color as ColorName])\n // we want a much lighter text color by default so swap them around a bit\n const first6 = colorPalette.slice(0, 6)\n const last5 = colorPalette.slice(colorPalette.length - 5)\n const shadows = isLight ? lightShadows : darkShadows\n const palette = [\n transparent(colorPalette[0]),\n ...first6,\n ...last5,\n theme.color,\n transparent(colorPalette[colorPalette.length - 1]),\n ]\n const colorTheme = createTheme(palette, {\n ...template,\n ...shadows,\n })\n return [color, colorTheme]\n })\n ) as Record<ColorName, Theme>\n })\n\n const allColorThemes = addChildren(colorThemes, (colorName, colorTheme) => {\n const inverse = inverseColorThemes[colorName]\n return {\n ...getAltThemes(colorTheme as any, inverse as any),\n ...getComponentThemes(colorTheme as any, inverse as any),\n }\n })\n\n return {\n ...getAltThemes(theme, inverseTheme),\n ...getComponentThemes(theme, inverseTheme),\n ...allColorThemes,\n }\n\n function getComponentThemes(theme: Theme, inverse: Theme) {\n const stronger1 = applyMask(theme, masks.stronger, { skip })\n const stronger2 = applyMask(stronger1, masks.stronger, { skip })\n const inverse1 = applyMask(inverse, masks.weaker, { skip })\n const inverse2 = applyMask(inverse1, masks.weaker, { skip })\n return {\n Button: stronger2,\n DrawerFrame: stronger1,\n SliderTrack: theme,\n SliderTrackActive: stronger2,\n SliderThumb: inverse1,\n Progress: stronger1,\n ProgressIndicator: inverse,\n Switch: stronger2,\n SwitchThumb: inverse2,\n TooltipArrow: stronger1,\n TooltipContent: stronger2,\n }\n }\n\n function getAltThemes(theme: Theme, inverse: Theme) {\n const alt1 = applyMask(theme, masks.weaker, { skip })\n const alt2 = applyMask(alt1, masks.weaker, { skip })\n const active = applyMask(theme, masks.stronger2, { skip })\n return addChildren({ alt1, alt2, active }, (name, theme) => {\n return getComponentThemes(theme as any, inverse)\n })\n }\n})\n\nexport const themes = {\n ...allThemes,\n // bring back the full type (the rest use a subset)\n light,\n dark,\n}\n"],
5
- "mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,aAAa,YAAY,mBAAmB;AAIrD,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAGxB,MAAM,WAAW;AAAA,EACf,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,MAAM,aAAa;AAAA,EACjB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX;AAGA,MAAM,OAAO;AAAA,EACX,GAAG;AAAA,EACH,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AACpB;AAIA,MAAM,WAAW;AAAA,EACf,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,EAKH,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;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,UAAU,EAAE,KAAK,CAAC;AAC3D,UAAM,YAAY,UAAU,WAAW,MAAM,UAAU,EAAE,KAAK,CAAC;AAC/D,UAAM,WAAW,UAAU,SAAS,MAAM,QAAQ,EAAE,KAAK,CAAC;AAC1D,UAAM,WAAW,UAAU,UAAU,MAAM,QAAQ,EAAE,KAAK,CAAC;AAC3D,WAAO;AAAA,MACL,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,aAAaA;AAAA,MACb,mBAAmB;AAAA,MACnB,aAAa;AAAA,MACb,UAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,cAAc;AAAA,MACd,gBAAgB;AAAA,IAClB;AAAA,EACF;AAEA,WAAS,aAAaA,QAAc,SAAgB;AAClD,UAAM,OAAO,UAAUA,QAAO,MAAM,QAAQ,EAAE,KAAK,CAAC;AACpD,UAAM,OAAO,UAAU,MAAM,MAAM,QAAQ,EAAE,KAAK,CAAC;AACnD,UAAM,SAAS,UAAUA,QAAO,MAAM,WAAW,EAAE,KAAK,CAAC;AACzD,WAAO,YAAY,EAAE,MAAM,MAAM,OAAO,GAAG,CAACC,OAAMD,WAAU;AAC1D,aAAO,mBAAmBA,QAAc,OAAO;AAAA,IACjD,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM,SAAS;AAAA,EACpB,GAAG;AAAA;AAAA,EAEH;AAAA,EACA;AACF;",
4
+ "sourcesContent": ["import {\n addChildren,\n applyMask,\n createStrengthenMask,\n createTheme,\n createWeakenMask,\n} from '@tamagui/create-theme'\n\nimport { colorTokens, darkColors, lightColors } from './tokens'\n\ntype ColorName = keyof typeof colorTokens.dark\n\nconst lightTransparent = 'rgba(255,255,255,0)'\nconst darkTransparent = 'rgba(10,10,10,0)'\n\n// background => foreground\nconst palettes = {\n dark: [\n darkTransparent,\n '#090909',\n '#151515',\n '#191919',\n '#232323',\n '#282828',\n '#323232',\n '#424242',\n '#494949',\n '#545454',\n '#626262',\n '#a5a5a5',\n '#fff',\n lightTransparent,\n ],\n light: [\n lightTransparent,\n '#fff',\n '#f9f9f9',\n 'hsl(0, 0%, 99.0%)',\n 'hsl(0, 0%, 97.3%)',\n 'hsl(0, 0%, 95.1%)',\n 'hsl(0, 0%, 93.0%)',\n 'hsl(0, 0%, 90.9%)',\n 'hsl(0, 0%, 80.0%)',\n 'hsl(0, 0%, 56.1%)',\n 'hsl(0, 0%, 52.3%)',\n 'hsl(0, 0%, 43.5%)',\n 'hsl(0, 0%, 9.0%)',\n darkTransparent,\n ],\n}\n\nconst colorScale = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12,\n}\n\n// we can use subset of our template as a \"skip\" so it doesn't get adjusted with masks\nconst skip = {\n ...colorScale,\n shadowColor: 1,\n shadowColorHover: 1,\n shadowColorPress: 2,\n shadowColorFocus: 2,\n}\n\n// templates use the palette and specify index\n// negative goes backwards from end so -1 is the last item\nconst template = {\n ...skip,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 1,\n backgroundFocus: 2,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 4,\n borderColorHover: 5,\n borderColorPress: 3,\n borderColorFocus: 4,\n placeholderColor: -4,\n}\n\nconst lightShadowColor = 'rgba(0,0,0,0.02)'\nconst lightShadowColorStrong = 'rgba(0,0,0,0.066)'\nconst darkShadowColor = 'rgba(0,0,0,0.2)'\nconst darkShadowColorStrong = 'rgba(0,0,0,0.3)'\n\nconst lightShadows = {\n shadowColor: lightShadowColorStrong,\n shadowColorHover: lightShadowColorStrong,\n shadowColorPress: lightShadowColor,\n shadowColorFocus: lightShadowColor,\n}\n\nconst darkShadows = {\n shadowColor: darkShadowColorStrong,\n shadowColorHover: darkShadowColorStrong,\n shadowColorPress: darkShadowColor,\n shadowColorFocus: darkShadowColor,\n}\n\nconst lightTemplate = {\n ...template,\n borderColor: 3,\n borderColorHover: 4,\n borderColorPress: 2,\n borderColorFocus: 3,\n ...lightShadows,\n}\n\nconst darkTemplate = { ...template, ...darkShadows }\n\nconst light = createTheme(palettes.light, lightTemplate, {\n nonInheritedValues: lightColors,\n})\n\nconst dark = createTheme(palettes.dark, darkTemplate, { nonInheritedValues: darkColors })\n\ntype Theme = { [key in keyof typeof lightTemplate]: string }\n\nconst baseThemes: {\n light: Theme\n dark: Theme\n} = {\n light,\n dark,\n}\n\n// avoid transparent ends\nconst max = palettes.dark.length - 1\nconst masks = {\n weaker: createWeakenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger: createStrengthenMask({\n by: 1,\n min: 1,\n max,\n }),\n stronger2: createStrengthenMask({\n by: 2,\n min: 1,\n max,\n }),\n}\n\nconst allThemes = addChildren(baseThemes, (name, themeIn) => {\n const theme = themeIn as Theme\n const isLight = name === 'light'\n const inverseName = isLight ? 'dark' : 'light'\n const inverseTheme = baseThemes[inverseName]\n const transparent = (hsl: string, opacity = 0) =>\n hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`)\n\n // setup colorThemes and their inverses\n const [colorThemes, inverseColorThemes] = [\n colorTokens[name],\n colorTokens[inverseName],\n ].map((colorSet) => {\n return Object.fromEntries(\n Object.keys(colorSet).map((color) => {\n const colorPalette = Object.values(colorSet[color as ColorName])\n // were re-ordering these\n const [head, tail] = [\n colorPalette.slice(0, 6),\n colorPalette.slice(colorPalette.length - 5),\n ]\n // add our transparent colors first/last\n // and make sure the last (foreground) color is white/black rather than colorful\n // this is mostly for consistency with the older theme-base\n const palette = [\n transparent(colorPalette[0]),\n ...head,\n ...tail,\n theme.color,\n transparent(colorPalette[colorPalette.length - 1]),\n ]\n const colorTheme = createTheme(palette, isLight ? lightTemplate : darkTemplate)\n return [color, colorTheme]\n })\n ) as Record<ColorName, Theme>\n })\n\n const allColorThemes = addChildren(colorThemes, (colorName, colorTheme) => {\n const inverse = inverseColorThemes[colorName]\n return {\n ...getAltThemes(colorTheme as any, inverse as any),\n ...getComponentThemes(colorTheme as any, inverse as any),\n }\n })\n\n return {\n ...getAltThemes(theme, inverseTheme),\n ...getComponentThemes(theme, inverseTheme),\n ...allColorThemes,\n }\n\n function getComponentThemes(theme: Theme, inverse: Theme) {\n const stronger1 = applyMask(theme, masks.stronger, { skip })\n const stronger2 = applyMask(stronger1, masks.stronger, { skip })\n const inverse1 = applyMask(inverse, masks.weaker, { skip })\n const inverse2 = applyMask(inverse1, masks.weaker, { skip })\n return {\n Card: stronger1,\n Button: stronger2,\n DrawerFrame: stronger1,\n SliderTrack: theme,\n SliderTrackActive: stronger2,\n SliderThumb: inverse1,\n Progress: stronger1,\n ProgressIndicator: inverse,\n Switch: stronger2,\n SwitchThumb: inverse2,\n TooltipArrow: stronger1,\n TooltipContent: stronger2,\n }\n }\n\n function getAltThemes(theme: Theme, inverse: Theme) {\n const alt1 = applyMask(theme, masks.weaker, { skip })\n const alt2 = applyMask(alt1, masks.weaker, { skip })\n const active = applyMask(theme, masks.stronger2, { skip })\n return addChildren({ alt1, alt2, active }, (name, theme) => {\n return getComponentThemes(theme as any, inverse)\n })\n }\n})\n\nexport const themes = {\n ...allThemes,\n // bring back the full type (the rest use a subset)\n light,\n dark,\n}\n"],
5
+ "mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,aAAa,YAAY,mBAAmB;AAIrD,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAGxB,MAAM,WAAW;AAAA,EACf,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA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A,MACb,cAAc;AAAA,MACd,gBAAgB;AAAA,IAClB;AAAA,EACF;AAEA,WAAS,aAAaA,QAAc,SAAgB;AAClD,UAAM,OAAO,UAAUA,QAAO,MAAM,QAAQ,EAAE,KAAK,CAAC;AACpD,UAAM,OAAO,UAAU,MAAM,MAAM,QAAQ,EAAE,KAAK,CAAC;AACnD,UAAM,SAAS,UAAUA,QAAO,MAAM,WAAW,EAAE,KAAK,CAAC;AACzD,WAAO,YAAY,EAAE,MAAM,MAAM,OAAO,GAAG,CAACC,OAAMD,WAAU;AAC1D,aAAO,mBAAmBA,QAAc,OAAO;AAAA,IACjD,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM,SAAS;AAAA,EACpB,GAAG;AAAA;AAAA,EAEH;AAAA,EACA;AACF;",
6
6
  "names": ["theme", "name"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/themes",
3
- "version": "1.5.2",
3
+ "version": "1.5.5",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -32,13 +32,13 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@tamagui/colors": "^1.5.2",
36
- "@tamagui/core": "^1.5.2",
37
- "@tamagui/create-theme": "^1.5.2",
38
- "@tamagui/create-themes": "^1.5.2"
35
+ "@tamagui/colors": "^1.5.5",
36
+ "@tamagui/core": "^1.5.5",
37
+ "@tamagui/create-theme": "^1.5.5",
38
+ "@tamagui/create-themes": "^1.5.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@tamagui/build": "^1.5.2"
41
+ "@tamagui/build": "^1.5.5"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"
package/src/themes.tsx CHANGED
@@ -34,7 +34,7 @@ const palettes = {
34
34
  light: [
35
35
  lightTransparent,
36
36
  '#fff',
37
- '#f4f4f4',
37
+ '#f9f9f9',
38
38
  'hsl(0, 0%, 99.0%)',
39
39
  'hsl(0, 0%, 97.3%)',
40
40
  'hsl(0, 0%, 95.1%)',
@@ -92,17 +92,17 @@ const template = {
92
92
  colorPress: -1,
93
93
  colorFocus: -2,
94
94
  colorTransparent: -0,
95
- borderColor: 3,
96
- borderColorHover: 4,
97
- borderColorPress: 2,
98
- borderColorFocus: 3,
95
+ borderColor: 4,
96
+ borderColorHover: 5,
97
+ borderColorPress: 3,
98
+ borderColorFocus: 4,
99
99
  placeholderColor: -4,
100
100
  }
101
101
 
102
- const lightShadowColor = 'rgba(0,0,0,0.15)'
103
- const lightShadowColorStrong = 'rgba(0,0,0,0.2)'
104
- const darkShadowColor = 'rgba(0,0,0,0.3)'
105
- const darkShadowColorStrong = 'rgba(0,0,0,0.45)'
102
+ const lightShadowColor = 'rgba(0,0,0,0.02)'
103
+ const lightShadowColorStrong = 'rgba(0,0,0,0.066)'
104
+ const darkShadowColor = 'rgba(0,0,0,0.2)'
105
+ const darkShadowColorStrong = 'rgba(0,0,0,0.3)'
106
106
 
107
107
  const lightShadows = {
108
108
  shadowColor: lightShadowColorStrong,
@@ -120,6 +120,10 @@ const darkShadows = {
120
120
 
121
121
  const lightTemplate = {
122
122
  ...template,
123
+ borderColor: 3,
124
+ borderColorHover: 4,
125
+ borderColorPress: 2,
126
+ borderColorFocus: 3,
123
127
  ...lightShadows,
124
128
  }
125
129
 
@@ -177,21 +181,22 @@ const allThemes = addChildren(baseThemes, (name, themeIn) => {
177
181
  return Object.fromEntries(
178
182
  Object.keys(colorSet).map((color) => {
179
183
  const colorPalette = Object.values(colorSet[color as ColorName])
180
- // we want a much lighter text color by default so swap them around a bit
181
- const first6 = colorPalette.slice(0, 6)
182
- const last5 = colorPalette.slice(colorPalette.length - 5)
183
- const shadows = isLight ? lightShadows : darkShadows
184
+ // were re-ordering these
185
+ const [head, tail] = [
186
+ colorPalette.slice(0, 6),
187
+ colorPalette.slice(colorPalette.length - 5),
188
+ ]
189
+ // add our transparent colors first/last
190
+ // and make sure the last (foreground) color is white/black rather than colorful
191
+ // this is mostly for consistency with the older theme-base
184
192
  const palette = [
185
193
  transparent(colorPalette[0]),
186
- ...first6,
187
- ...last5,
194
+ ...head,
195
+ ...tail,
188
196
  theme.color,
189
197
  transparent(colorPalette[colorPalette.length - 1]),
190
198
  ]
191
- const colorTheme = createTheme(palette, {
192
- ...template,
193
- ...shadows,
194
- })
199
+ const colorTheme = createTheme(palette, isLight ? lightTemplate : darkTemplate)
195
200
  return [color, colorTheme]
196
201
  })
197
202
  ) as Record<ColorName, Theme>
@@ -217,6 +222,7 @@ const allThemes = addChildren(baseThemes, (name, themeIn) => {
217
222
  const inverse1 = applyMask(inverse, masks.weaker, { skip })
218
223
  const inverse2 = applyMask(inverse1, masks.weaker, { skip })
219
224
  return {
225
+ Card: stronger1,
220
226
  Button: stronger2,
221
227
  DrawerFrame: stronger1,
222
228
  SliderTrack: theme,
package/types/themes.d.ts CHANGED
@@ -3,6 +3,10 @@ declare const lightTemplate: {
3
3
  shadowColorHover: string;
4
4
  shadowColorPress: string;
5
5
  shadowColorFocus: string;
6
+ borderColor: number;
7
+ borderColorHover: number;
8
+ borderColorPress: number;
9
+ borderColorFocus: number;
6
10
  background: number;
7
11
  backgroundHover: number;
8
12
  backgroundPress: number;
@@ -14,10 +18,6 @@ declare const lightTemplate: {
14
18
  colorPress: number;
15
19
  colorFocus: number;
16
20
  colorTransparent: number;
17
- borderColor: number;
18
- borderColorHover: number;
19
- borderColorPress: number;
20
- borderColorFocus: number;
21
21
  placeholderColor: number;
22
22
  color1: number;
23
23
  color2: number;
@@ -137,6 +137,10 @@ export declare const themes: {
137
137
  shadowColorHover: string;
138
138
  shadowColorPress: string;
139
139
  shadowColorFocus: string;
140
+ borderColor: string;
141
+ borderColorHover: string;
142
+ borderColorPress: string;
143
+ borderColorFocus: string;
140
144
  background: string;
141
145
  backgroundHover: string;
142
146
  backgroundPress: string;
@@ -148,10 +152,6 @@ export declare const themes: {
148
152
  colorPress: string;
149
153
  colorFocus: string;
150
154
  colorTransparent: string;
151
- borderColor: string;
152
- borderColorHover: string;
153
- borderColorPress: string;
154
- borderColorFocus: string;
155
155
  placeholderColor: string;
156
156
  color1: string;
157
157
  color2: string;
@@ -267,6 +267,10 @@ export declare const themes: {
267
267
  shadowColorHover: string;
268
268
  shadowColorPress: string;
269
269
  shadowColorFocus: string;
270
+ borderColor: string;
271
+ borderColorHover: string;
272
+ borderColorPress: string;
273
+ borderColorFocus: string;
270
274
  background: string;
271
275
  backgroundHover: string;
272
276
  backgroundPress: string;
@@ -278,10 +282,6 @@ export declare const themes: {
278
282
  colorPress: string;
279
283
  colorFocus: string;
280
284
  colorTransparent: string;
281
- borderColor: string;
282
- borderColorHover: string;
283
- borderColorPress: string;
284
- borderColorFocus: string;
285
285
  placeholderColor: string;
286
286
  color1: string;
287
287
  color2: string;
@@ -299,6 +299,7 @@ export declare const themes: {
299
299
  light_alt1: Theme;
300
300
  light_alt2: Theme;
301
301
  light_active: Theme;
302
+ light_Card: Theme;
302
303
  light_Button: Theme;
303
304
  light_DrawerFrame: Theme;
304
305
  light_SliderTrack: Theme;
@@ -310,6 +311,7 @@ export declare const themes: {
310
311
  light_SwitchThumb: Theme;
311
312
  light_TooltipArrow: Theme;
312
313
  light_TooltipContent: Theme;
314
+ light_alt1_Card: Theme;
313
315
  light_alt1_Button: Theme;
314
316
  light_alt1_DrawerFrame: Theme;
315
317
  light_alt1_SliderTrack: Theme;
@@ -321,6 +323,7 @@ export declare const themes: {
321
323
  light_alt1_SwitchThumb: Theme;
322
324
  light_alt1_TooltipArrow: Theme;
323
325
  light_alt1_TooltipContent: Theme;
326
+ light_alt2_Card: Theme;
324
327
  light_alt2_Button: Theme;
325
328
  light_alt2_DrawerFrame: Theme;
326
329
  light_alt2_SliderTrack: Theme;
@@ -332,6 +335,7 @@ export declare const themes: {
332
335
  light_alt2_SwitchThumb: Theme;
333
336
  light_alt2_TooltipArrow: Theme;
334
337
  light_alt2_TooltipContent: Theme;
338
+ light_active_Card: Theme;
335
339
  light_active_Button: Theme;
336
340
  light_active_DrawerFrame: Theme;
337
341
  light_active_SliderTrack: Theme;
@@ -354,6 +358,7 @@ export declare const themes: {
354
358
  light_blue_alt1: Theme;
355
359
  light_blue_alt2: Theme;
356
360
  light_blue_active: Theme;
361
+ light_blue_Card: Theme;
357
362
  light_blue_Button: Theme;
358
363
  light_blue_DrawerFrame: Theme;
359
364
  light_blue_SliderTrack: Theme;
@@ -365,6 +370,7 @@ export declare const themes: {
365
370
  light_blue_SwitchThumb: Theme;
366
371
  light_blue_TooltipArrow: Theme;
367
372
  light_blue_TooltipContent: Theme;
373
+ light_blue_alt1_Card: Theme;
368
374
  light_blue_alt1_Button: Theme;
369
375
  light_blue_alt1_DrawerFrame: Theme;
370
376
  light_blue_alt1_SliderTrack: Theme;
@@ -376,6 +382,7 @@ export declare const themes: {
376
382
  light_blue_alt1_SwitchThumb: Theme;
377
383
  light_blue_alt1_TooltipArrow: Theme;
378
384
  light_blue_alt1_TooltipContent: Theme;
385
+ light_blue_alt2_Card: Theme;
379
386
  light_blue_alt2_Button: Theme;
380
387
  light_blue_alt2_DrawerFrame: Theme;
381
388
  light_blue_alt2_SliderTrack: Theme;
@@ -387,6 +394,7 @@ export declare const themes: {
387
394
  light_blue_alt2_SwitchThumb: Theme;
388
395
  light_blue_alt2_TooltipArrow: Theme;
389
396
  light_blue_alt2_TooltipContent: Theme;
397
+ light_blue_active_Card: Theme;
390
398
  light_blue_active_Button: Theme;
391
399
  light_blue_active_DrawerFrame: Theme;
392
400
  light_blue_active_SliderTrack: Theme;
@@ -401,6 +409,7 @@ export declare const themes: {
401
409
  light_gray_alt1: Theme;
402
410
  light_gray_alt2: Theme;
403
411
  light_gray_active: Theme;
412
+ light_gray_Card: Theme;
404
413
  light_gray_Button: Theme;
405
414
  light_gray_DrawerFrame: Theme;
406
415
  light_gray_SliderTrack: Theme;
@@ -412,6 +421,7 @@ export declare const themes: {
412
421
  light_gray_SwitchThumb: Theme;
413
422
  light_gray_TooltipArrow: Theme;
414
423
  light_gray_TooltipContent: Theme;
424
+ light_gray_alt1_Card: Theme;
415
425
  light_gray_alt1_Button: Theme;
416
426
  light_gray_alt1_DrawerFrame: Theme;
417
427
  light_gray_alt1_SliderTrack: Theme;
@@ -423,6 +433,7 @@ export declare const themes: {
423
433
  light_gray_alt1_SwitchThumb: Theme;
424
434
  light_gray_alt1_TooltipArrow: Theme;
425
435
  light_gray_alt1_TooltipContent: Theme;
436
+ light_gray_alt2_Card: Theme;
426
437
  light_gray_alt2_Button: Theme;
427
438
  light_gray_alt2_DrawerFrame: Theme;
428
439
  light_gray_alt2_SliderTrack: Theme;
@@ -434,6 +445,7 @@ export declare const themes: {
434
445
  light_gray_alt2_SwitchThumb: Theme;
435
446
  light_gray_alt2_TooltipArrow: Theme;
436
447
  light_gray_alt2_TooltipContent: Theme;
448
+ light_gray_active_Card: Theme;
437
449
  light_gray_active_Button: Theme;
438
450
  light_gray_active_DrawerFrame: Theme;
439
451
  light_gray_active_SliderTrack: Theme;
@@ -448,6 +460,7 @@ export declare const themes: {
448
460
  light_green_alt1: Theme;
449
461
  light_green_alt2: Theme;
450
462
  light_green_active: Theme;
463
+ light_green_Card: Theme;
451
464
  light_green_Button: Theme;
452
465
  light_green_DrawerFrame: Theme;
453
466
  light_green_SliderTrack: Theme;
@@ -459,6 +472,7 @@ export declare const themes: {
459
472
  light_green_SwitchThumb: Theme;
460
473
  light_green_TooltipArrow: Theme;
461
474
  light_green_TooltipContent: Theme;
475
+ light_green_alt1_Card: Theme;
462
476
  light_green_alt1_Button: Theme;
463
477
  light_green_alt1_DrawerFrame: Theme;
464
478
  light_green_alt1_SliderTrack: Theme;
@@ -470,6 +484,7 @@ export declare const themes: {
470
484
  light_green_alt1_SwitchThumb: Theme;
471
485
  light_green_alt1_TooltipArrow: Theme;
472
486
  light_green_alt1_TooltipContent: Theme;
487
+ light_green_alt2_Card: Theme;
473
488
  light_green_alt2_Button: Theme;
474
489
  light_green_alt2_DrawerFrame: Theme;
475
490
  light_green_alt2_SliderTrack: Theme;
@@ -481,6 +496,7 @@ export declare const themes: {
481
496
  light_green_alt2_SwitchThumb: Theme;
482
497
  light_green_alt2_TooltipArrow: Theme;
483
498
  light_green_alt2_TooltipContent: Theme;
499
+ light_green_active_Card: Theme;
484
500
  light_green_active_Button: Theme;
485
501
  light_green_active_DrawerFrame: Theme;
486
502
  light_green_active_SliderTrack: Theme;
@@ -495,6 +511,7 @@ export declare const themes: {
495
511
  light_orange_alt1: Theme;
496
512
  light_orange_alt2: Theme;
497
513
  light_orange_active: Theme;
514
+ light_orange_Card: Theme;
498
515
  light_orange_Button: Theme;
499
516
  light_orange_DrawerFrame: Theme;
500
517
  light_orange_SliderTrack: Theme;
@@ -506,6 +523,7 @@ export declare const themes: {
506
523
  light_orange_SwitchThumb: Theme;
507
524
  light_orange_TooltipArrow: Theme;
508
525
  light_orange_TooltipContent: Theme;
526
+ light_orange_alt1_Card: Theme;
509
527
  light_orange_alt1_Button: Theme;
510
528
  light_orange_alt1_DrawerFrame: Theme;
511
529
  light_orange_alt1_SliderTrack: Theme;
@@ -517,6 +535,7 @@ export declare const themes: {
517
535
  light_orange_alt1_SwitchThumb: Theme;
518
536
  light_orange_alt1_TooltipArrow: Theme;
519
537
  light_orange_alt1_TooltipContent: Theme;
538
+ light_orange_alt2_Card: Theme;
520
539
  light_orange_alt2_Button: Theme;
521
540
  light_orange_alt2_DrawerFrame: Theme;
522
541
  light_orange_alt2_SliderTrack: Theme;
@@ -528,6 +547,7 @@ export declare const themes: {
528
547
  light_orange_alt2_SwitchThumb: Theme;
529
548
  light_orange_alt2_TooltipArrow: Theme;
530
549
  light_orange_alt2_TooltipContent: Theme;
550
+ light_orange_active_Card: Theme;
531
551
  light_orange_active_Button: Theme;
532
552
  light_orange_active_DrawerFrame: Theme;
533
553
  light_orange_active_SliderTrack: Theme;
@@ -542,6 +562,7 @@ export declare const themes: {
542
562
  light_pink_alt1: Theme;
543
563
  light_pink_alt2: Theme;
544
564
  light_pink_active: Theme;
565
+ light_pink_Card: Theme;
545
566
  light_pink_Button: Theme;
546
567
  light_pink_DrawerFrame: Theme;
547
568
  light_pink_SliderTrack: Theme;
@@ -553,6 +574,7 @@ export declare const themes: {
553
574
  light_pink_SwitchThumb: Theme;
554
575
  light_pink_TooltipArrow: Theme;
555
576
  light_pink_TooltipContent: Theme;
577
+ light_pink_alt1_Card: Theme;
556
578
  light_pink_alt1_Button: Theme;
557
579
  light_pink_alt1_DrawerFrame: Theme;
558
580
  light_pink_alt1_SliderTrack: Theme;
@@ -564,6 +586,7 @@ export declare const themes: {
564
586
  light_pink_alt1_SwitchThumb: Theme;
565
587
  light_pink_alt1_TooltipArrow: Theme;
566
588
  light_pink_alt1_TooltipContent: Theme;
589
+ light_pink_alt2_Card: Theme;
567
590
  light_pink_alt2_Button: Theme;
568
591
  light_pink_alt2_DrawerFrame: Theme;
569
592
  light_pink_alt2_SliderTrack: Theme;
@@ -575,6 +598,7 @@ export declare const themes: {
575
598
  light_pink_alt2_SwitchThumb: Theme;
576
599
  light_pink_alt2_TooltipArrow: Theme;
577
600
  light_pink_alt2_TooltipContent: Theme;
601
+ light_pink_active_Card: Theme;
578
602
  light_pink_active_Button: Theme;
579
603
  light_pink_active_DrawerFrame: Theme;
580
604
  light_pink_active_SliderTrack: Theme;
@@ -589,6 +613,7 @@ export declare const themes: {
589
613
  light_purple_alt1: Theme;
590
614
  light_purple_alt2: Theme;
591
615
  light_purple_active: Theme;
616
+ light_purple_Card: Theme;
592
617
  light_purple_Button: Theme;
593
618
  light_purple_DrawerFrame: Theme;
594
619
  light_purple_SliderTrack: Theme;
@@ -600,6 +625,7 @@ export declare const themes: {
600
625
  light_purple_SwitchThumb: Theme;
601
626
  light_purple_TooltipArrow: Theme;
602
627
  light_purple_TooltipContent: Theme;
628
+ light_purple_alt1_Card: Theme;
603
629
  light_purple_alt1_Button: Theme;
604
630
  light_purple_alt1_DrawerFrame: Theme;
605
631
  light_purple_alt1_SliderTrack: Theme;
@@ -611,6 +637,7 @@ export declare const themes: {
611
637
  light_purple_alt1_SwitchThumb: Theme;
612
638
  light_purple_alt1_TooltipArrow: Theme;
613
639
  light_purple_alt1_TooltipContent: Theme;
640
+ light_purple_alt2_Card: Theme;
614
641
  light_purple_alt2_Button: Theme;
615
642
  light_purple_alt2_DrawerFrame: Theme;
616
643
  light_purple_alt2_SliderTrack: Theme;
@@ -622,6 +649,7 @@ export declare const themes: {
622
649
  light_purple_alt2_SwitchThumb: Theme;
623
650
  light_purple_alt2_TooltipArrow: Theme;
624
651
  light_purple_alt2_TooltipContent: Theme;
652
+ light_purple_active_Card: Theme;
625
653
  light_purple_active_Button: Theme;
626
654
  light_purple_active_DrawerFrame: Theme;
627
655
  light_purple_active_SliderTrack: Theme;
@@ -636,6 +664,7 @@ export declare const themes: {
636
664
  light_red_alt1: Theme;
637
665
  light_red_alt2: Theme;
638
666
  light_red_active: Theme;
667
+ light_red_Card: Theme;
639
668
  light_red_Button: Theme;
640
669
  light_red_DrawerFrame: Theme;
641
670
  light_red_SliderTrack: Theme;
@@ -647,6 +676,7 @@ export declare const themes: {
647
676
  light_red_SwitchThumb: Theme;
648
677
  light_red_TooltipArrow: Theme;
649
678
  light_red_TooltipContent: Theme;
679
+ light_red_alt1_Card: Theme;
650
680
  light_red_alt1_Button: Theme;
651
681
  light_red_alt1_DrawerFrame: Theme;
652
682
  light_red_alt1_SliderTrack: Theme;
@@ -658,6 +688,7 @@ export declare const themes: {
658
688
  light_red_alt1_SwitchThumb: Theme;
659
689
  light_red_alt1_TooltipArrow: Theme;
660
690
  light_red_alt1_TooltipContent: Theme;
691
+ light_red_alt2_Card: Theme;
661
692
  light_red_alt2_Button: Theme;
662
693
  light_red_alt2_DrawerFrame: Theme;
663
694
  light_red_alt2_SliderTrack: Theme;
@@ -669,6 +700,7 @@ export declare const themes: {
669
700
  light_red_alt2_SwitchThumb: Theme;
670
701
  light_red_alt2_TooltipArrow: Theme;
671
702
  light_red_alt2_TooltipContent: Theme;
703
+ light_red_active_Card: Theme;
672
704
  light_red_active_Button: Theme;
673
705
  light_red_active_DrawerFrame: Theme;
674
706
  light_red_active_SliderTrack: Theme;
@@ -683,6 +715,7 @@ export declare const themes: {
683
715
  light_yellow_alt1: Theme;
684
716
  light_yellow_alt2: Theme;
685
717
  light_yellow_active: Theme;
718
+ light_yellow_Card: Theme;
686
719
  light_yellow_Button: Theme;
687
720
  light_yellow_DrawerFrame: Theme;
688
721
  light_yellow_SliderTrack: Theme;
@@ -694,6 +727,7 @@ export declare const themes: {
694
727
  light_yellow_SwitchThumb: Theme;
695
728
  light_yellow_TooltipArrow: Theme;
696
729
  light_yellow_TooltipContent: Theme;
730
+ light_yellow_alt1_Card: Theme;
697
731
  light_yellow_alt1_Button: Theme;
698
732
  light_yellow_alt1_DrawerFrame: Theme;
699
733
  light_yellow_alt1_SliderTrack: Theme;
@@ -705,6 +739,7 @@ export declare const themes: {
705
739
  light_yellow_alt1_SwitchThumb: Theme;
706
740
  light_yellow_alt1_TooltipArrow: Theme;
707
741
  light_yellow_alt1_TooltipContent: Theme;
742
+ light_yellow_alt2_Card: Theme;
708
743
  light_yellow_alt2_Button: Theme;
709
744
  light_yellow_alt2_DrawerFrame: Theme;
710
745
  light_yellow_alt2_SliderTrack: Theme;
@@ -716,6 +751,7 @@ export declare const themes: {
716
751
  light_yellow_alt2_SwitchThumb: Theme;
717
752
  light_yellow_alt2_TooltipArrow: Theme;
718
753
  light_yellow_alt2_TooltipContent: Theme;
754
+ light_yellow_active_Card: Theme;
719
755
  light_yellow_active_Button: Theme;
720
756
  light_yellow_active_DrawerFrame: Theme;
721
757
  light_yellow_active_SliderTrack: Theme;
@@ -730,6 +766,7 @@ export declare const themes: {
730
766
  dark_alt1: Theme;
731
767
  dark_alt2: Theme;
732
768
  dark_active: Theme;
769
+ dark_Card: Theme;
733
770
  dark_Button: Theme;
734
771
  dark_DrawerFrame: Theme;
735
772
  dark_SliderTrack: Theme;
@@ -741,6 +778,7 @@ export declare const themes: {
741
778
  dark_SwitchThumb: Theme;
742
779
  dark_TooltipArrow: Theme;
743
780
  dark_TooltipContent: Theme;
781
+ dark_alt1_Card: Theme;
744
782
  dark_alt1_Button: Theme;
745
783
  dark_alt1_DrawerFrame: Theme;
746
784
  dark_alt1_SliderTrack: Theme;
@@ -752,6 +790,7 @@ export declare const themes: {
752
790
  dark_alt1_SwitchThumb: Theme;
753
791
  dark_alt1_TooltipArrow: Theme;
754
792
  dark_alt1_TooltipContent: Theme;
793
+ dark_alt2_Card: Theme;
755
794
  dark_alt2_Button: Theme;
756
795
  dark_alt2_DrawerFrame: Theme;
757
796
  dark_alt2_SliderTrack: Theme;
@@ -763,6 +802,7 @@ export declare const themes: {
763
802
  dark_alt2_SwitchThumb: Theme;
764
803
  dark_alt2_TooltipArrow: Theme;
765
804
  dark_alt2_TooltipContent: Theme;
805
+ dark_active_Card: Theme;
766
806
  dark_active_Button: Theme;
767
807
  dark_active_DrawerFrame: Theme;
768
808
  dark_active_SliderTrack: Theme;
@@ -785,6 +825,7 @@ export declare const themes: {
785
825
  dark_blue_alt1: Theme;
786
826
  dark_blue_alt2: Theme;
787
827
  dark_blue_active: Theme;
828
+ dark_blue_Card: Theme;
788
829
  dark_blue_Button: Theme;
789
830
  dark_blue_DrawerFrame: Theme;
790
831
  dark_blue_SliderTrack: Theme;
@@ -796,6 +837,7 @@ export declare const themes: {
796
837
  dark_blue_SwitchThumb: Theme;
797
838
  dark_blue_TooltipArrow: Theme;
798
839
  dark_blue_TooltipContent: Theme;
840
+ dark_blue_alt1_Card: Theme;
799
841
  dark_blue_alt1_Button: Theme;
800
842
  dark_blue_alt1_DrawerFrame: Theme;
801
843
  dark_blue_alt1_SliderTrack: Theme;
@@ -807,6 +849,7 @@ export declare const themes: {
807
849
  dark_blue_alt1_SwitchThumb: Theme;
808
850
  dark_blue_alt1_TooltipArrow: Theme;
809
851
  dark_blue_alt1_TooltipContent: Theme;
852
+ dark_blue_alt2_Card: Theme;
810
853
  dark_blue_alt2_Button: Theme;
811
854
  dark_blue_alt2_DrawerFrame: Theme;
812
855
  dark_blue_alt2_SliderTrack: Theme;
@@ -818,6 +861,7 @@ export declare const themes: {
818
861
  dark_blue_alt2_SwitchThumb: Theme;
819
862
  dark_blue_alt2_TooltipArrow: Theme;
820
863
  dark_blue_alt2_TooltipContent: Theme;
864
+ dark_blue_active_Card: Theme;
821
865
  dark_blue_active_Button: Theme;
822
866
  dark_blue_active_DrawerFrame: Theme;
823
867
  dark_blue_active_SliderTrack: Theme;
@@ -832,6 +876,7 @@ export declare const themes: {
832
876
  dark_gray_alt1: Theme;
833
877
  dark_gray_alt2: Theme;
834
878
  dark_gray_active: Theme;
879
+ dark_gray_Card: Theme;
835
880
  dark_gray_Button: Theme;
836
881
  dark_gray_DrawerFrame: Theme;
837
882
  dark_gray_SliderTrack: Theme;
@@ -843,6 +888,7 @@ export declare const themes: {
843
888
  dark_gray_SwitchThumb: Theme;
844
889
  dark_gray_TooltipArrow: Theme;
845
890
  dark_gray_TooltipContent: Theme;
891
+ dark_gray_alt1_Card: Theme;
846
892
  dark_gray_alt1_Button: Theme;
847
893
  dark_gray_alt1_DrawerFrame: Theme;
848
894
  dark_gray_alt1_SliderTrack: Theme;
@@ -854,6 +900,7 @@ export declare const themes: {
854
900
  dark_gray_alt1_SwitchThumb: Theme;
855
901
  dark_gray_alt1_TooltipArrow: Theme;
856
902
  dark_gray_alt1_TooltipContent: Theme;
903
+ dark_gray_alt2_Card: Theme;
857
904
  dark_gray_alt2_Button: Theme;
858
905
  dark_gray_alt2_DrawerFrame: Theme;
859
906
  dark_gray_alt2_SliderTrack: Theme;
@@ -865,6 +912,7 @@ export declare const themes: {
865
912
  dark_gray_alt2_SwitchThumb: Theme;
866
913
  dark_gray_alt2_TooltipArrow: Theme;
867
914
  dark_gray_alt2_TooltipContent: Theme;
915
+ dark_gray_active_Card: Theme;
868
916
  dark_gray_active_Button: Theme;
869
917
  dark_gray_active_DrawerFrame: Theme;
870
918
  dark_gray_active_SliderTrack: Theme;
@@ -879,6 +927,7 @@ export declare const themes: {
879
927
  dark_green_alt1: Theme;
880
928
  dark_green_alt2: Theme;
881
929
  dark_green_active: Theme;
930
+ dark_green_Card: Theme;
882
931
  dark_green_Button: Theme;
883
932
  dark_green_DrawerFrame: Theme;
884
933
  dark_green_SliderTrack: Theme;
@@ -890,6 +939,7 @@ export declare const themes: {
890
939
  dark_green_SwitchThumb: Theme;
891
940
  dark_green_TooltipArrow: Theme;
892
941
  dark_green_TooltipContent: Theme;
942
+ dark_green_alt1_Card: Theme;
893
943
  dark_green_alt1_Button: Theme;
894
944
  dark_green_alt1_DrawerFrame: Theme;
895
945
  dark_green_alt1_SliderTrack: Theme;
@@ -901,6 +951,7 @@ export declare const themes: {
901
951
  dark_green_alt1_SwitchThumb: Theme;
902
952
  dark_green_alt1_TooltipArrow: Theme;
903
953
  dark_green_alt1_TooltipContent: Theme;
954
+ dark_green_alt2_Card: Theme;
904
955
  dark_green_alt2_Button: Theme;
905
956
  dark_green_alt2_DrawerFrame: Theme;
906
957
  dark_green_alt2_SliderTrack: Theme;
@@ -912,6 +963,7 @@ export declare const themes: {
912
963
  dark_green_alt2_SwitchThumb: Theme;
913
964
  dark_green_alt2_TooltipArrow: Theme;
914
965
  dark_green_alt2_TooltipContent: Theme;
966
+ dark_green_active_Card: Theme;
915
967
  dark_green_active_Button: Theme;
916
968
  dark_green_active_DrawerFrame: Theme;
917
969
  dark_green_active_SliderTrack: Theme;
@@ -926,6 +978,7 @@ export declare const themes: {
926
978
  dark_orange_alt1: Theme;
927
979
  dark_orange_alt2: Theme;
928
980
  dark_orange_active: Theme;
981
+ dark_orange_Card: Theme;
929
982
  dark_orange_Button: Theme;
930
983
  dark_orange_DrawerFrame: Theme;
931
984
  dark_orange_SliderTrack: Theme;
@@ -937,6 +990,7 @@ export declare const themes: {
937
990
  dark_orange_SwitchThumb: Theme;
938
991
  dark_orange_TooltipArrow: Theme;
939
992
  dark_orange_TooltipContent: Theme;
993
+ dark_orange_alt1_Card: Theme;
940
994
  dark_orange_alt1_Button: Theme;
941
995
  dark_orange_alt1_DrawerFrame: Theme;
942
996
  dark_orange_alt1_SliderTrack: Theme;
@@ -948,6 +1002,7 @@ export declare const themes: {
948
1002
  dark_orange_alt1_SwitchThumb: Theme;
949
1003
  dark_orange_alt1_TooltipArrow: Theme;
950
1004
  dark_orange_alt1_TooltipContent: Theme;
1005
+ dark_orange_alt2_Card: Theme;
951
1006
  dark_orange_alt2_Button: Theme;
952
1007
  dark_orange_alt2_DrawerFrame: Theme;
953
1008
  dark_orange_alt2_SliderTrack: Theme;
@@ -959,6 +1014,7 @@ export declare const themes: {
959
1014
  dark_orange_alt2_SwitchThumb: Theme;
960
1015
  dark_orange_alt2_TooltipArrow: Theme;
961
1016
  dark_orange_alt2_TooltipContent: Theme;
1017
+ dark_orange_active_Card: Theme;
962
1018
  dark_orange_active_Button: Theme;
963
1019
  dark_orange_active_DrawerFrame: Theme;
964
1020
  dark_orange_active_SliderTrack: Theme;
@@ -973,6 +1029,7 @@ export declare const themes: {
973
1029
  dark_pink_alt1: Theme;
974
1030
  dark_pink_alt2: Theme;
975
1031
  dark_pink_active: Theme;
1032
+ dark_pink_Card: Theme;
976
1033
  dark_pink_Button: Theme;
977
1034
  dark_pink_DrawerFrame: Theme;
978
1035
  dark_pink_SliderTrack: Theme;
@@ -984,6 +1041,7 @@ export declare const themes: {
984
1041
  dark_pink_SwitchThumb: Theme;
985
1042
  dark_pink_TooltipArrow: Theme;
986
1043
  dark_pink_TooltipContent: Theme;
1044
+ dark_pink_alt1_Card: Theme;
987
1045
  dark_pink_alt1_Button: Theme;
988
1046
  dark_pink_alt1_DrawerFrame: Theme;
989
1047
  dark_pink_alt1_SliderTrack: Theme;
@@ -995,6 +1053,7 @@ export declare const themes: {
995
1053
  dark_pink_alt1_SwitchThumb: Theme;
996
1054
  dark_pink_alt1_TooltipArrow: Theme;
997
1055
  dark_pink_alt1_TooltipContent: Theme;
1056
+ dark_pink_alt2_Card: Theme;
998
1057
  dark_pink_alt2_Button: Theme;
999
1058
  dark_pink_alt2_DrawerFrame: Theme;
1000
1059
  dark_pink_alt2_SliderTrack: Theme;
@@ -1006,6 +1065,7 @@ export declare const themes: {
1006
1065
  dark_pink_alt2_SwitchThumb: Theme;
1007
1066
  dark_pink_alt2_TooltipArrow: Theme;
1008
1067
  dark_pink_alt2_TooltipContent: Theme;
1068
+ dark_pink_active_Card: Theme;
1009
1069
  dark_pink_active_Button: Theme;
1010
1070
  dark_pink_active_DrawerFrame: Theme;
1011
1071
  dark_pink_active_SliderTrack: Theme;
@@ -1020,6 +1080,7 @@ export declare const themes: {
1020
1080
  dark_purple_alt1: Theme;
1021
1081
  dark_purple_alt2: Theme;
1022
1082
  dark_purple_active: Theme;
1083
+ dark_purple_Card: Theme;
1023
1084
  dark_purple_Button: Theme;
1024
1085
  dark_purple_DrawerFrame: Theme;
1025
1086
  dark_purple_SliderTrack: Theme;
@@ -1031,6 +1092,7 @@ export declare const themes: {
1031
1092
  dark_purple_SwitchThumb: Theme;
1032
1093
  dark_purple_TooltipArrow: Theme;
1033
1094
  dark_purple_TooltipContent: Theme;
1095
+ dark_purple_alt1_Card: Theme;
1034
1096
  dark_purple_alt1_Button: Theme;
1035
1097
  dark_purple_alt1_DrawerFrame: Theme;
1036
1098
  dark_purple_alt1_SliderTrack: Theme;
@@ -1042,6 +1104,7 @@ export declare const themes: {
1042
1104
  dark_purple_alt1_SwitchThumb: Theme;
1043
1105
  dark_purple_alt1_TooltipArrow: Theme;
1044
1106
  dark_purple_alt1_TooltipContent: Theme;
1107
+ dark_purple_alt2_Card: Theme;
1045
1108
  dark_purple_alt2_Button: Theme;
1046
1109
  dark_purple_alt2_DrawerFrame: Theme;
1047
1110
  dark_purple_alt2_SliderTrack: Theme;
@@ -1053,6 +1116,7 @@ export declare const themes: {
1053
1116
  dark_purple_alt2_SwitchThumb: Theme;
1054
1117
  dark_purple_alt2_TooltipArrow: Theme;
1055
1118
  dark_purple_alt2_TooltipContent: Theme;
1119
+ dark_purple_active_Card: Theme;
1056
1120
  dark_purple_active_Button: Theme;
1057
1121
  dark_purple_active_DrawerFrame: Theme;
1058
1122
  dark_purple_active_SliderTrack: Theme;
@@ -1067,6 +1131,7 @@ export declare const themes: {
1067
1131
  dark_red_alt1: Theme;
1068
1132
  dark_red_alt2: Theme;
1069
1133
  dark_red_active: Theme;
1134
+ dark_red_Card: Theme;
1070
1135
  dark_red_Button: Theme;
1071
1136
  dark_red_DrawerFrame: Theme;
1072
1137
  dark_red_SliderTrack: Theme;
@@ -1078,6 +1143,7 @@ export declare const themes: {
1078
1143
  dark_red_SwitchThumb: Theme;
1079
1144
  dark_red_TooltipArrow: Theme;
1080
1145
  dark_red_TooltipContent: Theme;
1146
+ dark_red_alt1_Card: Theme;
1081
1147
  dark_red_alt1_Button: Theme;
1082
1148
  dark_red_alt1_DrawerFrame: Theme;
1083
1149
  dark_red_alt1_SliderTrack: Theme;
@@ -1089,6 +1155,7 @@ export declare const themes: {
1089
1155
  dark_red_alt1_SwitchThumb: Theme;
1090
1156
  dark_red_alt1_TooltipArrow: Theme;
1091
1157
  dark_red_alt1_TooltipContent: Theme;
1158
+ dark_red_alt2_Card: Theme;
1092
1159
  dark_red_alt2_Button: Theme;
1093
1160
  dark_red_alt2_DrawerFrame: Theme;
1094
1161
  dark_red_alt2_SliderTrack: Theme;
@@ -1100,6 +1167,7 @@ export declare const themes: {
1100
1167
  dark_red_alt2_SwitchThumb: Theme;
1101
1168
  dark_red_alt2_TooltipArrow: Theme;
1102
1169
  dark_red_alt2_TooltipContent: Theme;
1170
+ dark_red_active_Card: Theme;
1103
1171
  dark_red_active_Button: Theme;
1104
1172
  dark_red_active_DrawerFrame: Theme;
1105
1173
  dark_red_active_SliderTrack: Theme;
@@ -1114,6 +1182,7 @@ export declare const themes: {
1114
1182
  dark_yellow_alt1: Theme;
1115
1183
  dark_yellow_alt2: Theme;
1116
1184
  dark_yellow_active: Theme;
1185
+ dark_yellow_Card: Theme;
1117
1186
  dark_yellow_Button: Theme;
1118
1187
  dark_yellow_DrawerFrame: Theme;
1119
1188
  dark_yellow_SliderTrack: Theme;
@@ -1125,6 +1194,7 @@ export declare const themes: {
1125
1194
  dark_yellow_SwitchThumb: Theme;
1126
1195
  dark_yellow_TooltipArrow: Theme;
1127
1196
  dark_yellow_TooltipContent: Theme;
1197
+ dark_yellow_alt1_Card: Theme;
1128
1198
  dark_yellow_alt1_Button: Theme;
1129
1199
  dark_yellow_alt1_DrawerFrame: Theme;
1130
1200
  dark_yellow_alt1_SliderTrack: Theme;
@@ -1136,6 +1206,7 @@ export declare const themes: {
1136
1206
  dark_yellow_alt1_SwitchThumb: Theme;
1137
1207
  dark_yellow_alt1_TooltipArrow: Theme;
1138
1208
  dark_yellow_alt1_TooltipContent: Theme;
1209
+ dark_yellow_alt2_Card: Theme;
1139
1210
  dark_yellow_alt2_Button: Theme;
1140
1211
  dark_yellow_alt2_DrawerFrame: Theme;
1141
1212
  dark_yellow_alt2_SliderTrack: Theme;
@@ -1147,6 +1218,7 @@ export declare const themes: {
1147
1218
  dark_yellow_alt2_SwitchThumb: Theme;
1148
1219
  dark_yellow_alt2_TooltipArrow: Theme;
1149
1220
  dark_yellow_alt2_TooltipContent: Theme;
1221
+ dark_yellow_active_Card: Theme;
1150
1222
  dark_yellow_active_Button: Theme;
1151
1223
  dark_yellow_active_DrawerFrame: Theme;
1152
1224
  dark_yellow_active_SliderTrack: Theme;
@@ -1 +1 @@
1
- {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../src/themes.tsx"],"names":[],"mappings":"AAwHA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAA;AAUD,KAAK,KAAK,GAAG;KAAG,GAAG,IAAI,MAAM,OAAO,aAAa,GAAG,MAAM;CAAE,CAAA;AA8G5D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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