@datalayer/primer-addons 1.0.46 → 1.0.48

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.
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ /**
6
+ * The Metal theme for Primer React: its styles, from `./metalThemeStyles`, and
7
+ * the Primer theme object, whose weights are Metal's two.
8
+ */
9
+ import { theme as primerTheme } from '@primer/react';
10
+ import { metalFontWeights } from './metalThemeStyles';
11
+ export * from './metalThemeStyles';
12
+ export const metalTheme = {
13
+ ...primerTheme,
14
+ fontWeights: {
15
+ light: metalFontWeights.regular,
16
+ normal: metalFontWeights.regular,
17
+ semibold: metalFontWeights.medium,
18
+ bold: metalFontWeights.medium,
19
+ },
20
+ };
21
+ export default metalTheme;
@@ -0,0 +1,25 @@
1
+ import { type ThemeColorDefs } from '../css/createThemeCSSVars';
2
+ export declare const metalLight: ThemeColorDefs;
3
+ export declare const metalDark: ThemeColorDefs;
4
+ export declare const metalFontFamily = "\"Geist Variable\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif";
5
+ export declare const metalMonoFamily = "\"Geist Mono Variable\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
6
+ /** The two weights: titles stay regular, what must stand out is 500. */
7
+ export declare const metalFontWeights: {
8
+ readonly regular: 400;
9
+ readonly medium: 500;
10
+ };
11
+ /** The four brushed surfaces, and the glass that sits on them, the same in both modes. */
12
+ export declare const metalSurfaceVars: Record<string, string>;
13
+ /** What a page is painted with, per mode. */
14
+ export declare const metalPage: {
15
+ light: string;
16
+ dark: string;
17
+ };
18
+ /** A panel lies on the page: a line and nothing under it, a menu alone floats. */
19
+ export declare const metalShadows: Record<'light' | 'dark', Record<string, string>>;
20
+ export declare const metalFocusRing: {
21
+ readonly light: string;
22
+ readonly dark: string;
23
+ };
24
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode: Loop's curves, Metal's look. */
25
+ export declare const metalThemeStyles: import("../css/createThemeCSSVars").ThemeStyles;
@@ -0,0 +1,333 @@
1
+ /*
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ /**
6
+ * Metal Theme for Primer React.
7
+ *
8
+ * Loop's curves and motion, with a look of its own. On light, a page that is
9
+ * not white: a blue-grey wash and a dot grid, panels drawn by a pale steel
10
+ * line rather than floated on a shadow, outlined controls, a brushed filled
11
+ * button. On dark, the page is the surface: a deep mesh of sage, steel, mauve
12
+ * and clay, frosted glass on it, white type, and a white button. In both,
13
+ * Geist in regular weight, with numbers in step (`style/metal-face.css`).
14
+ * Theming is applied via **CSS custom-property overrides** and a stylesheet.
15
+ */
16
+ import { metalColors } from '../colors/metalColors';
17
+ import { themeAccentTints } from '../colors/themeAccents';
18
+ import { buildThemeStyles } from '../css/createThemeCSSVars';
19
+ import { loopDark, loopLight, loopMotionVars, loopShapeVars, loopTypeScale, loopTypeVars, } from './loopThemeStyles';
20
+ /* ── Colour definitions ────────────────────────────────────────── */
21
+ export const metalLight = {
22
+ ...loopLight,
23
+ canvas: {
24
+ default: metalColors.white,
25
+ subtle: metalColors.subtle,
26
+ },
27
+ fg: {
28
+ default: metalColors.ink,
29
+ muted: metalColors.gray,
30
+ onEmphasis: '#FFFFFF',
31
+ },
32
+ accent: {
33
+ fg: metalColors.metalText,
34
+ emphasis: metalColors.metalBrand,
35
+ muted: metalColors.metalBrand,
36
+ subtle: metalColors.metalTint,
37
+ },
38
+ border: {
39
+ default: metalColors.line,
40
+ muted: metalColors.lineMuted,
41
+ },
42
+ btn: {
43
+ ...loopLight.btn,
44
+ text: metalColors.ink,
45
+ // Outlined, not filled: a control is drawn as a panel is.
46
+ bg: '#FFFFFF',
47
+ border: metalColors.controlLine,
48
+ hoverBg: '#F4F7FB',
49
+ hoverBorder: '#C4D2E6',
50
+ activeBg: '#E3E9F2',
51
+ selectedBg: '#E3E9F2',
52
+ counterBg: 'rgba(34, 38, 43, 0.08)',
53
+ primary: {
54
+ ...loopLight.btn.primary,
55
+ text: metalColors.metalOn,
56
+ bg: metalColors.metalBrand,
57
+ border: metalColors.metalBrand,
58
+ hoverBg: metalColors.metalHover,
59
+ hoverBorder: metalColors.metalHover,
60
+ selectedBg: metalColors.metalActive,
61
+ disabledText: 'rgba(255, 255, 255, 0.8)',
62
+ disabledBg: '#B9CBE6',
63
+ disabledBorder: '#B9CBE6',
64
+ icon: metalColors.metalOn,
65
+ counterBg: 'rgba(255, 255, 255, 0.2)',
66
+ },
67
+ outline: {
68
+ ...loopLight.btn.outline,
69
+ text: metalColors.metalText,
70
+ hoverText: metalColors.metalOn,
71
+ hoverBg: metalColors.metalBrand,
72
+ hoverBorder: metalColors.metalBrand,
73
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
74
+ selectedText: metalColors.metalOn,
75
+ selectedBg: metalColors.metalActive,
76
+ selectedBorder: metalColors.metalActive,
77
+ disabledText: metalColors.gray,
78
+ disabledBg: metalColors.subtle,
79
+ counterFg: metalColors.metalText,
80
+ hoverCounterFg: metalColors.metalOn,
81
+ disabledCounterFg: metalColors.gray,
82
+ },
83
+ },
84
+ };
85
+ export const metalDark = {
86
+ ...loopDark,
87
+ // Solid stand-ins for the page behind the glass, which the checks read;
88
+ // what is painted is `metalVariables` and the mesh.
89
+ canvas: {
90
+ default: metalColors.black,
91
+ subtle: metalColors.subtleDark,
92
+ },
93
+ fg: {
94
+ default: metalColors.inkDark,
95
+ muted: metalColors.grayDark,
96
+ onEmphasis: '#FFFFFF',
97
+ },
98
+ accent: {
99
+ fg: metalColors.metalBright,
100
+ emphasis: metalColors.white,
101
+ muted: metalColors.metalBright,
102
+ subtle: metalColors.metalTintDark,
103
+ },
104
+ border: {
105
+ default: metalColors.lineDark,
106
+ muted: metalColors.lineMutedDark,
107
+ },
108
+ btn: {
109
+ ...loopDark.btn,
110
+ text: metalColors.inkDark,
111
+ bg: 'rgba(255, 255, 255, 0.10)',
112
+ border: 'rgba(255, 255, 255, 0.22)',
113
+ hoverBg: 'rgba(255, 255, 255, 0.16)',
114
+ hoverBorder: 'rgba(255, 255, 255, 0.32)',
115
+ activeBg: 'rgba(255, 255, 255, 0.20)',
116
+ selectedBg: 'rgba(255, 255, 255, 0.20)',
117
+ counterBg: 'rgba(238, 242, 247, 0.12)',
118
+ // White on the mesh, the brightest thing on the page.
119
+ primary: {
120
+ ...loopDark.btn.primary,
121
+ text: metalColors.metalOnDark,
122
+ bg: metalColors.white,
123
+ border: metalColors.white,
124
+ hoverBg: '#E8EEF7',
125
+ hoverBorder: '#E8EEF7',
126
+ selectedBg: '#DCE5F2',
127
+ disabledText: 'rgba(11, 26, 48, 0.6)',
128
+ disabledBg: 'rgba(255, 255, 255, 0.35)',
129
+ disabledBorder: 'transparent',
130
+ icon: metalColors.metalOnDark,
131
+ counterBg: 'rgba(11, 26, 48, 0.12)',
132
+ },
133
+ outline: {
134
+ ...loopDark.btn.outline,
135
+ text: metalColors.metalBright,
136
+ hoverText: metalColors.metalOnDark,
137
+ hoverBg: metalColors.metalBright,
138
+ hoverBorder: metalColors.metalBright,
139
+ selectedText: metalColors.metalOnDark,
140
+ selectedBg: metalColors.metalBrightHover,
141
+ selectedBorder: metalColors.metalBrightHover,
142
+ disabledText: 'rgba(143, 180, 232, 0.5)',
143
+ disabledBg: 'rgba(143, 180, 232, 0.1)',
144
+ disabledCounterBg: 'rgba(143, 180, 232, 0.05)',
145
+ counterBg: 'rgba(143, 180, 232, 0.1)',
146
+ counterFg: metalColors.metalBright,
147
+ hoverCounterFg: metalColors.metalOnDark,
148
+ disabledCounterFg: 'rgba(143, 180, 232, 0.5)',
149
+ },
150
+ },
151
+ };
152
+ /* ── Faces, type ───────────────────────────────────────────────── */
153
+ export const metalFontFamily = '"Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
154
+ export const metalMonoFamily = '"Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';
155
+ /** The two weights: titles stay regular, what must stand out is 500. */
156
+ export const metalFontWeights = { regular: 400, medium: 500 };
157
+ /** Loop's sizes, in Metal's weights: a title is large and light, never bold. */
158
+ const metalTypeVars = () => {
159
+ const { regular, medium } = metalFontWeights;
160
+ const { display, title, heading } = loopTypeScale;
161
+ return {
162
+ ...loopTypeVars(metalFontFamily),
163
+ '--base-text-weight-medium': String(medium),
164
+ '--base-text-weight-semibold': String(medium),
165
+ '--text-display-weight': String(regular),
166
+ '--text-display-shorthand': `${regular} ${display.size}/${display.lineHeight} ${metalFontFamily}`,
167
+ '--text-title-shorthand-large': `${regular} ${display.size}/${display.lineHeight} ${metalFontFamily}`,
168
+ '--text-title-shorthand-medium': `${regular} ${title.size}/${title.lineHeight} ${metalFontFamily}`,
169
+ '--text-title-shorthand-small': `${medium} ${heading.size}/${heading.lineHeight} ${metalFontFamily}`,
170
+ '--loop-tracking-display': '-0.03em',
171
+ '--loop-tracking-title': '-0.02em',
172
+ '--fontStack-monospace': metalMonoFamily,
173
+ };
174
+ };
175
+ /* ── Surfaces ──────────────────────────────────────────────────── */
176
+ /** The four brushed surfaces, and the glass that sits on them, the same in both modes. */
177
+ export const metalSurfaceVars = {
178
+ '--metal-gradient-sage': `linear-gradient(160deg, ${metalColors.sageFrom}, ${metalColors.sageTo})`,
179
+ '--metal-gradient-steel': `linear-gradient(160deg, ${metalColors.steelFrom}, ${metalColors.steelTo})`,
180
+ '--metal-gradient-mauve': `linear-gradient(160deg, ${metalColors.mauveFrom}, ${metalColors.mauveTo})`,
181
+ '--metal-gradient-clay': `linear-gradient(160deg, ${metalColors.clayFrom}, ${metalColors.clayTo})`,
182
+ '--metal-glass-bg': 'rgba(255, 255, 255, 0.14)',
183
+ '--metal-glass-border': 'rgba(255, 255, 255, 0.24)',
184
+ };
185
+ /** What a page is painted with, per mode. */
186
+ export const metalPage = {
187
+ light: [
188
+ 'radial-gradient(rgba(76, 118, 186, 0.15) 1px, transparent 1.2px) 0 0 / 22px 22px',
189
+ 'radial-gradient(1100px 620px at 88% -8%, #D6E4F7 0%, transparent 62%)',
190
+ 'radial-gradient(900px 560px at -6% 4%, #E6F0EE 0%, transparent 60%)',
191
+ '#F7F9FD',
192
+ ].join(', '),
193
+ dark: [
194
+ 'radial-gradient(900px 640px at 6% -4%, #55794E 0%, transparent 62%)',
195
+ 'radial-gradient(1000px 700px at 96% 4%, #2C6AA8 0%, transparent 60%)',
196
+ 'radial-gradient(900px 640px at 92% 102%, #8E3F60 0%, transparent 60%)',
197
+ 'radial-gradient(800px 560px at 8% 104%, #93492E 0%, transparent 58%)',
198
+ '#1C2A33',
199
+ ].join(', '),
200
+ };
201
+ const metalHairline = {
202
+ light: 'rgba(76, 118, 186, 0.20)',
203
+ dark: 'rgba(255, 255, 255, 0.18)',
204
+ };
205
+ /** What is painted, beside the solid stand-ins: a panel on light, glass on dark. */
206
+ const metalPainted = {
207
+ light: {
208
+ '--bgColor-default': 'rgba(255, 255, 255, 0.82)',
209
+ '--bgColor-muted': 'rgba(244, 247, 252, 0.72)',
210
+ '--bgColor-inset': 'rgba(240, 244, 250, 0.72)',
211
+ '--overlay-bgColor': '#FFFFFF',
212
+ '--control-transparent-bgColor-selected': '#EDF1F6',
213
+ },
214
+ dark: {
215
+ '--bgColor-default': 'rgba(255, 255, 255, 0.07)',
216
+ '--bgColor-muted': 'rgba(255, 255, 255, 0.05)',
217
+ '--bgColor-inset': 'rgba(0, 0, 0, 0.14)',
218
+ '--overlay-bgColor': '#25343F',
219
+ '--fgColor-default': '#FFFFFF',
220
+ '--fgColor-muted': 'rgba(255, 255, 255, 0.74)',
221
+ '--control-transparent-bgColor-selected': 'rgba(255, 255, 255, 0.14)',
222
+ },
223
+ };
224
+ /** A panel lies on the page: a line and nothing under it, a menu alone floats. */
225
+ export const metalShadows = {
226
+ light: {
227
+ '--loop-shadow-frame': 'none',
228
+ '--theme-shadow': 'none',
229
+ '--shadow-resting-xsmall': 'none',
230
+ '--shadow-resting-small': 'none',
231
+ '--shadow-resting-medium': 'none',
232
+ '--shadow-floating-small': '0 0 0 1px rgba(76, 118, 186, 0.16), 0 6px 18px rgba(34, 52, 84, 0.08)',
233
+ '--shadow-floating-medium': '0 0 0 1px rgba(76, 118, 186, 0.16), 0 10px 28px rgba(34, 52, 84, 0.10)',
234
+ '--shadow-floating-large': '0 0 0 1px rgba(76, 118, 186, 0.16), 0 18px 48px rgba(34, 52, 84, 0.12)',
235
+ '--shadow-floating-xlarge': '0 0 0 1px rgba(76, 118, 186, 0.16), 0 24px 64px rgba(34, 52, 84, 0.14)',
236
+ },
237
+ dark: {
238
+ '--loop-shadow-frame': 'none',
239
+ '--theme-shadow': 'none',
240
+ '--shadow-resting-xsmall': 'none',
241
+ '--shadow-resting-small': 'none',
242
+ '--shadow-resting-medium': 'none',
243
+ '--shadow-floating-small': '0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 18px rgba(0, 0, 0, 0.3)',
244
+ '--shadow-floating-medium': '0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.35)',
245
+ '--shadow-floating-large': '0 0 0 1px rgba(255, 255, 255, 0.16), 0 18px 48px rgba(0, 0, 0, 0.4)',
246
+ '--shadow-floating-xlarge': '0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 64px rgba(0, 0, 0, 0.45)',
247
+ },
248
+ };
249
+ export const metalFocusRing = { light: metalColors.metalRing, dark: metalColors.white };
250
+ const metalTints = (mode) => themeAccentTints({
251
+ accent: mode === 'light' ? metalColors.metalBrand : metalColors.white,
252
+ on: mode === 'light' ? metalColors.metalOn : metalColors.metalOnDark,
253
+ stage: mode === 'light' ? metalColors.metalStage : metalColors.metalStageDark,
254
+ quiet: mode === 'light' ? metalColors.metalTint : metalColors.metalTintDark,
255
+ });
256
+ const metalVariables = (mode) => ({
257
+ ...loopShapeVars,
258
+ ...metalTints(mode),
259
+ ...loopMotionVars,
260
+ ...metalShadows[mode],
261
+ ...metalTypeVars(),
262
+ ...metalSurfaceVars,
263
+ ...metalPainted[mode],
264
+ '--metal-page': metalPage[mode],
265
+ '--loop-hairline': metalHairline[mode],
266
+ '--borderColor-default': metalHairline[mode],
267
+ '--borderColor-muted': metalHairline[mode],
268
+ '--focus-outlineColor': metalFocusRing[mode],
269
+ '--underlineNav-borderColor-active': mode === 'light' ? metalColors.metalBrand : metalColors.white,
270
+ });
271
+ /**
272
+ * Metal's own stylesheet: the page painted under everything, its numbers in
273
+ * step, bold at the theme's heavier weight, and the filled button brushed on
274
+ * light (dark's is plain white).
275
+ */
276
+ const metalOwnCss = `
277
+ :scope {
278
+ background: var(--metal-page);
279
+ background-attachment: fixed;
280
+ font-variant-numeric: tabular-nums;
281
+ font-feature-settings: "ss01", "cv11";
282
+ letter-spacing: -0.006em;
283
+ }
284
+ :scope b,
285
+ :scope strong {
286
+ font-weight: var(--base-text-weight-medium);
287
+ }
288
+ :scope h1,
289
+ :scope h2 {
290
+ font-weight: 400;
291
+ letter-spacing: -0.02em;
292
+ }
293
+ :scope h3,
294
+ :scope h4 {
295
+ font-weight: 500;
296
+ letter-spacing: -0.012em;
297
+ }
298
+ :scope code,
299
+ :scope kbd,
300
+ :scope pre,
301
+ :scope [class*="CounterLabel"] {
302
+ font-family: var(--fontStack-monospace);
303
+ }
304
+ :scope[data-color-mode="light"] [data-variant="primary"],
305
+ [data-color-mode="light"] :scope [data-variant="primary"] {
306
+ background-image: linear-gradient(180deg, #5C86C8 0%, #3F68AC 100%);
307
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(34, 52, 84, 0.18);
308
+ }
309
+ `;
310
+ /* ── Exports ───────────────────────────────────────────────────── */
311
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode: Loop's curves, Metal's look. */
312
+ export const metalThemeStyles = buildThemeStyles(metalLight, metalDark, {
313
+ fontFamily: metalFontFamily,
314
+ css: metalOwnCss,
315
+ shape: {
316
+ radiusControl: loopShapeVars['--loop-radius-control'],
317
+ radiusTable: loopShapeVars['--borderRadius-medium'],
318
+ radiusOverlay: loopShapeVars['--loop-radius-card'],
319
+ radiusCard: loopShapeVars['--loop-radius-card'],
320
+ radiusBubble: loopShapeVars['--loop-radius-bubble'],
321
+ radiusFrame: loopShapeVars['--loop-radius-frame'],
322
+ shadow: 'none',
323
+ motionStatus: loopMotionVars['--loop-motion-status'],
324
+ motionMessage: loopMotionVars['--loop-motion-message'],
325
+ motionPane: loopMotionVars['--loop-motion-pane'],
326
+ motionEasing: loopMotionVars['--loop-motion-easing'],
327
+ messageLink: 'currentColor',
328
+ },
329
+ variables: {
330
+ light: metalVariables('light'),
331
+ dark: metalVariables('dark'),
332
+ },
333
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/primer-addons",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "license": "BSD-3-Clause",
5
5
  "scripts": {
6
6
  "build": "npm run build:lib",
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) Geist-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright (c) 2023-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+
6
+ /*
7
+ * The `metal` theme's faces: Geist and Geist Mono, open licence (SIL OFL 1.1,
8
+ * see fonts/GEIST-LICENSE), variable, shipped with this package and served by
9
+ * the page's own build.
10
+ *
11
+ * Import it once where the theme can be worn:
12
+ *
13
+ * import '@datalayer/primer-addons/style/metal-face.css';
14
+ */
15
+
16
+ @font-face {
17
+ font-family: 'Geist Variable';
18
+ font-style: normal;
19
+ font-display: swap;
20
+ font-weight: 100 900;
21
+ src: url('./fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
22
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
23
+ U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
24
+ }
25
+
26
+ @font-face {
27
+ font-family: 'Geist Variable';
28
+ font-style: normal;
29
+ font-display: swap;
30
+ font-weight: 100 900;
31
+ src: url('./fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
32
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
33
+ U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
34
+ }
35
+
36
+ @font-face {
37
+ font-family: 'Geist Mono Variable';
38
+ font-style: normal;
39
+ font-display: swap;
40
+ font-weight: 100 900;
41
+ src: url('./fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
42
+ }