@skygraph/styles 0.6.4 → 0.6.6
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 +98 -98
- package/components/autocomplete.css +35 -35
- package/components/autofield.css +67 -67
- package/components/avatar.css +37 -37
- package/components/badge.css +102 -102
- package/components/breadcrumb.css +29 -29
- package/components/button.css +181 -181
- package/components/calendar.css +408 -408
- package/components/carousel.css +102 -102
- package/components/cascader.css +380 -380
- package/components/charts.css +408 -408
- package/components/checkbox.css +114 -114
- package/components/collapse.css +166 -166
- package/components/colorpicker.css +252 -252
- package/components/context-menu.css +95 -95
- package/components/descriptions.css +82 -82
- package/components/diagram.css +435 -435
- package/components/drawer.css +124 -124
- package/components/dropdown.css +110 -110
- package/components/empty.css +25 -25
- package/components/event-timeline.css +134 -134
- package/components/field.css +35 -35
- package/components/form.css +115 -115
- package/components/gantt.css +166 -166
- package/components/input-number.css +76 -76
- package/components/input-password.css +104 -104
- package/components/input.css +211 -211
- package/components/list.css +366 -366
- package/components/mentions.css +54 -54
- package/components/menu.css +326 -326
- package/components/modal.css +1 -0
- package/components/notification.css +128 -128
- package/components/pagination.css +162 -162
- package/components/popconfirm.css +95 -95
- package/components/progress.css +116 -116
- package/components/radio.css +95 -95
- package/components/rate.css +48 -48
- package/components/resource-calendar.css +224 -224
- package/components/result.css +45 -45
- package/components/schema-form-editor.css +433 -433
- package/components/search-input.css +112 -112
- package/components/segmented.css +76 -76
- package/components/select.css +181 -181
- package/components/skeleton.css +72 -72
- package/components/slider.css +51 -51
- package/components/spin.css +102 -102
- package/components/steps.css +194 -194
- package/components/switch.css +75 -75
- package/components/table.css +9 -1
- package/components/tabs.css +137 -137
- package/components/tag.css +61 -61
- package/components/textarea.css +22 -22
- package/components/timeline.css +169 -169
- package/components/timepicker.css +224 -224
- package/components/tooltip.css +91 -91
- package/components/transfer.css +140 -140
- package/components/tree.css +601 -601
- package/components/treeselect.css +221 -221
- package/components/upload.css +124 -124
- package/index.css +70 -70
- package/index.d.ts +9 -9
- package/package.json +1 -1
- package/print.css +88 -88
- package/reset.css +17 -17
- package/themes/dark.css +17 -17
- package/themes/default.css +14 -14
- package/tokens.css +310 -310
- package/transitions.css +158 -158
package/index.css
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
/* SkyGraph -- all styles */
|
|
2
|
-
@import './tokens.css';
|
|
3
|
-
@import './reset.css';
|
|
4
|
-
@import './components/button.css';
|
|
5
|
-
@import './components/input.css';
|
|
6
|
-
@import './components/textarea.css';
|
|
7
|
-
@import './components/input-number.css';
|
|
8
|
-
@import './components/form.css';
|
|
9
|
-
@import './components/field.css';
|
|
10
|
-
@import './components/autofield.css';
|
|
11
|
-
@import './components/spin.css';
|
|
12
|
-
@import './components/modal.css';
|
|
13
|
-
@import './components/checkbox.css';
|
|
14
|
-
@import './components/radio.css';
|
|
15
|
-
@import './components/switch.css';
|
|
16
|
-
@import './components/select.css';
|
|
17
|
-
@import './components/tabs.css';
|
|
18
|
-
@import './components/tooltip.css';
|
|
19
|
-
@import './components/table.css';
|
|
20
|
-
@import './components/datagrid.css';
|
|
21
|
-
@import './components/datepicker.css';
|
|
22
|
-
@import './components/timepicker.css';
|
|
23
|
-
@import './components/autocomplete.css';
|
|
24
|
-
@import './components/slider.css';
|
|
25
|
-
@import './components/rate.css';
|
|
26
|
-
@import './components/upload.css';
|
|
27
|
-
@import './components/notification.css';
|
|
28
|
-
@import './components/drawer.css';
|
|
29
|
-
@import './components/popconfirm.css';
|
|
30
|
-
@import './components/badge.css';
|
|
31
|
-
@import './components/tag.css';
|
|
32
|
-
@import './components/avatar.css';
|
|
33
|
-
@import './components/breadcrumb.css';
|
|
34
|
-
@import './components/pagination.css';
|
|
35
|
-
@import './components/dropdown.css';
|
|
36
|
-
@import './components/progress.css';
|
|
37
|
-
@import './components/tree.css';
|
|
38
|
-
@import './components/treeselect.css';
|
|
39
|
-
@import './components/cascader.css';
|
|
40
|
-
@import './components/calendar.css';
|
|
41
|
-
@import './components/list.css';
|
|
42
|
-
@import './components/transfer.css';
|
|
43
|
-
@import './components/menu.css';
|
|
44
|
-
@import './components/context-menu.css';
|
|
45
|
-
@import './components/collapse.css';
|
|
46
|
-
@import './components/colorpicker.css';
|
|
47
|
-
@import './components/empty.css';
|
|
48
|
-
@import './components/result.css';
|
|
49
|
-
@import './components/skeleton.css';
|
|
50
|
-
@import './components/segmented.css';
|
|
51
|
-
@import './components/steps.css';
|
|
52
|
-
@import './components/timeline.css';
|
|
53
|
-
@import './components/carousel.css';
|
|
54
|
-
@import './components/descriptions.css';
|
|
55
|
-
@import './components/mentions.css';
|
|
56
|
-
@import './components/input-password.css';
|
|
57
|
-
@import './components/search-input.css';
|
|
58
|
-
@import './components/tag-input.css';
|
|
59
|
-
@import './components/pin-input.css';
|
|
60
|
-
@import './components/inline-edit.css';
|
|
61
|
-
@import './components/input-group.css';
|
|
62
|
-
@import './components/diagram.css';
|
|
63
|
-
@import './components/charts.css';
|
|
64
|
-
@import './components/dashboard.css';
|
|
65
|
-
@import './components/gantt.css';
|
|
66
|
-
@import './components/resource-calendar.css';
|
|
67
|
-
@import './components/event-timeline.css';
|
|
68
|
-
@import './components/schema-form-editor.css';
|
|
69
|
-
@import './transitions.css';
|
|
70
|
-
@import './print.css';
|
|
1
|
+
/* SkyGraph -- all styles */
|
|
2
|
+
@import './tokens.css';
|
|
3
|
+
@import './reset.css';
|
|
4
|
+
@import './components/button.css';
|
|
5
|
+
@import './components/input.css';
|
|
6
|
+
@import './components/textarea.css';
|
|
7
|
+
@import './components/input-number.css';
|
|
8
|
+
@import './components/form.css';
|
|
9
|
+
@import './components/field.css';
|
|
10
|
+
@import './components/autofield.css';
|
|
11
|
+
@import './components/spin.css';
|
|
12
|
+
@import './components/modal.css';
|
|
13
|
+
@import './components/checkbox.css';
|
|
14
|
+
@import './components/radio.css';
|
|
15
|
+
@import './components/switch.css';
|
|
16
|
+
@import './components/select.css';
|
|
17
|
+
@import './components/tabs.css';
|
|
18
|
+
@import './components/tooltip.css';
|
|
19
|
+
@import './components/table.css';
|
|
20
|
+
@import './components/datagrid.css';
|
|
21
|
+
@import './components/datepicker.css';
|
|
22
|
+
@import './components/timepicker.css';
|
|
23
|
+
@import './components/autocomplete.css';
|
|
24
|
+
@import './components/slider.css';
|
|
25
|
+
@import './components/rate.css';
|
|
26
|
+
@import './components/upload.css';
|
|
27
|
+
@import './components/notification.css';
|
|
28
|
+
@import './components/drawer.css';
|
|
29
|
+
@import './components/popconfirm.css';
|
|
30
|
+
@import './components/badge.css';
|
|
31
|
+
@import './components/tag.css';
|
|
32
|
+
@import './components/avatar.css';
|
|
33
|
+
@import './components/breadcrumb.css';
|
|
34
|
+
@import './components/pagination.css';
|
|
35
|
+
@import './components/dropdown.css';
|
|
36
|
+
@import './components/progress.css';
|
|
37
|
+
@import './components/tree.css';
|
|
38
|
+
@import './components/treeselect.css';
|
|
39
|
+
@import './components/cascader.css';
|
|
40
|
+
@import './components/calendar.css';
|
|
41
|
+
@import './components/list.css';
|
|
42
|
+
@import './components/transfer.css';
|
|
43
|
+
@import './components/menu.css';
|
|
44
|
+
@import './components/context-menu.css';
|
|
45
|
+
@import './components/collapse.css';
|
|
46
|
+
@import './components/colorpicker.css';
|
|
47
|
+
@import './components/empty.css';
|
|
48
|
+
@import './components/result.css';
|
|
49
|
+
@import './components/skeleton.css';
|
|
50
|
+
@import './components/segmented.css';
|
|
51
|
+
@import './components/steps.css';
|
|
52
|
+
@import './components/timeline.css';
|
|
53
|
+
@import './components/carousel.css';
|
|
54
|
+
@import './components/descriptions.css';
|
|
55
|
+
@import './components/mentions.css';
|
|
56
|
+
@import './components/input-password.css';
|
|
57
|
+
@import './components/search-input.css';
|
|
58
|
+
@import './components/tag-input.css';
|
|
59
|
+
@import './components/pin-input.css';
|
|
60
|
+
@import './components/inline-edit.css';
|
|
61
|
+
@import './components/input-group.css';
|
|
62
|
+
@import './components/diagram.css';
|
|
63
|
+
@import './components/charts.css';
|
|
64
|
+
@import './components/dashboard.css';
|
|
65
|
+
@import './components/gantt.css';
|
|
66
|
+
@import './components/resource-calendar.css';
|
|
67
|
+
@import './components/event-timeline.css';
|
|
68
|
+
@import './components/schema-form-editor.css';
|
|
69
|
+
@import './transitions.css';
|
|
70
|
+
@import './print.css';
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// `@skygraph/styles` is a CSS-only package — every entrypoint is a stylesheet
|
|
2
|
-
// and is consumed via side-effect import (`import '@skygraph/styles'` /
|
|
3
|
-
// `import '@skygraph/styles/components/button'`). This declaration file exists
|
|
4
|
-
// solely so TypeScript with `moduleResolution: bundler` can resolve a typed
|
|
5
|
-
// "module" for those side-effect imports.
|
|
6
|
-
//
|
|
7
|
-
// There is no JS / TS API to type — the package contributes only style rules.
|
|
8
|
-
|
|
9
|
-
export {}
|
|
1
|
+
// `@skygraph/styles` is a CSS-only package — every entrypoint is a stylesheet
|
|
2
|
+
// and is consumed via side-effect import (`import '@skygraph/styles'` /
|
|
3
|
+
// `import '@skygraph/styles/components/button'`). This declaration file exists
|
|
4
|
+
// solely so TypeScript with `moduleResolution: bundler` can resolve a typed
|
|
5
|
+
// "module" for those side-effect imports.
|
|
6
|
+
//
|
|
7
|
+
// There is no JS / TS API to type — the package contributes only style rules.
|
|
8
|
+
|
|
9
|
+
export {}
|
package/package.json
CHANGED
package/print.css
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
/* SkyGraph — общие правила для @media print.
|
|
2
|
-
*
|
|
3
|
-
* Подключается из styles/index.css. Все переопределения сидят строго внутри
|
|
4
|
-
* @media print, поэтому экранный рендеринг не затронут. `!important`
|
|
5
|
-
* сознательно используется ради побеждания inline-стилей (которые JS-код
|
|
6
|
-
* применяет на скрол-контейнерах, тенях, transform-ах для пана/зума) — это
|
|
7
|
-
* стандартный print-CSS паттерн и разрешён в check-no-important media-allowlist.
|
|
8
|
-
*
|
|
9
|
-
* Дополнительные компонент-специфичные блоки (например `.sg-table-toolbar`,
|
|
10
|
-
* `.sg-table-pagination`) живут рядом со своим компонентом
|
|
11
|
-
* (см. components/table.css). Этот файл — общий слой.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
@media print {
|
|
15
|
-
/* Универсальная маркировка "не печатать" — ставится JS-кодом на тулбары,
|
|
16
|
-
* fab-кнопки, hover-overlay и т.п. */
|
|
17
|
-
.sg-no-print {
|
|
18
|
-
display: none !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* Принудительный page-break после блока. Используется data-атрибутом
|
|
22
|
-
* вместо класса, чтобы не конфликтовать с пользовательскими CSS-классами. */
|
|
23
|
-
[data-sg-page-break] {
|
|
24
|
-
page-break-after: always;
|
|
25
|
-
break-after: page;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
[data-sg-page-break-before] {
|
|
29
|
-
page-break-before: always;
|
|
30
|
-
break-before: page;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* Корневая обёртка popup-окна — добавляется printElement(). Ничего
|
|
34
|
-
* лишнего, только сброс отступов и прозрачный фон под печать. */
|
|
35
|
-
.sg-print-root {
|
|
36
|
-
background: #fff;
|
|
37
|
-
color: #000;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* На случай корпоративных принтеров: убрать тяжёлые тени и transform —
|
|
41
|
-
* современные браузеры в большинстве случаев игнорируют CSS-анимации в
|
|
42
|
-
* print-mode, но `transform` (используется панами / зумами Diagram-а)
|
|
43
|
-
* сохраняется и ломает раскладку, если не сбросить. */
|
|
44
|
-
.sg-print-root [class*="sg-"][style*="transform"] {
|
|
45
|
-
/* Сбрасывается JS-side в Diagram через специальный data-атрибут
|
|
46
|
-
* (см. ниже), чтобы пан/зум не уезжал в печать. */
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Раскрыть скролл-контейнеры — иначе печатается только видимое окно. */
|
|
50
|
-
.sg-table-wrapper,
|
|
51
|
-
.sg-table-scroll,
|
|
52
|
-
.sg-diagram,
|
|
53
|
-
.sg-chart-wrapper {
|
|
54
|
-
overflow: visible !important;
|
|
55
|
-
max-height: none !important;
|
|
56
|
-
height: auto !important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Diagram: при печати сбрасываем pan/zoom transform на canvas-обёртке.
|
|
60
|
-
* Координата `data-pan-*` остаётся атрибутом — это диагностика, не CSS. */
|
|
61
|
-
.sg-diagram-canvas {
|
|
62
|
-
transform: none !important;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Таблица — каждую строку держим вместе. */
|
|
66
|
-
.sg-table-row,
|
|
67
|
-
.sg-table-tr,
|
|
68
|
-
.sg-datagrid-row {
|
|
69
|
-
page-break-inside: avoid;
|
|
70
|
-
break-inside: avoid;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* Charts — скрыть hover crosshair и brushing, если они оказались
|
|
74
|
-
* закрашены на момент печати (selection rect остаётся в DOM). */
|
|
75
|
-
.sg-chart-crosshair,
|
|
76
|
-
.sg-chart-brush-overlay {
|
|
77
|
-
display: none !important;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* Diagram — спрятать тулбары / минимапы. Стандартного minimap-классa у
|
|
81
|
-
* SkyGraph пока нет, но префикс зарезервирован — пусть пользователь
|
|
82
|
-
* добавит `.sg-no-print` или дочерний класс из этого списка. */
|
|
83
|
-
.sg-diagram-toolbar,
|
|
84
|
-
.sg-diagram-minimap,
|
|
85
|
-
.sg-diagram-controls {
|
|
86
|
-
display: none !important;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
/* SkyGraph — общие правила для @media print.
|
|
2
|
+
*
|
|
3
|
+
* Подключается из styles/index.css. Все переопределения сидят строго внутри
|
|
4
|
+
* @media print, поэтому экранный рендеринг не затронут. `!important`
|
|
5
|
+
* сознательно используется ради побеждания inline-стилей (которые JS-код
|
|
6
|
+
* применяет на скрол-контейнерах, тенях, transform-ах для пана/зума) — это
|
|
7
|
+
* стандартный print-CSS паттерн и разрешён в check-no-important media-allowlist.
|
|
8
|
+
*
|
|
9
|
+
* Дополнительные компонент-специфичные блоки (например `.sg-table-toolbar`,
|
|
10
|
+
* `.sg-table-pagination`) живут рядом со своим компонентом
|
|
11
|
+
* (см. components/table.css). Этот файл — общий слой.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
@media print {
|
|
15
|
+
/* Универсальная маркировка "не печатать" — ставится JS-кодом на тулбары,
|
|
16
|
+
* fab-кнопки, hover-overlay и т.п. */
|
|
17
|
+
.sg-no-print {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Принудительный page-break после блока. Используется data-атрибутом
|
|
22
|
+
* вместо класса, чтобы не конфликтовать с пользовательскими CSS-классами. */
|
|
23
|
+
[data-sg-page-break] {
|
|
24
|
+
page-break-after: always;
|
|
25
|
+
break-after: page;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-sg-page-break-before] {
|
|
29
|
+
page-break-before: always;
|
|
30
|
+
break-before: page;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Корневая обёртка popup-окна — добавляется printElement(). Ничего
|
|
34
|
+
* лишнего, только сброс отступов и прозрачный фон под печать. */
|
|
35
|
+
.sg-print-root {
|
|
36
|
+
background: #fff;
|
|
37
|
+
color: #000;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* На случай корпоративных принтеров: убрать тяжёлые тени и transform —
|
|
41
|
+
* современные браузеры в большинстве случаев игнорируют CSS-анимации в
|
|
42
|
+
* print-mode, но `transform` (используется панами / зумами Diagram-а)
|
|
43
|
+
* сохраняется и ломает раскладку, если не сбросить. */
|
|
44
|
+
.sg-print-root [class*="sg-"][style*="transform"] {
|
|
45
|
+
/* Сбрасывается JS-side в Diagram через специальный data-атрибут
|
|
46
|
+
* (см. ниже), чтобы пан/зум не уезжал в печать. */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Раскрыть скролл-контейнеры — иначе печатается только видимое окно. */
|
|
50
|
+
.sg-table-wrapper,
|
|
51
|
+
.sg-table-scroll,
|
|
52
|
+
.sg-diagram,
|
|
53
|
+
.sg-chart-wrapper {
|
|
54
|
+
overflow: visible !important;
|
|
55
|
+
max-height: none !important;
|
|
56
|
+
height: auto !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Diagram: при печати сбрасываем pan/zoom transform на canvas-обёртке.
|
|
60
|
+
* Координата `data-pan-*` остаётся атрибутом — это диагностика, не CSS. */
|
|
61
|
+
.sg-diagram-canvas {
|
|
62
|
+
transform: none !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Таблица — каждую строку держим вместе. */
|
|
66
|
+
.sg-table-row,
|
|
67
|
+
.sg-table-tr,
|
|
68
|
+
.sg-datagrid-row {
|
|
69
|
+
page-break-inside: avoid;
|
|
70
|
+
break-inside: avoid;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Charts — скрыть hover crosshair и brushing, если они оказались
|
|
74
|
+
* закрашены на момент печати (selection rect остаётся в DOM). */
|
|
75
|
+
.sg-chart-crosshair,
|
|
76
|
+
.sg-chart-brush-overlay {
|
|
77
|
+
display: none !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Diagram — спрятать тулбары / минимапы. Стандартного minimap-классa у
|
|
81
|
+
* SkyGraph пока нет, но префикс зарезервирован — пусть пользователь
|
|
82
|
+
* добавит `.sg-no-print` или дочерний класс из этого списка. */
|
|
83
|
+
.sg-diagram-toolbar,
|
|
84
|
+
.sg-diagram-minimap,
|
|
85
|
+
.sg-diagram-controls {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
package/reset.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* SkyGraph reset — all sg-* scoped elements */
|
|
2
|
-
|
|
3
|
-
[class^="sg-"],
|
|
4
|
-
[class*=" sg-"],
|
|
5
|
-
[class^="sg-"] *,
|
|
6
|
-
[class*=" sg-"] *,
|
|
7
|
-
[class^="sg-"] *::before,
|
|
8
|
-
[class*=" sg-"] *::before,
|
|
9
|
-
[class^="sg-"] *::after,
|
|
10
|
-
[class*=" sg-"] *::after {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[class^="sg-"] button,
|
|
15
|
-
[class*=" sg-"] button {
|
|
16
|
-
font-family: inherit;
|
|
17
|
-
}
|
|
1
|
+
/* SkyGraph reset — all sg-* scoped elements */
|
|
2
|
+
|
|
3
|
+
[class^="sg-"],
|
|
4
|
+
[class*=" sg-"],
|
|
5
|
+
[class^="sg-"] *,
|
|
6
|
+
[class*=" sg-"] *,
|
|
7
|
+
[class^="sg-"] *::before,
|
|
8
|
+
[class*=" sg-"] *::before,
|
|
9
|
+
[class^="sg-"] *::after,
|
|
10
|
+
[class*=" sg-"] *::after {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[class^="sg-"] button,
|
|
15
|
+
[class*=" sg-"] button {
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
}
|
package/themes/dark.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* SkyGraph -- Dark theme
|
|
2
|
-
*
|
|
3
|
-
* Convenience re-export of the full token set. Activate dark mode by setting
|
|
4
|
-
* `data-sg-theme="dark"` on `<html>` (or any wrapper). The dark semantic
|
|
5
|
-
* tokens kick in via the `[data-sg-theme="dark"]` selector inside `tokens.css`.
|
|
6
|
-
*
|
|
7
|
-
* NOTE: this file imports the SAME `tokens.css` as `default.css`. Both light
|
|
8
|
-
* and dark semantic tokens live there; importing only `dark.css` does NOT
|
|
9
|
-
* give you a "dark-only" stylesheet — the selector decides which set wins.
|
|
10
|
-
*
|
|
11
|
-
* Example:
|
|
12
|
-
* import '@skygraph/styles/themes/dark'
|
|
13
|
-
*
|
|
14
|
-
* <html data-sg-theme="dark"> ... </html>
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
@import '../tokens.css';
|
|
1
|
+
/* SkyGraph -- Dark theme
|
|
2
|
+
*
|
|
3
|
+
* Convenience re-export of the full token set. Activate dark mode by setting
|
|
4
|
+
* `data-sg-theme="dark"` on `<html>` (or any wrapper). The dark semantic
|
|
5
|
+
* tokens kick in via the `[data-sg-theme="dark"]` selector inside `tokens.css`.
|
|
6
|
+
*
|
|
7
|
+
* NOTE: this file imports the SAME `tokens.css` as `default.css`. Both light
|
|
8
|
+
* and dark semantic tokens live there; importing only `dark.css` does NOT
|
|
9
|
+
* give you a "dark-only" stylesheet — the selector decides which set wins.
|
|
10
|
+
*
|
|
11
|
+
* Example:
|
|
12
|
+
* import '@skygraph/styles/themes/dark'
|
|
13
|
+
*
|
|
14
|
+
* <html data-sg-theme="dark"> ... </html>
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@import '../tokens.css';
|
package/themes/default.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* SkyGraph -- Light theme (default)
|
|
2
|
-
*
|
|
3
|
-
* Convenience re-export of the full token set. After importing this file the
|
|
4
|
-
* `[data-sg-theme="light"]` selector inside `tokens.css` is the active layer.
|
|
5
|
-
*
|
|
6
|
-
* NOTE: this file imports the SAME `tokens.css` as `dark.css`. Both light and
|
|
7
|
-
* dark semantic tokens live there; the active set is decided at runtime via
|
|
8
|
-
* the `data-sg-theme` attribute on a parent element.
|
|
9
|
-
*
|
|
10
|
-
* Import:
|
|
11
|
-
* import '@skygraph/styles/themes/default'
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
@import '../tokens.css';
|
|
1
|
+
/* SkyGraph -- Light theme (default)
|
|
2
|
+
*
|
|
3
|
+
* Convenience re-export of the full token set. After importing this file the
|
|
4
|
+
* `[data-sg-theme="light"]` selector inside `tokens.css` is the active layer.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: this file imports the SAME `tokens.css` as `dark.css`. Both light and
|
|
7
|
+
* dark semantic tokens live there; the active set is decided at runtime via
|
|
8
|
+
* the `data-sg-theme` attribute on a parent element.
|
|
9
|
+
*
|
|
10
|
+
* Import:
|
|
11
|
+
* import '@skygraph/styles/themes/default'
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
@import '../tokens.css';
|