@sincpro/web-ui 2.2.0 → 2.4.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 +113 -3
- package/dist/components/board/Board.js +1 -1
- package/dist/components/guide/Guide.d.ts +33 -0
- package/dist/components/guide/Guide.js +288 -0
- package/dist/components/guide/GuideSpot.d.ts +14 -0
- package/dist/components/guide/GuideSpot.js +13 -0
- package/dist/components/guide/index.d.ts +4 -0
- package/dist/components/guide/index.js +6 -0
- package/dist/components/guide/place.d.ts +44 -0
- package/dist/components/guide/place.js +69 -0
- package/dist/components/guide/target.d.ts +41 -0
- package/dist/components/guide/target.js +55 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/listing/GroupingLevels.js +11 -9
- package/dist/components/listing/Listing.js +7 -5
- package/dist/components/listing/RecordCard.js +1 -1
- package/dist/components/listing/Row.js +8 -7
- package/dist/components/navigation/NavigationTree.js +36 -9
- package/dist/components/record/DirtyActions.d.ts +9 -7
- package/dist/components/record/DirtyActions.js +14 -9
- package/dist/components/record/ThumbBar.js +2 -1
- package/dist/components/search/CriteriaBuilder.js +3 -2
- package/dist/components/search/CriteriaChips.js +6 -5
- package/dist/components/search/JoinWord.js +1 -1
- package/dist/components/search/SearchBar.js +41 -25
- package/dist/components/shell/AppFrame.d.ts +10 -1
- package/dist/components/shell/AppFrame.js +53 -10
- package/dist/components/shell/SearchEntry.d.ts +29 -0
- package/dist/components/shell/SearchEntry.js +34 -0
- package/dist/components/shell/Sidebar.d.ts +12 -3
- package/dist/components/shell/Sidebar.js +38 -12
- package/dist/components/shell/TopBar.d.ts +12 -1
- package/dist/components/shell/TopBar.js +7 -5
- package/dist/components/shell/brandMark.d.ts +17 -0
- package/dist/components/shell/brandMark.js +9 -0
- package/dist/components/shell/index.d.ts +2 -0
- package/dist/components/shell/index.js +5 -0
- package/dist/foundations/copy.d.ts +19 -2
- package/dist/foundations/copy.es.js +13 -3
- package/dist/foundations/copy.js +13 -3
- package/dist/foundations/index.d.ts +1 -0
- package/dist/foundations/index.js +2 -0
- package/dist/foundations/shortcut.d.ts +18 -0
- package/dist/foundations/shortcut.js +20 -0
- package/dist/foundations/variants.js +19 -2
- package/dist/primitives/block/Block.js +1 -1
- package/dist/primitives/button/Button.d.ts +3 -1
- package/dist/primitives/button/Button.js +6 -6
- package/dist/primitives/choice/SegmentedControl.d.ts +4 -1
- package/dist/primitives/choice/SegmentedControl.js +35 -7
- package/dist/primitives/dialog/Dialog.d.ts +1 -1
- package/dist/primitives/dialog/Dialog.js +2 -2
- package/dist/primitives/field/CardNumberInput.js +1 -1
- package/dist/primitives/field/Checks.d.ts +14 -0
- package/dist/primitives/field/Checks.js +12 -4
- package/dist/primitives/field/DurationInput.js +1 -1
- package/dist/primitives/field/Field.js +7 -7
- package/dist/primitives/field/PatternInput.js +1 -1
- package/dist/primitives/field/RichTextEditor.js +2 -2
- package/dist/primitives/field/SignatureInput.js +1 -1
- package/dist/primitives/field/aria.d.ts +2 -2
- package/dist/primitives/field/aria.js +5 -5
- package/dist/primitives/field/index.d.ts +1 -1
- package/dist/primitives/field/index.js +1 -1
- package/dist/primitives/menu/Menu.d.ts +23 -7
- package/dist/primitives/menu/Menu.js +76 -22
- package/dist/primitives/overlay/Popover.js +2 -2
- package/dist/primitives/picker/Picker.js +3 -3
- package/dist/primitives/picker/TagsField.js +1 -1
- package/dist/primitives/table/EditableTable.js +2 -2
- package/dist/primitives/table/ReportTable.js +1 -1
- package/dist/primitives/table/Table.js +2 -2
- package/dist/primitives/tag/Tag.d.ts +9 -0
- package/dist/primitives/tag/Tag.js +14 -1
- package/dist/primitives/tag/Tags.js +6 -7
- package/dist/primitives/value/Metric.d.ts +5 -1
- package/dist/primitives/value/Metric.js +8 -6
- package/dist/tokens.css +202 -56
- package/package.json +1 -1
package/dist/tokens.css
CHANGED
|
@@ -56,26 +56,29 @@
|
|
|
56
56
|
/* WARM white, not pure white: #FFFFFF on a full screen tires the eye and
|
|
57
57
|
cheapens the piece. It is called `ground` and not `base` because
|
|
58
58
|
`text-base` is already a Tailwind font size and the name would clash. */
|
|
59
|
-
--color-ground: #faf9f7;
|
|
59
|
+
--color-ground: var(--brand-ground, #faf9f7);
|
|
60
60
|
|
|
61
61
|
/* The raised surface IS white — that is what separates it from the ground.
|
|
62
62
|
Elevation here is done with a hairline border, not with a shadow: a shadow
|
|
63
63
|
on a light background is dirty grey. */
|
|
64
|
-
--color-surface: #ffffff;
|
|
64
|
+
--color-surface: var(--brand-surface, #ffffff);
|
|
65
65
|
|
|
66
66
|
/* The two hairlines. WARM grey — a neutral grey against a warm ground looks
|
|
67
67
|
bluish. They are not text: 1.26:1 and 1.49:1 on the ground, which is
|
|
68
68
|
exactly what a line that separates without shouting should measure. */
|
|
69
|
-
--color-line: #e4dfd7; /* 1.26:1 — common separator */
|
|
70
|
-
--color-line-strong:
|
|
69
|
+
--color-line: var(--brand-line, #e4dfd7); /* 1.26:1 — common separator */
|
|
70
|
+
--color-line-strong: var(
|
|
71
|
+
--brand-line-strong,
|
|
72
|
+
#d5cec2
|
|
73
|
+
); /* 1.49:1 — border of a box, table header */
|
|
71
74
|
|
|
72
75
|
/* Text: warm near-black. 16.96:1 on the ground, 17.85:1 on white. */
|
|
73
|
-
--color-ink: #1a1714;
|
|
76
|
+
--color-ink: var(--brand-ink, #1a1714);
|
|
74
77
|
|
|
75
78
|
/* Faint text — labels, metadata, units. 5.56:1 on the ground and 5.85:1 on
|
|
76
79
|
white: it passes AA for small text, which is exactly where it is used. The
|
|
77
80
|
#8A8178 from the dark theme gave 3.63:1 here and was discarded. */
|
|
78
|
-
--color-muted: #6b6459;
|
|
81
|
+
--color-muted: var(--brand-muted, #6b6459);
|
|
79
82
|
|
|
80
83
|
/* ---------------------------------------------------------------- *
|
|
81
84
|
* THE GOLD — and the rule that governs it on light.
|
|
@@ -352,23 +355,35 @@
|
|
|
352
355
|
* radius scale read as intentional:
|
|
353
356
|
* mark — a glyph-sized box. At 8px a 16px checkbox is already a circle
|
|
354
357
|
* control — what you touch and what measures one line of text
|
|
355
|
-
* box — a content box, a panel, a band
|
|
356
|
-
*
|
|
358
|
+
* box — a content box, a panel, a band — and what DROPS from a
|
|
359
|
+
* control: a menu, a list, the cuts panel
|
|
360
|
+
* panel — a window: a dialog, a notice, the workspace's frames
|
|
357
361
|
* pill — what is round because it is a capsule, not a box
|
|
358
362
|
*
|
|
359
363
|
* **The measured step.** 6/10/14 still read as the dense console. The median
|
|
360
364
|
* control across measured production systems is 8px, and the button shares
|
|
361
365
|
* it with the field: surveyed systems match those three (button, input,
|
|
362
366
|
* select) instead of rounding the button alone. The surface still grows.
|
|
363
|
-
* 12 is the next published peak and the modal step; 16 is
|
|
367
|
+
* 12 is the next published peak and the modal step; 16 is a window.
|
|
364
368
|
* The pill stays a capsule — a tag, a switch, an icon-only target — and
|
|
365
369
|
* is not a labeled button.
|
|
370
|
+
*
|
|
371
|
+
* **A dropdown is concentric with its rows.** A menu wraps 8px rows in
|
|
372
|
+
* 4px of padding, so its corner is 8 + 4 = 12. At 16 the outer curve ran
|
|
373
|
+
* away from the rows' and a 220px menu read as a balloon — «muy redondo»,
|
|
374
|
+
* said of the bar's menus, and measured: 16 outside, 8 inside, 4 between.
|
|
375
|
+
*
|
|
376
|
+
* **A brand turns ONE knob.** `--brand-radius` multiplies the whole scale,
|
|
377
|
+
* so the steps keep their proportion — and the dropdowns stay concentric:
|
|
378
|
+
* `0` is square everywhere (the pill too: «todo recto» means all of it),
|
|
379
|
+
* `1` is this scale, `1.5` rounder. A single step can still be set on its
|
|
380
|
+
* own (`--brand-radius-control: 6px`). Set on `:root`, like the colours.
|
|
366
381
|
* ------------------------------------------------------------------- */
|
|
367
|
-
--radius-mark: 4px;
|
|
368
|
-
--radius-control: 8px;
|
|
369
|
-
--radius-box: 12px;
|
|
370
|
-
--radius-panel: 16px;
|
|
371
|
-
--radius-pill: 9999px;
|
|
382
|
+
--radius-mark: var(--brand-radius-mark, calc(4px * var(--brand-radius, 1)));
|
|
383
|
+
--radius-control: var(--brand-radius-control, calc(8px * var(--brand-radius, 1)));
|
|
384
|
+
--radius-box: var(--brand-radius-box, calc(12px * var(--brand-radius, 1)));
|
|
385
|
+
--radius-panel: var(--brand-radius-panel, calc(16px * var(--brand-radius, 1)));
|
|
386
|
+
--radius-pill: var(--brand-radius-pill, calc(9999px * var(--brand-radius, 1)));
|
|
372
387
|
|
|
373
388
|
/* ---------------------------------------------------------------- *
|
|
374
389
|
* ELEVATION
|
|
@@ -526,30 +541,33 @@
|
|
|
526
541
|
It is asked for and not imposed —a base and not a fixed width— because a
|
|
527
542
|
row also lands in a 480 px drawer, and there a quarter of the box reserved
|
|
528
543
|
for the word «vencida» is a quarter taken away from the name. When there
|
|
529
|
-
is not enough for
|
|
530
|
-
|
|
531
|
-
tag, not the
|
|
544
|
+
is not enough for both, the column takes a line of its own under the
|
|
545
|
+
name and its meta (`--container-row-split`); it never shrinks below the
|
|
546
|
+
width of its own tags: from there down what shrinks is a tag, not the
|
|
547
|
+
column. */
|
|
532
548
|
--container-tags: 8rem;
|
|
533
549
|
|
|
534
|
-
/* What a name ASKS FOR in a list row before the
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
fit, the metadata drops to the line below and the name keeps the first one
|
|
542
|
-
whole — it is what identifies the record, and cut down to «ve…» it
|
|
543
|
-
identifies nothing.
|
|
544
|
-
|
|
545
|
-
That it is an ask and not a minimum is what makes the row work in a box
|
|
546
|
-
narrower than this: with the metadata already below, the name uses whatever
|
|
547
|
-
there is instead of overflowing. And it is what makes a checkbox, an icon
|
|
548
|
-
or a row of actions shift the moment it wraps without anyone declaring it
|
|
549
|
-
— they take their width from the same line, and the ask stops being met
|
|
550
|
-
earlier. */
|
|
550
|
+
/* What a name ASKS FOR in a list row before the tags give up its line.
|
|
551
|
+
|
|
552
|
+
It is an ask and not a minimum: in a box narrower than this the name uses
|
|
553
|
+
whatever there is instead of overflowing — it is what identifies the record,
|
|
554
|
+
and cut down to «ve…» it identifies nothing. With the tags' ask it makes
|
|
555
|
+
`--container-row-split`, the width under which the tags take a line of
|
|
556
|
+
their own. */
|
|
551
557
|
--container-name: 12rem;
|
|
552
558
|
|
|
559
|
+
/* The widest the TEXT of a list row gets — its name and the meta under it. On a 2000 px
|
|
560
|
+
workspace a row that stretched its text to the edge put the tags 1300 px away from the
|
|
561
|
+
name they describe; capped, the tags sit right after it, at the same place in every
|
|
562
|
+
row, and what is left of the line is empty, not a gap to jump across. */
|
|
563
|
+
--container-row-text: 40rem;
|
|
564
|
+
|
|
565
|
+
/* Under this width a list row's tags leave the name's line for one of their own: it is
|
|
566
|
+
the name's ask (`--container-name`), the tags' (`--container-tags`) and the gap
|
|
567
|
+
between, rounded up. Written as a figure because a container query cannot read a
|
|
568
|
+
variable. It is a query on the ROW'S box, so every row of a list decides the same. */
|
|
569
|
+
--container-row-split: 21rem;
|
|
570
|
+
|
|
553
571
|
/* The widest a chip of the search bar gets before it truncates. A filter written by hand
|
|
554
572
|
(«cliente contiene Importadora y Exportadora…») would otherwise take a whole line of the
|
|
555
573
|
bar and push the rest down; the full text stays in the chip's title. */
|
|
@@ -636,6 +654,10 @@
|
|
|
636
654
|
which is where a thumb taps to close it. */
|
|
637
655
|
--container-drawer: min(20rem, calc(100vw - 3rem));
|
|
638
656
|
|
|
657
|
+
/* A tour's card: a title and two or three lines read without moving the eye far, and on a
|
|
658
|
+
phone the screen minus a margin each side, so it never touches an edge. */
|
|
659
|
+
--container-guide: min(21rem, calc(100vw - 2rem));
|
|
660
|
+
|
|
639
661
|
/* The record sheet. The rail above it spans the whole window; the sheet does not: a form
|
|
640
662
|
stretched to 1,400 px puts the label and its value half a screen apart and turns every
|
|
641
663
|
input into a bar nobody fills. 72rem holds two columns of fields at a readable width —
|
|
@@ -703,6 +725,102 @@
|
|
|
703
725
|
--animate-reveal-late: reveal var(--duration-quick) var(--ease-out) 200ms both;
|
|
704
726
|
}
|
|
705
727
|
|
|
728
|
+
/* ==================================================================== *
|
|
729
|
+
* COMPONENT TOKENS — a component's look, open without forking it.
|
|
730
|
+
*
|
|
731
|
+
* The system tokens above decide the whole product. A product sometimes
|
|
732
|
+
* wants ONE piece different — square buttons for a till, a cooler menu, the
|
|
733
|
+
* cards without a border — and before this it had no way but to write its
|
|
734
|
+
* own component. Now each of the most-used components reads its look from
|
|
735
|
+
* a `--ui-<component>-<property>` variable first, and falls back to the
|
|
736
|
+
* system's token:
|
|
737
|
+
*
|
|
738
|
+
* :root {
|
|
739
|
+
* --ui-button-radius: 0; every button, square
|
|
740
|
+
* --ui-popover-bg: #f7f8fa; every menu and dropdown
|
|
741
|
+
* }
|
|
742
|
+
* .till {
|
|
743
|
+
* --ui-control-radius: 0; only inside this zone
|
|
744
|
+
* }
|
|
745
|
+
*
|
|
746
|
+
* `@theme inline` and not `@theme`: Tailwind writes the WHOLE chain into the
|
|
747
|
+
* utility (`border-radius: var(--ui-button-radius, var(--radius-control))`),
|
|
748
|
+
* so it resolves on the element itself. Declared on `:root`, the fallback
|
|
749
|
+
* would freeze the light palette there, and a dark subtree would inherit it.
|
|
750
|
+
* Set nothing and every piece looks exactly as it did.
|
|
751
|
+
*
|
|
752
|
+
* What a token does not cover, a PART does: every customizable piece carries
|
|
753
|
+
* `data-ui="<component>"` on its root and `data-ui="<component>.<part>"` on
|
|
754
|
+
* its parts, plus its variant (`data-role`, `data-size`, `data-surface`) —
|
|
755
|
+
* the stable names an application's CSS selects, instead of a class that
|
|
756
|
+
* changes with the next refactor. The list is in the README («Customizing a
|
|
757
|
+
* component») and `tests/componentTokens.test.tsx` holds both.
|
|
758
|
+
* ==================================================================== */
|
|
759
|
+
@theme inline {
|
|
760
|
+
/* Button and IconButton. */
|
|
761
|
+
--radius-ui-button: var(--ui-button-radius, var(--radius-control));
|
|
762
|
+
--radius-ui-icon-button: var(--ui-icon-button-radius, var(--radius-pill));
|
|
763
|
+
|
|
764
|
+
/* What is written into or chosen from: inputs, selects, pickers. */
|
|
765
|
+
--radius-ui-control: var(--ui-control-radius, var(--radius-control));
|
|
766
|
+
--color-ui-control: var(--ui-control-bg, var(--color-surface));
|
|
767
|
+
--color-ui-control-border: var(--ui-control-border, var(--color-line-strong));
|
|
768
|
+
|
|
769
|
+
/* Everything that drops from a control: menus, lists, the cuts panel, a popover. */
|
|
770
|
+
--radius-ui-popover: var(--ui-popover-radius, var(--radius-box));
|
|
771
|
+
--color-ui-popover: var(--ui-popover-bg, var(--color-surface));
|
|
772
|
+
--color-ui-popover-border: var(--ui-popover-border, var(--color-line-strong));
|
|
773
|
+
--shadow-ui-popover: var(--ui-popover-shadow, var(--shadow-float));
|
|
774
|
+
|
|
775
|
+
/* A row inside one of them: a menu item, an option. */
|
|
776
|
+
--radius-ui-option: var(--ui-option-radius, var(--radius-control));
|
|
777
|
+
--color-ui-option-active: var(
|
|
778
|
+
--ui-option-active-bg,
|
|
779
|
+
color-mix(in srgb, var(--color-primary) 8%, transparent)
|
|
780
|
+
);
|
|
781
|
+
|
|
782
|
+
/* A window: a dialog, a confirmation. */
|
|
783
|
+
--radius-ui-dialog: var(--ui-dialog-radius, var(--radius-panel));
|
|
784
|
+
--color-ui-dialog: var(--ui-dialog-bg, var(--color-surface));
|
|
785
|
+
|
|
786
|
+
/* A box of content: a block, a card of a list, a board tile, a metric. */
|
|
787
|
+
--radius-ui-card: var(--ui-card-radius, var(--radius-box));
|
|
788
|
+
--color-ui-card: var(--ui-card-bg, var(--color-surface));
|
|
789
|
+
--color-ui-card-border: var(--ui-card-border, var(--color-line));
|
|
790
|
+
|
|
791
|
+
/* A capsule: a tag, a chip of the search bar. */
|
|
792
|
+
--radius-ui-tag: var(--ui-tag-radius, var(--radius-pill));
|
|
793
|
+
|
|
794
|
+
/* The search bar's field. */
|
|
795
|
+
--radius-ui-search: var(--ui-search-radius, var(--radius-box));
|
|
796
|
+
|
|
797
|
+
/* The sidebar on the canvas (on the chrome it is the brand's `--brand-chrome`). */
|
|
798
|
+
--color-ui-sidebar: var(--ui-sidebar-bg, var(--color-ground));
|
|
799
|
+
--color-ui-sidebar-border: var(--ui-sidebar-border, var(--color-line));
|
|
800
|
+
|
|
801
|
+
/* A row of the navigation tree, and the one you are on. */
|
|
802
|
+
--radius-ui-nav: var(--ui-nav-radius, var(--radius-control));
|
|
803
|
+
--color-ui-nav-current: var(
|
|
804
|
+
--ui-nav-current-bg,
|
|
805
|
+
color-mix(in srgb, var(--color-primary) 10%, transparent)
|
|
806
|
+
);
|
|
807
|
+
|
|
808
|
+
/* A table's header band. */
|
|
809
|
+
--color-ui-table-head: var(--ui-table-head-bg, var(--color-ground));
|
|
810
|
+
|
|
811
|
+
/* A guided tour: its card, and the veil around what a step points at. */
|
|
812
|
+
--radius-ui-guide: var(--ui-guide-radius, var(--radius-panel));
|
|
813
|
+
--color-ui-guide: var(--ui-guide-bg, var(--color-surface));
|
|
814
|
+
--color-ui-guide-scrim: var(
|
|
815
|
+
--ui-guide-scrim,
|
|
816
|
+
color-mix(in srgb, var(--color-scrim) 55%, transparent)
|
|
817
|
+
);
|
|
818
|
+
/* The veil itself: the cut-out around the target throws a spread as wide as the window, in
|
|
819
|
+
its own colour (`text-ui-guide-scrim`) — the hole is exact and rounded, and it glides. The
|
|
820
|
+
same in both themes: the colour is the scrim's, which already is per theme. */
|
|
821
|
+
--shadow-guide-veil: 0 0 0 100vmax currentColor;
|
|
822
|
+
}
|
|
823
|
+
|
|
706
824
|
@keyframes reveal {
|
|
707
825
|
from {
|
|
708
826
|
opacity: 0;
|
|
@@ -754,16 +872,23 @@
|
|
|
754
872
|
*
|
|
755
873
|
* ── A BRAND: set it once, every theme follows ───────────────────────
|
|
756
874
|
*
|
|
757
|
-
* The colours a brand owns — the
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
875
|
+
* The colours a brand owns — the canvas (`ground`, `surface`, `line`,
|
|
876
|
+
* `line-strong`, `ink`, `muted`), the action (`accent`, `accent-hover`,
|
|
877
|
+
* `on-accent`), the link and current place (`primary`, `primary-hover`), and the
|
|
878
|
+
* bar (`chrome`, `chrome-raised`, `chrome-edge`, `chrome-accent`, `chrome-link`)
|
|
879
|
+
* — read a `--brand-*` variable first, and fall back to the system's value:
|
|
761
880
|
*
|
|
762
881
|
* :root {
|
|
763
882
|
* --brand-accent: #d4a73a; --brand-dark-accent: #e0b850;
|
|
764
883
|
* --brand-chrome: #10203f; --brand-dark-chrome: #0a1428;
|
|
884
|
+
* --brand-ground: #f7f8fa; --brand-dark-ground: #121417;
|
|
885
|
+
* --brand-radius: 0.5; (the corners: 0 square · 1 · 1.5 rounder)
|
|
765
886
|
* }
|
|
766
887
|
*
|
|
888
|
+
* The canvas is brandable because a product's paper is part of its look — a
|
|
889
|
+
* cool white, a warmer grey. Before, a brand overrode `--color-ink` and
|
|
890
|
+
* `--color-line` directly, and lost them in the dark theme.
|
|
891
|
+
*
|
|
767
892
|
* `--brand-<token>` is the light palette's, `--brand-dark-<token>` the dark's.
|
|
768
893
|
* Set on `:root`, a variable is INHERITED by every subtree — so the four blocks
|
|
769
894
|
* that define a palette (`@theme`, the media query, `[data-theme="dark"]` and
|
|
@@ -782,12 +907,21 @@
|
|
|
782
907
|
@media (prefers-color-scheme: dark) {
|
|
783
908
|
:root:not([data-theme="light"]) {
|
|
784
909
|
color-scheme: dark;
|
|
785
|
-
--color-ground:
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
--color-
|
|
790
|
-
|
|
910
|
+
--color-ground: var(
|
|
911
|
+
--brand-dark-ground,
|
|
912
|
+
#181614
|
|
913
|
+
); /* the canvas: warm near-black, not #000 */
|
|
914
|
+
--color-surface: var(
|
|
915
|
+
--brand-dark-surface,
|
|
916
|
+
#221f1c
|
|
917
|
+
); /* 1.10:1 above the ground — in the dark, raised is LIGHTER */
|
|
918
|
+
--color-line: var(--brand-dark-line, #302c28); /* 1.30:1 — common separator */
|
|
919
|
+
--color-line-strong: var(
|
|
920
|
+
--brand-dark-line-strong,
|
|
921
|
+
#443f38
|
|
922
|
+
); /* 1.73:1 — border of a box, table header */
|
|
923
|
+
--color-ink: var(--brand-dark-ink, #ece8e1); /* 14.78:1 */
|
|
924
|
+
--color-muted: var(--brand-dark-muted, #a39b90); /* 6.57:1 */
|
|
791
925
|
--color-accent: var(
|
|
792
926
|
--brand-dark-accent,
|
|
793
927
|
#c89b3c
|
|
@@ -847,12 +981,21 @@
|
|
|
847
981
|
|
|
848
982
|
[data-theme="dark"] {
|
|
849
983
|
color-scheme: dark;
|
|
850
|
-
--color-ground:
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
--color-
|
|
855
|
-
|
|
984
|
+
--color-ground: var(
|
|
985
|
+
--brand-dark-ground,
|
|
986
|
+
#181614
|
|
987
|
+
); /* the canvas: warm near-black, not #000 */
|
|
988
|
+
--color-surface: var(
|
|
989
|
+
--brand-dark-surface,
|
|
990
|
+
#221f1c
|
|
991
|
+
); /* 1.10:1 above the ground — in the dark, raised is LIGHTER */
|
|
992
|
+
--color-line: var(--brand-dark-line, #302c28); /* 1.30:1 — common separator */
|
|
993
|
+
--color-line-strong: var(
|
|
994
|
+
--brand-dark-line-strong,
|
|
995
|
+
#443f38
|
|
996
|
+
); /* 1.73:1 — border of a box, table header */
|
|
997
|
+
--color-ink: var(--brand-dark-ink, #ece8e1); /* 14.78:1 */
|
|
998
|
+
--color-muted: var(--brand-dark-muted, #a39b90); /* 6.57:1 */
|
|
856
999
|
--color-accent: var(
|
|
857
1000
|
--brand-dark-accent,
|
|
858
1001
|
#c89b3c
|
|
@@ -911,12 +1054,15 @@
|
|
|
911
1054
|
`tests/tokens.test.ts` keeps it equal to `@theme`. */
|
|
912
1055
|
[data-theme="light"] {
|
|
913
1056
|
color-scheme: light;
|
|
914
|
-
--color-ground: #faf9f7;
|
|
915
|
-
--color-surface: #ffffff;
|
|
916
|
-
--color-line: #e4dfd7; /* 1.26:1 — common separator */
|
|
917
|
-
--color-line-strong:
|
|
918
|
-
|
|
919
|
-
|
|
1057
|
+
--color-ground: var(--brand-ground, #faf9f7);
|
|
1058
|
+
--color-surface: var(--brand-surface, #ffffff);
|
|
1059
|
+
--color-line: var(--brand-line, #e4dfd7); /* 1.26:1 — common separator */
|
|
1060
|
+
--color-line-strong: var(
|
|
1061
|
+
--brand-line-strong,
|
|
1062
|
+
#d5cec2
|
|
1063
|
+
); /* 1.49:1 — border of a box, table header */
|
|
1064
|
+
--color-ink: var(--brand-ink, #1a1714);
|
|
1065
|
+
--color-muted: var(--brand-muted, #6b6459);
|
|
920
1066
|
--color-accent: var(--brand-accent, #c89b3c); /* 2.43:1 on the ground → NEVER text */
|
|
921
1067
|
--color-accent-hover: var(
|
|
922
1068
|
--brand-accent-hover,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sincpro/web-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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",
|