-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
154 lines (152 loc) · 5.72 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
const defaultTheme = require('tailwindcss/defaultTheme');
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
} else {
return `rgb(var(${variableName}))`;
}
};
}
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/layouts/**/*.{js,ts,jsx,tsx}',
'./src/lib/**/*.{js,ts,jsx,tsx}',
],
theme: {
screens: {
xs: '480px',
...defaultTheme.screens,
},
extend: {
screens: {
xs: '490px',
...defaultTheme.screens,
'3xl': '2100px',
},
zIndex: {
'-1': '-1',
},
fontFamily: {
// by default application takes sans for it's global fontFamily
'sans': [ '"Open Sans"', "system-ui", '-apple-system', "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", '"Noto Sans"', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"', 'sans-serif'],
body: ['"Open Sans"', "system-ui", '-apple-system', "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", '"Noto Sans"', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"', 'sans-serif'],
heading: ['"Open Sans"', "system-ui", '-apple-system', "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", '"Noto Sans"', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"', 'sans-serif'],
},
fontSize: {
'10px': '0.625rem',
},
colors: {
light: withOpacity('--color-light'),
dark: withOpacity('--color-dark'),
accent: withOpacity('--color-accent'),
'accent-hover': withOpacity('--color-accent-hover'),
'accent-200': withOpacity('--color-accent-200'),
'accent-300': withOpacity('--color-accent-300'),
'accent-400': withOpacity('--color-accent-400'),
'accent-500': withOpacity('--color-accent-500'),
'accent-600': withOpacity('--color-accent-600'),
'accent-700': withOpacity('--color-accent-700'),
'border-50': withOpacity('--color-border-50'),
'border-100': withOpacity('--color-border-100'),
'border-200': withOpacity('--color-border-200'),
'border-base': withOpacity('--color-border-base'),
'border-400': withOpacity('--color-border-400'),
'border-accent': withOpacity('--color-border-accent'),
'gray-50': withOpacity('--color-gray-50'),
'gray-100': withOpacity('--color-gray-100'),
'gray-200': withOpacity('--color-gray-200'),
'gray-300': withOpacity('--color-gray-300'),
'gray-400': withOpacity('--color-gray-400'),
'gray-500': withOpacity('--color-gray-500'),
'gray-600': withOpacity('--color-gray-600'),
'gray-700': withOpacity('--color-gray-700'),
'gray-800': withOpacity('--color-gray-800'),
'gray-900': withOpacity('--color-gray-900'),
'red-50': withOpacity('--color-red-50'),
'red-100': withOpacity('--color-red-100'),
'red-200': withOpacity('--color-red-200'),
'red-300': withOpacity('--color-red-300'),
'red-400': withOpacity('--color-red-400'),
'red-500': withOpacity('--color-red-500'),
'red-600': withOpacity('--color-red-600'),
'red-700': withOpacity('--color-red-700'),
'red-800': withOpacity('--color-red-800'),
'red-900': withOpacity('--color-red-900'),
social: {
facebook: '#3b5998',
'facebook-hover': '#35508a',
twitter: '#1da1f2',
instagram: '#e1306c',
youtube: '#ff0000',
google: '#4285f4',
'google-hover': '#3574de',
},
},
textColor: {
body: withOpacity('--text-base'),
'body-dark': withOpacity('--text-base-dark'),
muted: withOpacity('--text-muted'),
'muted-light': withOpacity('--text-muted-light'),
heading: withOpacity('--text-heading'),
'sub-heading': withOpacity('--text-sub-heading'),
bolder: withOpacity('--text-text-bolder'),
},
minHeight: {
580: '580px',
140: '35rem', // 560px
40: '10rem', // 140px
6: '2.5rem',
},
height: {
4.5: '1.125rem',
13: '3.125rem',
22: '5.25rem',
double: '200%',
},
maxHeight: {
'70vh': '70vh',
'85vh': '85vh',
140: '35rem', // 560px
},
maxWidth: {
1920: '1920px',
},
minWidth: {
150: '150px',
},
borderRadius: {
DEFAULT: '5px',
},
inset: {
22: '5.25rem',
},
strokeWidth: {
2.5: '2.5',
},
boxShadow: {
200: 'rgba(0, 0, 0, 0.16) 0px 3px 6px',
300: 'rgba(0, 0, 0, 0.16) 0px 0px 6px',
350: 'rgba(0, 0, 0, 0.16) 0px 3px 6px',
400: 'rgba(0, 0, 0, 0.1) 0px 0px 8px 0',
500: 'rgba(0, 0, 0, 0.17) 0px 0px 12px',
600: 'rgba(0, 0, 0, 0.1) 0px 3px 8px',
700: 'rgba(0, 0, 0, 0.08) 0px 2px 16px',
900: 'rgba(0, 0, 0, 0.05) 0px 21px 36px',
downfall: 'rgba(0, 0, 0, 0.14) 0px 6px 12px',
'downfall-xs': 'rgba(0, 0, 0, 0.14) 0px 1px 2px',
'downfall-sm': 'rgba(0, 0, 0, 0.14) 0px 2px 4px',
'downfall-lg': 'rgba(0, 0, 0, 0.16) 0px 8px 16px',
},
transitionProperty: {
height: 'height',
},
transitionTimingFunction: {
'in-expo': 'cubic-bezier(0.04, 0.62, 0.23, 0.98)',
},
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms'),], // third party plugins will be added here after install respective package (tailwind package)
};