@neuravision/construct 1.2.0 → 2.0.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.
@@ -131,7 +131,7 @@
131
131
  inset-inline: var(--ct-navbar-item-padding-x);
132
132
  inset-block-end: calc(-1 * var(--ct-navbar-item-padding-y));
133
133
  height: var(--ct-navbar-item-indicator-size);
134
- background: var(--ct-navbar-item-color-active);
134
+ background: var(--color-brand-accent);
135
135
  border-radius: var(--radius-round);
136
136
  }
137
137
 
@@ -223,7 +223,7 @@
223
223
  .ct-navbar__menu-item:focus-visible,
224
224
  .ct-navbar__menu-item[data-highlighted] {
225
225
  background: var(--color-bg-muted);
226
- outline: var(--border-medium) solid var(--color-brand-primary);
226
+ outline: var(--border-medium) solid var(--color-focus-ring);
227
227
  outline-offset: -2px;
228
228
  }
229
229
 
@@ -493,12 +493,12 @@
493
493
  /* ── Dark ──────────────────────────────────────────────────────── */
494
494
 
495
495
  .ct-navbar--dark {
496
- --_dark-bg: var(--color-slate-900);
497
- --_dark-bg-hover: var(--color-slate-800);
498
- --_dark-border: var(--color-slate-800);
499
- --_dark-text: var(--color-slate-300);
496
+ --_dark-bg: var(--color-stone-900);
497
+ --_dark-bg-hover: var(--color-stone-800);
498
+ --_dark-border: var(--color-stone-800);
499
+ --_dark-text: var(--color-stone-300);
500
500
  --_dark-text-strong: var(--color-text-inverse);
501
- --_dark-text-muted: var(--color-slate-400);
501
+ --_dark-text-muted: var(--color-stone-400);
502
502
 
503
503
  --ct-navbar-bg: var(--_dark-bg);
504
504
  --ct-navbar-border-color: var(--_dark-border);
@@ -521,7 +521,7 @@
521
521
  }
522
522
 
523
523
  .ct-navbar--dark .ct-navbar__link[aria-current='page']::after {
524
- background: var(--color-brand-primary);
524
+ background: var(--color-brand-accent);
525
525
  }
526
526
 
527
527
  .ct-navbar--dark .ct-navbar__link-chevron {
@@ -10,11 +10,11 @@
10
10
  --ct-pagination-radius: var(--radius-sm);
11
11
  --ct-pagination-bg: var(--color-bg-elevated);
12
12
  --ct-pagination-bg-hover: var(--color-bg-muted);
13
- --ct-pagination-bg-active: var(--color-brand-primary);
13
+ --ct-pagination-bg-active: var(--color-brand-accent);
14
14
  --ct-pagination-border: var(--color-border-default);
15
- --ct-pagination-border-active: var(--color-brand-primary);
15
+ --ct-pagination-border-active: var(--color-brand-accent);
16
16
  --ct-pagination-color: var(--color-text-primary);
17
- --ct-pagination-color-active: var(--color-text-inverse);
17
+ --ct-pagination-color-active: var(--color-brand-on-accent);
18
18
  --ct-pagination-color-muted: var(--color-text-muted);
19
19
 
20
20
  display: flex;
@@ -4,7 +4,7 @@
4
4
  --ct-progress-height: 8px;
5
5
  --ct-progress-radius: var(--radius-pill);
6
6
  --ct-progress-bg: var(--color-bg-muted);
7
- --ct-progress-fill: var(--color-brand-primary);
7
+ --ct-progress-fill: var(--color-brand-accent);
8
8
 
9
9
  width: 100%;
10
10
  height: var(--ct-progress-height);
@@ -160,7 +160,7 @@
160
160
 
161
161
  .ct-select-menu__option[data-highlighted] {
162
162
  background: var(--color-bg-muted);
163
- outline: var(--border-medium) solid var(--color-brand-primary);
163
+ outline: var(--border-medium) solid var(--color-focus-ring);
164
164
  outline-offset: -2px;
165
165
  }
166
166
 
@@ -150,6 +150,8 @@
150
150
  background: var(--color-bg-muted);
151
151
  color: var(--color-brand-primary);
152
152
  font-weight: var(--font-weight-semibold);
153
+ /* The datum: an orange leading edge marks the current location. */
154
+ box-shadow: inset var(--border-thick) 0 0 0 var(--color-brand-accent);
153
155
  }
154
156
 
