@re-venue/design-tokens 0.1.0 → 0.2.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@re-venue/design-tokens",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.scss",
package/src/_themes.scss CHANGED
@@ -18,13 +18,38 @@ $theme-light: (
18
18
  bg-muted: #777777,
19
19
 
20
20
  border: #111111,
21
+ border-subtle: #d1d5db,
22
+ border-muted: #e5e7eb,
21
23
 
22
24
  accent: #e8c55b,
23
25
  accent-hover: #f8ca41,
24
26
  accent-contrast: #111111,
25
27
 
26
28
  accent-alt: #0d75a4,
27
- accent-alt-contrast: #ffffff
29
+ accent-alt-contrast: #ffffff,
30
+
31
+ primary: #16a34a,
32
+ primary-hover: #15803d,
33
+ primary-contrast: #ffffff,
34
+ primary-focus: rgba(22, 163, 74, 0.1),
35
+
36
+ success: #10b981,
37
+ success-bg: #d1fae5,
38
+ success-text: #065f46,
39
+
40
+ error: #ef4444,
41
+ error-hover: #dc2626,
42
+ error-bg: #fef2f2,
43
+ error-text: #991b1b,
44
+ error-border: #fecaca,
45
+
46
+ warning: #f59e0b,
47
+ warning-bg: #fef3c7,
48
+ warning-text: #92400e,
49
+
50
+ info: #3b82f6,
51
+ info-bg: #dbeafe,
52
+ info-text: #1e40af
28
53
  );
29
54
 
30
55
  $theme-dark: (
@@ -34,14 +59,40 @@ $theme-dark: (
34
59
  text-inverse: #111111,
35
60
 
36
61
  bg-page: #0f172a,
37
- bg-panel: #ffffff,
62
+ bg-panel: #1e293b,
63
+ bg-input: #1e293b,
38
64
  bg-surface: #1e293b,
39
65
  bg-elevated: #273449,
40
66
  bg-inverse: #f5f5f5,
41
67
 
42
68
  border: #334155,
69
+ border-subtle: #475569,
70
+ border-muted: #1e293b,
43
71
 
44
72
  accent: #60a5fa,
45
73
  accent-hover: #3b82f6,
46
- accent-contrast: #020617
74
+ accent-contrast: #020617,
75
+
76
+ primary: #4ade80,
77
+ primary-hover: #22c55e,
78
+ primary-contrast: #ffffff,
79
+ primary-focus: rgba(74, 222, 128, 0.15),
80
+
81
+ success: #34d399,
82
+ success-bg: #064e3b,
83
+ success-text: #6ee7b7,
84
+
85
+ error: #f87171,
86
+ error-hover: #ef4444,
87
+ error-bg: #450a0a,
88
+ error-text: #fca5a5,
89
+ error-border: #7f1d1d,
90
+
91
+ warning: #fbbf24,
92
+ warning-bg: #451a03,
93
+ warning-text: #fde68a,
94
+
95
+ info: #60a5fa,
96
+ info-bg: #1e3a5f,
97
+ info-text: #bfdbfe
47
98
  );
@@ -1,5 +1,30 @@
1
- $padding: 1.25rem;
2
- $border-radius: 0.5rem;
3
- $gap: 1rem;
4
- // $shadow-panel: rgba(149, 157, 165, 0.2) 0px 8px 24px;
1
+ // Spacing scale
2
+ $spacing-xs: 0.25rem; // 4px
3
+ $spacing-sm: 0.5rem; // 8px
4
+ $spacing-md: 1rem; // 16px
5
+ $spacing-lg: 1.25rem; // 20px
6
+ $spacing-xl: 2rem; // 32px
7
+ $spacing-2xl: 3rem; // 48px
8
+
9
+ // Backwards-compatible aliases
10
+ $padding: $spacing-lg;
11
+ $gap: $spacing-md;
12
+
13
+ // Border radius scale
14
+ $radius-sm: 4px;
15
+ $radius-md: 8px;
16
+ $radius-lg: 12px;
17
+ $radius-full: 999px;
18
+
19
+ // Backwards-compatible alias
20
+ $border-radius: $radius-md;
21
+
22
+ // Shadows
23
+ $shadow-sm: rgba(0, 0, 0, 0.08) 0px 1px 4px;
5
24
  $shadow-panel: rgba(0, 0, 0, 0.24) 0px 3px 8px;
25
+ $shadow-lg: rgba(0, 0, 0, 0.32) 0px 8px 24px;
26
+
27
+ // Transitions
28
+ $transition-fast: 0.1s;
29
+ $transition-base: 0.15s;
30
+ $transition-slow: 0.25s;