@tamagui/themes 1.31.2 → 1.31.4
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/cjs/componentThemeDefinitions.js +146 -0
- package/dist/cjs/componentThemeDefinitions.js.map +6 -0
- package/dist/cjs/generated-new.js +5189 -0
- package/dist/cjs/generated-new.js.map +6 -0
- package/dist/cjs/generated-old.js +13599 -0
- package/dist/cjs/generated-old.js.map +6 -0
- package/dist/cjs/helpers.js +39 -0
- package/dist/cjs/helpers.js.map +6 -0
- package/dist/cjs/masks.js +61 -0
- package/dist/cjs/masks.js.map +6 -0
- package/dist/cjs/palettes.js +102 -0
- package/dist/cjs/palettes.js.map +6 -0
- package/dist/cjs/templates.js +128 -0
- package/dist/cjs/templates.js.map +6 -0
- package/dist/cjs/themes-new.js +107 -0
- package/dist/cjs/themes-new.js.map +6 -0
- package/dist/cjs/themes-old.js +326 -0
- package/dist/cjs/themes-old.js.map +6 -0
- package/dist/esm/componentThemeDefinitions.js +121 -0
- package/dist/esm/componentThemeDefinitions.js.map +6 -0
- package/dist/esm/generated-new.js +4782 -0
- package/dist/esm/generated-new.js.map +6 -0
- package/dist/esm/generated-old.js +12064 -0
- package/dist/esm/generated-old.js.map +6 -0
- package/dist/esm/helpers.js +13 -0
- package/dist/esm/helpers.js.map +6 -0
- package/dist/esm/masks.js +45 -0
- package/dist/esm/masks.js.map +6 -0
- package/dist/esm/palettes.js +78 -0
- package/dist/esm/palettes.js.map +6 -0
- package/dist/esm/templates.js +103 -0
- package/dist/esm/templates.js.map +6 -0
- package/dist/esm/themes-new.js +83 -0
- package/dist/esm/themes-new.js.map +6 -0
- package/dist/esm/themes-old.js +309 -0
- package/dist/esm/themes-old.js.map +6 -0
- package/package.json +5 -5
- package/types/componentThemeDefinitions.d.ts.map +1 -0
- package/types/generated-new.d.ts.map +1 -0
- package/types/helpers.d.ts.map +1 -0
- package/types/masks.d.ts.map +1 -0
- package/types/palettes.d.ts.map +1 -0
- package/types/templates.d.ts.map +1 -0
- package/types/themes-new.d.ts.map +1 -0
- package/types/themes-old.d.ts.map +1 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var palettes_exports = {};
|
|
20
|
+
__export(palettes_exports, {
|
|
21
|
+
palettes: () => palettes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(palettes_exports);
|
|
24
|
+
var import_helpers = require("./helpers");
|
|
25
|
+
var import_tokens = require("./tokens");
|
|
26
|
+
const palettes = (() => {
|
|
27
|
+
const lightTransparent = "rgba(255,255,255,0)";
|
|
28
|
+
const darkTransparent = "rgba(10,10,10,0)";
|
|
29
|
+
const transparent = (hsl, opacity = 0) => hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`);
|
|
30
|
+
const getColorPalette = (colors, color = colors[0]) => {
|
|
31
|
+
const colorPalette = Object.values(colors);
|
|
32
|
+
const [head, tail] = [
|
|
33
|
+
colorPalette.slice(0, 6),
|
|
34
|
+
colorPalette.slice(colorPalette.length - 5)
|
|
35
|
+
];
|
|
36
|
+
return [
|
|
37
|
+
transparent(colorPalette[0]),
|
|
38
|
+
...head,
|
|
39
|
+
...tail,
|
|
40
|
+
color,
|
|
41
|
+
transparent(colorPalette[colorPalette.length - 1])
|
|
42
|
+
];
|
|
43
|
+
};
|
|
44
|
+
const lightColor = "hsl(0, 0%, 9.0%)";
|
|
45
|
+
const lightPalette = [
|
|
46
|
+
lightTransparent,
|
|
47
|
+
"#fff",
|
|
48
|
+
"#f9f9f9",
|
|
49
|
+
"hsl(0, 0%, 97.3%)",
|
|
50
|
+
"hsl(0, 0%, 95.1%)",
|
|
51
|
+
"hsl(0, 0%, 94.0%)",
|
|
52
|
+
"hsl(0, 0%, 92.0%)",
|
|
53
|
+
"hsl(0, 0%, 89.5%)",
|
|
54
|
+
"hsl(0, 0%, 81.0%)",
|
|
55
|
+
"hsl(0, 0%, 56.1%)",
|
|
56
|
+
"hsl(0, 0%, 50.3%)",
|
|
57
|
+
"hsl(0, 0%, 42.5%)",
|
|
58
|
+
lightColor,
|
|
59
|
+
darkTransparent
|
|
60
|
+
];
|
|
61
|
+
const darkColor = "#fff";
|
|
62
|
+
const darkPalette = [
|
|
63
|
+
darkTransparent,
|
|
64
|
+
"#050505",
|
|
65
|
+
"#151515",
|
|
66
|
+
"#191919",
|
|
67
|
+
"#232323",
|
|
68
|
+
"#282828",
|
|
69
|
+
"#323232",
|
|
70
|
+
"#424242",
|
|
71
|
+
"#494949",
|
|
72
|
+
"#545454",
|
|
73
|
+
"#626262",
|
|
74
|
+
"#a5a5a5",
|
|
75
|
+
darkColor,
|
|
76
|
+
lightTransparent
|
|
77
|
+
];
|
|
78
|
+
const lightPalettes = (0, import_helpers.objectFromEntries)(
|
|
79
|
+
(0, import_helpers.objectKeys)(import_tokens.colorTokens.light).map(
|
|
80
|
+
(key) => [`light_${key}`, getColorPalette(import_tokens.colorTokens.light[key], lightColor)]
|
|
81
|
+
)
|
|
82
|
+
);
|
|
83
|
+
const darkPalettes = (0, import_helpers.objectFromEntries)(
|
|
84
|
+
(0, import_helpers.objectKeys)(import_tokens.colorTokens.dark).map(
|
|
85
|
+
(key) => [`dark_${key}`, getColorPalette(import_tokens.colorTokens.dark[key], darkColor)]
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
const colorPalettes = {
|
|
89
|
+
...lightPalettes,
|
|
90
|
+
...darkPalettes
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
light: lightPalette,
|
|
94
|
+
dark: darkPalette,
|
|
95
|
+
...colorPalettes
|
|
96
|
+
};
|
|
97
|
+
})();
|
|
98
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
+
0 && (module.exports = {
|
|
100
|
+
palettes
|
|
101
|
+
});
|
|
102
|
+
//# sourceMappingURL=palettes.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/palettes.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA8C;AAC9C,oBAA4B;AAErB,MAAM,YAAY,MAAM;AAC7B,QAAM,mBAAmB;AACzB,QAAM,kBAAkB;AAExB,QAAM,cAAc,CAAC,KAAa,UAAU,MAC1C,IAAI,QAAQ,MAAM,MAAM,UAAU,EAAE,QAAQ,QAAQ,OAAO;AAE7D,QAAM,kBAAkB,CAAC,QAAgB,QAAQ,OAAO,CAAC,MAAgB;AACvE,UAAM,eAAe,OAAO,OAAO,MAAM;AAGzC,UAAM,CAAC,MAAM,IAAI,IAAI;AAAA,MACnB,aAAa,MAAM,GAAG,CAAC;AAAA,MACvB,aAAa,MAAM,aAAa,SAAS,CAAC;AAAA,IAC5C;AAKA,WAAO;AAAA,MACL,YAAY,aAAa,CAAC,CAAC;AAAA,MAC3B,GAAG;AAAA,MACH,GAAG;AAAA,MACH;AAAA,MACA,YAAY,aAAa,aAAa,SAAS,CAAC,CAAC;AAAA,IACnD;AAAA,EACF;AAEA,QAAM,aAAa;AACnB,QAAM,eAAe;AAAA,IACnB;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;AAEA,QAAM,YAAY;AAClB,QAAM,cAAc;AAAA,IAClB;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;AAEA,QAAM,oBAAgB;AAAA,QACpB,2BAAW,0BAAY,KAAK,EAAE;AAAA,MAC5B,CAAC,QACC,CAAC,SAAS,OAAO,gBAAgB,0BAAY,MAAM,GAAG,GAAG,UAAU,CAAC;AAAA,IACxE;AAAA,EACF;AAEA,QAAM,mBAAe;AAAA,QACnB,2BAAW,0BAAY,IAAI,EAAE;AAAA,MAC3B,CAAC,QAAQ,CAAC,QAAQ,OAAO,gBAAgB,0BAAY,KAAK,GAAG,GAAG,SAAS,CAAC;AAAA,IAC5E;AAAA,EACF;AAEA,QAAM,gBAAgB;AAAA,IACpB,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAEA,SAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,IACN,GAAG;AAAA,EACL;AACF,GAAG;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var templates_exports = {};
|
|
20
|
+
__export(templates_exports, {
|
|
21
|
+
maskOptions: () => maskOptions,
|
|
22
|
+
templates: () => templates
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(templates_exports);
|
|
25
|
+
var import_palettes = require("./palettes");
|
|
26
|
+
const { templates, maskOptions } = (() => {
|
|
27
|
+
const templateColors = {
|
|
28
|
+
color1: 1,
|
|
29
|
+
color2: 2,
|
|
30
|
+
color3: 3,
|
|
31
|
+
color4: 4,
|
|
32
|
+
color5: 5,
|
|
33
|
+
color6: 6,
|
|
34
|
+
color7: 7,
|
|
35
|
+
color8: 8,
|
|
36
|
+
color9: 9,
|
|
37
|
+
color10: 10,
|
|
38
|
+
color11: 11,
|
|
39
|
+
color12: 12
|
|
40
|
+
};
|
|
41
|
+
const template = {
|
|
42
|
+
...templateColors,
|
|
43
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
44
|
+
// can publish components for others to use without mandating a specific color scale
|
|
45
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
46
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
47
|
+
background: 2,
|
|
48
|
+
backgroundHover: 3,
|
|
49
|
+
backgroundPress: 4,
|
|
50
|
+
backgroundFocus: 5,
|
|
51
|
+
backgroundStrong: 1,
|
|
52
|
+
backgroundTransparent: 0,
|
|
53
|
+
color: -1,
|
|
54
|
+
colorHover: -2,
|
|
55
|
+
colorPress: -1,
|
|
56
|
+
colorFocus: -2,
|
|
57
|
+
colorTransparent: -0,
|
|
58
|
+
borderColor: 5,
|
|
59
|
+
borderColorHover: 6,
|
|
60
|
+
borderColorFocus: 4,
|
|
61
|
+
borderColorPress: 5,
|
|
62
|
+
placeholderColor: -4
|
|
63
|
+
};
|
|
64
|
+
const templates2 = {
|
|
65
|
+
base: template,
|
|
66
|
+
colorLight: {
|
|
67
|
+
...template,
|
|
68
|
+
// light color themes are a bit less sensitive
|
|
69
|
+
borderColor: 4,
|
|
70
|
+
borderColorHover: 5,
|
|
71
|
+
borderColorFocus: 4,
|
|
72
|
+
borderColorPress: 4
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const overrideShadows = {
|
|
76
|
+
shadowColor: 0,
|
|
77
|
+
shadowColorHover: 0,
|
|
78
|
+
shadowColorPress: 0,
|
|
79
|
+
shadowColorFocus: 0
|
|
80
|
+
};
|
|
81
|
+
const overrideWithColors = {
|
|
82
|
+
...overrideShadows,
|
|
83
|
+
color: 0,
|
|
84
|
+
colorHover: 0,
|
|
85
|
+
colorFocus: 0,
|
|
86
|
+
colorPress: 0
|
|
87
|
+
};
|
|
88
|
+
const baseMaskOptions = {
|
|
89
|
+
override: overrideShadows,
|
|
90
|
+
skip: overrideShadows,
|
|
91
|
+
// avoids the transparent ends
|
|
92
|
+
max: import_palettes.palettes.light.length - 2,
|
|
93
|
+
min: 1
|
|
94
|
+
};
|
|
95
|
+
const skipShadowsAndColors = {
|
|
96
|
+
...overrideShadows,
|
|
97
|
+
...templateColors
|
|
98
|
+
};
|
|
99
|
+
const maskOptions2 = {
|
|
100
|
+
component: {
|
|
101
|
+
...baseMaskOptions,
|
|
102
|
+
override: overrideWithColors,
|
|
103
|
+
skip: skipShadowsAndColors
|
|
104
|
+
},
|
|
105
|
+
alt: {
|
|
106
|
+
...baseMaskOptions
|
|
107
|
+
},
|
|
108
|
+
button: {
|
|
109
|
+
...baseMaskOptions,
|
|
110
|
+
override: {
|
|
111
|
+
...overrideWithColors,
|
|
112
|
+
borderColor: "transparent",
|
|
113
|
+
borderColorHover: "transparent"
|
|
114
|
+
},
|
|
115
|
+
skip: skipShadowsAndColors
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
return {
|
|
119
|
+
templates: templates2,
|
|
120
|
+
maskOptions: maskOptions2
|
|
121
|
+
};
|
|
122
|
+
})();
|
|
123
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
124
|
+
0 && (module.exports = {
|
|
125
|
+
maskOptions,
|
|
126
|
+
templates
|
|
127
|
+
});
|
|
128
|
+
//# sourceMappingURL=templates.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/templates.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB;AAElB,MAAM,EAAE,WAAW,YAAY,KAAK,MAAM;AAC/C,QAAM,iBAAiB;AAAA,IACrB,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,EACX;AAIA,QAAM,WAAW;AAAA,IACf,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,IAKH,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,IAClB,uBAAuB;AAAA,IACvB,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,kBAAkB;AAAA,IAClB,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAEA,QAAMA,aAAY;AAAA,IAChB,MAAM;AAAA,IACN,YAAY;AAAA,MACV,GAAG;AAAA;AAAA,MAEH,aAAa;AAAA,MACb,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,IACpB;AAAA,EACF;AAEA,QAAM,kBAAkB;AAAA,IACtB,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAEA,QAAM,qBAAqB;AAAA,IACzB,GAAG;AAAA,IACH,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,EACd;AAEA,QAAM,kBAA+B;AAAA,IACnC,UAAU;AAAA,IACV,MAAM;AAAA;AAAA,IAEN,KAAK,yBAAS,MAAM,SAAS;AAAA,IAC7B,KAAK;AAAA,EACP;AAEA,QAAM,uBAAuB;AAAA,IAC3B,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAEA,QAAMC,eAAc;AAAA,IAClB,WAAW;AAAA,MACT,GAAG;AAAA,MACH,UAAU;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,KAAK;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,UAAU;AAAA,QACR,GAAG;AAAA,QACH,aAAa;AAAA,QACb,kBAAkB;AAAA,MACpB;AAAA,MACA,MAAM;AAAA,IACR;AAAA,EACF;AAEA,SAAO;AAAA,IACL,WAAAD;AAAA,IACA,aAAAC;AAAA,EACF;AACF,GAAG;",
|
|
5
|
+
"names": ["templates", "maskOptions"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var themes_new_exports = {};
|
|
20
|
+
__export(themes_new_exports, {
|
|
21
|
+
themes: () => themes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(themes_new_exports);
|
|
24
|
+
var import_create_theme = require("@tamagui/create-theme");
|
|
25
|
+
var import_componentThemeDefinitions = require("./componentThemeDefinitions");
|
|
26
|
+
var import_masks = require("./masks");
|
|
27
|
+
var import_palettes = require("./palettes");
|
|
28
|
+
var import_templates = require("./templates");
|
|
29
|
+
var import_tokens = require("./tokens");
|
|
30
|
+
const lightShadowColor = "rgba(0,0,0,0.02)";
|
|
31
|
+
const lightShadowColorStrong = "rgba(0,0,0,0.066)";
|
|
32
|
+
const darkShadowColor = "rgba(0,0,0,0.2)";
|
|
33
|
+
const darkShadowColorStrong = "rgba(0,0,0,0.3)";
|
|
34
|
+
const lightShadows = {
|
|
35
|
+
shadowColor: lightShadowColorStrong,
|
|
36
|
+
shadowColorHover: lightShadowColorStrong,
|
|
37
|
+
shadowColorPress: lightShadowColor,
|
|
38
|
+
shadowColorFocus: lightShadowColor
|
|
39
|
+
};
|
|
40
|
+
const darkShadows = {
|
|
41
|
+
shadowColor: darkShadowColorStrong,
|
|
42
|
+
shadowColorHover: darkShadowColorStrong,
|
|
43
|
+
shadowColorPress: darkShadowColor,
|
|
44
|
+
shadowColorFocus: darkShadowColor
|
|
45
|
+
};
|
|
46
|
+
const colorThemeDefinition = (colorName) => [
|
|
47
|
+
{
|
|
48
|
+
parent: "light",
|
|
49
|
+
palette: colorName,
|
|
50
|
+
template: "colorLight"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
parent: "dark",
|
|
54
|
+
palette: colorName,
|
|
55
|
+
template: "base"
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
const themesBuilder = (0, import_create_theme.createThemeBuilder)().addPalettes(import_palettes.palettes).addTemplates(import_templates.templates).addMasks(import_masks.masks).addThemes({
|
|
59
|
+
light: {
|
|
60
|
+
template: "base",
|
|
61
|
+
palette: "light",
|
|
62
|
+
nonInheritedValues: {
|
|
63
|
+
...import_tokens.lightColors,
|
|
64
|
+
...lightShadows
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
dark: {
|
|
68
|
+
template: "base",
|
|
69
|
+
palette: "dark",
|
|
70
|
+
nonInheritedValues: {
|
|
71
|
+
...import_tokens.darkColors,
|
|
72
|
+
...darkShadows
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}).addChildThemes({
|
|
76
|
+
orange: colorThemeDefinition("orange"),
|
|
77
|
+
yellow: colorThemeDefinition("yellow"),
|
|
78
|
+
green: colorThemeDefinition("green"),
|
|
79
|
+
blue: colorThemeDefinition("blue"),
|
|
80
|
+
purple: colorThemeDefinition("purple"),
|
|
81
|
+
pink: colorThemeDefinition("pink"),
|
|
82
|
+
red: colorThemeDefinition("red")
|
|
83
|
+
}).addChildThemes({
|
|
84
|
+
alt1: {
|
|
85
|
+
mask: "soften",
|
|
86
|
+
...import_templates.maskOptions.alt
|
|
87
|
+
},
|
|
88
|
+
alt2: {
|
|
89
|
+
mask: "soften2",
|
|
90
|
+
...import_templates.maskOptions.alt
|
|
91
|
+
},
|
|
92
|
+
active: {
|
|
93
|
+
mask: "soften3",
|
|
94
|
+
skip: {
|
|
95
|
+
color: 1
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}).addChildThemes(import_componentThemeDefinitions.componentThemeDefinitions, {
|
|
99
|
+
// TODO types should then avoid generating these types!
|
|
100
|
+
avoidNestingWithin: ["alt1", "alt2", "active"]
|
|
101
|
+
});
|
|
102
|
+
const themes = themesBuilder.build();
|
|
103
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
104
|
+
0 && (module.exports = {
|
|
105
|
+
themes
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=themes-new.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/themes-new.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAmC;AAEnC,uCAA0C;AAC1C,mBAAsB;AACtB,sBAAyB;AACzB,uBAAuC;AACvC,oBAAwC;AAExC,MAAM,mBAAmB;AACzB,MAAM,yBAAyB;AAC/B,MAAM,kBAAkB;AACxB,MAAM,wBAAwB;AAE9B,MAAM,eAAe;AAAA,EACnB,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AACpB;AAEA,MAAM,cAAc;AAAA,EAClB,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AACpB;AAEA,MAAM,uBAAuB,CAAC,cAAsB;AAAA,EAClD;AAAA,IACE,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AACF;AAEA,MAAM,oBAAgB,wCAAmB,EACtC,YAAY,wBAAQ,EACpB,aAAa,0BAAS,EACtB,SAAS,kBAAK,EACd,UAAU;AAAA,EACT,OAAO;AAAA,IACL,UAAU;AAAA,IACV,SAAS;AAAA,IACT,oBAAoB;AAAA,MAClB,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,EACF;AAAA,EACA,MAAM;AAAA,IACJ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,oBAAoB;AAAA,MAClB,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,EACF;AACF,CAAC,EACA,eAAe;AAAA,EACd,QAAQ,qBAAqB,QAAQ;AAAA,EACrC,QAAQ,qBAAqB,QAAQ;AAAA,EACrC,OAAO,qBAAqB,OAAO;AAAA,EACnC,MAAM,qBAAqB,MAAM;AAAA,EACjC,QAAQ,qBAAqB,QAAQ;AAAA,EACrC,MAAM,qBAAqB,MAAM;AAAA,EACjC,KAAK,qBAAqB,KAAK;AACjC,CAAC,EACA,eAAe;AAAA,EACd,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,GAAG,6BAAY;AAAA,EACjB;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,GAAG,6BAAY;AAAA,EACjB;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,EACF;AACF,CAAC,EACA,eAAe,4DAA2B;AAAA;AAAA,EAEzC,oBAAoB,CAAC,QAAQ,QAAQ,QAAQ;AAC/C,CAAC;AAEI,MAAM,SAAS,cAAc,MAAM;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var themes_old_exports = {};
|
|
20
|
+
__export(themes_old_exports, {
|
|
21
|
+
themes: () => themes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(themes_old_exports);
|
|
24
|
+
var import_create_theme = require("@tamagui/create-theme");
|
|
25
|
+
var import_tokens = require("./tokens");
|
|
26
|
+
const lightTransparent = "rgba(255,255,255,0)";
|
|
27
|
+
const darkTransparent = "rgba(10,10,10,0)";
|
|
28
|
+
const palettes = {
|
|
29
|
+
dark: [
|
|
30
|
+
darkTransparent,
|
|
31
|
+
"#050505",
|
|
32
|
+
"#151515",
|
|
33
|
+
"#191919",
|
|
34
|
+
"#232323",
|
|
35
|
+
"#282828",
|
|
36
|
+
"#323232",
|
|
37
|
+
"#424242",
|
|
38
|
+
"#494949",
|
|
39
|
+
"#545454",
|
|
40
|
+
"#626262",
|
|
41
|
+
"#a5a5a5",
|
|
42
|
+
"#fff",
|
|
43
|
+
lightTransparent
|
|
44
|
+
],
|
|
45
|
+
light: [
|
|
46
|
+
lightTransparent,
|
|
47
|
+
"#fff",
|
|
48
|
+
"#f9f9f9",
|
|
49
|
+
"hsl(0, 0%, 97.3%)",
|
|
50
|
+
"hsl(0, 0%, 95.1%)",
|
|
51
|
+
"hsl(0, 0%, 94.0%)",
|
|
52
|
+
"hsl(0, 0%, 92.0%)",
|
|
53
|
+
"hsl(0, 0%, 89.5%)",
|
|
54
|
+
"hsl(0, 0%, 81.0%)",
|
|
55
|
+
"hsl(0, 0%, 56.1%)",
|
|
56
|
+
"hsl(0, 0%, 50.3%)",
|
|
57
|
+
"hsl(0, 0%, 42.5%)",
|
|
58
|
+
"hsl(0, 0%, 9.0%)",
|
|
59
|
+
darkTransparent
|
|
60
|
+
]
|
|
61
|
+
};
|
|
62
|
+
const templateColors = {
|
|
63
|
+
color1: 1,
|
|
64
|
+
color2: 2,
|
|
65
|
+
color3: 3,
|
|
66
|
+
color4: 4,
|
|
67
|
+
color5: 5,
|
|
68
|
+
color6: 6,
|
|
69
|
+
color7: 7,
|
|
70
|
+
color8: 8,
|
|
71
|
+
color9: 9,
|
|
72
|
+
color10: 10,
|
|
73
|
+
color11: 11,
|
|
74
|
+
color12: 12
|
|
75
|
+
};
|
|
76
|
+
const templateShadows = {
|
|
77
|
+
shadowColor: 1,
|
|
78
|
+
shadowColorHover: 1,
|
|
79
|
+
shadowColorPress: 2,
|
|
80
|
+
shadowColorFocus: 2
|
|
81
|
+
};
|
|
82
|
+
const toSkip = {
|
|
83
|
+
...templateShadows
|
|
84
|
+
};
|
|
85
|
+
const override = Object.fromEntries(Object.entries(toSkip).map(([k]) => [k, 0]));
|
|
86
|
+
const overrideShadows = Object.fromEntries(
|
|
87
|
+
Object.entries(templateShadows).map(([k]) => [k, 0])
|
|
88
|
+
);
|
|
89
|
+
const overrideWithColors = {
|
|
90
|
+
...override,
|
|
91
|
+
color: 0,
|
|
92
|
+
colorHover: 0,
|
|
93
|
+
colorFocus: 0,
|
|
94
|
+
colorPress: 0
|
|
95
|
+
};
|
|
96
|
+
const template = {
|
|
97
|
+
...templateColors,
|
|
98
|
+
...toSkip,
|
|
99
|
+
// the background, color, etc keys here work like generics - they make it so you
|
|
100
|
+
// can publish components for others to use without mandating a specific color scale
|
|
101
|
+
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
102
|
+
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
103
|
+
background: 2,
|
|
104
|
+
backgroundHover: 3,
|
|
105
|
+
backgroundPress: 4,
|
|
106
|
+
backgroundFocus: 5,
|
|
107
|
+
backgroundStrong: 1,
|
|
108
|
+
backgroundTransparent: 0,
|
|
109
|
+
color: -1,
|
|
110
|
+
colorHover: -2,
|
|
111
|
+
colorPress: -1,
|
|
112
|
+
colorFocus: -2,
|
|
113
|
+
colorTransparent: -0,
|
|
114
|
+
borderColor: 4,
|
|
115
|
+
borderColorHover: 5,
|
|
116
|
+
borderColorPress: 3,
|
|
117
|
+
borderColorFocus: 4,
|
|
118
|
+
placeholderColor: -4
|
|
119
|
+
};
|
|
120
|
+
const lightShadowColor = "rgba(0,0,0,0.02)";
|
|
121
|
+
const lightShadowColorStrong = "rgba(0,0,0,0.066)";
|
|
122
|
+
const darkShadowColor = "rgba(0,0,0,0.2)";
|
|
123
|
+
const darkShadowColorStrong = "rgba(0,0,0,0.3)";
|
|
124
|
+
const lightShadows = {
|
|
125
|
+
shadowColor: lightShadowColorStrong,
|
|
126
|
+
shadowColorHover: lightShadowColorStrong,
|
|
127
|
+
shadowColorPress: lightShadowColor,
|
|
128
|
+
shadowColorFocus: lightShadowColor
|
|
129
|
+
};
|
|
130
|
+
const darkShadows = {
|
|
131
|
+
shadowColor: darkShadowColorStrong,
|
|
132
|
+
shadowColorHover: darkShadowColorStrong,
|
|
133
|
+
shadowColorPress: darkShadowColor,
|
|
134
|
+
shadowColorFocus: darkShadowColor
|
|
135
|
+
};
|
|
136
|
+
const lightTemplate = {
|
|
137
|
+
...template,
|
|
138
|
+
background: 2,
|
|
139
|
+
backgroundHover: 3,
|
|
140
|
+
backgroundPress: 4,
|
|
141
|
+
// our light color palette is... a bit unique
|
|
142
|
+
borderColor: 6,
|
|
143
|
+
borderColorHover: 7,
|
|
144
|
+
borderColorFocus: 5,
|
|
145
|
+
borderColorPress: 6,
|
|
146
|
+
...lightShadows
|
|
147
|
+
};
|
|
148
|
+
const darkTemplate = { ...template, ...darkShadows };
|
|
149
|
+
const light = (0, import_create_theme.createTheme)(palettes.light, lightTemplate);
|
|
150
|
+
const dark = (0, import_create_theme.createTheme)(palettes.dark, darkTemplate);
|
|
151
|
+
const baseThemes = {
|
|
152
|
+
light,
|
|
153
|
+
dark
|
|
154
|
+
};
|
|
155
|
+
const masks = {
|
|
156
|
+
skip: import_create_theme.skipMask,
|
|
157
|
+
weaker: (0, import_create_theme.createWeakenMask)(),
|
|
158
|
+
stronger: (0, import_create_theme.createStrengthenMask)()
|
|
159
|
+
};
|
|
160
|
+
const maskOptions = {
|
|
161
|
+
override,
|
|
162
|
+
skip: toSkip,
|
|
163
|
+
// avoids the transparent ends
|
|
164
|
+
max: palettes.light.length - 2,
|
|
165
|
+
min: 1
|
|
166
|
+
};
|
|
167
|
+
const transparent = (hsl, opacity = 0) => hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`);
|
|
168
|
+
const [lightColorThemes, darkColorThemes] = [import_tokens.colorTokens.light, import_tokens.colorTokens.dark].map(
|
|
169
|
+
(colorSet, i) => {
|
|
170
|
+
const isLight = i === 0;
|
|
171
|
+
const theme = baseThemes[isLight ? "light" : "dark"];
|
|
172
|
+
return Object.fromEntries(
|
|
173
|
+
Object.keys(colorSet).map((color) => {
|
|
174
|
+
const colorPalette = Object.values(colorSet[color]);
|
|
175
|
+
const [head, tail] = [
|
|
176
|
+
colorPalette.slice(0, 6),
|
|
177
|
+
colorPalette.slice(colorPalette.length - 5)
|
|
178
|
+
];
|
|
179
|
+
const palette = [
|
|
180
|
+
transparent(colorPalette[0]),
|
|
181
|
+
...head,
|
|
182
|
+
...tail,
|
|
183
|
+
theme.color,
|
|
184
|
+
transparent(colorPalette[colorPalette.length - 1])
|
|
185
|
+
];
|
|
186
|
+
const colorTheme = (0, import_create_theme.createTheme)(
|
|
187
|
+
palette,
|
|
188
|
+
isLight ? {
|
|
189
|
+
...lightTemplate,
|
|
190
|
+
// light color themes are a bit less sensitive
|
|
191
|
+
borderColor: 4,
|
|
192
|
+
borderColorHover: 5,
|
|
193
|
+
borderColorFocus: 4,
|
|
194
|
+
borderColorPress: 4
|
|
195
|
+
} : darkTemplate
|
|
196
|
+
);
|
|
197
|
+
return [color, colorTheme];
|
|
198
|
+
})
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
const allThemes = (0, import_create_theme.addChildren)(baseThemes, (name, theme) => {
|
|
203
|
+
const isLight = name === "light";
|
|
204
|
+
const inverseName = isLight ? "dark" : "light";
|
|
205
|
+
const inverseTheme = baseThemes[inverseName];
|
|
206
|
+
const colorThemes = isLight ? lightColorThemes : darkColorThemes;
|
|
207
|
+
const inverseColorThemes = isLight ? darkColorThemes : lightColorThemes;
|
|
208
|
+
const allColorThemes = (0, import_create_theme.addChildren)(colorThemes, (colorName, colorTheme) => {
|
|
209
|
+
const inverse = inverseColorThemes[colorName];
|
|
210
|
+
return {
|
|
211
|
+
...getAltThemes({
|
|
212
|
+
theme: colorTheme,
|
|
213
|
+
inverse,
|
|
214
|
+
isLight
|
|
215
|
+
}),
|
|
216
|
+
...getComponentThemes(colorTheme, inverse, isLight)
|
|
217
|
+
};
|
|
218
|
+
});
|
|
219
|
+
const baseSubThemes = {
|
|
220
|
+
...getAltThemes({ theme, inverse: inverseTheme, isLight }),
|
|
221
|
+
...getComponentThemes(theme, inverseTheme, isLight)
|
|
222
|
+
};
|
|
223
|
+
return {
|
|
224
|
+
...baseSubThemes,
|
|
225
|
+
...allColorThemes
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
function getAltThemes({
|
|
229
|
+
theme,
|
|
230
|
+
inverse,
|
|
231
|
+
isLight,
|
|
232
|
+
activeTheme
|
|
233
|
+
}) {
|
|
234
|
+
const maskOptionsAlt = {
|
|
235
|
+
...maskOptions,
|
|
236
|
+
override: overrideShadows
|
|
237
|
+
};
|
|
238
|
+
const alt1 = (0, import_create_theme.applyMask)(theme, masks.weaker, maskOptionsAlt);
|
|
239
|
+
const alt2 = (0, import_create_theme.applyMask)(alt1, masks.weaker, maskOptionsAlt);
|
|
240
|
+
const active = activeTheme ?? (process.env.ACTIVE_THEME_INVERSE ? inverse : (() => {
|
|
241
|
+
return (0, import_create_theme.applyMask)(theme, masks.weaker, {
|
|
242
|
+
...maskOptions,
|
|
243
|
+
strength: 3,
|
|
244
|
+
skip: {
|
|
245
|
+
...maskOptions.skip,
|
|
246
|
+
color: 1
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
})());
|
|
250
|
+
return (0, import_create_theme.addChildren)({ alt1, alt2, active }, (_, subTheme) => {
|
|
251
|
+
return getComponentThemes(subTheme, subTheme === inverse ? theme : inverse, isLight);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
function getComponentThemes(theme, inverse, isLight) {
|
|
255
|
+
const componentMaskOptions = {
|
|
256
|
+
...maskOptions,
|
|
257
|
+
override: overrideWithColors,
|
|
258
|
+
skip: {
|
|
259
|
+
...maskOptions.skip,
|
|
260
|
+
// skip colors too just for component sub themes
|
|
261
|
+
...templateColors
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
const weaker1 = (0, import_create_theme.applyMask)(theme, masks.weaker, componentMaskOptions);
|
|
265
|
+
const base = (0, import_create_theme.applyMask)(weaker1, masks.stronger, componentMaskOptions);
|
|
266
|
+
const weaker2 = (0, import_create_theme.applyMask)(weaker1, masks.weaker, componentMaskOptions);
|
|
267
|
+
const stronger1 = (0, import_create_theme.applyMask)(theme, masks.stronger, componentMaskOptions);
|
|
268
|
+
const inverse1 = (0, import_create_theme.applyMask)(inverse, masks.weaker, componentMaskOptions);
|
|
269
|
+
const inverse2 = (0, import_create_theme.applyMask)(inverse1, masks.weaker, componentMaskOptions);
|
|
270
|
+
const strongerBorderLighterBackground = isLight ? {
|
|
271
|
+
...stronger1,
|
|
272
|
+
borderColor: weaker1.borderColor,
|
|
273
|
+
borderColorHover: weaker1.borderColorHover,
|
|
274
|
+
borderColorPress: weaker1.borderColorPress,
|
|
275
|
+
borderColorFocus: weaker1.borderColorFocus
|
|
276
|
+
} : {
|
|
277
|
+
...(0, import_create_theme.applyMask)(theme, masks.skip, componentMaskOptions),
|
|
278
|
+
borderColor: weaker1.borderColor,
|
|
279
|
+
borderColorHover: weaker1.borderColorHover,
|
|
280
|
+
borderColorPress: weaker1.borderColorPress,
|
|
281
|
+
borderColorFocus: weaker1.borderColorFocus
|
|
282
|
+
};
|
|
283
|
+
const overlayTheme = {
|
|
284
|
+
background: isLight ? "rgba(0,0,0,0.5)" : "rgba(0,0,0,0.9)"
|
|
285
|
+
};
|
|
286
|
+
const weaker2WithoutBorder = {
|
|
287
|
+
...weaker2,
|
|
288
|
+
borderColor: "transparent",
|
|
289
|
+
borderColorHover: "transparent"
|
|
290
|
+
};
|
|
291
|
+
return {
|
|
292
|
+
ListItem: isLight ? stronger1 : base,
|
|
293
|
+
Card: weaker1,
|
|
294
|
+
Button: weaker2WithoutBorder,
|
|
295
|
+
Checkbox: weaker2,
|
|
296
|
+
DrawerFrame: weaker1,
|
|
297
|
+
SliderTrack: stronger1,
|
|
298
|
+
SliderTrackActive: weaker2,
|
|
299
|
+
SliderThumb: inverse1,
|
|
300
|
+
Progress: weaker1,
|
|
301
|
+
ProgressIndicator: inverse,
|
|
302
|
+
Switch: weaker2,
|
|
303
|
+
SwitchThumb: inverse2,
|
|
304
|
+
TooltipArrow: weaker1,
|
|
305
|
+
TooltipContent: weaker2,
|
|
306
|
+
Input: strongerBorderLighterBackground,
|
|
307
|
+
TextArea: strongerBorderLighterBackground,
|
|
308
|
+
Tooltip: inverse1,
|
|
309
|
+
// make overlays always dark
|
|
310
|
+
SheetOverlay: overlayTheme,
|
|
311
|
+
DialogOverlay: overlayTheme,
|
|
312
|
+
ModalOverlay: overlayTheme
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
const themes = {
|
|
316
|
+
...allThemes,
|
|
317
|
+
// bring back the full type, the rest use a subset to avoid clogging up ts,
|
|
318
|
+
// tamagui will be smart and use the top level themes as the type for useTheme() etc
|
|
319
|
+
light: (0, import_create_theme.createTheme)(palettes.light, lightTemplate, { nonInheritedValues: import_tokens.lightColors }),
|
|
320
|
+
dark: (0, import_create_theme.createTheme)(palettes.dark, darkTemplate, { nonInheritedValues: import_tokens.darkColors })
|
|
321
|
+
};
|
|
322
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
323
|
+
0 && (module.exports = {
|
|
324
|
+
themes
|
|
325
|
+
});
|
|
326
|
+
//# sourceMappingURL=themes-old.js.map
|