@ponti-studios/ui 0.4.0 → 0.4.2
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 +30 -4
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/package.json +36 -19
- package/src/components/feedback/alert.tsx +1 -1
- package/src/components/feedback/file-upload-status-badge.tsx +1 -1
- package/src/components/feedback/file-upload-status.tsx +2 -2
- package/src/components/forms/field.tsx +2 -2
- package/src/components/forms/passkey-management.tsx +2 -2
- package/src/components/overlays/dropdown-menu.tsx +1 -1
- package/src/components/primitives/button.tsx +6 -1
- package/src/index.ts +3 -3
- package/src/native/index.ts +11 -0
- package/src/native/make-styles.ts +32 -0
- package/src/native/shadows.ts +38 -0
- package/src/native/use-theme-colors.ts +19 -0
- package/src/{styles.css → styles/index.css} +5 -0
- package/src/{tokens → styles/tokens}/chart-colors.stories.tsx +10 -13
- package/src/{tokens → styles/tokens}/color-systems.stories.tsx +1 -1
- package/src/styles/tokens/css-vars.ts +15 -0
- package/src/{tokens → styles/tokens}/generated/dark.colors.generated.ts +3 -1
- package/src/{tokens → styles/tokens}/generated/dark.css +3 -1
- package/src/{tokens → styles/tokens}/generated/light.colors.generated.ts +3 -1
- package/src/{tokens → styles/tokens}/generated/light.css +3 -1
- package/src/{tokens → styles/tokens}/index.ts +0 -8
- package/src/styles/tokens/scripts/check-foundations.mjs +126 -0
- package/src/styles/tokens/scripts/check-source.mjs +43 -0
- package/src/styles/tokens/source/dark.tokens.json +105 -0
- package/src/styles/tokens/source/foundations.tokens.json +341 -0
- package/src/styles/tokens/source/light.tokens.json +105 -0
- package/src/styles/tokens/style-dictionary.dark-storybook.json +16 -0
- package/src/styles/tokens/style-dictionary.dark.json +21 -0
- package/src/styles/tokens/style-dictionary.foundations.json +21 -0
- package/src/styles/tokens/style-dictionary.light.json +21 -0
- package/dist/index.js +0 -2466
- package/dist/index.js.map +0 -1
- /package/src/{animations.css → styles/animations.css} +0 -0
- /package/src/{tokens → styles/tokens}/foundations.stories.tsx +0 -0
- /package/src/{tokens → styles/tokens}/generated/foundations.css +0 -0
- /package/src/{tokens → styles/tokens}/generated/foundations.generated.ts +0 -0
- /package/src/{tokens → styles/tokens}/layout.stories.tsx +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
|
|
4
|
+
const require = createRequire(import.meta.url);
|
|
5
|
+
const tailwindTheme = require.resolve("tailwindcss/theme.css");
|
|
6
|
+
const tailwind = readFileSync(tailwindTheme, "utf8");
|
|
7
|
+
const sourceTokens = JSON.parse(
|
|
8
|
+
readFileSync(new URL("../source/foundations.tokens.json", import.meta.url), "utf8"),
|
|
9
|
+
);
|
|
10
|
+
const generated = readFileSync(new URL("../generated/foundations.css", import.meta.url), "utf8");
|
|
11
|
+
|
|
12
|
+
const declarations = (css) =>
|
|
13
|
+
[...css.matchAll(/(--[\w-]+):\s*([^;]+);/g)].map(([, name, value]) => [name, value.trim()]);
|
|
14
|
+
const expected = declarations(tailwind);
|
|
15
|
+
const actual = declarations(generated);
|
|
16
|
+
const failures = [];
|
|
17
|
+
const normalize = (value) =>
|
|
18
|
+
value
|
|
19
|
+
.replaceAll(/\b0px\b/g, "0")
|
|
20
|
+
.replaceAll(/ 0 0 (rgb\()/g, " $1")
|
|
21
|
+
.replaceAll(/\s+/g, " ")
|
|
22
|
+
.trim();
|
|
23
|
+
const expectedValues = new Map(expected);
|
|
24
|
+
const generatedNames = new Set();
|
|
25
|
+
|
|
26
|
+
const requiredNames = [
|
|
27
|
+
"--spacing",
|
|
28
|
+
"--font-sans",
|
|
29
|
+
"--font-serif",
|
|
30
|
+
"--font-mono",
|
|
31
|
+
...[
|
|
32
|
+
"xs",
|
|
33
|
+
"sm",
|
|
34
|
+
"base",
|
|
35
|
+
"lg",
|
|
36
|
+
"xl",
|
|
37
|
+
"2xl",
|
|
38
|
+
"3xl",
|
|
39
|
+
"4xl",
|
|
40
|
+
"5xl",
|
|
41
|
+
"6xl",
|
|
42
|
+
"7xl",
|
|
43
|
+
"8xl",
|
|
44
|
+
"9xl",
|
|
45
|
+
].flatMap((name) => [`--text-${name}`, `--text-line-height-${name}`]),
|
|
46
|
+
...[
|
|
47
|
+
"thin",
|
|
48
|
+
"extralight",
|
|
49
|
+
"light",
|
|
50
|
+
"normal",
|
|
51
|
+
"medium",
|
|
52
|
+
"semibold",
|
|
53
|
+
"bold",
|
|
54
|
+
"extrabold",
|
|
55
|
+
"black",
|
|
56
|
+
].map((name) => `--font-weight-${name}`),
|
|
57
|
+
...["tighter", "tight", "normal", "wide", "wider", "widest"].map((name) => `--tracking-${name}`),
|
|
58
|
+
...["tight", "snug", "normal", "relaxed", "loose"].map((name) => `--leading-${name}`),
|
|
59
|
+
...["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "full"].map((name) => `--radius-${name}`),
|
|
60
|
+
...["2xs", "xs", "sm", "md", "lg", "xl", "2xl", "none"].map((name) => `--shadow-${name}`),
|
|
61
|
+
...["sm", "md", "lg", "xl", "2xl"].map((name) => `--breakpoint-${name}`),
|
|
62
|
+
...["3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl"].map(
|
|
63
|
+
(name) => `--container-${name}`,
|
|
64
|
+
),
|
|
65
|
+
...["auto", "0", "10", "20", "30", "40", "50"].map((name) => `--z-index-${name}`),
|
|
66
|
+
...["in", "out", "in-out"].map((name) => `--ease-${name}`),
|
|
67
|
+
...["75", "100", "150", "200", "300", "500", "700", "1000"].map((name) => `--duration-${name}`),
|
|
68
|
+
...["spin", "ping", "pulse", "bounce"].map((name) => `--animate-${name}`),
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
const sourceNames = new Set();
|
|
72
|
+
const collectSourceNames = (node, path = []) => {
|
|
73
|
+
if (!node || typeof node !== "object") return;
|
|
74
|
+
if (Object.hasOwn(node, "$value")) {
|
|
75
|
+
sourceNames.add(`--${path.join("-")}`);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
for (const [key, value] of Object.entries(node)) {
|
|
79
|
+
if (!key.startsWith("$")) collectSourceNames(value, [...path, key]);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
collectSourceNames(sourceTokens);
|
|
83
|
+
|
|
84
|
+
// Font families use our own system-ui stack ordering rather than Tailwind's
|
|
85
|
+
// exact default wording — every other foundation name is meant to stay
|
|
86
|
+
// aligned with Tailwind's own scale, but font-* is exempt from that check.
|
|
87
|
+
const brandOverrideNames = new Set(["--font-sans", "--font-serif", "--font-mono"]);
|
|
88
|
+
|
|
89
|
+
for (const [name, value] of actual) {
|
|
90
|
+
if (generatedNames.has(name)) failures.push(`duplicate generated foundation variable: ${name}`);
|
|
91
|
+
generatedNames.add(name);
|
|
92
|
+
|
|
93
|
+
if (brandOverrideNames.has(name)) continue;
|
|
94
|
+
|
|
95
|
+
const tailwindValue = expectedValues.get(name);
|
|
96
|
+
if (tailwindValue !== undefined && normalize(value) !== normalize(tailwindValue)) {
|
|
97
|
+
failures.push(`${name}: generated ${value}; Tailwind ${tailwindValue}`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
for (const name of requiredNames) {
|
|
102
|
+
if (!generatedNames.has(name))
|
|
103
|
+
failures.push(`required Tailwind foundation variable is missing: ${name}`);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
for (const name of sourceNames) {
|
|
107
|
+
if (!generatedNames.has(name)) failures.push(`missing generated foundation variable: ${name}`);
|
|
108
|
+
}
|
|
109
|
+
for (const name of generatedNames) {
|
|
110
|
+
if (!sourceNames.has(name))
|
|
111
|
+
failures.push(`generated foundation variable has no source token: ${name}`);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (/--[\w-]+:\s*var\(--[\w-]+\)/.test(generated))
|
|
115
|
+
failures.push("generated foundations contain a custom-property alias");
|
|
116
|
+
if (/--tracking-[\w-]+:\s*-?\d+(?:\.\d+)?\s*;/.test(generated))
|
|
117
|
+
failures.push("tracking values must carry a CSS unit");
|
|
118
|
+
|
|
119
|
+
if (failures.length) {
|
|
120
|
+
console.error(failures.join("\n"));
|
|
121
|
+
process.exit(1);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
console.log(
|
|
125
|
+
`Foundation conformance passed (${actual.length} generated variables; ${expectedValues.size} Tailwind variables available for comparison).`,
|
|
126
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { readdirSync, readFileSync, statSync } from "node:fs";
|
|
3
|
+
import { join, relative } from "node:path";
|
|
4
|
+
|
|
5
|
+
const sourceDirectory = fileURLToPath(new URL("../../../", import.meta.url));
|
|
6
|
+
const sourceFiles = [];
|
|
7
|
+
|
|
8
|
+
function collectFiles(directory) {
|
|
9
|
+
for (const entry of readdirSync(directory)) {
|
|
10
|
+
const path = join(directory, entry);
|
|
11
|
+
if (entry === "generated" && statSync(path).isDirectory()) continue;
|
|
12
|
+
if (statSync(path).isDirectory()) collectFiles(path);
|
|
13
|
+
else if (/\.(css|ts|tsx)$/.test(entry)) sourceFiles.push(path);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
collectFiles(sourceDirectory);
|
|
18
|
+
|
|
19
|
+
const checks = [
|
|
20
|
+
{ name: "Radix imports", pattern: /@radix-ui\// },
|
|
21
|
+
{ name: "legacy semantic utility classes", pattern: /(?:\bbg-canvas\b|\bborder-default\b)/ },
|
|
22
|
+
{
|
|
23
|
+
name: "invalid shadcn semantic classes",
|
|
24
|
+
pattern: /(?:text|bg|border)-foreground-foreground\b/,
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
const failures = [];
|
|
28
|
+
|
|
29
|
+
for (const file of sourceFiles) {
|
|
30
|
+
const source = readFileSync(file, "utf8");
|
|
31
|
+
for (const check of checks) {
|
|
32
|
+
if (check.name === "legacy semantic utility classes" && file.endsWith(".css")) continue;
|
|
33
|
+
if (check.pattern.test(source))
|
|
34
|
+
failures.push(`${check.name}: ${relative(sourceDirectory, file)}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (failures.length > 0) {
|
|
39
|
+
console.error(failures.join("\n"));
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
console.log(`Source contract passed (${sourceFiles.length} source files checked).`);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extensions": {
|
|
3
|
+
"org.ponti.license": "MIT"
|
|
4
|
+
},
|
|
5
|
+
"background": {
|
|
6
|
+
"$type": "color",
|
|
7
|
+
"$value": "rgb(17, 17, 19)"
|
|
8
|
+
},
|
|
9
|
+
"card": {
|
|
10
|
+
"$type": "color",
|
|
11
|
+
"$value": "rgb(24, 25, 27)"
|
|
12
|
+
},
|
|
13
|
+
"popover": {
|
|
14
|
+
"$type": "color",
|
|
15
|
+
"$value": "rgb(33, 34, 37)"
|
|
16
|
+
},
|
|
17
|
+
"muted": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$value": "rgb(24, 25, 27)"
|
|
20
|
+
},
|
|
21
|
+
"text-primary": {
|
|
22
|
+
"$type": "color",
|
|
23
|
+
"$value": "rgb(237, 238, 240)"
|
|
24
|
+
},
|
|
25
|
+
"text-secondary": {
|
|
26
|
+
"$type": "color",
|
|
27
|
+
"$value": "rgb(176, 180, 186)"
|
|
28
|
+
},
|
|
29
|
+
"tertiary": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": "rgb(119, 123, 132)"
|
|
32
|
+
},
|
|
33
|
+
"primary": {
|
|
34
|
+
"$type": "color",
|
|
35
|
+
"$value": "rgb(62, 99, 221)"
|
|
36
|
+
},
|
|
37
|
+
"destructive": {
|
|
38
|
+
"$type": "color",
|
|
39
|
+
"$value": "rgb(206, 44, 49)"
|
|
40
|
+
},
|
|
41
|
+
"success": {
|
|
42
|
+
"$type": "color",
|
|
43
|
+
"$value": "rgb(48, 164, 108)"
|
|
44
|
+
},
|
|
45
|
+
"warning": {
|
|
46
|
+
"$type": "color",
|
|
47
|
+
"$value": "rgb(255, 197, 61)"
|
|
48
|
+
},
|
|
49
|
+
"primary-foreground": {
|
|
50
|
+
"$type": "color",
|
|
51
|
+
"$value": "rgb(255, 255, 255)"
|
|
52
|
+
},
|
|
53
|
+
"destructive-foreground": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "rgb(255, 255, 255)"
|
|
56
|
+
},
|
|
57
|
+
"text-destructive": {
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$value": "rgb(255, 149, 146)"
|
|
60
|
+
},
|
|
61
|
+
"border-default": {
|
|
62
|
+
"$type": "color",
|
|
63
|
+
"$value": "rgb(67, 72, 78)"
|
|
64
|
+
},
|
|
65
|
+
"focus-ring": {
|
|
66
|
+
"$type": "color",
|
|
67
|
+
"$value": "rgb(62, 99, 221)"
|
|
68
|
+
},
|
|
69
|
+
"chart-1": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "rgb(62, 99, 221)"
|
|
72
|
+
},
|
|
73
|
+
"chart-2": {
|
|
74
|
+
"$type": "color",
|
|
75
|
+
"$value": "rgb(110, 86, 207)"
|
|
76
|
+
},
|
|
77
|
+
"chart-3": {
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$value": "rgb(18, 165, 148)"
|
|
80
|
+
},
|
|
81
|
+
"chart-4": {
|
|
82
|
+
"$type": "color",
|
|
83
|
+
"$value": "rgb(247, 107, 21)"
|
|
84
|
+
},
|
|
85
|
+
"chart-5": {
|
|
86
|
+
"$type": "color",
|
|
87
|
+
"$value": "rgb(105, 110, 119)"
|
|
88
|
+
},
|
|
89
|
+
"chart-positive": {
|
|
90
|
+
"$type": "color",
|
|
91
|
+
"$value": "rgb(48, 164, 108)"
|
|
92
|
+
},
|
|
93
|
+
"chart-negative": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "rgb(229, 72, 77)"
|
|
96
|
+
},
|
|
97
|
+
"chart-neutral": {
|
|
98
|
+
"$type": "color",
|
|
99
|
+
"$value": "rgb(90, 97, 105)"
|
|
100
|
+
},
|
|
101
|
+
"overlay-scrim": {
|
|
102
|
+
"$type": "color",
|
|
103
|
+
"$value": "rgb(0, 0, 0)"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Non-color foundations copied from tailwindcss@4.3.3/theme.css. Keep this file value-for-value aligned with Tailwind.",
|
|
3
|
+
"spacing": { "$type": "dimension", "$value": { "value": 0.25, "unit": "rem" } },
|
|
4
|
+
"spacing-scale": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"0": { "$value": { "value": 0, "unit": "rem" } },
|
|
7
|
+
"px": { "$value": { "value": 1, "unit": "px" } },
|
|
8
|
+
"0-5": { "$value": { "value": 0.125, "unit": "rem" } },
|
|
9
|
+
"1": { "$value": { "value": 0.25, "unit": "rem" } },
|
|
10
|
+
"1-5": { "$value": { "value": 0.375, "unit": "rem" } },
|
|
11
|
+
"2": { "$value": { "value": 0.5, "unit": "rem" } },
|
|
12
|
+
"2-5": { "$value": { "value": 0.625, "unit": "rem" } },
|
|
13
|
+
"3": { "$value": { "value": 0.75, "unit": "rem" } },
|
|
14
|
+
"3-5": { "$value": { "value": 0.875, "unit": "rem" } },
|
|
15
|
+
"4": { "$value": { "value": 1, "unit": "rem" } },
|
|
16
|
+
"5": { "$value": { "value": 1.25, "unit": "rem" } },
|
|
17
|
+
"6": { "$value": { "value": 1.5, "unit": "rem" } },
|
|
18
|
+
"7": { "$value": { "value": 1.75, "unit": "rem" } },
|
|
19
|
+
"8": { "$value": { "value": 2, "unit": "rem" } },
|
|
20
|
+
"9": { "$value": { "value": 2.25, "unit": "rem" } },
|
|
21
|
+
"10": { "$value": { "value": 2.5, "unit": "rem" } },
|
|
22
|
+
"11": { "$value": { "value": 2.75, "unit": "rem" } },
|
|
23
|
+
"12": { "$value": { "value": 3, "unit": "rem" } },
|
|
24
|
+
"14": { "$value": { "value": 3.5, "unit": "rem" } },
|
|
25
|
+
"16": { "$value": { "value": 4, "unit": "rem" } },
|
|
26
|
+
"20": { "$value": { "value": 5, "unit": "rem" } },
|
|
27
|
+
"24": { "$value": { "value": 6, "unit": "rem" } },
|
|
28
|
+
"28": { "$value": { "value": 7, "unit": "rem" } },
|
|
29
|
+
"32": { "$value": { "value": 8, "unit": "rem" } },
|
|
30
|
+
"36": { "$value": { "value": 9, "unit": "rem" } },
|
|
31
|
+
"40": { "$value": { "value": 10, "unit": "rem" } },
|
|
32
|
+
"44": { "$value": { "value": 11, "unit": "rem" } },
|
|
33
|
+
"48": { "$value": { "value": 12, "unit": "rem" } },
|
|
34
|
+
"52": { "$value": { "value": 13, "unit": "rem" } },
|
|
35
|
+
"56": { "$value": { "value": 14, "unit": "rem" } },
|
|
36
|
+
"60": { "$value": { "value": 15, "unit": "rem" } },
|
|
37
|
+
"64": { "$value": { "value": 16, "unit": "rem" } },
|
|
38
|
+
"72": { "$value": { "value": 18, "unit": "rem" } },
|
|
39
|
+
"80": { "$value": { "value": 20, "unit": "rem" } },
|
|
40
|
+
"96": { "$value": { "value": 24, "unit": "rem" } }
|
|
41
|
+
},
|
|
42
|
+
"font": {
|
|
43
|
+
"$type": "fontFamily",
|
|
44
|
+
"sans": {
|
|
45
|
+
"$value": [
|
|
46
|
+
"system-ui",
|
|
47
|
+
"-apple-system",
|
|
48
|
+
"BlinkMacSystemFont",
|
|
49
|
+
"Segoe UI",
|
|
50
|
+
"Roboto",
|
|
51
|
+
"Helvetica Neue",
|
|
52
|
+
"Noto Sans",
|
|
53
|
+
"Arial",
|
|
54
|
+
"sans-serif",
|
|
55
|
+
"Apple Color Emoji",
|
|
56
|
+
"Segoe UI Emoji",
|
|
57
|
+
"Segoe UI Symbol",
|
|
58
|
+
"Noto Color Emoji"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"serif": {
|
|
62
|
+
"$value": [
|
|
63
|
+
"system-ui",
|
|
64
|
+
"-apple-system",
|
|
65
|
+
"BlinkMacSystemFont",
|
|
66
|
+
"Segoe UI",
|
|
67
|
+
"Roboto",
|
|
68
|
+
"Helvetica Neue",
|
|
69
|
+
"Noto Sans",
|
|
70
|
+
"Arial",
|
|
71
|
+
"sans-serif",
|
|
72
|
+
"Apple Color Emoji",
|
|
73
|
+
"Segoe UI Emoji",
|
|
74
|
+
"Segoe UI Symbol",
|
|
75
|
+
"Noto Color Emoji"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"mono": {
|
|
79
|
+
"$value": [
|
|
80
|
+
"ui-monospace",
|
|
81
|
+
"SFMono-Regular",
|
|
82
|
+
"Menlo",
|
|
83
|
+
"Monaco",
|
|
84
|
+
"Consolas",
|
|
85
|
+
"Liberation Mono",
|
|
86
|
+
"Courier New",
|
|
87
|
+
"monospace"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"text": {
|
|
92
|
+
"$type": "dimension",
|
|
93
|
+
"xs": { "$value": { "value": 0.75, "unit": "rem" } },
|
|
94
|
+
"sm": { "$value": { "value": 0.875, "unit": "rem" } },
|
|
95
|
+
"base": { "$value": { "value": 1, "unit": "rem" } },
|
|
96
|
+
"lg": { "$value": { "value": 1.125, "unit": "rem" } },
|
|
97
|
+
"xl": { "$value": { "value": 1.25, "unit": "rem" } },
|
|
98
|
+
"2xl": { "$value": { "value": 1.5, "unit": "rem" } },
|
|
99
|
+
"3xl": { "$value": { "value": 1.875, "unit": "rem" } },
|
|
100
|
+
"4xl": { "$value": { "value": 2.25, "unit": "rem" } },
|
|
101
|
+
"5xl": { "$value": { "value": 3, "unit": "rem" } },
|
|
102
|
+
"6xl": { "$value": { "value": 3.75, "unit": "rem" } },
|
|
103
|
+
"7xl": { "$value": { "value": 4.5, "unit": "rem" } },
|
|
104
|
+
"8xl": { "$value": { "value": 6, "unit": "rem" } },
|
|
105
|
+
"9xl": { "$value": { "value": 8, "unit": "rem" } }
|
|
106
|
+
},
|
|
107
|
+
"text-line-height": {
|
|
108
|
+
"$type": "number",
|
|
109
|
+
"xs": { "$value": 1.3333333333 },
|
|
110
|
+
"sm": { "$value": 1.4285714286 },
|
|
111
|
+
"base": { "$value": 1.5 },
|
|
112
|
+
"lg": { "$value": 1.5555555556 },
|
|
113
|
+
"xl": { "$value": 1.4 },
|
|
114
|
+
"2xl": { "$value": 1.3333333333 },
|
|
115
|
+
"3xl": { "$value": 1.2 },
|
|
116
|
+
"4xl": { "$value": 1.1111111111 },
|
|
117
|
+
"5xl": { "$value": 1 },
|
|
118
|
+
"6xl": { "$value": 1 },
|
|
119
|
+
"7xl": { "$value": 1 },
|
|
120
|
+
"8xl": { "$value": 1 },
|
|
121
|
+
"9xl": { "$value": 1 }
|
|
122
|
+
},
|
|
123
|
+
"font-weight": {
|
|
124
|
+
"$type": "fontWeight",
|
|
125
|
+
"thin": { "$value": 100 },
|
|
126
|
+
"extralight": { "$value": 200 },
|
|
127
|
+
"light": { "$value": 300 },
|
|
128
|
+
"normal": { "$value": 400 },
|
|
129
|
+
"medium": { "$value": 500 },
|
|
130
|
+
"semibold": { "$value": 600 },
|
|
131
|
+
"bold": { "$value": 700 },
|
|
132
|
+
"extrabold": { "$value": 800 },
|
|
133
|
+
"black": { "$value": 900 }
|
|
134
|
+
},
|
|
135
|
+
"tracking": {
|
|
136
|
+
"$type": "dimension",
|
|
137
|
+
"tighter": { "$value": { "value": -0.05, "unit": "em" } },
|
|
138
|
+
"tight": { "$value": { "value": -0.025, "unit": "em" } },
|
|
139
|
+
"normal": { "$value": { "value": 0, "unit": "em" } },
|
|
140
|
+
"wide": { "$value": { "value": 0.025, "unit": "em" } },
|
|
141
|
+
"wider": { "$value": { "value": 0.05, "unit": "em" } },
|
|
142
|
+
"widest": { "$value": { "value": 0.1, "unit": "em" } }
|
|
143
|
+
},
|
|
144
|
+
"leading": {
|
|
145
|
+
"$type": "number",
|
|
146
|
+
"tight": { "$value": 1.25 },
|
|
147
|
+
"snug": { "$value": 1.375 },
|
|
148
|
+
"normal": { "$value": 1.5 },
|
|
149
|
+
"relaxed": { "$value": 1.625 },
|
|
150
|
+
"loose": { "$value": 2 }
|
|
151
|
+
},
|
|
152
|
+
"radius": {
|
|
153
|
+
"$type": "dimension",
|
|
154
|
+
"xs": { "$value": { "value": 0.125, "unit": "rem" } },
|
|
155
|
+
"sm": { "$value": { "value": 0.25, "unit": "rem" } },
|
|
156
|
+
"md": { "$value": { "value": 0.375, "unit": "rem" } },
|
|
157
|
+
"lg": { "$value": { "value": 0.5, "unit": "rem" } },
|
|
158
|
+
"xl": { "$value": { "value": 0.75, "unit": "rem" } },
|
|
159
|
+
"2xl": { "$value": { "value": 1, "unit": "rem" } },
|
|
160
|
+
"3xl": { "$value": { "value": 1.5, "unit": "rem" } },
|
|
161
|
+
"4xl": { "$value": { "value": 2, "unit": "rem" } },
|
|
162
|
+
"full": { "$value": { "value": 9999, "unit": "px" } }
|
|
163
|
+
},
|
|
164
|
+
"shadow": {
|
|
165
|
+
"$type": "shadow",
|
|
166
|
+
"2xs": {
|
|
167
|
+
"$value": [
|
|
168
|
+
{
|
|
169
|
+
"color": "rgb(0 0 0 / 0.05)",
|
|
170
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
171
|
+
"offsetY": { "value": 1, "unit": "px" },
|
|
172
|
+
"blur": { "value": 0, "unit": "px" },
|
|
173
|
+
"spread": { "value": 0, "unit": "px" }
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"xs": {
|
|
178
|
+
"$value": [
|
|
179
|
+
{
|
|
180
|
+
"color": "rgb(0 0 0 / 0.05)",
|
|
181
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
182
|
+
"offsetY": { "value": 1, "unit": "px" },
|
|
183
|
+
"blur": { "value": 2, "unit": "px" },
|
|
184
|
+
"spread": { "value": 0, "unit": "px" }
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"sm": {
|
|
189
|
+
"$value": [
|
|
190
|
+
{
|
|
191
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
192
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
193
|
+
"offsetY": { "value": 1, "unit": "px" },
|
|
194
|
+
"blur": { "value": 3, "unit": "px" },
|
|
195
|
+
"spread": { "value": 0, "unit": "px" }
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
199
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
200
|
+
"offsetY": { "value": 1, "unit": "px" },
|
|
201
|
+
"blur": { "value": 2, "unit": "px" },
|
|
202
|
+
"spread": { "value": -1, "unit": "px" }
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"md": {
|
|
207
|
+
"$value": [
|
|
208
|
+
{
|
|
209
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
210
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
211
|
+
"offsetY": { "value": 4, "unit": "px" },
|
|
212
|
+
"blur": { "value": 6, "unit": "px" },
|
|
213
|
+
"spread": { "value": -1, "unit": "px" }
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
217
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
218
|
+
"offsetY": { "value": 2, "unit": "px" },
|
|
219
|
+
"blur": { "value": 4, "unit": "px" },
|
|
220
|
+
"spread": { "value": -2, "unit": "px" }
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
"lg": {
|
|
225
|
+
"$value": [
|
|
226
|
+
{
|
|
227
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
228
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
229
|
+
"offsetY": { "value": 10, "unit": "px" },
|
|
230
|
+
"blur": { "value": 15, "unit": "px" },
|
|
231
|
+
"spread": { "value": -3, "unit": "px" }
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
235
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
236
|
+
"offsetY": { "value": 4, "unit": "px" },
|
|
237
|
+
"blur": { "value": 6, "unit": "px" },
|
|
238
|
+
"spread": { "value": -4, "unit": "px" }
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"xl": {
|
|
243
|
+
"$value": [
|
|
244
|
+
{
|
|
245
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
246
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
247
|
+
"offsetY": { "value": 20, "unit": "px" },
|
|
248
|
+
"blur": { "value": 25, "unit": "px" },
|
|
249
|
+
"spread": { "value": -5, "unit": "px" }
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"color": "rgb(0 0 0 / 0.1)",
|
|
253
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
254
|
+
"offsetY": { "value": 8, "unit": "px" },
|
|
255
|
+
"blur": { "value": 10, "unit": "px" },
|
|
256
|
+
"spread": { "value": -6, "unit": "px" }
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"2xl": {
|
|
261
|
+
"$value": [
|
|
262
|
+
{
|
|
263
|
+
"color": "rgb(0 0 0 / 0.25)",
|
|
264
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
265
|
+
"offsetY": { "value": 25, "unit": "px" },
|
|
266
|
+
"blur": { "value": 50, "unit": "px" },
|
|
267
|
+
"spread": { "value": -12, "unit": "px" }
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"none": {
|
|
272
|
+
"$value": [
|
|
273
|
+
{
|
|
274
|
+
"color": "transparent",
|
|
275
|
+
"offsetX": { "value": 0, "unit": "px" },
|
|
276
|
+
"offsetY": { "value": 0, "unit": "px" },
|
|
277
|
+
"blur": { "value": 0, "unit": "px" },
|
|
278
|
+
"spread": { "value": 0, "unit": "px" }
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"breakpoint": {
|
|
284
|
+
"$type": "dimension",
|
|
285
|
+
"sm": { "$value": { "value": 40, "unit": "rem" } },
|
|
286
|
+
"md": { "$value": { "value": 48, "unit": "rem" } },
|
|
287
|
+
"lg": { "$value": { "value": 64, "unit": "rem" } },
|
|
288
|
+
"xl": { "$value": { "value": 80, "unit": "rem" } },
|
|
289
|
+
"2xl": { "$value": { "value": 96, "unit": "rem" } }
|
|
290
|
+
},
|
|
291
|
+
"container": {
|
|
292
|
+
"$type": "dimension",
|
|
293
|
+
"3xs": { "$value": { "value": 16, "unit": "rem" } },
|
|
294
|
+
"2xs": { "$value": { "value": 18, "unit": "rem" } },
|
|
295
|
+
"xs": { "$value": { "value": 20, "unit": "rem" } },
|
|
296
|
+
"sm": { "$value": { "value": 24, "unit": "rem" } },
|
|
297
|
+
"md": { "$value": { "value": 28, "unit": "rem" } },
|
|
298
|
+
"lg": { "$value": { "value": 32, "unit": "rem" } },
|
|
299
|
+
"xl": { "$value": { "value": 36, "unit": "rem" } },
|
|
300
|
+
"2xl": { "$value": { "value": 42, "unit": "rem" } },
|
|
301
|
+
"3xl": { "$value": { "value": 48, "unit": "rem" } },
|
|
302
|
+
"4xl": { "$value": { "value": 56, "unit": "rem" } },
|
|
303
|
+
"5xl": { "$value": { "value": 64, "unit": "rem" } },
|
|
304
|
+
"6xl": { "$value": { "value": 72, "unit": "rem" } },
|
|
305
|
+
"7xl": { "$value": { "value": 80, "unit": "rem" } }
|
|
306
|
+
},
|
|
307
|
+
"z-index": {
|
|
308
|
+
"$type": "number",
|
|
309
|
+
"auto": { "$value": "auto" },
|
|
310
|
+
"0": { "$value": 0 },
|
|
311
|
+
"10": { "$value": 10 },
|
|
312
|
+
"20": { "$value": 20 },
|
|
313
|
+
"30": { "$value": 30 },
|
|
314
|
+
"40": { "$value": 40 },
|
|
315
|
+
"50": { "$value": 50 }
|
|
316
|
+
},
|
|
317
|
+
"ease": {
|
|
318
|
+
"$type": "cubicBezier",
|
|
319
|
+
"in": { "$value": [0.4, 0, 1, 1] },
|
|
320
|
+
"out": { "$value": [0, 0, 0.2, 1] },
|
|
321
|
+
"in-out": { "$value": [0.4, 0, 0.2, 1] }
|
|
322
|
+
},
|
|
323
|
+
"duration": {
|
|
324
|
+
"$type": "duration",
|
|
325
|
+
"75": { "$value": "75ms" },
|
|
326
|
+
"100": { "$value": "100ms" },
|
|
327
|
+
"150": { "$value": "150ms" },
|
|
328
|
+
"200": { "$value": "200ms" },
|
|
329
|
+
"300": { "$value": "300ms" },
|
|
330
|
+
"500": { "$value": "500ms" },
|
|
331
|
+
"700": { "$value": "700ms" },
|
|
332
|
+
"1000": { "$value": "1000ms" }
|
|
333
|
+
},
|
|
334
|
+
"animate": {
|
|
335
|
+
"$type": "string",
|
|
336
|
+
"spin": { "$value": "spin 1s linear infinite" },
|
|
337
|
+
"ping": { "$value": "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite" },
|
|
338
|
+
"pulse": { "$value": "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite" },
|
|
339
|
+
"bounce": { "$value": "bounce 1s infinite" }
|
|
340
|
+
}
|
|
341
|
+
}
|