-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
59 lines (58 loc) · 1.56 KB
/
Copy pathtailwind.config.ts
File metadata and controls
59 lines (58 loc) · 1.56 KB
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
import type { Config } from 'tailwindcss';
import { PluginAPI } from 'tailwindcss/types/config';
const config: Config = {
darkMode: 'selector',
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
background: '#F9FAFB',
text: '#1F2937',
primary: '#3B82F6',
secondary: '#10B981',
accent: '#248CF3',
accentSecondary: '#C2A5FC',
muted: '#9CA3AF',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
},
},
plugins: [
function ({ addComponents, theme }: PluginAPI) {
addComponents({
'.wrapper': {
maxWidth: '1280px',
},
'.btn': {
padding: '12px 10px',
width: '120px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: theme('borderRadius.xl'),
backgroundColor: theme('colors.accent'),
transition: 'background-color 0.2s ease',
color: theme('colors.black'),
'&:hover': {
backgroundColor: '#2081e1',
},
},
'.btn-accent-secondary': {
backgroundColor: theme('colors.accentSecondary'),
'&:hover': {
backgroundColor: '#af94e4',
},
},
});
},
],
};
export default config;