-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.ts
47 lines (46 loc) · 1.15 KB
/
tailwind.config.ts
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
import defaultTheme from 'tailwindcss/defaultTheme'
import plugin from 'tailwindcss/plugin'
import type { Config } from 'tailwindcss'
export default <Config>{
content: ['./index.html', './src/**/*.vue'],
darkMode: 'class',
safelist: ['no-break'],
theme: {
colors: {
current: 'currentColor',
transparent: 'transparent',
white: '#fff',
light: '#44bbc7',
dark: '#041723',
},
fontSize: {
sm: '1rem',
base: '1.125rem',
// Responsive font sizes
'rfs-base': 'min(calc(0.825rem + 0.375vw), 1.25rem)',
'rfs-lg': 'min(calc(1rem + 0.625vw), 1.5rem)',
'rfs-2xl': 'min(calc(1.8rem + 0.875vw), 2.5rem)',
'rfs-4xl': 'min(calc(3rem + 1.25vw), 4rem)',
'rfs-8xl': 'min(calc(6rem + 2.5vw), 8rem)',
'rfs-18xl': 'min(calc(13.2rem + 6vw), 18rem)',
},
fontWeight: {
normal: 'inherit',
bold: 'inherit',
},
screens: {
xs: '480px',
...defaultTheme.screens,
},
extend: {
spacing: {
18: '4.5rem',
},
},
},
plugins: [
plugin(function ({ addVariant }) {
addVariant('pointer', '@media (pointer: fine)')
}),
],
}