-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.cjs
80 lines (79 loc) · 2.05 KB
/
tailwind.config.cjs
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
const plugin = require('tailwindcss/plugin')
const colors = require('tailwindcss/colors')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
minWidth: (theme) => theme('spacing'),
minHeight: (theme) => theme('spacing'),
colors: {
gray: colors.neutral,
radicalRed: {
50: '#ffe6eb',
100: '#ffccd8',
200: '#ffccd8',
300: '#ff6b92',
400: '#fc4678',
500: '#f52763',
600: '#ce214f',
700: '#a61d3e',
800: '#7f1a30',
900: '#581522',
},
royalBlue: {
50: '#e8efff',
100: '#d8e3ff',
200: '#b9c5ff',
300: '#939eff',
400: '#747cf8',
500: '#5d5fef',
600: '#3d47c5',
700: '#26379c',
800: '#162972',
900: '#0b1c48',
},
},
textShadow: {
default: '0px 0px 1px rgb(0 0 0 / 20%), 0px 0px 1px rgb(1 0 5 / 10%)',
sm: '1px 1px 3px rgb(36 37 47 / 25%)',
md: '0px 1px 2px rgb(30 29 39 / 19%), 1px 2px 4px rgb(54 64 147 / 18%)',
lg: '3px 3px 6px rgb(0 0 0 / 26%), 0 0 5px rgb(15 3 86 / 22%)',
xl: '1px 1px 3px rgb(0 0 0 / 29%), 2px 4px 7px rgb(73 64 125 / 35%)',
none: 'none',
},
},
},
plugins: [
plugin(function ({addBase, addComponents, matchUtilities, theme}) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{values: theme('textShadow')}
)
addBase({
'.flex-col': {
display: 'flex',
},
'.flex-row': {
display: 'flex',
},
'.debug': {
'outline-width': '2px',
'outline-color': 'pink',
'outline-style': 'dashed',
},
})
addComponents({
'.flex-center': {
display: 'flex',
'align-items': 'center',
'justify-content': 'center',
},
})
}),
],
}