@happyvertical/smrt-ui 0.57.46 → 0.57.48

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.
@@ -421,7 +421,12 @@ Modern Google Material Design 3 with refined colors and typography.
421
421
 
422
422
  ### Glass
423
423
 
424
- Apple-inspired glass morphism with backdrop blur effects.
424
+ Apple-inspired glass morphism with backdrop blur effects. The light primary
425
+ is `#0066cc`, not Apple's `#007aff`: `primary` is text on ghost buttons and
426
+ links, and `#007aff` was 3.6:1 on the light background (#4567). Every preset
427
+ is pinned by `__tests__/primary-text-contrast.test.ts`; Glass dark, Studio
428
+ light and SMRT light still sit below AA on some surfaces and are pinned at
429
+ their current ratios there (#4575).
425
430
 
426
431
  - **Colors**: Translucent surfaces, system colors, layered depth
427
432
  - **Effects**: Backdrop blur, saturation boost, frosted glass
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/glass/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH,OAAO,KAAK,EAIV,KAAK,EAEN,MAAM,aAAa,CAAC;AA2XrB;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KA2DxB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/glass/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH,OAAO,KAAK,EAIV,KAAK,EAEN,MAAM,aAAa,CAAC;AA+XrB;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KA2DxB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -12,10 +12,14 @@ import { appleEasing, borderRadiusScale, darkInsetHighlight, durationScale, hair
12
12
  * Translucent whites with subtle color tints
13
13
  */
14
14
  const lightColors = {
15
- // Primary - Apple system blue
16
- primary: '#007aff',
15
+ // Primary - Apple system blue, darkened for text. `#007aff` is only 3.6:1
16
+ // on `background` and 4.0:1 on white, so ghost buttons and links (which
17
+ // draw their text in `primary`) failed WCAG AA 4.5:1 on every light Glass
18
+ // surface; `#0066cc` clears it on all of them (5.0:1 on `#f2f2f7`) while
19
+ // `onPrimary` white stays 5.6:1 on filled controls (#4567).
20
+ primary: '#0066cc',
17
21
  onPrimary: '#ffffff',
18
- primaryContainer: 'rgba(0, 122, 255, 0.15)',
22
+ primaryContainer: 'rgba(0, 102, 204, 0.15)',
19
23
  onPrimaryContainer: '#003d80',
20
24
  // Secondary - System gray
21
25
  secondary: '#6c757d',
@@ -145,7 +149,7 @@ const darkColors = {
145
149
  // Inverse
146
150
  inverseSurface: '#f2f2f7',
147
151
  inverseOnSurface: '#000000',
148
- inversePrimary: '#007aff',
152
+ inversePrimary: '#0066cc',
149
153
  // Effects
150
154
  shadow: 'rgba(0, 0, 0, 0.4)',
151
155
  scrim: 'rgba(0, 0, 0, 0.6)',
@@ -15,9 +15,9 @@
15
15
  --smrt-theme-name: Glass;
16
16
  --smrt-color-scheme: light;
17
17
  --smrt-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
18
- --smrt-color-primary: #007aff;
18
+ --smrt-color-primary: #0066cc;
19
19
  --smrt-color-on-primary: #ffffff;
20
- --smrt-color-primary-container: rgba(0, 122, 255, 0.15);
20
+ --smrt-color-primary-container: rgba(0, 102, 204, 0.15);
21
21
  --smrt-color-on-primary-container: #003d80;
22
22
  --smrt-color-secondary: #6c757d;
23
23
  --smrt-color-on-secondary: #ffffff;
@@ -335,7 +335,7 @@
335
335
  --smrt-color-outline-variant: rgba(84, 84, 88, 0.35);
336
336
  --smrt-color-inverse-surface: #f2f2f7;
337
337
  --smrt-color-inverse-on-surface: #000000;
338
- --smrt-color-inverse-primary: #007aff;
338
+ --smrt-color-inverse-primary: #0066cc;
339
339
  --smrt-color-shadow: rgba(0, 0, 0, 0.4);
340
340
  --smrt-color-scrim: rgba(0, 0, 0, 0.6);
341
341
  --smrt-color-glass-backdrop: rgba(29, 29, 38, 0.72);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-ui",
3
- "version": "0.57.46",
3
+ "version": "0.57.48",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Domain-agnostic Svelte 5 UI runtime for SMRT: primitives, i18n client, theme system, and module UI registry",
6
6
  "type": "module",
@@ -176,7 +176,7 @@
176
176
  "access": "public"
177
177
  },
178
178
  "dependencies": {
179
- "@happyvertical/smrt-types": "0.57.46",
179
+ "@happyvertical/smrt-types": "0.57.48",
180
180
  "esm-env": "^1.2.2"
181
181
  },
182
182
  "peerDependencies": {
@@ -196,7 +196,7 @@
196
196
  }
197
197
  },
198
198
  "devDependencies": {
199
- "@happyvertical/speech": "^0.111.0",
199
+ "@happyvertical/speech": "^0.111.3",
200
200
  "@sveltejs/package": "^2.5.8",
201
201
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
202
202
  "@testing-library/jest-dom": "^7.0.1",