Skip to content

Commit af7a2e8

Browse files
committed
styles(tailwind): enhance heroui plugin configuration with layout and theme settings
1 parent ff9a65f commit af7a2e8

File tree

2 files changed

+58
-3
lines changed

2 files changed

+58
-3
lines changed

.github/workflows/code_atlas_flow.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
3131
- name: Install frontend dependencies
3232
run: |
33-
cd frontend
3433
pnpm install
3534
3635
- name: Run frontend lint
3736
run: |
38-
cd frontend
3937
pnpm run lint
4038
4139
# - name: Run frontend build

tailwind.config.ts

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,63 @@ export default {
1616
},
1717
},
1818
},
19-
plugins: [heroui()],
19+
plugins: [
20+
heroui({
21+
layout: {
22+
dividerWeight: "1px",
23+
disabledOpacity: 0.5,
24+
fontSize: {
25+
tiny: "0.75rem",
26+
small: "0.875rem",
27+
medium: "1rem",
28+
large: "1.125rem",
29+
},
30+
lineHeight: {
31+
tiny: "1rem",
32+
small: "1.25rem",
33+
medium: "1.5rem",
34+
large: "1.75rem",
35+
},
36+
radius: {
37+
small: "8px",
38+
medium: "12px",
39+
large: "14px",
40+
},
41+
borderWidth: {
42+
small: "1px",
43+
medium: "2px",
44+
large: "3px",
45+
},
46+
},
47+
themes: {
48+
light: {
49+
layout: {
50+
hoverOpacity: 0.8,
51+
boxShadow: {
52+
small:
53+
"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
54+
medium:
55+
"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
56+
large:
57+
"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
58+
},
59+
},
60+
},
61+
dark: {
62+
layout: {
63+
hoverOpacity: 0.9,
64+
boxShadow: {
65+
small:
66+
"0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
67+
medium:
68+
"0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
69+
large:
70+
"0px 0px 30px 0px rgb(0 0 0 / 0.07), 0px 30px 60px 0px rgb(0 0 0 / 0.26), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
71+
},
72+
},
73+
},
74+
},
75+
}),
76+
],
2077
darkMode: "class",
2178
} satisfies Config;

0 commit comments

Comments
 (0)