-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
87 lines (84 loc) · 2.31 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
87
import { MtaColors } from "./utils/subwayLines";
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./utils/**/*.{js,ts,jsx,tsx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
typography: {
DEFAULT: {
css: {
color: "white",
h1: {
color: "white",
},
h2: {
color: "white",
},
h3: {
color: "white",
},
a: {
color: "white",
},
},
},
},
colors: {
mtaRed: MtaColors.Red,
mtaGreen: MtaColors.Green,
mtaBlue: MtaColors.Blue,
mtaOrange: MtaColors.Orange,
mtaPurple: MtaColors.Purple,
mtaGreen2: MtaColors.Green2,
mtaYellow: MtaColors.Yellow,
mtaGray: MtaColors.Gray,
mtaBrown: MtaColors.Brown,
},
keyframes: {
alertIconFlickerKeyframes: {
"0%": { opacity: 1 },
"100%": { opacity: 0.6 },
},
arrivalTimeFadeInOutKeyframes: {
"0%": { opacity: 1 },
"100%": { opacity: 0.5 },
},
nycSubwayLoadingKeyframes: {
"0%,100%": { opacity: 1 },
"50%": { opacity: 0.5 },
},
pathLoadingKeyframes: {
"0%,100%": { opacity: 1 },
"50%": { opacity: 0.5 },
},
},
animation: {
alertIconAnimation:
"alertIconFlickerKeyframes 1.5s ease-in-out infinite alternate",
arrivalTimeFadeInOutAnimation:
"arrivalTimeFadeInOutKeyframes 1s infinite alternate",
nycSubwayLoadingKeyframesAnimation:
"nycSubwayLoadingKeyframes 1.2s linear infinite",
pathLoadingKeyframesAnimation:
"pathLoadingKeyframes 1.2s linear infinite",
pulseKeyFramesAnimation:
"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
},
},
},
plugins: [
require("tailwind-scrollbar-hide"),
require("@tailwindcss/typography"),
plugin(function ({ addVariant }) {
addVariant("not-last", "&:not(:last-child)");
}),
],
};