@apo100l/ace-ui-kit 0.0.2 → 0.2.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.
Files changed (57) hide show
  1. package/README.md +58 -5
  2. package/dist/ace-compat.css +1 -1
  3. package/dist/ace-compat.js +189 -0
  4. package/dist/ace-compat.js.map +1 -0
  5. package/dist/ace-ui-kit.css +1 -1
  6. package/dist/ace-ui-kit.js +312 -8
  7. package/dist/ace-ui-kit.js.map +1 -1
  8. package/dist/compat.d.ts +14 -0
  9. package/dist/icons.svg +58 -0
  10. package/dist/index.d.ts +7 -0
  11. package/dist/js/compat/ace.d.ts +2 -0
  12. package/dist/js/compat/bootstrap.d.ts +9 -0
  13. package/dist/js/dialog.d.ts +3 -0
  14. package/dist/js/file.d.ts +1 -0
  15. package/dist/js/icon.d.ts +13 -0
  16. package/dist/js/init.d.ts +4 -2
  17. package/dist/js/menu.d.ts +1 -0
  18. package/dist/js/sidebar.d.ts +1 -0
  19. package/dist/js/stepper.d.ts +2 -0
  20. package/dist/js/tabs.d.ts +3 -0
  21. package/dist/js/toast.d.ts +16 -0
  22. package/dist/js/tooltip.d.ts +1 -0
  23. package/package.json +20 -7
  24. package/src/icons/icons.json +311 -0
  25. package/src/scss/_breakpoints.scss +32 -0
  26. package/src/scss/_tokens.scss +175 -33
  27. package/src/scss/compat/_base.scss +144 -0
  28. package/src/scss/compat/_buttons.scss +100 -0
  29. package/src/scss/compat/_feedback.scss +187 -0
  30. package/src/scss/compat/_forms.scss +232 -0
  31. package/src/scss/compat/_grid.scss +107 -0
  32. package/src/scss/compat/_layout.scss +427 -0
  33. package/src/scss/compat/_navigation.scss +159 -0
  34. package/src/scss/compat/_plugins.scss +105 -0
  35. package/src/scss/compat/_tables.scss +105 -0
  36. package/src/scss/compat/_utilities.scss +160 -0
  37. package/src/scss/compat/_widgets.scss +126 -0
  38. package/src/scss/compat/index.scss +18 -10
  39. package/src/scss/components/_alert.scss +21 -22
  40. package/src/scss/components/_badge.scss +48 -0
  41. package/src/scss/components/_button.scss +34 -33
  42. package/src/scss/components/_card.scss +66 -0
  43. package/src/scss/components/_feedback.scss +219 -0
  44. package/src/scss/components/_form.scss +336 -0
  45. package/src/scss/components/_icon.scss +29 -0
  46. package/src/scss/components/_overlay.scss +174 -0
  47. package/src/scss/components/_shell.scss +326 -0
  48. package/src/scss/components/_table.scss +301 -0
  49. package/src/scss/components/_tabs.scss +56 -0
  50. package/src/scss/index.scss +10 -0
  51. package/src/scss/mixins/_alert.scss +65 -0
  52. package/src/scss/mixins/_badge.scss +59 -0
  53. package/src/scss/mixins/_button.scss +102 -0
  54. package/src/scss/mixins/_card.scss +40 -0
  55. package/src/scss/mixins/_form.scss +76 -0
  56. package/src/scss/mixins/_menu.scss +53 -0
  57. package/src/scss/mixins/_table.scss +23 -0
