-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
52 lines (50 loc) · 1.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
const { addDynamicIconSelectors } = require("@iconify/tailwind");
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
colors: {
ykb: "#002FA7",
ykbdark: "#001F6F",
ykblight: "#003AD0",
orangepeel: "#FFA630",
},
fontFamily: {
sans: ["RealText", "sans-serif"],
bold: ["RealText Bold", "sans-serif"],
},
animation: {
scroll: "scroll 15s linear infinite",
"scroll-mobile": "scroll 5s linear infinite",
},
keyframes: {
scroll: {
"0%": { transform: "translate3d(-100%, 0, 0)" },
"100%": { transform: "translate3d(0, 0, 0)" },
},
},
},
},
variants: {
extend: {
animation: ["group-hover"],
},
},
plugins: [
require("@tailwindcss/typography"),
addDynamicIconSelectors(),
function ({ addUtilities, theme, variants }) {
const newUtilities = {
".animate-scroll": {
animation: theme("animation.scroll"),
},
"@media (max-width: 640px)": {
".animate-scroll": {
animation: theme("animation.scroll-mobile"),
},
},
};
addUtilities(newUtilities, variants("animation"));
},
],
};