@finstack-com-public/design 0.10.0 → 0.10.2
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 +52 -0
- package/dist/css/breadcrumbs.css +7 -0
- package/dist/css/button.css +14 -0
- package/dist/css/disclosure.css +7 -0
- package/dist/css/dropzone.css +9 -0
- package/dist/css/field.css +18 -0
- package/dist/css/grid.css +21 -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/node.css +6 -0
- package/dist/css/node.md +1 -1
- package/dist/css/progress.css +17 -0
- package/dist/css/reset.css +3 -1
- package/dist/css/reset.md +1 -0
- package/dist/css/table.css +8 -0
- package/dist/css/tabs.css +9 -0
- package/dist/css/tokens.css +6 -0
- package/dist/css/tree.css +8 -0
- package/dist/css/xyflow.css +2 -1
- package/dist/css/xyflow.md +2 -2
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/button.js +1 -1
- package/dist/css-text/disclosure.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 +184 -0
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/node.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/reset.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/css-text/xyflow.js +1 -1
- package/dist/grid.json +1 -0
- package/dist/icons/masks.css +167 -1
- package/dist/kit.css +184 -0
- package/dist/tokens/contrast-pairs.js +2 -3
- package/dist/tokens/grid.d.ts +1 -0
- package/dist/tokens/grid.js +1 -0
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens.json +2 -0
- package/package.json +1 -1
package/dist/kit.css
CHANGED
|
@@ -171,6 +171,7 @@
|
|
|
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;
|
|
@@ -708,6 +711,7 @@
|
|
|
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;
|
|
@@ -1081,6 +1086,7 @@
|
|
|
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.
|
|
@@ -2626,6 +2653,13 @@
|
|
|
2626
2653
|
background: var(--fs-gap-wash);
|
|
2627
2654
|
border-color: var(--fs-gap-edge);
|
|
2628
2655
|
}
|
|
2656
|
+
|
|
2657
|
+
/* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */
|
|
2658
|
+
@media (forced-colors: active) {
|
|
2659
|
+
.fs-disclosure__summary::before {
|
|
2660
|
+
background-color: CanvasText;
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2629
2663
|
}
|
|
2630
2664
|
|
|
2631
2665
|
/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).
|
|
@@ -2886,6 +2920,15 @@
|
|
|
2886
2920
|
background: var(--fs-accent-wash);
|
|
2887
2921
|
border-color: var(--fs-accent);
|
|
2888
2922
|
}
|
|
2923
|
+
|
|
2924
|
+
/* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight
|
|
2925
|
+
ring just outside its edge, on Canvas (T107). */
|
|
2926
|
+
@media (forced-colors: active) {
|
|
2927
|
+
.fs-slot.fs-is-dragover {
|
|
2928
|
+
outline: 2px solid Highlight;
|
|
2929
|
+
outline-offset: 2px;
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2889
2932
|
}
|
|
2890
2933
|
|
|
2891
2934
|
/* Empty state (spec 02 E). Usage: empty.md. */
|
|
@@ -3150,6 +3193,24 @@
|
|
|
3150
3193
|
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
3151
3194
|
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
3152
3195
|
}
|
|
3196
|
+
|
|
3197
|
+
/* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line
|
|
3198
|
+
marks it (the focus ring takes the outline while focused); a disabled box greys its edge and
|
|
3199
|
+
text (T107). */
|
|
3200
|
+
@media (forced-colors: active) {
|
|
3201
|
+
.fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {
|
|
3202
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3203
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3204
|
+
}
|
|
3205
|
+
.fs-field__box:has(:disabled) {
|
|
3206
|
+
color: GrayText;
|
|
3207
|
+
border-color: GrayText;
|
|
3208
|
+
}
|
|
3209
|
+
.fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {
|
|
3210
|
+
color: GrayText;
|
|
3211
|
+
-webkit-text-fill-color: GrayText;
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3153
3214
|
}
|
|
3154
3215
|
|
|
3155
3216
|
/* "Not computed" markers (spec 02 F; GZ §6.1). Usage: gap.md. Every marker brings its own surface
|
|
@@ -3555,6 +3616,12 @@
|
|
|
3555
3616
|
.fs-grid .fs-cell--editing {
|
|
3556
3617
|
background-color: var(--fs-grid-editing-bg);
|
|
3557
3618
|
}
|
|
3619
|
+
/* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */
|
|
3620
|
+
.fs-grid .fs-cell--editing.fs-cell--negative,
|
|
3621
|
+
.fs-grid .fs-cell--editing.fs-cell--error,
|
|
3622
|
+
.fs-grid .fs-cell--editing.fs-cell--invalid {
|
|
3623
|
+
color: var(--fs-grid-editing-danger-ink);
|
|
3624
|
+
}
|
|
3558
3625
|
.fs-grid .fs-cell--editing .fs-grid__cover {
|
|
3559
3626
|
visibility: hidden;
|
|
3560
3627
|
}
|
|
@@ -3580,6 +3647,21 @@
|
|
|
3580
3647
|
border-top: 6px solid var(--fs-accent);
|
|
3581
3648
|
border-left: 6px solid transparent;
|
|
3582
3649
|
}
|
|
3650
|
+
|
|
3651
|
+
/* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the
|
|
3652
|
+
cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error
|
|
3653
|
+
does, and an error cell also gets a dashed inner edge (T107). */
|
|
3654
|
+
@media (forced-colors: active) {
|
|
3655
|
+
.fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {
|
|
3656
|
+
text-decoration: underline wavy CanvasText;
|
|
3657
|
+
text-decoration-skip-ink: none;
|
|
3658
|
+
text-underline-offset: 3px;
|
|
3659
|
+
}
|
|
3660
|
+
.fs-grid .fs-cell--error:not(.fs-is-selected) {
|
|
3661
|
+
outline: var(--fs-line-width) dashed CanvasText;
|
|
3662
|
+
outline-offset: -3px;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3583
3665
|
}
|
|
3584
3666
|
|
|
3585
3667
|
/* Gutter mark (spec 02 H). Usage: gutter-mark.md.
|
|
@@ -3688,6 +3770,16 @@
|
|
|
3688
3770
|
border-color: transparent;
|
|
3689
3771
|
cursor: not-allowed;
|
|
3690
3772
|
}
|
|
3773
|
+
|
|
3774
|
+
/* Forced colours erase the pressed fill and edge, so pressed takes the system's selection
|
|
3775
|
+
colours (T107). */
|
|
3776
|
+
@media (forced-colors: active) {
|
|
3777
|
+
.fs-icon-button[aria-pressed='true'] {
|
|
3778
|
+
color: HighlightText;
|
|
3779
|
+
background-color: Highlight;
|
|
3780
|
+
border-color: Highlight;
|
|
3781
|
+
}
|
|
3782
|
+
}
|
|
3691
3783
|
}
|
|
3692
3784
|
|
|
3693
3785
|
/* Icons drawn by createIcon and iconSvg (spec 05 §1). */
|
|
@@ -3825,6 +3917,30 @@
|
|
|
3825
3917
|
.fs-select:has(:disabled) {
|
|
3826
3918
|
color: var(--fs-ink-disabled);
|
|
3827
3919
|
}
|
|
3920
|
+
|
|
3921
|
+
/* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */
|
|
3922
|
+
@media (forced-colors: active) {
|
|
3923
|
+
.fs-select::after {
|
|
3924
|
+
background-color: CanvasText;
|
|
3925
|
+
}
|
|
3926
|
+
.fs-select:has(:disabled)::after {
|
|
3927
|
+
background-color: GrayText;
|
|
3928
|
+
}
|
|
3929
|
+
/* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */
|
|
3930
|
+
.fs-input[aria-invalid='true'],
|
|
3931
|
+
.fs-textarea[aria-invalid='true'],
|
|
3932
|
+
.fs-select__control[aria-invalid='true'] {
|
|
3933
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3934
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3935
|
+
}
|
|
3936
|
+
.fs-input:disabled,
|
|
3937
|
+
.fs-textarea:disabled,
|
|
3938
|
+
.fs-select__control:disabled {
|
|
3939
|
+
color: GrayText;
|
|
3940
|
+
-webkit-text-fill-color: GrayText;
|
|
3941
|
+
border-color: GrayText;
|
|
3942
|
+
}
|
|
3943
|
+
}
|
|
3828
3944
|
}
|
|
3829
3945
|
|
|
3830
3946
|
/* Kicker and section label (spec 02 E). Usage: kicker.md. */
|
|
@@ -4353,6 +4469,26 @@
|
|
|
4353
4469
|
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4354
4470
|
color: var(--fs-ink-disabled);
|
|
4355
4471
|
}
|
|
4472
|
+
|
|
4473
|
+
/* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */
|
|
4474
|
+
@media (forced-colors: active) {
|
|
4475
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {
|
|
4476
|
+
background-color: CanvasText;
|
|
4477
|
+
}
|
|
4478
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(
|
|
4479
|
+
[aria-disabled='true'],
|
|
4480
|
+
:disabled
|
|
4481
|
+
)::before {
|
|
4482
|
+
background-color: GrayText;
|
|
4483
|
+
}
|
|
4484
|
+
/* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox
|
|
4485
|
+
showed no difference without this; Chromium did, for a reason not traced (T109). */
|
|
4486
|
+
.fs-menu__item[aria-disabled='true'],
|
|
4487
|
+
.fs-menu__item:disabled,
|
|
4488
|
+
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4489
|
+
color: GrayText;
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4356
4492
|
}
|
|
4357
4493
|
|
|
4358
4494
|
/* Meter (spec 02 E; Grizzbi's score meter). Usage: meter.md. */
|
|
@@ -4532,9 +4668,11 @@
|
|
|
4532
4668
|
text-transform: uppercase;
|
|
4533
4669
|
color: var(--fs-ink-2);
|
|
4534
4670
|
}
|
|
4671
|
+
/* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */
|
|
4535
4672
|
.fs-node__section-head::before {
|
|
4536
4673
|
width: 12px;
|
|
4537
4674
|
height: 12px;
|
|
4675
|
+
background-color: var(--fs-ink-2);
|
|
4538
4676
|
}
|
|
4539
4677
|
/* The slot for T92's mark counts, pushed right. */
|
|
4540
4678
|
.fs-node__counts {
|
|
@@ -4620,6 +4758,10 @@
|
|
|
4620
4758
|
background-image: none;
|
|
4621
4759
|
border-bottom: var(--fs-line-width) dashed CanvasText;
|
|
4622
4760
|
}
|
|
4761
|
+
/* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */
|
|
4762
|
+
.fs-node__section-head::before {
|
|
4763
|
+
background-color: CanvasText;
|
|
4764
|
+
}
|
|
4623
4765
|
}
|
|
4624
4766
|
}
|
|
4625
4767
|
|
|
@@ -5175,6 +5317,23 @@
|
|
|
5175
5317
|
transform: rotate(360deg);
|
|
5176
5318
|
}
|
|
5177
5319
|
}
|
|
5320
|
+
|
|
5321
|
+
/* Forced colours draw a transparent border and erase fills and shadows, so every step would be a
|
|
5322
|
+
plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick
|
|
5323
|
+
ring (T107). */
|
|
5324
|
+
@media (forced-colors: active) {
|
|
5325
|
+
.fs-progress__step[aria-current='step']::before {
|
|
5326
|
+
border-color: CanvasText;
|
|
5327
|
+
border-top-color: Canvas;
|
|
5328
|
+
}
|
|
5329
|
+
.fs-progress__step.fs-is-done::before {
|
|
5330
|
+
background-color: CanvasText;
|
|
5331
|
+
border-color: CanvasText;
|
|
5332
|
+
}
|
|
5333
|
+
.fs-progress__step.fs-is-failed::before {
|
|
5334
|
+
border: 4px solid CanvasText;
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5178
5337
|
}
|
|
5179
5338
|
|
|
5180
5339
|
/* Segmented control (spec 02 A). Usage: segmented.md. Behaviour: createRovingGroup, mode 'radio'.
|
|
@@ -5951,6 +6110,14 @@
|
|
|
5951
6110
|
break-inside: avoid;
|
|
5952
6111
|
}
|
|
5953
6112
|
}
|
|
6113
|
+
|
|
6114
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6115
|
+
@media (forced-colors: active) {
|
|
6116
|
+
.fs-table tbody tr[aria-selected='true'] > * {
|
|
6117
|
+
color: HighlightText;
|
|
6118
|
+
background-color: Highlight;
|
|
6119
|
+
}
|
|
6120
|
+
}
|
|
5954
6121
|
}
|
|
5955
6122
|
|
|
5956
6123
|
/* Tabs, choice tabs and page tabs (spec 02 C). Usage: tabs.md. Behaviour: createTabs. */
|
|
@@ -6133,6 +6300,15 @@
|
|
|
6133
6300
|
background-color: transparent;
|
|
6134
6301
|
cursor: not-allowed;
|
|
6135
6302
|
}
|
|
6303
|
+
|
|
6304
|
+
/* After the disabled rule above, which it overrides: forced colours turn the disabled ink into
|
|
6305
|
+
the plain text colour, so a disabled tab is greyed with GrayText (T107). */
|
|
6306
|
+
@media (forced-colors: active) {
|
|
6307
|
+
.fs-tabs__tab:disabled,
|
|
6308
|
+
.fs-tabs__tab[aria-disabled='true'] {
|
|
6309
|
+
color: GrayText;
|
|
6310
|
+
}
|
|
6311
|
+
}
|
|
6136
6312
|
}
|
|
6137
6313
|
|
|
6138
6314
|
/* Page and section titles (spec 01 §4, T68, D39). Usage: title.md. */
|
|
@@ -6530,6 +6706,14 @@
|
|
|
6530
6706
|
.fs-tree__status.fs-tone-danger {
|
|
6531
6707
|
color: var(--fs-danger-ink);
|
|
6532
6708
|
}
|
|
6709
|
+
|
|
6710
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6711
|
+
@media (forced-colors: active) {
|
|
6712
|
+
.fs-tree__item[aria-selected='true'] > .fs-tree__row {
|
|
6713
|
+
color: HighlightText;
|
|
6714
|
+
background-color: Highlight;
|
|
6715
|
+
}
|
|
6716
|
+
}
|
|
6533
6717
|
}
|
|
6534
6718
|
|
|
6535
6719
|
/* Object-type icon colours (spec 02 F; 01-tokens §3.7). Usage: type-icon.md. Shipped in T14 for the tree. */
|
|
@@ -143,12 +143,11 @@ export function contrastPairs() {
|
|
|
143
143
|
grid('text', 'dirty-ink', 'editing-bg');
|
|
144
144
|
grid('non-text', 'chevron', 'subtotal-bg');
|
|
145
145
|
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
146
|
grid('text', ink, 'subtotal-bg');
|
|
150
147
|
}
|
|
151
148
|
grid('text', 'invalid-ink', 'subtotal-bg');
|
|
149
|
+
// 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.
|
|
150
|
+
grid('text', 'editing-danger-ink', 'editing-bg');
|
|
152
151
|
grid('text', 'stale-ink', 'input-bg');
|
|
153
152
|
// Non-text: edges that identify a control, the ring, meaningful icons, fills.
|
|
154
153
|
// D38 (T65): the pale edge of inputs, selects and chips is accepted below 3:1; the fill and the ring
|
package/dist/tokens/grid.d.ts
CHANGED
package/dist/tokens/grid.js
CHANGED
|
@@ -22,6 +22,7 @@ export const gridRoles = {
|
|
|
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
|
@@ -291,6 +291,7 @@
|
|
|
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