@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
|
-
|
|
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
|
+
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: '#
|
|
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
|
|
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
|
|
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,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
|
|
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.
|
|
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,
|