-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
91 lines (76 loc) · 1.94 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
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
import { plugin, type Config } from 'shared/config/tailwindcss'
const config: Config = {
content: ['./src/**/*.{astro,html}'],
safelist: [
'h-main',
'text-guru', 'bg-guru', 'border-guru',
'text-advanced', 'bg-advanced', 'border-advanced',
'text-intermediate', 'bg-intermediate', 'border-intermediate',
'text-junior', 'bg-junior', 'border-junior',
'text-newbie', 'bg-newbie', 'border-newbie',
'text-html', 'text-css', 'text-js', 'text-api', 'text-svelte'
],
theme: {
screens: {
sm: '576px',
md: '768px',
lg: '1024px',
xl: '1280px'
},
fontFamily: {
barlow: ['Barlow', 'sans-serif']
},
colors: {
guru: '#ED2C49',
advanced: '#F48925',
intermediate: '#F1B604',
junior: '#AAD742',
newbie: '#6ABECD',
html: '#6ABECD',
css: '#3E54A3',
js: '#CF6390',
api: '#AAD742',
svelte: '#FF3E00',
gray: {
100: '#FAFAFA',
200: '#F0F4F4',
300: '#DBE5E6'
},
black: '#1C2022',
white: '#FFFFFF',
transparent: 'transparent'
},
extend: {}
},
plugins: [
plugin(function ({ addComponents }) {
addComponents({
'.h-main': {
height: 'calc(100vh - 240px)',
'@media screen and (min-width: 768px)': {
height: 'calc(100vh - 206px)'
},
'@media screen and (min-width: 1024px)': {
height: 'calc(100vh - 222px)'
}
},
'@media (pointer: fine)': {
'.transition-colorize': {
filter: 'grayscale(100%)',
transition: 'filter 300ms ease-in-out',
'&:hover': {
filter: 'grayscale(0)'
}
},
'.transition-zooming': {
transition: 'transform 300ms ease-in-out',
'&:hover': {
transform: 'scale(1.05)'
}
}
}
})
})
]
}
export default config