-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindi.config.js
107 lines (105 loc) · 2.26 KB
/
windi.config.js
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// @ts-check
import colors from "windicss/colors";
import { defineConfig } from "windicss/helpers";
// import fluidTypePlugin from "./framework/windicss/plugins/fluid-types";
import variableColorsPlugin from "./framework/windicss/plugins/variable-colors";
export default defineConfig({
mode: "jit",
extract: {
include: [
"./styles/**/*.css",
"./pages/**/*.{jsx,tsx}",
"./components/**/*.{jsx,tsx}",
],
},
darkMode: false,
theme: {
colors: {
inherit: "inherit",
current: "currentColor",
transparent: "transparent",
black: "#000",
white: "#fff",
primary: {
50: "#e7e7eb",
100: "#d0cfd8",
200: "#b9b7c5",
300: "#a29fb2",
400: "#8b879f",
500: "#746f8c",
600: "#5d5779",
700: "#463f66",
800: "#2f2753",
900: "#181040",
},
secondary: colors.gray,
accent: colors.indigo,
info: colors.sky,
safe: colors.green,
warn: colors.amber,
danger: colors.red,
},
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
},
fluidType: {
settings: {
prefix: "",
fontSizeMin: 1,
screenMin: 23.4375, // 375px (iPhone X)
},
},
variableColors: {
default: "primary-900",
},
fontFamily: {
display: [
"-apple-system",
"BlinkMacSystemFont",
"Helvetica Neue",
"Arial",
"Hiragino Kaku Gothic ProN",
"Hiragino Sans",
"Yu Gothic",
"BIZ UDPGothic",
"Meiryo",
"sans-serif",
],
body: [
"-apple-system",
"BlinkMacSystemFont",
"Helvetica Neue",
"Arial",
"Hiragino Kaku Gothic ProN",
"Hiragino Sans",
"BIZ UDPGothic",
"Meiryo",
"sans-serif",
],
code: [
"SFMono-Regular",
"Consolas",
"Courier New",
"BIZ UDGothic",
"Meiryo",
"monospace",
],
},
extend: {
transitionTimingFunction: {
"out-sharp": "cubic-bezier(0.24, 1, 0.32, 1)",
},
},
},
variants: {
extend: {},
},
corePlugins: {
// fontSize: true,
// container: false,
},
plugins: [variableColorsPlugin],
});