@signalsafe/tree-spec-editor-theme-bootstrap 0.1.0
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/LICENSE +21 -0
- package/README.md +33 -0
- package/package.json +27 -0
- package/src/primitives/badges.css +69 -0
- package/src/primitives/buttons.css +138 -0
- package/src/primitives/flex.css +84 -0
- package/src/primitives/forms.css +76 -0
- package/src/primitives/lists.css +57 -0
- package/src/primitives/spacing.css +26 -0
- package/src/primitives/surfaces.css +15 -0
- package/src/primitives/typography.css +23 -0
- package/src/shell/cards.css +42 -0
- package/src/shell/dropdowns.css +64 -0
- package/src/shell/modals.css +53 -0
- package/src/shell/panels.css +38 -0
- package/src/shell/selection.css +43 -0
- package/src/shell/toolbar.css +113 -0
- package/src/tokens.css +30 -0
- package/styles.css +19 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 SignalSafe Software
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @signalsafe/tree-spec-editor-theme-bootstrap
|
|
2
|
+
|
|
3
|
+
CSS-only Bootstrap-token theme for semantic classes emitted by `@signalsafe/tree-spec-editor` and `@signalsafe/tree-spec-editor-react`.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Import the theme **after** Bootstrap or Bootswatch so `--bs-*` variables resolve:
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import '@signalsafe/tree-spec-editor-theme-bootstrap/styles.css';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Host apps may keep a thin bridge stylesheet for DeliveryPlus-specific layout, read-only mode, and temporary icon bridges.
|
|
14
|
+
|
|
15
|
+
## What this package includes
|
|
16
|
+
|
|
17
|
+
- **Slice 1 (current):** design tokens on `.graph-editor-root`, primitives (buttons, forms, lists, badges, spacing, typography, surfaces, flex), and shell chrome (toolbar, cards, modals, panels, dropdowns, selection).
|
|
18
|
+
- **Not included yet:** React Flow / canvas node CSS, choice row layout, aria-label icon bridges, or DeliveryPlus page/read-only/injected-form bridges.
|
|
19
|
+
|
|
20
|
+
## Requirements
|
|
21
|
+
|
|
22
|
+
- No React components, ThemeProvider, or runtime logic.
|
|
23
|
+
- No Bootstrap JavaScript dependency.
|
|
24
|
+
- No npm dependency on Bootstrap — the theme maps `--graph-editor-*` tokens from `--bs-*` when present.
|
|
25
|
+
|
|
26
|
+
## Package layout
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
styles.css # public entry (@import chain)
|
|
30
|
+
src/tokens.css
|
|
31
|
+
src/primitives/*.css
|
|
32
|
+
src/shell/*.css
|
|
33
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@signalsafe/tree-spec-editor-theme-bootstrap",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Bootstrap-token theme for @signalsafe/tree-spec-editor semantic classes.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": ["*.css", "**/*.css"],
|
|
8
|
+
"exports": {
|
|
9
|
+
"./styles.css": "./styles.css"
|
|
10
|
+
},
|
|
11
|
+
"files": ["styles.css", "src/**/*.css", "README.md", "LICENSE"],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"smoke:package": "node scripts/smoke-package.mjs",
|
|
17
|
+
"publish:dry-run": "npm pack --dry-run"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"tree-spec",
|
|
21
|
+
"graph-editor",
|
|
22
|
+
"theme",
|
|
23
|
+
"css",
|
|
24
|
+
"bootstrap",
|
|
25
|
+
"signalsafe"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badges and validation alerts.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-badge {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
padding: 0.15rem 0.45rem;
|
|
8
|
+
font-size: 0.75rem;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
border-radius: var(--bs-border-radius-sm, 0.25rem);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.graph-editor-badge--error {
|
|
14
|
+
background: var(--graph-editor-danger);
|
|
15
|
+
color: #fff;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.graph-editor-badge--warning {
|
|
19
|
+
background: var(--bs-warning);
|
|
20
|
+
color: #000;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.graph-editor-badge--info {
|
|
24
|
+
background: var(--bs-info);
|
|
25
|
+
color: #000;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.graph-editor-badge--secondary {
|
|
29
|
+
background: var(--bs-secondary);
|
|
30
|
+
color: #fff;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.graph-editor-badge--neutral {
|
|
34
|
+
background: var(--bs-secondary-bg);
|
|
35
|
+
color: var(--graph-editor-text);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.graph-editor-badge--success {
|
|
39
|
+
background: var(--graph-editor-success);
|
|
40
|
+
color: #fff;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.graph-editor-badge--danger {
|
|
44
|
+
background: var(--graph-editor-danger);
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.graph-editor-alert {
|
|
49
|
+
padding: 0.75rem 1rem;
|
|
50
|
+
border-radius: var(--graph-editor-radius);
|
|
51
|
+
border: var(--graph-editor-border-width) solid transparent;
|
|
52
|
+
margin-bottom: 0.75rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.graph-editor-alert--danger {
|
|
56
|
+
color: var(--bs-danger-text-emphasis, #58151c);
|
|
57
|
+
background: var(--bs-danger-bg-subtle, #f8d7da);
|
|
58
|
+
border-color: var(--bs-danger-border-subtle, #f1aeb5);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.graph-editor-alert--warning {
|
|
62
|
+
color: var(--bs-warning-text-emphasis, #664d03);
|
|
63
|
+
background: var(--bs-warning-bg-subtle, #fff3cd);
|
|
64
|
+
border-color: var(--bs-warning-border-subtle, #ffe69c);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.graph-editor-muted {
|
|
68
|
+
color: var(--graph-editor-muted);
|
|
69
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Buttons, button groups, and icon affordances (non-bridge).
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-btn {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
padding: 0.25rem 0.75rem;
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
border-radius: var(--graph-editor-radius);
|
|
14
|
+
border: 1px solid transparent;
|
|
15
|
+
background: var(--bs-secondary-bg);
|
|
16
|
+
color: var(--graph-editor-text);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.graph-editor-btn:disabled,
|
|
21
|
+
.graph-editor-btn--disabled {
|
|
22
|
+
opacity: 0.65;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.graph-editor-btn--primary {
|
|
27
|
+
background: var(--graph-editor-accent);
|
|
28
|
+
border-color: var(--graph-editor-accent);
|
|
29
|
+
color: #fff;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.graph-editor-btn--success {
|
|
33
|
+
background: var(--graph-editor-success);
|
|
34
|
+
border-color: var(--graph-editor-success);
|
|
35
|
+
color: #fff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.graph-editor-btn--danger {
|
|
39
|
+
background: var(--graph-editor-danger);
|
|
40
|
+
border-color: var(--graph-editor-danger);
|
|
41
|
+
color: #fff;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.graph-editor-btn--neutral,
|
|
45
|
+
.graph-editor-btn--neutral-outline {
|
|
46
|
+
background: rgba(0, 0, 0, 0.04);
|
|
47
|
+
border-color: rgba(0, 0, 0, 0.25);
|
|
48
|
+
color: var(--graph-editor-text);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.graph-editor-btn--icon {
|
|
52
|
+
padding: 0.25rem 0.5rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.graph-editor-btn--link {
|
|
56
|
+
display: inline;
|
|
57
|
+
padding: 0;
|
|
58
|
+
font-weight: inherit;
|
|
59
|
+
line-height: inherit;
|
|
60
|
+
background: transparent;
|
|
61
|
+
border-color: transparent;
|
|
62
|
+
color: var(--bs-link-color, var(--graph-editor-accent));
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
border-radius: 0;
|
|
65
|
+
vertical-align: baseline;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.graph-editor-btn--link:hover:not(:disabled) {
|
|
69
|
+
background: transparent;
|
|
70
|
+
border-color: transparent;
|
|
71
|
+
color: var(--bs-link-hover-color);
|
|
72
|
+
text-decoration: underline;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.graph-editor-btn--light {
|
|
76
|
+
background: var(--graph-editor-bg);
|
|
77
|
+
border: 1px solid var(--graph-editor-border);
|
|
78
|
+
color: var(--graph-editor-text);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.graph-editor-btn--light:hover:not(:disabled) {
|
|
82
|
+
background: var(--graph-editor-panel-bg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.graph-editor-btn--close {
|
|
86
|
+
background: transparent;
|
|
87
|
+
border: 0;
|
|
88
|
+
font-size: 1.25rem;
|
|
89
|
+
line-height: 1;
|
|
90
|
+
padding: 0.125rem 0.375rem;
|
|
91
|
+
color: var(--graph-editor-muted);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.graph-editor-btn-group {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: 0.25rem;
|
|
98
|
+
border: 0;
|
|
99
|
+
padding: 0;
|
|
100
|
+
margin: 0;
|
|
101
|
+
min-inline-size: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.graph-editor-btn-group--sm .graph-editor-btn {
|
|
105
|
+
min-width: 1.75rem;
|
|
106
|
+
min-height: 1.75rem;
|
|
107
|
+
padding: 0.125rem 0.375rem;
|
|
108
|
+
line-height: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.graph-editor-icon {
|
|
112
|
+
display: inline-flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
line-height: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.graph-editor-icon--grip {
|
|
119
|
+
font-size: 0.65rem;
|
|
120
|
+
letter-spacing: -0.08em;
|
|
121
|
+
color: var(--graph-editor-muted);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.graph-editor-icon--lock {
|
|
125
|
+
font-size: 0.75rem;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.graph-editor-drag-handle {
|
|
129
|
+
cursor: grab;
|
|
130
|
+
touch-action: none;
|
|
131
|
+
color: var(--graph-editor-muted);
|
|
132
|
+
line-height: 1;
|
|
133
|
+
padding-top: 1px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.graph-editor-drag-handle:active {
|
|
137
|
+
cursor: grabbing;
|
|
138
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flex and layout utilities.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-flex {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.graph-editor-flex--row {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.graph-editor-flex--between {
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.graph-editor-flex--wrap {
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.graph-editor-flex--align-end {
|
|
22
|
+
align-items: flex-end;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.graph-editor-flex--align-center {
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.graph-editor-flex--align-start {
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.graph-editor-flex-grow-1 {
|
|
34
|
+
flex-grow: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.graph-editor-flex-shrink-0 {
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.graph-editor-flex-fill {
|
|
42
|
+
flex: 1 1 0;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.graph-editor-flex--gap {
|
|
47
|
+
gap: 0.75rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.graph-editor-min-w-0 {
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.graph-editor-scroll {
|
|
55
|
+
overflow: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.graph-editor-hidden {
|
|
59
|
+
display: none !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.graph-editor-overflow-hidden {
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.graph-editor-w-full {
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.graph-editor-rounded {
|
|
71
|
+
border-radius: var(--graph-editor-radius);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.graph-editor-sr-only {
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 1px;
|
|
77
|
+
height: 1px;
|
|
78
|
+
padding: 0;
|
|
79
|
+
margin: -1px;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
clip: rect(0, 0, 0, 0);
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
border: 0;
|
|
84
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Form fields and checkboxes.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-root .graph-editor-input,
|
|
6
|
+
.graph-editor-root .graph-editor-select,
|
|
7
|
+
.graph-editor-root .graph-editor-textarea {
|
|
8
|
+
font-size: 0.875rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.graph-editor-root .graph-editor-field__label {
|
|
12
|
+
font-size: 0.875rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.graph-editor-field {
|
|
16
|
+
margin-bottom: 0.75rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.graph-editor-field__label {
|
|
20
|
+
display: block;
|
|
21
|
+
margin-bottom: 0.25rem;
|
|
22
|
+
font-size: 0.875rem;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.graph-editor-input,
|
|
27
|
+
.graph-editor-select,
|
|
28
|
+
.graph-editor-textarea {
|
|
29
|
+
display: block;
|
|
30
|
+
width: 100%;
|
|
31
|
+
padding: 0.375rem 0.75rem;
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
line-height: 1.5;
|
|
34
|
+
color: var(--graph-editor-text);
|
|
35
|
+
background: var(--graph-editor-bg);
|
|
36
|
+
border: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
37
|
+
border-radius: var(--graph-editor-radius);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.graph-editor-input:focus,
|
|
41
|
+
.graph-editor-select:focus,
|
|
42
|
+
.graph-editor-textarea:focus {
|
|
43
|
+
outline: 0;
|
|
44
|
+
border-color: var(--graph-editor-accent);
|
|
45
|
+
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.graph-editor-checkbox {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 0.375rem;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.graph-editor-checkbox--switch input {
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.graph-editor-input--list-search {
|
|
60
|
+
margin-bottom: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.graph-editor-root .graph-editor-input:disabled,
|
|
64
|
+
.graph-editor-root .graph-editor-select:disabled,
|
|
65
|
+
.graph-editor-root .graph-editor-textarea:disabled {
|
|
66
|
+
background-color: var(--graph-editor-panel-bg);
|
|
67
|
+
color: var(--graph-editor-muted);
|
|
68
|
+
border-color: var(--graph-editor-border-subtle);
|
|
69
|
+
opacity: 1;
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.graph-editor-root .graph-editor-checkbox--switch input:disabled {
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
opacity: 0.55;
|
|
76
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar and panel list rows.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-list {
|
|
6
|
+
list-style: none;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.graph-editor-list__item {
|
|
12
|
+
padding: 0.5rem 0.75rem;
|
|
13
|
+
border-top: var(--graph-editor-border-width) solid var(--graph-editor-border-subtle);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
text-align: start;
|
|
16
|
+
width: 100%;
|
|
17
|
+
background: transparent;
|
|
18
|
+
border-inline: 0;
|
|
19
|
+
border-bottom: 0;
|
|
20
|
+
color: inherit;
|
|
21
|
+
font: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.graph-editor-list__item-action {
|
|
25
|
+
display: block;
|
|
26
|
+
width: 100%;
|
|
27
|
+
padding: 0;
|
|
28
|
+
border: 0;
|
|
29
|
+
background: transparent;
|
|
30
|
+
color: inherit;
|
|
31
|
+
font: inherit;
|
|
32
|
+
text-align: start;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.graph-editor-list__item.graph-editor-list__item--button {
|
|
37
|
+
display: block;
|
|
38
|
+
width: 100%;
|
|
39
|
+
padding: 0.5rem 0.75rem;
|
|
40
|
+
border-top: var(--graph-editor-border-width) solid var(--graph-editor-border-subtle);
|
|
41
|
+
border-inline: 0;
|
|
42
|
+
border-bottom: 0;
|
|
43
|
+
background: transparent;
|
|
44
|
+
color: inherit;
|
|
45
|
+
font: inherit;
|
|
46
|
+
text-align: start;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.graph-editor-list__item-action:hover,
|
|
51
|
+
.graph-editor-list__item--button:hover {
|
|
52
|
+
color: inherit;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.graph-editor-list__item:first-child {
|
|
56
|
+
border-top: 0;
|
|
57
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spacing utilities emitted by @signalsafe/tree-spec-editor*.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-spacing--p-0 { padding: 0 !important; }
|
|
6
|
+
.graph-editor-spacing--p-2 { padding: 0.5rem; }
|
|
7
|
+
.graph-editor-spacing--px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
|
|
8
|
+
.graph-editor-spacing--py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
|
|
9
|
+
.graph-editor-spacing--py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
|
|
10
|
+
.graph-editor-spacing--px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
|
|
11
|
+
.graph-editor-spacing--pt-2 { padding-top: 0.5rem; }
|
|
12
|
+
.graph-editor-spacing--mb-0 { margin-bottom: 0; }
|
|
13
|
+
.graph-editor-spacing--mb-1 { margin-bottom: 0.25rem; }
|
|
14
|
+
.graph-editor-spacing--mb-2 { margin-bottom: 0.5rem; }
|
|
15
|
+
.graph-editor-spacing--mb-3 { margin-bottom: 0.75rem; }
|
|
16
|
+
.graph-editor-spacing--mt-1 { margin-top: 0.25rem; }
|
|
17
|
+
.graph-editor-spacing--mt-2 { margin-top: 0.5rem; }
|
|
18
|
+
.graph-editor-spacing--mt-3 { margin-top: 0.75rem; }
|
|
19
|
+
.graph-editor-spacing--me-1 { margin-right: 0.25rem; }
|
|
20
|
+
.graph-editor-spacing--me-2 { margin-right: 0.5rem; }
|
|
21
|
+
.graph-editor-spacing--ms-1 { margin-left: 0.25rem; }
|
|
22
|
+
.graph-editor-spacing--ms-2 { margin-left: 0.5rem; }
|
|
23
|
+
.graph-editor-spacing--ms-auto { margin-left: auto; }
|
|
24
|
+
.graph-editor-spacing--gap-1 { gap: 0.25rem; }
|
|
25
|
+
.graph-editor-spacing--gap-2 { gap: 0.5rem; }
|
|
26
|
+
.graph-editor-spacing--m-0 { margin: 0; }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Background surface modifiers.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-surface--muted {
|
|
6
|
+
background: var(--graph-editor-panel-bg);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.graph-editor-surface--light {
|
|
10
|
+
background: var(--graph-editor-bg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.graph-editor-shadow--sm {
|
|
14
|
+
box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text utilities and monospace.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-text--semibold { font-weight: 600; }
|
|
6
|
+
.graph-editor-text--bold { font-weight: 700; }
|
|
7
|
+
.graph-editor-text--medium { font-weight: 500; }
|
|
8
|
+
.graph-editor-text--sm { font-size: 0.875rem; }
|
|
9
|
+
.graph-editor-text--md { font-size: 1rem; }
|
|
10
|
+
.graph-editor-text--xs { font-size: 0.75rem; }
|
|
11
|
+
.graph-editor-text--uppercase { text-transform: uppercase; }
|
|
12
|
+
.graph-editor-text--start { text-align: start; }
|
|
13
|
+
.graph-editor-text--end { text-align: end; }
|
|
14
|
+
.graph-editor-text--break { overflow-wrap: anywhere; }
|
|
15
|
+
.graph-editor-text--danger { color: var(--graph-editor-danger); }
|
|
16
|
+
|
|
17
|
+
.graph-editor-mono {
|
|
18
|
+
font-family: var(--bs-font-monospace, monospace);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.graph-editor-align-top {
|
|
22
|
+
vertical-align: top;
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card chrome for panels, inspector, and modals.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-card {
|
|
6
|
+
border: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
7
|
+
border-radius: var(--graph-editor-radius);
|
|
8
|
+
background: var(--graph-editor-bg);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.graph-editor-card__header {
|
|
12
|
+
padding: 0.5rem 0.75rem;
|
|
13
|
+
border-bottom: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
14
|
+
background: var(--graph-editor-panel-bg);
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.graph-editor-card__body {
|
|
19
|
+
padding: 0.75rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.graph-editor-card__footer {
|
|
23
|
+
padding: 0.5rem 0.75rem;
|
|
24
|
+
border-top: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.graph-editor-card__body--flush {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.graph-editor-card__header.graph-editor-flex--between,
|
|
32
|
+
.graph-editor-card__header.graph-editor-flex--row {
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.graph-editor-card__section {
|
|
37
|
+
padding: 0.75rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.graph-editor-card__section--border-top {
|
|
41
|
+
border-top: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
42
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context menus and dropdown menus (no toolbar Add icon hack).
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-context-menu,
|
|
6
|
+
.graph-editor-dropdown__menu {
|
|
7
|
+
min-width: 10rem;
|
|
8
|
+
padding: 0.25rem 0;
|
|
9
|
+
background: var(--graph-editor-bg);
|
|
10
|
+
border: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
11
|
+
border-radius: var(--graph-editor-radius);
|
|
12
|
+
box-shadow: var(--bs-box-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.graph-editor-context-menu {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.graph-editor-context-menu--fixed {
|
|
20
|
+
position: fixed;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.graph-editor-dropdown__item {
|
|
24
|
+
display: block;
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding: 0.25rem 1rem;
|
|
27
|
+
text-align: start;
|
|
28
|
+
border: 0;
|
|
29
|
+
background: transparent;
|
|
30
|
+
color: var(--graph-editor-text);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.graph-editor-dropdown__item:hover:not(:disabled) {
|
|
35
|
+
background: var(--graph-editor-panel-bg);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.graph-editor-dropdown__item--danger {
|
|
39
|
+
color: var(--graph-editor-danger);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.graph-editor-dropdown__divider {
|
|
43
|
+
margin: 0.25rem 0;
|
|
44
|
+
border: 0;
|
|
45
|
+
border-top: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.graph-editor-dropdown__menu--open {
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.graph-editor-dropdown {
|
|
53
|
+
position: relative;
|
|
54
|
+
display: inline-block;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.graph-editor-dropdown > summary {
|
|
58
|
+
list-style: none;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.graph-editor-dropdown > summary::-webkit-details-marker {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal overlay and dialog chrome.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-modal {
|
|
6
|
+
position: fixed;
|
|
7
|
+
inset: 0;
|
|
8
|
+
z-index: 1050;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
background: rgba(0, 0, 0, 0.5);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.graph-editor-modal__dialog {
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 520px;
|
|
18
|
+
margin: 1rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.graph-editor-modal__content {
|
|
22
|
+
background: var(--graph-editor-bg);
|
|
23
|
+
border: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
24
|
+
border-radius: var(--bs-border-radius-lg, 0.5rem);
|
|
25
|
+
box-shadow: var(--bs-box-shadow-lg, 0 1rem 3rem rgba(0, 0, 0, 0.175));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.graph-editor-modal__header,
|
|
29
|
+
.graph-editor-modal__footer {
|
|
30
|
+
padding: 0.75rem 1rem;
|
|
31
|
+
border-color: var(--graph-editor-border);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.graph-editor-modal__header {
|
|
35
|
+
border-bottom: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.graph-editor-modal__footer {
|
|
39
|
+
border-top: var(--graph-editor-border-width) solid var(--graph-editor-border);
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
gap: 0.5rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.graph-editor-modal__body {
|
|
46
|
+
padding: 1rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.graph-editor-modal__title {
|
|
50
|
+
margin: 0;
|
|
51
|
+
font-size: 1.125rem;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Info panel property table and panel utilities.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-table {
|
|
6
|
+
width: 100%;
|
|
7
|
+
border-collapse: collapse;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.graph-editor-table td {
|
|
11
|
+
padding: 0.5rem 0.75rem;
|
|
12
|
+
border-top: var(--graph-editor-border-width) solid var(--graph-editor-border-subtle);
|
|
13
|
+
vertical-align: top;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.graph-editor-table tbody tr:first-child td {
|
|
17
|
+
border-top: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.graph-editor-table tbody tr:nth-child(odd) {
|
|
21
|
+
background-color: var(--graph-editor-panel-bg);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.graph-editor-table tbody tr:nth-child(even) {
|
|
25
|
+
background-color: var(--graph-editor-bg);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.graph-editor-table tbody tr:hover {
|
|
29
|
+
background-color: var(
|
|
30
|
+
--bs-table-hover-bg,
|
|
31
|
+
color-mix(in srgb, var(--bs-emphasis-color, #000) 7.5%, var(--graph-editor-panel-bg))
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.graph-editor-table td:first-child {
|
|
36
|
+
width: 38%;
|
|
37
|
+
border-right: var(--graph-editor-border-width) solid var(--graph-editor-border-subtle);
|
|
38
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic list and canvas selection styling.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-list__item--selected,
|
|
6
|
+
.graph-editor-list__item-text--selected {
|
|
7
|
+
background: var(--bs-primary-bg-subtle) !important;
|
|
8
|
+
color: var(--bs-emphasis-color) !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.graph-editor-list__item--selected .graph-editor-muted,
|
|
12
|
+
.graph-editor-list__item--selected .graph-editor-badge {
|
|
13
|
+
color: var(--bs-emphasis-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.graph-editor-list__item--selected .graph-editor-btn:not(.graph-editor-btn--danger),
|
|
17
|
+
.graph-editor-list__item--selected p,
|
|
18
|
+
.graph-editor-list__item--selected small,
|
|
19
|
+
.graph-editor-list__item--selected span:not(.graph-editor-badge) {
|
|
20
|
+
color: var(--bs-emphasis-color) !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.graph-editor-canvas__selected,
|
|
24
|
+
.graph-editor-canvas-selected {
|
|
25
|
+
background: var(--bs-primary-bg-subtle) !important;
|
|
26
|
+
color: var(--bs-emphasis-color) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.graph-editor-canvas__selected .graph-editor-muted,
|
|
30
|
+
.graph-editor-canvas-selected .graph-editor-muted {
|
|
31
|
+
color: var(--bs-emphasis-color);
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.graph-editor-canvas-choice-selected,
|
|
36
|
+
.graph-editor-canvas__selected.graph-editor-choice-row {
|
|
37
|
+
background: var(--bs-primary-bg-subtle) !important;
|
|
38
|
+
color: var(--bs-emphasis-color) !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.graph-editor-canvas-choice-selected span:not(.badge) {
|
|
42
|
+
color: var(--bs-emphasis-color) !important;
|
|
43
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toolbar shell and toolbar-scoped buttons (no icon pseudo-element hacks).
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-root .graph-editor-toolbar {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 0.375rem;
|
|
10
|
+
padding: 0.5rem 0.75rem;
|
|
11
|
+
border-bottom: 1px solid var(--graph-editor-border);
|
|
12
|
+
background: var(--graph-editor-bg);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn,
|
|
16
|
+
.graph-editor-root .graph-editor-toolbar summary.graph-editor-btn {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
min-height: 2rem;
|
|
21
|
+
padding: 0.375rem 0.65rem;
|
|
22
|
+
border: 1px solid var(--graph-editor-border);
|
|
23
|
+
border-radius: var(--graph-editor-radius);
|
|
24
|
+
background: var(--graph-editor-bg);
|
|
25
|
+
color: var(--graph-editor-text);
|
|
26
|
+
font: inherit;
|
|
27
|
+
font-size: 0.875rem;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
line-height: 1.2;
|
|
30
|
+
text-transform: none;
|
|
31
|
+
letter-spacing: normal;
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
box-shadow: none;
|
|
35
|
+
appearance: none;
|
|
36
|
+
-webkit-appearance: none;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn:hover:not(:disabled):not(.graph-editor-btn--disabled),
|
|
41
|
+
.graph-editor-root .graph-editor-toolbar summary.graph-editor-btn:hover:not(.graph-editor-btn--disabled) {
|
|
42
|
+
background: var(--graph-editor-panel-bg);
|
|
43
|
+
border-color: var(--graph-editor-border);
|
|
44
|
+
color: var(--graph-editor-text);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn:disabled,
|
|
48
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn--disabled,
|
|
49
|
+
.graph-editor-root .graph-editor-toolbar summary.graph-editor-btn.graph-editor-btn--disabled {
|
|
50
|
+
opacity: 0.55;
|
|
51
|
+
background: var(--graph-editor-bg);
|
|
52
|
+
border-color: var(--graph-editor-border);
|
|
53
|
+
color: var(--graph-editor-muted);
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn--primary {
|
|
59
|
+
background: var(--graph-editor-accent);
|
|
60
|
+
border-color: var(--graph-editor-accent);
|
|
61
|
+
color: #fff;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn--primary:hover:not(:disabled):not(.graph-editor-btn--disabled) {
|
|
65
|
+
background: var(--graph-editor-accent);
|
|
66
|
+
border-color: var(--graph-editor-accent);
|
|
67
|
+
color: #fff;
|
|
68
|
+
filter: brightness(0.95);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn--success {
|
|
72
|
+
background: var(--graph-editor-success);
|
|
73
|
+
border-color: var(--graph-editor-success);
|
|
74
|
+
color: #fff;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-btn--success:hover:not(:disabled):not(.graph-editor-btn--disabled) {
|
|
78
|
+
background: var(--graph-editor-success);
|
|
79
|
+
border-color: var(--graph-editor-success);
|
|
80
|
+
color: #fff;
|
|
81
|
+
filter: brightness(0.95);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-dropdown {
|
|
85
|
+
position: relative;
|
|
86
|
+
display: inline-block;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-dropdown > summary {
|
|
90
|
+
list-style: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.graph-editor-root .graph-editor-toolbar .graph-editor-dropdown > summary::-webkit-details-marker {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.graph-editor-root .graph-editor-btn--neutral,
|
|
98
|
+
.graph-editor-root .graph-editor-btn--neutral-outline {
|
|
99
|
+
background-color: var(--graph-editor-bg);
|
|
100
|
+
border-color: var(--graph-editor-border);
|
|
101
|
+
color: var(--graph-editor-text);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.graph-editor-root .graph-editor-btn--neutral:hover:not(:disabled),
|
|
105
|
+
.graph-editor-root .graph-editor-btn--neutral-outline:hover:not(:disabled) {
|
|
106
|
+
background-color: var(--graph-editor-panel-bg);
|
|
107
|
+
border-color: var(--graph-editor-border);
|
|
108
|
+
color: var(--graph-editor-text);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.graph-editor-root .graph-editor-toolbar__text {
|
|
112
|
+
color: var(--graph-editor-muted);
|
|
113
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design tokens on .graph-editor-root — map to active Bootstrap/Bootswatch theme.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.graph-editor-root,
|
|
6
|
+
.graph-editor-toolbar {
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.graph-editor-root {
|
|
11
|
+
--graph-editor-bg: var(--bs-body-bg);
|
|
12
|
+
--graph-editor-text: var(--bs-body-color);
|
|
13
|
+
--graph-editor-muted: var(--bs-secondary-color);
|
|
14
|
+
--graph-editor-panel-bg: var(--bs-tertiary-bg);
|
|
15
|
+
--graph-editor-border: var(--bs-border-color);
|
|
16
|
+
--graph-editor-border-subtle: var(--bs-border-color-translucent);
|
|
17
|
+
--graph-editor-accent: var(--bs-primary);
|
|
18
|
+
--graph-editor-danger: var(--bs-danger);
|
|
19
|
+
--graph-editor-success: var(--bs-success);
|
|
20
|
+
--graph-editor-radius: var(--bs-border-radius);
|
|
21
|
+
--graph-editor-border-width: var(--bs-border-width);
|
|
22
|
+
--graph-editor-node-border-width: 4px;
|
|
23
|
+
--graph-editor-icon-size: 1.35rem;
|
|
24
|
+
--graph-editor-icon-button-size: 1.35rem;
|
|
25
|
+
|
|
26
|
+
font-family: var(--bs-body-font-family);
|
|
27
|
+
font-size: 1rem;
|
|
28
|
+
line-height: 1.5;
|
|
29
|
+
color: var(--graph-editor-text);
|
|
30
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @signalsafe/tree-spec-editor-theme-bootstrap
|
|
3
|
+
* Import after Bootstrap/Bootswatch so --bs-* variables resolve.
|
|
4
|
+
*/
|
|
5
|
+
@import './src/tokens.css';
|
|
6
|
+
@import './src/primitives/buttons.css';
|
|
7
|
+
@import './src/primitives/forms.css';
|
|
8
|
+
@import './src/primitives/lists.css';
|
|
9
|
+
@import './src/primitives/badges.css';
|
|
10
|
+
@import './src/primitives/typography.css';
|
|
11
|
+
@import './src/primitives/surfaces.css';
|
|
12
|
+
@import './src/primitives/spacing.css';
|
|
13
|
+
@import './src/primitives/flex.css';
|
|
14
|
+
@import './src/shell/toolbar.css';
|
|
15
|
+
@import './src/shell/cards.css';
|
|
16
|
+
@import './src/shell/modals.css';
|
|
17
|
+
@import './src/shell/panels.css';
|
|
18
|
+
@import './src/shell/dropdowns.css';
|
|
19
|
+
@import './src/shell/selection.css';
|