-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.ts
49 lines (47 loc) · 1.17 KB
/
tailwind.config.ts
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
import { Config } from 'tailwindcss';
import { fontFamily } from 'tailwindcss/defaultTheme';
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
darkMode: 'media',
theme: {
extend: {
fontFamily: {
sans: ['Inter', ...fontFamily.sans]
},
typography: (theme: (arg0: string) => any) => ({
DEFAULT: {
css: {
'blockquote p:first-of-type::before': false,
'blockquote p:first-of-type::after': false,
'code::before': false,
'code::after': false,
color: theme("colors.black"),
'p,a,h1,h2,h3,h4': {
color: theme("colors.black"),
},
},
},
dark: {
css: {
color: theme("colors.white"),
'p,a,h1,h2,h3,h4': {
color: theme("colors.white"),
},
},
},
})
},
},
variants: {
typography: ['dark']
},
plugins: [
require("tailwindcss-dark-mode"),
require('@tailwindcss/typography')
],
};
export default config;