forked from tnarla/nextjs-conf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
37 lines (33 loc) · 1.16 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
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
const brandColor = colors.blue;
module.exports = {
// Add support for dark mode, toggled via a class:
// https://tailwindcss.com/docs/dark-mode
darkMode: 'class',
// Inform Tailwind of where our classes will be defined:
// https://tailwindcss.com/docs/optimizing-for-production
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
// NOTE: We modify the gray color, as the default Tailwind gray color is heavily saturated
// with blue, which makes it look strange in dark mode. This gray color is more balanced,
// and works better for sites supporting dark mode.
gray: colors.gray,
// Add a new "brand" color to all Tailwind utilities, so that we can easily change it.
brand: brandColor,
},
// Modify the default ring color so that it matches the brand color:
ringColor: {
DEFAULT: brandColor['500'],
},
},
},
// Add some basic Tailwind plugins to add additional features:
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/forms'),
],
};