@gramlot/gramlot 0.3.10 → 0.3.16

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.
Files changed (94) hide show
  1. package/dist/components/editors/__init__.py +13 -0
  2. package/dist/components/{editors.js → editors/assets/collection.js} +131 -246
  3. package/dist/components/editors/assets/index.js +2 -0
  4. package/dist/components/editors/commands.json +7 -0
  5. package/dist/components/editors/grammar.json +7045 -0
  6. package/dist/components/inputs/__init__.py +13 -0
  7. package/dist/components/{inputs.js → inputs/assets/collection.js} +287 -198
  8. package/dist/components/inputs/assets/index.js +2 -0
  9. package/dist/components/inputs/commands.json +7 -0
  10. package/dist/components/inputs/grammar.json +42881 -0
  11. package/dist/components/layout/__init__.py +13 -0
  12. package/dist/components/layout/assets/collection.js +25737 -0
  13. package/dist/components/layout/assets/index.js +2 -0
  14. package/dist/components/layout/commands.json +7 -0
  15. package/dist/components/layout/grammar.json +1798 -0
  16. package/dist/components/tree/__init__.py +13 -0
  17. package/dist/components/{tree.js → tree/assets/collection.js} +62 -175
  18. package/dist/components/tree/assets/index.js +2 -0
  19. package/dist/components/tree/commands.json +7 -0
  20. package/dist/components/tree/grammar.json +339 -0
  21. package/dist/components/typst/__init__.py +13 -0
  22. package/dist/components/typst/assets/collection.js +4 -0
  23. package/dist/components/typst/assets/index.js +2 -0
  24. package/dist/components/typst/commands.json +7 -0
  25. package/dist/components/typst/grammar.json +81 -0
  26. package/dist/gramlot.js +2496 -905
  27. package/dist/gramlot.min.js +109 -28
  28. package/dist/runtime-notices.json +0 -196
  29. package/package.json +1 -1
  30. package/src/binding/ask-dialog.js +1 -1
  31. package/src/binding/installation.js +5 -6
  32. package/src/binding/runtime.js +4 -2
  33. package/src/bootstrap.d.ts +1 -1
  34. package/src/bootstrap.js +52 -30
  35. package/src/builder/binding.json +25 -0
  36. package/src/builder/gramlot-builder.js +16 -3
  37. package/src/builder/source.js +33 -1
  38. package/src/collection-artifact.d.ts +11 -0
  39. package/src/collection-artifact.js +57 -0
  40. package/src/commands.d.ts +9 -0
  41. package/src/commands.js +36 -0
  42. package/src/components/bases.js +1 -1
  43. package/src/components/border-container.js +26 -1
  44. package/src/components/buttons.js +84 -161
  45. package/src/components/choice-editor.js +31 -10
  46. package/src/components/database-choices.js +110 -0
  47. package/src/components/inputs.js +15 -2
  48. package/src/components/layout.js +5 -3
  49. package/src/components/menus.js +346 -0
  50. package/src/components/popup.js +15 -2
  51. package/src/components/registry.js +18 -3
  52. package/src/components/toolbar-overflow.js +181 -0
  53. package/src/components/tree.js +14 -4
  54. package/src/components/windows.js +284 -0
  55. package/src/filesystem.js +1 -0
  56. package/src/gramlot.d.ts +2 -0
  57. package/src/gramlot.js +4 -2
  58. package/src/handlers/rpc-handler.d.ts +6 -1
  59. package/src/handlers/rpc-handler.js +7 -2
  60. package/src/handlers/source-handler.d.ts +2 -1
  61. package/src/handlers/source-handler.js +10 -1
  62. package/src/ide-documents.js +1 -1
  63. package/src/ide-runtime.js +3 -2
  64. package/src/index-page-styles.js +1 -1
  65. package/src/index-theme.js +1 -1
  66. package/src/index.d.ts +5 -0
  67. package/src/index.js +5 -0
  68. package/src/renderer/gramlot-html-renderer.js +1 -0
  69. package/src/renderer/gramlot-renderer.js +13 -3
  70. package/src/server/gramlot-file-server.d.ts +2 -0
  71. package/src/server/gramlot-file-server.js +45 -1
  72. package/src/server/gramlot-server.d.ts +20 -2
  73. package/src/server/gramlot-server.js +86 -6
  74. package/src/server/page-base.js +1 -0
  75. package/src/server/page.d.ts +3 -0
  76. package/src/view/button.js +47 -3
  77. package/src/view/controls.js +8 -0
  78. package/src/view/html.js +1 -0
  79. package/src/view/menu-command.js +45 -0
  80. package/src/view/menu.js +87 -0
  81. package/themes/gramlot-compact/README.md +19 -0
  82. package/themes/gramlot-compact/theme.css +138 -45
  83. package/themes/joanna/README.md +19 -0
  84. package/themes/joanna/theme.css +134 -78
  85. package/themes/mela/theme.css +184 -0
  86. package/themes/mimi/README.md +19 -0
  87. package/themes/mimi/theme.css +133 -77
  88. package/themes/palettes/README.md +3 -0
  89. package/themes/palettes/compact.css +86 -0
  90. package/themes/palettes/joanna.css +86 -0
  91. package/themes/palettes/mimi.css +86 -0
  92. package/tools/gramlot-tools-inspector.js +3 -3
  93. package/dist/components/layout.js +0 -3385
  94. package/dist/components/typst.js +0 -4
