-
Notifications
You must be signed in to change notification settings - Fork 1
/
windi.config.ts
45 lines (45 loc) · 1.49 KB
/
windi.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { defineConfig } from "windicss/helpers";
export default defineConfig({
preflight: false,
extract: {
include: ["src/**/*.{html,vue,jsx,tsx,svelte}"],
},
darkMode: "class",
shortcuts: {
"color-transition": "transition-colors duration-200 ease-in-out delay-0",
"btn-icon":
"dark:bg-[rgb(41,49,79)] dark:text-[rgb(124,77,255)] w-[34px] text-[16px] h-[34px] flex items-center justify-center bg-[rgb(237,231,246)] text-[rgb(94,53,177)] rounded-[8px] color-transition select-none cursor-pointer hover:(bg-[rgb(94,53,177)] text-[rgb(237,231,246)])",
"bg-primary":
"dark:bg-bgPrimaryColor-dark light:bg-bgPrimaryColor-light bg-bgPrimaryColor-light",
"bg-container":
"dark:bg-bgContainerColor-dark light:bg-bgContainerColor-light bg-bgContainerColor-light",
"text-primary":
"dark:text-textPrimaryColor-dark light:text-textPrimaryColor-light text-textPrimaryColor-light",
disabled:
"cursor-not-allowed text-[rgba(255,255,255,0.25)] pointer-events-none",
},
theme: {
extend: {
colors: {
bgPrimaryColor: {
dark: "rgb(17, 25, 54)",
light: "#ffffff",
},
bgContainerColor: {
dark: "rgb(26, 34, 63)",
light: "rgb(238, 242, 246)",
},
textPrimaryColor: {
dark: "#ffffff",
light: "#121926",
},
},
screens: {
mobile: "300px",
tablet: "640px",
laptop: "1024px",
desktop: "1280px",
},
},
},
});