@datalayer/primer-addons 1.0.28 → 1.0.29

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.
@@ -25,9 +25,11 @@ export declare const loopColors: {
25
25
  loopBrand: string;
26
26
  loopOn: string;
27
27
  loopAccent: string;
28
+ loopBrandHover: string;
28
29
  loopText: string;
29
30
  loopEmphasis: string;
30
31
  loopEmphasisHover: string;
32
+ loopRing: string;
31
33
  loopTint: string;
32
34
  loopStage: string;
33
35
  loopBright: string;
@@ -33,13 +33,15 @@ export const loopColors = {
33
33
  loopBrand: '#7ADBB8', // The accent — a bubble, a send button, a swatch
34
34
  loopOn: '#06281E', // Text that sits on the accent (9.5 to 1)
35
35
  loopAccent: '#4FC79C', // Deeper accent — charts, highlights
36
- loopText: '#0F6B4F', // Accessible accent text & links on white (6.5 to 1)
37
- loopEmphasis: '#0F6B4F', // The one filled button, and the person's bubble: white text, 6.5 to 1
38
- loopEmphasisHover: '#0A5640', // The same, pressed
36
+ loopBrandHover: '#6CCFAA', // The filled button, hovered: dark text 8.4 to 1
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
+ loopRing: '#0F6B4F', // The focus ring: 3 to 1 or more around every pastel
39
41
  loopTint: '#F0FAF6', // Quiet tint — a draft, a callout
40
42
  loopStage: '#DDF5EC', // The stage behind an application
41
43
  loopBright: '#8FE5C6', // Accent text & links on dark
42
- loopHover: '#0A5640', // Accent text hover
44
+ loopHover: '#227C5C', // Accent text hover
43
45
  // The stage and the quiet tint, on dark
44
46
  loopStageDark: '#10261F',
45
47
  loopTintDark: '#17211D',
@@ -1127,7 +1127,7 @@ export declare const loopFontFamily = "Inter, ui-sans-serif, system-ui, -apple-s
1127
1127
  export declare const loopMotionVars: Record<string, string>;
1128
1128
  /**
1129
1129
  * The focus ring (LOOP T-15): 3 to 1 against the page and around a pill of
1130
- * any accent, in both modes. In light mode the deep accent green does it —
1130
+ * any accent, in both modes. In light mode the deep mint does it — darker than the text, the one place it is —
1131
1131
  * a halo in the theme's colour, as a system's own focus ring is — 6.5 to 1
1132
1132
  * on white and 3.28 or more around every pastel. In dark mode no
1133
1133
  * colour clears 3 to 1 against both the near-black page and the six
@@ -83,35 +83,36 @@ const loopLight = {
83
83
  activeBorder: 'transparent',
84
84
  selectedBg: '#E3E3E7',
85
85
  counterBg: 'rgba(29, 29, 31, 0.08)',
86
- // The one filled button of a screen, in the accent: the thing to press.
86
+ // The one filled button of a screen, in the accent: the soft mint, with
87
+ // its dark text — the same pastel as on dark, never the platform's deep green.
87
88
  primary: {
88
- text: '#FFFFFF',
89
- bg: loopColors.loopEmphasis,
90
- border: loopColors.loopEmphasis,
91
- hoverBg: loopColors.loopEmphasisHover,
92
- hoverBorder: loopColors.loopEmphasisHover,
93
- selectedBg: loopColors.loopText,
94
- disabledText: 'rgba(255, 255, 255, 0.85)',
95
- disabledBg: '#A9D8C6',
96
- disabledBorder: '#A9D8C6',
97
- icon: '#FFFFFF',
98
- counterBg: 'rgba(255, 255, 255, 0.2)',
89
+ text: loopColors.loopOn,
90
+ bg: loopColors.loopBrand,
91
+ border: loopColors.loopBrand,
92
+ hoverBg: loopColors.loopBrandHover,
93
+ hoverBorder: loopColors.loopBrandHover,
94
+ selectedBg: loopColors.loopAccent,
95
+ disabledText: 'rgba(6, 40, 30, 0.5)',
96
+ disabledBg: '#CDEFE2',
97
+ disabledBorder: '#CDEFE2',
98
+ icon: loopColors.loopOn,
99
+ counterBg: 'rgba(6, 40, 30, 0.12)',
99
100
  },
100
101
  outline: {
101
102
  text: loopColors.loopText,
102
- hoverText: '#FFFFFF',
103
- hoverBg: loopColors.loopText,
104
- hoverBorder: loopColors.loopText,
105
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
106
- selectedText: '#FFFFFF',
107
- selectedBg: loopColors.loopHover,
108
- selectedBorder: loopColors.loopHover,
103
+ hoverText: loopColors.loopOn,
104
+ hoverBg: loopColors.loopBrand,
105
+ hoverBorder: loopColors.loopBrand,
106
+ hoverCounterBg: 'rgba(6, 40, 30, 0.12)',
107
+ selectedText: loopColors.loopOn,
108
+ selectedBg: loopColors.loopAccent,
109
+ selectedBorder: loopColors.loopAccent,
109
110
  disabledText: loopColors.gray,
110
111
  disabledBg: loopColors.subtle,
111
112
  disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
112
113
  counterBg: 'rgba(0, 0, 0, 0.05)',
113
114
  counterFg: loopColors.loopText,
114
- hoverCounterFg: '#FFFFFF',
115
+ hoverCounterFg: loopColors.loopOn,
115
116
  disabledCounterFg: loopColors.gray,
116
117
  },
117
118
  danger: {
@@ -360,7 +361,7 @@ export const loopMotionVars = {
360
361
  };
361
362
  /**
362
363
  * The focus ring (LOOP T-15): 3 to 1 against the page and around a pill of
363
- * any accent, in both modes. In light mode the deep accent green does it —
364
+ * any accent, in both modes. In light mode the deep mint does it — darker than the text, the one place it is —
364
365
  * a halo in the theme's colour, as a system's own focus ring is — 6.5 to 1
365
366
  * on white and 3.28 or more around every pastel. In dark mode no
366
367
  * colour clears 3 to 1 against both the near-black page and the six
@@ -368,7 +369,7 @@ export const loopMotionVars = {
368
369
  * mid grey does, at 3.04 to 1 — and 2.77 to 1 on the subtle dark surface,
369
370
  * the one place it falls short.
370
371
  */
371
- export const loopFocusRing = { light: loopColors.loopText, dark: '#636363' };
372
+ export const loopFocusRing = { light: loopColors.loopRing, dark: '#636363' };
372
373
  /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
373
374
  export const loopThemeStyles = buildThemeStyles(loopLight, loopDark, {
374
375
  fontFamily: loopFontFamily,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/primer-addons",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "license": "BSD-3-Clause",
5
5
  "scripts": {
6
6
  "build": "npm run build:lib",