@w-iris/themes 0.1.14 → 0.1.16

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.
Files changed (3) hide show
  1. package/base.css +17 -0
  2. package/light.css +96 -20
  3. package/package.json +1 -1
package/base.css CHANGED
@@ -14,6 +14,8 @@
14
14
  min-height: 100vh;
15
15
  -webkit-font-smoothing: antialiased;
16
16
  -moz-osx-font-smoothing: grayscale;
17
+ font-size: var(--wi-font-size-body);
18
+ line-height: var(--wi-line-height-body);
17
19
  }
18
20
 
19
21
  :where(button, input, textarea, select) {
@@ -25,6 +27,21 @@
25
27
  text-decoration: none;
26
28
  }
27
29
 
30
+ :where(:focus-visible) {
31
+ scroll-margin: var(--wi-space-lg);
32
+ }
33
+
34
+ @media (prefers-reduced-motion: reduce) {
35
+ *,
36
+ *::before,
37
+ *::after {
38
+ scroll-behavior: auto !important;
39
+ animation-duration: 0.01ms !important;
40
+ animation-iteration-count: 1 !important;
41
+ transition-duration: 0.01ms !important;
42
+ }
43
+ }
44
+
28
45
  .wi-sr-only {
29
46
  position: absolute;
30
47
  width: 1px;
package/light.css CHANGED
@@ -2,32 +2,108 @@
2
2
  --wi-font-sans: Inter, "Segoe UI", Arial, sans-serif;
3
3
  --wi-font-mono: Consolas, "Courier New", monospace;
4
4
 
5
- --wi-color-primary: #7c3aed;
6
- --wi-color-primary-hover: #6d28d9;
5
+ --wi-font-size-caption: 0.75rem;
6
+ --wi-font-size-label: 0.875rem;
7
+ --wi-font-size-body: 1rem;
8
+ --wi-font-size-heading: 1.25rem;
9
+ --wi-font-size-display: 1.75rem;
10
+ --wi-line-height-tight: 1.2;
11
+ --wi-line-height-body: 1.5;
12
+ --wi-line-height-relaxed: 1.65;
13
+ --wi-font-weight-regular: 400;
14
+ --wi-font-weight-medium: 500;
15
+ --wi-font-weight-semibold: 600;
16
+ --wi-font-weight-bold: 700;
17
+
18
+ --wi-space-xs: 0.25rem;
19
+ --wi-space-sm: 0.5rem;
20
+ --wi-space-md: 0.75rem;
21
+ --wi-space-lg: 1rem;
22
+ --wi-space-xl: 1.5rem;
23
+ --wi-space-2xl: 2rem;
24
+ --wi-space-3xl: 3rem;
25
+
26
+ --wi-surface-canvas: #f7f9fc;
27
+ --wi-surface-card: #ffffff;
28
+ --wi-surface-elevated: #ffffff;
29
+ --wi-surface-muted: #f8fafc;
30
+ --wi-surface-hover: #f4f2ff;
31
+ --wi-text-primary: #1f2937;
32
+ --wi-text-heading: #111827;
33
+ --wi-text-secondary: #64748b;
34
+ --wi-border-subtle: #e2e8f0;
35
+ --wi-border-strong: #cbd5e1;
36
+ --wi-action-primary: #5b5bd6;
37
+ --wi-action-primary-hover: #4f46e5;
38
+ --wi-action-primary-soft: #eef2ff;
39
+ --wi-action-primary-border: #c7d2fe;
40
+ --wi-on-action: #ffffff;
41
+ --wi-status-success: #15803d;
42
+ --wi-status-success-soft: #ecfdf3;
43
+ --wi-status-warning: #9a5800;
44
+ --wi-status-warning-soft: #fff7ed;
45
+ --wi-status-danger: #b91c1c;
46
+ --wi-status-danger-soft: #fef2f2;
47
+ --wi-status-info: #0369a1;
48
+ --wi-status-info-soft: #f0f9ff;
49
+ --wi-focus-ring: rgba(99, 102, 241, 0.3);
50
+ --wi-overlay-backdrop: rgba(15, 23, 42, 0.48);
51
+ --wi-brand-gradient: linear-gradient(135deg, #7373e6 0%, #5b5bd6 100%);
52
+ --wi-auth-frame-gradient: linear-gradient(
53
+ 180deg,
54
+ rgba(91, 91, 214, 0.94) 0%,
55
+ rgba(129, 140, 248, 0.48) 10%,
56
+ rgba(255, 255, 255, 0.98) 16%
57
+ );
58
+
59
+ --wi-color-primary: var(--wi-action-primary);
60
+ --wi-color-primary-hover: var(--wi-action-primary-hover);
7
61
  --wi-color-secondary: #64748b;
8
- --wi-color-success: #16a34a;
9
- --wi-color-warning: #f59e0b;
10
- --wi-color-danger: #dc2626;
11
- --wi-color-page: #eff3f8;
12
- --wi-color-surface: #ffffff;
13
- --wi-color-surface-muted: #f8f9fa;
14
- --wi-color-border: #dee2e6;
15
- --wi-color-border-strong: #ced4da;
16
- --wi-color-text: #495057;
17
- --wi-color-heading: #343a40;
18
- --wi-color-muted: #6c757d;
19
- --wi-color-focus: rgba(124, 58, 237, 0.24);
62
+ --wi-color-success: var(--wi-status-success);
63
+ --wi-color-warning: var(--wi-status-warning);
64
+ --wi-color-danger: var(--wi-status-danger);
65
+ --wi-color-page: var(--wi-surface-canvas);
66
+ --wi-color-surface: var(--wi-surface-card);
67
+ --wi-color-surface-muted: var(--wi-surface-muted);
68
+ --wi-color-border: var(--wi-border-subtle);
69
+ --wi-color-border-strong: var(--wi-border-strong);
70
+ --wi-color-text: var(--wi-text-primary);
71
+ --wi-color-heading: var(--wi-text-heading);
72
+ --wi-color-muted: var(--wi-text-secondary);
73
+ --wi-color-focus: var(--wi-focus-ring);
20
74
 
21
75
  --wi-radius-sm: 0.375rem;
22
- --wi-radius-md: 0.75rem;
23
- --wi-radius-lg: 0.75rem;
76
+ --wi-radius-md: 0.625rem;
77
+ --wi-radius-lg: 0.875rem;
78
+ --wi-radius-xl: 1.25rem;
24
79
  --wi-radius-full: 999px;
25
80
 
26
- --wi-shadow-sm:
27
- 0 3px 5px rgba(0, 0, 0, 0.02), 0 0 2px rgba(0, 0, 0, 0.05),
28
- 0 1px 4px rgba(0, 0, 0, 0.08);
29
- --wi-shadow-md: 0 20px 45px rgba(15, 23, 42, 0.14);
81
+ --wi-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
82
+ --wi-shadow-card: 0 2px 10px rgba(15, 23, 42, 0.05);
83
+ --wi-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
84
+ --wi-shadow-overlay: 0 20px 45px rgba(15, 23, 42, 0.16);
85
+ --wi-shadow-action: 0 10px 20px rgba(79, 70, 229, 0.16);
30
86
 
31
87
  --wi-motion-fast: 120ms;
32
88
  --wi-motion-normal: 180ms;
89
+ --wi-motion-slow: 240ms;
90
+ --wi-motion-easing: cubic-bezier(0.2, 0, 0, 1);
91
+
92
+ --wi-z-sticky: 100;
93
+ --wi-z-topbar: 997;
94
+ --wi-z-overlay: 1000;
95
+ --wi-z-toast: 1100;
96
+
97
+ /* PrimeReact semantic mapping. Load this file after the PrimeReact theme. */
98
+ --primary-color: var(--wi-action-primary);
99
+ --primary-color-text: var(--wi-on-action);
100
+ --surface-ground: var(--wi-surface-canvas);
101
+ --surface-card: var(--wi-surface-card);
102
+ --surface-overlay: var(--wi-surface-elevated);
103
+ --surface-border: var(--wi-border-subtle);
104
+ --surface-hover: var(--wi-surface-hover);
105
+ --text-color: var(--wi-text-primary);
106
+ --text-color-secondary: var(--wi-text-secondary);
107
+ --focus-ring: 0 0 0 0.2rem var(--wi-focus-ring);
108
+ --border-radius: var(--wi-radius-md);
33
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w-iris/themes",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./base.css": "./base.css",