@finstack-com-public/design 0.10.1 → 0.10.3
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/CHANGELOG.md +81 -0
- package/dist/css/breadcrumbs.css +7 -0
- package/dist/css/button.css +14 -0
- package/dist/css/checkbox.css +3 -1
- package/dist/css/data-type.md +1 -1
- package/dist/css/diag.md +1 -1
- package/dist/css/disclosure.css +7 -0
- package/dist/css/drag.css +7 -0
- package/dist/css/drag.md +2 -0
- package/dist/css/dropzone.css +9 -0
- package/dist/css/field.css +18 -0
- package/dist/css/grid.css +25 -0
- package/dist/css/icon-button.css +10 -0
- package/dist/css/icon.md +7 -2
- package/dist/css/input.css +24 -0
- package/dist/css/menu.css +20 -0
- package/dist/css/pill.css +7 -0
- package/dist/css/progress.css +17 -0
- package/dist/css/stacked-bar.css +16 -0
- package/dist/css/table.css +8 -0
- package/dist/css/tabs.css +9 -0
- package/dist/css/tokens.css +9 -3
- package/dist/css/tree.css +8 -0
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/button.js +1 -1
- package/dist/css-text/checkbox.js +1 -1
- package/dist/css-text/disclosure.js +1 -1
- package/dist/css-text/drag.js +1 -1
- package/dist/css-text/dropzone.js +1 -1
- package/dist/css-text/field.js +1 -1
- package/dist/css-text/grid.js +1 -1
- package/dist/css-text/icon-button.js +1 -1
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kit.js +218 -4
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/pill.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/stacked-bar.js +1 -1
- package/dist/css-text/table.js +1 -1
- package/dist/css-text/tabs.js +1 -1
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/tree.js +1 -1
- package/dist/grid.json +2 -1
- package/dist/icons/masks.css +167 -1
- package/dist/kit.css +218 -4
- package/dist/tokens/contrast-pairs.js +22 -3
- package/dist/tokens/grid.d.ts +1 -0
- package/dist/tokens/grid.js +2 -1
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens.json +3 -1
- package/package.json +2 -1
package/dist/kit.css
CHANGED
|
@@ -165,12 +165,13 @@
|
|
|
165
165
|
--fs-grid-error-bg: #fdecea;
|
|
166
166
|
--fs-grid-negative-ink: #c62828;
|
|
167
167
|
--fs-grid-stale-ink: #5f5e5a;
|
|
168
|
-
--fs-grid-stale-dot: #
|
|
168
|
+
--fs-grid-stale-dot: #c27c00;
|
|
169
169
|
--fs-grid-dirty-ink: #3d3db4;
|
|
170
170
|
--fs-grid-invalid-ink: #c62828;
|
|
171
171
|
--fs-grid-selected: #3d3db4;
|
|
172
172
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
173
173
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
174
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
174
175
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
175
176
|
--fs-grid-chevron: #8a8983;
|
|
176
177
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -432,6 +433,7 @@
|
|
|
432
433
|
--fs-grid-selected: #8c8cff;
|
|
433
434
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
434
435
|
--fs-grid-editing-bg: #223a7e;
|
|
436
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
435
437
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
436
438
|
--fs-grid-chevron: #6f81ad;
|
|
437
439
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -570,6 +572,7 @@
|
|
|
570
572
|
--fs-grid-selected: #8c8cff;
|
|
571
573
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
572
574
|
--fs-grid-editing-bg: #223a7e;
|
|
575
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
573
576
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
574
577
|
--fs-grid-chevron: #6f81ad;
|
|
575
578
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -702,12 +705,13 @@
|
|
|
702
705
|
--fs-grid-error-bg: #fdecea;
|
|
703
706
|
--fs-grid-negative-ink: #c62828;
|
|
704
707
|
--fs-grid-stale-ink: #5f5e5a;
|
|
705
|
-
--fs-grid-stale-dot: #
|
|
708
|
+
--fs-grid-stale-dot: #c27c00;
|
|
706
709
|
--fs-grid-dirty-ink: #3d3db4;
|
|
707
710
|
--fs-grid-invalid-ink: #c62828;
|
|
708
711
|
--fs-grid-selected: #3d3db4;
|
|
709
712
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
710
713
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
714
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
711
715
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
712
716
|
--fs-grid-chevron: #8a8983;
|
|
713
717
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -889,6 +893,7 @@
|
|
|
889
893
|
--fs-grid-selected: #8c8cff;
|
|
890
894
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
891
895
|
--fs-grid-editing-bg: #223a7e;
|
|
896
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
892
897
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
893
898
|
--fs-grid-chevron: #6f81ad;
|
|
894
899
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -1075,12 +1080,13 @@
|
|
|
1075
1080
|
--fs-grid-error-bg: #fdecea;
|
|
1076
1081
|
--fs-grid-negative-ink: #c62828;
|
|
1077
1082
|
--fs-grid-stale-ink: #5f5e5a;
|
|
1078
|
-
--fs-grid-stale-dot: #
|
|
1083
|
+
--fs-grid-stale-dot: #c27c00;
|
|
1079
1084
|
--fs-grid-dirty-ink: #3d3db4;
|
|
1080
1085
|
--fs-grid-invalid-ink: #c62828;
|
|
1081
1086
|
--fs-grid-selected: #3d3db4;
|
|
1082
1087
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
1083
1088
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
1089
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
1084
1090
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
1085
1091
|
--fs-grid-chevron: #8a8983;
|
|
1086
1092
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -1236,6 +1242,13 @@
|
|
|
1236
1242
|
outline-offset: var(--fs-ring-halo-width);
|
|
1237
1243
|
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
1238
1244
|
}
|
|
1245
|
+
|
|
1246
|
+
/* Forced colours erase a fill, so the separator's mask is drawn in CanvasText (T105). */
|
|
1247
|
+
@media (forced-colors: active) {
|
|
1248
|
+
.fs-breadcrumbs__item + .fs-breadcrumbs__item::before {
|
|
1249
|
+
background-color: CanvasText;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1239
1252
|
}
|
|
1240
1253
|
|
|
1241
1254
|
/* Button (spec 02 A). Usage: button.md. */
|
|
@@ -1398,6 +1411,20 @@
|
|
|
1398
1411
|
transform: rotate(360deg);
|
|
1399
1412
|
}
|
|
1400
1413
|
}
|
|
1414
|
+
|
|
1415
|
+
/* Forced colours erase the pressed fill and the accent edge, so pressed takes the system's
|
|
1416
|
+
selection colours; aria-disabled gets GrayText, as a native :disabled button does (T107). */
|
|
1417
|
+
@media (forced-colors: active) {
|
|
1418
|
+
.fs-button[aria-pressed='true'] {
|
|
1419
|
+
--fs-button-ink: HighlightText;
|
|
1420
|
+
background-color: Highlight;
|
|
1421
|
+
border-color: Highlight;
|
|
1422
|
+
}
|
|
1423
|
+
.fs-button[aria-disabled='true'] {
|
|
1424
|
+
--fs-button-ink: GrayText;
|
|
1425
|
+
border-color: GrayText;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1401
1428
|
}
|
|
1402
1429
|
|
|
1403
1430
|
/* Calendar (spec 02 B): year, month and day views; one value or a range (T85), one page or two.
|
|
@@ -1822,7 +1849,9 @@
|
|
|
1822
1849
|
content: '';
|
|
1823
1850
|
position: absolute;
|
|
1824
1851
|
inset: 0;
|
|
1825
|
-
|
|
1852
|
+
/* The mark is the surface colour on the accent (I21): white in light as before; in dark the navy surface,
|
|
1853
|
+
8.1:1 on the light-blue accent where white was 2.0:1. Not ink-on-accent, which products read for text. */
|
|
1854
|
+
background: var(--fs-bg-surface);
|
|
1826
1855
|
visibility: hidden;
|
|
1827
1856
|
}
|
|
1828
1857
|
.fs-checkbox__input::before {
|
|
@@ -2626,6 +2655,13 @@
|
|
|
2626
2655
|
background: var(--fs-gap-wash);
|
|
2627
2656
|
border-color: var(--fs-gap-edge);
|
|
2628
2657
|
}
|
|
2658
|
+
|
|
2659
|
+
/* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */
|
|
2660
|
+
@media (forced-colors: active) {
|
|
2661
|
+
.fs-disclosure__summary::before {
|
|
2662
|
+
background-color: CanvasText;
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2629
2665
|
}
|
|
2630
2666
|
|
|
2631
2667
|
/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).
|
|
@@ -2725,6 +2761,13 @@
|
|
|
2725
2761
|
background: var(--fs-danger-wash);
|
|
2726
2762
|
outline-color: var(--fs-danger-fill);
|
|
2727
2763
|
}
|
|
2764
|
+
/* Forced colours drops the wash and paints both outlines in the text colour: refused is a thicker dashed outline. */
|
|
2765
|
+
@media (forced-colors: active) {
|
|
2766
|
+
.fs-drag-ghost.fs-is-refused {
|
|
2767
|
+
outline: 4px dashed CanvasText;
|
|
2768
|
+
outline-offset: -4px;
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2728
2771
|
|
|
2729
2772
|
.fs-add-cell {
|
|
2730
2773
|
display: grid;
|
|
@@ -2886,6 +2929,15 @@
|
|
|
2886
2929
|
background: var(--fs-accent-wash);
|
|
2887
2930
|
border-color: var(--fs-accent);
|
|
2888
2931
|
}
|
|
2932
|
+
|
|
2933
|
+
/* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight
|
|
2934
|
+
ring just outside its edge, on Canvas (T107). */
|
|
2935
|
+
@media (forced-colors: active) {
|
|
2936
|
+
.fs-slot.fs-is-dragover {
|
|
2937
|
+
outline: 2px solid Highlight;
|
|
2938
|
+
outline-offset: 2px;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2889
2941
|
}
|
|
2890
2942
|
|
|
2891
2943
|
/* Empty state (spec 02 E). Usage: empty.md. */
|
|
@@ -3150,6 +3202,24 @@
|
|
|
3150
3202
|
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
3151
3203
|
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
3152
3204
|
}
|
|
3205
|
+
|
|
3206
|
+
/* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line
|
|
3207
|
+
marks it (the focus ring takes the outline while focused); a disabled box greys its edge and
|
|
3208
|
+
text (T107). */
|
|
3209
|
+
@media (forced-colors: active) {
|
|
3210
|
+
.fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {
|
|
3211
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3212
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3213
|
+
}
|
|
3214
|
+
.fs-field__box:has(:disabled) {
|
|
3215
|
+
color: GrayText;
|
|
3216
|
+
border-color: GrayText;
|
|
3217
|
+
}
|
|
3218
|
+
.fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {
|
|
3219
|
+
color: GrayText;
|
|
3220
|
+
-webkit-text-fill-color: GrayText;
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3153
3223
|
}
|
|
3154
3224
|
|
|
3155
3225
|
/* "Not computed" markers (spec 02 F; GZ §6.1). Usage: gap.md. Every marker brings its own surface
|
|
@@ -3555,6 +3625,12 @@
|
|
|
3555
3625
|
.fs-grid .fs-cell--editing {
|
|
3556
3626
|
background-color: var(--fs-grid-editing-bg);
|
|
3557
3627
|
}
|
|
3628
|
+
/* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */
|
|
3629
|
+
.fs-grid .fs-cell--editing.fs-cell--negative,
|
|
3630
|
+
.fs-grid .fs-cell--editing.fs-cell--error,
|
|
3631
|
+
.fs-grid .fs-cell--editing.fs-cell--invalid {
|
|
3632
|
+
color: var(--fs-grid-editing-danger-ink);
|
|
3633
|
+
}
|
|
3558
3634
|
.fs-grid .fs-cell--editing .fs-grid__cover {
|
|
3559
3635
|
visibility: hidden;
|
|
3560
3636
|
}
|
|
@@ -3580,6 +3656,25 @@
|
|
|
3580
3656
|
border-top: 6px solid var(--fs-accent);
|
|
3581
3657
|
border-left: 6px solid transparent;
|
|
3582
3658
|
}
|
|
3659
|
+
|
|
3660
|
+
/* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the
|
|
3661
|
+
cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error
|
|
3662
|
+
does, and an error cell also gets a dashed inner edge (T107). */
|
|
3663
|
+
@media (forced-colors: active) {
|
|
3664
|
+
.fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {
|
|
3665
|
+
text-decoration: underline wavy CanvasText;
|
|
3666
|
+
text-decoration-skip-ink: none;
|
|
3667
|
+
text-underline-offset: 3px;
|
|
3668
|
+
}
|
|
3669
|
+
.fs-grid .fs-cell--error:not(.fs-is-selected) {
|
|
3670
|
+
outline: var(--fs-line-width) dashed CanvasText;
|
|
3671
|
+
outline-offset: -3px;
|
|
3672
|
+
}
|
|
3673
|
+
/* A fill becomes Canvas here, so the stale dot would vanish (I23). */
|
|
3674
|
+
.fs-grid .fs-cell--stale::before {
|
|
3675
|
+
background: CanvasText;
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3583
3678
|
}
|
|
3584
3679
|
|
|
3585
3680
|
/* Gutter mark (spec 02 H). Usage: gutter-mark.md.
|
|
@@ -3688,6 +3783,16 @@
|
|
|
3688
3783
|
border-color: transparent;
|
|
3689
3784
|
cursor: not-allowed;
|
|
3690
3785
|
}
|
|
3786
|
+
|
|
3787
|
+
/* Forced colours erase the pressed fill and edge, so pressed takes the system's selection
|
|
3788
|
+
colours (T107). */
|
|
3789
|
+
@media (forced-colors: active) {
|
|
3790
|
+
.fs-icon-button[aria-pressed='true'] {
|
|
3791
|
+
color: HighlightText;
|
|
3792
|
+
background-color: Highlight;
|
|
3793
|
+
border-color: Highlight;
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3691
3796
|
}
|
|
3692
3797
|
|
|
3693
3798
|
/* Icons drawn by createIcon and iconSvg (spec 05 §1). */
|
|
@@ -3825,6 +3930,30 @@
|
|
|
3825
3930
|
.fs-select:has(:disabled) {
|
|
3826
3931
|
color: var(--fs-ink-disabled);
|
|
3827
3932
|
}
|
|
3933
|
+
|
|
3934
|
+
/* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */
|
|
3935
|
+
@media (forced-colors: active) {
|
|
3936
|
+
.fs-select::after {
|
|
3937
|
+
background-color: CanvasText;
|
|
3938
|
+
}
|
|
3939
|
+
.fs-select:has(:disabled)::after {
|
|
3940
|
+
background-color: GrayText;
|
|
3941
|
+
}
|
|
3942
|
+
/* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */
|
|
3943
|
+
.fs-input[aria-invalid='true'],
|
|
3944
|
+
.fs-textarea[aria-invalid='true'],
|
|
3945
|
+
.fs-select__control[aria-invalid='true'] {
|
|
3946
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3947
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3948
|
+
}
|
|
3949
|
+
.fs-input:disabled,
|
|
3950
|
+
.fs-textarea:disabled,
|
|
3951
|
+
.fs-select__control:disabled {
|
|
3952
|
+
color: GrayText;
|
|
3953
|
+
-webkit-text-fill-color: GrayText;
|
|
3954
|
+
border-color: GrayText;
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3828
3957
|
}
|
|
3829
3958
|
|
|
3830
3959
|
/* Kicker and section label (spec 02 E). Usage: kicker.md. */
|
|
@@ -4353,6 +4482,26 @@
|
|
|
4353
4482
|
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4354
4483
|
color: var(--fs-ink-disabled);
|
|
4355
4484
|
}
|
|
4485
|
+
|
|
4486
|
+
/* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */
|
|
4487
|
+
@media (forced-colors: active) {
|
|
4488
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {
|
|
4489
|
+
background-color: CanvasText;
|
|
4490
|
+
}
|
|
4491
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(
|
|
4492
|
+
[aria-disabled='true'],
|
|
4493
|
+
:disabled
|
|
4494
|
+
)::before {
|
|
4495
|
+
background-color: GrayText;
|
|
4496
|
+
}
|
|
4497
|
+
/* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox
|
|
4498
|
+
showed no difference without this; Chromium did, for a reason not traced (T109). */
|
|
4499
|
+
.fs-menu__item[aria-disabled='true'],
|
|
4500
|
+
.fs-menu__item:disabled,
|
|
4501
|
+
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4502
|
+
color: GrayText;
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4356
4505
|
}
|
|
4357
4506
|
|
|
4358
4507
|
/* Meter (spec 02 E; Grizzbi's score meter). Usage: meter.md. */
|
|
@@ -4971,6 +5120,13 @@
|
|
|
4971
5120
|
--fs-pill-wash: var(--fs-mark-none-wash);
|
|
4972
5121
|
--fs-pill-dot: var(--fs-mark-none-fill);
|
|
4973
5122
|
}
|
|
5123
|
+
|
|
5124
|
+
/* A fill becomes Canvas here, so the dot would vanish (I23); the word carries the tone. */
|
|
5125
|
+
@media (forced-colors: active) {
|
|
5126
|
+
.fs-pill--dot::before {
|
|
5127
|
+
background: CanvasText;
|
|
5128
|
+
}
|
|
5129
|
+
}
|
|
4974
5130
|
}
|
|
4975
5131
|
|
|
4976
5132
|
/* Popover (spec 02 D). Usage: popover.md. Behaviour: createPopover. */
|
|
@@ -5181,6 +5337,23 @@
|
|
|
5181
5337
|
transform: rotate(360deg);
|
|
5182
5338
|
}
|
|
5183
5339
|
}
|
|
5340
|
+
|
|
5341
|
+
/* Forced colours draw a transparent border and erase fills and shadows, so every step would be a
|
|
5342
|
+
plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick
|
|
5343
|
+
ring (T107). */
|
|
5344
|
+
@media (forced-colors: active) {
|
|
5345
|
+
.fs-progress__step[aria-current='step']::before {
|
|
5346
|
+
border-color: CanvasText;
|
|
5347
|
+
border-top-color: Canvas;
|
|
5348
|
+
}
|
|
5349
|
+
.fs-progress__step.fs-is-done::before {
|
|
5350
|
+
background-color: CanvasText;
|
|
5351
|
+
border-color: CanvasText;
|
|
5352
|
+
}
|
|
5353
|
+
.fs-progress__step.fs-is-failed::before {
|
|
5354
|
+
border: 4px solid CanvasText;
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5184
5357
|
}
|
|
5185
5358
|
|
|
5186
5359
|
/* Segmented control (spec 02 A). Usage: segmented.md. Behaviour: createRovingGroup, mode 'radio'.
|
|
@@ -5583,6 +5756,22 @@
|
|
|
5583
5756
|
font-variant-numeric: tabular-nums;
|
|
5584
5757
|
color: var(--fs-ink);
|
|
5585
5758
|
}
|
|
5759
|
+
|
|
5760
|
+
/* A fill becomes Canvas here, so the legend dots would vanish (I23). They take the mark dot's shapes:
|
|
5761
|
+
exact solid, approximate half filled, not converted a ring; the words and counts still name them. */
|
|
5762
|
+
@media (forced-colors: active) {
|
|
5763
|
+
.fs-legend__dot {
|
|
5764
|
+
box-sizing: border-box;
|
|
5765
|
+
background: CanvasText;
|
|
5766
|
+
border: 1.5px solid CanvasText;
|
|
5767
|
+
}
|
|
5768
|
+
.fs-legend__dot--approximate {
|
|
5769
|
+
background: linear-gradient(90deg, CanvasText 50%, transparent 50%);
|
|
5770
|
+
}
|
|
5771
|
+
.fs-legend__dot--not-converted {
|
|
5772
|
+
background: transparent;
|
|
5773
|
+
}
|
|
5774
|
+
}
|
|
5586
5775
|
}
|
|
5587
5776
|
|
|
5588
5777
|
/* Steps: a numbered how-to, or lifecycle steps with status marks (spec 02 E). Usage: steps.md. */
|
|
@@ -5957,6 +6146,14 @@
|
|
|
5957
6146
|
break-inside: avoid;
|
|
5958
6147
|
}
|
|
5959
6148
|
}
|
|
6149
|
+
|
|
6150
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6151
|
+
@media (forced-colors: active) {
|
|
6152
|
+
.fs-table tbody tr[aria-selected='true'] > * {
|
|
6153
|
+
color: HighlightText;
|
|
6154
|
+
background-color: Highlight;
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
5960
6157
|
}
|
|
5961
6158
|
|
|
5962
6159
|
/* Tabs, choice tabs and page tabs (spec 02 C). Usage: tabs.md. Behaviour: createTabs. */
|
|
@@ -6139,6 +6336,15 @@
|
|
|
6139
6336
|
background-color: transparent;
|
|
6140
6337
|
cursor: not-allowed;
|
|
6141
6338
|
}
|
|
6339
|
+
|
|
6340
|
+
/* After the disabled rule above, which it overrides: forced colours turn the disabled ink into
|
|
6341
|
+
the plain text colour, so a disabled tab is greyed with GrayText (T107). */
|
|
6342
|
+
@media (forced-colors: active) {
|
|
6343
|
+
.fs-tabs__tab:disabled,
|
|
6344
|
+
.fs-tabs__tab[aria-disabled='true'] {
|
|
6345
|
+
color: GrayText;
|
|
6346
|
+
}
|
|
6347
|
+
}
|
|
6142
6348
|
}
|
|
6143
6349
|
|
|
6144
6350
|
/* Page and section titles (spec 01 §4, T68, D39). Usage: title.md. */
|
|
@@ -6536,6 +6742,14 @@
|
|
|
6536
6742
|
.fs-tree__status.fs-tone-danger {
|
|
6537
6743
|
color: var(--fs-danger-ink);
|
|
6538
6744
|
}
|
|
6745
|
+
|
|
6746
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6747
|
+
@media (forced-colors: active) {
|
|
6748
|
+
.fs-tree__item[aria-selected='true'] > .fs-tree__row {
|
|
6749
|
+
color: HighlightText;
|
|
6750
|
+
background-color: Highlight;
|
|
6751
|
+
}
|
|
6752
|
+
}
|
|
6539
6753
|
}
|
|
6540
6754
|
|
|
6541
6755
|
/* Object-type icon colours (spec 02 F; 01-tokens §3.7). Usage: type-icon.md. Shipped in T14 for the tree. */
|
|
@@ -44,6 +44,20 @@ export function contrastPairs() {
|
|
|
44
44
|
role('text', 'ink', 'brand-wash-end');
|
|
45
45
|
role('text', 'ink-2', 'brand-wash-start');
|
|
46
46
|
role('text', 'ink-2', 'brand-wash-end');
|
|
47
|
+
// Pairs found by T125's scan of src/css (src/tokens/contrast-coverage.test.ts): ink on every tone's wash (notice,
|
|
48
|
+
// disclosure, filled slot), the pressed and active fills, the grid's translucent fills, the tooltip's inverse.
|
|
49
|
+
for (const tone of toneNames)
|
|
50
|
+
role('text', 'ink', `${tone}-wash`);
|
|
51
|
+
role('text', 'ink', 'bg-active', 'bg-surface');
|
|
52
|
+
role('text', 'accent', 'bg-selected');
|
|
53
|
+
role('text', 'bg-surface', 'ink');
|
|
54
|
+
add('text', 'ink', c.ink, 'grid-nodata-bg', g['nodata-bg'], ['bg-surface', c['bg-surface']]);
|
|
55
|
+
add('text', 'ink', c.ink, 'grid-selected-invalid-bg', g['selected-invalid-bg'], ['grid-input-bg', g['input-bg']]);
|
|
56
|
+
add('text', 'grid-editing-danger-ink', g['editing-danger-ink'], 'bg-surface', c['bg-surface']);
|
|
57
|
+
role('non-text', 'warning-icon', 'warning-wash');
|
|
58
|
+
// The end circle's edge and its label on the plane (the label sits on the circle: diagram-end-bg, above).
|
|
59
|
+
role('non-text', 'diagram-end-line', 'diagram-bg');
|
|
60
|
+
role('text', 'diagram-end-ink', 'diagram-bg');
|
|
47
61
|
// The glass panel (spec 02 I): translucent, so over the page and over both ends of the wash.
|
|
48
62
|
// ink-muted too: fs-card__meta and fs-widget__subtitle use it on glass.
|
|
49
63
|
for (const fg of ['ink', 'ink-2', 'ink-muted']) {
|
|
@@ -121,6 +135,8 @@ export function contrastPairs() {
|
|
|
121
135
|
for (const bg of ['header-bg', 'label-bg', 'subtotal-bg', 'input-bg', 'editing-bg'])
|
|
122
136
|
grid('text', 'ink', bg);
|
|
123
137
|
grid('text', 'locked-ink', 'locked-bg');
|
|
138
|
+
// The stale dot, a second cue beside the italic (I22).
|
|
139
|
+
grid('non-text', 'stale-dot', 'bg-surface');
|
|
124
140
|
grid('text', 'error-ink', 'error-bg');
|
|
125
141
|
grid('text', 'negative-ink', 'bg-surface');
|
|
126
142
|
grid('text', 'negative-ink', 'input-bg');
|
|
@@ -143,12 +159,11 @@ export function contrastPairs() {
|
|
|
143
159
|
grid('text', 'dirty-ink', 'editing-bg');
|
|
144
160
|
grid('non-text', 'chevron', 'subtotal-bg');
|
|
145
161
|
for (const ink of ['negative-ink', 'error-ink']) {
|
|
146
|
-
// Light editing-bg is BI App's own (red on it is 4.2:1, unchanged by D32), so only dark is held.
|
|
147
|
-
if (scheme === 'dark')
|
|
148
|
-
grid('text', ink, 'editing-bg');
|
|
149
162
|
grid('text', ink, 'subtotal-bg');
|
|
150
163
|
}
|
|
151
164
|
grid('text', 'invalid-ink', 'subtotal-bg');
|
|
165
|
+
// T108 (I14): the red ink inside the editing cell is its own token, so light holds 4.5:1 on BI App's editing fill.
|
|
166
|
+
grid('text', 'editing-danger-ink', 'editing-bg');
|
|
152
167
|
grid('text', 'stale-ink', 'input-bg');
|
|
153
168
|
// Non-text: edges that identify a control, the ring, meaningful icons, fills.
|
|
154
169
|
// D38 (T65): the pale edge of inputs, selects and chips is accepted below 3:1; the fill and the ring
|
|
@@ -160,6 +175,8 @@ export function contrastPairs() {
|
|
|
160
175
|
role('non-text', 'line-control-strong', bg);
|
|
161
176
|
role('non-text', 'ring', 'ring-halo');
|
|
162
177
|
role('non-text', 'accent', 'bg-surface');
|
|
178
|
+
// The checked checkbox and radio mark on its accent fill (checkbox.css, I21).
|
|
179
|
+
role('non-text', 'bg-surface', 'accent');
|
|
163
180
|
role('non-text', 'warning-icon', 'bg-surface');
|
|
164
181
|
// The gutter marks (T17, T22): all three lint marks on the gutter, light and dark.
|
|
165
182
|
for (const lint of ['error', 'warning', 'refusal'])
|
|
@@ -180,6 +197,8 @@ export function contrastPairs() {
|
|
|
180
197
|
// Disabled: WCAG-exempt, kept readable without opacity (spec 06 §2).
|
|
181
198
|
role('disabled', 'ink-disabled', 'bg-disabled');
|
|
182
199
|
role('disabled', 'ink-disabled', 'bg-surface');
|
|
200
|
+
// A disabled checked box: the mark on the box's disabled fill (checkbox.css).
|
|
201
|
+
role('disabled', 'bg-surface', 'ink-disabled');
|
|
183
202
|
}
|
|
184
203
|
return out;
|
|
185
204
|
}
|
package/dist/tokens/grid.d.ts
CHANGED
package/dist/tokens/grid.js
CHANGED
|
@@ -16,12 +16,13 @@ export const gridRoles = {
|
|
|
16
16
|
'error-bg': s('#fdecea', '#3d1a26'), // dark = --fs-danger-wash
|
|
17
17
|
'negative-ink': s('#c62828', '#ff8a80'),
|
|
18
18
|
'stale-ink': s('#5f5e5a', '#93a1c2'), // ✱ was #757575; dark = --fs-ink-muted
|
|
19
|
-
'stale-dot': s('#
|
|
19
|
+
'stale-dot': s('#c27c00', '#f9a825'), // I22: was #f9a825 in light, 1.97:1; now 3.40:1 on the surface
|
|
20
20
|
'dirty-ink': s('#3d3db4', '#a5a5ff'),
|
|
21
21
|
'invalid-ink': s('#c62828', '#ff8a80'),
|
|
22
22
|
selected: s('#3d3db4', '#8c8cff'),
|
|
23
23
|
'selected-invalid-bg': s('rgba(252,0,0,0.10)', 'rgba(255,138,128,0.08)'), // D20: was 0.25, failed AA
|
|
24
24
|
'editing-bg': s('rgb(221,221,244)', '#223a7e'), // dark: brighter blue than the input teal, under the selected outline
|
|
25
|
+
'editing-danger-ink': s('#b71c1c', '#ff8a80'), // I14/T108: red ink on editing-bg; dark = the red the editing cell had (--fs-grid-negative-ink)
|
|
25
26
|
'nodata-bg': s('rgba(0,0,0,0.03)', 'rgba(232,238,252,0.04)'),
|
|
26
27
|
chevron: s('#8a8983', '#6f81ad'), // ✱ was #9e9e9e; dark = --fs-line-control-strong
|
|
27
28
|
'tree-guide': s('#d9d9d9', '#22356a'), // dark = --fs-line
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export declare const tokens: {
|
|
|
16
16
|
dark: Record<"1" | "2" | "3" | "drawer" | "tooltip" | "lift", string>;
|
|
17
17
|
};
|
|
18
18
|
readonly grid: {
|
|
19
|
-
light: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
|
|
20
|
-
dark: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
|
|
19
|
+
light: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "editing-danger-ink" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
|
|
20
|
+
dark: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "editing-danger-ink" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
|
|
21
21
|
};
|
|
22
22
|
readonly syntax: {
|
|
23
23
|
light: Record<"string" | "number" | "function" | "keyword" | "operator" | "variableName" | "propertyName" | "typeName" | "bool" | "null" | "comment" | "punctuation" | "bracket" | "angleBracket" | "tagName" | "attributeName" | "attributeValue" | "content" | "meta" | "invalid", string>;
|
package/dist/tokens.json
CHANGED
|
@@ -285,12 +285,13 @@
|
|
|
285
285
|
"error-bg": "#fdecea",
|
|
286
286
|
"negative-ink": "#c62828",
|
|
287
287
|
"stale-ink": "#5f5e5a",
|
|
288
|
-
"stale-dot": "#
|
|
288
|
+
"stale-dot": "#c27c00",
|
|
289
289
|
"dirty-ink": "#3d3db4",
|
|
290
290
|
"invalid-ink": "#c62828",
|
|
291
291
|
"selected": "#3d3db4",
|
|
292
292
|
"selected-invalid-bg": "rgba(252,0,0,0.10)",
|
|
293
293
|
"editing-bg": "rgb(221,221,244)",
|
|
294
|
+
"editing-danger-ink": "#b71c1c",
|
|
294
295
|
"nodata-bg": "rgba(0,0,0,0.03)",
|
|
295
296
|
"chevron": "#8a8983",
|
|
296
297
|
"tree-guide": "#d9d9d9",
|
|
@@ -318,6 +319,7 @@
|
|
|
318
319
|
"selected": "#8c8cff",
|
|
319
320
|
"selected-invalid-bg": "rgba(255,138,128,0.08)",
|
|
320
321
|
"editing-bg": "#223a7e",
|
|
322
|
+
"editing-danger-ink": "#ff8a80",
|
|
321
323
|
"nodata-bg": "rgba(232,238,252,0.04)",
|
|
322
324
|
"chevron": "#6f81ad",
|
|
323
325
|
"tree-guide": "#22356a",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finstack-com-public/design",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "Design kit: tokens, icons, components and a chart theme, shared by Grizzbi, BI App and the calculation engine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finstack",
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"gallery": "vite --config gallery/vite.config.ts",
|
|
102
102
|
"gallery:build": "tsc -p gallery/tsconfig.json && vite build --config gallery/vite.config.ts",
|
|
103
103
|
"icons:sync": "node scripts/sync-icons.ts",
|
|
104
|
+
"release:check": "node scripts/release-check.ts",
|
|
104
105
|
"motifs": "python3 scripts/make-wave.py art/wave-ai-source.png src/motifs/wave.webp"
|
|
105
106
|
},
|
|
106
107
|
"peerDependencies": {
|