-
-
Notifications
You must be signed in to change notification settings - Fork 142
/
tailwind.config.js
43 lines (41 loc) · 1.15 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
// @see: https://tailwindcss.com/docs/configuration/
// @see: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
// eslint-disable-next-line @typescript-eslint/no-var-requires
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
// Reminder! Tailwind can't recognise conditional classes when using purge.
purge: ['./src/**/*.{js,jsx,ts,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
sans: [
'Roboto',
...defaultTheme.fontFamily.sans,
],
},
// Tailwinds typography customization
// @see: https://github.com/tailwindlabs/tailwindcss-typography#customization
typography: (theme) => ({
DEFAULT: {
css: {
// color: '#0FF',
a: {
color: theme('colors.black'),
'&:hover': {
color: theme('colors.red.500'),
},
},
},
},
}),
},
},
variants: {
extend: {},
},
plugins: [
// eslint-disable-next-line global-require
require('@tailwindcss/typography'),
],
};