@gnist/themes 3.22.1 → 3.23.1

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/README.md CHANGED
@@ -251,3 +251,96 @@ const nextConfig = {
251
251
 
252
252
  export default withVanillaExtract(nextConfig);
253
253
  ```
254
+
255
+ ### Tailwind CSS v4
256
+
257
+ For projects using Tailwind CSS v4, you can import theme CSS variables directly.
258
+
259
+ #### Installation
260
+
261
+ First, ensure you have Tailwind CSS v4 installed in your project. Then import the theme CSS file:
262
+
263
+ **In your `globals.css` or main CSS file:**
264
+
265
+ ```css
266
+ @import "@gnist/themes/themes/mollerBil.tailwind.css";
267
+ ```
268
+
269
+ **Or in your `tailwind.config.ts`:**
270
+
271
+ ```typescript
272
+ import type { Config } from "tailwindcss";
273
+
274
+ export default {
275
+ content: ["./src/**/*.{js,ts,jsx,tsx}"],
276
+ // The CSS variables from mollerBil.tailwind.css are automatically available
277
+ // when imported in your globals.css
278
+ } satisfies Config;
279
+ ```
280
+
281
+ #### Available CSS Variables
282
+
283
+ The Tailwind CSS files contain all design tokens as CSS variables following Tailwind v4 conventions in an `@theme` block:
284
+
285
+ **Colors:**
286
+ - `--color-primary`, `--color-secondary`, `--color-tertiary`
287
+ - `--color-primary-container`, `--color-on-primary`
288
+ - `--color-error`, `--color-warning`, `--color-success`, `--color-info`
289
+ - `--color-background`, `--color-surface`
290
+ - Palette colors: `--color-primary-10`, `--color-primary-20`, etc.
291
+
292
+ **Spacing:**
293
+ - `--spacing-none`, `--spacing-base`, `--spacing-xxs`, `--spacing-xs`
294
+ - `--spacing-s`, `--spacing-m`, `--spacing-l`, `--spacing-xl`, etc.
295
+
296
+ **Typography:**
297
+ - Font families: `--font-brand`, `--font-brand-display`
298
+ - Font sizes: `--font-size-s`, `--font-size-base`, `--font-size-xl`, etc.
299
+ - Font weights: `--font-weight-regular`, `--font-weight-medium`, `--font-weight-bold`
300
+
301
+ **Border Radius:**
302
+ - `--radius-button`, `--radius-card`, `--radius-input`
303
+ - `--rounded-none`, `--rounded-small`, `--rounded-full`
304
+
305
+ **Shadows:**
306
+ - `--shadow-none`, `--shadow-low`, `--shadow-medium`, `--shadow-high`
307
+
308
+ **Other:**
309
+ - Border widths: `--border-width-small`, `--border-width-medium`
310
+ - Sizing: `--size-base`, `--size-s`, `--size-xl`
311
+ - Opacity: `--opacity-on-hover`, `--opacity-on-pressed`
312
+
313
+ #### Usage in Tailwind
314
+
315
+ Use the CSS variables in your Tailwind configuration or directly in your CSS:
316
+
317
+ ```css
318
+ .my-component {
319
+ background-color: var(--color-primary);
320
+ padding: var(--spacing-m);
321
+ border-radius: var(--radius-button);
322
+ box-shadow: var(--shadow-medium);
323
+ }
324
+ ```
325
+
326
+ Or extend Tailwind's theme to use semantic names:
327
+
328
+ ```typescript
329
+ // tailwind.config.ts
330
+ export default {
331
+ theme: {
332
+ extend: {
333
+ colors: {
334
+ primary: "var(--color-primary)",
335
+ secondary: "var(--color-secondary)",
336
+ },
337
+ spacing: {
338
+ xs: "var(--spacing-xs)",
339
+ s: "var(--spacing-s)",
340
+ },
341
+ },
342
+ },
343
+ } satisfies Config;
344
+ ```
345
+
346
+ **Note:** These tokens stay in sync with the vanilla-extract themes automatically when design tokens are updated from Figma.
@@ -3,6 +3,7 @@ import fs from "fs/promises";
3
3
  import path from "path";
4
4
  import { argv } from "process";
5
5
  import StyleDictionaryPackage from "style-dictionary";
6
+ import { tailwindCss } from "./theme-utils/formats/tailwindCss.js";
6
7
  import { typescriptEsModule } from "./theme-utils/formats/typescriptEsModule.js";
7
8
  import { toCamelCase } from "./theme-utils/toCamelCase.js";
8
9
  import { figmaSizePx } from "./theme-utils/transforms/figmaSizePx.js";
@@ -12,6 +13,7 @@ import { lineHeightUnitless } from "./theme-utils/transforms/lineHeightUnitless.
12
13
  import { shadowCss } from "./theme-utils/transforms/shadowCss.js";
13
14
  const outDir = argv[2] || "themes";
14
15
  StyleDictionaryPackage.registerFormat(typescriptEsModule);
16
+ StyleDictionaryPackage.registerFormat(tailwindCss);
15
17
  StyleDictionaryPackage.registerTransform(lineHeightUnitless);
16
18
  StyleDictionaryPackage.registerTransform(shadowCss);
17
19
  StyleDictionaryPackage.registerTransform(figmaSizePx);
@@ -71,12 +73,36 @@ function getStyleDictionaryConfig(theme, sourcePath) {
71
73
  },
72
74
  ],
73
75
  },
76
+ tailwind: {
77
+ transforms: [
78
+ "attribute/cti",
79
+ "name/kebab",
80
+ "color/hex",
81
+ figmaSizePx.name,
82
+ figmaSizeRem.name,
83
+ shadowCss.name,
84
+ lineHeightUnitless.name,
85
+ ],
86
+ buildPath: `${outDir}/`,
87
+ files: [
88
+ {
89
+ destination: `${toCamelCase(theme)}.tailwind.css`,
90
+ format: tailwindCss.name,
91
+ options: {
92
+ fileHeader: () => [
93
+ "Generated by style-dictionary for Tailwind v4.",
94
+ "Import in your globals.css",
95
+ ],
96
+ },
97
+ },
98
+ ],
99
+ },
74
100
  },
75
101
  };
76
102
  }
77
103
  async function buildTheme(theme, platform) {
78
104
  console.log(`Processing: [${theme}] for ${platform}`);
79
- const styleDictionaryInputPath = transformTokens(theme, platform);
105
+ const styleDictionaryInputPath = transformTokens(theme, platform === "tailwind" ? "json" : platform);
80
106
  if (platform === "json") {
81
107
  console.log(`Retaining style-dictionary file ${styleDictionaryInputPath}`);
82
108
  }
@@ -84,8 +110,10 @@ async function buildTheme(theme, platform) {
84
110
  console.log("Running style-dictionary");
85
111
  const StyleDictionary = new StyleDictionaryPackage(getStyleDictionaryConfig(theme, styleDictionaryInputPath));
86
112
  await StyleDictionary.buildPlatform(platform);
87
- console.log(`Deleting temporary style-dictionary file ${styleDictionaryInputPath} ✔︎`);
88
- void fs.rm(styleDictionaryInputPath);
113
+ if (platform === "web") {
114
+ console.log(`Deleting temporary style-dictionary file ${styleDictionaryInputPath} ✔︎`);
115
+ void fs.rm(styleDictionaryInputPath);
116
+ }
89
117
  }
90
118
  console.log(`\n`);
91
119
  }
@@ -93,5 +121,6 @@ console.log("Build started...\n");
93
121
  await Promise.all(figmaThemes.map(async (theme) => {
94
122
  await buildTheme(theme, "json");
95
123
  await buildTheme(theme, "web");
124
+ await buildTheme(theme, "tailwind");
96
125
  }));
97
- childprocess.execSync(`npx prettier "${outDir}/*.{ts,scss}" --write`);
126
+ childprocess.execFileSync("npx", ["prettier", `${outDir}/*.{ts,scss,css}`, "--write"], { stdio: "inherit" });
@@ -0,0 +1,6 @@
1
+ import { TransformedToken, TransformedTokens } from "style-dictionary";
2
+ /**
3
+ * Type guard to check if a token object is a leaf node (actual token)
4
+ * rather than a container object with nested tokens
5
+ */
6
+ export declare function isLeafNode(token: TransformedTokens | TransformedToken): token is TransformedToken;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Type guard to check if a token object is a leaf node (actual token)
3
+ * rather than a container object with nested tokens
4
+ */
5
+ export function isLeafNode(token) {
6
+ const tokenAsLeaf = token;
7
+ return Boolean(tokenAsLeaf.filePath &&
8
+ tokenAsLeaf.original &&
9
+ tokenAsLeaf.name &&
10
+ tokenAsLeaf.value !== undefined);
11
+ }
@@ -0,0 +1,2 @@
1
+ import { Format } from "style-dictionary/types";
2
+ export declare const tailwindCss: Format;
@@ -0,0 +1,133 @@
1
+ import { fileHeader } from "style-dictionary/utils";
2
+ import { isLeafNode } from "./format-utils.js";
3
+ export const tailwindCss = {
4
+ name: "css/tailwind-v4",
5
+ format: async ({ dictionary, file }) => {
6
+ const fileHeaderContent = await fileHeader({
7
+ file,
8
+ commentStyle: "long",
9
+ });
10
+ const cssVariables = flattenTokensToCssVariables(dictionary.tokens);
11
+ const formattedVariables = cssVariables
12
+ .map((variable) => ` ${variable.name}: ${variable.value};`)
13
+ .join("\n");
14
+ return `${fileHeaderContent}
15
+ @theme {
16
+ ${formattedVariables}
17
+ }
18
+ `;
19
+ },
20
+ };
21
+ function flattenTokensToCssVariables(tokens, prefix = []) {
22
+ const variables = [];
23
+ for (const [key, value] of Object.entries(tokens)) {
24
+ const currentPath = [...prefix, key];
25
+ if (isLeafNode(value)) {
26
+ // Only include tokens that are suitable for Tailwind
27
+ if (shouldIncludeToken(value, currentPath)) {
28
+ const varName = toTailwindVarName(currentPath, value);
29
+ const varValue = formatTokenValue(value);
30
+ if (varName && varValue) {
31
+ variables.push({ name: varName, value: varValue });
32
+ }
33
+ }
34
+ }
35
+ else {
36
+ // Recursively flatten nested tokens
37
+ variables.push(...flattenTokensToCssVariables(value, currentPath));
38
+ }
39
+ }
40
+ return variables;
41
+ }
42
+ function shouldIncludeToken(token, path) {
43
+ // Skip complex typography objects (they have nested fontFamily, fontSize, etc.)
44
+ if (token.type === "typography" && typeof token.value === "object") {
45
+ return false;
46
+ }
47
+ // Skip opacity-percentage (we have opacity which is better)
48
+ if (path[0] === "opacity-percentage") {
49
+ return false;
50
+ }
51
+ // Include most token types
52
+ return true;
53
+ }
54
+ function toTailwindVarName(path, _token) {
55
+ // Map token categories to Tailwind-style prefixes
56
+ const category = path[0];
57
+ const rest = path.slice(1);
58
+ let prefix = "";
59
+ switch (category) {
60
+ case "color":
61
+ case "palette":
62
+ case "keycolor":
63
+ prefix = "color";
64
+ break;
65
+ case "typeface":
66
+ if (rest[0] === "brand" || rest[0] === "brand-display") {
67
+ prefix = "font";
68
+ }
69
+ else if (rest[0] === "size") {
70
+ prefix = "font-size";
71
+ }
72
+ else if (rest[0] === "weight") {
73
+ prefix = "font-weight";
74
+ }
75
+ else if (rest[0] === "line-height") {
76
+ prefix = "leading";
77
+ }
78
+ else if (rest[0] === "letter-spacing") {
79
+ prefix = "tracking";
80
+ }
81
+ else {
82
+ return null; // Skip other typeface properties
83
+ }
84
+ break;
85
+ case "radius":
86
+ prefix = "radius";
87
+ break;
88
+ case "border-radius":
89
+ prefix = "rounded";
90
+ break;
91
+ case "stroke":
92
+ prefix = "border-width";
93
+ break;
94
+ case "elevation":
95
+ prefix = "shadow";
96
+ break;
97
+ case "opacity":
98
+ prefix = "opacity";
99
+ break;
100
+ default:
101
+ return null;
102
+ }
103
+ // Build the full variable name
104
+ const nameParts = [prefix, ...rest].filter(Boolean);
105
+ const varName = `--${nameParts.join("-").toLowerCase()}`;
106
+ return varName;
107
+ }
108
+ function formatTokenValue(token) {
109
+ const value = token.value;
110
+ // Handle null/undefined
111
+ if (value === null || value === undefined) {
112
+ return null;
113
+ }
114
+ // String values (colors, font names, etc.)
115
+ if (typeof value === "string") {
116
+ // If it's already a CSS value, return as-is
117
+ return value;
118
+ }
119
+ // Number values (should have been transformed to strings with units by transforms)
120
+ if (typeof value === "number") {
121
+ return value.toString();
122
+ }
123
+ // Object values (shouldn't reach here after filtering, but just in case)
124
+ if (typeof value === "object") {
125
+ return null;
126
+ }
127
+ // For boolean values, convert to string
128
+ if (typeof value === "boolean") {
129
+ return value.toString();
130
+ }
131
+ // Should not reach here, return null for safety
132
+ return null;
133
+ }
@@ -1,4 +1,5 @@
1
1
  import { fileHeader } from "style-dictionary/utils";
2
+ import { isLeafNode } from "./format-utils.js";
2
3
  export const typescriptEsModule = {
3
4
  name: "typescript/es-module",
4
5
  format: async ({ dictionary, file }) => {
@@ -13,13 +14,6 @@ export const typescriptEsModule = {
13
14
  return fileHeaderContent + tokenTopNode(varName, dictionary.tokens);
14
15
  },
15
16
  };
16
- function isLeafNode(token) {
17
- const tokenAsLeaf = token;
18
- return Boolean(tokenAsLeaf.filePath &&
19
- tokenAsLeaf.original &&
20
- tokenAsLeaf.name &&
21
- tokenAsLeaf.value);
22
- }
23
17
  function tokenTopNode(varName, properties) {
24
18
  return `export const ${varName} = ${tokenTreeNode(properties)};`;
25
19
  }
@@ -1,3 +1,4 @@
1
1
  import { layer } from "@vanilla-extract/css";
2
2
  export const typography = layer("typography");
3
3
  export const framework = layer("framework");
4
+ // temp comment
@@ -0,0 +1,233 @@
1
+ /**
2
+ * Generated by style-dictionary for Tailwind v4.
3
+ * Import in your globals.css
4
+ */
5
+
6
+ @theme {
7
+ --color-primary: #000000;
8
+ --color-secondary: #ffffff;
9
+ --color-tertiary: #f50537;
10
+ --color-tertiary-variant: #737d86;
11
+ --color-neutral: #56616e;
12
+ --color-neutral-variant: #d4dee9;
13
+ --color-error: #fd2c4e;
14
+ --color-warning: #ffaa00;
15
+ --color-success: #26b82b;
16
+ --color-info: #556efe;
17
+ --color-interactive: #2526fe;
18
+ --color-black: #000000;
19
+ --color-white: #ffffff;
20
+ --color-primary-10: #000000;
21
+ --color-primary-20: #1a1a1a;
22
+ --color-primary-30: #262626;
23
+ --color-primary-40: #333333;
24
+ --color-primary-50: #666666;
25
+ --color-primary-60: #808080;
26
+ --color-primary-70: #b3b3b3;
27
+ --color-primary-80: #cccccc;
28
+ --color-primary-90: #e5e5e5;
29
+ --color-primary-95: #f2f2f2;
30
+ --color-secondary-10: #000000;
31
+ --color-secondary-20: #1a1a1a;
32
+ --color-secondary-30: #262626;
33
+ --color-secondary-40: #333333;
34
+ --color-secondary-50: #666666;
35
+ --color-secondary-60: #808080;
36
+ --color-secondary-70: #b3b3b3;
37
+ --color-secondary-80: #cccccc;
38
+ --color-secondary-90: #e5e5e5;
39
+ --color-secondary-95: #f2f2f2;
40
+ --color-tertiary-10: #480000;
41
+ --color-tertiary-20: #570000;
42
+ --color-tertiary-30: #ab0013;
43
+ --color-tertiary-40: #f50537;
44
+ --color-tertiary-50: #ff2443;
45
+ --color-tertiary-60: #ff4953;
46
+ --color-tertiary-70: #ff6d6d;
47
+ --color-tertiary-80: #ff9292;
48
+ --color-tertiary-90: #ffb6b6;
49
+ --color-tertiary-95: #ffdbdb;
50
+ --color-tertiary-variant-10: #13161a;
51
+ --color-tertiary-variant-20: #252a30;
52
+ --color-tertiary-variant-30: #4b545c;
53
+ --color-tertiary-variant-40: #737d86;
54
+ --color-tertiary-variant-50: #868f98;
55
+ --color-tertiary-variant-60: #99a1ab;
56
+ --color-tertiary-variant-70: #adb3bc;
57
+ --color-tertiary-variant-80: #c1c6ce;
58
+ --color-tertiary-variant-90: #d5d8de;
59
+ --color-tertiary-variant-95: #eaecef;
60
+ --color-neutral-10: #0f1215;
61
+ --color-neutral-20: #1e242a;
62
+ --color-neutral-30: #2c353f;
63
+ --color-neutral-40: #3b4754;
64
+ --color-neutral-50: #56616e;
65
+ --color-neutral-60: #707c87;
66
+ --color-neutral-70: #8c96a0;
67
+ --color-neutral-80: #a8b0b9;
68
+ --color-neutral-90: #c4cad1;
69
+ --color-neutral-95: #e2e5e8;
70
+ --color-neutral-variant-10: #35383a;
71
+ --color-neutral-variant-20: #6a6f75;
72
+ --color-neutral-variant-30: #9fa7af;
73
+ --color-neutral-variant-40: #d4dee9;
74
+ --color-neutral-variant-50: #d9e3ed;
75
+ --color-neutral-variant-60: #dee7f1;
76
+ --color-neutral-variant-70: #e4ecf5;
77
+ --color-neutral-variant-80: #eaf1f8;
78
+ --color-neutral-variant-90: #f1f6fb;
79
+ --color-neutral-variant-95: #f8fafd;
80
+ --color-error-10: #030000;
81
+ --color-error-20: #570008;
82
+ --color-error-30: #ab0622;
83
+ --color-error-40: #fd2c4e;
84
+ --color-error-50: #ff3d58;
85
+ --color-error-60: #ff5365;
86
+ --color-error-70: #ff6d78;
87
+ --color-error-80: #ff9292;
88
+ --color-error-90: #ffb6b6;
89
+ --color-error-95: #ffdbdb;
90
+ --color-warning-10: #3d1400;
91
+ --color-warning-20: #6b2400;
92
+ --color-warning-30: #a54600;
93
+ --color-warning-40: #ffaa00;
94
+ --color-warning-50: #ffab00;
95
+ --color-warning-60: #ffca41;
96
+ --color-warning-70: #ffd771;
97
+ --color-warning-80: #ffe692;
98
+ --color-warning-90: #fff0b6;
99
+ --color-warning-95: #fff8db;
100
+ --color-success-10: #000200;
101
+ --color-success-20: #004800;
102
+ --color-success-30: #007d00;
103
+ --color-success-40: #0da20d;
104
+ --color-success-50: #26b82b;
105
+ --color-success-60: #49cc4c;
106
+ --color-success-70: #6ddc6f;
107
+ --color-success-80: #92e992;
108
+ --color-success-90: #b6f4b7;
109
+ --color-success-95: #dbfbdb;
110
+ --color-info-10: #000003;
111
+ --color-info-20: #0a1657;
112
+ --color-info-30: #263bab;
113
+ --color-info-40: #556efe;
114
+ --color-info-50: #6376ff;
115
+ --color-info-60: #7481ff;
116
+ --color-info-70: #8990ff;
117
+ --color-info-80: #a1a3ff;
118
+ --color-info-90: #bfbdff;
119
+ --color-info-95: #dfdcff;
120
+ --color-interactive-10: #000003;
121
+ --color-interactive-20: #000057;
122
+ --color-interactive-30: #0201ab;
123
+ --color-interactive-40: #2526fe;
124
+ --color-interactive-50: #3d37ff;
125
+ --color-interactive-60: #5a4dff;
126
+ --color-interactive-70: #796dff;
127
+ --color-interactive-80: #9a92ff;
128
+ --color-interactive-90: #bcb6ff;
129
+ --color-interactive-95: #dedbff;
130
+ --color-primary: #f2f2f2;
131
+ --color-on-primary: #000000;
132
+ --color-secondary: #333333;
133
+ --color-on-secondary: #f2f2f2;
134
+ --color-on-tertiary: #480000;
135
+ --color-on-tertiary-container: #480000;
136
+ --color-background: #000000;
137
+ --color-on-background: #ffffff;
138
+ --color-inverse-background: #ffffff;
139
+ --color-on-inverse-background: #000000;
140
+ --color-surface: #333333;
141
+ --color-on-surface: #ffffff;
142
+ --color-disabled: #3b4754;
143
+ --color-on-disabled: #8c96a0;
144
+ --color-text-variant: #a8b0b9;
145
+ --color-outline: #56616e;
146
+ --color-loader: #3b4754;
147
+ --color-on-loader: #a8b0b9;
148
+ --color-surface-variant: #1a1a1a;
149
+ --color-on-surface-variant: #ffffff;
150
+ --color-success: #26b82b;
151
+ --color-interactive: #ffffff;
152
+ --color-highlight: #796dff;
153
+ --color-inverse-text-variant: #1e242a;
154
+ --color-surface-tertiary-variant: #9fa7af;
155
+ --color-on-surface-tertiary-variant: #000000;
156
+ --color-progress: #e2e5e8;
157
+ --color-on-progress: #f50537;
158
+ --color-primary-container: #e5e5e5;
159
+ --color-on-primary-container: #000000;
160
+ --color-secondary-container: #e5e5e5;
161
+ --color-on-secondary-container: #000000;
162
+ --color-tertiary: #f50537;
163
+ --color-tertiary-container: #ffb6b6;
164
+ --color-tertiary-variant: #737d86;
165
+ --color-on-tertiary-variant: #000000;
166
+ --color-error: #fd2c4e;
167
+ --color-on-error: #ffffff;
168
+ --color-error-container: #ffdbdb;
169
+ --color-on-error-container: #030000;
170
+ --color-warning: #ffaa00;
171
+ --color-on-warning: #000000;
172
+ --color-warning-container: #fff8db;
173
+ --color-on-warning-container: #3d1400;
174
+ --color-on-success: #ffffff;
175
+ --color-success-container: #dbfbdb;
176
+ --color-on-success-container: #000200;
177
+ --color-info: #556efe;
178
+ --color-on-info: #ffffff;
179
+ --color-info-container: #dfdcff;
180
+ --color-on-info-container: #000003;
181
+ --font-brand: Audi Type Variable;
182
+ --font-brand-display: Audi Type;
183
+ --font-weight-weight-light: 400;
184
+ --font-weight-weight-book: 400;
185
+ --font-weight-weight-regular: 400;
186
+ --font-weight-weight-medium: 700;
187
+ --font-weight-weight-semibold: 700;
188
+ --font-weight-weight-bold: 700;
189
+ --font-weight-weight-extra-bold: 700;
190
+ --font-weight-weight-black: 700;
191
+ --font-size-size-s: 0.875rem;
192
+ --font-size-size-base: 1rem;
193
+ --font-size-size-m: 1.125rem;
194
+ --font-size-size-l: 1.25rem;
195
+ --font-size-size-xl: 1.5rem;
196
+ --font-size-size-xxl: 1.75rem;
197
+ --font-size-size-3xl: 2rem;
198
+ --font-size-size-4xl: 2.5rem;
199
+ --font-size-size-5xl: 3.25rem;
200
+ --leading-line-height: 1.4;
201
+ --tracking-letter-spacing-none: 0;
202
+ --border-width-x-small: 0.5px;
203
+ --border-width-small: 1px;
204
+ --border-width-medium: 2px;
205
+ --border-width-large: 4px;
206
+ --rounded-none: 0px;
207
+ --rounded-small: 2px;
208
+ --rounded-medium: 4px;
209
+ --rounded-large: 8px;
210
+ --rounded-x-large: 12px;
211
+ --rounded-xx-large: 16px;
212
+ --rounded-full: 999px;
213
+ --radius-button: 999px;
214
+ --radius-card: 16px;
215
+ --radius-input: 12px;
216
+ --radius-picker: 12px;
217
+ --radius-overlay: 12px;
218
+ --radius-feedback: 12px;
219
+ --radius-checkbox: 0px;
220
+ --shadow-none: 0px 0px 0px 0px #00000000;
221
+ --shadow-low:
222
+ 0px 0px 1px 0px #0000003d, 0px 1px 4px 0px #0000000a,
223
+ 0px 4px 8px 0px #0000000f;
224
+ --shadow-medium:
225
+ 0px 0px 1px 0px #0000003d, 0px 4px 8px 0px #0000000a,
226
+ 0px 8px 24px 0px #0000000f;
227
+ --shadow-high:
228
+ 0px 0px 1px 0px #0000003d, 0px 2px 16px 0px #00000014,
229
+ 0px 8px 48px 0px #0000000f;
230
+ --opacity-on-hover: 0.08;
231
+ --opacity-on-pressed: 0.16;
232
+ --opacity-on-focus: 0.16;
233
+ }