-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
tailwind.config.js
96 lines (95 loc) · 2.22 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
import tailwindHeadlessui from "@headlessui/tailwindcss";
import tailwindAspectRatio from "@tailwindcss/aspect-ratio";
import tailwindTypography from "@tailwindcss/typography";
import tailwindGradientMaskImage from "tailwind-gradient-mask-image";
import colors from "tailwindcss/colors";
import { spacing } from "tailwindcss/defaultTheme";
import tailwindTextFill from "tailwindcss-text-fill";
/** @type {import('tailwindcss').Config} */
export default {
darkMode: "class",
content: [
// Prettier
"./app/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./config.{js,ts,jsx,tsx}",
"./content/**/*.mdx",
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
fontWeight: {
semibold: 700,
},
fontFamily: {
mono: ["var(--font-geist-mono)"],
},
typography: {
DEFAULT: {
css: {
"h1,h2,h3,h4,h5": {
"scroll-margin-top": spacing[28],
},
a: {
color: colors.neutral[500],
"text-decoration-color": colors.neutral[600],
transition: "0.2s",
"text-decoration-thickness": "1.5px",
"text-underline-offset": "2px",
"&:hover": {
color: colors.black,
"text-decoration-color": colors.black,
},
},
},
},
dark: {
css: {
color: colors.neutral[300],
"h1,h2,h3,h4,h5": {
color: colors.neutral[100],
"scroll-margin-top": spacing[28],
},
a: {
color: colors.neutral[100],
"text-decoration-color": colors.neutral[500],
"&:hover": {
color: colors.neutral[100],
"text-decoration-color": colors.neutral[100],
},
},
blockquote: {
borderLeftColor: colors.neutral[700],
color: colors.neutral[300],
},
},
},
},
keyframes: {
cursor: {
"0%, 45%": { opacity: 1 },
"50%, 100%": { opacity: 0 },
},
fade: {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
shimmer: {
"100%": {
transform: "translateX(100%)",
},
},
},
},
},
variants: {
typography: ["dark"],
},
plugins: [tailwindTextFill, tailwindGradientMaskImage, tailwindHeadlessui, tailwindTypography, tailwindAspectRatio],
};