@ponti-studios/ui 0.3.0 → 0.4.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/dist/index.js +70 -112
- package/dist/index.js.map +1 -1
- package/package.json +25 -23
- package/src/animations.css +92 -15
- package/src/components/data-display/accordion.tsx +15 -6
- package/src/components/data-display/filter-chip.stories.tsx +38 -0
- package/src/components/data-display/filter-chip.tsx +9 -3
- package/src/components/data-display/sort-controls.tsx +1 -1
- package/src/components/data-display/table.tsx +3 -7
- package/src/components/feedback/empty-state.tsx +16 -6
- package/src/components/feedback/file-upload-status-badge.tsx +1 -1
- package/src/components/feedback/progress.tsx +2 -2
- package/src/components/feedback/update-guard.tsx +1 -1
- package/src/components/forms/calendar.tsx +6 -3
- package/src/components/forms/field.tsx +3 -3
- package/src/components/forms/input.tsx +1 -1
- package/src/components/forms/passkey-management.tsx +2 -2
- package/src/components/forms/radio-group.tsx +1 -1
- package/src/components/forms/select.tsx +11 -4
- package/src/components/forms/slider.tsx +16 -4
- package/src/components/forms/stepper.tsx +1 -1
- package/src/components/forms/textarea.tsx +1 -1
- package/src/components/layout/section-intro.tsx +1 -1
- package/src/components/navigation/app-navigation.tsx +4 -4
- package/src/components/navigation/pagination-controls.tsx +2 -2
- package/src/components/navigation/tabs.tsx +1 -1
- package/src/components/overlays/alert-dialog.tsx +30 -8
- package/src/components/overlays/command.tsx +123 -20
- package/src/components/overlays/dialog.tsx +4 -4
- package/src/components/overlays/dropdown-menu.tsx +137 -21
- package/src/components/overlays/popover.tsx +14 -3
- package/src/components/overlays/sheet.tsx +24 -8
- package/src/components/primitives/avatar.tsx +6 -2
- package/src/components/primitives/badge.tsx +5 -2
- package/src/components/primitives/button.tsx +16 -18
- package/src/components/primitives/card.stories.tsx +2 -2
- package/src/components/primitives/card.tsx +2 -5
- package/src/constants/chart-colors.ts +2 -2
- package/src/styles.css +153 -63
- package/src/tokens/chart-colors.stories.tsx +192 -0
- package/src/tokens/color-systems.stories.tsx +21 -3
- package/src/tokens/foundations.stories.tsx +66 -16
- package/src/tokens/generated/dark.colors.generated.ts +23 -50
- package/src/tokens/generated/dark.css +23 -48
- package/src/tokens/generated/foundations.css +2 -2
- package/src/tokens/generated/foundations.generated.ts +14 -6
- package/src/tokens/generated/light.colors.generated.ts +23 -50
- package/src/tokens/generated/light.css +23 -48
- package/src/tokens/index.ts +14 -9
- package/src/tokens/layout.stories.tsx +40 -3
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
|
|
3
|
+
import { CHART_CSS_VARS } from "../constants/chart-colors";
|
|
4
|
+
|
|
5
|
+
const meta: Meta = { title: "Foundations/Charts", parameters: { layout: "fullscreen" } };
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
|
|
9
|
+
const SERIES = [
|
|
10
|
+
{ key: "chart1", label: "chart-1" },
|
|
11
|
+
{ key: "chart2", label: "chart-2" },
|
|
12
|
+
{ key: "chart3", label: "chart-3" },
|
|
13
|
+
{ key: "chart4", label: "chart-4" },
|
|
14
|
+
{ key: "chart5", label: "chart-5" },
|
|
15
|
+
] as const;
|
|
16
|
+
|
|
17
|
+
const STATUS = [
|
|
18
|
+
{ key: "positive", label: "chart-positive", example: "▲ Up 12%" },
|
|
19
|
+
{ key: "negative", label: "chart-negative", example: "▼ Down 4%" },
|
|
20
|
+
{ key: "neutral", label: "chart-neutral", example: "— Flat" },
|
|
21
|
+
] as const;
|
|
22
|
+
|
|
23
|
+
// A handful of arbitrary multi-series datasets, purely to show how the
|
|
24
|
+
// ordinal chart-1..5 palette reads next to itself in a real chart shape.
|
|
25
|
+
const BAR_DATA = [
|
|
26
|
+
[42, 68, 30, 55, 90],
|
|
27
|
+
[70, 25, 60, 40, 35],
|
|
28
|
+
[30, 55, 80, 20, 65],
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
const LINE_POINTS: Record<string, Array<[number, number]>> = {
|
|
32
|
+
chart1: [
|
|
33
|
+
[0, 60],
|
|
34
|
+
[20, 40],
|
|
35
|
+
[40, 50],
|
|
36
|
+
[60, 20],
|
|
37
|
+
[80, 30],
|
|
38
|
+
[100, 10],
|
|
39
|
+
],
|
|
40
|
+
chart2: [
|
|
41
|
+
[0, 80],
|
|
42
|
+
[20, 70],
|
|
43
|
+
[40, 75],
|
|
44
|
+
[60, 55],
|
|
45
|
+
[80, 60],
|
|
46
|
+
[100, 45],
|
|
47
|
+
],
|
|
48
|
+
chart3: [
|
|
49
|
+
[0, 30],
|
|
50
|
+
[20, 45],
|
|
51
|
+
[40, 25],
|
|
52
|
+
[60, 50],
|
|
53
|
+
[80, 35],
|
|
54
|
+
[100, 55],
|
|
55
|
+
],
|
|
56
|
+
chart4: [
|
|
57
|
+
[0, 90],
|
|
58
|
+
[20, 85],
|
|
59
|
+
[40, 65],
|
|
60
|
+
[60, 70],
|
|
61
|
+
[80, 50],
|
|
62
|
+
[100, 60],
|
|
63
|
+
],
|
|
64
|
+
chart5: [
|
|
65
|
+
[0, 15],
|
|
66
|
+
[20, 30],
|
|
67
|
+
[40, 20],
|
|
68
|
+
[60, 40],
|
|
69
|
+
[80, 25],
|
|
70
|
+
[100, 20],
|
|
71
|
+
],
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const CategoricalPalette: Story = {
|
|
75
|
+
render: () => (
|
|
76
|
+
<main className="bg-background text-foreground grid min-h-screen gap-10 p-6 md:p-10">
|
|
77
|
+
<header className="grid gap-2">
|
|
78
|
+
<p className="text-muted-foreground text-sm">Foundations / charts</p>
|
|
79
|
+
<h1 className="text-4xl font-semibold tracking-tight">Chart colors</h1>
|
|
80
|
+
<p className="text-muted-foreground max-w-2xl text-base">
|
|
81
|
+
<code className="font-mono">chart-1</code> through <code className="font-mono">
|
|
82
|
+
chart-5
|
|
83
|
+
</code>{" "}
|
|
84
|
+
are an ordinal palette for arbitrary categorical series (e.g. one line per country) —
|
|
85
|
+
there's no fixed meaning to a given slot, so they're assigned by index, not by what the
|
|
86
|
+
data represents. That's different from{" "}
|
|
87
|
+
<code className="font-mono">chart-positive</code>/<code className="font-mono">
|
|
88
|
+
chart-negative
|
|
89
|
+
</code>
|
|
90
|
+
/<code className="font-mono">chart-neutral</code> below, which carry real meaning
|
|
91
|
+
(up/down/flat) and should stay semantic in any chart that shows a directional delta.
|
|
92
|
+
</p>
|
|
93
|
+
</header>
|
|
94
|
+
|
|
95
|
+
<section className="grid gap-4">
|
|
96
|
+
<h2 className="text-2xl font-semibold">Series swatches</h2>
|
|
97
|
+
<div className="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5">
|
|
98
|
+
{SERIES.map(({ key, label }) => (
|
|
99
|
+
<div
|
|
100
|
+
key={key}
|
|
101
|
+
className="border-border grid min-h-20 content-end rounded-md border p-3"
|
|
102
|
+
style={{ backgroundColor: CHART_CSS_VARS[key] }}
|
|
103
|
+
>
|
|
104
|
+
<span className="bg-background text-foreground w-fit rounded px-1 font-mono text-xs">
|
|
105
|
+
{label}
|
|
106
|
+
</span>
|
|
107
|
+
</div>
|
|
108
|
+
))}
|
|
109
|
+
</div>
|
|
110
|
+
</section>
|
|
111
|
+
|
|
112
|
+
<section className="border-border bg-card grid gap-5 rounded-xl border p-6">
|
|
113
|
+
<h2 className="text-2xl font-semibold">Grouped bar chart (mock)</h2>
|
|
114
|
+
<p className="text-muted-foreground max-w-2xl text-sm">
|
|
115
|
+
Three unrelated categories, five series each — a stress test for how distinguishable
|
|
116
|
+
the palette stays side by side.
|
|
117
|
+
</p>
|
|
118
|
+
<div className="flex items-end gap-8" style={{ height: 220 }}>
|
|
119
|
+
{BAR_DATA.map((group, groupIndex) => (
|
|
120
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: static mock dataset
|
|
121
|
+
<div key={groupIndex} className="flex h-full items-end gap-1.5">
|
|
122
|
+
{group.map((value, seriesIndex) => (
|
|
123
|
+
<div
|
|
124
|
+
key={SERIES[seriesIndex].key}
|
|
125
|
+
className="w-6 rounded-t-sm"
|
|
126
|
+
style={{
|
|
127
|
+
height: `${value}%`,
|
|
128
|
+
backgroundColor: CHART_CSS_VARS[SERIES[seriesIndex].key],
|
|
129
|
+
}}
|
|
130
|
+
title={SERIES[seriesIndex].label}
|
|
131
|
+
/>
|
|
132
|
+
))}
|
|
133
|
+
</div>
|
|
134
|
+
))}
|
|
135
|
+
</div>
|
|
136
|
+
<div className="flex flex-wrap gap-4">
|
|
137
|
+
{SERIES.map(({ key, label }) => (
|
|
138
|
+
<div key={key} className="flex items-center gap-2">
|
|
139
|
+
<span
|
|
140
|
+
className="size-2.5 rounded-full"
|
|
141
|
+
style={{ backgroundColor: CHART_CSS_VARS[key] }}
|
|
142
|
+
aria-hidden="true"
|
|
143
|
+
/>
|
|
144
|
+
<span className="text-muted-foreground font-mono text-xs">{label}</span>
|
|
145
|
+
</div>
|
|
146
|
+
))}
|
|
147
|
+
</div>
|
|
148
|
+
</section>
|
|
149
|
+
|
|
150
|
+
<section className="border-border bg-card grid gap-5 rounded-xl border p-6">
|
|
151
|
+
<h2 className="text-2xl font-semibold">Multi-line chart (mock)</h2>
|
|
152
|
+
<svg viewBox="0 0 100 100" preserveAspectRatio="none" className="h-56 w-full">
|
|
153
|
+
<title>Multi-series line chart using the chart-1..5 palette</title>
|
|
154
|
+
{Object.entries(LINE_POINTS).map(([key, points]) => (
|
|
155
|
+
<polyline
|
|
156
|
+
key={key}
|
|
157
|
+
fill="none"
|
|
158
|
+
strokeWidth={1.5}
|
|
159
|
+
vectorEffect="non-scaling-stroke"
|
|
160
|
+
stroke={CHART_CSS_VARS[key as keyof typeof CHART_CSS_VARS]}
|
|
161
|
+
points={points.map(([x, y]) => `${x},${y}`).join(" ")}
|
|
162
|
+
/>
|
|
163
|
+
))}
|
|
164
|
+
</svg>
|
|
165
|
+
</section>
|
|
166
|
+
|
|
167
|
+
<section className="grid gap-4">
|
|
168
|
+
<h2 className="text-2xl font-semibold">Semantic status colors</h2>
|
|
169
|
+
<p className="text-muted-foreground max-w-2xl text-sm">
|
|
170
|
+
Use these — not a numbered slot — whenever a value has an inherent direction.
|
|
171
|
+
</p>
|
|
172
|
+
<div className="grid grid-cols-1 gap-3 sm:grid-cols-3">
|
|
173
|
+
{STATUS.map(({ key, label, example }) => (
|
|
174
|
+
<div key={key} className="border-border grid gap-2 rounded-md border p-3">
|
|
175
|
+
<div className="flex items-center gap-2">
|
|
176
|
+
<span
|
|
177
|
+
className="size-2.5 rounded-full"
|
|
178
|
+
style={{ backgroundColor: CHART_CSS_VARS[key] }}
|
|
179
|
+
aria-hidden="true"
|
|
180
|
+
/>
|
|
181
|
+
<span className="text-muted-foreground font-mono text-xs">{label}</span>
|
|
182
|
+
</div>
|
|
183
|
+
<span className="text-lg font-semibold" style={{ color: CHART_CSS_VARS[key] }}>
|
|
184
|
+
{example}
|
|
185
|
+
</span>
|
|
186
|
+
</div>
|
|
187
|
+
))}
|
|
188
|
+
</div>
|
|
189
|
+
</section>
|
|
190
|
+
</main>
|
|
191
|
+
),
|
|
192
|
+
};
|
|
@@ -12,11 +12,29 @@ export const SystemAppearance: Story = {
|
|
|
12
12
|
<main className="bg-background text-foreground grid min-h-screen gap-8 p-6 md:p-10">
|
|
13
13
|
<header className="grid gap-2">
|
|
14
14
|
<h1 className="text-2xl font-semibold">System color roles</h1>
|
|
15
|
-
<p className="text-muted-foreground max-w-prose text-sm">
|
|
15
|
+
<p className="text-muted-foreground max-w-prose text-sm">
|
|
16
|
+
These semantic roles resolve from the operating system’s light or dark appearance. CSS is
|
|
17
|
+
the single source of their values.
|
|
18
|
+
</p>
|
|
16
19
|
</header>
|
|
17
|
-
<div className="flex flex-wrap gap-2"
|
|
20
|
+
<div className="flex flex-wrap gap-2">
|
|
21
|
+
<Button>Primary action</Button>
|
|
22
|
+
<Button variant="secondary">Secondary action</Button>
|
|
23
|
+
<Button variant="outline">Outline action</Button>
|
|
24
|
+
<Button variant="destructive">Delete item</Button>
|
|
25
|
+
</div>
|
|
18
26
|
<div className="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4">
|
|
19
|
-
{colorTokenNames.map((token) =>
|
|
27
|
+
{colorTokenNames.map((token) => (
|
|
28
|
+
<div
|
|
29
|
+
key={token}
|
|
30
|
+
className="border-border grid min-h-20 content-end rounded-md border p-3"
|
|
31
|
+
style={{ backgroundColor: `var(--color-${token})` }}
|
|
32
|
+
>
|
|
33
|
+
<span className="bg-background text-foreground w-fit rounded px-1 font-mono text-xs">
|
|
34
|
+
{token}
|
|
35
|
+
</span>
|
|
36
|
+
</div>
|
|
37
|
+
))}
|
|
20
38
|
</div>
|
|
21
39
|
</main>
|
|
22
40
|
),
|
|
@@ -6,27 +6,47 @@ type Story = StoryObj<typeof meta>;
|
|
|
6
6
|
|
|
7
7
|
export const SpacingAndType: Story = {
|
|
8
8
|
render: () => (
|
|
9
|
-
<main className="grid min-h-screen gap-10
|
|
9
|
+
<main className="bg-background text-foreground grid min-h-screen gap-10 p-6 md:p-10">
|
|
10
10
|
<section className="grid gap-6">
|
|
11
11
|
<header className="grid gap-2">
|
|
12
|
-
<p className="text-
|
|
12
|
+
<p className="text-muted-foreground text-sm">Foundations / rhythm</p>
|
|
13
13
|
<h1 className="text-4xl font-semibold tracking-tight">Tailwind defaults, directly.</h1>
|
|
14
|
-
<p className="max-w-2xl text-base
|
|
14
|
+
<p className="text-muted-foreground max-w-2xl text-base">
|
|
15
|
+
The specimen uses the shared Tailwind spacing and type scales.
|
|
16
|
+
</p>
|
|
15
17
|
</header>
|
|
16
18
|
<div className="grid gap-2">
|
|
17
19
|
{[1, 2, 3, 4, 6, 8, 12, 16].map((size) => (
|
|
18
20
|
<div key={size} className="flex items-center gap-3">
|
|
19
|
-
<span className="w-12 font-mono text-xs tabular-nums
|
|
20
|
-
|
|
21
|
+
<span className="text-muted-foreground w-12 font-mono text-xs tabular-nums">
|
|
22
|
+
{size}
|
|
23
|
+
</span>
|
|
24
|
+
<div
|
|
25
|
+
className="bg-accent h-3 rounded-sm"
|
|
26
|
+
style={{ width: `calc(var(--spacing) * ${size})` }}
|
|
27
|
+
aria-hidden="true"
|
|
28
|
+
/>
|
|
21
29
|
</div>
|
|
22
30
|
))}
|
|
23
31
|
</div>
|
|
24
32
|
</section>
|
|
25
|
-
<section className="grid gap-5 rounded-xl border
|
|
33
|
+
<section className="border-border bg-card grid gap-5 rounded-xl border p-6">
|
|
26
34
|
<h2 className="text-2xl font-semibold">Typography scale</h2>
|
|
27
35
|
<div className="grid gap-4">
|
|
28
|
-
{(
|
|
29
|
-
|
|
36
|
+
{(
|
|
37
|
+
[
|
|
38
|
+
"text-xs",
|
|
39
|
+
"text-sm",
|
|
40
|
+
"text-base",
|
|
41
|
+
"text-lg",
|
|
42
|
+
"text-xl",
|
|
43
|
+
"text-2xl",
|
|
44
|
+
"text-4xl",
|
|
45
|
+
] as const
|
|
46
|
+
).map((size) => (
|
|
47
|
+
<p key={size} className={`${size} text-foreground`}>
|
|
48
|
+
{size}
|
|
49
|
+
</p>
|
|
30
50
|
))}
|
|
31
51
|
</div>
|
|
32
52
|
</section>
|
|
@@ -36,10 +56,26 @@ export const SpacingAndType: Story = {
|
|
|
36
56
|
|
|
37
57
|
export const Surfaces: Story = {
|
|
38
58
|
render: () => (
|
|
39
|
-
<main className="grid min-h-screen gap-6
|
|
40
|
-
<header className="grid gap-2"
|
|
59
|
+
<main className="bg-background text-foreground grid min-h-screen gap-6 p-6 md:p-10">
|
|
60
|
+
<header className="grid gap-2">
|
|
61
|
+
<p className="text-muted-foreground text-sm">Foundations / surfaces</p>
|
|
62
|
+
<h1 className="text-4xl font-semibold tracking-tight">Standard semantic layers.</h1>
|
|
63
|
+
</header>
|
|
41
64
|
<div className="grid gap-4 md:grid-cols-2">
|
|
42
|
-
{[
|
|
65
|
+
{[
|
|
66
|
+
["Background", "bg-background"],
|
|
67
|
+
["Card", "bg-card"],
|
|
68
|
+
["Popover", "bg-popover"],
|
|
69
|
+
["Muted", "bg-muted"],
|
|
70
|
+
].map(([name, className]) => (
|
|
71
|
+
<div
|
|
72
|
+
key={name}
|
|
73
|
+
className={`${className} border-border grid min-h-40 content-start gap-2 rounded-xl border p-5`}
|
|
74
|
+
>
|
|
75
|
+
<h2 className="text-lg font-semibold">{name}</h2>
|
|
76
|
+
<p className="text-muted-foreground text-sm">{className}</p>
|
|
77
|
+
</div>
|
|
78
|
+
))}
|
|
43
79
|
</div>
|
|
44
80
|
</main>
|
|
45
81
|
),
|
|
@@ -47,12 +83,26 @@ export const Surfaces: Story = {
|
|
|
47
83
|
|
|
48
84
|
export const Motion: Story = {
|
|
49
85
|
render: () => (
|
|
50
|
-
<main className="grid min-h-screen gap-8
|
|
51
|
-
<header className="grid gap-2"
|
|
86
|
+
<main className="bg-background text-foreground grid min-h-screen gap-8 p-6 md:p-10">
|
|
87
|
+
<header className="grid gap-2">
|
|
88
|
+
<p className="text-muted-foreground text-sm">Foundations / motion</p>
|
|
89
|
+
<h1 className="text-4xl font-semibold tracking-tight">
|
|
90
|
+
Motion stays standard and reducible.
|
|
91
|
+
</h1>
|
|
92
|
+
</header>
|
|
52
93
|
<div className="grid gap-4 sm:grid-cols-3">
|
|
53
|
-
<div className="motion-safe:animate-in motion-safe:fade-in-0 grid min-h-32 place-content-center gap-2 rounded-xl border
|
|
54
|
-
|
|
55
|
-
|
|
94
|
+
<div className="motion-safe:animate-in motion-safe:fade-in-0 border-border bg-card grid min-h-32 place-content-center gap-2 rounded-xl border p-5 motion-reduce:animate-none">
|
|
95
|
+
<span className="text-lg font-semibold">Enter</span>
|
|
96
|
+
<span className="text-muted-foreground text-sm">150ms</span>
|
|
97
|
+
</div>
|
|
98
|
+
<button className="border-border bg-card hover:bg-accent focus-visible:ring-ring grid min-h-32 place-content-center gap-2 rounded-xl border p-5 text-left transition-colors focus-visible:ring-2 focus-visible:outline-none motion-reduce:transition-none">
|
|
99
|
+
<span className="text-lg font-semibold">Press</span>
|
|
100
|
+
<span className="text-muted-foreground text-sm">System focus</span>
|
|
101
|
+
</button>
|
|
102
|
+
<div className="border-border bg-card grid min-h-32 place-content-center gap-2 rounded-xl border p-5 motion-safe:animate-pulse motion-reduce:animate-none">
|
|
103
|
+
<span className="text-lg font-semibold">Loading</span>
|
|
104
|
+
<span className="text-muted-foreground text-sm">Stable geometry</span>
|
|
105
|
+
</div>
|
|
56
106
|
</div>
|
|
57
107
|
</main>
|
|
58
108
|
),
|
|
@@ -3,54 +3,27 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"border-default": "#444444",
|
|
30
|
-
"border-strong": "#6d6d6d",
|
|
31
|
-
"border-focus": "#4069fd",
|
|
32
|
-
"border-accent": "#4069fd",
|
|
33
|
-
"border-destructive": "#fc432e",
|
|
34
|
-
accent: "#4069fd",
|
|
35
|
-
"accent-hover": "#345bf8",
|
|
36
|
-
"accent-pressed": "#345bf8",
|
|
37
|
-
"accent-subtle": "#0c2175",
|
|
38
|
-
destructive: "#df3422",
|
|
39
|
-
"destructive-hover": "#cd2e1d",
|
|
40
|
-
"destructive-pressed": "#cd2e1d",
|
|
41
|
-
"destructive-subtle": "#571107",
|
|
42
|
-
success: "#068850",
|
|
43
|
-
"success-subtle": "#003326",
|
|
44
|
-
warning: "#e06400",
|
|
45
|
-
"warning-subtle": "#501b00",
|
|
46
|
-
"ring-focus": "#4069fd",
|
|
47
|
-
"chart-1": "#5681ff",
|
|
48
|
-
"chart-2": "#099d59",
|
|
49
|
-
"chart-3": "#5681ff",
|
|
50
|
-
"chart-4": "#e06400",
|
|
51
|
-
"chart-5": "#8a8a8a",
|
|
52
|
-
"chart-positive": "#099d59",
|
|
53
|
-
"chart-negative": "#fc432e",
|
|
54
|
-
"chart-neutral": "#8a8a8a",
|
|
55
|
-
},
|
|
6
|
+
background: "#111113",
|
|
7
|
+
card: "#18191b",
|
|
8
|
+
popover: "#212225",
|
|
9
|
+
muted: "#18191b",
|
|
10
|
+
"text-primary": "#edeef0",
|
|
11
|
+
"text-secondary": "#b0b4ba",
|
|
12
|
+
tertiary: "#777b84",
|
|
13
|
+
primary: "#3e63dd",
|
|
14
|
+
destructive: "#e5484d",
|
|
15
|
+
success: "#30a46c",
|
|
16
|
+
warning: "#ffc53d",
|
|
17
|
+
"primary-foreground": "#ffffff",
|
|
18
|
+
"destructive-foreground": "#ffffff",
|
|
19
|
+
"border-default": "#43484e",
|
|
20
|
+
"focus-ring": "#3e63dd",
|
|
21
|
+
"chart-1": "#3e63dd",
|
|
22
|
+
"chart-2": "#6e56cf",
|
|
23
|
+
"chart-3": "#12a594",
|
|
24
|
+
"chart-4": "#f76b15",
|
|
25
|
+
"chart-5": "#696e77",
|
|
26
|
+
"chart-positive": "#30a46c",
|
|
27
|
+
"chart-negative": "#e5484d",
|
|
28
|
+
"chart-neutral": "#5a6169",
|
|
56
29
|
};
|
|
@@ -3,52 +3,27 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
--
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--color-border-strong: #6d6d6d;
|
|
30
|
-
--color-border-focus: #4069fd;
|
|
31
|
-
--color-border-accent: #4069fd;
|
|
32
|
-
--color-border-destructive: #fc432e;
|
|
33
|
-
--color-accent: #4069fd;
|
|
34
|
-
--color-accent-hover: #345bf8;
|
|
35
|
-
--color-accent-pressed: #345bf8;
|
|
36
|
-
--color-accent-subtle: #0c2175;
|
|
37
|
-
--color-destructive: #df3422;
|
|
38
|
-
--color-destructive-hover: #cd2e1d;
|
|
39
|
-
--color-destructive-pressed: #cd2e1d;
|
|
40
|
-
--color-destructive-subtle: #571107;
|
|
41
|
-
--color-success: #068850;
|
|
42
|
-
--color-success-subtle: #003326;
|
|
43
|
-
--color-warning: #e06400;
|
|
44
|
-
--color-warning-subtle: #501b00;
|
|
45
|
-
--color-ring-focus: #4069fd;
|
|
46
|
-
--color-chart-1: #5681ff;
|
|
47
|
-
--color-chart-2: #099d59;
|
|
48
|
-
--color-chart-3: #5681ff;
|
|
49
|
-
--color-chart-4: #e06400;
|
|
50
|
-
--color-chart-5: #8a8a8a;
|
|
51
|
-
--color-chart-positive: #099d59;
|
|
52
|
-
--color-chart-negative: #fc432e;
|
|
53
|
-
--color-chart-neutral: #8a8a8a;
|
|
6
|
+
--background: #111113;
|
|
7
|
+
--card: #18191b;
|
|
8
|
+
--popover: #212225;
|
|
9
|
+
--muted: #18191b;
|
|
10
|
+
--text-primary: #edeef0;
|
|
11
|
+
--text-secondary: #b0b4ba;
|
|
12
|
+
--tertiary: #777b84;
|
|
13
|
+
--primary: #3e63dd;
|
|
14
|
+
--destructive: #e5484d;
|
|
15
|
+
--success: #30a46c;
|
|
16
|
+
--warning: #ffc53d;
|
|
17
|
+
--primary-foreground: #ffffff;
|
|
18
|
+
--destructive-foreground: #ffffff;
|
|
19
|
+
--border-default: #43484e;
|
|
20
|
+
--focus-ring: #3e63dd;
|
|
21
|
+
--chart-1: #3e63dd;
|
|
22
|
+
--chart-2: #6e56cf;
|
|
23
|
+
--chart-3: #12a594;
|
|
24
|
+
--chart-4: #f76b15;
|
|
25
|
+
--chart-5: #696e77;
|
|
26
|
+
--chart-positive: #30a46c;
|
|
27
|
+
--chart-negative: #e5484d;
|
|
28
|
+
--chart-neutral: #5a6169;
|
|
54
29
|
}
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
--spacing-scale-1-5: 0.375rem;
|
|
40
40
|
--spacing-scale-2-5: 0.625rem;
|
|
41
41
|
--spacing-scale-3-5: 0.875rem;
|
|
42
|
-
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
43
|
-
--font-serif: ui-
|
|
42
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
43
|
+
--font-serif: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
44
44
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
45
45
|
--text-xs: 0.75rem;
|
|
46
46
|
--text-sm: 0.875rem;
|
|
@@ -43,6 +43,7 @@ export default {
|
|
|
43
43
|
},
|
|
44
44
|
font: {
|
|
45
45
|
sans: [
|
|
46
|
+
"system-ui",
|
|
46
47
|
"-apple-system",
|
|
47
48
|
"BlinkMacSystemFont",
|
|
48
49
|
"Segoe UI",
|
|
@@ -57,12 +58,19 @@ export default {
|
|
|
57
58
|
"Noto Color Emoji",
|
|
58
59
|
],
|
|
59
60
|
serif: [
|
|
60
|
-
"ui
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
61
|
+
"system-ui",
|
|
62
|
+
"-apple-system",
|
|
63
|
+
"BlinkMacSystemFont",
|
|
64
|
+
"Segoe UI",
|
|
65
|
+
"Roboto",
|
|
66
|
+
"Helvetica Neue",
|
|
67
|
+
"Noto Sans",
|
|
68
|
+
"Arial",
|
|
69
|
+
"sans-serif",
|
|
70
|
+
"Apple Color Emoji",
|
|
71
|
+
"Segoe UI Emoji",
|
|
72
|
+
"Segoe UI Symbol",
|
|
73
|
+
"Noto Color Emoji",
|
|
66
74
|
],
|
|
67
75
|
mono: [
|
|
68
76
|
"ui-monospace",
|
|
@@ -3,54 +3,27 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"border-default": "#c6c6c6",
|
|
30
|
-
"border-strong": "#8f8f8f",
|
|
31
|
-
"border-focus": "#4b75ff",
|
|
32
|
-
"border-accent": "#3b63fb",
|
|
33
|
-
"border-destructive": "#d73220",
|
|
34
|
-
accent: "#3b63fb",
|
|
35
|
-
"accent-hover": "#274dea",
|
|
36
|
-
"accent-pressed": "#274dea",
|
|
37
|
-
"accent-subtle": "#e5f0fe",
|
|
38
|
-
destructive: "#d73220",
|
|
39
|
-
"destructive-hover": "#b72818",
|
|
40
|
-
"destructive-pressed": "#b72818",
|
|
41
|
-
"destructive-subtle": "#ffebe8",
|
|
42
|
-
success: "#05834e",
|
|
43
|
-
"success-subtle": "#d7f7e1",
|
|
44
|
-
warning: "#fc7d00",
|
|
45
|
-
"warning-subtle": "#ffeccf",
|
|
46
|
-
"ring-focus": "#4b75ff",
|
|
47
|
-
"chart-1": "#4b75ff",
|
|
48
|
-
"chart-2": "#079355",
|
|
49
|
-
"chart-3": "#4b75ff",
|
|
50
|
-
"chart-4": "#d45b00",
|
|
51
|
-
"chart-5": "#8f8f8f",
|
|
52
|
-
"chart-positive": "#079355",
|
|
53
|
-
"chart-negative": "#f03823",
|
|
54
|
-
"chart-neutral": "#8f8f8f",
|
|
55
|
-
},
|
|
6
|
+
background: "#fcfcfd",
|
|
7
|
+
card: "#f9f9fb",
|
|
8
|
+
popover: "#f0f0f3",
|
|
9
|
+
muted: "#f9f9fb",
|
|
10
|
+
"text-primary": "#1c2024",
|
|
11
|
+
"text-secondary": "#60646c",
|
|
12
|
+
tertiary: "#80838d",
|
|
13
|
+
primary: "#3e63dd",
|
|
14
|
+
destructive: "#e5484d",
|
|
15
|
+
success: "#30a46c",
|
|
16
|
+
warning: "#ffc53d",
|
|
17
|
+
"primary-foreground": "#ffffff",
|
|
18
|
+
"destructive-foreground": "#ffffff",
|
|
19
|
+
"border-default": "#cdced6",
|
|
20
|
+
"focus-ring": "#3e63dd",
|
|
21
|
+
"chart-1": "#3e63dd",
|
|
22
|
+
"chart-2": "#6e56cf",
|
|
23
|
+
"chart-3": "#12a594",
|
|
24
|
+
"chart-4": "#f76b15",
|
|
25
|
+
"chart-5": "#8b8d98",
|
|
26
|
+
"chart-positive": "#30a46c",
|
|
27
|
+
"chart-negative": "#e5484d",
|
|
28
|
+
"chart-neutral": "#b9bbc6",
|
|
56
29
|
};
|