@nubisco/ui 2.7.0 → 2.8.1
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.
- package/dist/components/Blueprint.types.d.ts +40 -1
- package/dist/components/Blueprint.types.d.ts.map +1 -1
- package/dist/components/Blueprint.vue.d.ts +4 -11
- package/dist/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/BlueprintCard.types.d.ts +28 -0
- package/dist/components/BlueprintCard.types.d.ts.map +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +9 -22
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/components/Button.vue.d.ts +1 -1
- package/dist/components/Tree.vue.d.ts +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +910 -692
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/src/styles/_theme.scss +47 -0
package/package.json
CHANGED
package/src/styles/_theme.scss
CHANGED
|
@@ -237,6 +237,29 @@
|
|
|
237
237
|
// Form field tokens: heights and padding relative to --nb-base-unit (8px)
|
|
238
238
|
--nb-c-field-bg: #{layers.token(layers.$light, field-bg)};
|
|
239
239
|
--nb-c-field-border: #{layers.token(layers.$light, field-border)};
|
|
240
|
+
|
|
241
|
+
// ── Status foregrounds ────────────────────────────────────────────────
|
|
242
|
+
// Drawn as glyphs and outlines directly on a layer surface, so they are
|
|
243
|
+
// held to WCAG 1.4.11 (3:1) against every surface a card paints. These
|
|
244
|
+
// are deliberately separate from --nb-c-success / -warning / -danger,
|
|
245
|
+
// which are FILL colours sized for buttons and carry white text.
|
|
246
|
+
// Measured here against layer-1 / layer-2: 5.19 / 4.42, 5.20 / 4.43,
|
|
247
|
+
// 6.64 / 5.66. Verify any change with scripts/audit-contrast.mjs.
|
|
248
|
+
--nb-c-status-valid: var(--nb-c-emerald-reflection-700);
|
|
249
|
+
--nb-c-status-warning: var(--nb-c-phoenix-flames-700);
|
|
250
|
+
--nb-c-status-error: var(--nb-c-chicken-comb-600);
|
|
251
|
+
|
|
252
|
+
// ── Node graph (NbBlueprint) ──────────────────────────────────────────
|
|
253
|
+
// A port is a control, and it sits OUTSIDE the card on the canvas
|
|
254
|
+
// ground, so its outline is measured against layer-0 rather than the
|
|
255
|
+
// card: field-border gives 5.03 here. port-bg follows the card surface
|
|
256
|
+
// so an unwired pin reads as an empty socket cut into the card.
|
|
257
|
+
--nb-c-port-bg: var(--nb-c-surface);
|
|
258
|
+
--nb-c-port-border: var(--nb-c-field-border);
|
|
259
|
+
// The discrete-event ping. Theme-aware, unlike the #38e0ff it replaces.
|
|
260
|
+
--nb-c-port-signal: var(--nb-c-info);
|
|
261
|
+
// Parameter rows inside a card: one layer deeper than the card itself.
|
|
262
|
+
--nb-c-node-row-bg: var(--nb-c-layer-2);
|
|
240
263
|
// xs is the compact size for dense surfaces (inspectors, toolbars).
|
|
241
264
|
// Distinctly smaller than sm; pair with a 13px field font. See the
|
|
242
265
|
// "Building an inspector" guide in the docs before reaching for it.
|
|
@@ -277,6 +300,20 @@
|
|
|
277
300
|
// ── Radii ─────────────────────────────────────────────────────────────
|
|
278
301
|
// Corner scale, expressed against the 8px base unit so a change to
|
|
279
302
|
// --nb-base-unit rescales rounding with everything else.
|
|
303
|
+
//
|
|
304
|
+
// Which step to reach for. A pill means the thing slides along a track or
|
|
305
|
+
// represents a person. `xs` means a control the user manipulates directly.
|
|
306
|
+
// Anything larger is a container they do not. Under that rule a node card
|
|
307
|
+
// and its ports are controls, not containers, which is why NbBlueprint
|
|
308
|
+
// sits on `xs` rather than on the 10px it used to hard-code.
|
|
309
|
+
//
|
|
310
|
+
// none full-bleed rails, meters, table cells, canvas edges
|
|
311
|
+
// xs buttons, fields, tags, blueprint cards and their ports
|
|
312
|
+
// sm popovers, menus, tooltips, minimap frame
|
|
313
|
+
// md modals, media thumbnails
|
|
314
|
+
// lg inspector panels, coach marks
|
|
315
|
+
// pill toggle tracks and thumbs, avatars, status pills
|
|
316
|
+
--nb-radius-none: 0;
|
|
280
317
|
--nb-radius-xs: calc(var(--nb-base-unit) / 4); // 2px
|
|
281
318
|
--nb-radius-sm: calc(var(--nb-base-unit) / 2); // 4px
|
|
282
319
|
--nb-radius-md: var(--nb-base-unit); // 8px
|
|
@@ -588,6 +625,16 @@
|
|
|
588
625
|
--nb-c-field-bg: #{layers.token(layers.$dark, field-bg)};
|
|
589
626
|
--nb-c-field-border: #{layers.token(layers.$dark, field-border)};
|
|
590
627
|
|
|
628
|
+
// Status foregrounds. The light values are mid-ramp fills that fall to
|
|
629
|
+
// ~3:1 or below on the dark surfaces, so the dark theme steps up the
|
|
630
|
+
// ramp instead: 8.26 / 6.80, 8.89 / 7.33, 5.99 / 4.94 against
|
|
631
|
+
// layer-1 / layer-2. --nb-c-port-bg, -port-border, -port-signal and
|
|
632
|
+
// -node-row-bg are aliases of tokens that already flip, so they need no
|
|
633
|
+
// override here.
|
|
634
|
+
--nb-c-status-valid: #{colors.get-color('emerald-reflection', 400)};
|
|
635
|
+
--nb-c-status-warning: #{colors.get-color('phoenix-flames', 400)};
|
|
636
|
+
--nb-c-status-error: #{colors.get-color('chicken-comb', 300)};
|
|
637
|
+
|
|
591
638
|
// Discrete
|
|
592
639
|
--nb-c-discrete: #{colors.get-color('nouveau-gray', 700)};
|
|
593
640
|
--nb-c-component-discrete-text: #{colors.get-color('nouveau-gray', 300)};
|