@umami/react-zen 0.251.0 → 0.252.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,63 +21,86 @@ const preset: Config = {
21
21
  darkMode: ['selector', '[data-theme="dark"], .dark'],
22
22
  theme: {
23
23
  extend: {
24
+ keyframes: {
25
+ spin: {
26
+ to: { transform: 'rotate(360deg)' },
27
+ },
28
+ 'spinner-rotate': {
29
+ '0%': { transform: 'rotate(0deg)' },
30
+ '100%': { transform: 'rotate(360deg)' },
31
+ },
32
+ 'spinner-dash': {
33
+ '0%': { strokeDasharray: '1, 200', strokeDashoffset: '0' },
34
+ '50%': { strokeDasharray: '89, 200', strokeDashoffset: '-35' },
35
+ '100%': { strokeDasharray: '89, 200', strokeDashoffset: '-124' },
36
+ },
37
+ 'icon-pop': {
38
+ from: { transform: 'scale(0.5)', opacity: '0' },
39
+ to: { transform: 'scale(1)', opacity: '1' },
40
+ },
41
+ },
42
+ animation: {
43
+ spin: 'spin 1s linear infinite',
44
+ 'spinner-rotate': 'spinner-rotate 1.6s linear infinite',
45
+ 'spinner-dash': 'spinner-dash 1.2s ease-in-out infinite',
46
+ 'icon-pop': 'icon-pop 200ms ease-out',
47
+ },
24
48
  fontFamily: {
25
- sans: 'var(--font-family)',
26
- mono: 'var(--font-family-mono)',
49
+ sans: 'var(--zen-font-family)',
50
+ mono: 'var(--zen-font-family-mono)',
27
51
  },
28
52
  colors: {
29
53
  // Primary accent/brand color
30
54
  primary: {
31
- DEFAULT: 'var(--primary)',
32
- foreground: 'var(--primary-foreground)',
55
+ DEFAULT: 'var(--zen-primary)',
56
+ fg: 'var(--zen-primary-fg)',
33
57
  },
34
58
  // Surface colors (backgrounds)
35
59
  surface: {
36
- base: 'var(--surface-base)',
37
- raised: 'var(--surface-raised)',
38
- sunken: 'var(--surface-sunken)',
39
- overlay: 'var(--surface-overlay)',
40
- inverted: 'var(--surface-inverted)',
41
- disabled: 'var(--surface-disabled)',
60
+ DEFAULT: 'var(--zen-surface)',
61
+ raised: 'var(--zen-surface-raised)',
62
+ sunken: 'var(--zen-surface-sunken)',
63
+ overlay: 'var(--zen-surface-overlay)',
64
+ inverted: 'var(--zen-surface-inverted)',
65
+ disabled: 'var(--zen-surface-disabled)',
42
66
  },
43
67
  // Text colors
44
- foreground: {
45
- DEFAULT: 'var(--text-primary)',
46
- primary: 'var(--text-primary)',
47
- muted: 'var(--text-muted)',
48
- disabled: 'var(--text-disabled)',
68
+ fg: {
69
+ DEFAULT: 'var(--zen-fg)',
70
+ muted: 'var(--zen-fg-muted)',
71
+ disabled: 'var(--zen-fg-disabled)',
49
72
  },
50
73
  // Border colors
51
74
  edge: {
52
- DEFAULT: 'var(--border-default)',
53
- muted: 'var(--border-muted)',
54
- strong: 'var(--border-strong)',
75
+ DEFAULT: 'var(--zen-border)',
76
+ muted: 'var(--zen-border-muted)',
77
+ strong: 'var(--zen-border-strong)',
55
78
  },
56
79
  // Interactive state colors
57
80
  interactive: {
58
- DEFAULT: 'var(--interactive-bg)',
59
- hover: 'var(--interactive-bg-hover)',
60
- pressed: 'var(--interactive-bg-pressed)',
81
+ DEFAULT: 'var(--zen-interactive-bg)',
82
+ hover: 'var(--zen-interactive-bg-hover)',
83
+ pressed: 'var(--zen-interactive-bg-pressed)',
61
84
  },
62
85
  // Focus colors
63
86
  focus: {
64
- ring: 'var(--focus-ring)',
65
- offset: 'var(--focus-ring-offset)',
87
+ ring: 'var(--zen-focus-ring)',
88
+ offset: 'var(--zen-focus-offset)',
66
89
  },
67
90
  // Status colors
68
91
  status: {
69
- info: 'var(--status-info)',
70
- 'info-bg': 'var(--status-info-bg)',
71
- 'info-text': 'var(--status-info-text)',
72
- success: 'var(--status-success)',
73
- 'success-bg': 'var(--status-success-bg)',
74
- 'success-text': 'var(--status-success-text)',
75
- warning: 'var(--status-warning)',
76
- 'warning-bg': 'var(--status-warning-bg)',
77
- 'warning-text': 'var(--status-warning-text)',
78
- error: 'var(--status-error)',
79
- 'error-bg': 'var(--status-error-bg)',
80
- 'error-text': 'var(--status-error-text)',
92
+ info: 'var(--zen-status-info)',
93
+ 'info-bg': 'var(--zen-status-info-bg)',
94
+ 'info-fg': 'var(--zen-status-info-fg)',
95
+ success: 'var(--zen-status-success)',
96
+ 'success-bg': 'var(--zen-status-success-bg)',
97
+ 'success-fg': 'var(--zen-status-success-fg)',
98
+ warning: 'var(--zen-status-warning)',
99
+ 'warning-bg': 'var(--zen-status-warning-bg)',
100
+ 'warning-fg': 'var(--zen-status-warning-fg)',
101
+ error: 'var(--zen-status-error)',
102
+ 'error-bg': 'var(--zen-status-error-bg)',
103
+ 'error-fg': 'var(--zen-status-error-fg)',
81
104
  },
82
105
  },
83
106
  },