-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
73 lines (69 loc) · 2.01 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
const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
mode: 'jit',
purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
...defaultTheme.colors,
...colors,
denim: {
'50': '#EAF3FB',
'100': '#DDECF9',
'200': '#CADCF0',
'300': '#AEC4E1',
'400': '#7C94B8',
'500': '#4E608B',
'600': '#324066',
'700': '#232E4C',
'800': '#1B2540',
'900': '#151F36',
'1000': '#0F1729',
'1100': '#0C1221',
'1200': '#080D17',
},
cranberry: {
'300': '#FED7D7',
'500': '#F58686',
'700': '#AD4040',
}
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
mono: ['Inconsolata', ...defaultTheme.fontFamily.mono],
display: ['Shadows Into Light Two', ...defaultTheme.fontFamily.sans]
},
}
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
plugin(({ addComponents }) => addComponents({
// Buttons
'.btn': {
...apply('flex items-center gap-2 px-2 py-1 rounded text-sm disabled:opacity-40'),
'.icon': apply('h-[1em] w-[1em]'),
},
'.btn--lg': apply('px-3 py-2 text-base'),
'.btn--xl': apply('px-4 py-3 text-lg'),
'.btn--raised': apply('shadow hover:shadow-lg focus:shadow-lg transition'),
'.btn--grows': apply('scale-100 hover:scale-110 focus:scale-110 transform origin-center transition'),
'.brand-gradient-to-r': apply('bg-gradient-to-r from-violet-800 to-violet-600'),
'.input-label': apply('text-sm font-semibold tracking-wide'),
})),
plugin(({ addUtilities }) => addUtilities({
'.appearance-textfield': {
appearance: 'textfield',
}
}))
],
}
function apply (classes) {
return {
[`@apply ${classes}`]: {}
}
}