-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
141 lines (133 loc) · 4.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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin')
const {addUtilities, theme} = plugin
//const colors = plugin.theme('colors')
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/**/*.{js,ts,jsx,tsx,mdx}"
],
theme: {
extend: {
colors: {
transparent: 'transparent',
current: 'currentColor',
fieldBlue: "#0a46e6",
fieldBlueDark: '#020C26',
linkBlue: "#3d57cc",
successGreen: "#53b59e",
warningRed: "#d44235",
fieldBlack: "#0f0f14",
fieldGrayDark: "#333336",
fieldGray: "#6a6a71",
fieldGrayLight: "#c9cacc",
fieldGrayLighter: "#f0f3f3",
fieldOrange: "#f29f77",
fieldPurple: "#b274a7",
fieldBlueLight: "#3d57cc",
fieldGreen: "#37816e",
fieldYellow: "#f5d689",
fieldAqua: "#6eb3d5",
hoverBlue: "#032c99"
},
content: {
shuffleButton: 'url("https://www.datocms-assets.com/44232/1662998329-shuffle-icon.svg")'
},
fontFamily:{
druk: ["Druk Bold", 'sans-serif'],
graphik: ["Graphik Regular", 'sans-serif'],
graphikMed: ['Graphik Medium', 'sans-serif'],
graphikReg: ['Graphik Regular', 'sans-serif'],
graphikBold: ["Graphik Semi-Bold", 'sans-serif'],
lyonBold: ["Lyon Bold", 'serif'],
lyonReg: ["Lyon Regular", "serif"],
lyonItalic: ["Lyon Italic", 'serif']
},
//set up the animation base
keyframes:{
reveal: {
'0%': { transform: 'translateY(0%)' },
'100%': { transform: 'translateY(-100%)' }
},
revealPartial: {
'0%': { transform: 'translateY(0%)'},
'100%': { transform: 'translateY(20%)'}
},
cover: {
'0%': { transform: 'translateY(100%)' },
'100%': { transform: 'translateY(0%)' }
},
coverPartial: {
'0%': { transform: 'translateY(-20%)' },
'100%': { transform: 'translateY(0%)' }
},
bounce: {
'0%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(0)' },
'75%': { transform: 'translateY(-3px)' },
'100%': { transform: 'translateY(0)' }
},
wipeIn: {
'0%': { transform: 'translateY(100%)' },
'100%': { transform: 'translateY(0)' }
},
wipeOut: {
'0%': { transform: 'translateY(0)', height: '100%', opacity: 1 },
'100%': { transform: 'translateY(-100%)', height: '0', opacity: 0 }
},
disable: {
'0%': { opacity: 1 },
'100%': { opacity: 0 }
},
},
//use the animations and reference the keyframes
animation: {
reveal: 'reveal 1s ease-in-out',
revealPartial: 'revealPartial 1s ease-in-out',
cover: 'cover 1s ease-in-out',
coverPartial: 'coverPartial 1s ease-in-out',
bounce: 'bounce 1s ease-in-out',
wipeIn: 'wipeIn .2s ease-in-out forwards',
wipeOut: 'wipeOut .2s ease-in-out frowards',
disable: 'disable .3s ease-in-out',
},
boxShadow: {
'outline-blue': '0 0 5px 1px fieldBlue',
},
},
plugins: [
function ({ addUtilities, theme }) {
addUtilities({
'.counter-reset': {
'counter-reset': 'list'
},
'.counted-list li': {
position: 'relative',
},
'.counted-list li::before': {
content: 'counter(list)',
display: 'block',
position: 'absolute',
left: 0,
transform: 'translateY(.5rem)',
color: theme('colors.fieldBlue'),
fontWeight: theme('fontWeight.medium'),
fontSize: theme('fontSize.sm'),
},
'.dash-list li::before':{
content: '',
display: 'block' ,
position: 'absolute',
left: 0,
height: '.25rem',
width: '.625rem',
transform: 'translateY(-.75rem)',
}
})
},
],
corePlugins: {
fontFamily: true,
},
}
}