@gnist/themes 3.22.0 → 3.23.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/README.md +93 -0
- package/dist/atoms.css.d.ts +6 -1
- package/dist/atoms.css.js +1 -0
- package/dist/build-utils/generate-themes.js +33 -4
- package/dist/build-utils/theme-utils/formats/format-utils.d.ts +6 -0
- package/dist/build-utils/theme-utils/formats/format-utils.js +11 -0
- package/dist/build-utils/theme-utils/formats/tailwindCss.d.ts +2 -0
- package/dist/build-utils/theme-utils/formats/tailwindCss.js +139 -0
- package/dist/build-utils/theme-utils/formats/typescriptEsModule.js +1 -7
- package/dist/themes/audi.tailwind.css +253 -0
- package/dist/themes/audiLight.tailwind.css +253 -0
- package/dist/themes/autoria.tailwind.css +253 -0
- package/dist/themes/bilholdLight.tailwind.css +253 -0
- package/dist/themes/brandless.tailwind.css +253 -0
- package/dist/themes/cupra.tailwind.css +253 -0
- package/dist/themes/dahles.tailwind.css +253 -0
- package/dist/themes/gnist.tailwind.css +253 -0
- package/dist/themes/gumpen.tailwind.css +253 -0
- package/dist/themes/mollerBil.tailwind.css +253 -0
- package/dist/themes/skoda.tailwind.css +253 -0
- package/dist/themes/tools.tailwind.css +253 -0
- package/dist/themes/toolsDark.tailwind.css +253 -0
- package/dist/themes/vw.tailwind.css +253 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -4
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.
|
package/dist/atoms.css.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export declare const atoms: ((props: {
|
|
|
10
10
|
tablet?: "column" | "row" | undefined;
|
|
11
11
|
desktop?: "column" | "row" | undefined;
|
|
12
12
|
} | undefined;
|
|
13
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse" | {
|
|
14
|
+
mobile?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
15
|
+
tablet?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
16
|
+
desktop?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
17
|
+
} | undefined;
|
|
13
18
|
justifyContent?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | {
|
|
14
19
|
mobile?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
15
20
|
tablet?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
@@ -135,6 +140,6 @@ export declare const atoms: ((props: {
|
|
|
135
140
|
} & {
|
|
136
141
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
137
142
|
}) => string) & {
|
|
138
|
-
properties: Set<"color" | "position" | "alignItems" | "backgroundColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopWidth" | "boxShadow" | "columnGap" | "display" | "flexDirection" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "width" | "padding" | "borderColor" | "borderRadius" | "borderWidth" | "gap" | "margin" | "typography" | "marginX" | "marginY" | "paddingX" | "paddingY">;
|
|
143
|
+
properties: Set<"color" | "position" | "alignItems" | "backgroundColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopWidth" | "boxShadow" | "columnGap" | "display" | "flexDirection" | "flexWrap" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "width" | "padding" | "borderColor" | "borderRadius" | "borderWidth" | "gap" | "margin" | "typography" | "marginX" | "marginY" | "paddingX" | "paddingY">;
|
|
139
144
|
};
|
|
140
145
|
export type Atoms = Parameters<typeof atoms>[0];
|
package/dist/atoms.css.js
CHANGED
|
@@ -25,6 +25,7 @@ const responsiveProperties = defineProperties({
|
|
|
25
25
|
properties: {
|
|
26
26
|
display: ["none", "grid", "flex", "block", "inline", "inline-flex"],
|
|
27
27
|
flexDirection: ["row", "column"],
|
|
28
|
+
flexWrap: ["nowrap", "wrap", "wrap-reverse"],
|
|
28
29
|
justifyContent: [
|
|
29
30
|
"stretch",
|
|
30
31
|
"flex-start",
|
|
@@ -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
|
-
|
|
88
|
-
|
|
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.
|
|
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,139 @@
|
|
|
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 "spacing":
|
|
66
|
+
prefix = "spacing";
|
|
67
|
+
break;
|
|
68
|
+
case "size":
|
|
69
|
+
prefix = "size";
|
|
70
|
+
break;
|
|
71
|
+
case "typeface":
|
|
72
|
+
if (rest[0] === "brand" || rest[0] === "brand-display") {
|
|
73
|
+
prefix = "font";
|
|
74
|
+
}
|
|
75
|
+
else if (rest[0] === "size") {
|
|
76
|
+
prefix = "font-size";
|
|
77
|
+
}
|
|
78
|
+
else if (rest[0] === "weight") {
|
|
79
|
+
prefix = "font-weight";
|
|
80
|
+
}
|
|
81
|
+
else if (rest[0] === "line-height") {
|
|
82
|
+
prefix = "leading";
|
|
83
|
+
}
|
|
84
|
+
else if (rest[0] === "letter-spacing") {
|
|
85
|
+
prefix = "tracking";
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return null; // Skip other typeface properties
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case "radius":
|
|
92
|
+
prefix = "radius";
|
|
93
|
+
break;
|
|
94
|
+
case "border-radius":
|
|
95
|
+
prefix = "rounded";
|
|
96
|
+
break;
|
|
97
|
+
case "stroke":
|
|
98
|
+
prefix = "border-width";
|
|
99
|
+
break;
|
|
100
|
+
case "elevation":
|
|
101
|
+
prefix = "shadow";
|
|
102
|
+
break;
|
|
103
|
+
case "opacity":
|
|
104
|
+
prefix = "opacity";
|
|
105
|
+
break;
|
|
106
|
+
default:
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
// Build the full variable name
|
|
110
|
+
const nameParts = [prefix, ...rest].filter(Boolean);
|
|
111
|
+
const varName = `--${nameParts.join("-").toLowerCase()}`;
|
|
112
|
+
return varName;
|
|
113
|
+
}
|
|
114
|
+
function formatTokenValue(token) {
|
|
115
|
+
const value = token.value;
|
|
116
|
+
// Handle null/undefined
|
|
117
|
+
if (value === null || value === undefined) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
// String values (colors, font names, etc.)
|
|
121
|
+
if (typeof value === "string") {
|
|
122
|
+
// If it's already a CSS value, return as-is
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
// Number values (should have been transformed to strings with units by transforms)
|
|
126
|
+
if (typeof value === "number") {
|
|
127
|
+
return value.toString();
|
|
128
|
+
}
|
|
129
|
+
// Object values (shouldn't reach here after filtering, but just in case)
|
|
130
|
+
if (typeof value === "object") {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
// For boolean values, convert to string
|
|
134
|
+
if (typeof value === "boolean") {
|
|
135
|
+
return value.toString();
|
|
136
|
+
}
|
|
137
|
+
// Should not reach here, return null for safety
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by style-dictionary for Tailwind v4.
|
|
3
|
+
* Import in your globals.css
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@theme {
|
|
7
|
+
--spacing-none: 0px;
|
|
8
|
+
--spacing-base: 4px;
|
|
9
|
+
--spacing-xxs: 8px;
|
|
10
|
+
--spacing-xs: 12px;
|
|
11
|
+
--spacing-s: 16px;
|
|
12
|
+
--spacing-m: 20px;
|
|
13
|
+
--spacing-l: 24px;
|
|
14
|
+
--spacing-xl: 32px;
|
|
15
|
+
--spacing-xxl: 40px;
|
|
16
|
+
--spacing-3xl: 48px;
|
|
17
|
+
--size-base: 4px;
|
|
18
|
+
--size-xxs: 8px;
|
|
19
|
+
--size-xs: 12px;
|
|
20
|
+
--size-s: 16px;
|
|
21
|
+
--size-m: 20px;
|
|
22
|
+
--size-l: 24px;
|
|
23
|
+
--size-xl: 32px;
|
|
24
|
+
--size-xxl: 40px;
|
|
25
|
+
--size-3xl: 48px;
|
|
26
|
+
--size-4xl: 64px;
|
|
27
|
+
--color-primary: #000000;
|
|
28
|
+
--color-secondary: #ffffff;
|
|
29
|
+
--color-tertiary: #f50537;
|
|
30
|
+
--color-tertiary-variant: #737d86;
|
|
31
|
+
--color-neutral: #56616e;
|
|
32
|
+
--color-neutral-variant: #d4dee9;
|
|
33
|
+
--color-error: #fd2c4e;
|
|
34
|
+
--color-warning: #ffaa00;
|
|
35
|
+
--color-success: #26b82b;
|
|
36
|
+
--color-info: #556efe;
|
|
37
|
+
--color-interactive: #2526fe;
|
|
38
|
+
--color-black: #000000;
|
|
39
|
+
--color-white: #ffffff;
|
|
40
|
+
--color-primary-10: #000000;
|
|
41
|
+
--color-primary-20: #1a1a1a;
|
|
42
|
+
--color-primary-30: #262626;
|
|
43
|
+
--color-primary-40: #333333;
|
|
44
|
+
--color-primary-50: #666666;
|
|
45
|
+
--color-primary-60: #808080;
|
|
46
|
+
--color-primary-70: #b3b3b3;
|
|
47
|
+
--color-primary-80: #cccccc;
|
|
48
|
+
--color-primary-90: #e5e5e5;
|
|
49
|
+
--color-primary-95: #f2f2f2;
|
|
50
|
+
--color-secondary-10: #000000;
|
|
51
|
+
--color-secondary-20: #1a1a1a;
|
|
52
|
+
--color-secondary-30: #262626;
|
|
53
|
+
--color-secondary-40: #333333;
|
|
54
|
+
--color-secondary-50: #666666;
|
|
55
|
+
--color-secondary-60: #808080;
|
|
56
|
+
--color-secondary-70: #b3b3b3;
|
|
57
|
+
--color-secondary-80: #cccccc;
|
|
58
|
+
--color-secondary-90: #e5e5e5;
|
|
59
|
+
--color-secondary-95: #f2f2f2;
|
|
60
|
+
--color-tertiary-10: #480000;
|
|
61
|
+
--color-tertiary-20: #570000;
|
|
62
|
+
--color-tertiary-30: #ab0013;
|
|
63
|
+
--color-tertiary-40: #f50537;
|
|
64
|
+
--color-tertiary-50: #ff2443;
|
|
65
|
+
--color-tertiary-60: #ff4953;
|
|
66
|
+
--color-tertiary-70: #ff6d6d;
|
|
67
|
+
--color-tertiary-80: #ff9292;
|
|
68
|
+
--color-tertiary-90: #ffb6b6;
|
|
69
|
+
--color-tertiary-95: #ffdbdb;
|
|
70
|
+
--color-tertiary-variant-10: #13161a;
|
|
71
|
+
--color-tertiary-variant-20: #252a30;
|
|
72
|
+
--color-tertiary-variant-30: #4b545c;
|
|
73
|
+
--color-tertiary-variant-40: #737d86;
|
|
74
|
+
--color-tertiary-variant-50: #868f98;
|
|
75
|
+
--color-tertiary-variant-60: #99a1ab;
|
|
76
|
+
--color-tertiary-variant-70: #adb3bc;
|
|
77
|
+
--color-tertiary-variant-80: #c1c6ce;
|
|
78
|
+
--color-tertiary-variant-90: #d5d8de;
|
|
79
|
+
--color-tertiary-variant-95: #eaecef;
|
|
80
|
+
--color-neutral-10: #0f1215;
|
|
81
|
+
--color-neutral-20: #1e242a;
|
|
82
|
+
--color-neutral-30: #2c353f;
|
|
83
|
+
--color-neutral-40: #3b4754;
|
|
84
|
+
--color-neutral-50: #56616e;
|
|
85
|
+
--color-neutral-60: #707c87;
|
|
86
|
+
--color-neutral-70: #8c96a0;
|
|
87
|
+
--color-neutral-80: #a8b0b9;
|
|
88
|
+
--color-neutral-90: #c4cad1;
|
|
89
|
+
--color-neutral-95: #e2e5e8;
|
|
90
|
+
--color-neutral-variant-10: #35383a;
|
|
91
|
+
--color-neutral-variant-20: #6a6f75;
|
|
92
|
+
--color-neutral-variant-30: #9fa7af;
|
|
93
|
+
--color-neutral-variant-40: #d4dee9;
|
|
94
|
+
--color-neutral-variant-50: #d9e3ed;
|
|
95
|
+
--color-neutral-variant-60: #dee7f1;
|
|
96
|
+
--color-neutral-variant-70: #e4ecf5;
|
|
97
|
+
--color-neutral-variant-80: #eaf1f8;
|
|
98
|
+
--color-neutral-variant-90: #f1f6fb;
|
|
99
|
+
--color-neutral-variant-95: #f8fafd;
|
|
100
|
+
--color-error-10: #030000;
|
|
101
|
+
--color-error-20: #570008;
|
|
102
|
+
--color-error-30: #ab0622;
|
|
103
|
+
--color-error-40: #fd2c4e;
|
|
104
|
+
--color-error-50: #ff3d58;
|
|
105
|
+
--color-error-60: #ff5365;
|
|
106
|
+
--color-error-70: #ff6d78;
|
|
107
|
+
--color-error-80: #ff9292;
|
|
108
|
+
--color-error-90: #ffb6b6;
|
|
109
|
+
--color-error-95: #ffdbdb;
|
|
110
|
+
--color-warning-10: #3d1400;
|
|
111
|
+
--color-warning-20: #6b2400;
|
|
112
|
+
--color-warning-30: #a54600;
|
|
113
|
+
--color-warning-40: #ffaa00;
|
|
114
|
+
--color-warning-50: #ffab00;
|
|
115
|
+
--color-warning-60: #ffca41;
|
|
116
|
+
--color-warning-70: #ffd771;
|
|
117
|
+
--color-warning-80: #ffe692;
|
|
118
|
+
--color-warning-90: #fff0b6;
|
|
119
|
+
--color-warning-95: #fff8db;
|
|
120
|
+
--color-success-10: #000200;
|
|
121
|
+
--color-success-20: #004800;
|
|
122
|
+
--color-success-30: #007d00;
|
|
123
|
+
--color-success-40: #0da20d;
|
|
124
|
+
--color-success-50: #26b82b;
|
|
125
|
+
--color-success-60: #49cc4c;
|
|
126
|
+
--color-success-70: #6ddc6f;
|
|
127
|
+
--color-success-80: #92e992;
|
|
128
|
+
--color-success-90: #b6f4b7;
|
|
129
|
+
--color-success-95: #dbfbdb;
|
|
130
|
+
--color-info-10: #000003;
|
|
131
|
+
--color-info-20: #0a1657;
|
|
132
|
+
--color-info-30: #263bab;
|
|
133
|
+
--color-info-40: #556efe;
|
|
134
|
+
--color-info-50: #6376ff;
|
|
135
|
+
--color-info-60: #7481ff;
|
|
136
|
+
--color-info-70: #8990ff;
|
|
137
|
+
--color-info-80: #a1a3ff;
|
|
138
|
+
--color-info-90: #bfbdff;
|
|
139
|
+
--color-info-95: #dfdcff;
|
|
140
|
+
--color-interactive-10: #000003;
|
|
141
|
+
--color-interactive-20: #000057;
|
|
142
|
+
--color-interactive-30: #0201ab;
|
|
143
|
+
--color-interactive-40: #2526fe;
|
|
144
|
+
--color-interactive-50: #3d37ff;
|
|
145
|
+
--color-interactive-60: #5a4dff;
|
|
146
|
+
--color-interactive-70: #796dff;
|
|
147
|
+
--color-interactive-80: #9a92ff;
|
|
148
|
+
--color-interactive-90: #bcb6ff;
|
|
149
|
+
--color-interactive-95: #dedbff;
|
|
150
|
+
--color-primary: #f2f2f2;
|
|
151
|
+
--color-on-primary: #000000;
|
|
152
|
+
--color-secondary: #333333;
|
|
153
|
+
--color-on-secondary: #f2f2f2;
|
|
154
|
+
--color-on-tertiary: #480000;
|
|
155
|
+
--color-on-tertiary-container: #480000;
|
|
156
|
+
--color-background: #000000;
|
|
157
|
+
--color-on-background: #ffffff;
|
|
158
|
+
--color-inverse-background: #ffffff;
|
|
159
|
+
--color-on-inverse-background: #000000;
|
|
160
|
+
--color-surface: #333333;
|
|
161
|
+
--color-on-surface: #ffffff;
|
|
162
|
+
--color-disabled: #3b4754;
|
|
163
|
+
--color-on-disabled: #8c96a0;
|
|
164
|
+
--color-text-variant: #a8b0b9;
|
|
165
|
+
--color-outline: #56616e;
|
|
166
|
+
--color-loader: #3b4754;
|
|
167
|
+
--color-on-loader: #a8b0b9;
|
|
168
|
+
--color-surface-variant: #1a1a1a;
|
|
169
|
+
--color-on-surface-variant: #ffffff;
|
|
170
|
+
--color-success: #26b82b;
|
|
171
|
+
--color-interactive: #ffffff;
|
|
172
|
+
--color-highlight: #796dff;
|
|
173
|
+
--color-inverse-text-variant: #1e242a;
|
|
174
|
+
--color-surface-tertiary-variant: #9fa7af;
|
|
175
|
+
--color-on-surface-tertiary-variant: #000000;
|
|
176
|
+
--color-progress: #e2e5e8;
|
|
177
|
+
--color-on-progress: #f50537;
|
|
178
|
+
--color-primary-container: #e5e5e5;
|
|
179
|
+
--color-on-primary-container: #000000;
|
|
180
|
+
--color-secondary-container: #e5e5e5;
|
|
181
|
+
--color-on-secondary-container: #000000;
|
|
182
|
+
--color-tertiary: #f50537;
|
|
183
|
+
--color-tertiary-container: #ffb6b6;
|
|
184
|
+
--color-tertiary-variant: #737d86;
|
|
185
|
+
--color-on-tertiary-variant: #000000;
|
|
186
|
+
--color-error: #fd2c4e;
|
|
187
|
+
--color-on-error: #ffffff;
|
|
188
|
+
--color-error-container: #ffdbdb;
|
|
189
|
+
--color-on-error-container: #030000;
|
|
190
|
+
--color-warning: #ffaa00;
|
|
191
|
+
--color-on-warning: #000000;
|
|
192
|
+
--color-warning-container: #fff8db;
|
|
193
|
+
--color-on-warning-container: #3d1400;
|
|
194
|
+
--color-on-success: #ffffff;
|
|
195
|
+
--color-success-container: #dbfbdb;
|
|
196
|
+
--color-on-success-container: #000200;
|
|
197
|
+
--color-info: #556efe;
|
|
198
|
+
--color-on-info: #ffffff;
|
|
199
|
+
--color-info-container: #dfdcff;
|
|
200
|
+
--color-on-info-container: #000003;
|
|
201
|
+
--font-brand: Audi Type Variable;
|
|
202
|
+
--font-brand-display: Audi Type;
|
|
203
|
+
--font-weight-weight-light: 400;
|
|
204
|
+
--font-weight-weight-book: 400;
|
|
205
|
+
--font-weight-weight-regular: 400;
|
|
206
|
+
--font-weight-weight-medium: 700;
|
|
207
|
+
--font-weight-weight-semibold: 700;
|
|
208
|
+
--font-weight-weight-bold: 700;
|
|
209
|
+
--font-weight-weight-extra-bold: 700;
|
|
210
|
+
--font-weight-weight-black: 700;
|
|
211
|
+
--font-size-size-s: 0.875rem;
|
|
212
|
+
--font-size-size-base: 1rem;
|
|
213
|
+
--font-size-size-m: 1.125rem;
|
|
214
|
+
--font-size-size-l: 1.25rem;
|
|
215
|
+
--font-size-size-xl: 1.5rem;
|
|
216
|
+
--font-size-size-xxl: 1.75rem;
|
|
217
|
+
--font-size-size-3xl: 2rem;
|
|
218
|
+
--font-size-size-4xl: 2.5rem;
|
|
219
|
+
--font-size-size-5xl: 3.25rem;
|
|
220
|
+
--leading-line-height: 1.4;
|
|
221
|
+
--tracking-letter-spacing-none: 0;
|
|
222
|
+
--border-width-x-small: 0.5px;
|
|
223
|
+
--border-width-small: 1px;
|
|
224
|
+
--border-width-medium: 2px;
|
|
225
|
+
--border-width-large: 4px;
|
|
226
|
+
--rounded-none: 0px;
|
|
227
|
+
--rounded-small: 2px;
|
|
228
|
+
--rounded-medium: 4px;
|
|
229
|
+
--rounded-large: 8px;
|
|
230
|
+
--rounded-x-large: 12px;
|
|
231
|
+
--rounded-xx-large: 16px;
|
|
232
|
+
--rounded-full: 999px;
|
|
233
|
+
--radius-button: 999px;
|
|
234
|
+
--radius-card: 16px;
|
|
235
|
+
--radius-input: 12px;
|
|
236
|
+
--radius-picker: 12px;
|
|
237
|
+
--radius-overlay: 12px;
|
|
238
|
+
--radius-feedback: 12px;
|
|
239
|
+
--radius-checkbox: 0px;
|
|
240
|
+
--shadow-none: 0px 0px 0px 0px #00000000;
|
|
241
|
+
--shadow-low:
|
|
242
|
+
0px 0px 1px 0px #0000003d, 0px 1px 4px 0px #0000000a,
|
|
243
|
+
0px 4px 8px 0px #0000000f;
|
|
244
|
+
--shadow-medium:
|
|
245
|
+
0px 0px 1px 0px #0000003d, 0px 4px 8px 0px #0000000a,
|
|
246
|
+
0px 8px 24px 0px #0000000f;
|
|
247
|
+
--shadow-high:
|
|
248
|
+
0px 0px 1px 0px #0000003d, 0px 2px 16px 0px #00000014,
|
|
249
|
+
0px 8px 48px 0px #0000000f;
|
|
250
|
+
--opacity-on-hover: 0.08;
|
|
251
|
+
--opacity-on-pressed: 0.16;
|
|
252
|
+
--opacity-on-focus: 0.16;
|
|
253
|
+
}
|