-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.cjs
106 lines (106 loc) · 3.05 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}", "./api/**/*.{js,ts}"],
theme: {
screens: {
xs: '475px',
...defaultTheme.screens,
},
extend: {
colors: {
background: 'hsl(var(--background) / <alpha-value>)',
foreground: 'hsl(var(--foreground) / <alpha-value>)',
},
typography: (theme) => ({
DEFAULT: {
quoteless: {
css: {
'blockquote p:first-of-type::before': { content: 'none' },
'blockquote p:first-of-type::after': { content: 'none' },
},
},
css: {
maxWidth: '750px !important',
fontSize: "1.1rem",
color: theme("colors.gray.800"),
a: {
color: theme("colors.blue.700 !important"),
"&:hover": {
color: theme("colors.blue.800"),
},
},
strong: {
color: theme("colors.gray.900"),
},
"ol > li::before": {
color: theme("colors.gray.500"),
},
"ul > li::before": {
backgroundColor: theme("colors.gray.400"),
},
hr: {
borderColor: theme("colors.gray.200"),
},
blockquote: {
color: theme("colors.gray.900"),
borderLeftColor: theme("colors.gray.200"),
},
h1: {
color: theme("colors.gray.900"),
},
h2: {
color: theme("colors.gray.900"),
},
h3: {
color: theme("colors.gray.900"),
},
h4: {
color: theme("colors.gray.900"),
},
"figure figcaption": {
color: theme("colors.gray.500"),
},
code: {
color: theme("colors.gray.900"),
},
"a code": {
color: theme("colors.blue.500"),
},
pre: {
color: theme("colors.gray.200"),
backgroundColor: theme("colors.gray.800"),
},
thead: {
color: theme("colors.gray.900"),
borderBottomColor: theme("colors.gray.400"),
},
"tbody tr": {
borderBottomColor: theme("colors.gray.200"),
},
},
},
}),
fontFamily: {
sans: ["Inter Variable", "Inter", ...defaultTheme.fontFamily.sans],
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
},
animation: {
marquee: "marquee 50s linear infinite",
},
keyframes: {
marquee: {
from: {
transform: "translateX(0)",
},
to: {
transform: "translateX(calc(-100% - 2.5rem))",
},
},
},
},
},
plugins: [require("@tailwindcss/typography")],
};