-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
86 lines (85 loc) · 2.32 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
/** @type {import('tailwindcss').Config} */
import defaultTheme from "tailwindcss/defaultTheme";
import plugin from "tailwindcss/plugin";
import typographyPlugin from "@tailwindcss/typography";
import formsPlugin from "@tailwindcss/forms";
import aspectRatioPlugin from "@tailwindcss/aspect-ratio";
import animatecssPlugin from "tailwindcss-animatecss";
export default {
content: ["./public/**/*.html", "./app/**/*.{html,js,erb,rb}"],
darkMode: "media", // or 'class'
theme: {
extend: {
animation: {
"spin-reduce": "spin 1.5s linear infinite",
},
backgroundColor: {
white: "#fafafa",
black: "#202020",
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
},
borderWidth: {
16: "16px",
},
colors: {
"bg--dark": "#0B1622",
"fg--dark": "#151F2E",
"bg--light": "#E5EBF1",
"fg--light": "#FBFBFB",
"text--dark": "#9FADBD",
"text--light": "#26343F",
},
textShadow: {
sm: "0 1px 2px var(--tw-shadow-color)",
DEFAULT: "0 0 20px var(--tw-shadow-color)",
lg: "0 8px 16px var(--tw-shadow-color)",
},
screens: {
xs: { min: "320px", max: "639px" },
phone: "320px",
tablet: "576px",
laptop: "768px",
desktop: "1200px",
"desktop-lg": "1536px",
},
},
screens: {
sm: { min: "640px", max: "767px" },
md: { min: "768px", max: "1023px" },
lg: { min: "1024px", max: "1279px" },
xl: { min: "1280px", max: "1535px" },
"2xl": { min: "1536px", max: "1791px" },
},
container: {
center: true,
},
fontFamily: {
sans: ['"Source Sans Pro"', "Inter", ...defaultTheme.fontFamily.sans],
serif: defaultTheme.fontFamily.serif,
mono: defaultTheme.fontFamily.mono,
},
animatedSettings: {
animatedSpeed: 500,
animationDelaySpeed: 500,
classes: ["fadeIn", "fadeOut", "delay"],
},
},
plugins: [
typographyPlugin,
formsPlugin,
aspectRatioPlugin,
animatecssPlugin,
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
"text-shadow": value => ({
textShadow: value,
}),
},
{ values: theme("textShadow") },
);
}),
],
};