@ponti-studios/ui 1.8.0 → 2.0.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 +54 -20
- package/dist/styles.css +3 -0
- package/package.json +28 -9
- package/scripts/create-project.mjs +86 -0
- package/src/components/forms/checkbox.stories.tsx +35 -0
- package/src/components/forms/checkbox.tsx +38 -0
- package/src/components/forms/index.ts +2 -0
- package/src/components/forms/label.stories.tsx +16 -0
- package/src/components/forms/label.tsx +25 -0
- package/src/components/forms/select.tsx +3 -1
- package/src/components/overlays/bottom-sheet.stories.tsx +52 -0
- package/src/components/overlays/bottom-sheet.tsx +179 -0
- package/src/components/overlays/command.tsx +1 -1
- package/src/components/overlays/dropdown-menu.tsx +6 -2
- package/src/components/overlays/index.ts +2 -0
- package/src/components/overlays/popover.tsx +12 -3
- package/src/components/overlays/tooltip.stories.tsx +29 -0
- package/src/components/overlays/tooltip.tsx +41 -0
- package/src/components/primitives/index.ts +2 -0
- package/src/components/primitives/segmented-control.stories.tsx +54 -0
- package/src/components/primitives/segmented-control.tsx +73 -0
- package/src/components/primitives/separator.stories.tsx +34 -0
- package/src/components/primitives/separator.tsx +27 -0
- package/src/index.ts +2 -0
- package/src/native/components.tsx +198 -0
- package/src/native/index.ts +2 -0
- package/src/native/theme.tsx +69 -0
- package/src/styles/build.ts +1 -0
- package/src/styles/index.css +94 -0
- package/src/styles/package.css +3 -0
- package/src/styles/tokens/generated/dark-class.css +39 -0
- package/src/styles/tokens/generated/dark.colors.generated.ts +31 -31
- package/src/styles/tokens/generated/dark.css +31 -31
- package/src/styles/tokens/generated/foundations.css +2 -2
- package/src/styles/tokens/generated/foundations.generated.ts +2 -0
- package/src/styles/tokens/generated/light.colors.generated.ts +30 -30
- package/src/styles/tokens/generated/light.css +30 -30
- package/src/styles/tokens/index.ts +6 -6
- package/src/styles/tokens/scripts/check-source.mjs +9 -6
- package/src/styles/tokens/source/dark.tokens.json +33 -32
- package/src/styles/tokens/source/foundations.tokens.json +2 -0
- package/src/styles/tokens/source/light.tokens.json +32 -31
- package/src/styles/tokens/style-dictionary.dark-class.json +16 -0
- package/templates/web-vite/index.html +13 -0
- package/templates/web-vite/package.json +27 -0
- package/templates/web-vite/src/App.tsx +31 -0
- package/templates/web-vite/src/main.tsx +12 -0
- package/templates/web-vite/src/styles.css +110 -0
- package/templates/web-vite/tsconfig.json +21 -0
- package/templates/web-vite/vite.config.ts +6 -0
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--background: #
|
|
7
|
-
--card: #
|
|
8
|
-
--secondary: #
|
|
9
|
-
--popover: #
|
|
10
|
-
--muted: #
|
|
11
|
-
--text-primary: #
|
|
12
|
-
--text-secondary: #
|
|
13
|
-
--tertiary: #
|
|
14
|
-
--primary: #
|
|
15
|
-
--accent: #
|
|
16
|
-
--destructive: #
|
|
17
|
-
--success: #
|
|
18
|
-
--warning: #
|
|
19
|
-
--text-success: #
|
|
20
|
-
--text-warning: #
|
|
21
|
-
--success-foreground: #
|
|
22
|
-
--warning-foreground: #
|
|
6
|
+
--background: #ffffff;
|
|
7
|
+
--card: #ffffff;
|
|
8
|
+
--secondary: #f5f5f5;
|
|
9
|
+
--popover: #ffffff;
|
|
10
|
+
--muted: #fafafa;
|
|
11
|
+
--text-primary: #111111;
|
|
12
|
+
--text-secondary: #6b6b6b;
|
|
13
|
+
--tertiary: #6b6b6b;
|
|
14
|
+
--primary: #171717;
|
|
15
|
+
--accent: #eff6ff;
|
|
16
|
+
--destructive: #dc2626;
|
|
17
|
+
--success: #16a34a;
|
|
18
|
+
--warning: #d97706;
|
|
19
|
+
--text-success: #15803d;
|
|
20
|
+
--text-warning: #92400e;
|
|
21
|
+
--success-foreground: #0a0a0a;
|
|
22
|
+
--warning-foreground: #0a0a0a;
|
|
23
23
|
--primary-foreground: #ffffff;
|
|
24
|
-
--accent-foreground: #
|
|
24
|
+
--accent-foreground: #1d4ed8;
|
|
25
25
|
--destructive-foreground: #ffffff;
|
|
26
|
-
--text-destructive: #
|
|
27
|
-
--text-accent: #
|
|
28
|
-
--border-default: #
|
|
29
|
-
--focus-ring: #
|
|
30
|
-
--chart-1: #
|
|
31
|
-
--chart-2: #
|
|
32
|
-
--chart-3: #
|
|
33
|
-
--chart-4: #
|
|
34
|
-
--chart-5: #
|
|
35
|
-
--chart-positive: #
|
|
36
|
-
--chart-negative: #
|
|
37
|
-
--chart-neutral: #
|
|
26
|
+
--text-destructive: #b91c1c;
|
|
27
|
+
--text-accent: #2563eb;
|
|
28
|
+
--border-default: #e5e5e5;
|
|
29
|
+
--focus-ring: #2563eb;
|
|
30
|
+
--chart-1: #2563eb;
|
|
31
|
+
--chart-2: #111111;
|
|
32
|
+
--chart-3: #737373;
|
|
33
|
+
--chart-4: #93c5fd;
|
|
34
|
+
--chart-5: #d4d4d8;
|
|
35
|
+
--chart-positive: #15803d;
|
|
36
|
+
--chart-negative: #dc2626;
|
|
37
|
+
--chart-neutral: #737373;
|
|
38
38
|
--overlay-scrim: #000000;
|
|
39
39
|
}
|
|
@@ -10,12 +10,12 @@ const toPixels = (value: string) => {
|
|
|
10
10
|
|
|
11
11
|
const toMilliseconds = (value: string) => Number.parseFloat(value);
|
|
12
12
|
const toBezier = (value: number[]) => `cubic-bezier(${value.join(", ")})`;
|
|
13
|
-
type NormalizedSpacingKey<Key
|
|
14
|
-
? `${
|
|
15
|
-
: Key
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
>;
|
|
13
|
+
type NormalizedSpacingKey<Key> = Key extends number
|
|
14
|
+
? `${Key}`
|
|
15
|
+
: Key extends `${infer Whole}-${infer Fraction}`
|
|
16
|
+
? `${Whole}.${Fraction}`
|
|
17
|
+
: Key;
|
|
18
|
+
export type SpacingToken = NormalizedSpacingKey<keyof (typeof foundations)["spacing-scale"]>;
|
|
19
19
|
|
|
20
20
|
export const colorTokenNames = Object.keys(lightTokens) as Array<keyof typeof lightTokens>;
|
|
21
21
|
export type ColorToken = keyof typeof lightTokens;
|
|
@@ -30,13 +30,16 @@ for (const file of sourceFiles) {
|
|
|
30
30
|
const source = readFileSync(file, "utf8");
|
|
31
31
|
for (const check of checks) {
|
|
32
32
|
if (check.name === "legacy semantic utility classes" && file.endsWith(".css")) continue;
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
file.endsWith("color-systems.stories.tsx")
|
|
38
|
-
|
|
33
|
+
// Native styles address semantic color tokens through bracket notation;
|
|
34
|
+
// these are token lookups, not the deprecated utility classes.
|
|
35
|
+
if (check.name === "legacy semantic utility classes") {
|
|
36
|
+
let tokenSource = source.replace(/\[\s*["'](?:bg-canvas|border-default)["']\s*\]/g, "__semantic_token_access__");
|
|
37
|
+
if (file.endsWith("color-systems.stories.tsx")) {
|
|
38
|
+
tokenSource = tokenSource.replace(/token:\s*"(?:bg-canvas|border-default)"/g, 'token: "__token-name__"');
|
|
39
|
+
}
|
|
40
|
+
if (check.pattern.test(tokenSource)) failures.push(`${check.name}: ${relative(sourceDirectory, file)}`);
|
|
39
41
|
continue;
|
|
42
|
+
}
|
|
40
43
|
if (check.pattern.test(source))
|
|
41
44
|
failures.push(`${check.name}: ${relative(sourceDirectory, file)}`);
|
|
42
45
|
}
|
|
@@ -1,82 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$extensions": {
|
|
3
|
-
"org.ponti.license": "MIT"
|
|
3
|
+
"org.ponti.license": "MIT",
|
|
4
|
+
"org.ponti.identity": "mono"
|
|
4
5
|
},
|
|
5
6
|
"background": {
|
|
6
7
|
"$type": "color",
|
|
7
|
-
"$value": "rgb(
|
|
8
|
+
"$value": "rgb(10, 10, 10)"
|
|
8
9
|
},
|
|
9
10
|
"card": {
|
|
10
11
|
"$type": "color",
|
|
11
|
-
"$value": "rgb(
|
|
12
|
+
"$value": "rgb(17, 17, 17)"
|
|
12
13
|
},
|
|
13
14
|
"secondary": {
|
|
14
15
|
"$type": "color",
|
|
15
|
-
"$value": "rgb(
|
|
16
|
+
"$value": "rgb(26, 26, 26)"
|
|
16
17
|
},
|
|
17
18
|
"popover": {
|
|
18
19
|
"$type": "color",
|
|
19
|
-
"$value": "rgb(
|
|
20
|
+
"$value": "rgb(17, 17, 17)"
|
|
20
21
|
},
|
|
21
22
|
"muted": {
|
|
22
23
|
"$type": "color",
|
|
23
|
-
"$value": "rgb(
|
|
24
|
+
"$value": "rgb(20, 20, 20)"
|
|
24
25
|
},
|
|
25
26
|
"text-primary": {
|
|
26
27
|
"$type": "color",
|
|
27
|
-
"$value": "rgb(
|
|
28
|
+
"$value": "rgb(250, 250, 250)"
|
|
28
29
|
},
|
|
29
30
|
"text-secondary": {
|
|
30
31
|
"$type": "color",
|
|
31
|
-
"$value": "rgb(
|
|
32
|
+
"$value": "rgb(163, 163, 163)"
|
|
32
33
|
},
|
|
33
34
|
"tertiary": {
|
|
34
35
|
"$type": "color",
|
|
35
|
-
"$value": "
|
|
36
|
+
"$value": "{text-secondary}"
|
|
36
37
|
},
|
|
37
38
|
"primary": {
|
|
38
39
|
"$type": "color",
|
|
39
|
-
"$value": "rgb(
|
|
40
|
+
"$value": "rgb(237, 237, 237)"
|
|
40
41
|
},
|
|
41
42
|
"accent": {
|
|
42
43
|
"$type": "color",
|
|
43
|
-
"$value": "rgb(
|
|
44
|
+
"$value": "rgb(30, 41, 59)"
|
|
44
45
|
},
|
|
45
46
|
"destructive": {
|
|
46
47
|
"$type": "color",
|
|
47
|
-
"$value": "rgb(
|
|
48
|
+
"$value": "rgb(220, 38, 38)"
|
|
48
49
|
},
|
|
49
50
|
"success": {
|
|
50
51
|
"$type": "color",
|
|
51
|
-
"$value": "rgb(
|
|
52
|
+
"$value": "rgb(34, 197, 94)"
|
|
52
53
|
},
|
|
53
54
|
"warning": {
|
|
54
55
|
"$type": "color",
|
|
55
|
-
"$value": "rgb(
|
|
56
|
+
"$value": "rgb(245, 158, 11)"
|
|
56
57
|
},
|
|
57
58
|
"text-success": {
|
|
58
59
|
"$type": "color",
|
|
59
|
-
"$value": "rgb(
|
|
60
|
+
"$value": "rgb(74, 222, 128)"
|
|
60
61
|
},
|
|
61
62
|
"text-warning": {
|
|
62
63
|
"$type": "color",
|
|
63
|
-
"$value": "rgb(
|
|
64
|
+
"$value": "rgb(252, 211, 77)"
|
|
64
65
|
},
|
|
65
66
|
"success-foreground": {
|
|
66
67
|
"$type": "color",
|
|
67
|
-
"$value": "rgb(
|
|
68
|
+
"$value": "rgb(10, 10, 10)"
|
|
68
69
|
},
|
|
69
70
|
"warning-foreground": {
|
|
70
71
|
"$type": "color",
|
|
71
|
-
"$value": "rgb(
|
|
72
|
+
"$value": "rgb(10, 10, 10)"
|
|
72
73
|
},
|
|
73
74
|
"primary-foreground": {
|
|
74
75
|
"$type": "color",
|
|
75
|
-
"$value": "rgb(
|
|
76
|
+
"$value": "rgb(10, 10, 10)"
|
|
76
77
|
},
|
|
77
78
|
"accent-foreground": {
|
|
78
79
|
"$type": "color",
|
|
79
|
-
"$value": "rgb(
|
|
80
|
+
"$value": "rgb(147, 197, 253)"
|
|
80
81
|
},
|
|
81
82
|
"destructive-foreground": {
|
|
82
83
|
"$type": "color",
|
|
@@ -84,51 +85,51 @@
|
|
|
84
85
|
},
|
|
85
86
|
"text-destructive": {
|
|
86
87
|
"$type": "color",
|
|
87
|
-
"$value": "rgb(
|
|
88
|
+
"$value": "rgb(252, 165, 165)"
|
|
88
89
|
},
|
|
89
90
|
"text-accent": {
|
|
90
91
|
"$type": "color",
|
|
91
|
-
"$value": "rgb(
|
|
92
|
+
"$value": "rgb(96, 165, 250)"
|
|
92
93
|
},
|
|
93
94
|
"border-default": {
|
|
94
95
|
"$type": "color",
|
|
95
|
-
"$value": "rgb(
|
|
96
|
+
"$value": "rgb(38, 38, 38)"
|
|
96
97
|
},
|
|
97
98
|
"focus-ring": {
|
|
98
99
|
"$type": "color",
|
|
99
|
-
"$value": "rgb(
|
|
100
|
+
"$value": "rgb(59, 130, 246)"
|
|
100
101
|
},
|
|
101
102
|
"chart-1": {
|
|
102
103
|
"$type": "color",
|
|
103
|
-
"$value": "rgb(
|
|
104
|
+
"$value": "rgb(59, 130, 246)"
|
|
104
105
|
},
|
|
105
106
|
"chart-2": {
|
|
106
107
|
"$type": "color",
|
|
107
|
-
"$value": "rgb(
|
|
108
|
+
"$value": "rgb(237, 237, 237)"
|
|
108
109
|
},
|
|
109
110
|
"chart-3": {
|
|
110
111
|
"$type": "color",
|
|
111
|
-
"$value": "rgb(
|
|
112
|
+
"$value": "rgb(115, 115, 115)"
|
|
112
113
|
},
|
|
113
114
|
"chart-4": {
|
|
114
115
|
"$type": "color",
|
|
115
|
-
"$value": "rgb(
|
|
116
|
+
"$value": "rgb(147, 197, 253)"
|
|
116
117
|
},
|
|
117
118
|
"chart-5": {
|
|
118
119
|
"$type": "color",
|
|
119
|
-
"$value": "rgb(
|
|
120
|
+
"$value": "rgb(63, 63, 70)"
|
|
120
121
|
},
|
|
121
122
|
"chart-positive": {
|
|
122
123
|
"$type": "color",
|
|
123
|
-
"$value": "rgb(
|
|
124
|
+
"$value": "rgb(34, 197, 94)"
|
|
124
125
|
},
|
|
125
126
|
"chart-negative": {
|
|
126
127
|
"$type": "color",
|
|
127
|
-
"$value": "rgb(
|
|
128
|
+
"$value": "rgb(239, 68, 68)"
|
|
128
129
|
},
|
|
129
130
|
"chart-neutral": {
|
|
130
131
|
"$type": "color",
|
|
131
|
-
"$value": "rgb(
|
|
132
|
+
"$value": "rgb(163, 163, 163)"
|
|
132
133
|
},
|
|
133
134
|
"overlay-scrim": {
|
|
134
135
|
"$type": "color",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"$type": "fontFamily",
|
|
44
44
|
"sans": {
|
|
45
45
|
"$value": [
|
|
46
|
+
"Geist",
|
|
46
47
|
"system-ui",
|
|
47
48
|
"-apple-system",
|
|
48
49
|
"BlinkMacSystemFont",
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
},
|
|
78
79
|
"mono": {
|
|
79
80
|
"$value": [
|
|
81
|
+
"Geist Mono",
|
|
80
82
|
"ui-monospace",
|
|
81
83
|
"SFMono-Regular",
|
|
82
84
|
"Menlo",
|
|
@@ -1,74 +1,75 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$extensions": {
|
|
3
|
-
"org.ponti.license": "MIT"
|
|
3
|
+
"org.ponti.license": "MIT",
|
|
4
|
+
"org.ponti.identity": "mono"
|
|
4
5
|
},
|
|
5
6
|
"background": {
|
|
6
7
|
"$type": "color",
|
|
7
|
-
"$value": "rgb(
|
|
8
|
+
"$value": "rgb(255, 255, 255)"
|
|
8
9
|
},
|
|
9
10
|
"card": {
|
|
10
11
|
"$type": "color",
|
|
11
|
-
"$value": "rgb(
|
|
12
|
+
"$value": "rgb(255, 255, 255)"
|
|
12
13
|
},
|
|
13
14
|
"secondary": {
|
|
14
15
|
"$type": "color",
|
|
15
|
-
"$value": "rgb(
|
|
16
|
+
"$value": "rgb(245, 245, 245)"
|
|
16
17
|
},
|
|
17
18
|
"popover": {
|
|
18
19
|
"$type": "color",
|
|
19
|
-
"$value": "rgb(
|
|
20
|
+
"$value": "rgb(255, 255, 255)"
|
|
20
21
|
},
|
|
21
22
|
"muted": {
|
|
22
23
|
"$type": "color",
|
|
23
|
-
"$value": "rgb(
|
|
24
|
+
"$value": "rgb(250, 250, 250)"
|
|
24
25
|
},
|
|
25
26
|
"text-primary": {
|
|
26
27
|
"$type": "color",
|
|
27
|
-
"$value": "rgb(17, 17,
|
|
28
|
+
"$value": "rgb(17, 17, 17)"
|
|
28
29
|
},
|
|
29
30
|
"text-secondary": {
|
|
30
31
|
"$type": "color",
|
|
31
|
-
"$value": "rgb(
|
|
32
|
+
"$value": "rgb(107, 107, 107)"
|
|
32
33
|
},
|
|
33
34
|
"tertiary": {
|
|
34
35
|
"$type": "color",
|
|
35
|
-
"$value": "
|
|
36
|
+
"$value": "{text-secondary}"
|
|
36
37
|
},
|
|
37
38
|
"primary": {
|
|
38
39
|
"$type": "color",
|
|
39
|
-
"$value": "rgb(
|
|
40
|
+
"$value": "rgb(23, 23, 23)"
|
|
40
41
|
},
|
|
41
42
|
"accent": {
|
|
42
43
|
"$type": "color",
|
|
43
|
-
"$value": "rgb(
|
|
44
|
+
"$value": "rgb(239, 246, 255)"
|
|
44
45
|
},
|
|
45
46
|
"destructive": {
|
|
46
47
|
"$type": "color",
|
|
47
|
-
"$value": "rgb(
|
|
48
|
+
"$value": "rgb(220, 38, 38)"
|
|
48
49
|
},
|
|
49
50
|
"success": {
|
|
50
51
|
"$type": "color",
|
|
51
|
-
"$value": "rgb(
|
|
52
|
+
"$value": "rgb(22, 163, 74)"
|
|
52
53
|
},
|
|
53
54
|
"warning": {
|
|
54
55
|
"$type": "color",
|
|
55
|
-
"$value": "rgb(
|
|
56
|
+
"$value": "rgb(217, 119, 6)"
|
|
56
57
|
},
|
|
57
58
|
"text-success": {
|
|
58
59
|
"$type": "color",
|
|
59
|
-
"$value": "rgb(
|
|
60
|
+
"$value": "rgb(21, 128, 61)"
|
|
60
61
|
},
|
|
61
62
|
"text-warning": {
|
|
62
63
|
"$type": "color",
|
|
63
|
-
"$value": "rgb(
|
|
64
|
+
"$value": "rgb(146, 64, 14)"
|
|
64
65
|
},
|
|
65
66
|
"success-foreground": {
|
|
66
67
|
"$type": "color",
|
|
67
|
-
"$value": "rgb(
|
|
68
|
+
"$value": "rgb(10, 10, 10)"
|
|
68
69
|
},
|
|
69
70
|
"warning-foreground": {
|
|
70
71
|
"$type": "color",
|
|
71
|
-
"$value": "rgb(
|
|
72
|
+
"$value": "rgb(10, 10, 10)"
|
|
72
73
|
},
|
|
73
74
|
"primary-foreground": {
|
|
74
75
|
"$type": "color",
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
},
|
|
77
78
|
"accent-foreground": {
|
|
78
79
|
"$type": "color",
|
|
79
|
-
"$value": "rgb(
|
|
80
|
+
"$value": "rgb(29, 78, 216)"
|
|
80
81
|
},
|
|
81
82
|
"destructive-foreground": {
|
|
82
83
|
"$type": "color",
|
|
@@ -84,51 +85,51 @@
|
|
|
84
85
|
},
|
|
85
86
|
"text-destructive": {
|
|
86
87
|
"$type": "color",
|
|
87
|
-
"$value": "rgb(
|
|
88
|
+
"$value": "rgb(185, 28, 28)"
|
|
88
89
|
},
|
|
89
90
|
"text-accent": {
|
|
90
91
|
"$type": "color",
|
|
91
|
-
"$value": "rgb(
|
|
92
|
+
"$value": "rgb(37, 99, 235)"
|
|
92
93
|
},
|
|
93
94
|
"border-default": {
|
|
94
95
|
"$type": "color",
|
|
95
|
-
"$value": "rgb(
|
|
96
|
+
"$value": "rgb(229, 229, 229)"
|
|
96
97
|
},
|
|
97
98
|
"focus-ring": {
|
|
98
99
|
"$type": "color",
|
|
99
|
-
"$value": "rgb(
|
|
100
|
+
"$value": "rgb(37, 99, 235)"
|
|
100
101
|
},
|
|
101
102
|
"chart-1": {
|
|
102
103
|
"$type": "color",
|
|
103
|
-
"$value": "rgb(
|
|
104
|
+
"$value": "rgb(37, 99, 235)"
|
|
104
105
|
},
|
|
105
106
|
"chart-2": {
|
|
106
107
|
"$type": "color",
|
|
107
|
-
"$value": "rgb(
|
|
108
|
+
"$value": "rgb(17, 17, 17)"
|
|
108
109
|
},
|
|
109
110
|
"chart-3": {
|
|
110
111
|
"$type": "color",
|
|
111
|
-
"$value": "rgb(
|
|
112
|
+
"$value": "rgb(115, 115, 115)"
|
|
112
113
|
},
|
|
113
114
|
"chart-4": {
|
|
114
115
|
"$type": "color",
|
|
115
|
-
"$value": "rgb(
|
|
116
|
+
"$value": "rgb(147, 197, 253)"
|
|
116
117
|
},
|
|
117
118
|
"chart-5": {
|
|
118
119
|
"$type": "color",
|
|
119
|
-
"$value": "rgb(
|
|
120
|
+
"$value": "rgb(212, 212, 216)"
|
|
120
121
|
},
|
|
121
122
|
"chart-positive": {
|
|
122
123
|
"$type": "color",
|
|
123
|
-
"$value": "rgb(
|
|
124
|
+
"$value": "rgb(21, 128, 61)"
|
|
124
125
|
},
|
|
125
126
|
"chart-negative": {
|
|
126
127
|
"$type": "color",
|
|
127
|
-
"$value": "rgb(
|
|
128
|
+
"$value": "rgb(220, 38, 38)"
|
|
128
129
|
},
|
|
129
130
|
"chart-neutral": {
|
|
130
131
|
"$type": "color",
|
|
131
|
-
"$value": "rgb(
|
|
132
|
+
"$value": "rgb(115, 115, 115)"
|
|
132
133
|
},
|
|
133
134
|
"overlay-scrim": {
|
|
134
135
|
"$type": "color",
|
|
@@ -0,0 +1,16 @@
|
|
|
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": [
|
|
8
|
+
{
|
|
9
|
+
"destination": "dark-class.css",
|
|
10
|
+
"format": "css/variables",
|
|
11
|
+
"options": { "selector": ":root.dark" }
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="description" content="A Ponti Studios project." />
|
|
7
|
+
<title>New Ponti project</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "project-name-placeholder",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "tsc --noEmit && vite build",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"typecheck": "tsc --noEmit"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@ponti-studios/ui": "^2.0.0",
|
|
14
|
+
"react": "19.2.7",
|
|
15
|
+
"react-dom": "19.2.7"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/react": "19.2.17",
|
|
19
|
+
"@types/react-dom": "19.2.3",
|
|
20
|
+
"@vitejs/plugin-react": "6.1.2",
|
|
21
|
+
"typescript": "7.0.2",
|
|
22
|
+
"vite": "8.3.4"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20.19.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Button } from "@ponti-studios/ui/primitives";
|
|
2
|
+
|
|
3
|
+
export default function App() {
|
|
4
|
+
return (
|
|
5
|
+
<main className="starter-page">
|
|
6
|
+
<header className="starter-header">
|
|
7
|
+
<a aria-label="Project home" className="starter-home" href="/">
|
|
8
|
+
New project
|
|
9
|
+
</a>
|
|
10
|
+
<span className="starter-caption">Built with Ponti UI</span>
|
|
11
|
+
</header>
|
|
12
|
+
|
|
13
|
+
<section className="starter-content">
|
|
14
|
+
<p className="starter-eyebrow">A fresh start</p>
|
|
15
|
+
<h1 className="starter-title">Start with the system. Make the product yours.</h1>
|
|
16
|
+
<p className="starter-description">
|
|
17
|
+
Your project already has Ponti tokens, themes, styles, and components. Replace this page
|
|
18
|
+
with the thing you want to make.
|
|
19
|
+
</p>
|
|
20
|
+
<div className="starter-actions">
|
|
21
|
+
<Button>Primary action</Button>
|
|
22
|
+
<Button variant="outline">Secondary action</Button>
|
|
23
|
+
</div>
|
|
24
|
+
</section>
|
|
25
|
+
|
|
26
|
+
<footer className="starter-footer">
|
|
27
|
+
Change the shared system through @ponti-studios/ui; keep product-specific choices here.
|
|
28
|
+
</footer>
|
|
29
|
+
</main>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ReactDOM from "react-dom/client";
|
|
3
|
+
|
|
4
|
+
import App from "./App";
|
|
5
|
+
import "@ponti-studios/ui";
|
|
6
|
+
import "./styles.css";
|
|
7
|
+
|
|
8
|
+
ReactDOM.createRoot(document.getElementById("root")!).render(
|
|
9
|
+
<React.StrictMode>
|
|
10
|
+
<App />
|
|
11
|
+
</React.StrictMode>,
|
|
12
|
+
);
|