-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
46 lines (44 loc) · 1.18 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
import plugin from "tailwindcss/plugin";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
fontFamily: {
poppinsRegular: ["Poppins Regular", "sans-serif"],
poppinsThin: ["Poppins Thin", "sans-serif"],
poppinsSemiBold: ["Poppins SemiBold", "sans-serif"],
},
textStroke: {
DEFAULT: "1px white",
sm: "0.5px white",
lg: "4px white",
black: "2px black",
},
},
},
plugins: [
plugin(function ({ addUtilities, e, theme }) {
const textStrokeUtilities = Object.entries(theme("textStroke") || {}).map(
([key, value]) => {
return {
[`.${e(`text-stroke-${key}`)}`]: {
"-webkit-text-stroke": value,
},
};
}
);
addUtilities(textStrokeUtilities);
}),
],
variants: {
extend: {
textStroke: ["responsive"],
},
},
};