@_tc/template-core 0.0.1-bate.34 → 0.0.1-bate.36
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/fe/frontend/main.css +187 -0
- package/fe/frontend/main.d.ts +1 -0
- package/fe/frontend/main.js +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
/* 内容扫描 */
|
|
4
|
+
/* enhancedComponents */
|
|
5
|
+
@source "./**/*.{js,ts,jsx,tsx}";
|
|
6
|
+
/* baseComponents */
|
|
7
|
+
@source "../packages/ui/react/**/*.{js,ts,jsx,tsx}";
|
|
8
|
+
|
|
9
|
+
/* 暗色模式变体 */
|
|
10
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
11
|
+
|
|
12
|
+
/* 主题配置 */
|
|
13
|
+
@theme {
|
|
14
|
+
/* 圆角 */
|
|
15
|
+
--radius-lg: var(--radius);
|
|
16
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
17
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
18
|
+
|
|
19
|
+
/* 颜色 */
|
|
20
|
+
--color-background: hsl(var(--background));
|
|
21
|
+
--color-foreground: hsl(var(--foreground));
|
|
22
|
+
|
|
23
|
+
--color-card: hsl(var(--card));
|
|
24
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
25
|
+
|
|
26
|
+
--color-popover: hsl(var(--popover));
|
|
27
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
28
|
+
|
|
29
|
+
--color-primary: hsl(var(--primary));
|
|
30
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
31
|
+
|
|
32
|
+
--color-secondary: hsl(var(--secondary));
|
|
33
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
34
|
+
|
|
35
|
+
--color-muted: hsl(var(--muted));
|
|
36
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
37
|
+
|
|
38
|
+
--color-accent: hsl(var(--accent));
|
|
39
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
40
|
+
|
|
41
|
+
--color-destructive: hsl(var(--destructive));
|
|
42
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
43
|
+
|
|
44
|
+
--color-border: hsl(var(--border));
|
|
45
|
+
--color-input: hsl(var(--input));
|
|
46
|
+
--color-ring: hsl(var(--ring));
|
|
47
|
+
|
|
48
|
+
--color-chart-1: hsl(var(--chart-1));
|
|
49
|
+
--color-chart-2: hsl(var(--chart-2));
|
|
50
|
+
--color-chart-3: hsl(var(--chart-3));
|
|
51
|
+
--color-chart-4: hsl(var(--chart-4));
|
|
52
|
+
--color-chart-5: hsl(var(--chart-5));
|
|
53
|
+
|
|
54
|
+
/* 主题色 - 与 @layer base 中的 CSS 变量对应 */
|
|
55
|
+
--color-theme: hsl(var(--theme-primary));
|
|
56
|
+
--color-theme-foreground: hsl(var(--theme-primary-foreground));
|
|
57
|
+
--color-theme-bg: hsl(var(--theme-bg));
|
|
58
|
+
--color-theme-text: hsl(var(--theme-text));
|
|
59
|
+
|
|
60
|
+
/* 表格颜色 */
|
|
61
|
+
--color-table-header: hsl(var(--table-header-bg));
|
|
62
|
+
--color-table-header-text: hsl(var(--table-header-text));
|
|
63
|
+
--color-table-head-text: hsl(var(--table-head-text));
|
|
64
|
+
--color-table-cell-text: hsl(var(--table-cell-text));
|
|
65
|
+
--color-table-action: hsl(var(--table-action-bg));
|
|
66
|
+
--color-table-action-text: hsl(var(--table-action-text));
|
|
67
|
+
|
|
68
|
+
/* 面包屑颜色 */
|
|
69
|
+
--color-breadcrumb-text: hsl(var(--breadcrumb-text));
|
|
70
|
+
--color-breadcrumb-border: hsl(var(--breadcrumb-border));
|
|
71
|
+
--color-breadcrumb-active-text: hsl(var(--breadcrumb-active-text));
|
|
72
|
+
--color-breadcrumb-active-bg: hsl(var(--breadcrumb-active-bg));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* CSS 变量定义 */
|
|
76
|
+
:root {
|
|
77
|
+
--background: 0 0% 100%;
|
|
78
|
+
--foreground: 240 10% 3.9%;
|
|
79
|
+
--card: 0 0% 100%;
|
|
80
|
+
--card-foreground: 240 10% 3.9%;
|
|
81
|
+
--popover: 0 0% 100%;
|
|
82
|
+
--popover-foreground: 240 10% 3.9%;
|
|
83
|
+
--primary: 240 5.9% 10%;
|
|
84
|
+
--primary-foreground: 0 0% 98%;
|
|
85
|
+
--secondary: 240 4.8% 95.9%;
|
|
86
|
+
--secondary-foreground: 240 5.9% 10%;
|
|
87
|
+
--muted: 240 4.8% 95.9%;
|
|
88
|
+
--muted-foreground: 240 3.8% 46.1%;
|
|
89
|
+
--accent: 240 4.8% 95.9%;
|
|
90
|
+
--accent-foreground: 240 5.9% 10%;
|
|
91
|
+
--destructive: 0 84.2% 60.2%;
|
|
92
|
+
--destructive-foreground: 0 0% 98%;
|
|
93
|
+
--border: 240 5.9% 90%;
|
|
94
|
+
--input: 240 5.9% 90%;
|
|
95
|
+
--ring: 240 5.9% 10%;
|
|
96
|
+
--radius: 0.5rem;
|
|
97
|
+
--chart-1: 12 76% 61%;
|
|
98
|
+
--chart-2: 173 58% 39%;
|
|
99
|
+
--chart-3: 197 37% 24%;
|
|
100
|
+
--chart-4: 43 74% 66%;
|
|
101
|
+
--chart-5: 27 87% 67%;
|
|
102
|
+
|
|
103
|
+
/* 主题色 - 黑色主题(默认) */
|
|
104
|
+
--theme-primary: 0 0% 0%;
|
|
105
|
+
--theme-primary-foreground: 0 0% 100%;
|
|
106
|
+
--theme-bg: 0 0% 0%;
|
|
107
|
+
--theme-text: 0 0% 100%;
|
|
108
|
+
|
|
109
|
+
/* 表格颜色 - 黑色主题 */
|
|
110
|
+
--table-header-bg: 220 14% 96%;
|
|
111
|
+
--table-header-text: 220 9% 46%;
|
|
112
|
+
--table-head-text: 217 19% 27%;
|
|
113
|
+
--table-cell-text: 180 4% 16%;
|
|
114
|
+
--table-action-bg: 220 13% 91%;
|
|
115
|
+
--table-action-text: 0 0% 0%;
|
|
116
|
+
|
|
117
|
+
/* 面包屑颜色 - 黑色主题 */
|
|
118
|
+
--breadcrumb-text: 220 10% 46%;
|
|
119
|
+
--breadcrumb-border: 0 0% 88%;
|
|
120
|
+
--breadcrumb-active-text: 0 0% 100%;
|
|
121
|
+
--breadcrumb-active-bg: 0 0% 0%;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* 绿色主题 */
|
|
125
|
+
[data-theme='green'] {
|
|
126
|
+
--theme-primary: 142 76% 36%;
|
|
127
|
+
--theme-primary-foreground: 0 0% 100%;
|
|
128
|
+
--theme-bg: 120 25% 93%;
|
|
129
|
+
--theme-text: 141 48% 13%;
|
|
130
|
+
|
|
131
|
+
--table-header-bg: 0 0% 88%;
|
|
132
|
+
--table-header-text: 120 4% 16%;
|
|
133
|
+
--table-head-text: 120 4% 16%;
|
|
134
|
+
--table-cell-text: 120 4% 16%;
|
|
135
|
+
--table-action-bg: 120 25% 93% / 0.8;
|
|
136
|
+
--table-action-text: 141 48% 13%;
|
|
137
|
+
|
|
138
|
+
--breadcrumb-text: 0 0% 27%;
|
|
139
|
+
--breadcrumb-border: 0 0% 88%;
|
|
140
|
+
--breadcrumb-active-text: 141 48% 13%;
|
|
141
|
+
--breadcrumb-active-bg: 140 96% 72%;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* 暗色模式 */
|
|
145
|
+
.dark {
|
|
146
|
+
--background: 240 10% 3.9%;
|
|
147
|
+
--foreground: 0 0% 98%;
|
|
148
|
+
--card: 240 10% 3.9%;
|
|
149
|
+
--card-foreground: 0 0% 98%;
|
|
150
|
+
--popover: 240 10% 3.9%;
|
|
151
|
+
--popover-foreground: 0 0% 98%;
|
|
152
|
+
--primary: 0 0% 98%;
|
|
153
|
+
--primary-foreground: 240 5.9% 10%;
|
|
154
|
+
--secondary: 240 3.7% 15.9%;
|
|
155
|
+
--secondary-foreground: 0 0% 98%;
|
|
156
|
+
--muted: 240 3.7% 15.9%;
|
|
157
|
+
--muted-foreground: 240 5% 64.9%;
|
|
158
|
+
--accent: 240 3.7% 15.9%;
|
|
159
|
+
--accent-foreground: 0 0% 98%;
|
|
160
|
+
--destructive: 0 62.8% 30.6%;
|
|
161
|
+
--destructive-foreground: 0 0% 98%;
|
|
162
|
+
--border: 240 3.7% 15.9%;
|
|
163
|
+
--input: 240 3.7% 15.9%;
|
|
164
|
+
--ring: 240 4.9% 83.9%;
|
|
165
|
+
--chart-1: 220 70% 50%;
|
|
166
|
+
--chart-2: 160 60% 45%;
|
|
167
|
+
--chart-3: 30 80% 55%;
|
|
168
|
+
--chart-4: 280 65% 60%;
|
|
169
|
+
--chart-5: 340 75% 55%;
|
|
170
|
+
|
|
171
|
+
--table-header-bg: 240 4% 16%;
|
|
172
|
+
--table-header-text: 240 5% 65%;
|
|
173
|
+
--table-head-text: 240 5% 84%;
|
|
174
|
+
--table-cell-text: 0 0% 90%;
|
|
175
|
+
--table-action-bg: 240 4% 20%;
|
|
176
|
+
--table-action-text: 0 0% 95%;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* 全局样式 */
|
|
180
|
+
* {
|
|
181
|
+
border-color: hsl(var(--border));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
body {
|
|
185
|
+
background-color: hsl(var(--background));
|
|
186
|
+
color: hsl(var(--foreground));
|
|
187
|
+
}
|
package/fe/frontend/main.d.ts
CHANGED
package/fe/frontend/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_tc/template-core",
|
|
3
|
-
"version": "0.0.1-bate.
|
|
3
|
+
"version": "0.0.1-bate.36",
|
|
4
4
|
"description": "A TypeScript Koa framework template - Monorepo root",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"import": "./fe/packages/ui/react/*",
|
|
30
30
|
"require": "./fe/packages/ui/react/*",
|
|
31
31
|
"types": "./fe/packages/ui/react/*"
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
"./fe/tailwind_ui.css": "./fe/frontend/main.css"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@babel/runtime": "^7.27.6",
|