@sincpro/web-ui 2.1.0 → 2.2.0
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/README.md +45 -0
- package/dist/components/attachments/Attachments.d.ts +7 -1
- package/dist/components/attachments/Attachments.js +8 -2
- package/dist/components/board/Board.d.ts +32 -2
- package/dist/components/board/Board.js +27 -4
- package/dist/components/board/index.d.ts +1 -1
- package/dist/components/board/index.js +2 -1
- package/dist/components/listing/Row.js +2 -2
- package/dist/components/navigation/NavigationTree.js +2 -2
- package/dist/components/search/SearchBar.js +30 -7
- package/dist/components/shell/AppFrame.d.ts +9 -2
- package/dist/components/shell/AppFrame.js +99 -11
- package/dist/components/shell/Sidebar.d.ts +34 -0
- package/dist/components/shell/Sidebar.js +32 -0
- package/dist/components/shell/TopBar.d.ts +2 -0
- package/dist/components/shell/TopBar.js +13 -9
- package/dist/components/shell/index.d.ts +2 -0
- package/dist/components/shell/index.js +4 -0
- package/dist/components/shell/sidebarDrawer.d.ts +26 -0
- package/dist/components/shell/sidebarDrawer.js +22 -0
- package/dist/foundations/copy.d.ts +13 -0
- package/dist/foundations/copy.es.js +9 -2
- package/dist/foundations/copy.js +9 -2
- package/dist/primitives/field/DropZone.d.ts +22 -3
- package/dist/primitives/field/DropZone.js +33 -12
- package/dist/primitives/menu/Menu.d.ts +7 -3
- package/dist/primitives/menu/Menu.js +4 -3
- package/dist/primitives/tabs/Tabs.js +2 -28
- package/dist/primitives/tag/Count.d.ts +23 -0
- package/dist/primitives/tag/Count.js +59 -0
- package/dist/primitives/tag/index.d.ts +1 -0
- package/dist/primitives/tag/index.js +3 -0
- package/dist/primitives/value/Metric.d.ts +7 -2
- package/dist/primitives/value/Metric.js +12 -4
- package/dist/tokens.css +147 -40
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ const TONE = {
|
|
|
14
14
|
ink and the tone is only visible when the card is lit up. */
|
|
15
15
|
accent: { background: "bg-accent/20", text: "text-ink", edge: "border-accent/50" },
|
|
16
16
|
};
|
|
17
|
-
export function Metric({ value, label, tone = "neutral", icon: Icon, onClick, active = false, change, }) {
|
|
17
|
+
export function Metric({ value, label, tone = "neutral", icon: Icon, onClick, active = false, change, loading = false, }) {
|
|
18
18
|
const copy = useUiCopy();
|
|
19
19
|
const sup = useSurface();
|
|
20
20
|
const t = TONE[tone];
|
|
@@ -32,11 +32,19 @@ export function Metric({ value, label, tone = "neutral", icon: Icon, onClick, ac
|
|
|
32
32
|
const box = `flex min-w-(--container-metric) shrink-0 flex-col justify-center gap-0.5 rounded-box border px-3.5 py-2 text-left transition-colors duration-(--duration-instant) ${skin} ${onClick === undefined
|
|
33
33
|
? ""
|
|
34
34
|
: "cursor-pointer hover:border-line-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"}`;
|
|
35
|
-
const
|
|
35
|
+
const figure = value === undefined
|
|
36
|
+
? "—"
|
|
37
|
+
: typeof value === "number"
|
|
38
|
+
? value.toLocaleString(copy.locale)
|
|
39
|
+
: value;
|
|
40
|
+
const content = (_jsxs(_Fragment, { children: [_jsxs("span", { className: `flex items-center gap-1.5 text-title font-semibold tabular-nums ${t.text}`, children: [Icon === undefined ? null : (_jsx(Icon, { className: "size-(--size-icon-md)", strokeWidth: 2, "aria-hidden": true })), loading ? (
|
|
41
|
+
/* A bar one line of the figure tall (`h-lh`), so the box is the size it will
|
|
42
|
+
be. It appears late, like every skeleton: a fast read never shows it. */
|
|
43
|
+
_jsx("span", { "aria-hidden": true, className: `inline-block h-lh w-16 animate-reveal-late rounded-control ${bySurface(sup, "bg-ink/8", "bg-chrome-ink/12")}` })) : (figure)] }), _jsx("span", { className: `text-micro ${bySurface(sup, "text-muted", "text-chrome-muted")}`, children: label }), change === undefined || loading ? null : (_jsx(Change, { change: change, format: percent.format }))] }));
|
|
36
44
|
if (onClick === undefined) {
|
|
37
|
-
return (_jsx("div", { className: box, "aria-label": `${
|
|
45
|
+
return (_jsx("div", { className: box, "aria-label": loading ? `${label}: ${copy.failed.loading}` : `${figure} ${label}`, ...(loading ? { "aria-busy": true } : {}), children: content }));
|
|
38
46
|
}
|
|
39
|
-
return (
|
|
47
|
+
return (_jsxs("button", { type: "button", onClick: onClick, "aria-pressed": active, ...(loading ? { "aria-busy": true } : {}), className: box, children: [content, loading ? _jsx("span", { className: "sr-only", children: copy.failed.loading }) : null] }));
|
|
40
48
|
}
|
|
41
49
|
function Change({ change, format, }) {
|
|
42
50
|
const copy = useUiCopy();
|
package/dist/tokens.css
CHANGED
|
@@ -92,14 +92,17 @@
|
|
|
92
92
|
* as the border that marks a state. If the gold needs to say something, it
|
|
93
93
|
* is the dark text on top of it that says it.
|
|
94
94
|
* ---------------------------------------------------------------- */
|
|
95
|
-
--color-accent: #c89b3c; /* 2.43:1 on the ground → NEVER text */
|
|
96
|
-
--color-accent-hover:
|
|
95
|
+
--color-accent: var(--brand-accent, #c89b3c); /* 2.43:1 on the ground → NEVER text */
|
|
96
|
+
--color-accent-hover: var(
|
|
97
|
+
--brand-accent-hover,
|
|
98
|
+
#b88a2e
|
|
99
|
+
); /* on light the hover DARKENS: ink on top gives 5.71:1 */
|
|
97
100
|
|
|
98
101
|
/* The text ON the gold. It is its own token and not `ink` because `ink` flips
|
|
99
102
|
to a light colour in the dark theme, and light text on gold is 2.4:1: the
|
|
100
103
|
primary action would stop being readable the moment the theme changed. The
|
|
101
104
|
gold button is dark-on-gold in BOTH themes. */
|
|
102
|
-
--color-on-accent: #1a1714; /* 6.98:1 on the gold */
|
|
105
|
+
--color-on-accent: var(--brand-on-accent, #1a1714); /* 6.98:1 on the gold */
|
|
103
106
|
|
|
104
107
|
/* Data blue. On light the brand blue reads in full, without lightening it:
|
|
105
108
|
13.52:1. In the dark theme it had to be lightened to #3D5CA8 so that a 6px
|
|
@@ -140,8 +143,11 @@
|
|
|
140
143
|
product read as assembled, not designed. It is now the chrome's own navy,
|
|
141
144
|
less saturated: still clearly blue, one family with the bar, and it reads
|
|
142
145
|
BETTER — 8.26:1 as text (was 7.48:1), white on top 8.69:1 (was 7.87:1). */
|
|
143
|
-
--color-primary: #2a4a85; /* 8.26:1 · white on top 8.69:1 */
|
|
144
|
-
--color-primary-hover:
|
|
146
|
+
--color-primary: var(--brand-primary, #2a4a85); /* 8.26:1 · white on top 8.69:1 */
|
|
147
|
+
--color-primary-hover: var(
|
|
148
|
+
--brand-primary-hover,
|
|
149
|
+
#1c3765
|
|
150
|
+
); /* 11.19:1 · white on top 11.77:1 */
|
|
145
151
|
|
|
146
152
|
/* Destructive. It is the SAME red as the `bad` state, on purpose: the red
|
|
147
153
|
that says «this went wrong» and the one that says «this is going to delete
|
|
@@ -224,15 +230,21 @@
|
|
|
224
230
|
practical consequence — the `brand-wash` is BORN out of the background
|
|
225
231
|
itself instead of being painted on top, which is why here the wash reads as
|
|
226
232
|
light and on black it read as a stain. */
|
|
227
|
-
--color-chrome: #141b2e; /* the base */
|
|
228
|
-
--color-chrome-raised: #1e2740; /* active tab, open menu */
|
|
233
|
+
--color-chrome: var(--brand-chrome, #141b2e); /* the base */
|
|
234
|
+
--color-chrome-raised: var(--brand-chrome-raised, #1e2740); /* active tab, open menu */
|
|
229
235
|
/* The hairline under the application bar. On light the chrome already
|
|
230
236
|
separates from the canvas by luminance, so it IS the chrome (invisible); in the
|
|
231
237
|
dark theme the two are both near-black and the hairline is what tells them apart. */
|
|
232
|
-
--color-chrome-edge:
|
|
238
|
+
--color-chrome-edge: var(
|
|
239
|
+
--brand-chrome-edge,
|
|
240
|
+
#141b2e
|
|
241
|
+
); /* 1.00:1 on the chrome — invisible on light, a hairline on dark */
|
|
233
242
|
--color-chrome-ink: #e8e4de; /* 13.53:1 — text */
|
|
234
243
|
--color-chrome-muted: #a39b90; /* 6.24:1 — faint text */
|
|
235
|
-
--color-chrome-accent:
|
|
244
|
+
--color-chrome-accent: var(
|
|
245
|
+
--brand-chrome-accent,
|
|
246
|
+
#c89b3c
|
|
247
|
+
); /* 6.70:1 — the gold, here it IS text */
|
|
236
248
|
|
|
237
249
|
/* ── The link had to change, and the reason is NOT contrast ──────────
|
|
238
250
|
The blue #6FA0EA gave 6.44:1 on this background: too dark, it sank into the
|
|
@@ -243,7 +255,10 @@
|
|
|
243
255
|
(220°) at 9.46:1 separates from the bar as clearly as the cyan did (9.94:1)
|
|
244
256
|
and stays in the palette. WCAG measures luminance and people see hue — here
|
|
245
257
|
both agree: light on dark, one family. */
|
|
246
|
-
--color-chrome-link:
|
|
258
|
+
--color-chrome-link: var(
|
|
259
|
+
--brand-chrome-link,
|
|
260
|
+
#a9c1f2
|
|
261
|
+
); /* 9.46:1 · same family as the navy, separated by luminance */
|
|
247
262
|
|
|
248
263
|
--color-chrome-good: #6fcf8b; /* 8.95:1 */
|
|
249
264
|
--color-chrome-warn: #e3b341; /* 8.80:1 */
|
|
@@ -461,6 +476,13 @@
|
|
|
461
476
|
`ListingBar`. */
|
|
462
477
|
--container-search: 30rem;
|
|
463
478
|
|
|
479
|
+
/* How wide the cuts panel may grow: filters, grouping and favourites side by side — three
|
|
480
|
+
columns of a facet each — and never wider than the screen, so on a phone the columns
|
|
481
|
+
stack and it reads as a popover. It is the SCREEN that decides, not the field: a list's
|
|
482
|
+
search field is often narrow (it shares the bar with sort, columns and «New»), and a
|
|
483
|
+
panel capped at the field's width stacked its three columns on a 1440px desk. */
|
|
484
|
+
--container-cuts: min(calc(var(--container-facet) * 3), calc(100vw - 3rem));
|
|
485
|
+
|
|
464
486
|
/* What a crumb ASKS for before being clipped, and what the whole trail asks for.
|
|
465
487
|
Both are requests and not widths: a narrower line drops them, and a
|
|
466
488
|
wider one lets them grow.
|
|
@@ -547,6 +569,15 @@
|
|
|
547
569
|
things, and what they have to let you compare is precisely the number. */
|
|
548
570
|
--container-metric: 7rem;
|
|
549
571
|
|
|
572
|
+
/* The body of a board tile while it reads or after it failed: a chart's own plot height
|
|
573
|
+
(`Chart` draws `h-72`, 18rem). The skeleton and the failure take the room the chart will
|
|
574
|
+
take, so the grid does not jump when one tile lands and its neighbour is still reading. */
|
|
575
|
+
--size-tile-body: 18rem;
|
|
576
|
+
|
|
577
|
+
/* A row of headline metrics while the board reads them: the height of one `Metric` with
|
|
578
|
+
its figure and label, so the tiles below do not move down when the numbers arrive. */
|
|
579
|
+
--size-metric: 3.75rem;
|
|
580
|
+
|
|
550
581
|
/* The width of the peek drawer. It is a system decision and not a component
|
|
551
582
|
one: 30rem is what fits of a record without leaving the list behind it
|
|
552
583
|
—which has to stay clickable— reduced to a useless strip. */
|
|
@@ -600,6 +631,11 @@
|
|
|
600
631
|
two modules whose sidebars differ in width read as two products. */
|
|
601
632
|
--container-sidebar: 15rem;
|
|
602
633
|
|
|
634
|
+
/* The same sidebar as a drawer on a phone: a little wider than the column — it has the
|
|
635
|
+
whole screen to itself — and never wider than the screen minus a strip of the page,
|
|
636
|
+
which is where a thumb taps to close it. */
|
|
637
|
+
--container-drawer: min(20rem, calc(100vw - 3rem));
|
|
638
|
+
|
|
603
639
|
/* The record sheet. The rail above it spans the whole window; the sheet does not: a form
|
|
604
640
|
stretched to 1,400 px puts the label and its value half a screen apart and turns every
|
|
605
641
|
input into a bar nobody fills. 72rem holds two columns of fields at a readable width —
|
|
@@ -715,6 +751,29 @@
|
|
|
715
751
|
* gets a hairline (`chrome-edge`) because it and the canvas are both near
|
|
716
752
|
* black. The gold keeps being the primary action; `on-accent` keeps the text
|
|
717
753
|
* on it dark.
|
|
754
|
+
*
|
|
755
|
+
* ── A BRAND: set it once, every theme follows ───────────────────────
|
|
756
|
+
*
|
|
757
|
+
* The colours a brand owns — the action (`accent`, `accent-hover`, `on-accent`),
|
|
758
|
+
* the link and current place (`primary`, `primary-hover`), and the bar
|
|
759
|
+
* (`chrome`, `chrome-raised`, `chrome-edge`, `chrome-accent`, `chrome-link`) —
|
|
760
|
+
* read a `--brand-*` variable first, and fall back to the system's value:
|
|
761
|
+
*
|
|
762
|
+
* :root {
|
|
763
|
+
* --brand-accent: #d4a73a; --brand-dark-accent: #e0b850;
|
|
764
|
+
* --brand-chrome: #10203f; --brand-dark-chrome: #0a1428;
|
|
765
|
+
* }
|
|
766
|
+
*
|
|
767
|
+
* `--brand-<token>` is the light palette's, `--brand-dark-<token>` the dark's.
|
|
768
|
+
* Set on `:root`, a variable is INHERITED by every subtree — so the four blocks
|
|
769
|
+
* that define a palette (`@theme`, the media query, `[data-theme="dark"]` and
|
|
770
|
+
* the nested `[data-theme="light"]`) all resolve to the brand, and nothing has
|
|
771
|
+
* to be repeated per theme. Before, a brand overrode `--color-*` and lost to
|
|
772
|
+
* whichever of those blocks matched the element it was on.
|
|
773
|
+
*
|
|
774
|
+
* The system measures ITS values (the numbers in the comments); a brand's
|
|
775
|
+
* contrast is the brand's to check — the Storybook a11y pass does, on every
|
|
776
|
+
* story, in both themes.
|
|
718
777
|
* ==================================================================== */
|
|
719
778
|
:root {
|
|
720
779
|
color-scheme: light dark;
|
|
@@ -729,12 +788,21 @@
|
|
|
729
788
|
--color-line-strong: #443f38; /* 1.73:1 — border of a box, table header */
|
|
730
789
|
--color-ink: #ece8e1; /* 14.78:1 */
|
|
731
790
|
--color-muted: #a39b90; /* 6.57:1 */
|
|
732
|
-
--color-accent:
|
|
733
|
-
|
|
734
|
-
|
|
791
|
+
--color-accent: var(
|
|
792
|
+
--brand-dark-accent,
|
|
793
|
+
#c89b3c
|
|
794
|
+
); /* 7.05:1 — on dark the gold CAN be read, but it stays the primary action */
|
|
795
|
+
--color-accent-hover: var(
|
|
796
|
+
--brand-dark-accent-hover,
|
|
797
|
+
#dbb055
|
|
798
|
+
); /* on dark the hover LIGHTENS: on-accent on top gives 8.80:1 */
|
|
799
|
+
--color-on-accent: var(--brand-dark-on-accent, #1a1714); /* 6.98:1 on the gold */
|
|
735
800
|
--color-data: #8ea6d9; /* 7.40:1 */
|
|
736
|
-
--color-primary: #8fa9e8; /* 7.74:1 · surface on top 7.03:1 */
|
|
737
|
-
--color-primary-hover:
|
|
801
|
+
--color-primary: var(--brand-dark-primary, #8fa9e8); /* 7.74:1 · surface on top 7.03:1 */
|
|
802
|
+
--color-primary-hover: var(
|
|
803
|
+
--brand-dark-primary-hover,
|
|
804
|
+
#b0c3f1
|
|
805
|
+
); /* 10.25:1 · surface on top 9.31:1 */
|
|
738
806
|
--color-danger: #f08d7f; /* 7.58:1 · surface on top 6.89:1 */
|
|
739
807
|
--color-danger-hover: #f6ab9f; /* 9.66:1 · surface on top 8.78:1 */
|
|
740
808
|
--color-info: #5cc4d8; /* 8.89:1 */
|
|
@@ -750,13 +818,22 @@
|
|
|
750
818
|
--color-good: #6fcf8b; /* 9.43:1 */
|
|
751
819
|
--color-warn: #e3b341; /* 9.27:1 */
|
|
752
820
|
--color-bad: #f08d7f; /* 7.58:1 */
|
|
753
|
-
--color-chrome: #0b101e; /* the base: deeper than the canvas */
|
|
754
|
-
--color-chrome-raised:
|
|
755
|
-
|
|
821
|
+
--color-chrome: var(--brand-dark-chrome, #0b101e); /* the base: deeper than the canvas */
|
|
822
|
+
--color-chrome-raised: var(
|
|
823
|
+
--brand-dark-chrome-raised,
|
|
824
|
+
#18223a
|
|
825
|
+
); /* active tab, open menu */
|
|
826
|
+
--color-chrome-edge: var(
|
|
827
|
+
--brand-dark-chrome-edge,
|
|
828
|
+
#2b3656
|
|
829
|
+
); /* 1.59:1 on the chrome — the hairline that separates the bar from the canvas */
|
|
756
830
|
--color-chrome-ink: #e8e4de; /* 14.98:1 — text */
|
|
757
831
|
--color-chrome-muted: #a39b90; /* 6.91:1 — faint text */
|
|
758
|
-
--color-chrome-accent:
|
|
759
|
-
|
|
832
|
+
--color-chrome-accent: var(
|
|
833
|
+
--brand-dark-chrome-accent,
|
|
834
|
+
#c89b3c
|
|
835
|
+
); /* 7.42:1 — the gold, here it IS text */
|
|
836
|
+
--color-chrome-link: var(--brand-dark-chrome-link, #a9c1f2); /* 10.48:1 */
|
|
760
837
|
--color-chrome-good: #6fcf8b; /* 9.91:1 */
|
|
761
838
|
--color-chrome-warn: #e3b341; /* 9.75:1 */
|
|
762
839
|
--color-chrome-bad: #ff8a7a; /* 8.28:1 */
|
|
@@ -776,12 +853,21 @@
|
|
|
776
853
|
--color-line-strong: #443f38; /* 1.73:1 — border of a box, table header */
|
|
777
854
|
--color-ink: #ece8e1; /* 14.78:1 */
|
|
778
855
|
--color-muted: #a39b90; /* 6.57:1 */
|
|
779
|
-
--color-accent:
|
|
780
|
-
|
|
781
|
-
|
|
856
|
+
--color-accent: var(
|
|
857
|
+
--brand-dark-accent,
|
|
858
|
+
#c89b3c
|
|
859
|
+
); /* 7.05:1 — on dark the gold CAN be read, but it stays the primary action */
|
|
860
|
+
--color-accent-hover: var(
|
|
861
|
+
--brand-dark-accent-hover,
|
|
862
|
+
#dbb055
|
|
863
|
+
); /* on dark the hover LIGHTENS: on-accent on top gives 8.80:1 */
|
|
864
|
+
--color-on-accent: var(--brand-dark-on-accent, #1a1714); /* 6.98:1 on the gold */
|
|
782
865
|
--color-data: #8ea6d9; /* 7.40:1 */
|
|
783
|
-
--color-primary: #8fa9e8; /* 7.74:1 · surface on top 7.03:1 */
|
|
784
|
-
--color-primary-hover:
|
|
866
|
+
--color-primary: var(--brand-dark-primary, #8fa9e8); /* 7.74:1 · surface on top 7.03:1 */
|
|
867
|
+
--color-primary-hover: var(
|
|
868
|
+
--brand-dark-primary-hover,
|
|
869
|
+
#b0c3f1
|
|
870
|
+
); /* 10.25:1 · surface on top 9.31:1 */
|
|
785
871
|
--color-danger: #f08d7f; /* 7.58:1 · surface on top 6.89:1 */
|
|
786
872
|
--color-danger-hover: #f6ab9f; /* 9.66:1 · surface on top 8.78:1 */
|
|
787
873
|
--color-info: #5cc4d8; /* 8.89:1 */
|
|
@@ -797,13 +883,19 @@
|
|
|
797
883
|
--color-good: #6fcf8b; /* 9.43:1 */
|
|
798
884
|
--color-warn: #e3b341; /* 9.27:1 */
|
|
799
885
|
--color-bad: #f08d7f; /* 7.58:1 */
|
|
800
|
-
--color-chrome: #0b101e; /* the base: deeper than the canvas */
|
|
801
|
-
--color-chrome-raised: #18223a; /* active tab, open menu */
|
|
802
|
-
--color-chrome-edge:
|
|
886
|
+
--color-chrome: var(--brand-dark-chrome, #0b101e); /* the base: deeper than the canvas */
|
|
887
|
+
--color-chrome-raised: var(--brand-dark-chrome-raised, #18223a); /* active tab, open menu */
|
|
888
|
+
--color-chrome-edge: var(
|
|
889
|
+
--brand-dark-chrome-edge,
|
|
890
|
+
#2b3656
|
|
891
|
+
); /* 1.59:1 on the chrome — the hairline that separates the bar from the canvas */
|
|
803
892
|
--color-chrome-ink: #e8e4de; /* 14.98:1 — text */
|
|
804
893
|
--color-chrome-muted: #a39b90; /* 6.91:1 — faint text */
|
|
805
|
-
--color-chrome-accent:
|
|
806
|
-
|
|
894
|
+
--color-chrome-accent: var(
|
|
895
|
+
--brand-dark-chrome-accent,
|
|
896
|
+
#c89b3c
|
|
897
|
+
); /* 7.42:1 — the gold, here it IS text */
|
|
898
|
+
--color-chrome-link: var(--brand-dark-chrome-link, #a9c1f2); /* 10.48:1 */
|
|
807
899
|
--color-chrome-good: #6fcf8b; /* 9.91:1 */
|
|
808
900
|
--color-chrome-warn: #e3b341; /* 9.75:1 */
|
|
809
901
|
--color-chrome-bad: #ff8a7a; /* 8.28:1 */
|
|
@@ -825,12 +917,18 @@
|
|
|
825
917
|
--color-line-strong: #d5cec2; /* 1.49:1 — border of a box, table header */
|
|
826
918
|
--color-ink: #1a1714;
|
|
827
919
|
--color-muted: #6b6459;
|
|
828
|
-
--color-accent: #c89b3c; /* 2.43:1 on the ground → NEVER text */
|
|
829
|
-
--color-accent-hover:
|
|
830
|
-
|
|
920
|
+
--color-accent: var(--brand-accent, #c89b3c); /* 2.43:1 on the ground → NEVER text */
|
|
921
|
+
--color-accent-hover: var(
|
|
922
|
+
--brand-accent-hover,
|
|
923
|
+
#b88a2e
|
|
924
|
+
); /* on light the hover DARKENS: ink on top gives 5.71:1 */
|
|
925
|
+
--color-on-accent: var(--brand-on-accent, #1a1714); /* 6.98:1 on the gold */
|
|
831
926
|
--color-data: #1b2a4a; /* 13.52:1 */
|
|
832
|
-
--color-primary: #2a4a85; /* 8.26:1 · white on top 8.69:1 */
|
|
833
|
-
--color-primary-hover:
|
|
927
|
+
--color-primary: var(--brand-primary, #2a4a85); /* 8.26:1 · white on top 8.69:1 */
|
|
928
|
+
--color-primary-hover: var(
|
|
929
|
+
--brand-primary-hover,
|
|
930
|
+
#1c3765
|
|
931
|
+
); /* 11.19:1 · white on top 11.77:1 */
|
|
834
932
|
--color-danger: #9b3b30; /* 6.52:1 · white on top 6.86:1 */
|
|
835
933
|
--color-danger-hover: #7c2d24; /* 8.84:1 · white on top 9.30:1 */
|
|
836
934
|
--color-info: #0f5c6e; /* 7.19:1 · white on top 7.56:1 */
|
|
@@ -846,13 +944,22 @@
|
|
|
846
944
|
--color-good: #2f6b3c; /* 6.07:1 */
|
|
847
945
|
--color-warn: #7e5e12; /* 5.71:1 */
|
|
848
946
|
--color-bad: #9b3b30; /* 6.52:1 */
|
|
849
|
-
--color-chrome: #141b2e; /* the base */
|
|
850
|
-
--color-chrome-raised: #1e2740; /* active tab, open menu */
|
|
851
|
-
--color-chrome-edge:
|
|
947
|
+
--color-chrome: var(--brand-chrome, #141b2e); /* the base */
|
|
948
|
+
--color-chrome-raised: var(--brand-chrome-raised, #1e2740); /* active tab, open menu */
|
|
949
|
+
--color-chrome-edge: var(
|
|
950
|
+
--brand-chrome-edge,
|
|
951
|
+
#141b2e
|
|
952
|
+
); /* 1.00:1 on the chrome — invisible on light, a hairline on dark */
|
|
852
953
|
--color-chrome-ink: #e8e4de; /* 13.53:1 — text */
|
|
853
954
|
--color-chrome-muted: #a39b90; /* 6.24:1 — faint text */
|
|
854
|
-
--color-chrome-accent:
|
|
855
|
-
|
|
955
|
+
--color-chrome-accent: var(
|
|
956
|
+
--brand-chrome-accent,
|
|
957
|
+
#c89b3c
|
|
958
|
+
); /* 6.70:1 — the gold, here it IS text */
|
|
959
|
+
--color-chrome-link: var(
|
|
960
|
+
--brand-chrome-link,
|
|
961
|
+
#a9c1f2
|
|
962
|
+
); /* 9.46:1 · same family as the navy, separated by luminance */
|
|
856
963
|
--color-chrome-good: #6fcf8b; /* 8.95:1 */
|
|
857
964
|
--color-chrome-warn: #e3b341; /* 8.80:1 */
|
|
858
965
|
--color-chrome-bad: #ff8a7a; /* 7.48:1 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sincpro/web-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "An enterprise web design system for business software — ERPs, back offices, management tools — in React and Tailwind: tokens, primitives, components and the two views every management screen is made of.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|