-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
70 lines (68 loc) · 2.03 KB
/
tailwind.config.js
File metadata and controls
70 lines (68 loc) · 2.03 KB
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
fontFamily: {
// used for subtitle
CaveatSemi: "CaveatSemi",
// Globally use
HubotSansReguler: "HubotSansReguler",
HubotSansItalic: "HubotSansItalic",
HubotSansLight: "HubotSansLight",
HubotSansBlack: "HubotSansBlack",
},
},
},
plugins: [
require("@tailwindcss/typography"),
function ({ addUtilities }) {
const newUtilities = {
".App": {
"min-height": "100vh",
display: "flex",
"flex-direction": "column",
},
".stroke-text-light": {
"-webkit-text-strokeWidth": "2px",
"-webkit-text-stroke-color": "#000",
},
".stroke-text-dark": {
"-webkit-text-strokeWidth": "2px",
"-webkit-text-stroke-color": "#fff",
},
".stroke-text-light-gradient": {
"-webkit-text-strokeWidth": "2px",
"-webkit-text-stroke-color": "transparent",
background: "-webkit-linear-gradient(45deg, #08AEEA, #2AF598)",
"-webkit-background-clip": "text",
"-webkit-text-fill-color": "transparent",
},
".stroke-text-dark-gradient": {
"-webkit-text-strokeWidth": "2px",
"-webkit-text-stroke-color": "transparent",
background: "-webkit-linear-gradient(45deg, #08AEEA, #2AF598)",
"-webkit-background-clip": "text",
"-webkit-text-fill-color": "transparent",
},
".dark-outline-gradient-text": {
"-webkit-text-stroke-color": "transparent",
"-webkit-text-strokeWidth": "calc(1em / 16)",
"-webkit-background-clip": "text",
},
};
addUtilities(newUtilities, ["responsive", "hover", "dark"]);
},
],
};