-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
106 lines (104 loc) · 3.28 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
/** @type {import('tailwindcss').Config} */
import plugin from "tailwindcss/plugin";
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {
colors: {
primary: "#FF770F",
secondary: "#9C9A9A",
},
fontFamily: {
poppins: ["Poppins", "sans-serif"]
},
},
screens: {
xs: "420px",
ss: "580px",
sm: "768px",
md: "1060px",
lg: "1440px",
xl: "1800px"
}
},
plugins: [
plugin(function ({ addBase, addComponents, addUtilities }) {
addBase({});
addComponents({
".container": {
"@apply w-[90%] sm:w-full sm:px-8":
{},
},
".flexCenter": {
"@apply flex justify-center items-center":
{},
},
".flexStart": {
"@apply flex justify-center items-start":
{},
},
".h1": {
"@apply font-semibold text-[2.5rem] leading-[3.25rem] md:text-[2.75rem] md:leading-[3.75rem] lg:text-[3.25rem] lg:leading-[4.0625rem] xl:text-[3.75rem] xl:leading-[4.5rem]":
{},
},
".h2": {
"@apply text-[1.75rem] leading-[2.5rem] md:text-[2rem] md:leading-[2.5rem] lg:text-[2.5rem] lg:leading-[3.5rem] xl:text-[3rem] xl:leading-tight":
{},
},
".h3": {
"@apply text-[1rem] font-bold sm:text-[20px] mb-6 sm:mb-14": {},
},
".h4": {
"@apply text-[2rem] leading-normal": {},
},
".h5": {
"@apply text-2xl leading-normal": {},
},
".h6": {
"@apply font-semibold text-lg leading-8": {},
},
".body-1": {
"@apply text-[0.875rem] leading-[1.5rem] md:text-[1rem] md:leading-[1.75rem] lg:text-[1.25rem] lg:leading-8":
{},
},
".btn-base": {
"@apply min-w-[250px] sm:min-w-[270px] rounded-2xl font-semibold py-2 px-8 sm:px-16": {},
},
".btn-transparent": {
"@apply transition ease-in-out bg-transparent hover:bg-primary duration-300": {},
},
".bordered": {
"@apply border-solid border-2 border-primary": {},
},
".btn-auto":{
"@apply min-w-0 rounded-2xl font-semibold py-2 px-8 sm:px-16": {},
},
".btn-icon":{
"@apply text-white bg-orange-600 hover:bg-orange-800 focus:ring-4 focus:outline-none focus:ring-orange-300 font-medium rounded-full text-sm p-1.5 text-center inline-flex items-center me-2 dark:bg-orange-400 dark:hover:bg-orange-600 dark:focus:ring-orange-600": {},
}
});
addUtilities({
".news-modal-overlay": {
"@apply fixed right-0 left-0 top-[50%] flex items-center justify-center min-h-[550px] bg-white shadowModal mx-auto rounded-2xl w-[90%] sm:w-[550px] z-40": {},
},
".news-modal-body": {
"@apply w-[90%] sm:w-[75%] flex flex-col p-[20px]": {},
},
".topV": {
"transform": "translateY(-50%)",
},
".shadowHeader": {
"box-shadow": "0 4px 8px 0 rgba(0,0,0,0.25)",
},
".shadowFooter": {
"box-shadow": "0 -4px 6px 0 rgba(0,0,0,0.10)",
},
".shadowModal": {
"box-shadow": "0 6px 8px 0 rgba(0,0,0,0.25)",
},
});
}),
],
}