@@ -0,0 +1,16 @@
1
+ export type ToastTone = 'neutral' | 'positive' | 'negative' | 'warning' | 'info';
2
+ export interface ToastOptions {
3
+ tone?: ToastTone;
4
+ /** ms; 0 = until closed. Default 5000, negative 0. */
5
+ duration?: number;
6
+ action?: {
7
+ label: string;
8
+ onClick: () => void;
9
+ };
10
+ }
11
+ export interface ToastHandle {
12
+ close(): void;
13
+ }
14
+ export declare function toast(message: string, { tone, duration, action }?: ToastOptions): ToastHandle;
15
+ /** Turns server-rendered [data-ak-toast] elements (flash messages) into toasts, once each. */
16
+ export declare function toastsFromDom(root?: ParentNode): void;
@@ -0,0 +1 @@
1
+ export declare function tooltips(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apo100l/ace-ui-kit",
3
- "version": "0.0.2",
3
+ "version": "0.2.0",
4
4
  "description": "Framework-agnostic admin UI kit (CSS + vanilla TS) with a compatibility layer for legacy Ace/Bootstrap 3 markup",
5
5
  "license": "MIT",
6
6
  "author": "Aleksandr Apostol <dev@apo100l.ru>",
@@ -30,12 +30,18 @@
30
30
  "./css": "./dist/ace-ui-kit.css",
31
31
  "./compat.css": "./dist/ace-compat.css",
32
32
  "./scss/*": "./src/scss/*",
33
- "./package.json": "./package.json"
33
+ "./package.json": "./package.json",
34
+ "./icons.svg": "./dist/icons.svg",
35
+ "./icons.json": "./src/icons/icons.json",
36
+ "./compat": {
37
+ "types": "./dist/compat.d.ts",
38
+ "import": "./dist/ace-compat.js"
39
+ }
34
40
  },
35
41
  "files": [
36
42
  "dist",
37
- "!dist/ace-compat.js*",
38
- "src/scss"
43
+ "src/scss",
44
+ "src/icons/icons.json"
39
45
  ],
40
46
  "sideEffects": [
41
47
  "*.css",
@@ -49,14 +55,21 @@
49
55
  "provenance": true
50
56
  },
51
57
  "scripts": {
52
- "dev": "vite",
53
- "build": "vite build && vite build --mode compat && tsc -p tsconfig.build.json",
58
+ "dev": "storybook dev -p 6006",
59
+ "build": "vite build && vite build --mode compat && tsc -p tsconfig.build.json && cp src/icons/sprite.svg dist/icons.svg",
60
+ "build-storybook": "storybook build -o storybook-static",
61
+ "icons": "node scripts/icons/build-sprite.mjs",
54
62
  "typecheck": "tsc --noEmit",
55
63
  "pack:check": "npm pack --dry-run",
56
- "prepublishOnly": "npm run build"
64
+ "prepublishOnly": "npm run build",
65
+ "inventory": "node scripts/inventory/inventory.mjs"
57
66
  },
58
67
  "devDependencies": {
68
+ "@storybook/addon-docs": "10.6.9",
69
+ "@storybook/html-vite": "10.6.9",
70
+ "lucide-static": "^1.84.0",
59
71
  "sass": "1.97.3",
72
+ "storybook": "10.6.9",
60
73
  "typescript": "5.9.3",
61
74
  "vite": "7.3.8"
62
75
  }
