-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
116 lines (115 loc) · 4.46 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
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/app/**/*.{js,ts,jsx,tsx}',
],
theme: {
boxShadow: {
drop: '0px 1px 8px rgba(0, 0, 0, 0.25)',
overlay: '0px 4px 13px 1px rgba(0, 0, 0, 0.25)',
},
colors: {
cream: '#DEDBCD',
creamSemi50: 'rgba(222, 219, 205, 0.5)',
creamSemi35: 'rgba(222, 219, 205, 0.35)',
player: '#C3AF9F',
ichiro: '#FD984B',
darkBrownText: '#462f1d',
darkBrownOverlay: 'rgba(38, 32, 25, 0.85)',
// darkBrownOverlay: '#26201985',
black: '#1b1918',
menuOverlay: '#1b1918e6',
},
extend: {
keyframes: {
toFullOpacity: {
from: { opacity: 0 },
to: { opacity: 1 },
},
toNoOpacity: {
from: { opacity: 1 },
to: { opacity: 0 },
},
dialogContentShow: {
from: { opacity: 0, transform: 'translate(-50%, -50%) scale(0.97)' },
to: { opacity: 1, transform: 'translate(-50%, -50%) scale(1)' },
},
dialogContentHide: {
from: { opacity: 1, transform: 'translate(-50%, -50%) scale(1)' },
to: { opacity: 0, transform: 'translate(-50%, -50%) scale(0.97)' },
},
},
animation: {
// bobble: 'bobble 2s ease-in-out infinite',
toFullOpacity: 'toFullOpacity 150ms linear',
toNoOpacity: 'toNoOpacity 150ms linear',
dialogContentShow: 'dialogContentShow 150ms linear',
dialogContentHide: 'dialogContentHide 150ms linear',
},
},
},
plugins: [
plugin(({ addComponents, addUtilities }) => {
addComponents({
'.top-panel': {
'@apply typography-body rounded-xl shadow-drop block bg-darkBrownOverlay lg:m-0 mr-20 max-h-[5.5rem] lg:max-h-[8.5rem] overflow-y-hidden p-4 lg:p-6':
{},
},
'.bottom-panel': {
'@apply typography-body rounded-xl shadow-drop flex flex-col items-start p-4 lg:p-6 bg-darkBrownOverlay relative gap-3 [&>.ichiro-statement]:mr-[8rem] [&>.ichiro-statement.dismiss-ichiro-button]:mr-[10rem] lg:[&>.ichiro-statement.dismiss-ichiro-button]:mr-[12.5rem] lg:[&>.ichiro-statement]:mr-[10rem] [&>.ichiro-statement]:overflow-y-auto [&>.user-statement]:overflow-y-auto max-h-[7rem] lg:max-h-[8.5rem]':
{},
},
'.pinned-bottom-panel': {
'@apply relative z-10 flex flex-col items-center gap-2 bg-darkBrownOverlay p-2 lg:gap-8 lg:px-16 lg:py-12 typography-body':
{},
},
'.typography-title': {
'@apply text-3xl lg:text-5xl': {},
},
'.typography-bio': {
'@apply text-xl lg:text-[1.75rem]': {},
},
'.typography-social': {
'@apply text-xl lg:text-2xl underline italic': {},
},
'.typography-body': {
'@apply text-xl lg:text-4xl': {},
},
'.typography-button': {
'@apply text-xl lg:text-[2rem]': {},
},
'.typography-tooltip': {
'@apply text-lg lg:text-2xl italic text-cream': {},
},
'.typography-name': {
'@apply text-2xl lg:text-[2.5rem] uppercase leading-7 lg:leading-10':
{},
},
'.typography-clipboard': {
'@apply text-lg lg:text-2xl': {},
fontFamily: `'Courier New', Courier, monospace`,
letterSpacing: '-5%',
},
'.button': {
'@apply typography-button border-2 border-solid cursor-pointer outline-none px-6 py-2 lg:px-8 lg:py-3 rounded-xl text-xl lg:text-3xl':
{},
},
'.button-variant-outlined': {
'@apply border-cream text-cream hover:bg-creamSemi50 focus-visible:text-darkBrownText focus-visible:bg-cream active:text-darkBrownText active:bg-cream disabled:cursor-not-allowed disabled:bg-[transparent] disabled:text-creamSemi50 disabled:border-creamSemi50 disabled:line-through':
{},
},
'.button-variant-filled': {
'@apply bg-cream border-cream text-darkBrownText hover:bg-creamSemi50 hover:border-creamSemi50 focus-visible:border-ichiro active:bg-creamSemi35 disabled:cursor-not-allowed disabled:bg-creamSemi35 disabled:text-darkBrownOverlay disabled:line-through bg-clip-padding':
{},
},
});
addUtilities({
/** 100dvh or 100vh depending on support */
'.h-view': {},
});
}),
],
};