-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
125 lines (124 loc) · 2.99 KB
/
tailwind.config.cjs
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
const colors = require("tailwindcss/colors");
const plugin = require("tailwindcss/plugin");
module.exports = {
content: ["./src/**/*.svelte"],
darkMode: "class",
theme: {
fontSize: {
xs: ".75rem",
sm: ".875rem",
tiny: ".875rem",
base: "1rem",
lg: "1.125rem",
xl: "1.25rem",
"2xl": "1.5rem",
"3xl": "1.875rem",
"4xl": "2.25rem",
"5xl": "3rem",
"6xl": "4rem",
"7xl": "5rem",
"8xl": "6rem",
mediumTitle: ["2rem", "1.15"]
},
screens: {
sm: "375px",
md: "550px",
md2: "600px",
md3: "800px",
lg: "1000px",
xl: "1385px",
xl2: "3000px"
},
colors: {
white: colors.white,
neutral: colors.neutral,
black: colors.black,
grey: colors.gray,
"space-grey": "#111111",
"light-space-grey": "#151a1a",
"space-white": "#FaFaFc",
"almost-white": "#fefefe",
red: colors.red,
purple: colors.purple,
slate: colors.slate,
teal: colors.teal,
darkFromColor: `#8797e8 30%`,
darkViaColor1: `#a162e8 50%`,
darkViaColor2: `#f093b0 70%`,
darkToColor: `#dab56c 94%`,
lightViaColor2: `#e47c9d 70%`,
lightToColor: `#dd9f22 94%`,
textLight: "#FCFCFC",
progressBarBlue: "#BF41E0"
},
fontFamily: {
Cormorant: ["Cormorant", "serif"],
Poppins: ["Poppins", "sans-serif"],
Roboto: ["Roboto Serif", "serif"]
},
extend: {
spacing: {
128: "32rem",
144: "36rem"
},
borderRadius: {
"4xl": "2rem"
},
gridTemplateColumns: {
articlesSm: "repeat(auto-fill, minmax(200px, 1fr))",
articlesMd: "repeat(auto-fill, minmax(250px, 1fr))",
articlesLg: "repeat(auto-fill, minmax(300px, 1fr))"
},
lineHeight: {
standard: "1.15",
extraRelaxed: "1.7"
},
padding: {
22: "5.5rem"
},
flex: {
2: "2 2 0%"
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme("color.neutral"),
code: {
paddingTop: "0.25rem",
paddingRight: "0.15rem",
borderRadius: "4px",
padding: "2px 5px 0 5px"
},
"code::before": {
content: '""'
},
"code::after": {
content: '""'
}
}
}
})
}
},
plugins: [
require("@tailwindcss/typography"),
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"bg-gradient": (angle) => ({
"background-image": `linear-gradient(${angle}, var(--tw-gradient-stops))`,
"-webkit-background-clip": "text",
"-webkit-text-fill-color": "transparent"
})
},
{
values: Object.assign(theme("bgGradientDeg", {}), {
0: "0deg",
90: "90deg",
271: "271deg"
})
}
);
})
]
};