@skygraph/styles 0.2.0 → 0.2.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/components/input.css +2 -2
- package/components/switch.css +1 -1
- package/components/table.css +5 -0
- package/package.json +1 -1
- package/tokens.css +39 -62
package/components/input.css
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
margin: 0;
|
|
162
162
|
border: none;
|
|
163
163
|
border-radius: 50%;
|
|
164
|
-
background: var(--sg-color-fill-tertiary
|
|
164
|
+
background: var(--sg-color-fill-tertiary);
|
|
165
165
|
color: var(--sg-color-text-secondary);
|
|
166
166
|
font-size: 14px;
|
|
167
167
|
line-height: 1;
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.sg-input-clear:hover {
|
|
177
|
-
background: var(--sg-color-fill
|
|
177
|
+
background: var(--sg-color-fill);
|
|
178
178
|
color: var(--sg-color-text);
|
|
179
179
|
opacity: 1;
|
|
180
180
|
}
|
package/components/switch.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* touching `--sg-color-text-disabled` (which is also used by the
|
|
4
4
|
* disabled visual state — overriding it makes every control look
|
|
5
5
|
* disabled). */
|
|
6
|
-
--sg-switch-bg: var(--sg-color-
|
|
6
|
+
--sg-switch-bg: color-mix(in srgb, var(--sg-color-text) 25%, transparent);
|
|
7
7
|
--sg-switch-bg-checked: var(--sg-color-primary);
|
|
8
8
|
position: relative;
|
|
9
9
|
display: inline-flex;
|
package/components/table.css
CHANGED
|
@@ -643,6 +643,11 @@
|
|
|
643
643
|
* changes — that drift is what shows up as the scrollbar thumb lagging
|
|
644
644
|
* behind the cursor while the user drags it. Locking visible row cells to
|
|
645
645
|
* the configured `rowHeight` removes the mismatch entirely. */
|
|
646
|
+
.sg-table-grid-virtual-fixed {
|
|
647
|
+
/* Overridden inline by Table when `rowHeight` is set */
|
|
648
|
+
--sg-virtual-row-height: var(--sg-height-md);
|
|
649
|
+
}
|
|
650
|
+
|
|
646
651
|
.sg-table-grid-virtual-fixed .sg-table-row[data-sg-virtual-row-index] > .sg-table-td {
|
|
647
652
|
height: var(--sg-virtual-row-height);
|
|
648
653
|
min-height: 0;
|
package/package.json
CHANGED
package/tokens.css
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
/* === Semantic tokens — Light theme (default) === */
|
|
93
93
|
:root,
|
|
94
|
-
[data-sg-theme=
|
|
94
|
+
[data-sg-theme='light'] {
|
|
95
95
|
--sg-color-bg: var(--sg-gray-1);
|
|
96
96
|
--sg-color-bg-secondary: var(--sg-gray-2);
|
|
97
97
|
--sg-color-bg-elevated: var(--sg-gray-1);
|
|
@@ -109,6 +109,12 @@
|
|
|
109
109
|
--sg-color-border: var(--sg-gray-5);
|
|
110
110
|
--sg-color-border-secondary: var(--sg-gray-4);
|
|
111
111
|
|
|
112
|
+
/* Subtle fills (tracks, clear buttons, skeletons) */
|
|
113
|
+
--sg-color-fill: rgba(0, 0, 0, 0.15);
|
|
114
|
+
--sg-color-fill-secondary: rgba(0, 0, 0, 0.06);
|
|
115
|
+
--sg-color-fill-tertiary: rgba(0, 0, 0, 0.06);
|
|
116
|
+
--sg-color-fill-quaternary: rgba(0, 0, 0, 0.02);
|
|
117
|
+
|
|
112
118
|
--sg-color-primary: var(--sg-blue-6);
|
|
113
119
|
--sg-color-primary-hover: var(--sg-blue-5);
|
|
114
120
|
--sg-color-primary-active: var(--sg-blue-7);
|
|
@@ -138,19 +144,12 @@
|
|
|
138
144
|
--sg-diagram-canvas-bg: var(--sg-color-bg);
|
|
139
145
|
--sg-diagram-grid-line-color: rgba(0, 0, 0, 0.04);
|
|
140
146
|
--sg-diagram-grid-line-color-strong: rgba(0, 0, 0, 0.08);
|
|
141
|
-
--sg-diagram-node-shadow:
|
|
142
|
-
|
|
143
|
-
0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
144
|
-
--sg-diagram-node-shadow-hover:
|
|
145
|
-
0 4px 12px rgba(0, 0, 0, 0.10),
|
|
146
|
-
0 1px 3px rgba(0, 0, 0, 0.06);
|
|
147
|
+
--sg-diagram-node-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
148
|
+
--sg-diagram-node-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
147
149
|
--sg-diagram-node-shadow-selected:
|
|
148
|
-
0 0 0 2px var(--sg-color-primary-bg),
|
|
149
|
-
0 6px 16px rgba(22, 119, 255, 0.18),
|
|
150
|
+
0 0 0 2px var(--sg-color-primary-bg), 0 6px 16px rgba(22, 119, 255, 0.18),
|
|
150
151
|
0 1px 3px rgba(0, 0, 0, 0.08);
|
|
151
|
-
--sg-diagram-node-shadow-dragging:
|
|
152
|
-
0 12px 28px rgba(0, 0, 0, 0.20),
|
|
153
|
-
0 2px 6px rgba(0, 0, 0, 0.10);
|
|
152
|
+
--sg-diagram-node-shadow-dragging: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
|
|
154
153
|
--sg-diagram-edge-color: var(--sg-gray-6);
|
|
155
154
|
--sg-diagram-edge-color-hover: var(--sg-color-text-secondary);
|
|
156
155
|
--sg-diagram-edge-color-selected: var(--sg-color-primary);
|
|
@@ -159,53 +158,43 @@
|
|
|
159
158
|
|
|
160
159
|
/* Charts — tooltip, crosshair, brush, legend */
|
|
161
160
|
--sg-chart-tooltip-bg: var(--sg-color-bg-elevated);
|
|
162
|
-
--sg-chart-tooltip-shadow:
|
|
163
|
-
0 6px 20px rgba(0, 0, 0, 0.12),
|
|
164
|
-
0 1px 3px rgba(0, 0, 0, 0.06);
|
|
161
|
+
--sg-chart-tooltip-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
165
162
|
--sg-chart-crosshair-color: rgba(0, 0, 0, 0.32);
|
|
166
|
-
--sg-chart-brush-fill: rgba(22, 119, 255, 0.
|
|
163
|
+
--sg-chart-brush-fill: rgba(22, 119, 255, 0.1);
|
|
167
164
|
--sg-chart-brush-stroke: var(--sg-color-primary);
|
|
168
165
|
--sg-chart-legend-hover-bg: var(--sg-color-bg-hover);
|
|
169
166
|
|
|
170
167
|
/* Dashboard — widget elevation, editor affordances */
|
|
171
168
|
--sg-dashboard-widget-shadow: var(--sg-shadow-sm);
|
|
172
|
-
--sg-dashboard-widget-shadow-hover:
|
|
173
|
-
0 4px 12px rgba(0, 0, 0, 0.08),
|
|
174
|
-
0 1px 3px rgba(0, 0, 0, 0.04);
|
|
169
|
+
--sg-dashboard-widget-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
175
170
|
--sg-dashboard-editor-grid-color: rgba(22, 119, 255, 0.06);
|
|
176
171
|
--sg-dashboard-editor-widget-border: var(--sg-color-primary);
|
|
177
172
|
--sg-dashboard-editor-drop-zone-bg: rgba(22, 119, 255, 0.06);
|
|
178
173
|
--sg-dashboard-editor-drop-zone-border: var(--sg-color-primary);
|
|
179
174
|
|
|
180
175
|
/* Gantt — bars, today marker, dependency arrows */
|
|
181
|
-
--sg-gantt-bar-shadow:
|
|
182
|
-
0 1px 2px rgba(0, 0, 0, 0.10),
|
|
183
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.18);
|
|
176
|
+
--sg-gantt-bar-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
|
|
184
177
|
--sg-gantt-bar-shadow-hover:
|
|
185
|
-
0 3px 8px rgba(0, 0, 0, 0.14),
|
|
186
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
178
|
+
0 3px 8px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
187
179
|
--sg-gantt-today-marker-color: var(--sg-color-error);
|
|
188
180
|
--sg-gantt-today-marker-bg: rgba(245, 34, 45, 0.06);
|
|
189
181
|
--sg-gantt-dep-color: var(--sg-color-text-tertiary);
|
|
190
182
|
|
|
191
183
|
/* Timeline / EventTimeline — connector + event dot */
|
|
192
184
|
--sg-timeline-tail-color: var(--sg-color-border-secondary);
|
|
193
|
-
--sg-event-timeline-dot-shadow:
|
|
194
|
-
0 0 0 3px var(--sg-color-bg),
|
|
195
|
-
0 1px 3px rgba(22, 119, 255, 0.30);
|
|
185
|
+
--sg-event-timeline-dot-shadow: 0 0 0 3px var(--sg-color-bg), 0 1px 3px rgba(22, 119, 255, 0.3);
|
|
196
186
|
--sg-event-timeline-dot-shadow-hover:
|
|
197
|
-
0 0 0 3px var(--sg-color-bg),
|
|
198
|
-
0 2px 8px rgba(22, 119, 255, 0.45);
|
|
187
|
+
0 0 0 3px var(--sg-color-bg), 0 2px 8px rgba(22, 119, 255, 0.45);
|
|
199
188
|
|
|
200
189
|
/* ResourceCalendar — today, lane separators, conflict overlay */
|
|
201
190
|
--sg-rcal-today-bg: rgba(22, 119, 255, 0.05);
|
|
202
191
|
--sg-rcal-today-marker-color: var(--sg-color-primary);
|
|
203
192
|
--sg-rcal-lane-divider: var(--sg-color-border-secondary);
|
|
204
|
-
--sg-rcal-conflict-overlay-bg: rgba(245, 34, 45, 0.
|
|
193
|
+
--sg-rcal-conflict-overlay-bg: rgba(245, 34, 45, 0.1);
|
|
205
194
|
}
|
|
206
195
|
|
|
207
196
|
/* === Semantic tokens — Dark theme === */
|
|
208
|
-
[data-sg-theme=
|
|
197
|
+
[data-sg-theme='dark'] {
|
|
209
198
|
--sg-color-bg: var(--sg-gray-10);
|
|
210
199
|
--sg-color-bg-secondary: #1f1f1f;
|
|
211
200
|
--sg-color-bg-elevated: #1f1f1f;
|
|
@@ -223,6 +212,11 @@
|
|
|
223
212
|
--sg-color-border: #424242;
|
|
224
213
|
--sg-color-border-secondary: #303030;
|
|
225
214
|
|
|
215
|
+
--sg-color-fill: rgba(255, 255, 255, 0.15);
|
|
216
|
+
--sg-color-fill-secondary: rgba(255, 255, 255, 0.08);
|
|
217
|
+
--sg-color-fill-tertiary: rgba(255, 255, 255, 0.06);
|
|
218
|
+
--sg-color-fill-quaternary: rgba(255, 255, 255, 0.04);
|
|
219
|
+
|
|
226
220
|
--sg-color-primary: var(--sg-blue-5);
|
|
227
221
|
--sg-color-primary-hover: var(--sg-blue-6);
|
|
228
222
|
--sg-color-primary-active: var(--sg-blue-7);
|
|
@@ -250,19 +244,12 @@
|
|
|
250
244
|
--sg-diagram-canvas-bg: var(--sg-color-bg);
|
|
251
245
|
--sg-diagram-grid-line-color: rgba(255, 255, 255, 0.04);
|
|
252
246
|
--sg-diagram-grid-line-color-strong: rgba(255, 255, 255, 0.08);
|
|
253
|
-
--sg-diagram-node-shadow:
|
|
254
|
-
|
|
255
|
-
0 0 0 1px rgba(255, 255, 255, 0.04);
|
|
256
|
-
--sg-diagram-node-shadow-hover:
|
|
257
|
-
0 4px 12px rgba(0, 0, 0, 0.50),
|
|
258
|
-
0 1px 3px rgba(0, 0, 0, 0.40);
|
|
247
|
+
--sg-diagram-node-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
|
|
248
|
+
--sg-diagram-node-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
259
249
|
--sg-diagram-node-shadow-selected:
|
|
260
|
-
0 0 0 2px var(--sg-color-primary-bg),
|
|
261
|
-
0
|
|
262
|
-
|
|
263
|
-
--sg-diagram-node-shadow-dragging:
|
|
264
|
-
0 12px 28px rgba(0, 0, 0, 0.60),
|
|
265
|
-
0 2px 6px rgba(0, 0, 0, 0.40);
|
|
250
|
+
0 0 0 2px var(--sg-color-primary-bg), 0 6px 16px rgba(64, 150, 255, 0.3),
|
|
251
|
+
0 1px 3px rgba(0, 0, 0, 0.4);
|
|
252
|
+
--sg-diagram-node-shadow-dragging: 0 12px 28px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
|
|
266
253
|
--sg-diagram-edge-color: var(--sg-gray-7);
|
|
267
254
|
--sg-diagram-edge-color-hover: var(--sg-color-text-secondary);
|
|
268
255
|
--sg-diagram-edge-color-selected: var(--sg-color-primary);
|
|
@@ -270,40 +257,30 @@
|
|
|
270
257
|
--sg-diagram-lasso-fill: rgba(64, 150, 255, 0.12);
|
|
271
258
|
|
|
272
259
|
--sg-chart-tooltip-bg: var(--sg-color-bg-elevated);
|
|
273
|
-
--sg-chart-tooltip-shadow:
|
|
274
|
-
|
|
275
|
-
0 1px 3px rgba(0, 0, 0, 0.30);
|
|
276
|
-
--sg-chart-crosshair-color: rgba(255, 255, 255, 0.40);
|
|
260
|
+
--sg-chart-tooltip-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
261
|
+
--sg-chart-crosshair-color: rgba(255, 255, 255, 0.4);
|
|
277
262
|
--sg-chart-brush-fill: rgba(64, 150, 255, 0.16);
|
|
278
263
|
--sg-chart-brush-stroke: var(--sg-color-primary);
|
|
279
264
|
--sg-chart-legend-hover-bg: var(--sg-color-bg-hover);
|
|
280
265
|
|
|
281
266
|
--sg-dashboard-widget-shadow: var(--sg-shadow-sm);
|
|
282
|
-
--sg-dashboard-widget-shadow-hover:
|
|
283
|
-
0 4px 12px rgba(0, 0, 0, 0.40),
|
|
284
|
-
0 1px 3px rgba(0, 0, 0, 0.30);
|
|
267
|
+
--sg-dashboard-widget-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
285
268
|
--sg-dashboard-editor-grid-color: rgba(64, 150, 255, 0.08);
|
|
286
269
|
--sg-dashboard-editor-widget-border: var(--sg-color-primary);
|
|
287
|
-
--sg-dashboard-editor-drop-zone-bg: rgba(64, 150, 255, 0.
|
|
270
|
+
--sg-dashboard-editor-drop-zone-bg: rgba(64, 150, 255, 0.1);
|
|
288
271
|
--sg-dashboard-editor-drop-zone-border: var(--sg-color-primary);
|
|
289
272
|
|
|
290
|
-
--sg-gantt-bar-shadow:
|
|
291
|
-
0 1px 2px rgba(0, 0, 0, 0.40),
|
|
292
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.10);
|
|
273
|
+
--sg-gantt-bar-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
293
274
|
--sg-gantt-bar-shadow-hover:
|
|
294
|
-
0 3px 8px rgba(0, 0, 0, 0.
|
|
295
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.14);
|
|
275
|
+
0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
|
|
296
276
|
--sg-gantt-today-marker-color: var(--sg-color-error);
|
|
297
|
-
--sg-gantt-today-marker-bg: rgba(220, 68, 70, 0.
|
|
277
|
+
--sg-gantt-today-marker-bg: rgba(220, 68, 70, 0.1);
|
|
298
278
|
--sg-gantt-dep-color: var(--sg-color-text-tertiary);
|
|
299
279
|
|
|
300
280
|
--sg-timeline-tail-color: var(--sg-color-border-secondary);
|
|
301
|
-
--sg-event-timeline-dot-shadow:
|
|
302
|
-
0 0 0 3px var(--sg-color-bg),
|
|
303
|
-
0 1px 3px rgba(64, 150, 255, 0.45);
|
|
281
|
+
--sg-event-timeline-dot-shadow: 0 0 0 3px var(--sg-color-bg), 0 1px 3px rgba(64, 150, 255, 0.45);
|
|
304
282
|
--sg-event-timeline-dot-shadow-hover:
|
|
305
|
-
0 0 0 3px var(--sg-color-bg),
|
|
306
|
-
0 2px 10px rgba(64, 150, 255, 0.65);
|
|
283
|
+
0 0 0 3px var(--sg-color-bg), 0 2px 10px rgba(64, 150, 255, 0.65);
|
|
307
284
|
|
|
308
285
|
--sg-rcal-today-bg: rgba(64, 150, 255, 0.08);
|
|
309
286
|
--sg-rcal-today-marker-color: var(--sg-color-primary);
|