@openconsole/shadcn 0.2.4 → 0.2.6
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 +460 -380
- package/components/ai-elements/agent.tsx +141 -0
- package/components/ai-elements/artifact.tsx +148 -0
- package/components/ai-elements/attachments.tsx +426 -0
- package/components/ai-elements/audio-player.tsx +231 -0
- package/components/ai-elements/canvas.tsx +26 -0
- package/components/ai-elements/chain-of-thought.tsx +222 -0
- package/components/ai-elements/checkpoint.tsx +71 -0
- package/components/ai-elements/code-block.tsx +562 -0
- package/components/ai-elements/commit.tsx +458 -0
- package/components/ai-elements/confirmation.tsx +174 -0
- package/components/ai-elements/connection.tsx +28 -0
- package/components/ai-elements/context.tsx +409 -0
- package/components/ai-elements/controls.tsx +18 -0
- package/components/ai-elements/conversation.tsx +168 -0
- package/components/ai-elements/edge.tsx +143 -0
- package/components/ai-elements/environment-variables.tsx +324 -0
- package/components/ai-elements/file-tree.tsx +304 -0
- package/components/ai-elements/image.tsx +24 -0
- package/components/ai-elements/index.ts +51 -0
- package/components/ai-elements/inline-citation.tsx +296 -0
- package/components/ai-elements/jsx-preview.tsx +310 -0
- package/components/ai-elements/message.tsx +360 -0
- package/components/ai-elements/mic-selector.tsx +375 -0
- package/components/ai-elements/model-selector.tsx +213 -0
- package/components/ai-elements/node.tsx +71 -0
- package/components/ai-elements/open-in-chat.tsx +370 -0
- package/components/ai-elements/package-info.tsx +239 -0
- package/components/ai-elements/panel.tsx +15 -0
- package/components/ai-elements/persona.tsx +306 -0
- package/components/ai-elements/plan.tsx +147 -0
- package/components/ai-elements/prompt-input.tsx +1463 -0
- package/components/ai-elements/queue.tsx +274 -0
- package/components/ai-elements/reasoning.tsx +228 -0
- package/components/ai-elements/sandbox.tsx +132 -0
- package/components/ai-elements/schema-display.tsx +471 -0
- package/components/ai-elements/shimmer.tsx +77 -0
- package/components/ai-elements/snippet.tsx +145 -0
- package/components/ai-elements/sources.tsx +77 -0
- package/components/ai-elements/speech-input.tsx +323 -0
- package/components/ai-elements/stack-trace.tsx +528 -0
- package/components/ai-elements/suggestion.tsx +57 -0
- package/components/ai-elements/task.tsx +87 -0
- package/components/ai-elements/terminal.tsx +273 -0
- package/components/ai-elements/test-results.tsx +496 -0
- package/components/ai-elements/tool.tsx +173 -0
- package/components/ai-elements/toolbar.tsx +16 -0
- package/components/ai-elements/transcription.tsx +125 -0
- package/components/ai-elements/voice-selector.tsx +524 -0
- package/components/ai-elements/web-preview.tsx +281 -0
- package/components/index.ts +3 -0
- package/{accordion.tsx → components/ui/accordion.tsx} +66 -66
- package/{alert-dialog.tsx → components/ui/alert-dialog.tsx} +196 -196
- package/{alert.tsx → components/ui/alert.tsx} +66 -66
- package/{aspect-ratio.tsx → components/ui/aspect-ratio.tsx} +11 -11
- package/{avatar.tsx → components/ui/avatar.tsx} +53 -53
- package/{badge.tsx → components/ui/badge.tsx} +46 -46
- package/{breadcrumb.tsx → components/ui/breadcrumb.tsx} +109 -109
- package/{button-group.tsx → components/ui/button-group.tsx} +83 -83
- package/{button.tsx → components/ui/button.tsx} +60 -60
- package/{calendar.tsx → components/ui/calendar.tsx} +219 -219
- package/{card.tsx → components/ui/card.tsx} +92 -92
- package/{carousel.tsx → components/ui/carousel.tsx} +241 -241
- package/{chart.tsx → components/ui/chart.tsx} +374 -374
- package/{checkbox.tsx → components/ui/checkbox.tsx} +32 -32
- package/{collapsible.tsx → components/ui/collapsible.tsx} +33 -33
- package/{command.tsx → components/ui/command.tsx} +184 -184
- package/{context-menu.tsx → components/ui/context-menu.tsx} +252 -252
- package/{dialog.tsx → components/ui/dialog.tsx} +143 -143
- package/{direction.tsx → components/ui/direction.tsx} +22 -22
- package/{drawer.tsx → components/ui/drawer.tsx} +135 -135
- package/{dropdown-menu.tsx → components/ui/dropdown-menu.tsx} +257 -257
- package/{empty.tsx → components/ui/empty.tsx} +104 -104
- package/{field.tsx → components/ui/field.tsx} +248 -248
- package/{form.tsx → components/ui/form.tsx} +167 -167
- package/{hover-card.tsx → components/ui/hover-card.tsx} +44 -44
- package/{icon.tsx → components/ui/icon.tsx} +55 -55
- package/components/ui/index.ts +59 -0
- package/{input-group.tsx → components/ui/input-group.tsx} +170 -170
- package/{input-otp.tsx → components/ui/input-otp.tsx} +77 -77
- package/{input.tsx → components/ui/input.tsx} +21 -21
- package/{item.tsx → components/ui/item.tsx} +193 -193
- package/{kbd.tsx → components/ui/kbd.tsx} +28 -28
- package/{label.tsx → components/ui/label.tsx} +24 -24
- package/{menubar.tsx → components/ui/menubar.tsx} +276 -276
- package/{native-select.tsx → components/ui/native-select.tsx} +62 -62
- package/{navigation-menu.tsx → components/ui/navigation-menu.tsx} +168 -168
- package/{pagination.tsx → components/ui/pagination.tsx} +127 -127
- package/{popover.tsx → components/ui/popover.tsx} +89 -89
- package/{progress.tsx → components/ui/progress.tsx} +31 -31
- package/{radio-group.tsx → components/ui/radio-group.tsx} +45 -45
- package/{resizable.tsx → components/ui/resizable.tsx} +53 -53
- package/{scroll-area.tsx → components/ui/scroll-area.tsx} +58 -58
- package/{select.tsx → components/ui/select.tsx} +187 -187
- package/{separator.tsx → components/ui/separator.tsx} +28 -28
- package/{sheet.tsx → components/ui/sheet.tsx} +139 -139
- package/{sidebar.tsx → components/ui/sidebar.tsx} +724 -724
- package/{skeleton.tsx → components/ui/skeleton.tsx} +13 -13
- package/{slider.tsx → components/ui/slider.tsx} +63 -63
- package/{sonner.tsx → components/ui/sonner.tsx} +40 -40
- package/{spinner.tsx → components/ui/spinner.tsx} +16 -16
- package/{switch.tsx → components/ui/switch.tsx} +35 -35
- package/{table.tsx → components/ui/table.tsx} +116 -116
- package/{tabs.tsx → components/ui/tabs.tsx} +66 -66
- package/{textarea.tsx → components/ui/textarea.tsx} +18 -18
- package/{toggle-group.tsx → components/ui/toggle-group.tsx} +83 -83
- package/{toggle.tsx → components/ui/toggle.tsx} +47 -47
- package/{tooltip.tsx → components/ui/tooltip.tsx} +61 -61
- package/hooks/index.ts +1 -1
- package/hooks/use-mobile.ts +19 -19
- package/index.ts +3 -59
- package/lib/index.ts +1 -1
- package/lib/utils.ts +6 -6
- package/package.json +79 -1
- package/styles.css +124 -124
- package/tsconfig.json +0 -12
- package/tsconfig.tsbuildinfo +0 -1
package/lib/utils.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { clsx, type ClassValue } from "clsx";
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
|
-
|
|
4
|
-
export function cn(...inputs: ClassValue[]) {
|
|
5
|
-
return twMerge(clsx(inputs));
|
|
6
|
-
}
|
|
1
|
+
import { clsx, type ClassValue } from "clsx";
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
|
|
4
|
+
export function cn(...inputs: ClassValue[]) {
|
|
5
|
+
return twMerge(clsx(inputs));
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openconsole/shadcn",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -11,6 +11,14 @@
|
|
|
11
11
|
".": "./index.ts",
|
|
12
12
|
"./styles.css": "./styles.css"
|
|
13
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"components",
|
|
16
|
+
"lib",
|
|
17
|
+
"hooks",
|
|
18
|
+
"index.ts",
|
|
19
|
+
"styles.css",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
14
22
|
"peerDependencies": {
|
|
15
23
|
"@hookform/resolvers": "*",
|
|
16
24
|
"@radix-ui/react-accordion": "*",
|
|
@@ -24,7 +32,16 @@
|
|
|
24
32
|
"@radix-ui/react-slot": "*",
|
|
25
33
|
"@radix-ui/react-tabs": "*",
|
|
26
34
|
"@radix-ui/react-tooltip": "*",
|
|
35
|
+
"@radix-ui/react-use-controllable-state": "*",
|
|
36
|
+
"@rive-app/react-webgl2": "*",
|
|
37
|
+
"@streamdown/cjk": "*",
|
|
38
|
+
"@streamdown/code": "*",
|
|
39
|
+
"@streamdown/math": "*",
|
|
40
|
+
"@streamdown/mermaid": "*",
|
|
27
41
|
"@tanstack/react-table": "*",
|
|
42
|
+
"@xyflow/react": "*",
|
|
43
|
+
"ai": "*",
|
|
44
|
+
"ansi-to-react": "*",
|
|
28
45
|
"class-variance-authority": "*",
|
|
29
46
|
"clsx": "*",
|
|
30
47
|
"cmdk": "*",
|
|
@@ -32,18 +49,26 @@
|
|
|
32
49
|
"embla-carousel-react": "*",
|
|
33
50
|
"input-otp": "*",
|
|
34
51
|
"lucide-react": "*",
|
|
52
|
+
"media-chrome": "*",
|
|
53
|
+
"motion": "*",
|
|
54
|
+
"nanoid": "*",
|
|
35
55
|
"next-themes": "*",
|
|
36
56
|
"radix-ui": "*",
|
|
37
57
|
"react": "^19.0.0",
|
|
38
58
|
"react-day-picker": "*",
|
|
39
59
|
"react-dom": "^19.0.0",
|
|
40
60
|
"react-hook-form": "*",
|
|
61
|
+
"react-jsx-parser": "*",
|
|
41
62
|
"react-resizable-panels": "*",
|
|
42
63
|
"recharts": "*",
|
|
64
|
+
"shiki": "*",
|
|
43
65
|
"sonner": "*",
|
|
66
|
+
"streamdown": "*",
|
|
44
67
|
"tailwind-merge": "*",
|
|
45
68
|
"tailwindcss": "^4.0.0",
|
|
69
|
+
"tokenlens": "*",
|
|
46
70
|
"tw-animate-css": "*",
|
|
71
|
+
"use-stick-to-bottom": "*",
|
|
47
72
|
"vaul": "*",
|
|
48
73
|
"zod": "*"
|
|
49
74
|
},
|
|
@@ -51,6 +76,59 @@
|
|
|
51
76
|
"@types/react": "^19.2.14",
|
|
52
77
|
"@types/react-dom": "^19.2.3"
|
|
53
78
|
},
|
|
79
|
+
"peerDependenciesMeta": {
|
|
80
|
+
"@radix-ui/react-use-controllable-state": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"@rive-app/react-webgl2": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"@streamdown/cjk": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"@streamdown/code": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"@streamdown/math": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"@streamdown/mermaid": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@xyflow/react": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"ai": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"ansi-to-react": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"media-chrome": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"motion": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"nanoid": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"react-jsx-parser": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
119
|
+
"shiki": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"streamdown": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
125
|
+
"tokenlens": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"use-stick-to-bottom": {
|
|
129
|
+
"optional": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
54
132
|
"scripts": {
|
|
55
133
|
"typecheck": "tsc --noEmit",
|
|
56
134
|
"check": "tsc --noEmit"
|
package/styles.css
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
@import "tw-animate-css";
|
|
2
|
-
|
|
3
|
-
/* Register this package's source files as Tailwind content sources. */
|
|
4
|
-
@source "./**/*.{ts,tsx}";
|
|
5
|
-
|
|
6
|
-
@custom-variant dark (&:is(.dark *));
|
|
7
|
-
|
|
8
|
-
@theme inline {
|
|
9
|
-
--color-background: var(--background);
|
|
10
|
-
--color-foreground: var(--foreground);
|
|
11
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
12
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
13
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
14
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
15
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
16
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
17
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
18
|
-
--color-sidebar: var(--sidebar);
|
|
19
|
-
--color-chart-5: var(--chart-5);
|
|
20
|
-
--color-chart-4: var(--chart-4);
|
|
21
|
-
--color-chart-3: var(--chart-3);
|
|
22
|
-
--color-chart-2: var(--chart-2);
|
|
23
|
-
--color-chart-1: var(--chart-1);
|
|
24
|
-
--color-ring: var(--ring);
|
|
25
|
-
--color-input: var(--input);
|
|
26
|
-
--color-border: var(--border);
|
|
27
|
-
--color-destructive: var(--destructive);
|
|
28
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
29
|
-
--color-accent: var(--accent);
|
|
30
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
31
|
-
--color-muted: var(--muted);
|
|
32
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
33
|
-
--color-secondary: var(--secondary);
|
|
34
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
35
|
-
--color-primary: var(--primary);
|
|
36
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
37
|
-
--color-popover: var(--popover);
|
|
38
|
-
--color-card-foreground: var(--card-foreground);
|
|
39
|
-
--color-card: var(--card);
|
|
40
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
41
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
42
|
-
--radius-lg: var(--radius);
|
|
43
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:root {
|
|
47
|
-
--radius: 0.625rem;
|
|
48
|
-
--background: oklch(1 0 0);
|
|
49
|
-
--foreground: oklch(0.145 0 0);
|
|
50
|
-
--card: oklch(1 0 0);
|
|
51
|
-
--card-foreground: oklch(0.145 0 0);
|
|
52
|
-
--popover: oklch(1 0 0);
|
|
53
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
54
|
-
/* 品牌主色 #17b3a3 (teal) */
|
|
55
|
-
--primary: oklch(0.7 0.12 183);
|
|
56
|
-
--primary-foreground: oklch(0.985 0 0);
|
|
57
|
-
--secondary: oklch(0.97 0 0);
|
|
58
|
-
--secondary-foreground: oklch(0.205 0 0);
|
|
59
|
-
--muted: oklch(0.97 0 0);
|
|
60
|
-
--muted-foreground: oklch(0.556 0 0);
|
|
61
|
-
--accent: oklch(0.97 0 0);
|
|
62
|
-
--accent-foreground: oklch(0.205 0 0);
|
|
63
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
64
|
-
--border: oklch(0.922 0 0);
|
|
65
|
-
--input: oklch(0.922 0 0);
|
|
66
|
-
--ring: oklch(0.7 0.12 183);
|
|
67
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
68
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
69
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
70
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
71
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
72
|
-
--sidebar: oklch(0.985 0 0);
|
|
73
|
-
--sidebar-foreground: oklch(0.145 0 0);
|
|
74
|
-
--sidebar-primary: oklch(0.7 0.12 183);
|
|
75
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
76
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
77
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
78
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
79
|
-
--sidebar-ring: oklch(0.7 0.12 183);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.dark {
|
|
83
|
-
--background: oklch(0.145 0 0);
|
|
84
|
-
--foreground: oklch(0.985 0 0);
|
|
85
|
-
--card: oklch(0.205 0 0);
|
|
86
|
-
--card-foreground: oklch(0.985 0 0);
|
|
87
|
-
--popover: oklch(0.205 0 0);
|
|
88
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
89
|
-
/* 品牌主色 #17b3a3 (teal) —— 双模一致便于品牌识别 */
|
|
90
|
-
--primary: oklch(0.7 0.12 183);
|
|
91
|
-
--primary-foreground: oklch(0.985 0 0);
|
|
92
|
-
--secondary: oklch(0.269 0 0);
|
|
93
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
94
|
-
--muted: oklch(0.269 0 0);
|
|
95
|
-
--muted-foreground: oklch(0.708 0 0);
|
|
96
|
-
--accent: oklch(0.269 0 0);
|
|
97
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
98
|
-
--destructive: oklch(0.704 0.191 22.216);
|
|
99
|
-
--border: oklch(1 0 0 / 10%);
|
|
100
|
-
--input: oklch(1 0 0 / 15%);
|
|
101
|
-
--ring: oklch(0.7 0.12 183);
|
|
102
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
103
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
104
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
105
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
106
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
107
|
-
--sidebar: oklch(0.205 0 0);
|
|
108
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
109
|
-
--sidebar-primary: oklch(0.7 0.12 183);
|
|
110
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
111
|
-
--sidebar-accent: oklch(0.269 0 0);
|
|
112
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
113
|
-
--sidebar-border: oklch(1 0 0 / 10%);
|
|
114
|
-
--sidebar-ring: oklch(0.7 0.12 183);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@layer base {
|
|
118
|
-
* {
|
|
119
|
-
@apply border-border outline-ring/50;
|
|
120
|
-
}
|
|
121
|
-
body {
|
|
122
|
-
@apply bg-background text-foreground;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
1
|
+
@import "tw-animate-css";
|
|
2
|
+
|
|
3
|
+
/* Register this package's source files as Tailwind content sources. */
|
|
4
|
+
@source "./**/*.{ts,tsx}";
|
|
5
|
+
|
|
6
|
+
@custom-variant dark (&:is(.dark *));
|
|
7
|
+
|
|
8
|
+
@theme inline {
|
|
9
|
+
--color-background: var(--background);
|
|
10
|
+
--color-foreground: var(--foreground);
|
|
11
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
12
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
13
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
14
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
15
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
16
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
17
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
18
|
+
--color-sidebar: var(--sidebar);
|
|
19
|
+
--color-chart-5: var(--chart-5);
|
|
20
|
+
--color-chart-4: var(--chart-4);
|
|
21
|
+
--color-chart-3: var(--chart-3);
|
|
22
|
+
--color-chart-2: var(--chart-2);
|
|
23
|
+
--color-chart-1: var(--chart-1);
|
|
24
|
+
--color-ring: var(--ring);
|
|
25
|
+
--color-input: var(--input);
|
|
26
|
+
--color-border: var(--border);
|
|
27
|
+
--color-destructive: var(--destructive);
|
|
28
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
29
|
+
--color-accent: var(--accent);
|
|
30
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
31
|
+
--color-muted: var(--muted);
|
|
32
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
33
|
+
--color-secondary: var(--secondary);
|
|
34
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
35
|
+
--color-primary: var(--primary);
|
|
36
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
37
|
+
--color-popover: var(--popover);
|
|
38
|
+
--color-card-foreground: var(--card-foreground);
|
|
39
|
+
--color-card: var(--card);
|
|
40
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
41
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
42
|
+
--radius-lg: var(--radius);
|
|
43
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:root {
|
|
47
|
+
--radius: 0.625rem;
|
|
48
|
+
--background: oklch(1 0 0);
|
|
49
|
+
--foreground: oklch(0.145 0 0);
|
|
50
|
+
--card: oklch(1 0 0);
|
|
51
|
+
--card-foreground: oklch(0.145 0 0);
|
|
52
|
+
--popover: oklch(1 0 0);
|
|
53
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
54
|
+
/* 品牌主色 #17b3a3 (teal) */
|
|
55
|
+
--primary: oklch(0.7 0.12 183);
|
|
56
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
57
|
+
--secondary: oklch(0.97 0 0);
|
|
58
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
59
|
+
--muted: oklch(0.97 0 0);
|
|
60
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
61
|
+
--accent: oklch(0.97 0 0);
|
|
62
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
63
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
64
|
+
--border: oklch(0.922 0 0);
|
|
65
|
+
--input: oklch(0.922 0 0);
|
|
66
|
+
--ring: oklch(0.7 0.12 183);
|
|
67
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
68
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
69
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
70
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
71
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
72
|
+
--sidebar: oklch(0.985 0 0);
|
|
73
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
74
|
+
--sidebar-primary: oklch(0.7 0.12 183);
|
|
75
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
76
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
77
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
78
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
79
|
+
--sidebar-ring: oklch(0.7 0.12 183);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dark {
|
|
83
|
+
--background: oklch(0.145 0 0);
|
|
84
|
+
--foreground: oklch(0.985 0 0);
|
|
85
|
+
--card: oklch(0.205 0 0);
|
|
86
|
+
--card-foreground: oklch(0.985 0 0);
|
|
87
|
+
--popover: oklch(0.205 0 0);
|
|
88
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
89
|
+
/* 品牌主色 #17b3a3 (teal) —— 双模一致便于品牌识别 */
|
|
90
|
+
--primary: oklch(0.7 0.12 183);
|
|
91
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
92
|
+
--secondary: oklch(0.269 0 0);
|
|
93
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
94
|
+
--muted: oklch(0.269 0 0);
|
|
95
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
96
|
+
--accent: oklch(0.269 0 0);
|
|
97
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
98
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
99
|
+
--border: oklch(1 0 0 / 10%);
|
|
100
|
+
--input: oklch(1 0 0 / 15%);
|
|
101
|
+
--ring: oklch(0.7 0.12 183);
|
|
102
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
103
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
104
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
105
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
106
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
107
|
+
--sidebar: oklch(0.205 0 0);
|
|
108
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
109
|
+
--sidebar-primary: oklch(0.7 0.12 183);
|
|
110
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
111
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
112
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
113
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
114
|
+
--sidebar-ring: oklch(0.7 0.12 183);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@layer base {
|
|
118
|
+
* {
|
|
119
|
+
@apply border-border outline-ring/50;
|
|
120
|
+
}
|
|
121
|
+
body {
|
|
122
|
+
@apply bg-background text-foreground;
|
|
123
|
+
}
|
|
124
|
+
}
|
package/tsconfig.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"extends": [
|
|
4
|
-
"@openconsole/tsconfig/lib",
|
|
5
|
-
"@openconsole/tsconfig/react"
|
|
6
|
-
],
|
|
7
|
-
"compilerOptions": {
|
|
8
|
-
"noEmit": true
|
|
9
|
-
},
|
|
10
|
-
"include": ["**/*.ts", "**/*.tsx"],
|
|
11
|
-
"exclude": ["node_modules", "dist"]
|
|
12
|
-
}
|