@datalayer/primer-addons 1.0.29 → 1.0.30

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.
@@ -27,8 +27,6 @@ export declare const loopColors: {
27
27
  loopAccent: string;
28
28
  loopBrandHover: string;
29
29
  loopText: string;
30
- loopEmphasis: string;
31
- loopEmphasisHover: string;
32
30
  loopRing: string;
33
31
  loopTint: string;
34
32
  loopStage: string;
@@ -35,8 +35,6 @@ export const loopColors = {
35
35
  loopAccent: '#4FC79C', // Deeper accent — charts, highlights
36
36
  loopBrandHover: '#6CCFAA', // The filled button, hovered: dark text 8.4 to 1
37
37
  loopText: '#248462', // Accent text & links on white: the lightest mint that reads, 4.6 to 1
38
- loopEmphasis: '#248462', // A filled accent with white text (a counter, a badge): 4.6 to 1
39
- loopEmphasisHover: '#227C5C', // The same, pressed
40
38
  loopRing: '#0F6B4F', // The focus ring: 3 to 1 or more around every pastel
41
39
  loopTint: '#F0FAF6', // Quiet tint — a draft, a callout
42
40
  loopStage: '#DDF5EC', // The stage behind an application
@@ -1,3 +1,6 @@
1
+ import { type ThemeColorDefs } from '../css/createThemeCSSVars';
2
+ export declare const loopLight: ThemeColorDefs;
3
+ export declare const loopDark: ThemeColorDefs;
1
4
  /**
2
5
  * What the Loop theme sets beside colour, the same in both modes.
3
6
  *
@@ -21,7 +21,7 @@ import { theme as primerTheme } from '@primer/react';
21
21
  import { loopAccentVars, loopColors } from '../colors/loopColors';
22
22
  import { buildThemeStyles } from '../css/createThemeCSSVars';
23
23
  /* ── Light-mode colour definitions ───────────────────────────────────── */
24
- const loopLight = {
24
+ export const loopLight = {
25
25
  canvas: {
26
26
  default: loopColors.white,
27
27
  subtle: loopColors.subtle,
@@ -33,7 +33,10 @@ const loopLight = {
33
33
  },
34
34
  accent: {
35
35
  fg: loopColors.loopText,
36
- emphasis: loopColors.loopEmphasis,
36
+ // The accent itself, as on dark: the soft mint that dark text sits on —
37
+ // the filled button, the person's bubble, the assistant's avatar. The
38
+ // chat pairs it with the button's text, so the two stay one colour.
39
+ emphasis: loopColors.loopBrand,
37
40
  muted: loopColors.loopBrand,
38
41
  subtle: loopColors.loopTint,
39
42
  },
@@ -136,7 +139,7 @@ const loopLight = {
136
139
  },
137
140
  };
138
141
  /* ── Dark-mode colour definitions ────────────────────────────────────── */
139
- const loopDark = {
142
+ export const loopDark = {
140
143
  canvas: {
141
144
  default: loopColors.black,
142
145
  subtle: loopColors.subtleDark,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/primer-addons",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "license": "BSD-3-Clause",
5
5
  "scripts": {
6
6
  "build": "npm run build:lib",