-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
108 lines (107 loc) · 3.02 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
const { spacing, fontFamily } = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
const svgToDataUri = require("mini-svg-data-uri");
module.exports = {
darkMode: "class",
content: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", "./config.js", "./data/blog/*.mdx"],
theme: {
extend: {
fontFamily: {
poppins: ["Poppins", ...fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
"h1,h2,h3,h4,h5": {
"scroll-margin-top": spacing[28],
},
a: {
color: theme("colors.gray.600"),
"text-decoration-color": theme("colors.gray.600"),
transition: "0.2s",
"text-decoration-thickness": "1.5px",
"text-underline-offset": "2px",
"&:hover": {
color: theme("colors.black"),
"text-decoration-color": theme("colors.black"),
},
},
},
},
dark: {
css: {
color: theme("colors.slate.300"),
"h1,h2,h3,h4,h5": {
color: theme("colors.gray.100"),
"scroll-margin-top": spacing[28],
},
a: {
color: theme("colors.slate.300"),
"text-decoration-color": theme("colors.gray.500"),
"&:hover": {
color: theme("colors.slate.100"),
"text-decoration-color": theme("colors.slate.100"),
},
},
blockquote: {
borderLeftColor: theme("colors.gray.700"),
color: theme("colors.slate.300"),
},
},
},
}),
backgroundImage: {
"main-dark": "linear-gradient(180deg, rgb(4, 13, 33) 84%, rgb(13, 25, 48) 100%)",
"main-white": "linear-gradient(180deg, rgb(255 255 255) 84%, rgb(233, 243, 255) 100%)",
},
backgroundSize: {
6: "24px",
"6-1/2": "22px",
},
boxShadow: {
hoverDark: "0 2px 30px -4px rgba(0, 134, 245, 1)",
hoverLight: "0 2px 30px -4px rgba(51, 111, 239, 1)",
codeDark: "0 30px 100px -4px rgba(0, 134, 245, 0.1)",
codeLight: "0 30px 100px -4px rgba(51, 111, 239, 0.2)",
fadeSectionLight: "0 -10rem 6rem -2rem rgb(255, 255, 255) inset",
fadeSectionDark: "0 -10rem 6rem -2rem rgb(4, 13, 33) inset",
},
animation: {
cursor: "cursor .75s infinite",
fade: "fade 1s",
},
keyframes: {
cursor: {
"0%, 45%": { opacity: 1 },
"50%, 100%": { opacity: 0 },
},
fade: {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
},
screens: {
smallDesktop: "1013px",
bigPhone: "767px",
},
},
},
variants: {
typography: ["dark"],
},
plugins: [
plugin(function ({ matchUtilities }) {
matchUtilities({
"bg-grid": (value) => ({
backgroundImage: `url("${svgToDataUri(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="${value}"><path d="M0 .5H31.5V32"/></svg>`)}")`,
}),
});
}),
require("tailwindcss-text-fill"),
require("tailwind-gradient-mask-image"),
require("@headlessui/tailwindcss"),
require("@igorkowalczyk/is-browser"),
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
],
};