-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
121 lines (111 loc) · 4.13 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
const colors = require('tailwindcss/colors')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./styling/**/*.{js,ts,jsx,tsx,mdx}',
'./hooks/**/*.{js,ts,jsx,tsx,mdx}',
'./constants/**/*.{js,ts,jsx,tsx,mdx}',
],
safelist: [
{
pattern: /(bg|text|fill|stroke|border|outline)-(books-and-theses|journal-articles|conference-and-workshop-papers|parts-in-books-or-collections|editorship|reference-works|data-and-artifacts|informal-and-other)/,
variants: ['hover', 'before', 'after'],
},
{
pattern: /(bg|text|fill|stroke|border|outline)-(primary|secondary|outline)/,
variants: ['hover', 'before', 'after'],
},
],
theme: {
colors: {
current: colors.current,
transparent: colors.transparent,
white: colors.white,
black: colors.black,
gray: colors.gray,
primary: 'var(--primary)',
'on-primary': 'var(--on-primary)',
secondary: 'var(--secondary)',
'on-secondary': 'var(--on-secondary)',
'secondary-dim': 'var(--secondary-dim)',
'on-secondary-dim': 'var(--on-secondary-dim)',
surface: 'var(--surface)',
'on-surface': 'var(--on-surface)',
'on-surface-muted': 'var(--on-surface-muted)',
'surface-dim': 'var(--surface-dim)',
'on-surface-dim': 'var(--on-surface-dim)',
'on-surface-dim-muted': 'var(--on-surface-dim-muted)',
'surface-container': 'var(--surface-container)',
'on-surface-container': 'var(--on-surface-container)',
'on-surface-container-muted': 'var(--on-surface-container-muted)',
'surface-dim-container': 'var(--surface-dim-container)',
'on-surface-dim-container': 'var(--on-surface-dim-container)',
'on-surface-dim-container-muted': 'var(--on-surface-dim-container-muted)',
outline: 'var(--outline)',
'outline-variant': 'var(--outline-variant)',
danger: 'var(--danger)',
'on-danger': 'var(--on-danger)',
'danger-dim': 'var(--danger-dim)',
'on-danger-dim': 'var(--on-danger-dim)',
backdrop: 'var(--backdrop)',
'books-and-theses': 'var(--books-and-theses)',
'journal-articles': 'var(--journal-articles)',
'conference-and-workshop-papers': 'var(--conference-and-workshop-papers)',
'parts-in-books-or-collections': 'var(--parts-in-books-or-collections)',
'editorship': 'var(--editorship)',
'reference-works': 'var(--reference-works)',
'data-and-artifacts': 'var(--data-and-artifacts)',
'informal-and-other': 'var(--informal-and-other)',
},
extend: {
screens: {
'xs': '400px'
},
keyframes: {
fadeIn: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
fadeOut: {
'0%': { opacity: 1 },
'100%': { opacity: 0 },
},
slideUpIn: {
'0%': { transform: 'translateY(50%)', opacity: 0 },
'100%': { transform: 'translateY(0)', opacity: 1 },
},
slideLeftIn: {
'0%': { transform: 'translateX(50%)', opacity: 0 },
'100%': { transform: 'translateX(0)', opacity: 1 },
},
slideDownOut: {
'0%': { transform: 'translateY(0)', opacity: 1 },
'100%': { transform: 'translateY(50%)', opacity: 0 },
},
slideRightOut: {
'0%': { transform: 'translateX(0)', opacity: 1 },
'100%': { transform: 'translateX(50%)', opacity: 0 },
},
widthShrink: {
'0%': { width: '100%' },
'100%': { width: '0' },
}
},
animation: {
fadeIn: 'fadeIn 150ms ease-in-out forwards',
fadeOut: 'fadeOut 150ms ease-in-out forwards',
slideUpIn: 'slideUpIn 150ms ease-in-out forwards',
slideLeftIn: 'slideLeftIn 150ms ease-in-out forwards',
slideDownOut: 'slideDownOut 150ms ease-in-out forwards',
slideRightOut: 'slideRightOut 150ms ease-in-out forwards',
widthShrink: 'widthShrink 4500ms linear forwards',
}
},
},
plugins: [
require('@tailwindcss/container-queries')
],
}