@datalayer/primer-addons 1.0.27 → 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.
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
* and a single soft accent that dark text sits on. Nothing else carries
|
|
7
7
|
* colour, apart from the three colours of a verdict.
|
|
8
8
|
*
|
|
9
|
-
* The accent of the theme itself is
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* green among them; each is four values: the accent, the text that sits
|
|
9
|
+
* The accent of the theme itself is mint — a soft green, lighter than
|
|
10
|
+
* the platform's (decided 2026-10-03, after a day on sky). An
|
|
11
|
+
* application may take one of five others (`loopAccents`); each is four
|
|
12
|
+
* values: the accent, the text that sits
|
|
14
13
|
* on it, the tint of the stage behind an application, and a quiet tint.
|
|
15
14
|
* Dark text on every accent: the lowest contrast of the six is 8.8 to 1.
|
|
16
15
|
*/
|
|
@@ -26,9 +25,11 @@ export declare const loopColors: {
|
|
|
26
25
|
loopBrand: string;
|
|
27
26
|
loopOn: string;
|
|
28
27
|
loopAccent: string;
|
|
28
|
+
loopBrandHover: string;
|
|
29
29
|
loopText: string;
|
|
30
30
|
loopEmphasis: string;
|
|
31
31
|
loopEmphasisHover: string;
|
|
32
|
+
loopRing: string;
|
|
32
33
|
loopTint: string;
|
|
33
34
|
loopStage: string;
|
|
34
35
|
loopBright: string;
|
|
@@ -84,7 +85,7 @@ export interface LoopAccent {
|
|
|
84
85
|
dark: string;
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
|
-
/** The six accents. One per application; everything else is neutral.
|
|
88
|
+
/** The six accents. One per application; everything else is neutral. Green — mint — is the theme's own. */
|
|
88
89
|
export declare const loopAccents: Record<LoopAccentName, LoopAccent>;
|
|
89
90
|
/** The names of the accents, in the order a picker shows them. */
|
|
90
91
|
export declare const loopAccentNames: LoopAccentName[];
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
* and a single soft accent that dark text sits on. Nothing else carries
|
|
11
11
|
* colour, apart from the three colours of a verdict.
|
|
12
12
|
*
|
|
13
|
-
* The accent of the theme itself is
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* green among them; each is four values: the accent, the text that sits
|
|
13
|
+
* The accent of the theme itself is mint — a soft green, lighter than
|
|
14
|
+
* the platform's (decided 2026-10-03, after a day on sky). An
|
|
15
|
+
* application may take one of five others (`loopAccents`); each is four
|
|
16
|
+
* values: the accent, the text that sits
|
|
18
17
|
* on it, the tint of the stage behind an application, and a quiet tint.
|
|
19
18
|
* Dark text on every accent: the lowest contrast of the six is 8.8 to 1.
|
|
20
19
|
*/
|
|
@@ -30,20 +29,22 @@ export const loopColors = {
|
|
|
30
29
|
subtle: '#F5F5F7', // Subtle surface on light (a bubble, a chip)
|
|
31
30
|
subtleDark: '#1E1E20', // Subtle surface on dark
|
|
32
31
|
grayDark: '#A1A1A6', // Secondary text on dark
|
|
33
|
-
// Loop palette (Brand) —
|
|
34
|
-
loopBrand: '#
|
|
35
|
-
loopOn: '#
|
|
36
|
-
loopAccent: '#
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
// Loop palette (Brand) — mint
|
|
33
|
+
loopBrand: '#7ADBB8', // The accent — a bubble, a send button, a swatch
|
|
34
|
+
loopOn: '#06281E', // Text that sits on the accent (9.5 to 1)
|
|
35
|
+
loopAccent: '#4FC79C', // Deeper accent — charts, highlights
|
|
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
|
|
41
|
+
loopTint: '#F0FAF6', // Quiet tint — a draft, a callout
|
|
42
|
+
loopStage: '#DDF5EC', // The stage behind an application
|
|
43
|
+
loopBright: '#8FE5C6', // Accent text & links on dark
|
|
44
|
+
loopHover: '#227C5C', // Accent text hover
|
|
44
45
|
// The stage and the quiet tint, on dark
|
|
45
|
-
loopStageDark: '#
|
|
46
|
-
loopTintDark: '#
|
|
46
|
+
loopStageDark: '#10261F',
|
|
47
|
+
loopTintDark: '#17211D',
|
|
47
48
|
// Semantic roles — kept for verdicts and rules only
|
|
48
49
|
successBrand: '#1F8A5B',
|
|
49
50
|
successAccent: '#58C797',
|
|
@@ -61,7 +62,7 @@ export const loopColors = {
|
|
|
61
62
|
doneAccent: '#C0AEF6',
|
|
62
63
|
doneTint: '#F6F3FE',
|
|
63
64
|
// Bright colours for SVG illustrations — the six accents themselves
|
|
64
|
-
brightGlow: '#7ADBB8', //
|
|
65
|
+
brightGlow: '#7ADBB8', // Mint — the accent
|
|
65
66
|
brightPop: '#8CCBF9', // Sky
|
|
66
67
|
brightSpark: '#BEDC55', // Lime
|
|
67
68
|
brightBlaze: '#F6A5C1', // Rose
|
|
@@ -77,7 +78,7 @@ export const loopColors = {
|
|
|
77
78
|
brightLightFlame: '#B4571A', // Deep orange
|
|
78
79
|
brightLightGold: '#8A6A00', // Deep sun
|
|
79
80
|
};
|
|
80
|
-
/** The six accents. One per application; everything else is neutral.
|
|
81
|
+
/** The six accents. One per application; everything else is neutral. Green — mint — is the theme's own. */
|
|
81
82
|
export const loopAccents = {
|
|
82
83
|
green: {
|
|
83
84
|
accent: '#7ADBB8',
|
|
@@ -1127,9 +1127,9 @@ 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
|
|
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
|
-
* on white and 3.
|
|
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
|
|
1134
1134
|
* pastels, the light ink least of all (under 1.8 to 1 on the pastels): a
|
|
1135
1135
|
* mid grey does, at 3.04 to 1 — and 2.77 to 1 on the subtle dark surface,
|
|
@@ -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
|
|
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:
|
|
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(
|
|
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:
|
|
103
|
-
hoverBg: loopColors.
|
|
104
|
-
hoverBorder: loopColors.
|
|
105
|
-
hoverCounterBg: 'rgba(
|
|
106
|
-
selectedText:
|
|
107
|
-
selectedBg: loopColors.
|
|
108
|
-
selectedBorder: loopColors.
|
|
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:
|
|
115
|
+
hoverCounterFg: loopColors.loopOn,
|
|
115
116
|
disabledCounterFg: loopColors.gray,
|
|
116
117
|
},
|
|
117
118
|
danger: {
|
|
@@ -360,15 +361,15 @@ 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
|
|
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
|
-
* on white and 3.
|
|
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
|
|
367
368
|
* pastels, the light ink least of all (under 1.8 to 1 on the pastels): a
|
|
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.
|
|
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,
|
|
@@ -387,7 +388,7 @@ export const loopThemeStyles = buildThemeStyles(loopLight, loopDark, {
|
|
|
387
388
|
variables: {
|
|
388
389
|
light: {
|
|
389
390
|
...loopShapeVars,
|
|
390
|
-
...loopAccentVars('
|
|
391
|
+
...loopAccentVars('green', 'light'),
|
|
391
392
|
...loopMotionVars,
|
|
392
393
|
...loopShadows.light,
|
|
393
394
|
...loopTypeVars(loopFontFamily),
|
|
@@ -397,7 +398,7 @@ export const loopThemeStyles = buildThemeStyles(loopLight, loopDark, {
|
|
|
397
398
|
},
|
|
398
399
|
dark: {
|
|
399
400
|
...loopShapeVars,
|
|
400
|
-
...loopAccentVars('
|
|
401
|
+
...loopAccentVars('green', 'dark'),
|
|
401
402
|
...loopMotionVars,
|
|
402
403
|
...loopShadows.dark,
|
|
403
404
|
...loopTypeVars(loopFontFamily),
|