-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathtailwind.config.js
148 lines (135 loc) · 5.14 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
screens: {
xs: "320px",
},
fontFamily: {
inter: ["inter"],
},
// stretch the grid so that footer is always at the bottom
// even on pages with little content
gridTemplateRows: {
"auto-1fr": "auto 1fr",
},
colors: {
"dexter-green": "#A7D22D",
"dexter-green-OG": "#CAFC40",
"dexter-gradient-green": "#ACF840",
"dexter-gradient-blue": "#05CBE6",
"dexter-red": "#D22D2D",
"dexter-grey-dark": "#141414",
"dexter-grey-light": "#191B1D",
"content-dark": "#212A09",
"slider-grey": "#474d52",
},
fontSize: {
xxs: "0.6rem",
},
keyframes: {
blueLight: {
"0%, 100%": { transform: "translate(-150px, 70px) scale(3.2)" },
"20%": { transform: "translate(-80px, 80px) scale(3.1)" },
"40%": { transform: "translate(-110px, 50px) scale(3.2)" },
"60%": { transform: "translate(-70px, 10px) scale(3.3)" },
"80%": { transform: "translate(-130px, 40px) scale(3.1)" },
},
greenLight: {
"0%, 100%": { transform: "translate(40px, -40px) scale(3.2)" },
"20%": { transform: "translate(-30px, -50px) scale(3.1)" },
"40%": { transform: "translate(30px, -50px) scale(3)" },
"60%": { transform: "translate(-30px, 10px) scale(3.3)" },
"80%": { transform: "translate(30px, 10px) scale(3.2)" },
},
},
animation: {
blueLight: "blueLight 12s ease-in-out infinite",
greenLight: "greenLight 12s ease-in-out infinite",
},
},
},
daisyui: {
themes: [
// browse DeXter colors at https://www.figma.com/file/qushS15h87wjpoXaY6ND4W/DeXter-UI---refresh?node-id=456%3A129&mode=dev
// by clicking on "Show more colors" in dev mode (while the whole page is selected)
{
dark: {
// full list of available color vars at https://daisyui.com/docs/colors/
...require("daisyui/src/theming/themes")["dark"],
// unused colors not listed
// override more colors if needed below
"secondary-content": "#858D92",
accent: "#CBFC42",
// "accent-focus": "#CBFC42", // daisyUI 4 : *-focus colors are removed - https://daisyui.com/blog/how-to-update-daisyui-4/
"accent-content": "#000000",
primary: "#000000",
"primary-content": "#FFFFFF",
neutral: "#383C3E",
error: "#DE4040",
"error-content": "#4D2929",
success: "#2B9548",
"success-content": "#243E17",
"base-100": "#232629",
"base-200": "#191B1D",
"base-300": "#000000",
"base-content": "#FFFFFF",
"dexter-green": "#A7D22D",
"dexter-green-OG": "#CAFC40",
"dexter-red": "#D22D2D",
"dexter-orderbook-green": "#2c3416",
"dexter-orderbook-red": "#341616",
"--rounded-btn": "0",
"--btn-text-case": "none",
"--rounded-box": "0",
},
},
{
light: {
...require("daisyui/src/theming/themes")["light"],
// TODO: configure these colors when working with light theme
"secondary-content": "#858D92",
accent: "#BFED3F",
"accent-content": "#000000",
primary: "#000000",
"primary-content": "#FFFFFF",
neutral: "#383C3E",
error: "#FF5C5C",
"error-content": "#4D2929",
success: "#73D2BD",
"success-content": "#243E17",
"base-100": "#232629",
"base-200": "#191B1D",
"base-300": "#000000",
"base-content": "#FFFFFF",
"--rounded-btn": "0",
"--btn-text-case": "none",
"--rounded-box": "0",
},
},
], // true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"]
darkTheme: "dark", // name of one of the included themes for dark mode
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
rtl: false, // rotate style direction from left-to-right to right-to-left. You also need to add dir="rtl" to your html tag.
prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: true, // Shows info about daisyUI version and used config in the console when building your CSS
},
plugins: [
require("daisyui"),
require("@tailwindcss/typography"),
require("@tailwindcss/container-queries"),
require("tailwind-scrollbar"),
],
};