@@ -0,0 +1,311 @@
1
+ {
2
+ "$comment": "Icons bundled into the sprite. Key = Lucide name = symbol id (`#name`). `fa` lists the Font Awesome 3/4 classes it replaces (used by the inventory and the compat migration). Regenerate with `npm run icons`.",
3
+ "icons": {
4
+ "chevron-down": {
5
+ "fa": [
6
+ "fa-angle-down",
7
+ "fa-caret-down",
8
+ "icon-angle-down"
9
+ ]
10
+ },
11
+ "chevron-up": {
12
+ "fa": [
13
+ "fa-angle-up",
14
+ "fa-caret-up",
15
+ "icon-angle-up"
16
+ ]
17
+ },
18
+ "chevrons-left": {
19
+ "fa": [
20
+ "fa-double-angle-left",
21
+ "fa-angle-double-left",
22
+ "icon-double-angle-left"
23
+ ]
24
+ },
25
+ "chevrons-right": {
26
+ "fa": [
27
+ "fa-double-angle-right",
28
+ "fa-angle-double-right",
29
+ "icon-double-angle-right"
30
+ ]
31
+ },
32
+ "square-pen": {
33
+ "fa": [
34
+ "fa-edit",
35
+ "fa-pencil-square-o"
36
+ ]
37
+ },
38
+ "pencil": {
39
+ "fa": [
40
+ "fa-pencil"
41
+ ]
42
+ },
43
+ "table": {
44
+ "fa": [
45
+ "fa-table"
46
+ ]
47
+ },
48
+ "save": {
49
+ "fa": [
50
+ "fa-save",
51
+ "fa-floppy-o"
52
+ ]
53
+ },
54
+ "calendar": {
55
+ "fa": [
56
+ "fa-calendar"
57
+ ]
58
+ },
59
+ "calendar-x": {
60
+ "fa": [
61
+ "fa-calendar-times-o"
62
+ ]
63
+ },
64
+ "lock": {
65
+ "fa": [
66
+ "fa-lock"
67
+ ]
68
+ },
69
+ "key": {
70
+ "fa": [
71
+ "fa-key"
72
+ ]
73
+ },
74
+ "plus": {
75
+ "fa": [
76
+ "fa-plus"
77
+ ]
78
+ },
79
+ "minus": {
80
+ "fa": [
81
+ "fa-minus"
82
+ ]
83
+ },
84
+ "copy": {
85
+ "fa": [
86
+ "fa-copy",
87
+ "fa-files-o"
88
+ ]
89
+ },
90
+ "file": {
91
+ "fa": [
92
+ "fa-file",
93
+ "fa-file-o"
94
+ ]
95
+ },
96
+ "file-text": {
97
+ "fa": [
98
+ "fa-file-pdf-o",
99
+ "fa-file-text-o"
100
+ ]
101
+ },
102
+ "file-spreadsheet": {
103
+ "fa": [
104
+ "fa-file-excel-o"
105
+ ]
106
+ },
107
+ "file-image": {
108
+ "fa": [
109
+ "fa-file-image-o"
110
+ ]
111
+ },
112
+ "image": {
113
+ "fa": [
114
+ "fa-picture-o",
115
+ "fa-image"
116
+ ]
117
+ },
118
+ "upload": {
119
+ "fa": [
120
+ "fa-upload"
121
+ ]
122
+ },
123
+ "download": {
124
+ "fa": [
125
+ "fa-download"
126
+ ]
127
+ },
128
+ "x": {
129
+ "fa": [
130
+ "fa-remove",
131
+ "fa-times",
132
+ "fa-close"
133
+ ]
134
+ },
135
+ "circle-x": {
136
+ "fa": [
137
+ "fa-times-circle",
138
+ "fa-times-circle-o"
139
+ ]
140
+ },
141
+ "circle-check": {
142
+ "fa": [
143
+ "fa-check-circle",
144
+ "fa-check-circle-o"
145
+ ]
146
+ },
147
+ "check": {
148
+ "fa": [
149
+ "fa-check"
150
+ ]
151
+ },
152
+ "trash-2": {
153
+ "fa": [
154
+ "fa-trash",
155
+ "fa-trash-o"
156
+ ]
157
+ },
158
+ "eraser": {
159
+ "fa": [
160
+ "fa-eraser"
161
+ ]
162
+ },
163
+ "refresh-cw": {
164
+ "fa": [
165
+ "fa-repeat",
166
+ "fa-refresh"
167
+ ]
168
+ },
169
+ "russian-ruble": {
170
+ "fa": [
171
+ "fa-rub",
172
+ "fa-ruble"
173
+ ]
174
+ },
175
+ "user": {
176
+ "fa": [
177
+ "fa-user",
178
+ "icon-user"
179
+ ]
180
+ },
181
+ "users": {
182
+ "fa": [
183
+ "fa-group",
184
+ "fa-users"
185
+ ]
186
+ },
187
+ "building": {
188
+ "fa": [
189
+ "fa-building",
190
+ "fa-building-o"
191
+ ]
192
+ },
193
+ "settings": {
194
+ "fa": [
195
+ "fa-cogs",
196
+ "fa-cog",
197
+ "fa-gear"
198
+ ]
199
+ },
200
+ "layout-dashboard": {
201
+ "fa": [
202
+ "fa-dashboard",
203
+ "fa-tachometer"
204
+ ]
205
+ },
206
+ "house": {
207
+ "fa": [
208
+ "fa-home"
209
+ ]
210
+ },
211
+ "list": {
212
+ "fa": [
213
+ "fa-list"
214
+ ]
215
+ },
216
+ "clipboard-list": {
217
+ "fa": [
218
+ "fa-list-alt"
219
+ ]
220
+ },
221
+ "map-pin": {
222
+ "fa": [
223
+ "fa-map-marker"
224
+ ]
225
+ },
226
+ "send": {
227
+ "fa": [
228
+ "fa-paper-plane",
229
+ "fa-paper-plane-o"
230
+ ]
231
+ },
232
+ "phone": {
233
+ "fa": [
234
+ "fa-phone"
235
+ ]
236
+ },
237
+ "log-out": {
238
+ "fa": [
239
+ "fa-sign-out"
240
+ ]
241
+ },
242
+ "menu": {
243
+ "fa": [
244
+ "fa-bars"
245
+ ]
246
+ },
247
+ "search": {
248
+ "fa": [
249
+ "fa-search"
250
+ ]
251
+ },
252
+ "filter": {
253
+ "fa": [
254
+ "fa-filter"
255
+ ]
256
+ },
257
+ "eye": {
258
+ "fa": [
259
+ "fa-eye"
260
+ ]
261
+ },
262
+ "eye-off": {
263
+ "fa": [
264
+ "fa-eye-slash"
265
+ ]
266
+ },
267
+ "external-link": {
268
+ "fa": [
269
+ "fa-external-link"
270
+ ]
271
+ },
272
+ "info": {
273
+ "fa": [
274
+ "fa-info-circle",
275
+ "fa-info"
276
+ ]
277
+ },
278
+ "circle-alert": {
279
+ "fa": [
280
+ "fa-exclamation-circle"
281
+ ]
282
+ },
283
+ "triangle-alert": {
284
+ "fa": [
285
+ "fa-exclamation-triangle",
286
+ "fa-warning"
287
+ ]
288
+ },
289
+ "arrow-up-down": {
290
+ "fa": [
291
+ "fa-sort"
292
+ ]
293
+ },
294
+ "grip-vertical": {
295
+ "fa": [
296
+ "fa-arrows-v",
297
+ "fa-bars"
298
+ ]
299
+ },
300
+ "ellipsis": {
301
+ "fa": [
302
+ "fa-ellipsis-h"
303
+ ]
304
+ },
305
+ "ellipsis-vertical": {
306
+ "fa": [
307
+ "fa-ellipsis-v"
308
+ ]
309
+ }
310
+ }
311
+ }
@@ -0,0 +1,32 @@
1
+ // Breakpoints can't be CSS variables (media queries don't read them), so they live in SCSS.
2
+ // Values match Bootstrap 3 so legacy col-sm/md/lg markup and kit layouts switch together.
3
+ @use 'sass:map';
4
+
5
+ $breakpoints: (
6
+ sm: 768px,
7
+ md: 992px,
8
+ lg: 1200px
9
+ ) !default;
10
+
11
+ /// @include bp.up(md) { … } — from the breakpoint and wider
12
+ @mixin up($name) {
13
+ @media (min-width: map.get($breakpoints, $name)) {
14
+ @content;
15
+ }
16
+ }
17
+
18
+ /// @include bp.down(md) { … } — narrower than the breakpoint
19
+ @mixin down($name) {
20
+ @media (max-width: map.get($breakpoints, $name) - 0.02px) {
21
+ @content;
22
+ }
23
+ }
24
+
25
+ /// Hover styles only for real pointers (touch screens fire hover on tap)
26
+ @mixin hover {
27
+ @media (hover: hover) and (pointer: fine) {
28
+ &:hover {
29
+ @content;
30
+ }
31
+ }
32
+ }
@@ -1,41 +1,183 @@
1
- // Design tokens. Everything themable is a CSS custom property on :root,
2
- // so a host admin re-skins the kit by overriding variables, not by recompiling.
3
- // Values start from the classic Ace palette (blue skin) to keep the migration visually calm.
1
+ // Design tokens — CSS custom properties on :root. Hosts re-skin the kit by overriding these,
2
+ // never by recompiling. Rules behind the values: docs/PRINCIPLES.md.
3
+ //
4
+ // Themes: default (neutral, light) · [data-ak-theme="dark"] · [data-ak-theme="ace"] — the legacy
5
+ // Ace blue, for migrating an existing Ace admin without a visual jump.
4
6
 
