-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
53 lines (51 loc) · 1.11 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
44
45
46
47
48
49
50
51
52
53
const colors = require('tailwindcss/colors')
// Credit: https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/
const systemFonts = [
'-apple-system',
'system-ui',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
]
const fallbackFonts = ['Helvetica Neue', 'sans-serif']
const sansFallbackFonts = [...systemFonts, ...fallbackFonts]
const { sansFont, monoFont } = {
sansFont: ['IBM Plex Sans', ...sansFallbackFonts],
monoFont: [
'ui-monospace',
'SFMono-Regular',
'Consolas',
'Liberation Mono',
'Menlo',
'monospace',
],
}
module.exports = {
mode: 'jit',
purge: ['./src/**/*.{ts,tsx,js,jsx}', './index.html'],
darkMode: 'class',
theme: {
fontFamily: {
sans: sansFont,
mono: monoFont,
},
extend: {
colors: {
gray: colors.neutral,
primary: '#B1E55A',
},
boxShadow: {
outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',
},
// margin: {
// '96': '24rem',
// '128': '32rem',
// },
},
},
plugins: [
require('@tailwindcss/forms')({
strategy: 'class',
}),
],
}