forked from redis-stack/redis-stack-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
109 lines (108 loc) · 2.8 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
104
105
106
107
108
109
const { red } = require('tailwindcss/colors');
const defaultTheme = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ["content/**/*.md", "layouts/**/*.html", "./tailwindcss.whitelist.txt"],
theme: {
extend: {
fontFamily: {
sans: [ 'Inter', ...defaultTheme.fontFamily.sans ],
mono: [ 'Fira Code', 'SF Mono', ...defaultTheme.fontFamily.mono ],
display: [ 'Inter Display', ...defaultTheme.fontFamily.sans ],
},
colors: {
midnight: {
700: '#161F31',
},
'redis-indigo': {
500: '#5961ff',
600: '#454CD5'
},
'redis-neutral': {
800: '#4E545B'
}
},
typography: (theme) => ( {
DEFAULT: {
css: {
color: theme('colors.slate.600'),
a: {
transition: '.2s all',
color: theme('colors.redis-indigo.500'),
textDecorationColor: theme('colors.indigo.300'),
textDecoration: 'none',
'&:hover': {
color: theme('colors.redis-indigo.600'),
},
},
code: {
fontWeight: '500',
},
pre: {
padding: '1.25rem',
},
},
},
lg: {
css: {
lineHeight: '1.6',
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
plugin(function({ addComponents, theme }) {
const buttons = {
'.button-xs, .button-sm, .button, .button-lg, .button-xl, .button-2xl': {
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
fontWeight: '600',
letterSpacing: theme('letterSpacing.normal'),
borderRadius: theme('borderRadius.sm'),
whiteSpace: 'nowrap',
transition: '.2s all',
},
'.button-xs': {
fontSize: theme('fontSize.sm'),
paddingLeft: theme('spacing.1'),
paddingRight: theme('spacing.1'),
height: '30px'
},
'.button-sm': {
fontSize: theme('fontSize.sm'),
paddingLeft: theme('spacing.3'),
paddingRight: theme('spacing.3'),
height: '34px'
},
'.button': {
fontSize: theme('fontSize.sm'),
paddingLeft: theme('spacing.3'),
paddingRight: theme('spacing.3'),
height: '38px'
},
'.button-lg': {
fontSize: theme('fontSize.sm'),
paddingLeft: theme('spacing.4'),
paddingRight: theme('spacing.4'),
height: '42px'
},
'.button-xl': {
fontSize: theme('fontSize.base'),
paddingLeft: theme('spacing.5'),
paddingRight: theme('spacing.5'),
height: '48px'
},
'.button-2xl': {
fontSize: theme('fontSize.lg'),
paddingLeft: theme('spacing.6'),
paddingRight: theme('spacing.6'),
height: '60px'
}
};
addComponents([ buttons ]);
})
],
};