-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
153 lines (150 loc) · 5.95 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/** @type {import('tailwindcss').Config} */
import defaultTheme from "tailwindcss/defaultTheme";
import colors from "tailwindcss/colors";
import forms from "@tailwindcss/forms";
import variables from "@mertasan/tailwindcss-variables";
import typography from "@tailwindcss/typography";
// Add your custom theme colors here
export const themeColors = {
primary: colors.blue,
secondary: colors.gray,
success: colors.green,
warning: colors.amber,
danger: colors.red,
info: colors.cyan,
dark: colors.slate,
};
export default {
darkMode: "class",
content: [
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
],
theme: {
fontFamily: {
sans: ["Poppins", ...defaultTheme.fontFamily.sans],
},
container: {
center: true,
screens: {
sm: "100%",
md: "100%",
lg: "100%",
xl: "100%",
"2xl": "1536px",
},
},
extend: {
transitionProperty: {
width: "width",
height: "height",
margin: "margin",
},
keyframes: {
"fade-in-up": {
"0%": {
opacity: "0",
transform: "translateY(10px)",
},
"100%": {
opacity: "1",
transform: "translateY(0)",
},
},
"face-in-down": {
"0%": {
opacity: "0",
transform: "translateY(-10px)",
},
"100%": {
opacity: "1",
transform: "translateY(0)",
},
},
"fade-in": {
"0%": {
opacity: "0",
},
"100%": {
opacity: "1",
},
},
"fade-out": {
"0%": {
opacity: "1",
},
"100%": {
opacity: "0",
},
},
},
animation: {
"fade-in-up": "fade-in-up 250ms ease-in-out",
"fade-in-down": "fade-in-down 250ms ease-in-out",
"fade-in": "fade-in 250ms ease-in-out",
"fade-out": "fade-out 250ms ease-in-out",
},
colors: themeColors,
variables: {
DEFAULT: {
...themeColors,
},
},
borderRadius: {
primary: "0.4rem",
},
typography: (theme) => ({
DEFAULT: {
css: {
"--tw-prose-body": theme("colors.slate.700"),
"--tw-prose-headings": theme("colors.slate.700"),
"--tw-prose-lead": theme("colors.slate.600"),
"--tw-prose-links": theme("colors.primary.500"),
"--tw-prose-bold": theme("colors.slate.700"),
"--tw-prose-counters": theme("colors.slate.600"),
"--tw-prose-bullets": theme("colors.slate.700"),
"--tw-prose-hr": theme("colors.slate.200"),
"--tw-prose-quotes": theme("colors.slate.600"),
"--tw-prose-quote-borders": theme("colors.slate.200"),
"--tw-prose-captions": theme("colors.slate.600"),
"--tw-prose-code": theme("colors.slate.700"),
"--tw-prose-pre-code": theme("colors.slate.200"),
"--tw-prose-pre-bg": theme("colors.slate.900"),
"--tw-prose-th-borders": theme("colors.slate.200"),
"--tw-prose-td-borders": theme("colors.slate.200"),
"--tw-prose-invert-body": theme("colors.slate.200"),
"--tw-prose-invert-headings": theme("colors.slate.200"),
"--tw-prose-invert-lead": theme("colors.slate.300"),
"--tw-prose-invert-links": theme("colors.primary.500"),
"--tw-prose-invert-bold": theme("colors.slate.200"),
"--tw-prose-invert-counters": theme("colors.slate.300"),
"--tw-prose-invert-bullets": theme("colors.slate.200"),
"--tw-prose-invert-hr": theme("colors.slate.600"),
"--tw-prose-invert-quotes": theme("colors.slate.300"),
"--tw-prose-invert-quote-borders":
theme("colors.slate.600"),
"--tw-prose-invert-captions": theme("colors.slate.300"),
"--tw-prose-invert-code": theme("colors.slate.200"),
"--tw-prose-invert-pre-code": theme("colors.slate.200"),
"--tw-prose-invert-pre-bg": theme("colors.slate.900"),
"--tw-prose-invert-th-borders":
theme("colors.slate.600"),
"--tw-prose-invert-td-borders":
theme("colors.slate.600"),
a: {
color: theme("colors.primary.500"),
"&:hover": {
color: theme("colors.primary.600"),
},
},
table: {
overflowX: "auto",
},
},
},
}),
},
},
plugins: [forms, variables, typography],
};