-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
77 lines (75 loc) · 2.28 KB
/
Copy pathtailwind.config.js
File metadata and controls
77 lines (75 loc) · 2.28 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
/** @type {import('tailwindcss').Config} */
// Tokens definidos como tripletas RGB en src/styles.css
const token = (name) => `rgb(var(${name}) / <alpha-value>)`;
export default {
darkMode: 'class',
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
canvas: token('--c-canvas'),
surface: {
DEFAULT: token('--c-surface'),
2: token('--c-surface-2'),
},
line: token('--c-line'),
ink: token('--c-ink'),
muted: token('--c-muted'),
faint: token('--c-faint'),
accent: {
DEFAULT: token('--c-accent'),
soft: token('--c-accent-soft'),
ink: token('--c-accent-ink'),
},
danger: {
DEFAULT: token('--c-danger'),
soft: token('--c-danger-soft'),
},
success: {
DEFAULT: token('--c-success'),
soft: token('--c-success-soft'),
},
warn: {
DEFAULT: token('--c-warn'),
soft: token('--c-warn-soft'),
},
},
fontFamily: {
sans: [
'-apple-system', 'BlinkMacSystemFont', 'SF Pro Display',
'Helvetica Neue', 'Segoe UI', 'sans-serif',
],
// Sin serif en la identidad: alias al stack sans por seguridad
serif: [
'-apple-system', 'BlinkMacSystemFont', 'SF Pro Display',
'Helvetica Neue', 'Segoe UI', 'sans-serif',
],
mono: ['JetBrains Mono', 'SF Mono', 'ui-monospace', 'monospace'],
},
boxShadow: {
card: 'var(--shadow-card)',
lift: 'var(--shadow-lift)',
},
keyframes: {
'fade-up': {
from: { opacity: '0', transform: 'translateY(12px)' },
to: { opacity: '1', transform: 'translateY(0)' },
},
'scale-in': {
from: { opacity: '0', transform: 'scale(0.97)' },
to: { opacity: '1', transform: 'scale(1)' },
},
},
animation: {
'fade-up': 'fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both',
'scale-in': 'scale-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both',
'spin-slow': 'spin 25s linear infinite',
'spin-reverse-slow': 'spin 25s linear infinite reverse',
},
},
},
plugins: [require('tailwindcss-animate')],
};