Skip to content

Commit 1d51a4d

Browse files
authored
Merge pull request #28 from chingu-x/dev
fix tailwind theme config
2 parents fe5898d + 827ac6b commit 1d51a4d

File tree

7 files changed

+54
-6
lines changed

7 files changed

+54
-6
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto
2+
*.js eol=lf
3+
*.ts eol=lf
4+
*.tsx eol=lf
5+
*.jsx eol=lf

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"endOfLine": "lf",
3+
"trailingComma": "all"
4+
}

chingu-theme.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
export default {
2+
theme: {
3+
extend: {
4+
colors: {
5+
primary: "rgb(var(--primary) / <alpha-value>)",
6+
"primary-focus": "rgb(var(--primary-focus) / <alpha-value>)",
7+
"primary-content": "rgb(var(--primary-content) / <alpha-value>)",
8+
secondary: "rgb(var(--secondary) / <alpha-value>)",
9+
"secondary-focus": "rgb(var(--secondary-focus) / <alpha-value>)",
10+
"secondary-content": "rgb(var(--secondary-content) / <alpha-value>)",
11+
accent: "rgb(var(--accent) / <alpha-value>)",
12+
"accent-focus": "rgb(var(--accent-focus) / <alpha-value>)",
13+
"accent-content": "rgb(var(--accent-content) / <alpha-value>)",
14+
neutral: "rgb(var(--neutral) / <alpha-value>)",
15+
"neutral-focus": "rgb(var(--neutral-focus) / <alpha-value>)",
16+
"neutral-content": "rgb(var(--neutral-content) / <alpha-value>)",
17+
info: "rgb(var(--info) / <alpha-value>)",
18+
"info-content": "rgb(var(--info-content) / <alpha-value>)",
19+
success: "rgb(var(--success) / <alpha-value>)",
20+
"success-content": "rgb(var(--success-content) / <alpha-value>)",
21+
warning: "rgb(var(--warning) / <alpha-value>)",
22+
"warning-content": "rgb(var(--warning-content) / <alpha-value>)",
23+
error: "rgb(var(--error) / <alpha-value>)",
24+
"error-content": "rgb(var(--error-content) / <alpha-value>)",
25+
"base-100": "rgb(var(--base-100) / <alpha-value>)",
26+
"base-200": "rgb(var(--base-200) / <alpha-value>)",
27+
"base-300": "rgb(var(--base-300) / <alpha-value>)",
28+
"base-content": "rgb(var(--base-content) / <alpha-value>)",
29+
overlay: "var(--overlay)",
30+
},
31+
boxShadow: {
32+
sm: "0 2px 4px 0 rgb(var(--neutral-focus) / 0.05)",
33+
DEFAULT: "0 4px 8px 0 rgb(var(--neutral-focus) / 0.05)",
34+
md: "0 4px 8px 0 rgb(var(--neutral-focus) / 0.08)",
35+
lg: "0 8px 12px 0 rgb(var(--neutral-focus) / 0.08)",
36+
xl: "0 8px 12px 0 rgb(var(--neutral-focus) / 0.1)",
37+
"2xl": "0 10px 16px 0 rgb(var(--neutral-focus) / 0.12)",
38+
},
39+
},
40+
},
41+
};

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export default [
7474
"vite.config.ts",
7575
"vitest.config.ts",
7676
"generate-exports.js",
77+
"chingu-theme.js",
7778
],
7879
},
7980
];

generate-exports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const exportsObject = {
1616
import: "./dist/style.css",
1717
types: "./dist/global.d.ts",
1818
},
19-
"./tailwind-config": "./tailwind.config.js",
19+
"./chingu-theme": "./chingu-theme.js",
2020
};
2121

2222
components.forEach((component) => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"import": "./dist/style.css",
102102
"types": "./dist/global.d.ts"
103103
},
104-
"./tailwind-config": "./tailwind.config.js",
104+
"./chingu-theme": "./chingu-theme.js",
105105
"./alert": {
106106
"import": "./dist/alert/index.js",
107107
"types": "./dist/types/alert/index.d.ts"
@@ -179,4 +179,4 @@
179179
"types": "./dist/types/types/index.d.ts"
180180
}
181181
}
182-
}
182+
}

tailwind.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ export default {
44
content: ["./src/**/*.{js,ts,jsx,tsx}"],
55
theme: {
66
extend: {
7-
screens: {
8-
"3xl": "1920px",
9-
},
107
colors: {
118
primary: "rgb(var(--primary) / <alpha-value>)",
129
"primary-focus": "rgb(var(--primary-focus) / <alpha-value>)",

0 commit comments

Comments
 (0)