-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
137 lines (125 loc) · 3.74 KB
/
tailwind.config.ts
File metadata and controls
137 lines (125 loc) · 3.74 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
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
import type { Config } from "tailwindcss";
import colors from "tailwindcss/colors";
import "tailwindcss-animate";
const config = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
prefix: "",
theme: {
fontSize: {
sm: "0.8rem",
base: "1rem",
xl: "1.25rem",
"2xl": "1.563rem",
"3xl": "1.953rem",
"4xl": "2.441rem",
"5xl": "3.052rem",
"6xl": [
"4.875rem",
{
lineHeight: "2rem",
letterSpacing: "-0.02em",
fontWeight: "700",
},
],
},
container: {
screens: {
// screens are actually screen resolutions and they are used to make set the breakpoint for each one in order to make our website responsive:
// for instance tailcss set default define its default screens like sm, md,lg,xl,2xl and each and it also define its own breakpoints
// a breakpoint is actually a max width of a screen for instance for xm: extra device th e max width are gonna set when we reach 360 and 574
// we are going to overide that and set our own screens and breakpoints.
//Good to know : screens resolution ends at 2xl so they do not work in html element afetr that value like 3xl:text-white ( not possible )
//Feel free to have as few or as many screens as you want, naming them in whatever way you’d prefer for your project.
xm: "360px",
sm: "575px",
md: "768px",
lg: "992px",
xl: "1280px",
"2xl": "1440px",
"3xl": "1680px",
"4xl": "1920px",
},
// container class sets the max-width of an element to match the min-width of the current breakpoint. This is useful if you’d prefer to design for a fixed set of screen sizes instead of trying to accommodate a fully fluid viewport.
// to center with tailwind class we use mx-auto
center: true,
// To add horizontal padding for each breakpoint
padding: {
DEFAULT: "1rem",
xs: "0rem",
sm: "0rem",
md: "0rem",
lg: "0rem",
xl: "0rem",
"2xl": "0rem",
"3xl": "2rem",
"4xl": "2rem",
},
},
colors: {
// 'minsk'
primary: {
"50": "#eef3ff",
"100": "#e0e8ff",
"200": "#c7d5fe",
"300": "#a5b8fc",
"400": "#8192f8",
"500": "#636df1",
"600": "#4846e5",
"700": "#3c38ca",
"800": "#3230a3",
"900": "#33348e",
"950": "#1c1b4b",
},
// 'persian-red'
secondary: {
"50": "#fef2f2",
"100": "#fee2e3",
"200": "#fecacc",
"300": "#fca5a9",
"400": "#f77277",
"500": "#ee454c",
"600": "#cc2229",
"700": "#b81d23",
"800": "#981c21",
"900": "#7e1e22",
"950": "#450a0c",
},
// Defaults colors
slate: colors.slate,
neutral: colors.neutral,
black: colors.black,
white: colors.white,
gray: colors.gray,
orange: colors.orange,
indigo: colors.indigo,
green: colors.green,
red: colors.red,
yellow: colors.yellow,
transparent: "transparent",
},
extend: {
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [],
} satisfies Config;
export default config;