@@ -1,98 +1,154 @@
1
- /* Gramlot adaptation of legacy joanna; load after Base and Compact. */
1
+ /* joanna: professional density profile; load after Base and Compact. */
2
2
  @layer gramlot.tokens {
3
3
  :root {
4
- --gramlot-tab-height: 26px;
5
- --gramlot-tab-padding: 3px 10px;
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
+ --gramlot-field-height: 32px;
30
+ --gramlot-field-padding: 3px 9px;
31
+ --gramlot-field-line-height: 1.3;
32
+ --gramlot-field-font-size: 1rem;
33
+ --gramlot-button-padding: 3px 9px;
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: 6px;
40
+ --gramlot-radius: 6px;
41
+ --gramlot-radius-lg: 8px;
42
+ --gramlot-window-radius: 8px;
43
+ --gramlot-toolbar-gap: 2px;
44
+ --gramlot-tree-row-height: var(--gramlot-field-height);
45
+ --gramlot-space-1: 3px;
46
+ --gramlot-space-2: 5px;
47
+ --gramlot-space-3: 10px;
48
+ --gramlot-space-4: 10px;
49
+ --gramlot-space-6: 15px;
50
+ --gramlot-space-8: 20px;
51
+ --gramlot-space-12: 30px;
52
+ --gramlot-tab-height: 32px;
53
+ --gramlot-tab-padding: 3px 9px;
6
54
  --gramlot-tab-radius: 6px;
7
55
  --gramlot-tab-gap: 2px;
8
- --gramlot-tab-strip-padding: 3px;
9
- --gramlot-tab-background: var(--gramlot-background);
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-ink);
59
+ --gramlot-tab-selected-color: var(--gramlot-action);
12
60
  --gramlot-tab-border: var(--gramlot-border);
13
- --gramlot-background: #F2F2F7;
14
- --gramlot-surface: #FFFFFF;
15
- --gramlot-surface-subtle: #F2F2F7;
16
- --gramlot-ink: #3A3A3C;
17
- --gramlot-text-secondary: #636366;
18
- --gramlot-border: #D1D1D6;
19
- --gramlot-border-control: #AEAEB2;
20
- --gramlot-navigation: #3A3A3C;
21
- --gramlot-navigation-text: #FFFFFF;
22
- --gramlot-action: #007AFF;
23
- --gramlot-action-hover: #0061CC;
24
- --gramlot-brand-blue: #007AFF;
25
- --gramlot-brand-yellow: #AEAEB2;
26
- --gramlot-selected: #E0EFFF;
27
- --gramlot-focus-ring: #007AFF;
28
- --gramlot-field-background: #FFFFFF;
29
- --gramlot-field-readonly-background: #F2F2F7;
30
- --gramlot-error: #B3261E;
31
- --gramlot-error-background: #FFF1F0;
32
- --gramlot-shadow: 0 1px 4px rgb(0 0 0 / 6%);
33
- --gramlot-radius-sm: 6px;
34
- --gramlot-radius: 6px;
35
- --gramlot-radius-lg: 6px;
36
- --gramlot-field-height: 20px;
37
- --gramlot-field-padding: 1px 3px;
38
- --gramlot-field-line-height: 1.15;
39
- --gramlot-field-font-size: 1rem;
40
- --gramlot-label-size: .8em;
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
- --gramlot-background: #1C1C1E;
49
- --gramlot-surface: #2C2C2E;
50
- --gramlot-surface-subtle: #3A3A3C;
51
- --gramlot-ink: #F2F2F7;
52
- --gramlot-text-secondary: #C7C7CC;
53
- --gramlot-border: #636366;
54
- --gramlot-border-control: #8E8E93;
55
- --gramlot-navigation: #1C1C1E;
56
- --gramlot-action: #78B7FF;
57
- --gramlot-action-hover: #A6CFFF;
58
- --gramlot-brand-blue: #3478CA;
59
- --gramlot-selected: #254163;
60
- --gramlot-focus-ring: #78B7FF;
61
- --gramlot-field-background: #202124;
62
- --gramlot-field-readonly-background: #3A3A3C;
63
- --gramlot-error: #FFB4AB;
64
- --gramlot-error-background: #482524;
65
- --gramlot-shadow: 0 1px 4px rgb(0 0 0 / 20%);
65
+ color-scheme: dark;
66
+ --gramlot-background: #1b1c20;
67
+ --gramlot-surface: #25272c;
68
+ --gramlot-surface-subtle: #303239;
69
+ --gramlot-ink: #f3f2ef;
70
+ --gramlot-text-secondary: #c4c3c0;
71
+ --gramlot-border: #454951;
72
+ --gramlot-border-control: #858c99;
73
+ --gramlot-action: #abcbff;
74
+ --gramlot-action-hover: #cedfff;
75
+ --gramlot-selected: #324765;
76
+ --gramlot-field-background: #25272c;
77
+ --gramlot-field-readonly-background: #303239;
78
+ --gramlot-label-color: #c4c3c0;
79
+ --gramlot-focus-ring: #abcbff;
80
+ --gramlot-brand-blue: #abcbff;
81
+ --gramlot-brand-yellow: #abcbff;
82
+ --gramlot-navigation: #1b1c20;
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
- --gramlot-background: #1C1C1E;
70
- --gramlot-surface: #2C2C2E;
71
- --gramlot-surface-subtle: #3A3A3C;
72
- --gramlot-ink: #F2F2F7;
73
- --gramlot-text-secondary: #C7C7CC;
74
- --gramlot-border: #636366;
75
- --gramlot-border-control: #8E8E93;
76
- --gramlot-navigation: #1C1C1E;
77
- --gramlot-action: #78B7FF;
78
- --gramlot-action-hover: #A6CFFF;
79
- --gramlot-brand-blue: #3478CA;
80
- --gramlot-selected: #254163;
81
- --gramlot-focus-ring: #78B7FF;
82
- --gramlot-field-background: #202124;
83
- --gramlot-field-readonly-background: #3A3A3C;
84
- --gramlot-error: #FFB4AB;
85
- --gramlot-error-background: #482524;
86
- --gramlot-shadow: 0 1px 4px rgb(0 0 0 / 20%);
93
+ color-scheme: dark;
94
+ --gramlot-background: #1b1c20;
95
+ --gramlot-surface: #25272c;
96
+ --gramlot-surface-subtle: #303239;
97
+ --gramlot-ink: #f3f2ef;
98
+ --gramlot-text-secondary: #c4c3c0;
99
+ --gramlot-border: #454951;
100
+ --gramlot-border-control: #858c99;
101
+ --gramlot-action: #abcbff;
102
+ --gramlot-action-hover: #cedfff;
103
+ --gramlot-selected: #324765;
104
+ --gramlot-field-background: #25272c;
105
+ --gramlot-field-readonly-background: #303239;
106
+ --gramlot-label-color: #c4c3c0;
107
+ --gramlot-focus-ring: #abcbff;
108
+ --gramlot-brand-blue: #abcbff;
109
+ --gramlot-brand-yellow: #abcbff;
110
+ --gramlot-navigation: #1b1c20;
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: 13px; }
121
+ html { font-size: 14px; }
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(label) { font-size: var(--gramlot-label-size); font-weight: normal; color: var(--gramlot-label-color); margin-block-end: var(--gramlot-label-gap); }
94
- :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button) { min-block-size: 26px; padding: 2px 8px; font-weight: 500; }
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
- .card { box-shadow: var(--gramlot-shadow); }
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,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
+ }
@@ -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
@@ -1,98 +1,154 @@
1
- /* Gramlot adaptation of legacy mimi; load after Base and Compact. */
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: 3px 10px;
53
+ --gramlot-tab-padding: 1px 5px;
6
54
  --gramlot-tab-radius: 3px;
