Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
142 lines (142 loc) · 5.43 KB
/
Copy pathtailwind.config.js
File metadata and controls
142 lines (142 loc) · 5.43 KB
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
142
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
darkMode: 'class',
theme: {
fontSize: {
xs: ['var(--lobster-text-xs)', { lineHeight: 'var(--lobster-leading-xs)' }],
sm: ['var(--lobster-text-sm)', { lineHeight: 'var(--lobster-leading-sm)' }],
base: ['var(--lobster-text-base)', { lineHeight: 'var(--lobster-leading-base)' }],
lg: ['var(--lobster-text-lg)', { lineHeight: 'var(--lobster-leading-lg)' }],
xl: ['var(--lobster-text-xl)', { lineHeight: 'var(--lobster-leading-xl)' }],
'2xl': ['var(--lobster-text-2xl)', { lineHeight: 'var(--lobster-leading-2xl)' }],
'3xl': ['var(--lobster-text-3xl)', { lineHeight: 'var(--lobster-leading-3xl)' }],
'4xl': ['var(--lobster-text-4xl)', { lineHeight: 'var(--lobster-leading-4xl)' }],
'5xl': ['calc(var(--lobster-text-4xl) * 1.333)', { lineHeight: '1' }],
'6xl': ['calc(var(--lobster-text-4xl) * 1.667)', { lineHeight: '1' }],
'7xl': ['calc(var(--lobster-text-4xl) * 2)', { lineHeight: '1' }],
'8xl': ['calc(var(--lobster-text-4xl) * 2.667)', { lineHeight: '1' }],
'9xl': ['calc(var(--lobster-text-4xl) * 3.556)', { lineHeight: '1' }],
},
fontWeight: {
thin: '100',
extralight: '200',
light: '300',
normal: 'var(--lobster-ui-font-weight-normal, 445)',
medium: 'var(--lobster-ui-font-weight-medium, 500)',
semibold: '600',
bold: '700',
extrabold: '800',
black: '900',
},
extend: {
boxShadow: {
subtle: '0 1px 2px rgba(0,0,0,0.05)',
card: '0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04)',
elevated: '0 4px 12px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.04)',
modal: '0 8px 30px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08)',
popover: '0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.05)',
'glow-accent': '0 0 20px var(--lobster-primary-muted)',
},
keyframes: {
'fade-in': {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
'fade-in-up': {
'0%': { opacity: '0', transform: 'translateY(8px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'fade-in-down': {
'0%': { opacity: '0', transform: 'translateY(-8px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'scale-in': {
'0%': { opacity: '0', transform: 'scale(0.95)' },
'100%': { opacity: '1', transform: 'scale(1)' },
},
shimmer: {
'0%': { transform: 'translateX(-100%)' },
'100%': { transform: 'translateX(100%)' },
},
shake: {
'0%, 100%': { transform: 'translateX(0)' },
'20%': { transform: 'translateX(-3px)' },
'40%': { transform: 'translateX(3px)' },
'60%': { transform: 'translateX(-2px)' },
'80%': { transform: 'translateX(2px)' },
},
'message-in': {
'0%': { opacity: '0', transform: 'translateY(6px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
},
animation: {
'fade-in': 'fade-in 0.2s ease-out',
'fade-in-up': 'fade-in-up 0.25s ease-out',
'fade-in-down': 'fade-in-down 0.2s ease-out',
'scale-in': 'scale-in 0.2s ease-out',
shimmer: 'shimmer 1.5s infinite',
shake: 'shake 0.4s ease-in-out',
// No fill mode on purpose: a filled opacity/transform animation keeps
// the element a stacking context forever, which traps in-message
// popovers (z-50) below later sibling messages. The entry animation
// has no delay and ends at the natural state, so no fill is needed.
'message-in': 'message-in 0.25s ease-out',
},
transitionTimingFunction: {
smooth: 'cubic-bezier(0.4, 0, 0.2, 1)',
},
typography: {
DEFAULT: {
css: {
color: 'var(--lobster-text-primary)',
a: {
color: 'var(--lobster-primary)',
'&:hover': {
color: 'var(--lobster-primary-hover)',
},
},
code: {
color: 'var(--lobster-text-primary)',
backgroundColor: 'var(--lobster-surface-raised)',
padding: '0.2em 0.4em',
borderRadius: '0.25rem',
fontWeight: '400',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
pre: {
backgroundColor: 'var(--lobster-surface-raised)',
color: 'var(--lobster-text-primary)',
padding: '1em',
borderRadius: '0.75rem',
overflowX: 'auto',
},
blockquote: {
borderLeftColor: 'var(--lobster-primary)',
color: 'var(--lobster-text-secondary)',
},
h1: { color: 'var(--lobster-text-primary)' },
h2: { color: 'var(--lobster-text-primary)' },
h3: { color: 'var(--lobster-text-primary)' },
h4: { color: 'var(--lobster-text-primary)' },
strong: { color: 'var(--lobster-text-primary)' },
table: { marginTop: '0', marginBottom: '0' },
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('./src/renderer/theme/tailwind/plugin.cjs'),
],
}