create-comate-pagebuilder 1.0.6 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-comate-pagebuilder",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Create a modern, minimalist React + Vite + Tailwind CSS project",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "PageBuilder-react-template",
3
- "version": "1.0.6",
2
+ "name": "pagebuilder-react-template",
3
+ "version": "1.0.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
- "name": "PageBuilder-react-template",
9
- "version": "1.0.6",
8
+ "name": "pagebuilder-react-template",
9
+ "version": "1.0.8",
10
10
  "dependencies": {
11
11
  "clsx": "^2.1.0",
12
12
  "framer-motion": "^12.23.24",
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "PageBuilder-react-template",
3
- "version": "1.0.6",
2
+ "name": "pagebuilder-react-template",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -2,14 +2,26 @@
2
2
  @tailwind components;
3
3
  @tailwind utilities;
4
4
 
5
- /* PageBuilder 全局样式基础 */
5
+ /*
6
+ * TODO: 本文件使用了自定义颜色,需要在 tailwind.config.js 中定义:
7
+ * - primary (主要按钮背景)
8
+ * - secondary (次要按钮背景)
9
+ * - foreground (主要文本)
10
+ * - muted-foreground (次要文本)
11
+ * - border (边框)
12
+ * - muted (浅色背景)
13
+ */
14
+
15
+ /* pagebuilder 全局样式基础 */
6
16
  @layer base {
7
17
  * {
8
- @apply border-neutral-200;
18
+ /* 需要定义 border */
19
+ @apply border-border;
9
20
  }
10
21
 
11
22
  body {
12
- @apply bg-white text-neutral-900 antialiased;
23
+ /* 需要定义 foreground */
24
+ @apply bg-white text-foreground antialiased;
13
25
  }
14
26
 
15
27
  h1, h2, h3, h4, h5, h6 {
@@ -20,14 +32,16 @@
20
32
  @layer components {
21
33
  /* 标准按钮样式 */
22
34
  .btn-primary {
23
- @apply px-6 py-3 bg-primary-600 text-white rounded-lg font-medium
24
- hover:bg-primary-700 active:scale-95 transition-all duration-200
35
+ /* 需要定义 primary */
36
+ @apply px-6 py-3 bg-primary text-white rounded-lg font-medium
37
+ hover:brightness-90 active:scale-95 transition-all duration-200
25
38
  shadow-sm hover:shadow-md;
26
39
  }
27
40
 
28
41
  .btn-secondary {
29
- @apply px-6 py-3 bg-neutral-100 text-neutral-900 rounded-lg font-medium
30
- hover:bg-neutral-200 active:scale-95 transition-all duration-200;
42
+ /* 需要定义 secondary, foreground */
43
+ @apply px-6 py-3 bg-secondary text-foreground rounded-lg font-medium
44
+ hover:brightness-95 active:scale-95 transition-all duration-200;
31
45
  }
32
46
  }
33
47
 
@@ -1,5 +1,9 @@
1
1
  import { Link } from 'react-router'
2
2
 
3
+ /**
4
+ * TODO: 本组件使用了自定义颜色 muted-foreground
5
+ * 需要在 tailwind.config.js 中定义
6
+ */
3
7
  export default function Home() {
4
8
  return (
5
9
  <main className="min-h-screen flex items-center justify-center px-6 py-20">
@@ -7,7 +11,8 @@ export default function Home() {
7
11
  <h1 className="text-6xl font-bold mb-6">
8
12
  Welcome
9
13
  </h1>
10
- <p className="text-xl text-neutral-600">
14
+ {/* 需要定义 muted-foreground */}
15
+ <p className="text-xl text-muted-foreground">
11
16
  Start building your application here
12
17
  </p>
13
18
  </div>
@@ -7,43 +7,24 @@ export default {
7
7
  theme: {
8
8
  extend: {
9
9
  colors: {
10
- // PageBuilder 标准配色系统,请务必按需进行调整修改
11
- primary: {
12
- 50: '#f0f9ff',
13
- 100: '#e0f2fe',
14
- 200: '#bae6fd',
15
- 300: '#7dd3fc',
16
- 400: '#38bdf8',
17
- 500: '#0ea5e9',
18
- 600: '#0284c7',
19
- 700: '#0369a1',
20
- 800: '#075985',
21
- 900: '#0c4a6e',
22
- },
23
- accent: {
24
- 50: '#f0fdf4',
25
- 100: '#dcfce7',
26
- 200: '#bbf7d0',
27
- 300: '#86efac',
28
- 400: '#4ade80',
29
- 500: '#22c55e',
30
- 600: '#16a34a',
31
- 700: '#15803d',
32
- 800: '#166534',
33
- 900: '#14532d',
34
- },
35
- neutral: {
36
- 50: '#fafafa',
37
- 100: '#f5f5f5',
38
- 200: '#e5e5e5',
39
- 300: '#d4d4d4',
40
- 400: '#a3a3a3',
41
- 500: '#737373',
42
- 600: '#525252',
43
- 700: '#404040',
44
- 800: '#262626',
45
- 900: '#171717',
46
- }
10
+ // TODO: 请根据项目需求定义配色方案(只需填写单个颜色值即可)
11
+
12
+ // 使用场景说明:
13
+ // - primary: 主色,用于主要按钮背景 (bg-primary)
14
+ // - secondary: 次要色,用于次要按钮背景 (bg-secondary)
15
+ // - accent: 强调色,用于高亮、提示等(可选)
16
+ // - foreground: 深色,用于主要文本 (text-foreground)
17
+ // - muted-foreground: 中等色,用于次要文本 (text-muted-foreground)
18
+ // - border: 用于边框 (border-border)
19
+ // - muted: 浅色,用于背景 (bg-muted)
20
+
21
+ // primary: '',
22
+ // secondary: '',
23
+ // accent: '',
24
+ // foreground: '',
25
+ // 'muted-foreground': '',
26
+ // border: '',
27
+ // muted: '',
47
28
  },
48
29
  fontFamily: {
49
30
  sans: ['Inter', 'system-ui', 'sans-serif'],