-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
121 lines (119 loc) · 2.92 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import type { Config } from "tailwindcss";
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./src/**/*.{js,ts,jsx,tsx}',
'./app/**/*.{js,ts,jsx,tsx}',
'./public/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
'primary': '#005f73',
'secondary': '#0a9396',
'accent': '#94d2bd',
'background': '#e9d8a6',
'foreground': '#ee9b00',
'muted': '#ca6702',
},
fontFamily: {
'body': ['"Open Sans"', 'sans-serif'],
'heading': ['"Merriweather"', 'serif'],
},
spacing: {
'128': '32rem',
'144': '36rem',
},
borderRadius: {
'xl': '1rem',
},
boxShadow: {
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.800'),
a: {
color: theme('colors.primary'),
textDecoration: 'none',
'&:hover': {
textDecoration: 'underline',
},
},
},
},
}),
},
},
plugins: [
function ({ addBase, theme }) {
addBase({
'h1': { fontSize: theme('fontSize.4xl') },
'h2': { fontSize: theme('fontSize.2xl') },
'h3': { fontSize: theme('fontSize.xl') },
'h4': { fontSize: theme('fontSize.lg') },
'h5': { fontSize: theme('fontSize.base') },
'h6': { fontSize: theme('fontSize.sm') },
});
},
function ({ addComponents }) {
addComponents({
'.container': {
width: '100%',
marginLeft: 'auto',
marginRight: 'auto',
paddingLeft: '1rem',
paddingRight: '1rem',
'@screen sm': {
maxWidth: '640px',
},
'@screen md': {
maxWidth: '768px',
},
'@screen lg': {
maxWidth: '1024px',
},
'@screen xl': {
maxWidth: '1280px',
},
},
});
},
function ({ addUtilities }) {
const newUtilities = {
'.skew-10deg': {
transform: 'skewY(-10deg)',
},
'.skew-15deg': {
transform: 'skewY(-15deg)',
},
'.skew-30deg': {
transform: 'skewY(-30deg)',
},
'.btn': {
padding: '.5rem 1rem',
borderRadius: '.25rem',
fontWeight: '600',
},
'.btn-blue': {
backgroundColor: '#3490dc',
color: '#fff',
'&:hover': {
backgroundColor: '#2779bd',
},
},
'.btn-red': {
backgroundColor: '#e3342f',
color: '#fff',
'&:hover': {
backgroundColor: '#cc1f1a',
},
},
};
addUtilities(newUtilities, ['responsive', 'hover']);
},
],
};
export default config;