@datalayer/primer-addons 1.0.35 → 1.0.36

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/README.md CHANGED
@@ -81,7 +81,7 @@ import { loopAccentVars } from '@datalayer/primer-addons';
81
81
  baseStyles={loopAccentVars(app.interface.accent, mode)}>
82
82
  ```
83
83
 
84
- `loopAccentVars` sets the four `--loop-*` properties and nothing else: what reads them (the stage, a bubble drawn with them) takes the application's accent, while Primer's own accent tokens — the filled button, `--bgColor-accent-emphasis` — stay the theme's mint. `loopAccentStyles(name, mode)` sets everything the accent colours instead: those four, the accent fill and the filled button with its text, and Primer's accent text, links, muted border and muted tint (`--fgColor-accent`, `--fgColor-link`, `--borderColor-accent-muted`, `--bgColor-accent-muted`) — so that nothing on an application's page keeps mint beside its own accent.
84
+ `loopAccentVars` sets the four `--loop-*` properties and nothing else: what reads them (the stage, a bubble drawn with them) takes the application's accent, while Primer's own accent tokens — the filled button, `--bgColor-accent-emphasis` — stay the theme's mint. `loopAccentStyles(name, mode)` sets everything the accent colours instead: those four, the accent fill and the filled button with its text, and Primer's accent text, links, muted border and muted tint (`--fgColor-accent`, `--fgColor-link`, `--borderColor-accent-muted`, `--bgColor-accent-muted`), and the selected tab's underline (`--underlineNav-borderColor-active`, which the theme itself also sets to its mint in place of Primer's coral) — so that nothing on an application's page keeps mint beside its own accent.
85
85
 
86
86
  ### Shape, shadow, type and motion
87
87
 
@@ -158,6 +158,8 @@ export function loopAccentStyles(name, mode = 'light') {
158
158
  '--fgColor-link': accent.text[mode],
159
159
  '--borderColor-accent-muted': accent.accent,
160
160
  '--bgColor-accent-muted': accent.quiet[mode],
161
+ // The selected tab: underlined in the accent (T-14).
162
+ '--underlineNav-borderColor-active': accent.accent,
161
163
  '--button-primary-bgColor-rest': accent.accent,
162
164
  '--button-primary-borderColor-rest': accent.accent,
163
165
  '--button-primary-bgColor-hover': accent.accent,
@@ -18,7 +18,7 @@
18
18
  * its accent, the stage behind it, a bubble, a frame, a face.
19
19
  */
20
20
  import { theme as primerTheme } from '@primer/react';
21
- import { loopAccentVars, loopColors } from '../colors/loopColors';
21
+ import { loopAccentVars, loopAccents, loopColors } from '../colors/loopColors';
22
22
  import { buildThemeStyles } from '../css/createThemeCSSVars';
23
23
  /* ── Light-mode colour definitions ───────────────────────────────────── */
24
24
  export const loopLight = {
@@ -509,6 +509,8 @@ export const loopThemeStyles = buildThemeStyles(loopLight, loopDark, {
509
509
  '--loop-stage-gradient': loopStageGradient,
510
510
  '--loop-hairline': loopHairline.light,
511
511
  '--focus-outlineColor': loopFocusRing.light,
512
+ // The selected tab underlined in the accent, not Primer's coral (LOOP T-14).
513
+ '--underlineNav-borderColor-active': loopAccents.green.accent,
512
514
  },
513
515
  dark: {
514
516
  ...loopShapeVars,
@@ -519,6 +521,8 @@ export const loopThemeStyles = buildThemeStyles(loopLight, loopDark, {
519
521
  '--loop-stage-gradient': loopStageGradient,
520
522
  '--loop-hairline': loopHairline.dark,
521
523
  '--focus-outlineColor': loopFocusRing.dark,
524
+ // The selected tab underlined in the accent, not Primer's coral (LOOP T-14).
525
+ '--underlineNav-borderColor-active': loopAccents.green.accent,
522
526
  },
523
527
  },
524
528
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/primer-addons",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "license": "BSD-3-Clause",
5
5
  "scripts": {
6
6
  "build": "npm run build:lib",