@alien6-studio/elea-tokens 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +272 -2
- package/dist/editions.css +1259 -0
- package/dist/elea.css +396 -0
- package/dist/fonts/ELEASans-Italic-Variable.woff2 +0 -0
- package/dist/fonts/ELEASans-Variable.woff2 +0 -0
- package/dist/fonts/elea-sans.css +19 -0
- package/dist/palette.css +236 -0
- package/dist/shadcn.css +22 -0
- package/dist/src/brand.d.ts +206 -0
- package/dist/src/brand.d.ts.map +1 -0
- package/dist/src/brand.js +446 -0
- package/dist/src/brand.js.map +1 -0
- package/dist/src/color-themes.d.ts +9 -0
- package/dist/src/color-themes.d.ts.map +1 -0
- package/dist/src/color-themes.js +30 -0
- package/dist/src/color-themes.js.map +1 -0
- package/dist/src/css.d.ts +58 -0
- package/dist/src/css.d.ts.map +1 -0
- package/dist/src/css.js +198 -0
- package/dist/src/css.js.map +1 -0
- package/dist/src/dtcg.d.ts +24 -0
- package/dist/src/dtcg.d.ts.map +1 -0
- package/dist/src/dtcg.js +56 -0
- package/dist/src/dtcg.js.map +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +19 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/palette.d.ts +463 -0
- package/dist/src/palette.d.ts.map +1 -0
- package/dist/src/palette.js +215 -0
- package/dist/src/palette.js.map +1 -0
- package/dist/src/status.d.ts +26 -0
- package/dist/src/status.d.ts.map +1 -0
- package/dist/src/status.js +36 -0
- package/dist/src/status.js.map +1 -0
- package/dist/tailwind.d.ts +6 -0
- package/dist/tailwind.js +222 -0
- package/dist/theme.css +142 -0
- package/dist/tokens/elea.dark.tokens.json +114 -0
- package/dist/tokens/elea.tokens.json +190 -0
- package/package.json +77 -4
- package/tokens/elea.dark.tokens.json +114 -0
- package/tokens/elea.tokens.json +190 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/** Semantic colour assignments available on a brand. */
|
|
2
|
+
export const brandColorRoles = ["primary", "secondary", "tertiary", "success", "info", "warning", "danger"];
|
|
3
|
+
/** ELEA reference tones, from the lightest to the darkest. */
|
|
4
|
+
export const colorSteps = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
5
|
+
/** Primary and secondary actions use this tone until another shade is assigned. */
|
|
6
|
+
export const defaultColorStep = 500;
|
|
7
|
+
// Families share a perceptual lightness axis. Chroma peaks around the middle of the scale.
|
|
8
|
+
const lightness = [0.975, 0.945, 0.89, 0.81, 0.72, 0.635, 0.535, 0.46, 0.385, 0.302, 0.218];
|
|
9
|
+
const saturation = [0.1, 0.23, 0.44, 0.68, 0.87, 1, 0.96, 0.84, 0.67, 0.49, 0.33];
|
|
10
|
+
// Inverse Oklab transform to linear sRGB (Björn Ottosson).
|
|
11
|
+
function linearRgb(light, a, b) {
|
|
12
|
+
const l = (light + 0.3963377774 * a + 0.2158037573 * b) ** 3;
|
|
13
|
+
const m = (light - 0.1055613458 * a - 0.0638541728 * b) ** 3;
|
|
14
|
+
const s = (light - 0.0894841775 * a - 1.291485548 * b) ** 3;
|
|
15
|
+
return [
|
|
16
|
+
4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
|
|
17
|
+
-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,
|
|
18
|
+
-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
function srgbByte(channel) {
|
|
22
|
+
const encoded = channel <= 0.0031308 ? 12.92 * channel : 1.055 * channel ** (1 / 2.4) - 0.055;
|
|
23
|
+
return Math.round(encoded * 255).toString(16).padStart(2, "0");
|
|
24
|
+
}
|
|
25
|
+
function family(hue, peakChroma, chromaCurve = saturation) {
|
|
26
|
+
const radians = hue * Math.PI / 180;
|
|
27
|
+
const cosine = Math.cos(radians);
|
|
28
|
+
const sine = Math.sin(radians);
|
|
29
|
+
return colorSteps.map((step, index) => {
|
|
30
|
+
const light = lightness[index];
|
|
31
|
+
let upper = peakChroma * chromaCurve[index];
|
|
32
|
+
let rgb = linearRgb(light, upper * cosine, upper * sine);
|
|
33
|
+
if (rgb.some(channel => channel < 0 || channel > 1)) {
|
|
34
|
+
// Reduce only chroma until all three channels can be displayed in sRGB.
|
|
35
|
+
let lower = 0;
|
|
36
|
+
while (upper - lower > 0.00001) {
|
|
37
|
+
const middle = (upper + lower) / 2;
|
|
38
|
+
const candidate = linearRgb(light, middle * cosine, middle * sine);
|
|
39
|
+
if (candidate.every(channel => channel >= 0 && channel <= 1))
|
|
40
|
+
lower = middle;
|
|
41
|
+
else
|
|
42
|
+
upper = middle;
|
|
43
|
+
}
|
|
44
|
+
rgb = linearRgb(light, lower * cosine, lower * sine);
|
|
45
|
+
}
|
|
46
|
+
return { step, value: "#" + rgb.map(srgbByte).join("") };
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** Named hue families with appearance-independent sRGB swatches. */
|
|
50
|
+
export const colorFamilies = {
|
|
51
|
+
Ruby: family(22, 0.205),
|
|
52
|
+
Coral: family(37, 0.185),
|
|
53
|
+
Copper: family(54, 0.155),
|
|
54
|
+
Amber: family(80, 0.165),
|
|
55
|
+
Citron: family(110, 0.16),
|
|
56
|
+
Fern: family(142, 0.155),
|
|
57
|
+
Emerald: family(165, 0.145),
|
|
58
|
+
Lagoon: family(197, 0.13),
|
|
59
|
+
Sky: family(232, 0.15),
|
|
60
|
+
Cobalt: family(264, 0.2),
|
|
61
|
+
Iris: family(285, 0.185),
|
|
62
|
+
Violet: family(306, 0.175),
|
|
63
|
+
Plum: family(328, 0.15),
|
|
64
|
+
Rose: family(352, 0.18),
|
|
65
|
+
Slate: family(253, 0.024),
|
|
66
|
+
// Warm paper in the highlights, unbleached linen in the middle, carbon in the shadows.
|
|
67
|
+
Sand: family(90, 0.052, [0.65, 0.84, 1, 0.9, 0.8, 0.7, 0.59, 0.49, 0.4, 0.27, 0.12]),
|
|
68
|
+
};
|
|
69
|
+
// Art-directed neutrals keep the paper and the ink of a scheme as their exact endpoints.
|
|
70
|
+
function surfaceRamp(paper, ink) {
|
|
71
|
+
const amounts = [0, 0.045, 0.1, 0.21, 0.32, 0.5, 0.68, 0.85, 0.9, 0.95, 1];
|
|
72
|
+
return colorSteps.map((step, index) => {
|
|
73
|
+
const value = [1, 3, 5].map(offset => {
|
|
74
|
+
const start = Number.parseInt(paper.slice(offset, offset + 2), 16);
|
|
75
|
+
const end = Number.parseInt(ink.slice(offset, offset + 2), 16);
|
|
76
|
+
return Math.round(start + (end - start) * amounts[index]).toString(16).padStart(2, "0");
|
|
77
|
+
}).join("");
|
|
78
|
+
return { step, value: "#" + value };
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/** Families available for surfaces, text and borders, including the atlas families. */
|
|
82
|
+
export const surfaceFamilies = {
|
|
83
|
+
...colorFamilies,
|
|
84
|
+
Gray: surfaceRamp("#ffffff", "#151515"),
|
|
85
|
+
Ivory: surfaceRamp("#f2eee3", "#181817"),
|
|
86
|
+
Porcelain: surfaceRamp("#f5f2e9", "#17152b"),
|
|
87
|
+
Madder: surfaceRamp("#f7e8e1", "#321f2e"),
|
|
88
|
+
Chalk: surfaceRamp("#f1f0e7", "#344d54"),
|
|
89
|
+
};
|
|
90
|
+
export const defaultTertiaryFamily = "Violet";
|
|
91
|
+
/** Key colours for each scheme and role-based corner shapes for the complete profiles. */
|
|
92
|
+
export const colorThemes = {
|
|
93
|
+
rasance: {
|
|
94
|
+
name: "Rasance", style: "Carbon & ivory", neutral: "Gray",
|
|
95
|
+
profile: { controls: "inset", typeface: "Sans", rhythm: "Balanced", corner: "Square" },
|
|
96
|
+
// Opposing shallow edges suggest the ridges picked out by raking light.
|
|
97
|
+
shapes: { action: "0.875rem 0 / 0.25rem 0", control: "0", surface: "0", indicator: "0.625rem 0 / 0.1875rem 0" },
|
|
98
|
+
colours: {
|
|
99
|
+
primary: "#181817", secondary: "#d3cec1", tertiary: "#686963",
|
|
100
|
+
success: "#546752", info: "#526571", warning: "#936735", danger: "#914444",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
reserve: {
|
|
104
|
+
name: "Réserve", style: "Ultramarine & chalk", neutral: "Gray",
|
|
105
|
+
profile: { controls: "flat", typeface: "Sans", rhythm: "Compact", corner: "Square" },
|
|
106
|
+
// Cap the spread of the imprint on wide actions; keep its four unequal arcs on small marks.
|
|
107
|
+
shapes: {
|
|
108
|
+
action: "min(30%, 3.75rem) min(17%, 2.125rem) min(29%, 3.625rem) min(21%, 2.625rem) / 48% 40% 54% 38%",
|
|
109
|
+
control: "0", surface: "0.1875rem", indicator: "var(--elea-shape-action)",
|
|
110
|
+
},
|
|
111
|
+
colours: {
|
|
112
|
+
primary: "#2926bf", secondary: "#a6afd9", tertiary: "#504878",
|
|
113
|
+
success: "#447665", info: "#4765a4", warning: "#a07430", danger: "#a24e5a",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
braise: {
|
|
117
|
+
name: "Braise", style: "Madder & apricot", neutral: "Gray",
|
|
118
|
+
profile: { controls: "raised", typeface: "Serif", rhythm: "Airy", corner: "Soft" },
|
|
119
|
+
// Broad horizontal curves soften the edges of stacked fields of colour.
|
|
120
|
+
shapes: { action: "0.875rem / 0.375rem", control: "0.5rem / 0.25rem", surface: "1.5rem / 0.625rem", indicator: "0.625rem / 0.25rem" },
|
|
121
|
+
colours: {
|
|
122
|
+
primary: "#f0aa70", secondary: "#873f47", tertiary: "#d39a99",
|
|
123
|
+
success: "#61795d", info: "#657a93", warning: "#aa7938", danger: "#a64051",
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
"hors-champ": {
|
|
127
|
+
name: "Hors champ", style: "Sky & petrol", neutral: "Gray",
|
|
128
|
+
profile: { controls: "flat", typeface: "Sans", rhythm: "Airy", corner: "Soft" },
|
|
129
|
+
// A photographic frame contains a small sign with eased corners.
|
|
130
|
+
shapes: { action: "0.1875rem", control: "0.125rem", surface: "0", indicator: "0.1875rem" },
|
|
131
|
+
colours: {
|
|
132
|
+
primary: "#344d54", secondary: "#aec8d7", tertiary: "#ba482c",
|
|
133
|
+
success: "#4e7567", info: "#547791", warning: "#a27944", danger: "#a64350",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
"hors-registre": {
|
|
137
|
+
name: "Hors registre", style: "Tangerine & hot pink", neutral: "Gray",
|
|
138
|
+
profile: { controls: "raised", typeface: "Sans", rhythm: "Balanced", corner: "Square" },
|
|
139
|
+
// Offset opposing corners repeat through the inked forms.
|
|
140
|
+
shapes: { action: "0.125rem 0.875rem", control: "0.125rem 0.375rem", surface: "0 1rem", indicator: "0 0.625rem" },
|
|
141
|
+
colours: {
|
|
142
|
+
primary: "#ee762e", secondary: "#d64a85", tertiary: "#248d96",
|
|
143
|
+
success: "#39734c", info: "#316f85", warning: "#9c6b20", danger: "#ac3549",
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
echappee: {
|
|
147
|
+
name: "Échappée", style: "Signal red & stencil black", neutral: "Gray",
|
|
148
|
+
profile: { controls: "flat", typeface: "Sans", rhythm: "Compact", corner: "Soft" },
|
|
149
|
+
// The rounded balloon tapers to an attachment at its lower left.
|
|
150
|
+
shapes: { action: "1.125rem 1.125rem 1.125rem 0", control: "0.375rem 0.375rem 0.375rem 0", surface: "0.875rem 0.875rem 0.875rem 0", indicator: "0.875rem 0.875rem 0.875rem 0" },
|
|
151
|
+
colours: {
|
|
152
|
+
primary: "#c42832", secondary: "#272728", tertiary: "#c4bfb6",
|
|
153
|
+
success: "#52715a", info: "#526d83", warning: "#977137", danger: "#902637",
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
"grand-bain": {
|
|
157
|
+
name: "Grand bain", style: "Pool blue & stucco pink", neutral: "Gray",
|
|
158
|
+
profile: { controls: "flat", typeface: "Sans", rhythm: "Airy", corner: "Square" },
|
|
159
|
+
// A level base anchors the raised arc of the water.
|
|
160
|
+
shapes: { action: "1.125rem 1.125rem 0 0 / 0.625rem 0.625rem 0 0", control: "0.375rem 0.375rem 0 0", surface: "1.75rem 1.75rem 0 0 / 0.875rem 0.875rem 0 0", indicator: "0.75rem 0.75rem 0 0" },
|
|
161
|
+
colours: {
|
|
162
|
+
primary: "#298ac4", secondary: "#dcaa9c", tertiary: "#dfbc52",
|
|
163
|
+
success: "#488068", info: "#405e9d", warning: "#a87726", danger: "#a74847",
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
ponctuation: {
|
|
167
|
+
name: "Ponctuation", style: "Pumpkin yellow & jet black", neutral: "Gray",
|
|
168
|
+
profile: { controls: "inset", typeface: "Mono", rhythm: "Compact", corner: "Round" },
|
|
169
|
+
// Round dots grow into capsules as their labels grow.
|
|
170
|
+
shapes: { action: "var(--elea-radius-full, 9999px)", control: "0.875rem", surface: "1.5rem", indicator: "var(--elea-shape-action)" },
|
|
171
|
+
colours: {
|
|
172
|
+
primary: "#edbb28", secondary: "#232321", tertiary: "#739397",
|
|
173
|
+
success: "#53734d", info: "#456f7e", warning: "#a16c21", danger: "#a34a40",
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
lisiere: {
|
|
177
|
+
name: "Lisière", style: "Bay green & fabric pink", neutral: "Gray",
|
|
178
|
+
profile: { controls: "inset", typeface: "Serif", rhythm: "Airy", corner: "Soft" },
|
|
179
|
+
// Unequal banks bend around a horizontal ribbon.
|
|
180
|
+
shapes: { action: "1.5rem 0.375rem 1rem 0.75rem / 0.75rem 0.5rem 1rem 0.375rem", control: "0.625rem 0.25rem 0.5rem 0.25rem", surface: "2rem 0.5rem 1.5rem 1rem / 1rem 0.75rem 1.5rem 0.5rem", indicator: "var(--elea-shape-action)" },
|
|
181
|
+
colours: {
|
|
182
|
+
primary: "#226f68", secondary: "#ef65a5", tertiary: "#354e38",
|
|
183
|
+
success: "#537649", info: "#426e91", warning: "#946e31", danger: "#a34258",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
fjord: {
|
|
187
|
+
name: "Fjord", style: "Nordic", neutral: "Slate",
|
|
188
|
+
colours: {
|
|
189
|
+
primary: "#285e70", secondary: "#617d71", tertiary: "#ceaa83",
|
|
190
|
+
success: "#48745e", info: "#477994", warning: "#a46b30", danger: "#ab5256",
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
cyanotype: {
|
|
194
|
+
name: "Cyanotype", style: "Monochrome", neutral: "Slate",
|
|
195
|
+
colours: {
|
|
196
|
+
primary: "#244d71", secondary: "#537b9c", tertiary: "#a5c0d4",
|
|
197
|
+
success: "#49766b", info: "#426f95", warning: "#a67d43", danger: "#9b565f",
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
signal: {
|
|
201
|
+
name: "Signal", style: "Modern", neutral: "Slate",
|
|
202
|
+
colours: {
|
|
203
|
+
primary: "#4c37ca", secondary: "#00897e", tertiary: "#d2e64b",
|
|
204
|
+
success: "#158252", info: "#286bd8", warning: "#e69b18", danger: "#c63e52",
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
vellum: {
|
|
208
|
+
name: "Vellum", style: "Elegant", neutral: "Sand",
|
|
209
|
+
colours: {
|
|
210
|
+
primary: "#211f1c", secondary: "#e7dbc3", tertiary: "#877665",
|
|
211
|
+
success: "#5c7058", info: "#596b76", warning: "#9b713a", danger: "#91464b",
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
//# sourceMappingURL=palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.js","sourceRoot":"","sources":["../../src/palette.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC;AAGrH,8DAA8D;AAC9D,MAAM,CAAC,MAAM,UA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AE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;SAC3E;KACF;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;QACjD,OAAO,EAAE;YACP,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;YAC7D,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;SAC3E;KACF;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM;QACjD,OAAO,EAAE;YACP,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;YAC7D,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;SAC3E;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Feedback roles keep the status colour supplied by the surrounding product. */
|
|
2
|
+
export declare const statusRoles: readonly ["danger", "warning", "info", "success"];
|
|
3
|
+
export type StatusRole = typeof statusRoles[number];
|
|
4
|
+
/** Live references let a host change one status colour for every component in its scope. */
|
|
5
|
+
export declare function defaultStatusProperties(role: StatusRole, dark?: boolean, prefix?: string): {
|
|
6
|
+
fill: string;
|
|
7
|
+
text: string;
|
|
8
|
+
ink: string;
|
|
9
|
+
onContainer: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
pressed: string;
|
|
12
|
+
container: string;
|
|
13
|
+
};
|
|
14
|
+
/** The legacy status fallback must resolve on the element using the action. */
|
|
15
|
+
export declare function statusFallback(path: string, prefix?: string): string | undefined;
|
|
16
|
+
/** Resolved sRGB values for DTCG consumers and the colour inspector. */
|
|
17
|
+
export declare function statusColors(fill: string, surface: string, inverse: string, dark: boolean): {
|
|
18
|
+
fill: string;
|
|
19
|
+
text: string;
|
|
20
|
+
ink: string;
|
|
21
|
+
onContainer: string;
|
|
22
|
+
hover: string;
|
|
23
|
+
pressed: string;
|
|
24
|
+
container: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/status.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,eAAO,MAAM,WAAW,YAAI,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAC7E,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;AAUpD,4FAA4F;AAC5F,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,SAAS;;;;;;;;EAMxF;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAMhF;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;;;;;;;;EASzF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Feedback roles keep the status colour supplied by the surrounding product. */
|
|
2
|
+
export const statusRoles = ["danger", "warning", "info", "success"];
|
|
3
|
+
function statusPairs(fill, surface, text, edge, mix) {
|
|
4
|
+
return {
|
|
5
|
+
fill, text, ink: fill, onContainer: fill,
|
|
6
|
+
hover: mix(fill, 90, edge), pressed: mix(fill, 80, edge), container: mix(fill, 10, surface),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
/** Live references let a host change one status colour for every component in its scope. */
|
|
10
|
+
export function defaultStatusProperties(role, dark, prefix = "elea") {
|
|
11
|
+
const token = (name) => `var(--${prefix}-color-${name})`;
|
|
12
|
+
const fixedEdge = dark ? "#ffffff" : "#000000";
|
|
13
|
+
const edge = dark === undefined ? `var(--${prefix}-_status-edge)` : fixedEdge;
|
|
14
|
+
return statusPairs(token(role), token("surface-default"), token("text-inverse"), edge, (first, amount, second) => `color-mix(in srgb, ${first} ${amount}%, ${second})`);
|
|
15
|
+
}
|
|
16
|
+
/** The legacy status fallback must resolve on the element using the action. */
|
|
17
|
+
export function statusFallback(path, prefix = "elea") {
|
|
18
|
+
const match = /^color\.action\.(success|info|warning|danger)(?:-(text|hover|pressed|ink|container|on-container))?$/.exec(path);
|
|
19
|
+
if (!match)
|
|
20
|
+
return undefined;
|
|
21
|
+
const properties = defaultStatusProperties(match[1], undefined, prefix);
|
|
22
|
+
const key = match[2] === "on-container" ? "onContainer" : match[2] ?? "fill";
|
|
23
|
+
return properties[key];
|
|
24
|
+
}
|
|
25
|
+
/** Resolved sRGB values for DTCG consumers and the colour inspector. */
|
|
26
|
+
export function statusColors(fill, surface, inverse, dark) {
|
|
27
|
+
return statusPairs(fill, surface, inverse, dark ? "#ffffff" : "#000000", (first, amount, second) => {
|
|
28
|
+
const bytes = [1, 3, 5].map(offset => {
|
|
29
|
+
const a = Number.parseInt(first.slice(offset, offset + 2), 16);
|
|
30
|
+
const b = Number.parseInt(second.slice(offset, offset + 2), 16);
|
|
31
|
+
return Math.round((a * amount + b * (100 - amount)) / 100).toString(16).padStart(2, "0");
|
|
32
|
+
});
|
|
33
|
+
return "#" + bytes.join("");
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/status.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,MA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AAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/tailwind.js
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
export const eleaPreset = {
|
|
2
|
+
"theme": {
|
|
3
|
+
"extend": {
|
|
4
|
+
"colors": {
|
|
5
|
+
"elea-neutral-50": "color-mix(in srgb, var(--elea-color-neutral-50) calc(<alpha-value> * 100%), transparent)",
|
|
6
|
+
"elea-neutral-100": "color-mix(in srgb, var(--elea-color-neutral-100) calc(<alpha-value> * 100%), transparent)",
|
|
7
|
+
"elea-neutral-200": "color-mix(in srgb, var(--elea-color-neutral-200) calc(<alpha-value> * 100%), transparent)",
|
|
8
|
+
"elea-neutral-300": "color-mix(in srgb, var(--elea-color-neutral-300) calc(<alpha-value> * 100%), transparent)",
|
|
9
|
+
"elea-neutral-400": "color-mix(in srgb, var(--elea-color-neutral-400) calc(<alpha-value> * 100%), transparent)",
|
|
10
|
+
"elea-neutral-500": "color-mix(in srgb, var(--elea-color-neutral-500) calc(<alpha-value> * 100%), transparent)",
|
|
11
|
+
"elea-neutral-600": "color-mix(in srgb, var(--elea-color-neutral-600) calc(<alpha-value> * 100%), transparent)",
|
|
12
|
+
"elea-neutral-700": "color-mix(in srgb, var(--elea-color-neutral-700) calc(<alpha-value> * 100%), transparent)",
|
|
13
|
+
"elea-neutral-800": "color-mix(in srgb, var(--elea-color-neutral-800) calc(<alpha-value> * 100%), transparent)",
|
|
14
|
+
"elea-neutral-900": "color-mix(in srgb, var(--elea-color-neutral-900) calc(<alpha-value> * 100%), transparent)",
|
|
15
|
+
"elea-neutral-950": "color-mix(in srgb, var(--elea-color-neutral-950) calc(<alpha-value> * 100%), transparent)",
|
|
16
|
+
"elea-primary-50": "color-mix(in srgb, var(--elea-color-primary-50) calc(<alpha-value> * 100%), transparent)",
|
|
17
|
+
"elea-primary-100": "color-mix(in srgb, var(--elea-color-primary-100) calc(<alpha-value> * 100%), transparent)",
|
|
18
|
+
"elea-primary-200": "color-mix(in srgb, var(--elea-color-primary-200) calc(<alpha-value> * 100%), transparent)",
|
|
19
|
+
"elea-primary-300": "color-mix(in srgb, var(--elea-color-primary-300) calc(<alpha-value> * 100%), transparent)",
|
|
20
|
+
"elea-primary-400": "color-mix(in srgb, var(--elea-color-primary-400) calc(<alpha-value> * 100%), transparent)",
|
|
21
|
+
"elea-primary-500": "color-mix(in srgb, var(--elea-color-primary-500) calc(<alpha-value> * 100%), transparent)",
|
|
22
|
+
"elea-primary-600": "color-mix(in srgb, var(--elea-color-primary-600) calc(<alpha-value> * 100%), transparent)",
|
|
23
|
+
"elea-primary-700": "color-mix(in srgb, var(--elea-color-primary-700) calc(<alpha-value> * 100%), transparent)",
|
|
24
|
+
"elea-primary-800": "color-mix(in srgb, var(--elea-color-primary-800) calc(<alpha-value> * 100%), transparent)",
|
|
25
|
+
"elea-primary-900": "color-mix(in srgb, var(--elea-color-primary-900) calc(<alpha-value> * 100%), transparent)",
|
|
26
|
+
"elea-primary-950": "color-mix(in srgb, var(--elea-color-primary-950) calc(<alpha-value> * 100%), transparent)",
|
|
27
|
+
"elea-secondary-50": "color-mix(in srgb, var(--elea-color-secondary-50) calc(<alpha-value> * 100%), transparent)",
|
|
28
|
+
"elea-secondary-100": "color-mix(in srgb, var(--elea-color-secondary-100) calc(<alpha-value> * 100%), transparent)",
|
|
29
|
+
"elea-secondary-200": "color-mix(in srgb, var(--elea-color-secondary-200) calc(<alpha-value> * 100%), transparent)",
|
|
30
|
+
"elea-secondary-300": "color-mix(in srgb, var(--elea-color-secondary-300) calc(<alpha-value> * 100%), transparent)",
|
|
31
|
+
"elea-secondary-400": "color-mix(in srgb, var(--elea-color-secondary-400) calc(<alpha-value> * 100%), transparent)",
|
|
32
|
+
"elea-secondary-500": "color-mix(in srgb, var(--elea-color-secondary-500) calc(<alpha-value> * 100%), transparent)",
|
|
33
|
+
"elea-secondary-600": "color-mix(in srgb, var(--elea-color-secondary-600) calc(<alpha-value> * 100%), transparent)",
|
|
34
|
+
"elea-secondary-700": "color-mix(in srgb, var(--elea-color-secondary-700) calc(<alpha-value> * 100%), transparent)",
|
|
35
|
+
"elea-secondary-800": "color-mix(in srgb, var(--elea-color-secondary-800) calc(<alpha-value> * 100%), transparent)",
|
|
36
|
+
"elea-secondary-900": "color-mix(in srgb, var(--elea-color-secondary-900) calc(<alpha-value> * 100%), transparent)",
|
|
37
|
+
"elea-action-primary": "color-mix(in srgb, var(--elea-color-action-primary) calc(<alpha-value> * 100%), transparent)",
|
|
38
|
+
"elea-action-primary-text": "color-mix(in srgb, var(--elea-color-action-primary-text) calc(<alpha-value> * 100%), transparent)",
|
|
39
|
+
"elea-action-primary-hover": "color-mix(in srgb, var(--elea-color-action-primary-hover) calc(<alpha-value> * 100%), transparent)",
|
|
40
|
+
"elea-action-primary-pressed": "color-mix(in srgb, var(--elea-color-action-primary-pressed) calc(<alpha-value> * 100%), transparent)",
|
|
41
|
+
"elea-action-primary-ink": "color-mix(in srgb, var(--elea-color-action-primary-ink) calc(<alpha-value> * 100%), transparent)",
|
|
42
|
+
"elea-action-primary-container": "color-mix(in srgb, var(--elea-color-action-primary-container) calc(<alpha-value> * 100%), transparent)",
|
|
43
|
+
"elea-action-primary-on-container": "color-mix(in srgb, var(--elea-color-action-primary-on-container) calc(<alpha-value> * 100%), transparent)",
|
|
44
|
+
"elea-action-secondary": "color-mix(in srgb, var(--elea-color-action-secondary) calc(<alpha-value> * 100%), transparent)",
|
|
45
|
+
"elea-action-secondary-text": "color-mix(in srgb, var(--elea-color-action-secondary-text) calc(<alpha-value> * 100%), transparent)",
|
|
46
|
+
"elea-action-secondary-hover": "color-mix(in srgb, var(--elea-color-action-secondary-hover) calc(<alpha-value> * 100%), transparent)",
|
|
47
|
+
"elea-action-secondary-pressed": "color-mix(in srgb, var(--elea-color-action-secondary-pressed) calc(<alpha-value> * 100%), transparent)",
|
|
48
|
+
"elea-action-secondary-ink": "color-mix(in srgb, var(--elea-color-action-secondary-ink) calc(<alpha-value> * 100%), transparent)",
|
|
49
|
+
"elea-action-secondary-container": "color-mix(in srgb, var(--elea-color-action-secondary-container) calc(<alpha-value> * 100%), transparent)",
|
|
50
|
+
"elea-action-secondary-on-container": "color-mix(in srgb, var(--elea-color-action-secondary-on-container) calc(<alpha-value> * 100%), transparent)",
|
|
51
|
+
"elea-action-tertiary": "color-mix(in srgb, var(--elea-color-action-tertiary) calc(<alpha-value> * 100%), transparent)",
|
|
52
|
+
"elea-action-tertiary-text": "color-mix(in srgb, var(--elea-color-action-tertiary-text) calc(<alpha-value> * 100%), transparent)",
|
|
53
|
+
"elea-action-tertiary-hover": "color-mix(in srgb, var(--elea-color-action-tertiary-hover) calc(<alpha-value> * 100%), transparent)",
|
|
54
|
+
"elea-action-tertiary-pressed": "color-mix(in srgb, var(--elea-color-action-tertiary-pressed) calc(<alpha-value> * 100%), transparent)",
|
|
55
|
+
"elea-action-tertiary-ink": "color-mix(in srgb, var(--elea-color-action-tertiary-ink) calc(<alpha-value> * 100%), transparent)",
|
|
56
|
+
"elea-action-tertiary-container": "color-mix(in srgb, var(--elea-color-action-tertiary-container) calc(<alpha-value> * 100%), transparent)",
|
|
57
|
+
"elea-action-tertiary-on-container": "color-mix(in srgb, var(--elea-color-action-tertiary-on-container) calc(<alpha-value> * 100%), transparent)",
|
|
58
|
+
"elea-action-danger": "color-mix(in srgb, var(--elea-color-action-danger, var(--elea-color-danger)) calc(<alpha-value> * 100%), transparent)",
|
|
59
|
+
"elea-action-danger-text": "color-mix(in srgb, var(--elea-color-action-danger-text, var(--elea-color-text-inverse)) calc(<alpha-value> * 100%), transparent)",
|
|
60
|
+
"elea-action-danger-ink": "color-mix(in srgb, var(--elea-color-action-danger-ink, var(--elea-color-danger)) calc(<alpha-value> * 100%), transparent)",
|
|
61
|
+
"elea-action-danger-on-container": "color-mix(in srgb, var(--elea-color-action-danger-on-container, var(--elea-color-danger)) calc(<alpha-value> * 100%), transparent)",
|
|
62
|
+
"elea-action-danger-hover": "color-mix(in srgb, var(--elea-color-action-danger-hover, color-mix(in srgb, var(--elea-color-danger) 90%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
63
|
+
"elea-action-danger-pressed": "color-mix(in srgb, var(--elea-color-action-danger-pressed, color-mix(in srgb, var(--elea-color-danger) 80%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
64
|
+
"elea-action-danger-container": "color-mix(in srgb, var(--elea-color-action-danger-container, color-mix(in srgb, var(--elea-color-danger) 10%, var(--elea-color-surface-default))) calc(<alpha-value> * 100%), transparent)",
|
|
65
|
+
"elea-action-warning": "color-mix(in srgb, var(--elea-color-action-warning, var(--elea-color-warning)) calc(<alpha-value> * 100%), transparent)",
|
|
66
|
+
"elea-action-warning-text": "color-mix(in srgb, var(--elea-color-action-warning-text, var(--elea-color-text-inverse)) calc(<alpha-value> * 100%), transparent)",
|
|
67
|
+
"elea-action-warning-ink": "color-mix(in srgb, var(--elea-color-action-warning-ink, var(--elea-color-warning)) calc(<alpha-value> * 100%), transparent)",
|
|
68
|
+
"elea-action-warning-on-container": "color-mix(in srgb, var(--elea-color-action-warning-on-container, var(--elea-color-warning)) calc(<alpha-value> * 100%), transparent)",
|
|
69
|
+
"elea-action-warning-hover": "color-mix(in srgb, var(--elea-color-action-warning-hover, color-mix(in srgb, var(--elea-color-warning) 90%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
70
|
+
"elea-action-warning-pressed": "color-mix(in srgb, var(--elea-color-action-warning-pressed, color-mix(in srgb, var(--elea-color-warning) 80%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
71
|
+
"elea-action-warning-container": "color-mix(in srgb, var(--elea-color-action-warning-container, color-mix(in srgb, var(--elea-color-warning) 10%, var(--elea-color-surface-default))) calc(<alpha-value> * 100%), transparent)",
|
|
72
|
+
"elea-action-info": "color-mix(in srgb, var(--elea-color-action-info, var(--elea-color-info)) calc(<alpha-value> * 100%), transparent)",
|
|
73
|
+
"elea-action-info-text": "color-mix(in srgb, var(--elea-color-action-info-text, var(--elea-color-text-inverse)) calc(<alpha-value> * 100%), transparent)",
|
|
74
|
+
"elea-action-info-ink": "color-mix(in srgb, var(--elea-color-action-info-ink, var(--elea-color-info)) calc(<alpha-value> * 100%), transparent)",
|
|
75
|
+
"elea-action-info-on-container": "color-mix(in srgb, var(--elea-color-action-info-on-container, var(--elea-color-info)) calc(<alpha-value> * 100%), transparent)",
|
|
76
|
+
"elea-action-info-hover": "color-mix(in srgb, var(--elea-color-action-info-hover, color-mix(in srgb, var(--elea-color-info) 90%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
77
|
+
"elea-action-info-pressed": "color-mix(in srgb, var(--elea-color-action-info-pressed, color-mix(in srgb, var(--elea-color-info) 80%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
78
|
+
"elea-action-info-container": "color-mix(in srgb, var(--elea-color-action-info-container, color-mix(in srgb, var(--elea-color-info) 10%, var(--elea-color-surface-default))) calc(<alpha-value> * 100%), transparent)",
|
|
79
|
+
"elea-action-success": "color-mix(in srgb, var(--elea-color-action-success, var(--elea-color-success)) calc(<alpha-value> * 100%), transparent)",
|
|
80
|
+
"elea-action-success-text": "color-mix(in srgb, var(--elea-color-action-success-text, var(--elea-color-text-inverse)) calc(<alpha-value> * 100%), transparent)",
|
|
81
|
+
"elea-action-success-ink": "color-mix(in srgb, var(--elea-color-action-success-ink, var(--elea-color-success)) calc(<alpha-value> * 100%), transparent)",
|
|
82
|
+
"elea-action-success-on-container": "color-mix(in srgb, var(--elea-color-action-success-on-container, var(--elea-color-success)) calc(<alpha-value> * 100%), transparent)",
|
|
83
|
+
"elea-action-success-hover": "color-mix(in srgb, var(--elea-color-action-success-hover, color-mix(in srgb, var(--elea-color-success) 90%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
84
|
+
"elea-action-success-pressed": "color-mix(in srgb, var(--elea-color-action-success-pressed, color-mix(in srgb, var(--elea-color-success) 80%, var(--elea-_status-edge))) calc(<alpha-value> * 100%), transparent)",
|
|
85
|
+
"elea-action-success-container": "color-mix(in srgb, var(--elea-color-action-success-container, color-mix(in srgb, var(--elea-color-success) 10%, var(--elea-color-surface-default))) calc(<alpha-value> * 100%), transparent)",
|
|
86
|
+
"elea-success": "color-mix(in srgb, var(--elea-color-success) calc(<alpha-value> * 100%), transparent)",
|
|
87
|
+
"elea-warning": "color-mix(in srgb, var(--elea-color-warning) calc(<alpha-value> * 100%), transparent)",
|
|
88
|
+
"elea-danger": "color-mix(in srgb, var(--elea-color-danger) calc(<alpha-value> * 100%), transparent)",
|
|
89
|
+
"elea-info": "color-mix(in srgb, var(--elea-color-info) calc(<alpha-value> * 100%), transparent)",
|
|
90
|
+
"elea-text-default": "color-mix(in srgb, var(--elea-color-text-default) calc(<alpha-value> * 100%), transparent)",
|
|
91
|
+
"elea-text-muted": "color-mix(in srgb, var(--elea-color-text-muted) calc(<alpha-value> * 100%), transparent)",
|
|
92
|
+
"elea-text-subtle": "color-mix(in srgb, var(--elea-color-text-subtle) calc(<alpha-value> * 100%), transparent)",
|
|
93
|
+
"elea-text-inverse": "color-mix(in srgb, var(--elea-color-text-inverse) calc(<alpha-value> * 100%), transparent)",
|
|
94
|
+
"elea-text-on-brand": "color-mix(in srgb, var(--elea-color-text-on-brand) calc(<alpha-value> * 100%), transparent)",
|
|
95
|
+
"elea-text-accent": "color-mix(in srgb, var(--elea-color-text-accent) calc(<alpha-value> * 100%), transparent)",
|
|
96
|
+
"elea-text-link": "color-mix(in srgb, var(--elea-color-text-link) calc(<alpha-value> * 100%), transparent)",
|
|
97
|
+
"elea-text-link-hover": "color-mix(in srgb, var(--elea-color-text-link-hover) calc(<alpha-value> * 100%), transparent)",
|
|
98
|
+
"elea-surface-default": "color-mix(in srgb, var(--elea-color-surface-default) calc(<alpha-value> * 100%), transparent)",
|
|
99
|
+
"elea-surface-subtle": "color-mix(in srgb, var(--elea-color-surface-subtle) calc(<alpha-value> * 100%), transparent)",
|
|
100
|
+
"elea-surface-muted": "color-mix(in srgb, var(--elea-color-surface-muted) calc(<alpha-value> * 100%), transparent)",
|
|
101
|
+
"elea-surface-inverse": "color-mix(in srgb, var(--elea-color-surface-inverse) calc(<alpha-value> * 100%), transparent)",
|
|
102
|
+
"elea-border-default": "color-mix(in srgb, var(--elea-color-border-default) calc(<alpha-value> * 100%), transparent)",
|
|
103
|
+
"elea-border-strong": "color-mix(in srgb, var(--elea-color-border-strong) calc(<alpha-value> * 100%), transparent)",
|
|
104
|
+
"elea-border-accent": "color-mix(in srgb, var(--elea-color-border-accent) calc(<alpha-value> * 100%), transparent)",
|
|
105
|
+
"elea-focus": "color-mix(in srgb, var(--elea-color-focus) calc(<alpha-value> * 100%), transparent)"
|
|
106
|
+
},
|
|
107
|
+
"fontFamily": {
|
|
108
|
+
"elea-sans": "var(--elea-font-family-sans)",
|
|
109
|
+
"elea-serif": "var(--elea-font-family-serif)",
|
|
110
|
+
"elea-mono": "var(--elea-font-family-mono)",
|
|
111
|
+
"elea-content": "var(--elea-font-family-content)"
|
|
112
|
+
},
|
|
113
|
+
"fontSize": {
|
|
114
|
+
"elea-xs": "var(--elea-font-size-xs)",
|
|
115
|
+
"elea-sm": "var(--elea-font-size-sm)",
|
|
116
|
+
"elea-base": "var(--elea-font-size-base)",
|
|
117
|
+
"elea-lg": "var(--elea-font-size-lg)",
|
|
118
|
+
"elea-xl": "var(--elea-font-size-xl)",
|
|
119
|
+
"elea-2xl": "var(--elea-font-size-2xl)",
|
|
120
|
+
"elea-3xl": "var(--elea-font-size-3xl)",
|
|
121
|
+
"elea-4xl": "var(--elea-font-size-4xl)",
|
|
122
|
+
"elea-5xl": "var(--elea-font-size-5xl)"
|
|
123
|
+
},
|
|
124
|
+
"fontWeight": {
|
|
125
|
+
"elea-regular": "var(--elea-font-weight-regular)",
|
|
126
|
+
"elea-medium": "var(--elea-font-weight-medium)",
|
|
127
|
+
"elea-semibold": "var(--elea-font-weight-semibold)",
|
|
128
|
+
"elea-bold": "var(--elea-font-weight-bold)"
|
|
129
|
+
},
|
|
130
|
+
"lineHeight": {
|
|
131
|
+
"elea-tight": "var(--elea-font-leading-tight)",
|
|
132
|
+
"elea-normal": "var(--elea-font-leading-normal)",
|
|
133
|
+
"elea-relaxed": "var(--elea-font-leading-relaxed)"
|
|
134
|
+
},
|
|
135
|
+
"spacing": {
|
|
136
|
+
"elea-1": "var(--elea-space-1)",
|
|
137
|
+
"elea-2": "var(--elea-space-2)",
|
|
138
|
+
"elea-3": "var(--elea-space-3)",
|
|
139
|
+
"elea-4": "var(--elea-space-4)",
|
|
140
|
+
"elea-5": "var(--elea-space-5)",
|
|
141
|
+
"elea-6": "var(--elea-space-6)",
|
|
142
|
+
"elea-8": "var(--elea-space-8)",
|
|
143
|
+
"elea-10": "var(--elea-space-10)",
|
|
144
|
+
"elea-12": "var(--elea-space-12)"
|
|
145
|
+
},
|
|
146
|
+
"borderRadius": {
|
|
147
|
+
"elea-sm": "var(--elea-radius-sm)",
|
|
148
|
+
"elea-md": "var(--elea-radius-md)",
|
|
149
|
+
"elea-lg": "var(--elea-radius-lg)",
|
|
150
|
+
"elea-xl": "var(--elea-radius-xl)",
|
|
151
|
+
"elea-full": "var(--elea-radius-full)"
|
|
152
|
+
},
|
|
153
|
+
"boxShadow": {
|
|
154
|
+
"elea-sm": "var(--elea-shadow-sm)",
|
|
155
|
+
"elea-md": "var(--elea-shadow-md)"
|
|
156
|
+
},
|
|
157
|
+
"transitionTimingFunction": {
|
|
158
|
+
"elea-standard": "var(--elea-motion-easing-standard)",
|
|
159
|
+
"elea-exit": "var(--elea-motion-easing-exit)",
|
|
160
|
+
"elea-spring": "var(--elea-motion-easing-spring)"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
export const shadcnPreset = {
|
|
166
|
+
"theme": {
|
|
167
|
+
"extend": {
|
|
168
|
+
"colors": {
|
|
169
|
+
"background": {
|
|
170
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-surface-default) calc(<alpha-value> * 100%), transparent)"
|
|
171
|
+
},
|
|
172
|
+
"foreground": {
|
|
173
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-text-default) calc(<alpha-value> * 100%), transparent)"
|
|
174
|
+
},
|
|
175
|
+
"card": {
|
|
176
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-surface-default) calc(<alpha-value> * 100%), transparent)",
|
|
177
|
+
"foreground": "color-mix(in srgb, var(--elea-color-text-default) calc(<alpha-value> * 100%), transparent)"
|
|
178
|
+
},
|
|
179
|
+
"popover": {
|
|
180
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-surface-default) calc(<alpha-value> * 100%), transparent)",
|
|
181
|
+
"foreground": "color-mix(in srgb, var(--elea-color-text-default) calc(<alpha-value> * 100%), transparent)"
|
|
182
|
+
},
|
|
183
|
+
"primary": {
|
|
184
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-action-primary) calc(<alpha-value> * 100%), transparent)",
|
|
185
|
+
"foreground": "color-mix(in srgb, var(--elea-color-action-primary-text) calc(<alpha-value> * 100%), transparent)"
|
|
186
|
+
},
|
|
187
|
+
"secondary": {
|
|
188
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-action-secondary) calc(<alpha-value> * 100%), transparent)",
|
|
189
|
+
"foreground": "color-mix(in srgb, var(--elea-color-action-secondary-text) calc(<alpha-value> * 100%), transparent)"
|
|
190
|
+
},
|
|
191
|
+
"muted": {
|
|
192
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-surface-muted) calc(<alpha-value> * 100%), transparent)",
|
|
193
|
+
"foreground": "color-mix(in srgb, var(--elea-color-text-muted) calc(<alpha-value> * 100%), transparent)"
|
|
194
|
+
},
|
|
195
|
+
"accent": {
|
|
196
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-surface-muted) calc(<alpha-value> * 100%), transparent)",
|
|
197
|
+
"foreground": "color-mix(in srgb, var(--elea-color-text-default) calc(<alpha-value> * 100%), transparent)"
|
|
198
|
+
},
|
|
199
|
+
"destructive": {
|
|
200
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-action-danger, var(--elea-color-danger)) calc(<alpha-value> * 100%), transparent)",
|
|
201
|
+
"foreground": "color-mix(in srgb, var(--elea-color-action-danger-text, var(--elea-color-text-inverse)) calc(<alpha-value> * 100%), transparent)"
|
|
202
|
+
},
|
|
203
|
+
"border": {
|
|
204
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-border-default) calc(<alpha-value> * 100%), transparent)"
|
|
205
|
+
},
|
|
206
|
+
"input": {
|
|
207
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-border-strong) calc(<alpha-value> * 100%), transparent)"
|
|
208
|
+
},
|
|
209
|
+
"ring": {
|
|
210
|
+
"DEFAULT": "color-mix(in srgb, var(--elea-color-focus) calc(<alpha-value> * 100%), transparent)"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"borderRadius": {
|
|
214
|
+
"sm": "var(--elea-radius-sm)",
|
|
215
|
+
"md": "var(--elea-radius-md)",
|
|
216
|
+
"lg": "var(--elea-radius-lg)",
|
|
217
|
+
"xl": "var(--elea-radius-xl)"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
export default eleaPreset;
|