7
55
  --gramlot-tab-gap: 2px;
8
- --gramlot-tab-strip-padding: 3px;
9
- --gramlot-tab-background: var(--gramlot-background);
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-ink);
59
+ --gramlot-tab-selected-color: var(--gramlot-action);
12
60
  --gramlot-tab-border: var(--gramlot-border);
13
- --gramlot-background: #EDEEF0;
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
- --gramlot-background: #242527;
49
- --gramlot-surface: #303134;
50
- --gramlot-surface-subtle: #3C3D40;
51
- --gramlot-ink: #F2F2F7;
52
- --gramlot-text-secondary: #C7C7CC;
53
- --gramlot-border: #6B6E72;
54
- --gramlot-border-control: #8E8E93;
55
- --gramlot-navigation: #1C1C1E;
56
- --gramlot-action: #78B7FF;
57
- --gramlot-action-hover: #A6CFFF;
58
- --gramlot-brand-blue: #3478CA;
59
- --gramlot-selected: #254163;
60
- --gramlot-focus-ring: #78B7FF;
61
- --gramlot-field-background: #202124;
62
- --gramlot-field-readonly-background: #3C3D40;
63
- --gramlot-error: #FFB4AB;
64
- --gramlot-error-background: #482524;
65
- --gramlot-shadow: 0 1px 4px rgb(0 0 0 / 20%);
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
- --gramlot-background: #242527;
70
- --gramlot-surface: #303134;
71
- --gramlot-surface-subtle: #3C3D40;
72
- --gramlot-ink: #F2F2F7;
73
- --gramlot-text-secondary: #C7C7CC;
74
- --gramlot-border: #6B6E72;
75
- --gramlot-border-control: #8E8E93;
76
- --gramlot-navigation: #1C1C1E;
77
- --gramlot-action: #78B7FF;
78
- --gramlot-action-hover: #A6CFFF;
79
- --gramlot-brand-blue: #3478CA;
80
- --gramlot-selected: #254163;
81
- --gramlot-focus-ring: #78B7FF;
82
- --gramlot-field-background: #202124;
83
- --gramlot-field-readonly-background: #3C3D40;
84
- --gramlot-error: #FFB4AB;
85
- --gramlot-error-background: #482524;
86
- --gramlot-shadow: 0 1px 4px rgb(0 0 0 / 20%);
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: 12px; }
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(label) { font-size: var(--gramlot-label-size); font-weight: normal; color: var(--gramlot-label-color); margin-block-end: var(--gramlot-label-gap); }
94
- :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button) { min-block-size: 24px; padding: 2px 8px; font-weight: 500; }
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
- .card { box-shadow: var(--gramlot-shadow); }
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
  }