@ponti-studios/ui 0.4.1 → 0.4.3
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 +26 -5
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/package.json +30 -32
- 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/layout/scroll-area.stories.tsx +1 -1
- 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/shadows.ts +1 -1
- package/src/native/use-theme-colors.ts +1 -1
- package/src/{styles.css → styles/index.css} +24 -1
- package/src/{tokens → styles/tokens}/chart-colors.stories.tsx +1 -1
- package/src/{tokens → styles/tokens}/color-systems.stories.tsx +1 -1
- package/src/{tokens → styles/tokens}/generated/dark.colors.generated.ts +2 -1
- package/src/{tokens → styles/tokens}/generated/dark.css +2 -1
- package/src/{tokens → styles/tokens}/generated/light.colors.generated.ts +2 -1
- package/src/{tokens → styles/tokens}/generated/light.css +2 -1
- 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/src/tokens.css +0 -3
- /package/src/{animations.css → styles/animations.css} +0 -0
- /package/src/{tokens → styles/tokens}/css-vars.ts +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}/index.ts +0 -0
- /package/src/{tokens → styles/tokens}/layout.stories.tsx +0 -0
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extensions": {
|
|
3
|
+
"org.ponti.license": "MIT"
|
|
4
|
+
},
|
|
5
|
+
"background": {
|
|
6
|
+
"$type": "color",
|
|
7
|
+
"$value": "rgb(252, 252, 253)"
|
|
8
|
+
},
|
|
9
|
+
"card": {
|
|
10
|
+
"$type": "color",
|
|
11
|
+
"$value": "rgb(249, 249, 251)"
|
|
12
|
+
},
|
|
13
|
+
"popover": {
|
|
14
|
+
"$type": "color",
|
|
15
|
+
"$value": "rgb(240, 240, 243)"
|
|
16
|
+
},
|
|
17
|
+
"muted": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$value": "rgb(249, 249, 251)"
|
|
20
|
+
},
|
|
21
|
+
"text-primary": {
|
|
22
|
+
"$type": "color",
|
|
23
|
+
"$value": "rgb(28, 32, 36)"
|
|
24
|
+
},
|
|
25
|
+
"text-secondary": {
|
|
26
|
+
"$type": "color",
|
|
27
|
+
"$value": "rgb(96, 100, 108)"
|
|
28
|
+
},
|
|
29
|
+
"tertiary": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": "rgb(128, 131, 141)"
|
|
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(200, 44, 49)"
|
|
60
|
+
},
|
|
61
|
+
"border-default": {
|
|
62
|
+
"$type": "color",
|
|
63
|
+
"$value": "rgb(205, 206, 214)"
|
|
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(139, 141, 152)"
|
|
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(185, 187, 198)"
|
|
100
|
+
},
|
|
101
|
+
"overlay-scrim": {
|
|
102
|
+
"$type": "color",
|
|
103
|
+
"$value": "rgb(0, 0, 0)"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": ["src/styles/tokens/source/dark.tokens.json"],
|
|
3
|
+
"platforms": {
|
|
4
|
+
"css": {
|
|
5
|
+
"transformGroup": "css",
|
|
6
|
+
"buildPath": ".storybook/generated/",
|
|
7
|
+
"files": [
|
|
8
|
+
{
|
|
9
|
+
"destination": "dark-theme-class.css",
|
|
10
|
+
"format": "css/variables",
|
|
11
|
+
"options": { "selector": ":root.storybook-theme-dark" }
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": ["src/styles/tokens/source/dark.tokens.json"],
|
|
3
|
+
"platforms": {
|
|
4
|
+
"css": {
|
|
5
|
+
"transformGroup": "css",
|
|
6
|
+
"buildPath": "src/styles/tokens/generated/",
|
|
7
|
+
"files": [{ "destination": "dark.css", "format": "css/variables" }]
|
|
8
|
+
},
|
|
9
|
+
"typescript": {
|
|
10
|
+
"transformGroup": "js",
|
|
11
|
+
"buildPath": "src/styles/tokens/generated/",
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"destination": "dark.colors.generated.ts",
|
|
15
|
+
"format": "javascript/esm",
|
|
16
|
+
"options": { "minify": true }
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": ["src/styles/tokens/source/foundations.tokens.json"],
|
|
3
|
+
"platforms": {
|
|
4
|
+
"css": {
|
|
5
|
+
"transformGroup": "css",
|
|
6
|
+
"buildPath": "src/styles/tokens/generated/",
|
|
7
|
+
"files": [{ "destination": "foundations.css", "format": "css/variables" }]
|
|
8
|
+
},
|
|
9
|
+
"typescript": {
|
|
10
|
+
"transformGroup": "js",
|
|
11
|
+
"buildPath": "src/styles/tokens/generated/",
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"destination": "foundations.generated.ts",
|
|
15
|
+
"format": "javascript/esm",
|
|
16
|
+
"options": { "minify": true }
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": ["src/styles/tokens/source/light.tokens.json"],
|
|
3
|
+
"platforms": {
|
|
4
|
+
"css": {
|
|
5
|
+
"transformGroup": "css",
|
|
6
|
+
"buildPath": "src/styles/tokens/generated/",
|
|
7
|
+
"files": [{ "destination": "light.css", "format": "css/variables" }]
|
|
8
|
+
},
|
|
9
|
+
"typescript": {
|
|
10
|
+
"transformGroup": "js",
|
|
11
|
+
"buildPath": "src/styles/tokens/generated/",
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"destination": "light.colors.generated.ts",
|
|
15
|
+
"format": "javascript/esm",
|
|
16
|
+
"options": { "minify": true }
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|