Skip to content

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tailwind.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const defaultTheme = require('tailwindcss/defaultTheme');
22

33
module.exports = {
4+
darkMode: 'media',
45
theme: {
56
extend: {
67
fontFamily: {
@@ -27,6 +28,11 @@ module.exports = {
2728
},
2829
},
2930
},
31+
dark: {
32+
css: {
33+
color: defaultTheme.colors.gray[300],
34+
},
35+
},
3036
},
3137
},
3238
future: {
@@ -39,4 +45,9 @@ module.exports = {
3945
require('@tailwindcss/typography'),
4046
require('@tailwindcss/aspect-ratio'),
4147
],
48+
variants: {
49+
extend: {
50+
typography: ['dark'],
51+
},
52+
},
4253
};

0 commit comments

Comments
 (0)