-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
124 lines (124 loc) · 3.18 KB
/
tailwind.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
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
import type { Config } from "tailwindcss";
import { teal } from "tailwindcss/colors";
const plugin = require("tailwindcss/plugin");
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
plugins: [
plugin(function ({ addUtilities }: Config & { addUtilities: Function }) {
const newUtilities = {
".flex-row-center": {
display: "flex",
flexDirection: "row",
alignItems: "center",
},
".flex-col-center": {
display: "flex",
flexDirection: "column",
alignItems: "center",
},
".flex-row-between": {
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
},
".flex-col-between": {
display: "flex",
flexDirection: "column",
justifyContent: "space-between",
alignItems: "center",
},
".flex-row-start": {
display: "flex",
flexDirection: "row",
justifyContent: "flex-start",
alignItems: "center",
},
".flex-col-start": {
display: "flex",
flexDirection: "column",
justifyContent: "flex-start",
alignItems: "center",
},
".flex-row-end": {
display: "flex",
flexDirection: "row",
justifyContent: "flex-end",
alignItems: "center",
},
".flex-col-end": {
display: "flex",
flexDirection: "column",
justifyContent: "flex-end",
alignItems: "center",
},
".flex-row-even": {
display: "flex",
flexDirection: "row",
justifyContent: "space-evenly",
alignItems: "center",
},
".flex-col-even": {
display: "flex",
flexDirection: "column",
justifyContent: "space-evenly",
alignItems: "center",
},
".flex-row-around": {
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
},
".flex-col-around": {
display: "flex",
flexDirection: "column",
justifyContent: "space-around",
alignItems: "center",
},
};
addUtilities(newUtilities);
}),
],
theme: {
extend: {
colors: {
primary: {
50: teal[50],
100: teal[100],
200: teal[200],
300: teal[300],
400: teal[400],
500: teal[500],
600: teal[600],
700: teal[700],
800: teal[800],
900: teal[900],
},
secondary: {
50: "#6B728E",
100: "#50577A",
200: "#474E68",
300: "#404258",
},
tertiary: {
50: "#635985",
100: "#443C68",
200: "#393053",
300: "#18122B",
},
shade: {
50: "#DDE6ED",
100: "#9DB2BF",
200: "#526D82",
300: "#27374D",
},
},
},
},
};
export default config;