-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathtailwind.config.js
More file actions
107 lines (107 loc) · 3.51 KB
/
Copy pathtailwind.config.js
File metadata and controls
107 lines (107 loc) · 3.51 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
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
darkMode: 'class',
theme: {
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 rgba(255,215,0,0.15)',
},
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)' },
},
},
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',
},
transitionTimingFunction: {
smooth: 'cubic-bezier(0.4, 0, 0.2, 1)',
},
typography: {
DEFAULT: {
css: {
color: 'var(--yde-text-primary)',
a: {
color: 'var(--yde-primary)',
'&:hover': {
color: 'var(--yde-primary-hover)',
},
},
code: {
color: 'var(--yde-text-primary)',
backgroundColor: 'var(--yde-surface-raised)',
padding: '0.2em 0.4em',
borderRadius: '0.25rem',
fontWeight: '400',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
pre: {
backgroundColor: 'var(--yde-surface-raised)',
color: 'var(--yde-text-primary)',
padding: '1em',
borderRadius: '0.75rem',
overflowX: 'auto',
},
blockquote: {
borderLeftColor: 'var(--yde-primary)',
color: 'var(--yde-text-secondary)',
},
h1: { color: 'var(--yde-text-primary)' },
h2: { color: 'var(--yde-text-primary)' },
h3: { color: 'var(--yde-text-primary)' },
h4: { color: 'var(--yde-text-primary)' },
strong: { color: 'var(--yde-text-primary)' },
table: { marginTop: '0', marginBottom: '0' },
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('./src/renderer/theme/tailwind/plugin.cjs'),
],
}