155
157
  .ct-nav-item__icon {
@@ -178,6 +180,6 @@
178
180
 
179
181
  .ct-nav-item--active .ct-nav-item__badge,
180
182
  .ct-nav-item[aria-current='page'] .ct-nav-item__badge {
181
- background: var(--color-brand-primary);
182
- color: var(--color-text-inverse);
183
+ background: var(--color-brand-accent);
184
+ color: var(--color-brand-on-accent);
183
185
  }
@@ -3,11 +3,11 @@
3
3
  .ct-slider {
4
4
  --ct-slider-track-height: 4px;
5
5
  --ct-slider-track-bg: var(--color-bg-muted);
6
- --ct-slider-track-fill: var(--color-brand-primary);
6
+ --ct-slider-track-fill: var(--color-brand-accent);
7
7
  --ct-slider-track-radius: var(--radius-pill);
8
8
  --ct-slider-thumb-size: 20px;
9
9
  --ct-slider-thumb-bg: var(--color-bg-elevated);
10
- --ct-slider-thumb-border: var(--color-brand-primary);
10
+ --ct-slider-thumb-border: var(--color-brand-accent);
11
11
  --ct-slider-thumb-shadow: var(--shadow-xs);
12
12
 
13
13
  display: flex;
@@ -1,7 +1,7 @@
1
1
  .ct-spinner {
2
2
  --ct-spinner-size: 24px;
3
3
  --ct-spinner-border: 3px;
4
- --ct-spinner-color: var(--color-brand-primary);
4
+ --ct-spinner-color: var(--color-brand-accent);
5
5
  --ct-spinner-track: var(--color-border-subtle);
6
6
 
7
7
  width: var(--ct-spinner-size);
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .ct-switch__input:checked {
37
- background: var(--color-brand-primary);
37
+ background: var(--color-brand-accent);
38
38
  }
39
39
 
40
40
  .ct-switch__input:checked::after {
@@ -47,7 +47,7 @@
47
47
  }
48
48
 
49
49
  .ct-switch__input:checked:not(:disabled):hover {
50
- background: var(--color-brand-primary-hover);
50
+ background: var(--color-brand-accent-hover);
51
51
  }
52
52
  }
53
53
 
@@ -7,7 +7,7 @@
7
7
  --ct-tabs-trigger-font-size: var(--font-size-sm);
8
8
  --ct-tabs-trigger-line-height: var(--line-height-sm);
9
9
  --ct-tabs-indicator-size: 2px;
10
- --ct-tabs-indicator-color: var(--color-brand-primary);
10
+ --ct-tabs-indicator-color: var(--color-brand-accent);
11
11
 
12
12
  display: grid;
13
13
  gap: var(--ct-tabs-gap);
@@ -9,8 +9,8 @@
9
9
  --ct-toggle-group-item-font-size: var(--font-size-sm);
10
10
  --ct-toggle-group-item-line-height: var(--line-height-sm);
11
11
  --ct-toggle-group-item-color: var(--color-text-secondary);
12
- --ct-toggle-group-item-bg-active: var(--color-brand-primary);
13
- --ct-toggle-group-item-color-active: var(--color-text-inverse);
12
+ --ct-toggle-group-item-bg-active: var(--color-brand-accent);
13
+ --ct-toggle-group-item-color-active: var(--color-brand-on-accent);
14
14
  --ct-toggle-group-item-bg-hover: var(--color-bg-muted);
15
15
  --ct-toggle-group-item-min-height: var(--control-height-md);
16
16
  --ct-toggle-group-gap: 0;
@@ -9,7 +9,7 @@
9
9
  --ct-tree-row-radius: var(--radius-sm);
10
10
  --ct-tree-row-bg: transparent;
11
11
  --ct-tree-row-bg-hover: var(--color-bg-muted);
12
- --ct-tree-row-bg-selected: color-mix(in srgb, var(--color-brand-primary) 14%, transparent);
12
+ --ct-tree-row-bg-selected: color-mix(in srgb, var(--color-brand-accent) 14%, transparent);
13
13
  --ct-tree-row-color: var(--color-text-primary);
14
14
  --ct-tree-row-color-selected: var(--color-brand-primary);
15
15
 
@@ -173,7 +173,7 @@
173
173
  }
174
174
 
175
175
  .ct-tree__label mark {
176
- background: color-mix(in srgb, var(--color-brand-primary) 22%, transparent);
176
+ background: color-mix(in srgb, var(--color-brand-accent) 22%, transparent);
177
177
  color: inherit;
178
178
  border-radius: 2px;
179
179
  padding-inline: 1px;
@@ -185,9 +185,9 @@ CSS custom properties cannot be used inside `@media` queries. Use the raw pixel
185
185
 
186
186
  ## Fonts
187
187
 
188
- - **Default**: Fonts are loaded via Google Fonts in `foundations.css` (Sora, Source Sans 3, JetBrains Mono)
188
+ - **Default**: Fonts are loaded via Google Fonts in `foundations.css` (Manrope for display + body, JetBrains Mono for code/data)
189
189
  - **Self-hosting**: For CSP or privacy requirements, replace Google Fonts import with local `@font-face` rules
190
- - **Weights**: Ensure 400, 500, 600, and 700 are available
190
+ - **Weights**: Ensure 400, 500, 600, 700, and 800 are available
191
191
 
192
192
  ## Governance
193
193
 
package/foundations.css CHANGED
@@ -1,4 +1,4 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
1
+ @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
2
2
  @import './tokens/tokens.css';
3
3
 
4
4
  :root {
@@ -186,7 +186,7 @@ button {
186
186
 
187
187
  ::selection {
188
188
  background: var(--color-brand-accent);
189
- color: var(--color-text-inverse);
189
+ color: var(--color-brand-on-accent);
190
190
  }
191
191
 
192
192
  .ct-container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuravision/construct",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "Construct Design System - Accessible, token-based design system for modern web applications",
5
5
  "license": "MIT",
6
6
  "repository": {