5
7
  :root {
6
- // Palette
7
- --ak-color-primary: #428bca;
8
- --ak-color-primary-hover: #2a6496;
9
- --ak-color-success: #87b87f;
10
- --ak-color-info: #6fb3e0;
11
- --ak-color-warning: #ffb752;
12
- --ak-color-danger: #d15b47;
13
- --ak-color-on-accent: #fff;
14
-
15
- // Surfaces & text
16
- --ak-color-bg: #e4e6e9;
17
- --ak-color-surface: #fff;
18
- --ak-color-surface-muted: #f5f5f5;
19
- --ak-color-border: #ddd;
20
- --ak-color-text: #393939;
21
- --ak-color-text-muted: #777;
22
-
23
- // Typography
24
- --ak-font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
25
- --ak-font-size: 13px;
26
- --ak-font-size-sm: 12px;
27
- --ak-font-size-lg: 15px;
28
- --ak-line-height: 1.5;
8
+ color-scheme: light;
9
+
10
+ // ---- Surfaces: colour goes on data, not chrome
11
+ --ak-color-ground: #f9fafb; // page
12
+ --ak-color-surface: #ffffff; // cards, panels, inputs
13
+ --ak-color-raised: #f5f6f7; // wells, hover fills, code
14
+ --ak-color-active: #eeeeee; // selected nav item / selected row
15
+ --ak-color-overlay: rgb(17 17 17 / 40%); // dialog backdrop
16
+
17
+ // ---- Lines in three steps
18
+ --ak-color-border: #e8e8e8; // card and panel edges
19
+ --ak-color-rule: #f0f0f0; // row rules inside tables and lists
20
+ --ak-color-control: #d1d5db; // input, select and secondary button borders
21
+
22
+ // ---- Text in three tiers, every tier >= 4.5:1 on surface and ground
23
+ --ak-color-text: #111111;
24
+ --ak-color-muted: #5f6368;
25
+ --ak-color-faint: #6b6b6b; // meta, placeholders
29
26
 
30
- // Spacing scale (4px base)
27
+ // ---- Actions
28
+ --ak-color-primary: #1d1f20; // the one filled button per screen: near-black
29
+ --ak-color-primary-hover: #000000;
30
+ --ak-color-on-primary: #ffffff;
31
+ --ak-color-accent: #2f6fd6; // one hue: data, links, focus — never chrome fills
32
+ --ak-color-link: #1f5fc4;
33
+
34
+ // ---- Status: text colours pass 4.5:1; pills are pale tint + dark ink of the same hue
35
+ --ak-color-positive: #247b50;
36
+ --ak-color-positive-bg: #dcfae5;
37
+ --ak-color-positive-ink: #04250e;
38
+ --ak-color-negative: #c4242a;
39
+ --ak-color-negative-bg: #ffedea;
40
+ --ak-color-negative-ink: #831c1e;
41
+ --ak-color-warning: #92400e;
42
+ --ak-color-warning-bg: #fffbeb;
43
+ --ak-color-warning-ink: #92400e;
44
+ --ak-color-warning-border: #fde68a;
45
+ --ak-color-info-bg: #eef4fd;
46
+ --ak-color-info-ink: #173f7a;
47
+
48
+ --ak-focus-ring: 0 0 0 2px var(--ak-color-surface), 0 0 0 4px var(--ak-color-accent);
49
+
50
+ // ---- Type: one grotesk with tabular figures and Cyrillic (the host loads the face)
51
+ --ak-font-family: 'Golos Text Variable', 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
52
+ --ak-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; // IDs, keys and code only
53
+ --ak-font-size-xs: 11px; // floor: nothing smaller, ever
54
+ --ak-font-size-sm: 12px; // labels, meta, table headers
55
+ --ak-font-size-md: 14px; // body, nav, cells, controls
56
+ --ak-font-size-lg: 16px; // card / section titles
57
+ --ak-font-size-xl: 18px;
58
+ --ak-font-size-2xl: 24px; // page title, KPI values
59
+ --ak-font-size-3xl: 32px; // ceiling for app screens
60
+ --ak-font-weight-regular: 400;
61
+ --ak-font-weight-medium: 500;
62
+ --ak-font-weight-semibold: 600;
63
+ --ak-font-weight-bold: 700; // one job per screen
64
+ --ak-line-height-tight: 1.25;
65
+ --ak-line-height: 1.43; // 20px on 14px
66
+
67
+ // Back-compat aliases (0.0.x)
68
+ --ak-font-size: var(--ak-font-size-md);
69
+
70
+ // ---- Space: 4px base
71
+ --ak-space-0: 0;
31
72
  --ak-space-1: 4px;
32
73
  --ak-space-2: 8px;
33
74
  --ak-space-3: 12px;
34
- --ak-space-4: 16px;
35
- --ak-space-6: 24px;
75
+ --ak-space-4: 16px; // default gap between cards and fields
76
+ --ak-space-5: 20px; // card padding
77
+ --ak-space-6: 24px; // canvas gutter
78
+ --ak-space-8: 32px;
79
+ --ak-space-10: 40px;
80
+ --ak-space-12: 48px;
81
+ --ak-space-16: 64px;
82
+
83
+ // ---- Shape: tight radii, stepping down when nested
84
+ --ak-radius-chip: 4px;
85
+ --ak-radius-control: 6px;
86
+ --ak-radius-card: 8px;
87
+ --ak-radius-full: 999px;
88
+ --ak-radius: var(--ak-radius-control); // alias (0.0.x)
36
89
 
37
- // Shape & motion
38
- --ak-radius: 2px;
39
- --ak-focus-ring: 0 0 0 2px rgb(66 139 202 / 40%);
40
- --ak-transition: 150ms ease-out;
90
+ // ---- Sizes
91
+ --ak-control-height-sm: 28px;
92
+ --ak-control-height: 32px;
93
+ --ak-control-height-lg: 40px; // form inputs
94
+ --ak-row-height: 48px; // table rows
95
+ --ak-nav-row: 34px;
96
+ --ak-sidebar-width: 232px;
97
+ --ak-sidebar-width-collapsed: 56px;
98
+ --ak-topbar-height: 48px;
99
+ --ak-icon-size: 16px;
100
+ --ak-icon-stroke: 1.75;
101
+
102
+ // ---- Elevation: nothing at rest has a shadow; only what floats
103
+ --ak-shadow-float: 0 4px 16px rgb(0 0 0 / 10%), 0 1px 3px rgb(0 0 0 / 6%); // menu, popover, tooltip
104
+ --ak-shadow-dialog: 0 16px 48px rgb(0 0 0 / 18%), 0 2px 8px rgb(0 0 0 / 8%);
105
+
106
+ // ---- Layers (Bootstrap 3 compatible order)
107
+ --ak-z-dropdown: 1000;
108
+ --ak-z-sticky: 1020;
109
+ --ak-z-fixed: 1030;
110
+ --ak-z-backdrop: 1040;
111
+ --ak-z-dialog: 1050;
112
+ --ak-z-popover: 1060;
113
+ --ak-z-tooltip: 1070;
114
+ --ak-z-toast: 1080;
115
+
116
+ // ---- Motion: feedback only, under 300ms, ease-out, never on keyboard actions
117
+ --ak-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
118
+ --ak-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
119
+ --ak-duration-press: 120ms; // button press
120
+ --ak-duration-fast: 150ms; // hover colour, tooltip
121
+ --ak-duration-base: 200ms; // dropdown, popover
122
+ --ak-duration-slow: 250ms; // dialog, drawer
123
+ --ak-press-scale: 0.97;
124
+ --ak-transition: var(--ak-duration-fast) var(--ak-ease-out); // alias (0.0.x)
125
+ }
126
+
127
+ @media (prefers-reduced-motion: reduce) {
128
+ :root {
129
+ --ak-press-scale: 1;
130
+ --ak-duration-base: 0ms;
131
+ --ak-duration-slow: 0ms;
132
+ }
133
+ }
134
+
135
+ // ---- Dark: true neutral blacks, elevation by lightness, two greys that read apart
136
+ :root[data-ak-theme='dark'] {
137
+ color-scheme: dark;
138
+ --ak-color-ground: #000000;
139
+ --ak-color-surface: #111111;
140
+ --ak-color-raised: #1c1c1c;
141
+ --ak-color-active: #222222;
142
+ --ak-color-overlay: rgb(0 0 0 / 60%);
143
+ --ak-color-border: #262626;
144
+ --ak-color-rule: #1a1a1a;
145
+ --ak-color-control: #444444;
146
+ --ak-color-text: #ffffff;
147
+ --ak-color-muted: #b4b4b4;
148
+ --ak-color-faint: #949494;
149
+ --ak-color-primary: #ffffff;
150
+ --ak-color-primary-hover: #e6e6e6;
151
+ --ak-color-on-primary: #000000;
152
+ --ak-color-accent: #6ea2f5;
153
+ --ak-color-link: #8db6f8;
154
+ --ak-color-positive: #3fc07a;
155
+ --ak-color-positive-bg: #172a1d;
156
+ --ak-color-positive-ink: #3fc07a;
157
+ --ak-color-negative: #e5566f;
158
+ --ak-color-negative-bg: #2c1a20;
159
+ --ak-color-negative-ink: #e5566f;
160
+ --ak-color-warning: #f0b341;
161
+ --ak-color-warning-bg: #2a2212;
162
+ --ak-color-warning-ink: #f0b341;
163
+ --ak-color-warning-border: #4a3a14;
164
+ --ak-color-info-bg: #13213a;
165
+ --ak-color-info-ink: #8db6f8;
166
+ --ak-shadow-float: 0 4px 16px rgb(0 0 0 / 50%);
167
+ --ak-shadow-dialog: 0 16px 48px rgb(0 0 0 / 70%);
168
+ }
169
+
170
+ // ---- Ace: the legacy palette, for migrating Ace admins step by step
171
+ :root[data-ak-theme='ace'] {
172
+ --ak-color-ground: #e4e6e9;
173
+ --ak-color-border: #dddddd;
174
+ --ak-color-primary: #428bca;
175
+ --ak-color-primary-hover: #2a6496;
176
+ --ak-color-accent: #428bca;
177
+ --ak-color-link: #2a6496;
178
+ --ak-font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
179
+ --ak-font-size-md: 13px;
180
+ --ak-radius-control: 2px;
181
+ --ak-radius-card: 2px;
182
+ --ak-radius-chip: 2px;
41
183
  }