@datalayer/primer-addons 1.0.28 → 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.
|
@@ -25,9 +25,9 @@ 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
|
-
loopEmphasisHover: string;
|
|
30
|
+
loopRing: string;
|
|
31
31
|
loopTint: string;
|
|
32
32
|
loopStage: string;
|
|
33
33
|
loopBright: string;
|
|
@@ -33,13 +33,13 @@ 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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
+
loopRing: '#0F6B4F', // The focus ring: 3 to 1 or more around every pastel
|
|
39
39
|
loopTint: '#F0FAF6', // Quiet tint — a draft, a callout
|
|
40
40
|
loopStage: '#DDF5EC', // The stage behind an application
|
|
41
41
|
loopBright: '#8FE5C6', // Accent text & links on dark
|
|
42
|
-
loopHover: '#
|
|
42
|
+
loopHover: '#227C5C', // Accent text hover
|
|
43
43
|
// The stage and the quiet tint, on dark
|
|
44
44
|
loopStageDark: '#10261F',
|
|
45
45
|
loopTintDark: '#17211D',
|
|
@@ -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
|
*
|
|
@@ -1127,7 +1130,7 @@ export declare const loopFontFamily = "Inter, ui-sans-serif, system-ui, -apple-s
|
|
|
1127
1130
|
export declare const loopMotionVars: Record<string, string>;
|
|
1128
1131
|
/**
|
|
1129
1132
|
* 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
|
|
1133
|
+
* any accent, in both modes. In light mode the deep mint does it — darker than the text, the one place it is —
|
|
1131
1134
|
* a halo in the theme's colour, as a system's own focus ring is — 6.5 to 1
|
|
1132
1135
|
* on white and 3.28 or more around every pastel. In dark mode no
|
|
1133
1136
|
* colour clears 3 to 1 against both the near-black page and the six
|
|
@@ -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
|
-
|
|
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
|
},
|
|
@@ -83,35 +86,36 @@ const loopLight = {
|
|
|
83
86
|
activeBorder: 'transparent',
|
|
84
87
|
selectedBg: '#E3E3E7',
|
|
85
88
|
counterBg: 'rgba(29, 29, 31, 0.08)',
|
|
86
|
-
// The one filled button of a screen, in the accent: the
|
|
89
|
+
// The one filled button of a screen, in the accent: the soft mint, with
|
|
90
|
+
// its dark text — the same pastel as on dark, never the platform's deep green.
|
|
87
91
|
primary: {
|
|
88
|
-
text:
|
|
89
|
-
bg: loopColors.
|
|
90
|
-
border: loopColors.
|
|
91
|
-
hoverBg: loopColors.
|
|
92
|
-
hoverBorder: loopColors.
|
|
93
|
-
selectedBg: loopColors.
|
|
94
|
-
disabledText: 'rgba(
|
|
95
|
-
disabledBg: '#
|
|
96
|
-
disabledBorder: '#
|
|
97
|
-
icon:
|
|
98
|
-
counterBg: 'rgba(
|
|
92
|
+
text: loopColors.loopOn,
|
|
93
|
+
bg: loopColors.loopBrand,
|
|
94
|
+
border: loopColors.loopBrand,
|
|
95
|
+
hoverBg: loopColors.loopBrandHover,
|
|
96
|
+
hoverBorder: loopColors.loopBrandHover,
|
|
97
|
+
selectedBg: loopColors.loopAccent,
|
|
98
|
+
disabledText: 'rgba(6, 40, 30, 0.5)',
|
|
99
|
+
disabledBg: '#CDEFE2',
|
|
100
|
+
disabledBorder: '#CDEFE2',
|
|
101
|
+
icon: loopColors.loopOn,
|
|
102
|
+
counterBg: 'rgba(6, 40, 30, 0.12)',
|
|
99
103
|
},
|
|
100
104
|
outline: {
|
|
101
105
|
text: loopColors.loopText,
|
|
102
|
-
hoverText:
|
|
103
|
-
hoverBg: loopColors.
|
|
104
|
-
hoverBorder: loopColors.
|
|
105
|
-
hoverCounterBg: 'rgba(
|
|
106
|
-
selectedText:
|
|
107
|
-
selectedBg: loopColors.
|
|
108
|
-
selectedBorder: loopColors.
|
|
106
|
+
hoverText: loopColors.loopOn,
|
|
107
|
+
hoverBg: loopColors.loopBrand,
|
|
108
|
+
hoverBorder: loopColors.loopBrand,
|
|
109
|
+
hoverCounterBg: 'rgba(6, 40, 30, 0.12)',
|
|
110
|
+
selectedText: loopColors.loopOn,
|
|
111
|
+
selectedBg: loopColors.loopAccent,
|
|
112
|
+
selectedBorder: loopColors.loopAccent,
|
|
109
113
|
disabledText: loopColors.gray,
|
|
110
114
|
disabledBg: loopColors.subtle,
|
|
111
115
|
disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
|
|
112
116
|
counterBg: 'rgba(0, 0, 0, 0.05)',
|
|
113
117
|
counterFg: loopColors.loopText,
|
|
114
|
-
hoverCounterFg:
|
|
118
|
+
hoverCounterFg: loopColors.loopOn,
|
|
115
119
|
disabledCounterFg: loopColors.gray,
|
|
116
120
|
},
|
|
117
121
|
danger: {
|
|
@@ -135,7 +139,7 @@ const loopLight = {
|
|
|
135
139
|
},
|
|
136
140
|
};
|
|
137
141
|
/* ── Dark-mode colour definitions ────────────────────────────────────── */
|
|
138
|
-
const loopDark = {
|
|
142
|
+
export const loopDark = {
|
|
139
143
|
canvas: {
|
|
140
144
|
default: loopColors.black,
|
|
141
145
|
subtle: loopColors.subtleDark,
|
|
@@ -360,7 +364,7 @@ export const loopMotionVars = {
|
|
|
360
364
|
};
|
|
361
365
|
/**
|
|
362
366
|
* 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
|
|
367
|
+
* any accent, in both modes. In light mode the deep mint does it — darker than the text, the one place it is —
|
|
364
368
|
* a halo in the theme's colour, as a system's own focus ring is — 6.5 to 1
|
|
365
369
|
* on white and 3.28 or more around every pastel. In dark mode no
|
|
366
370
|
* colour clears 3 to 1 against both the near-black page and the six
|
|
@@ -368,7 +372,7 @@ export const loopMotionVars = {
|
|
|
368
372
|
* mid grey does, at 3.04 to 1 — and 2.77 to 1 on the subtle dark surface,
|
|
369
373
|
* the one place it falls short.
|
|
370
374
|
*/
|
|
371
|
-
export const loopFocusRing = { light: loopColors.
|
|
375
|
+
export const loopFocusRing = { light: loopColors.loopRing, dark: '#636363' };
|
|
372
376
|
/** Comprehensive Primer CSS-variable overrides for light & dark mode. */
|
|
373
377
|
export const loopThemeStyles = buildThemeStyles(loopLight, loopDark, {
|
|
374
378
|
fontFamily: loopFontFamily,
|