@firestitch/style 18.0.72 → 18.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles/_core.scss +5 -0
- package/styles/_form-controls.scss +207 -0
- package/styles/_form-field.scss +2 -2
- package/styles/_tokens.scss +19 -6
package/package.json
CHANGED
package/styles/_core.scss
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@use 'overflow';
|
|
6
6
|
@use 'typography';
|
|
7
7
|
@use 'form-field';
|
|
8
|
+
@use 'form-controls';
|
|
8
9
|
@use 'material';
|
|
9
10
|
|
|
10
11
|
|
|
@@ -17,6 +18,10 @@
|
|
|
17
18
|
@include tokens.tokens();
|
|
18
19
|
@include headings.headings();
|
|
19
20
|
@include form-field.form-field();
|
|
21
|
+
// The selection controls - checkbox, radio, slide toggle, slider, chip. After
|
|
22
|
+
// form-field because it answers the same questions for the same family of
|
|
23
|
+
// inputs, and before material so an app's own Material overrides still win.
|
|
24
|
+
@include form-controls.form-controls();
|
|
20
25
|
@include helpers.helpers();
|
|
21
26
|
@include layout.layout();
|
|
22
27
|
@include overflow.overflow();
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// THE SELECTION CONTROLS
|
|
3
|
+
// =============================================================================
|
|
4
|
+
// Checkbox, radio, slide toggle, slider, chip and pseudo-checkbox.
|
|
5
|
+
//
|
|
6
|
+
// WHY THIS FILE EXISTS - Ray 2026-09-14. Material themes these five entirely
|
|
7
|
+
// through its own tokens, and an app on an M2 theme gets the LIGHT theme's
|
|
8
|
+
// values for all of them:
|
|
9
|
+
//
|
|
10
|
+
// --mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54)
|
|
11
|
+
// --mat-checkbox-label-text-color: rgba(0, 0, 0, 0.87)
|
|
12
|
+
// --mat-checkbox-selected-icon-color: var(--brand-primary-color)
|
|
13
|
+
//
|
|
14
|
+
// On a dark ground the first two are invisible - a black box outline and a black
|
|
15
|
+
// label on a dark surface, which is how a "Set as default" checkbox shipped
|
|
16
|
+
// looking disabled. The third is worse: it points at whatever name the app's
|
|
17
|
+
// palette happens to use, and an undefined custom property is invalid at
|
|
18
|
+
// computed-value time, so a CHECKED box renders unstyled rather than branded.
|
|
19
|
+
//
|
|
20
|
+
// Nothing here is app-specific. Every value is either the shared --fs-* contract
|
|
21
|
+
// or a light-dark() pair restating this package's own default, so an app that
|
|
22
|
+
// sets nothing still renders correctly in both schemes and an app that maps
|
|
23
|
+
// --fs-color-primary onto its brand gets its brand for free.
|
|
24
|
+
//
|
|
25
|
+
// ONE FILE FOR THE FAMILY, not one control at a time. These were fixed app-side
|
|
26
|
+
// one control at a time for years, which is why a project could have a correct
|
|
27
|
+
// select and an invisible checkbox in the same dialog. They share three
|
|
28
|
+
// questions - what colour is the control unselected, selected, and what colour
|
|
29
|
+
// is its label - so they are answered together or they drift.
|
|
30
|
+
//
|
|
31
|
+
// The pseudo-checkbox arrived a version later than the rest and proves the
|
|
32
|
+
// point: it looks like the checkbox, so it was assumed to be themed by the
|
|
33
|
+
// checkbox, and a multi-select shipped with an invisible tick while the
|
|
34
|
+
// checkbox beside it was correct. A control belongs in this file because of
|
|
35
|
+
// what it IS, not because of what it resembles - add the next one here too.
|
|
36
|
+
//
|
|
37
|
+
// GLOBAL, NOT SCOPED. These emit at :root like every other block in this
|
|
38
|
+
// package. A checkbox inside a dialog, menu or select panel renders in a CDK
|
|
39
|
+
// overlay attached to <body>, outside any app shell class, so a scoped block
|
|
40
|
+
// cannot reach it - the mistake that left dialog buttons unbranded.
|
|
41
|
+
|
|
42
|
+
@mixin form-controls() {
|
|
43
|
+
:root {
|
|
44
|
+
// =========================================================================
|
|
45
|
+
// CHECKBOX
|
|
46
|
+
// =========================================================================
|
|
47
|
+
// The unselected box is an OUTLINE, so it takes the hairline rather than a
|
|
48
|
+
// text colour: it is a drawn edge, and at text strength it reads as heavy.
|
|
49
|
+
--mat-checkbox-unselected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
50
|
+
--mat-checkbox-unselected-hover-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
|
|
51
|
+
--mat-checkbox-unselected-focus-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
|
|
52
|
+
--mat-checkbox-unselected-pressed-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
|
|
53
|
+
|
|
54
|
+
// Checked: the brand fills the box and the checkmark sits on it. The
|
|
55
|
+
// checkmark reads the SURFACE colour rather than white, so it stays legible
|
|
56
|
+
// if an app maps --fs-color-primary to a pale brand.
|
|
57
|
+
--mat-checkbox-selected-icon-color: var(--fs-color-primary, #1B474E);
|
|
58
|
+
--mat-checkbox-selected-hover-icon-color: var(--fs-color-primary, #1B474E);
|
|
59
|
+
--mat-checkbox-selected-focus-icon-color: var(--fs-color-primary, #1B474E);
|
|
60
|
+
--mat-checkbox-selected-checkmark-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
61
|
+
|
|
62
|
+
--mat-checkbox-label-text-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
63
|
+
--mat-checkbox-disabled-label-color: var(--fs-color-text-faint, light-dark(rgba(0, 0, 0, 0.38), #6A7779));
|
|
64
|
+
--mat-checkbox-disabled-unselected-icon-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
65
|
+
--mat-checkbox-disabled-selected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
66
|
+
|
|
67
|
+
// The wash under a hover or press. Translucent, never a fixed grey: it takes
|
|
68
|
+
// its tone from whatever is behind it and so reads in both schemes.
|
|
69
|
+
--mat-checkbox-unselected-hover-state-layer-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
70
|
+
--mat-checkbox-unselected-pressed-state-layer-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
71
|
+
--mat-checkbox-selected-hover-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
72
|
+
--mat-checkbox-selected-pressed-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
73
|
+
|
|
74
|
+
// =========================================================================
|
|
75
|
+
// RADIO
|
|
76
|
+
// =========================================================================
|
|
77
|
+
// Same three questions as the checkbox, same answers - the two controls
|
|
78
|
+
// differ in shape and in whether they are exclusive, never in colour.
|
|
79
|
+
--mat-radio-unselected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
80
|
+
--mat-radio-unselected-hover-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
|
|
81
|
+
--mat-radio-unselected-focus-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
|
|
82
|
+
--mat-radio-unselected-pressed-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
|
|
83
|
+
|
|
84
|
+
--mat-radio-selected-icon-color: var(--fs-color-primary, #1B474E);
|
|
85
|
+
--mat-radio-selected-hover-icon-color: var(--fs-color-primary, #1B474E);
|
|
86
|
+
--mat-radio-selected-focus-icon-color: var(--fs-color-primary, #1B474E);
|
|
87
|
+
--mat-radio-selected-pressed-icon-color: var(--fs-color-primary, #1B474E);
|
|
88
|
+
|
|
89
|
+
--mat-radio-label-text-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
90
|
+
--mat-radio-disabled-label-color: var(--fs-color-text-faint, light-dark(rgba(0, 0, 0, 0.38), #6A7779));
|
|
91
|
+
--mat-radio-disabled-unselected-icon-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
92
|
+
--mat-radio-disabled-selected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
93
|
+
--mat-radio-ripple-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
94
|
+
--mat-radio-checked-ripple-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
95
|
+
|
|
96
|
+
// =========================================================================
|
|
97
|
+
// SLIDE TOGGLE
|
|
98
|
+
// =========================================================================
|
|
99
|
+
// The toggle is a TRACK with a HANDLE on it, so "unselected" is two colours
|
|
100
|
+
// rather than one: the track is the hairline it sits in, and the handle is
|
|
101
|
+
// the muted ink so it reads as an object on that track rather than a hole.
|
|
102
|
+
--mat-slide-toggle-unselected-track-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
103
|
+
--mat-slide-toggle-unselected-hover-track-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
104
|
+
--mat-slide-toggle-unselected-focus-track-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
105
|
+
--mat-slide-toggle-unselected-pressed-track-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
106
|
+
--mat-slide-toggle-unselected-handle-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
|
|
107
|
+
--mat-slide-toggle-unselected-hover-handle-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
108
|
+
--mat-slide-toggle-unselected-focus-handle-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
109
|
+
--mat-slide-toggle-unselected-pressed-handle-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
110
|
+
--mat-slide-toggle-unselected-icon-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
111
|
+
|
|
112
|
+
// Selected: the brand fills the track, and the handle goes to the surface
|
|
113
|
+
// colour so it reads as a light knob on a coloured rail in both schemes.
|
|
114
|
+
--mat-slide-toggle-selected-track-color: var(--fs-color-primary, #1B474E);
|
|
115
|
+
--mat-slide-toggle-selected-hover-track-color: var(--fs-color-primary, #1B474E);
|
|
116
|
+
--mat-slide-toggle-selected-focus-track-color: var(--fs-color-primary, #1B474E);
|
|
117
|
+
--mat-slide-toggle-selected-pressed-track-color: var(--fs-color-primary, #1B474E);
|
|
118
|
+
--mat-slide-toggle-selected-handle-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
119
|
+
--mat-slide-toggle-selected-hover-handle-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
120
|
+
--mat-slide-toggle-selected-focus-handle-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
121
|
+
--mat-slide-toggle-selected-pressed-handle-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
122
|
+
--mat-slide-toggle-selected-icon-color: var(--fs-color-primary, #1B474E);
|
|
123
|
+
|
|
124
|
+
--mat-slide-toggle-label-text-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
125
|
+
--mat-slide-toggle-disabled-label-text-color: var(--fs-color-text-faint, light-dark(rgba(0, 0, 0, 0.38), #6A7779));
|
|
126
|
+
--mat-slide-toggle-disabled-unselected-track-outline-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
127
|
+
--mat-slide-toggle-selected-focus-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
128
|
+
--mat-slide-toggle-selected-hover-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
129
|
+
--mat-slide-toggle-unselected-focus-state-layer-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
130
|
+
--mat-slide-toggle-unselected-hover-state-layer-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
131
|
+
|
|
132
|
+
// =========================================================================
|
|
133
|
+
// SLIDER
|
|
134
|
+
// =========================================================================
|
|
135
|
+
// The ACTIVE track is the brand, the INACTIVE track is the hairline, and the
|
|
136
|
+
// handle matches the active track rather than the surface - a slider's knob
|
|
137
|
+
// is part of the value it is showing.
|
|
138
|
+
--mat-slider-active-track-color: var(--fs-color-primary, #1B474E);
|
|
139
|
+
--mat-slider-inactive-track-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
140
|
+
--mat-slider-handle-color: var(--fs-color-primary, #1B474E);
|
|
141
|
+
--mat-slider-hover-handle-color: var(--fs-color-primary, #1B474E);
|
|
142
|
+
--mat-slider-focus-handle-color: var(--fs-color-primary, #1B474E);
|
|
143
|
+
--mat-slider-disabled-active-track-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
144
|
+
--mat-slider-disabled-inactive-track-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
145
|
+
--mat-slider-disabled-handle-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
146
|
+
--mat-slider-ripple-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
147
|
+
--mat-slider-hover-state-layer-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
148
|
+
--mat-slider-focus-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
149
|
+
|
|
150
|
+
// The value bubble is a floating surface, so it takes the RAISED surface and
|
|
151
|
+
// the ink that reads on it.
|
|
152
|
+
--mat-slider-label-container-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
153
|
+
--mat-slider-label-label-text-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
154
|
+
|
|
155
|
+
// =========================================================================
|
|
156
|
+
// CHIP
|
|
157
|
+
// =========================================================================
|
|
158
|
+
// A chip is a SURFACE with a label, not an outline with a tint, so the flat
|
|
159
|
+
// (unselected) chip takes the hover wash rather than the page ground - that
|
|
160
|
+
// is what separates it from whatever it sits on without a border.
|
|
161
|
+
--mat-chip-elevated-container-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
162
|
+
--mat-chip-label-text-color: var(--fs-color-text, light-dark(rgba(0, 0, 0, 0.87), #E8EDEC));
|
|
163
|
+
--mat-chip-outline-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
164
|
+
--mat-chip-focus-outline-color: var(--fs-color-primary, #1B474E);
|
|
165
|
+
|
|
166
|
+
--mat-chip-elevated-selected-container-color: var(--fs-color-primary, #1B474E);
|
|
167
|
+
--mat-chip-selected-label-text-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
168
|
+
--mat-chip-selected-trailing-icon-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
169
|
+
|
|
170
|
+
--mat-chip-disabled-label-text-color: var(--fs-color-text-faint, light-dark(rgba(0, 0, 0, 0.38), #6A7779));
|
|
171
|
+
--mat-chip-disabled-outline-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
172
|
+
--mat-chip-hover-state-layer-color: var(--fs-color-hover, light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)));
|
|
173
|
+
--mat-chip-focus-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
174
|
+
--mat-chip-selected-hover-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
175
|
+
--mat-chip-selected-focus-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
|
|
176
|
+
|
|
177
|
+
// =========================================================================
|
|
178
|
+
// PSEUDO-CHECKBOX
|
|
179
|
+
// =========================================================================
|
|
180
|
+
// The tick in a multi-select option, and in a selection list. It LOOKS like
|
|
181
|
+
// the checkbox above and is a different component with its own token
|
|
182
|
+
// family - which is exactly why it was missed when the other five were
|
|
183
|
+
// themed: a <mat-select [multiple]> renders a mat-pseudo-checkbox, never a
|
|
184
|
+
// mat-checkbox, so none of the --mat-checkbox-* values above reach it.
|
|
185
|
+
//
|
|
186
|
+
// Left unset it falls through to Material's M2 light default
|
|
187
|
+
// (rgba(0, 0, 0, 0.54) unselected), which on a dark panel is a near-black
|
|
188
|
+
// outline on a near-black surface - the same invisible-control bug this
|
|
189
|
+
// file was written to end, one control short of the family.
|
|
190
|
+
//
|
|
191
|
+
// FULL is the variant that draws a box; MINIMAL draws only a checkmark with
|
|
192
|
+
// no container. Both are themed: an app choosing either gets a control that
|
|
193
|
+
// reads, and the two never disagree about what "selected" looks like.
|
|
194
|
+
--mat-pseudo-checkbox-full-unselected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
195
|
+
--mat-pseudo-checkbox-full-selected-icon-color: var(--fs-color-primary, #1B474E);
|
|
196
|
+
--mat-pseudo-checkbox-full-selected-checkmark-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
197
|
+
|
|
198
|
+
--mat-pseudo-checkbox-full-disabled-unselected-icon-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
|
|
199
|
+
--mat-pseudo-checkbox-full-disabled-selected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
|
|
200
|
+
--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
201
|
+
|
|
202
|
+
// The minimal variant has no box to fill, so the CHECKMARK carries the
|
|
203
|
+
// brand rather than sitting on it - the inverse of the full variant above.
|
|
204
|
+
--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--fs-color-primary, #1B474E);
|
|
205
|
+
--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--fs-color-text-faint, light-dark(rgba(0, 0, 0, 0.38), #6A7779));
|
|
206
|
+
}
|
|
207
|
+
}
|
package/styles/_form-field.scss
CHANGED
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
// pair), so nothing about the light appearance moves. Only the dark half is
|
|
54
54
|
// new, and light-dark() picks between them off the `color-scheme` the host
|
|
55
55
|
// declares -- no class, no input, no media query.
|
|
56
|
-
--mdc-filled-text-field-container-color: var(--fs-
|
|
56
|
+
--mdc-filled-text-field-container-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
57
57
|
--mdc-filled-text-field-disabled-container-color: var(--fs-color-hover, light-dark(#F5F5F5, rgba(255, 255, 255, 0.08)));
|
|
58
|
-
--mat-form-field-filled-container-color: var(--fs-
|
|
58
|
+
--mat-form-field-filled-container-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
|
|
59
59
|
--mat-form-field-filled-disabled-container-color: var(--fs-color-hover, light-dark(#F5F5F5, rgba(255, 255, 255, 0.08)));
|
|
60
60
|
|
|
61
61
|
.mat-mdc-text-field-wrapper {
|
package/styles/_tokens.scss
CHANGED
|
@@ -41,12 +41,25 @@
|
|
|
41
41
|
--fs-color-text-muted: light-dark(rgba(0, 0, 0, 0.54), #97A5A6);
|
|
42
42
|
--fs-color-text-faint: light-dark(rgba(0, 0, 0, 0.38), #6A7779);
|
|
43
43
|
|
|
44
|
-
// =====
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
// ===== SURFACE =====
|
|
45
|
+
// ONE surface colour for everything that is a surface: a page, a dialog, a
|
|
46
|
+
// card, a menu panel, a dropdown, a bottom sheet. They are all the same kind
|
|
47
|
+
// of thing, so they take the same colour and the app reads as one material.
|
|
48
|
+
//
|
|
49
|
+
// THERE IS DELIBERATELY NO `raised` VARIANT — Ray 2026-09-14. There used to
|
|
50
|
+
// be --fs-color-surface (#232428) and --fs-color-surface-raised (#292A2F),
|
|
51
|
+
// the second six luminance steps lighter so a floating panel read as above
|
|
52
|
+
// the page on a dark ground. Both were #FFFFFF in light mode, so the
|
|
53
|
+
// distinction only ever existed in dark, and it bought a difference nobody
|
|
54
|
+
// had asked for while forcing every consumer to decide which of two nearly
|
|
55
|
+
// identical greys it wanted — and to get it wrong silently, because the
|
|
56
|
+
// fallbacks differ.
|
|
57
|
+
//
|
|
58
|
+
// Elevation is not a colour problem. A surface that must read as floating
|
|
59
|
+
// separates with a shadow, a hairline or a blur; if a genuine need for a
|
|
60
|
+
// second surface colour appears later, add it then, with the case that
|
|
61
|
+
// justifies it. Do not reintroduce `raised` as a default.
|
|
62
|
+
--fs-surface-background: light-dark(#FFFFFF, #232428);
|
|
50
63
|
|
|
51
64
|
// ===== LINES =====
|
|
52
65
|
// The hairline does most of the structural work: chip outlines, dividers,
|