-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
115 lines (102 loc) · 3.61 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
110
111
112
113
114
115
/** @type {import('tailwindcss').Config} */
const colors = require('tailwindcss/colors')
const { gray, blue, green, yellow, red } = require('./constants/customColors')
module.exports = {
// NOTE: extension should not be preceeded by a space DONOT: {js, jsx, tsx} Do: {js,jsx,tsx}
content: ['./pages/**/*.{js, jsx}', './app/**/*.tsx', './components/**/*.{js,jsx,tsx}'],
darkMode: 'class',
theme: {
colors: {
...colors,
gray: {
...colors.gray,
...gray,
},
blue: {
...colors.blue,
...blue,
},
yellow: {
...colors.yellow,
...yellow,
},
green: {
...colors.green,
...green,
},
red: {
...colors.red,
...red,
},
'bg-light': '#DCDCDC',
'text-light': '#888888',
// bg
'back-dark': gray[13], // '#080110'
'back-light': '#fff',
// forms
'input-light': colors.gray[100],
'input-dark': gray['14'],
'input-light-outline': gray[2],
'input-dark-outline': gray[10],
// text color
light: colors.gray['300'],
lighter: colors.gray['100'],
dark: colors.gray[600],
darker: '#000',
// border
'bdr-light': gray[0],
'bdr-dark': gray[10],
},
extend: {
screens: {
xs: '450px',
},
boxShadow: {
'around-sm': '0px 0px 5px 3px rgba(0, 0, 0, 0.1), 0px 0px 4px 1px rgba(0, 0, 0, 0.1)',
'around-md': '0px 0px 8px 6px rgba(0, 0, 0, 0.1), 0px 0px 4px 1px rgba(0, 0, 0, 0.1)',
'around-lg': '0px 0px 11px 8px rgba(0, 0, 0, 0.1), 0px 0px 4px 1px rgba(0, 0, 0, 0.1)',
},
typography: (theme) => ({
DEFAULT: {
css: {
'--tw-prose-body': theme('colors.gray[600]'),
'--tw-prose-headings': '#000',
'--tw-prose-invert-body': theme('colors.gray[300]'), // text color dark mode
'--tw-prose-invert-headings': theme('colors.gray[200]'),
a: {
color: '#62a5f7',
textDecoration: 'none',
'&:hover': {
textDecoration: 'underline',
},
},
img: {
margin: 0,
},
figure: {
margin: 0,
},
hr: {
margin: '1.4rem 0',
color: theme('colors.gray-500'),
},
blockquote: {
'border-left-color': theme('colors.zinc.400'),
},
},
},
}),
animation: {
'bounce-1s': 'bounce-1s 1s',
},
keyframes: {
'bounce-1s': {
'0%, 20%, 50%, 80%, 100%': { transform: 'translateY(0)' },
'40%': { transform: 'translateY(-30%)' },
'60%': { transform: 'translateY(-15%)' },
},
},
},
},
plugins: [require('@tailwindcss/typography')],
}