@gramlot/gramlot 0.3.10 → 0.3.15
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/dist/components/editors/__init__.py +13 -0
- package/dist/components/{editors.js → editors/assets/collection.js} +131 -246
- package/dist/components/editors/assets/index.js +2 -0
- package/dist/components/editors/commands.json +7 -0
- package/dist/components/editors/grammar.json +7045 -0
- package/dist/components/inputs/__init__.py +13 -0
- package/dist/components/{inputs.js → inputs/assets/collection.js} +287 -198
- package/dist/components/inputs/assets/index.js +2 -0
- package/dist/components/inputs/commands.json +7 -0
- package/dist/components/inputs/grammar.json +42881 -0
- package/dist/components/layout/__init__.py +13 -0
- package/dist/components/layout/assets/collection.js +25737 -0
- package/dist/components/layout/assets/index.js +2 -0
- package/dist/components/layout/commands.json +7 -0
- package/dist/components/layout/grammar.json +1798 -0
- package/dist/components/tree/__init__.py +13 -0
- package/dist/components/{tree.js → tree/assets/collection.js} +62 -175
- package/dist/components/tree/assets/index.js +2 -0
- package/dist/components/tree/commands.json +7 -0
- package/dist/components/tree/grammar.json +339 -0
- package/dist/components/typst/__init__.py +13 -0
- package/dist/components/typst/assets/collection.js +4 -0
- package/dist/components/typst/assets/index.js +2 -0
- package/dist/components/typst/commands.json +7 -0
- package/dist/components/typst/grammar.json +81 -0
- package/dist/gramlot.js +2491 -902
- package/dist/gramlot.min.js +109 -28
- package/dist/runtime-notices.json +0 -196
- package/package.json +1 -1
- package/src/binding/ask-dialog.js +1 -1
- package/src/binding/installation.js +5 -6
- package/src/binding/runtime.js +4 -2
- package/src/bootstrap.d.ts +1 -1
- package/src/bootstrap.js +52 -30
- package/src/builder/binding.json +25 -0
- package/src/builder/gramlot-builder.js +16 -3
- package/src/builder/source.js +33 -1
- package/src/collection-artifact.d.ts +11 -0
- package/src/collection-artifact.js +57 -0
- package/src/commands.d.ts +9 -0
- package/src/commands.js +36 -0
- package/src/components/bases.js +1 -1
- package/src/components/border-container.js +26 -1
- package/src/components/buttons.js +84 -161
- package/src/components/choice-editor.js +31 -10
- package/src/components/database-choices.js +110 -0
- package/src/components/inputs.js +15 -2
- package/src/components/layout.js +5 -3
- package/src/components/menus.js +346 -0
- package/src/components/popup.js +15 -2
- package/src/components/registry.js +18 -3
- package/src/components/toolbar-overflow.js +181 -0
- package/src/components/tree.js +14 -4
- package/src/components/windows.js +284 -0
- package/src/gramlot.d.ts +2 -0
- package/src/gramlot.js +4 -2
- package/src/handlers/rpc-handler.d.ts +6 -1
- package/src/handlers/rpc-handler.js +7 -2
- package/src/handlers/source-handler.d.ts +2 -1
- package/src/handlers/source-handler.js +10 -1
- package/src/index-page-styles.js +1 -1
- package/src/index-theme.js +1 -1
- package/src/index.d.ts +5 -0
- package/src/index.js +5 -0
- package/src/renderer/gramlot-html-renderer.js +1 -0
- package/src/renderer/gramlot-renderer.js +13 -3
- package/src/server/gramlot-file-server.d.ts +2 -0
- package/src/server/gramlot-file-server.js +45 -1
- package/src/server/gramlot-server.d.ts +20 -2
- package/src/server/gramlot-server.js +86 -6
- package/src/server/page-base.js +1 -0
- package/src/server/page.d.ts +3 -0
- package/src/view/button.js +47 -3
- package/src/view/controls.js +8 -0
- package/src/view/html.js +1 -0
- package/src/view/menu-command.js +45 -0
- package/src/view/menu.js +87 -0
- package/themes/gramlot-compact/README.md +19 -0
- package/themes/gramlot-compact/theme.css +138 -45
- package/themes/joanna/README.md +19 -0
- package/themes/joanna/theme.css +134 -78
- package/themes/mela/theme.css +184 -0
- package/themes/mimi/README.md +19 -0
- package/themes/mimi/theme.css +133 -77
- package/themes/palettes/README.md +3 -0
- package/themes/palettes/compact.css +86 -0
- package/themes/palettes/joanna.css +86 -0
- package/themes/palettes/mimi.css +86 -0
- package/tools/gramlot-tools-inspector.js +3 -3
- package/dist/components/layout.js +0 -3385
- package/dist/components/typst.js +0 -4
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* Mela: Apple-inspired desktop and touch appearance; load after Base and Compact. */
|
|
2
|
+
@layer gramlot.tokens {
|
|
3
|
+
:root {
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--gramlot-font-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
|
|
6
|
+
--gramlot-font-code: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
7
|
+
--gramlot-tree-hover-background: var(--gramlot-surface-subtle);
|
|
8
|
+
--gramlot-tree-selected-background: var(--gramlot-selected);
|
|
9
|
+
--gramlot-tree-selected-color: var(--gramlot-ink);
|
|
10
|
+
--gramlot-window-backdrop: rgb(0 0 0 / 24%);
|
|
11
|
+
--gramlot-background: #f5f5f7;
|
|
12
|
+
--gramlot-surface: #ffffff;
|
|
13
|
+
--gramlot-surface-subtle: #eaeaed;
|
|
14
|
+
--gramlot-ink: #1d1d1f;
|
|
15
|
+
--gramlot-text-secondary: #636366;
|
|
16
|
+
--gramlot-border: #d9d9de;
|
|
17
|
+
--gramlot-border-control: #b5b5bd;
|
|
18
|
+
--gramlot-action: #0066cc;
|
|
19
|
+
--gramlot-action-hover: #004c99;
|
|
20
|
+
--gramlot-selected: #dceaff;
|
|
21
|
+
--gramlot-field-background: #ffffff;
|
|
22
|
+
--gramlot-field-readonly-background: #eaeaed;
|
|
23
|
+
--gramlot-label-color: #636366;
|
|
24
|
+
--gramlot-focus-ring: #0066cc;
|
|
25
|
+
--gramlot-brand-blue: #0066cc;
|
|
26
|
+
--gramlot-brand-yellow: #0066cc;
|
|
27
|
+
--gramlot-navigation: #eaeaed;
|
|
28
|
+
--gramlot-navigation-text: #1d1d1f;
|
|
29
|
+
--gramlot-error: #b42318;
|
|
30
|
+
--gramlot-error-background: #fff0ee;
|
|
31
|
+
--gramlot-success: #20783d;
|
|
32
|
+
--gramlot-success-background: #eaf7ed;
|
|
33
|
+
--gramlot-warning: #805500;
|
|
34
|
+
--gramlot-warning-background: #fff5dc;
|
|
35
|
+
--gramlot-field-height: 28px;
|
|
36
|
+
--gramlot-field-padding: 3px 8px;
|
|
37
|
+
--gramlot-field-line-height: 1.3;
|
|
38
|
+
--gramlot-field-font-size: 1rem;
|
|
39
|
+
--gramlot-button-padding: 3px 9px;
|
|
40
|
+
--gramlot-button-gap: 4px;
|
|
41
|
+
--gramlot-button-background: var(--gramlot-surface);
|
|
42
|
+
--gramlot-button-hover: var(--gramlot-selected);
|
|
43
|
+
--gramlot-label-size: 1em;
|
|
44
|
+
--gramlot-label-gap: 4px;
|
|
45
|
+
--gramlot-radius-sm: 6px;
|
|
46
|
+
--gramlot-radius: 8px;
|
|
47
|
+
--gramlot-radius-lg: 10px;
|
|
48
|
+
--gramlot-window-radius: 12px;
|
|
49
|
+
--gramlot-toolbar-gap: 3px;
|
|
50
|
+
--gramlot-tree-row-height: var(--gramlot-field-height);
|
|
51
|
+
--gramlot-space-1: 3px;
|
|
52
|
+
--gramlot-space-2: 4px;
|
|
53
|
+
--gramlot-space-3: 8px;
|
|
54
|
+
--gramlot-space-4: 12px;
|
|
55
|
+
--gramlot-space-6: 16px;
|
|
56
|
+
--gramlot-space-8: 20px;
|
|
57
|
+
--gramlot-space-12: 28px;
|
|
58
|
+
--gramlot-tab-height: 28px;
|
|
59
|
+
--gramlot-tab-padding: 3px 10px;
|
|
60
|
+
--gramlot-tab-radius: 6px;
|
|
61
|
+
--gramlot-tab-gap: 3px;
|
|
62
|
+
--gramlot-tab-strip-padding: 3px;
|
|
63
|
+
--gramlot-tab-background: var(--gramlot-surface-subtle);
|
|
64
|
+
--gramlot-tab-selected-background: var(--gramlot-surface);
|
|
65
|
+
--gramlot-tab-selected-color: var(--gramlot-action);
|
|
66
|
+
--gramlot-tab-border: var(--gramlot-border);
|
|
67
|
+
--gramlot-shadow: 0 8px 28px rgb(0 0 0 / 16%);
|
|
68
|
+
}
|
|
69
|
+
@media (prefers-color-scheme: dark) {
|
|
70
|
+
:root:not([data-theme="light"]) {
|
|
71
|
+
color-scheme: dark;
|
|
72
|
+
--gramlot-background: #1c1c1e;
|
|
73
|
+
--gramlot-surface: #2c2c2e;
|
|
74
|
+
--gramlot-surface-subtle: #38383a;
|
|
75
|
+
--gramlot-ink: #f5f5f7;
|
|
76
|
+
--gramlot-text-secondary: #bdbdc4;
|
|
77
|
+
--gramlot-border: #48484c;
|
|
78
|
+
--gramlot-border-control: #74747c;
|
|
79
|
+
--gramlot-action: #70b7ff;
|
|
80
|
+
--gramlot-action-hover: #abd5ff;
|
|
81
|
+
--gramlot-selected: #27476d;
|
|
82
|
+
--gramlot-field-background: #2c2c2e;
|
|
83
|
+
--gramlot-field-readonly-background: #38383a;
|
|
84
|
+
--gramlot-label-color: #bdbdc4;
|
|
85
|
+
--gramlot-focus-ring: #70b7ff;
|
|
86
|
+
--gramlot-brand-blue: #70b7ff;
|
|
87
|
+
--gramlot-brand-yellow: #70b7ff;
|
|
88
|
+
--gramlot-navigation: #1c1c1e;
|
|
89
|
+
--gramlot-navigation-text: #f5f5f7;
|
|
90
|
+
--gramlot-error: #ffb4ab;
|
|
91
|
+
--gramlot-error-background: #492926;
|
|
92
|
+
--gramlot-success: #8ddb9d;
|
|
93
|
+
--gramlot-success-background: #263e2c;
|
|
94
|
+
--gramlot-warning: #f5d581;
|
|
95
|
+
--gramlot-warning-background: #433a26;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
:root[data-theme="dark"] {
|
|
99
|
+
color-scheme: dark;
|
|
100
|
+
--gramlot-background: #1c1c1e;
|
|
101
|
+
--gramlot-surface: #2c2c2e;
|
|
102
|
+
--gramlot-surface-subtle: #38383a;
|
|
103
|
+
--gramlot-ink: #f5f5f7;
|
|
104
|
+
--gramlot-text-secondary: #bdbdc4;
|
|
105
|
+
--gramlot-border: #48484c;
|
|
106
|
+
--gramlot-border-control: #74747c;
|
|
107
|
+
--gramlot-action: #70b7ff;
|
|
108
|
+
--gramlot-action-hover: #abd5ff;
|
|
109
|
+
--gramlot-selected: #27476d;
|
|
110
|
+
--gramlot-field-background: #2c2c2e;
|
|
111
|
+
--gramlot-field-readonly-background: #38383a;
|
|
112
|
+
--gramlot-label-color: #bdbdc4;
|
|
113
|
+
--gramlot-focus-ring: #70b7ff;
|
|
114
|
+
--gramlot-brand-blue: #70b7ff;
|
|
115
|
+
--gramlot-brand-yellow: #70b7ff;
|
|
116
|
+
--gramlot-navigation: #1c1c1e;
|
|
117
|
+
--gramlot-navigation-text: #f5f5f7;
|
|
118
|
+
--gramlot-error: #ffb4ab;
|
|
119
|
+
--gramlot-error-background: #492926;
|
|
120
|
+
--gramlot-success: #8ddb9d;
|
|
121
|
+
--gramlot-success-background: #263e2c;
|
|
122
|
+
--gramlot-warning: #f5d581;
|
|
123
|
+
--gramlot-warning-background: #433a26;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
@layer gramlot.base {
|
|
127
|
+
html { font-size: 13px; }
|
|
128
|
+
body { line-height: 1.4; }
|
|
129
|
+
:where(h1,h2,h3,h4,h5,h6,p,ul,ol,dl,blockquote,pre,figure) { margin-block: 0 var(--gramlot-space-3); }
|
|
130
|
+
h1 { font-size: 1.4rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
|
|
131
|
+
:where(h1,h2,h3) { letter-spacing: -.015em; }
|
|
132
|
+
pre { padding: var(--gramlot-space-3); }
|
|
133
|
+
hr { margin-block: var(--gramlot-space-6); }
|
|
134
|
+
}
|
|
135
|
+
@layer gramlot.components {
|
|
136
|
+
:where(button,input[type="button"],input[type="submit"],input[type="reset"],.button) {
|
|
137
|
+
min-block-size: var(--gramlot-field-height); padding: var(--gramlot-button-padding);
|
|
138
|
+
font-size: 1rem; line-height: 1.3; font-weight: 500;
|
|
139
|
+
background: var(--gramlot-button-background); color: var(--gramlot-ink); border-color: var(--gramlot-border-control);
|
|
140
|
+
}
|
|
141
|
+
:where(button,input[type="button"],input[type="submit"],input[type="reset"],.button):hover:not(:disabled) {
|
|
142
|
+
background: var(--gramlot-selected); color: var(--gramlot-action-hover); border-color: var(--gramlot-action);
|
|
143
|
+
}
|
|
144
|
+
:where(label) { font-size: 1em; font-weight: 400; color: var(--gramlot-label-color); margin-block-end: var(--gramlot-label-gap); }
|
|
145
|
+
:where(input[readonly],textarea[readonly]) { background: var(--gramlot-field-readonly-background); }
|
|
146
|
+
:where(.button--quiet,button.quiet) { background: transparent; color: var(--gramlot-action); border-color: transparent; }
|
|
147
|
+
:where(.button--quiet,button.quiet):hover:not(:disabled) { background: var(--gramlot-selected); border-color: transparent; }
|
|
148
|
+
:where(textarea) { min-block-size: 4.5rem; }
|
|
149
|
+
:where(input[type="color"]) { min-block-size: var(--gramlot-field-height); }
|
|
150
|
+
:where(input[type="file"])::file-selector-button { padding: var(--gramlot-field-padding); }
|
|
151
|
+
:where(fieldset,details) { padding: var(--gramlot-space-3); margin-block-end: var(--gramlot-space-3); }
|
|
152
|
+
:where(table) { font-size: 1rem; }
|
|
153
|
+
:where(th,td) { padding: var(--gramlot-field-padding); height: var(--gramlot-field-height); vertical-align: middle; }
|
|
154
|
+
:where(details[open]>summary) { margin-block-end: var(--gramlot-space-3); }
|
|
155
|
+
:where(dialog) { padding: var(--gramlot-space-4); }
|
|
156
|
+
}
|
|
157
|
+
@layer gramlot.utilities {
|
|
158
|
+
.example-page { inline-size: min(100% - 2 * var(--gramlot-space-4),var(--gramlot-page-width)); padding-block: var(--gramlot-space-4); }
|
|
159
|
+
.card { padding: var(--gramlot-space-4); box-shadow: none; }
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Responsive density changes appearance only; Source owns layout and modality. */
|
|
163
|
+
@layer gramlot.tokens {
|
|
164
|
+
@media (max-width: 640px), (pointer: coarse) {
|
|
165
|
+
:root {
|
|
166
|
+
--gramlot-field-height: 44px;
|
|
167
|
+
--gramlot-touch-target: 44px;
|
|
168
|
+
--gramlot-field-font-size: 16px;
|
|
169
|
+
--gramlot-field-padding: 8px 12px;
|
|
170
|
+
--gramlot-button-padding: 8px 12px;
|
|
171
|
+
--gramlot-tab-height: 44px;
|
|
172
|
+
--gramlot-radius-sm: 9px;
|
|
173
|
+
--gramlot-radius: 12px;
|
|
174
|
+
--gramlot-radius-lg: 14px;
|
|
175
|
+
--gramlot-window-radius: 16px;
|
|
176
|
+
--gramlot-space-4: 16px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
@layer gramlot.base {
|
|
181
|
+
@media (max-width: 640px), (pointer: coarse) {
|
|
182
|
+
html { font-size: 16px; }
|
|
183
|
+
}
|
|
184
|
+
}
|
package/themes/mimi/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# Mimi
|
|
2
|
+
|
|
3
|
+
Professional desktop profile, revised at the owner's request on 2026-10-23.
|
|
4
|
+
Dense data work, restrained green accent. Controls are 24px high; body and field text are 12.5px. Light and dark
|
|
5
|
+
palettes use the same semantic roles. Existing touch targets remain larger.
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
class Page(BasePage):
|
|
9
|
+
css = ("/themes/gramlot-compact/theme.css", "/themes/mimi/theme.css")
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The server loads Base first. The gallery's existing appearance selector uses the
|
|
13
|
+
same canonical stylesheet. Inputs, command buttons, menus, tabs and window chrome
|
|
14
|
+
share existing field/button/spacing/radius tokens. Fixed Source dimensions still
|
|
15
|
+
win; use semantic spacing variables when a page should follow profile density.
|
|
16
|
+
These revised aesthetics are a development preview awaiting owner feedback.
|
|
17
|
+
|
|
18
|
+
## Historical record — before the 2026-10-23 aesthetic revision
|
|
19
|
+
|
|
1
20
|
# mimi
|
|
2
21
|
|
|
3
22
|
A Gramlot interpretation of GenroPy's `mimi` theme. The light palette
|
package/themes/mimi/theme.css
CHANGED
|
@@ -1,98 +1,154 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* mimi: professional density profile; load after Base and Compact. */
|
|
2
2
|
@layer gramlot.tokens {
|
|
3
3
|
:root {
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--gramlot-background: #edf1ef;
|
|
6
|
+
--gramlot-surface: #fbfcfb;
|
|
7
|
+
--gramlot-surface-subtle: #e2e9e5;
|
|
8
|
+
--gramlot-ink: #24332e;
|
|
9
|
+
--gramlot-text-secondary: #52655d;
|
|
10
|
+
--gramlot-border: #c4d0c9;
|
|
11
|
+
--gramlot-border-control: #768a7e;
|
|
12
|
+
--gramlot-action: #176b61;
|
|
13
|
+
--gramlot-action-hover: #105247;
|
|
14
|
+
--gramlot-selected: #dceee8;
|
|
15
|
+
--gramlot-field-background: #fbfcfb;
|
|
16
|
+
--gramlot-field-readonly-background: #e2e9e5;
|
|
17
|
+
--gramlot-label-color: #52655d;
|
|
18
|
+
--gramlot-focus-ring: #176b61;
|
|
19
|
+
--gramlot-brand-blue: #176b61;
|
|
20
|
+
--gramlot-brand-yellow: #176b61;
|
|
21
|
+
--gramlot-navigation: #24332e;
|
|
22
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
23
|
+
--gramlot-error: #aa2637;
|
|
24
|
+
--gramlot-error-background: #fff0f1;
|
|
25
|
+
--gramlot-success: #236747;
|
|
26
|
+
--gramlot-success-background: #e9f4ec;
|
|
27
|
+
--gramlot-warning: #735313;
|
|
28
|
+
--gramlot-warning-background: #fff5da;
|
|
29
|
+
--gramlot-field-height: 24px;
|
|
30
|
+
--gramlot-field-padding: 1px 5px;
|
|
31
|
+
--gramlot-field-line-height: 1.3;
|
|
32
|
+
--gramlot-field-font-size: 1rem;
|
|
33
|
+
--gramlot-button-padding: 1px 5px;
|
|
34
|
+
--gramlot-button-gap: 4px;
|
|
35
|
+
--gramlot-button-background: var(--gramlot-surface);
|
|
36
|
+
--gramlot-button-hover: var(--gramlot-selected);
|
|
37
|
+
--gramlot-label-size: 1em;
|
|
38
|
+
--gramlot-label-gap: 3px;
|
|
39
|
+
--gramlot-radius-sm: 3px;
|
|
40
|
+
--gramlot-radius: 3px;
|
|
41
|
+
--gramlot-radius-lg: 5px;
|
|
42
|
+
--gramlot-window-radius: 5px;
|
|
43
|
+
--gramlot-toolbar-gap: 2px;
|
|
44
|
+
--gramlot-tree-row-height: var(--gramlot-field-height);
|
|
45
|
+
--gramlot-space-1: 3px;
|
|
46
|
+
--gramlot-space-2: 3px;
|
|
47
|
+
--gramlot-space-3: 6px;
|
|
48
|
+
--gramlot-space-4: 6px;
|
|
49
|
+
--gramlot-space-6: 9px;
|
|
50
|
+
--gramlot-space-8: 12px;
|
|
51
|
+
--gramlot-space-12: 18px;
|
|
4
52
|
--gramlot-tab-height: 24px;
|
|
5
|
-
--gramlot-tab-padding:
|
|
53
|
+
--gramlot-tab-padding: 1px 5px;
|
|
6
54
|
--gramlot-tab-radius: 3px;
|
|
7
55
|
--gramlot-tab-gap: 2px;
|
|
8
|
-
--gramlot-tab-strip-padding:
|
|
9
|
-
--gramlot-tab-background: var(--gramlot-
|
|
56
|
+
--gramlot-tab-strip-padding: 2px;
|
|
57
|
+
--gramlot-tab-background: var(--gramlot-surface-subtle);
|
|
10
58
|
--gramlot-tab-selected-background: var(--gramlot-surface);
|
|
11
|
-
--gramlot-tab-selected-color: var(--gramlot-
|
|
59
|
+
--gramlot-tab-selected-color: var(--gramlot-action);
|
|
12
60
|
--gramlot-tab-border: var(--gramlot-border);
|
|
13
|
-
--gramlot-
|
|
14
|
-
--gramlot-surface: #F5F5F6;
|
|
15
|
-
--gramlot-surface-subtle: #E0E1E3;
|
|
16
|
-
--gramlot-ink: #3C3D40;
|
|
17
|
-
--gramlot-text-secondary: #6B6E72;
|
|
18
|
-
--gramlot-border: #BDBFC2;
|
|
19
|
-
--gramlot-border-control: #9EA0A3;
|
|
20
|
-
--gramlot-navigation: #48494C;
|
|
21
|
-
--gramlot-navigation-text: #FFFFFF;
|
|
22
|
-
--gramlot-action: #0071E3;
|
|
23
|
-
--gramlot-action-hover: #005BBB;
|
|
24
|
-
--gramlot-brand-blue: #0071E3;
|
|
25
|
-
--gramlot-brand-yellow: #9EA0A3;
|
|
26
|
-
--gramlot-selected: #E8F1FC;
|
|
27
|
-
--gramlot-focus-ring: #0071E3;
|
|
28
|
-
--gramlot-field-background: #FFFFFF;
|
|
29
|
-
--gramlot-field-readonly-background: #E0E1E3;
|
|
30
|
-
--gramlot-error: #B3261E;
|
|
31
|
-
--gramlot-error-background: #FFF1F0;
|
|
32
|
-
--gramlot-shadow: 0 1px 4px rgb(0 0 0 / 6%);
|
|
33
|
-
--gramlot-radius-sm: 4px;
|
|
34
|
-
--gramlot-radius: 3px;
|
|
35
|
-
--gramlot-radius-lg: 3px;
|
|
36
|
-
--gramlot-field-height: 18px;
|
|
37
|
-
--gramlot-field-padding: 1px 3px;
|
|
38
|
-
--gramlot-field-line-height: 1.15;
|
|
39
|
-
--gramlot-field-font-size: 1rem;
|
|
40
|
-
--gramlot-label-size: .9em;
|
|
41
|
-
--gramlot-label-gap: 2px;
|
|
42
|
-
--gramlot-label-color: var(--gramlot-text-secondary);
|
|
43
|
-
--gramlot-space-4: 6px;
|
|
44
|
-
--gramlot-font-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
|
|
61
|
+
--gramlot-shadow: 0 2px 8px rgb(0 0 0 / 10%);
|
|
45
62
|
}
|
|
46
63
|
@media (prefers-color-scheme: dark) {
|
|
47
64
|
:root:not([data-theme="light"]) {
|
|
48
|
-
|
|
49
|
-
--gramlot-
|
|
50
|
-
--gramlot-surface
|
|
51
|
-
--gramlot-
|
|
52
|
-
--gramlot-
|
|
53
|
-
--gramlot-
|
|
54
|
-
--gramlot-border
|
|
55
|
-
--gramlot-
|
|
56
|
-
--gramlot-action: #
|
|
57
|
-
--gramlot-action-hover: #
|
|
58
|
-
--gramlot-
|
|
59
|
-
--gramlot-
|
|
60
|
-
--gramlot-
|
|
61
|
-
--gramlot-
|
|
62
|
-
--gramlot-
|
|
63
|
-
--gramlot-
|
|
64
|
-
--gramlot-
|
|
65
|
-
--gramlot-
|
|
65
|
+
color-scheme: dark;
|
|
66
|
+
--gramlot-background: #17201d;
|
|
67
|
+
--gramlot-surface: #202c27;
|
|
68
|
+
--gramlot-surface-subtle: #2a3932;
|
|
69
|
+
--gramlot-ink: #ebf3ee;
|
|
70
|
+
--gramlot-text-secondary: #b6c9be;
|
|
71
|
+
--gramlot-border: #40594a;
|
|
72
|
+
--gramlot-border-control: #7c9987;
|
|
73
|
+
--gramlot-action: #8ad8c4;
|
|
74
|
+
--gramlot-action-hover: #b0eadc;
|
|
75
|
+
--gramlot-selected: #2d4c40;
|
|
76
|
+
--gramlot-field-background: #202c27;
|
|
77
|
+
--gramlot-field-readonly-background: #2a3932;
|
|
78
|
+
--gramlot-label-color: #b6c9be;
|
|
79
|
+
--gramlot-focus-ring: #8ad8c4;
|
|
80
|
+
--gramlot-brand-blue: #8ad8c4;
|
|
81
|
+
--gramlot-brand-yellow: #8ad8c4;
|
|
82
|
+
--gramlot-navigation: #17201d;
|
|
83
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
84
|
+
--gramlot-error: #ffb4b4;
|
|
85
|
+
--gramlot-error-background: #48292f;
|
|
86
|
+
--gramlot-success: #98dfbd;
|
|
87
|
+
--gramlot-success-background: #243f32;
|
|
88
|
+
--gramlot-warning: #f3d58c;
|
|
89
|
+
--gramlot-warning-background: #413820;
|
|
66
90
|
}
|
|
67
91
|
}
|
|
68
92
|
:root[data-theme="dark"] {
|
|
69
|
-
|
|
70
|
-
--gramlot-
|
|
71
|
-
--gramlot-surface
|
|
72
|
-
--gramlot-
|
|
73
|
-
--gramlot-
|
|
74
|
-
--gramlot-
|
|
75
|
-
--gramlot-border
|
|
76
|
-
--gramlot-
|
|
77
|
-
--gramlot-action: #
|
|
78
|
-
--gramlot-action-hover: #
|
|
79
|
-
--gramlot-
|
|
80
|
-
--gramlot-
|
|
81
|
-
--gramlot-
|
|
82
|
-
--gramlot-
|
|
83
|
-
--gramlot-
|
|
84
|
-
--gramlot-
|
|
85
|
-
--gramlot-
|
|
86
|
-
--gramlot-
|
|
93
|
+
color-scheme: dark;
|
|
94
|
+
--gramlot-background: #17201d;
|
|
95
|
+
--gramlot-surface: #202c27;
|
|
96
|
+
--gramlot-surface-subtle: #2a3932;
|
|
97
|
+
--gramlot-ink: #ebf3ee;
|
|
98
|
+
--gramlot-text-secondary: #b6c9be;
|
|
99
|
+
--gramlot-border: #40594a;
|
|
100
|
+
--gramlot-border-control: #7c9987;
|
|
101
|
+
--gramlot-action: #8ad8c4;
|
|
102
|
+
--gramlot-action-hover: #b0eadc;
|
|
103
|
+
--gramlot-selected: #2d4c40;
|
|
104
|
+
--gramlot-field-background: #202c27;
|
|
105
|
+
--gramlot-field-readonly-background: #2a3932;
|
|
106
|
+
--gramlot-label-color: #b6c9be;
|
|
107
|
+
--gramlot-focus-ring: #8ad8c4;
|
|
108
|
+
--gramlot-brand-blue: #8ad8c4;
|
|
109
|
+
--gramlot-brand-yellow: #8ad8c4;
|
|
110
|
+
--gramlot-navigation: #17201d;
|
|
111
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
112
|
+
--gramlot-error: #ffb4b4;
|
|
113
|
+
--gramlot-error-background: #48292f;
|
|
114
|
+
--gramlot-success: #98dfbd;
|
|
115
|
+
--gramlot-success-background: #243f32;
|
|
116
|
+
--gramlot-warning: #f3d58c;
|
|
117
|
+
--gramlot-warning-background: #413820;
|
|
87
118
|
}
|
|
88
119
|
}
|
|
89
120
|
@layer gramlot.base {
|
|
90
|
-
html { font-size:
|
|
121
|
+
html { font-size: 12.5px; }
|
|
122
|
+
body { line-height: 1.4; }
|
|
123
|
+
:where(h1,h2,h3,h4,h5,h6,p,ul,ol,dl,blockquote,pre,figure) { margin-block: 0 var(--gramlot-space-3); }
|
|
124
|
+
h1 { font-size: 1.4rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
|
|
125
|
+
:where(h1,h2,h3) { letter-spacing: -.015em; }
|
|
126
|
+
pre { padding: var(--gramlot-space-3); }
|
|
127
|
+
hr { margin-block: var(--gramlot-space-6); }
|
|
91
128
|
}
|
|
92
129
|
@layer gramlot.components {
|
|
93
|
-
:where(
|
|
94
|
-
|
|
130
|
+
:where(button,input[type="button"],input[type="submit"],input[type="reset"],.button) {
|
|
131
|
+
min-block-size: var(--gramlot-field-height); padding: var(--gramlot-button-padding);
|
|
132
|
+
font-size: 1rem; line-height: 1.3; font-weight: 500;
|
|
133
|
+
background: var(--gramlot-button-background); color: var(--gramlot-ink); border-color: var(--gramlot-border-control);
|
|
134
|
+
}
|
|
135
|
+
:where(button,input[type="button"],input[type="submit"],input[type="reset"],.button):hover:not(:disabled) {
|
|
136
|
+
background: var(--gramlot-selected); color: var(--gramlot-action-hover); border-color: var(--gramlot-action);
|
|
137
|
+
}
|
|
138
|
+
:where(label) { font-size: 1em; font-weight: 400; color: var(--gramlot-label-color); margin-block-end: var(--gramlot-label-gap); }
|
|
139
|
+
:where(input[readonly],textarea[readonly]) { background: var(--gramlot-field-readonly-background); }
|
|
140
|
+
:where(.button--quiet,button.quiet) { background: transparent; color: var(--gramlot-action); border-color: transparent; }
|
|
141
|
+
:where(.button--quiet,button.quiet):hover:not(:disabled) { background: var(--gramlot-selected); border-color: transparent; }
|
|
142
|
+
:where(textarea) { min-block-size: 4.5rem; }
|
|
143
|
+
:where(input[type="color"]) { min-block-size: var(--gramlot-field-height); }
|
|
144
|
+
:where(input[type="file"])::file-selector-button { padding: var(--gramlot-field-padding); }
|
|
145
|
+
:where(fieldset,details) { padding: var(--gramlot-space-3); margin-block-end: var(--gramlot-space-3); }
|
|
146
|
+
:where(table) { font-size: 1rem; }
|
|
147
|
+
:where(th,td) { padding: var(--gramlot-field-padding); height: var(--gramlot-field-height); vertical-align: middle; }
|
|
148
|
+
:where(details[open]>summary) { margin-block-end: var(--gramlot-space-3); }
|
|
149
|
+
:where(dialog) { padding: var(--gramlot-space-4); }
|
|
95
150
|
}
|
|
96
151
|
@layer gramlot.utilities {
|
|
97
|
-
.
|
|
152
|
+
.example-page { inline-size: min(100% - 2 * var(--gramlot-space-4),var(--gramlot-page-width)); padding-block: var(--gramlot-space-4); }
|
|
153
|
+
.card { padding: var(--gramlot-space-4); box-shadow: none; }
|
|
98
154
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Independent color combinations
|
|
2
|
+
|
|
3
|
+
Load one color-only stylesheet after the appearance profile. `compact.css` is blue and slate, `mimi.css` sage and green, and `joanna.css` warm gray and blue. Each supports explicit light/dark mode and the system preference. No file changes spacing, typography, radii or control sizes. Gallery Settings applies and remembers the override independently of its theme; Theme default removes the override. These combinations are provisional.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* Color-only override: load after the chosen appearance profile. */
|
|
2
|
+
@layer gramlot.tokens {
|
|
3
|
+
:root {
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--gramlot-background: #f3f5f7;
|
|
6
|
+
--gramlot-surface: #ffffff;
|
|
7
|
+
--gramlot-surface-subtle: #e9edf2;
|
|
8
|
+
--gramlot-ink: #202936;
|
|
9
|
+
--gramlot-text-secondary: #526174;
|
|
10
|
+
--gramlot-border: #ccd3dc;
|
|
11
|
+
--gramlot-border-control: #7b899b;
|
|
12
|
+
--gramlot-action: #235db2;
|
|
13
|
+
--gramlot-action-hover: #194987;
|
|
14
|
+
--gramlot-selected: #e3edfb;
|
|
15
|
+
--gramlot-field-background: #ffffff;
|
|
16
|
+
--gramlot-field-readonly-background: #e9edf2;
|
|
17
|
+
--gramlot-label-color: #526174;
|
|
18
|
+
--gramlot-focus-ring: #235db2;
|
|
19
|
+
--gramlot-brand-blue: #235db2;
|
|
20
|
+
--gramlot-brand-yellow: #235db2;
|
|
21
|
+
--gramlot-navigation: #202936;
|
|
22
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
23
|
+
--gramlot-error: #aa2637;
|
|
24
|
+
--gramlot-error-background: #fff0f1;
|
|
25
|
+
--gramlot-success: #236747;
|
|
26
|
+
--gramlot-success-background: #e9f4ec;
|
|
27
|
+
--gramlot-warning: #735313;
|
|
28
|
+
--gramlot-warning-background: #fff5da;
|
|
29
|
+
}
|
|
30
|
+
@media (prefers-color-scheme: dark) {
|
|
31
|
+
:root:not([data-theme="light"]) {
|
|
32
|
+
color-scheme: dark;
|
|
33
|
+
--gramlot-background: #171c24;
|
|
34
|
+
--gramlot-surface: #222a35;
|
|
35
|
+
--gramlot-surface-subtle: #2b3543;
|
|
36
|
+
--gramlot-ink: #edf1f7;
|
|
37
|
+
--gramlot-text-secondary: #b8c4d4;
|
|
38
|
+
--gramlot-border: #435064;
|
|
39
|
+
--gramlot-border-control: #7f90a7;
|
|
40
|
+
--gramlot-action: #9dbff4;
|
|
41
|
+
--gramlot-action-hover: #c1d6ff;
|
|
42
|
+
--gramlot-selected: #314766;
|
|
43
|
+
--gramlot-field-background: #222a35;
|
|
44
|
+
--gramlot-field-readonly-background: #2b3543;
|
|
45
|
+
--gramlot-label-color: #b8c4d4;
|
|
46
|
+
--gramlot-focus-ring: #9dbff4;
|
|
47
|
+
--gramlot-brand-blue: #9dbff4;
|
|
48
|
+
--gramlot-brand-yellow: #9dbff4;
|
|
49
|
+
--gramlot-navigation: #171c24;
|
|
50
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
51
|
+
--gramlot-error: #ffb4b4;
|
|
52
|
+
--gramlot-error-background: #48292f;
|
|
53
|
+
--gramlot-success: #98dfbd;
|
|
54
|
+
--gramlot-success-background: #243f32;
|
|
55
|
+
--gramlot-warning: #f3d58c;
|
|
56
|
+
--gramlot-warning-background: #413820;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
:root[data-theme="dark"] {
|
|
60
|
+
color-scheme: dark;
|
|
61
|
+
--gramlot-background: #171c24;
|
|
62
|
+
--gramlot-surface: #222a35;
|
|
63
|
+
--gramlot-surface-subtle: #2b3543;
|
|
64
|
+
--gramlot-ink: #edf1f7;
|
|
65
|
+
--gramlot-text-secondary: #b8c4d4;
|
|
66
|
+
--gramlot-border: #435064;
|
|
67
|
+
--gramlot-border-control: #7f90a7;
|
|
68
|
+
--gramlot-action: #9dbff4;
|
|
69
|
+
--gramlot-action-hover: #c1d6ff;
|
|
70
|
+
--gramlot-selected: #314766;
|
|
71
|
+
--gramlot-field-background: #222a35;
|
|
72
|
+
--gramlot-field-readonly-background: #2b3543;
|
|
73
|
+
--gramlot-label-color: #b8c4d4;
|
|
74
|
+
--gramlot-focus-ring: #9dbff4;
|
|
75
|
+
--gramlot-brand-blue: #9dbff4;
|
|
76
|
+
--gramlot-brand-yellow: #9dbff4;
|
|
77
|
+
--gramlot-navigation: #171c24;
|
|
78
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
79
|
+
--gramlot-error: #ffb4b4;
|
|
80
|
+
--gramlot-error-background: #48292f;
|
|
81
|
+
--gramlot-success: #98dfbd;
|
|
82
|
+
--gramlot-success-background: #243f32;
|
|
83
|
+
--gramlot-warning: #f3d58c;
|
|
84
|
+
--gramlot-warning-background: #413820;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* Color-only override: load after the chosen appearance profile. */
|
|
2
|
+
@layer gramlot.tokens {
|
|
3
|
+
:root {
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--gramlot-background: #f5f4f2;
|
|
6
|
+
--gramlot-surface: #ffffff;
|
|
7
|
+
--gramlot-surface-subtle: #eeece8;
|
|
8
|
+
--gramlot-ink: #292c31;
|
|
9
|
+
--gramlot-text-secondary: #5d636c;
|
|
10
|
+
--gramlot-border: #d5d2cc;
|
|
11
|
+
--gramlot-border-control: #858990;
|
|
12
|
+
--gramlot-action: #245fb4;
|
|
13
|
+
--gramlot-action-hover: #194880;
|
|
14
|
+
--gramlot-selected: #e6eef9;
|
|
15
|
+
--gramlot-field-background: #ffffff;
|
|
16
|
+
--gramlot-field-readonly-background: #eeece8;
|
|
17
|
+
--gramlot-label-color: #5d636c;
|
|
18
|
+
--gramlot-focus-ring: #245fb4;
|
|
19
|
+
--gramlot-brand-blue: #245fb4;
|
|
20
|
+
--gramlot-brand-yellow: #245fb4;
|
|
21
|
+
--gramlot-navigation: #292c31;
|
|
22
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
23
|
+
--gramlot-error: #aa2637;
|
|
24
|
+
--gramlot-error-background: #fff0f1;
|
|
25
|
+
--gramlot-success: #236747;
|
|
26
|
+
--gramlot-success-background: #e9f4ec;
|
|
27
|
+
--gramlot-warning: #735313;
|
|
28
|
+
--gramlot-warning-background: #fff5da;
|
|
29
|
+
}
|
|
30
|
+
@media (prefers-color-scheme: dark) {
|
|
31
|
+
:root:not([data-theme="light"]) {
|
|
32
|
+
color-scheme: dark;
|
|
33
|
+
--gramlot-background: #1b1c20;
|
|
34
|
+
--gramlot-surface: #25272c;
|
|
35
|
+
--gramlot-surface-subtle: #303239;
|
|
36
|
+
--gramlot-ink: #f3f2ef;
|
|
37
|
+
--gramlot-text-secondary: #c4c3c0;
|
|
38
|
+
--gramlot-border: #454951;
|
|
39
|
+
--gramlot-border-control: #858c99;
|
|
40
|
+
--gramlot-action: #abcbff;
|
|
41
|
+
--gramlot-action-hover: #cedfff;
|
|
42
|
+
--gramlot-selected: #324765;
|
|
43
|
+
--gramlot-field-background: #25272c;
|
|
44
|
+
--gramlot-field-readonly-background: #303239;
|
|
45
|
+
--gramlot-label-color: #c4c3c0;
|
|
46
|
+
--gramlot-focus-ring: #abcbff;
|
|
47
|
+
--gramlot-brand-blue: #abcbff;
|
|
48
|
+
--gramlot-brand-yellow: #abcbff;
|
|
49
|
+
--gramlot-navigation: #1b1c20;
|
|
50
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
51
|
+
--gramlot-error: #ffb4b4;
|
|
52
|
+
--gramlot-error-background: #48292f;
|
|
53
|
+
--gramlot-success: #98dfbd;
|
|
54
|
+
--gramlot-success-background: #243f32;
|
|
55
|
+
--gramlot-warning: #f3d58c;
|
|
56
|
+
--gramlot-warning-background: #413820;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
:root[data-theme="dark"] {
|
|
60
|
+
color-scheme: dark;
|
|
61
|
+
--gramlot-background: #1b1c20;
|
|
62
|
+
--gramlot-surface: #25272c;
|
|
63
|
+
--gramlot-surface-subtle: #303239;
|
|
64
|
+
--gramlot-ink: #f3f2ef;
|
|
65
|
+
--gramlot-text-secondary: #c4c3c0;
|
|
66
|
+
--gramlot-border: #454951;
|
|
67
|
+
--gramlot-border-control: #858c99;
|
|
68
|
+
--gramlot-action: #abcbff;
|
|
69
|
+
--gramlot-action-hover: #cedfff;
|
|
70
|
+
--gramlot-selected: #324765;
|
|
71
|
+
--gramlot-field-background: #25272c;
|
|
72
|
+
--gramlot-field-readonly-background: #303239;
|
|
73
|
+
--gramlot-label-color: #c4c3c0;
|
|
74
|
+
--gramlot-focus-ring: #abcbff;
|
|
75
|
+
--gramlot-brand-blue: #abcbff;
|
|
76
|
+
--gramlot-brand-yellow: #abcbff;
|
|
77
|
+
--gramlot-navigation: #1b1c20;
|
|
78
|
+
--gramlot-navigation-text: #f6f8fb;
|
|
79
|
+
--gramlot-error: #ffb4b4;
|
|
80
|
+
--gramlot-error-background: #48292f;
|
|
81
|
+
--gramlot-success: #98dfbd;
|
|
82
|
+
--gramlot-success-background: #243f32;
|
|
83
|
+
--gramlot-warning: #f3d58c;
|
|
84
|
+
--gramlot-warning-background: #413820;
|
|
85
|
+
}
|
|
86
|
+
}
|