This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
103 lines (102 loc) · 2.67 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
const colors = require('tailwindcss/colors')
const defaultTheme = require('tailwindcss/defaultTheme')
const plugin = require('tailwindcss/plugin')
module.exports = {
content: [
'./resources/views/**/*.edge',
'./resources/js/**/*.js',
'./resources/css/**/*.css',
'./resources/js/**/*.vue'
],
darkMode: 'media', // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
sans: ['Clear Sans', ...defaultTheme.fontFamily.sans],
digi: ['E1234']
},
gridTemplateColumns: {
// Simple 16 column grid
16: 'repeat(16, minmax(0, 1fr))',
24: 'repeat(24, minmax(0, 1fr))'
},
gridColumn: {
'span-14': 'span 14 / span 14',
'span-15': 'span 15 / span 15',
'span-16': 'span 16 / span 16',
'span-17': 'span 17 / span 17',
'span-18': 'span 18 / span 18',
'span-19': 'span 19 / span 19',
'span-20': 'span 20 / span 20',
'span-21': 'span 21 / span 21',
'span-22': 'span 22 / span 22',
'span-23': 'span 23 / span 23',
'span-24': 'span 24 / span 24',
'span-25': 'span 25 / span 25',
'span-26': 'span 26 / span 26'
},
gridColumnStart: {
13: '13',
14: '14',
15: '15',
16: '16',
17: '17',
18: '18',
19: '19',
20: '20',
21: '21',
22: '22',
23: '23',
24: '24'
},
fontWeight: {
hairline: 100,
'extra-light': 100,
thin: 200,
light: 300,
normal: 400,
medium: 500,
semibold: 700,
bold: 700,
extrabold: 800,
'extra-bold': 800,
black: 900
},
fontSize: {
xxs: ['0.67rem', '0.6rem'],
xs: ['0.74rem', '0.9rem'],
sm: ['0.8rem', '1.0rem'],
base: ['0.90rem', '1.10rem'],
lg: ['1.0rem', '1.20rem'],
xl: ['24px', '32px']
},
fill: (theme) => theme('colors')
},
strokeWidth: {
1.5: '1.2'
}
},
variants: {
extend: {
opacity: ['disabled'],
fill: ['focus', 'group-hover']
}
},
plugins: [
require('@tailwindcss/forms'),
plugin(function ({ addVariant, e }) {
addVariant('not-first', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`not-first${separator}${className}`)}:not(:first-child)`
})
})
}),
plugin(function ({ addVariant, e }) {
addVariant('not-last', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`not-last${separator}${className}`)}:not(:last-child)`
})
})
})
]
}