forked from auralous/auralous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
130 lines (129 loc) · 2.8 KB
/
tailwind.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
important: true,
purge: ["./src/**/*.tsx"],
theme: {
colors: {
background: {
default: "#000c1e",
secondary: "rgba(255,255,255,.1)",
tertiary: "rgba(255,255,255,.2)",
},
foreground: {
default: "#fff",
secondary: "rgba(255,255,255,.6)",
tertiary: "rgba(255,255,255,.4)",
},
danger: {
default: "#e00",
light: "#ff1a1a",
dark: "#c00",
label: "#fff",
},
success: {
default: "#0070f3",
light: "#3291ff",
dark: "#0366d6",
label: "#fff",
},
warning: {
default: "#f5a623",
light: "#f7b955",
dark: "#f49b0b",
label: "#000",
},
pink: "#d74d49",
black: "#000",
white: "#fff",
transparent: "transparent",
blue: {
default: "#090e1f",
secondary: "#001431",
tertiary: "#303a60",
},
},
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
},
extend: {
variants: {
opacity: ["responsive", "hover"],
},
spacing: {
full: "100%",
72: "18rem",
96: "24rem",
"1/7": "14.2857%",
"1/8": "12.5%",
"9/16": "56.25%",
"4/3": "133.33%",
},
width: {
72: "18rem",
96: "24rem",
128: "32rem",
},
height: {
72: "18rem",
96: "24rem",
128: "32rem",
},
minWidth: defaultTheme.width,
maxWidth: defaultTheme.width,
minHeight: defaultTheme.height,
maxHeight: defaultTheme.height,
inset: defaultTheme.width,
opacity: {
10: "0.1",
},
animation: {
"spin-slow": "spin 9s linear infinite",
},
fontFamily: {
sans: [
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
"sans-serif",
],
},
},
},
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
experimental: {
applyComplexClasses: true,
},
plugins: [
function ({ addComponents }) {
addComponents({
".container": {
maxWidth: "calc(100vw - 1.4rem)",
margin: "0 auto",
"@screen sm": {
maxWidth: "calc(100vw - 1.4rem)",
},
"@screen md": {
maxWidth: "calc(100vw - 2.8rem)",
},
"@screen lg": {
maxWidth: "calc(100vw - 5.6rem)",
},
},
});
},
],
};