@apo100l/ace-ui-kit 0.2.1 → 0.3.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.
@@ -18,9 +18,10 @@
18
18
  min-height: 0;
19
19
  margin: 0;
20
20
  border: 0;
21
- border-bottom: 1px solid var(--ak-color-border);
21
+ border-bottom: 1px solid var(--ak-topbar-border);
22
22
  border-radius: 0;
23
- background: var(--ak-color-surface);
23
+ background: var(--ak-topbar-bg);
24
+ color: var(--ak-topbar-fg);
24
25
  box-shadow: none;
25
26
  }
26
27
  body:has(> .navbar),
@@ -32,24 +33,33 @@ body:has(> * > .navbar) {
32
33
  align-items: center;
33
34
  justify-content: space-between;
34
35
  height: 100%;
35
- padding: 0 var(--ak-space-4) 0 var(--ak-space-4);
36
+ padding: 0 var(--ak-space-4) 0 0;
36
37
  }
37
38
  .navbar-header {
38
39
  display: flex;
39
40
  align-items: center;
40
41
  height: 100%;
41
42
  float: none !important;
43
+
44
+ // the brand block sits on its own (darker in Ace) cell as wide as the sidebar
45
+ &:first-child {
46
+ min-width: var(--ak-sidebar-width);
47
+ padding: 0 var(--ak-space-4);
48
+ background: var(--ak-topbar-brand-bg);
49
+ }
42
50
  }
43
51
  .navbar-brand {
44
52
  display: flex;
45
53
  align-items: center;
46
54
  height: 100%;
47
- color: var(--ak-color-text);
55
+ color: var(--ak-topbar-fg);
48
56
  font-size: var(--ak-font-size-md);
49
57
  font-weight: var(--ak-font-weight-semibold);
50
58
  text-decoration: none;
51
59
 
52
- &:hover {
60
+ &:hover,
61
+ &:focus {
62
+ color: var(--ak-topbar-fg);
53
63
  text-decoration: none;
54
64
  }
55
65
  > small {
@@ -59,7 +69,7 @@ body:has(> * > .navbar) {
59
69
  font-size: inherit;
60
70
  }
61
71
  .fa {
62
- color: var(--ak-color-muted);
72
+ color: var(--ak-topbar-muted);
63
73
  }
64
74
  }
65
75
 
@@ -86,18 +96,22 @@ body:has(> * > .navbar) {
86
96
  padding: 0 var(--ak-space-3);
87
97
  border-radius: var(--ak-radius-control);
88
98
  background: none;
89
- color: var(--ak-color-text);
99
+ color: var(--ak-topbar-fg);
90
100
  text-decoration: none;
101
+ cursor: pointer;
91
102
 
92
- &:hover {
93
- background: var(--ak-color-raised);
103
+ &:hover,
104
+ &:focus-visible {
105
+ background: var(--ak-topbar-hover);
106
+ color: var(--ak-topbar-fg);
107
+ text-decoration: none;
94
108
  }
95
109
  > .fa {
96
- color: var(--ak-color-muted);
110
+ color: var(--ak-topbar-muted);
97
111
  }
98
112
  }
99
113
  &.open > a {
100
- background: var(--ak-color-active);
114
+ background: var(--ak-topbar-hover);
101
115
  }
102
116
  }
103
117
  // Ace colour cells (light-green, light-blue, …) carried no meaning
@@ -122,7 +136,7 @@ body:has(> * > .navbar) {
122
136
  white-space: nowrap;
123
137
 
124
138
  > small {
125
- color: var(--ak-color-muted);
139
+ color: var(--ak-topbar-muted);
126
140
  font-size: var(--ak-font-size-xs);
127
141
  }
128
142
  }
@@ -147,8 +161,9 @@ body:has(> * > .navbar) {
147
161
  padding: var(--ak-space-2) 0;
148
162
  overflow-x: hidden;
149
163
  overflow-y: auto;
150
- border-right: 1px solid var(--ak-color-border);
151
- background: var(--ak-color-ground);
164
+ border-right: 1px solid var(--ak-sidebar-border);
165
+ background: var(--ak-sidebar-bg);
166
+ color: var(--ak-sidebar-fg);
152
167
  scrollbar-color: var(--ak-color-control) transparent;
153
168
  scrollbar-width: thin;
154
169
 
@@ -167,8 +182,8 @@ body:has(> * > .navbar) {
167
182
 
168
183
  > .btn {
169
184
  --_bg: transparent;
170
- --_bg-hover: var(--ak-color-active);
171
- --_fg: var(--ak-color-muted);
185
+ --_bg-hover: var(--ak-sidebar-hover);
186
+ --_fg: var(--ak-sidebar-icon);
172
187
  --_border: transparent;
173
188
  width: var(--ak-control-height);
174
189
  padding: 0;
@@ -194,29 +209,38 @@ body:has(> * > .navbar) {
194
209
  min-height: var(--ak-nav-row);
195
210
  padding: var(--ak-space-1) var(--ak-space-3);
196
211
  border-radius: var(--ak-radius-control);
197
- color: var(--ak-color-text);
212
+ color: var(--ak-sidebar-fg);
198
213
  font-size: var(--ak-font-size-md);
199
214
  line-height: var(--ak-line-height-tight);
200
215
  text-decoration: none;
201
216
 
202
217
  &:hover {
203
- background: var(--ak-color-raised);
218
+ background: var(--ak-sidebar-hover);
219
+ color: var(--ak-sidebar-fg);
204
220
  text-decoration: none;
205
221
  }
206
222
  > .fa:first-child,
207
223
  > [class^='icon-']:first-child {
208
224
  flex: none;
209
225
  width: 16px;
210
- color: var(--ak-color-muted);
226
+ color: var(--ak-sidebar-icon);
211
227
  font-size: 14px;
212
228
  text-align: center;
213
229
  }
214
230
  }
215
231
  > li.active > a,
216
232
  .submenu > li.active > a {
217
- background: var(--ak-color-active);
218
- font-weight: var(--ak-font-weight-medium);
233
+ background: var(--ak-nav-active-bg);
234
+ color: var(--ak-nav-active-fg);
235
+ font-weight: var(--ak-nav-active-weight);
236
+ box-shadow:
237
+ inset 0 1px 0 var(--ak-nav-active-rule),
238
+ inset 0 -1px 0 var(--ak-nav-active-rule);
219
239
 
240
+ > .fa:first-child,
241
+ > [class^='icon-']:first-child {
242
+ color: var(--ak-nav-active-icon);
243
+ }
220
244
  &::after {
221
245
  display: none; // Ace's blue arrow on the active item
222
246
  }
@@ -224,7 +248,13 @@ body:has(> * > .navbar) {
224
248
  // a group whose child is active is open, but not highlighted itself
225
249
  > li.active.open > a:has(+ .submenu) {
226
250
  background: none;
251
+ color: var(--ak-sidebar-fg);
227
252
  font-weight: var(--ak-font-weight-regular);
253
+ box-shadow: none;
254
+
255
+ > .fa:first-child {
256
+ color: var(--ak-sidebar-icon);
257
+ }
228
258
  }
229
259
  .menu-text {
230
260
  flex: 1 1 auto;
@@ -246,11 +276,14 @@ body:has(> * > .navbar) {
246
276
  padding: 0 0 0 var(--ak-space-6);
247
277
  list-style: none;
248
278
 
249
- .open > & {
279
+ // Ace's own scripts open submenus with jQuery slideToggle() right after toggling .open — if CSS also
280
+ // showed .open > .submenu, the first click would slide it shut. Only the kit's Ace behaviour
281
+ // (initCompat({ ace: true }), which marks <html data-ak-ace-nav>) relies on the class.
282
+ :root[data-ak-ace-nav] .open > & {
250
283
  display: block;
251
284
  }
252
285
  > li > a {
253
- color: var(--ak-color-muted);
286
+ color: color-mix(in srgb, var(--ak-sidebar-fg) 80%, var(--ak-sidebar-bg));
254
287
 
255
288
  > .fa-double-angle-right,
256
289
  > .fa-angle-double-right {
@@ -258,7 +291,7 @@ body:has(> * > .navbar) {
258
291
  }
259
292
  }
260
293
  > li.active > a {
261
- color: var(--ak-color-text);
294
+ color: var(--ak-nav-active-fg);
262
295
  }
263
296
  }
264
297
 
@@ -296,6 +329,7 @@ body:has(> * > .navbar) {
296
329
  min-height: calc(100vh - var(--ak-topbar-height));
297
330
  margin-left: var(--ak-sidebar-width);
298
331
  padding: 0;
332
+ background: var(--ak-main-bg);
299
333
  }
300
334
  .breadcrumbs {
301
335
  position: static !important;
@@ -318,9 +352,9 @@ body:has(> * > .navbar) {
318
352
 
319
353
  h1 {
320
354
  margin: 0;
321
- color: var(--ak-color-text);
355
+ color: var(--ak-page-title-color);
322
356
  font-size: var(--ak-font-size-2xl);
323
- font-weight: var(--ak-font-weight-semibold);
357
+ font-weight: var(--ak-page-title-weight);
324
358
  line-height: var(--ak-line-height-tight);
325
359
 
326
360
  small {
@@ -108,3 +108,47 @@
108
108
  border-right: 1px solid var(--ak-color-rule);
109
109
  background: var(--ak-color-raised);
110
110
  }
111
+
112
+ // CodeMirror follows the kit surface; in dark mode the default syntax colours get readable variants
113
+ .CodeMirror {
114
+ background: var(--ak-color-surface);
115
+ color: var(--ak-color-text);
116
+ }
117
+ .CodeMirror-cursor {
118
+ border-left-color: var(--ak-color-text);
119
+ }
120
+ .CodeMirror-scrollbar-filler,
121
+ .CodeMirror-gutter-filler {
122
+ background: var(--ak-color-raised);
123
+ }
124
+ :root:is([data-ak-mode='dark'], [data-ak-theme='dark']) .cm-s-default {
125
+ .cm-tag {
126
+ color: #7fb4ff;
127
+ }
128
+ .cm-attribute {
129
+ color: #c3a6ff;
130
+ }
131
+ .cm-string {
132
+ color: #f0a7a1;
133
+ }
134
+ .cm-keyword {
135
+ color: #e6a0ff;
136
+ }
137
+ .cm-comment {
138
+ color: #8b949e;
139
+ }
140
+ .cm-number,
141
+ .cm-atom {
142
+ color: #79c0ff;
143
+ }
144
+ .cm-variable-2,
145
+ .cm-def {
146
+ color: #a5d6ff;
147
+ }
148
+ .CodeMirror-selected {
149
+ background: #264f78;
150
+ }
151
+ .CodeMirror-linenumber {
152
+ color: var(--ak-color-faint);
153
+ }
154
+ }
@@ -0,0 +1,77 @@
1
+ // Ace palette for legacy markup — only under <html data-ak-theme="ace">. The neutral theme keeps colour
2
+ // on data (docs/PRINCIPLES.md §2); the Ace theme brings back Ace Admin's coloured buttons, sidebar
3
+ // shortcuts and solid status labels (values from the Ace v3 demo), in light and dark mode alike.
4
+
5
+ @mixin fill($bg) {
6
+ --_bg: #{$bg};
7
+ --_bg-hover: color-mix(in srgb, #{$bg} 86%, black);
8
+ --_fg: #ffffff;
9
+ --_border: transparent;
10
+ }
11
+
12
+ :root[data-ak-theme='ace'] {
13
+ // ---- buttons
14
+ .btn.btn-success {
15
+ @include fill(#3f923f);
16
+ }
17
+ .btn.btn-info {
18
+ @include fill(#008bb2);
19
+ }
20
+ .btn.btn-warning {
21
+ @include fill(#e57f00);
22
+ }
23
+ .btn.btn-danger:not(.dropdown-toggle) {
24
+ @include fill(#df4b30);
25
+ }
26
+ .btn.btn-inverse {
27
+ @include fill(#41464d);
28
+ }
29
+
30
+ // ---- the four shortcut buttons at the top of the sidebar
31
+ .sidebar-shortcuts-large > .btn {
32
+ width: 44px;
33
+ height: 36px;
34
+
35
+ &:nth-child(1) {
36
+ @include fill(#3f923f);
37
+ }
38
+ &:nth-child(2) {
39
+ @include fill(#008bb2);
40
+ }
41
+ &:nth-child(3) {
42
+ @include fill(#ff8d03);
43
+ }
44
+ &:nth-child(4) {
45
+ @include fill(#df4b30);
46
+ }
47
+ }
48
+
49
+ // ---- solid status labels (white text), as in Ace tables
50
+ .label-info {
51
+ --_bg: #00a4d2;
52
+ --_fg: #ffffff;
53
+ }
54
+ .label-primary {
55
+ --_bg: #2c86d1;
56
+ --_fg: #ffffff;
57
+ }
58
+ .label-success {
59
+ --_bg: #4f9f4f;
60
+ --_fg: #ffffff;
61
+ }
62
+ .label-danger,
63
+ .label-important {
64
+ --_bg: #da4e35;
65
+ --_fg: #ffffff;
66
+ }
67
+ .label-warning {
68
+ --_bg: #e57f00;
69
+ --_fg: #ffffff;
70
+ }
71
+ .label-grey,
72
+ .label-default,
73
+ .label-light {
74
+ --_bg: #d3dadf;
75
+ --_fg: rgb(0 0 0 / 70%);
76
+ }
77
+ }
@@ -16,4 +16,5 @@
16
16
  @use 'widgets';
17
17
  @use 'layout';
18
18
  @use 'utilities';
19
+ @use 'theme-ace';
19
20
  @use 'plugins';
@@ -0,0 +1,199 @@
1
+ @use '../breakpoints' as bp;
2
+
3
+ // Sign-in screen: a card split in two — a picture on the left, the form on the right (Ace-style).
4
+ //
5
+ // <main class="ak-auth">
6
+ // <div class="ak-auth__card">
7
+ // <figure class="ak-auth__media">
8
+ // <img class="ak-auth__image" src="…" alt="Озеро Байкал зимой"> (fades in when loaded: data-loaded)
9
+ // <div class="ak-auth__brand"><img src="logo.png" alt=""> Смарт-ЭК</div>
10
+ // <figcaption class="ak-auth__caption">
11
+ // <span class="ak-auth__place">Байкал</span>
12
+ // <a class="ak-auth__credit" href="…">Фото: Сергей Пестерев · CC BY-SA 4.0</a>
13
+ // </figcaption>
14
+ // </figure>
15
+ // <section class="ak-auth__panel">
16
+ // <header class="ak-auth__header"><h1 class="ak-auth__title">Вход</h1><p class="ak-auth__lead">…</p></header>
17
+ // <form class="ak-form">…</form>
18
+ // <p class="ak-auth__footer">…</p>
19
+ // </section>
20
+ // </div>
21
+ // </main>
22
+ //
23
+ // Without a picture (no JS, no image) the media half stays a calm dark panel with the brand.
24
+ // Under 768px the media half is hidden and the form fills the card.
25
+
26
+ .ak-auth {
27
+ display: grid;
28
+ place-items: center;
29
+ min-height: 100vh;
30
+ min-height: 100dvh;
31
+ margin: 0;
32
+ padding: var(--ak-space-8) var(--ak-space-4);
33
+ background: var(--ak-auth-bg);
34
+ color: var(--ak-color-text);
35
+ font-family: var(--ak-font-family);
36
+ font-size: var(--ak-font-size-md);
37
+ line-height: var(--ak-line-height);
38
+
39
+ @include bp.down(sm) {
40
+ align-items: start;
41
+ padding: var(--ak-space-4) var(--ak-space-3);
42
+ }
43
+ }
44
+
45
+ .ak-auth__card {
46
+ display: grid;
47
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
48
+ width: min(1020px, 100%);
49
+ min-height: 560px;
50
+ overflow: hidden;
51
+ border: 1px solid var(--ak-color-border);
52
+ border-radius: var(--ak-radius-card);
53
+ background: var(--ak-color-surface);
54
+ box-shadow: var(--ak-shadow-dialog);
55
+
56
+ @include bp.down(sm) {
57
+ grid-template-columns: minmax(0, 1fr);
58
+ min-height: 0;
59
+ }
60
+ }
61
+
62
+ // ---- picture half
63
+ .ak-auth__media {
64
+ position: relative;
65
+ margin: 0;
66
+ overflow: hidden;
67
+ background: var(--ak-auth-media-bg);
68
+ color: #ffffff;
69
+
70
+ // legibility: darken the top (brand) and the bottom (caption) of any photo
71
+ &::after {
72
+ position: absolute;
73
+ inset: 0;
74
+ background: linear-gradient(
75
+ to bottom,
76
+ rgb(0 0 0 / 45%) 0%,
77
+ rgb(0 0 0 / 0%) 28%,
78
+ rgb(0 0 0 / 0%) 62%,
79
+ rgb(0 0 0 / 60%) 100%
80
+ );
81
+ content: '';
82
+ pointer-events: none;
83
+ }
84
+
85
+ @include bp.down(sm) {
86
+ display: none;
87
+ }
88
+ }
89
+ .ak-auth__image {
90
+ position: absolute;
91
+ inset: 0;
92
+ width: 100%;
93
+ height: 100%;
94
+ object-fit: cover;
95
+ opacity: 0;
96
+ transition: opacity 600ms ease;
97
+
98
+ &[data-loaded] {
99
+ opacity: 1;
100
+ }
101
+ @media (prefers-reduced-motion: reduce) {
102
+ transition: none;
103
+ }
104
+ }
105
+ .ak-auth__brand {
106
+ position: absolute;
107
+ top: var(--ak-space-6);
108
+ left: var(--ak-space-6);
109
+ z-index: 1;
110
+ display: flex;
111
+ align-items: center;
112
+ gap: var(--ak-space-3);
113
+ font-size: var(--ak-font-size-xl);
114
+ font-weight: var(--ak-font-weight-semibold);
115
+ text-shadow: 0 1px 2px rgb(0 0 0 / 40%);
116
+
117
+ img {
118
+ width: 40px;
119
+ height: 40px;
120
+ border-radius: var(--ak-radius-control);
121
+ }
122
+ small {
123
+ display: block;
124
+ font-size: var(--ak-font-size-sm);
125
+ font-weight: var(--ak-font-weight-regular);
126
+ opacity: 0.85;
127
+ }
128
+ }
129
+ .ak-auth__caption {
130
+ position: absolute;
131
+ right: var(--ak-space-6);
132
+ bottom: var(--ak-space-5);
133
+ left: var(--ak-space-6);
134
+ z-index: 1;
135
+ display: grid;
136
+ gap: 2px;
137
+ text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
138
+ }
139
+ .ak-auth__place {
140
+ font-size: var(--ak-font-size-lg);
141
+ font-weight: var(--ak-font-weight-semibold);
142
+ }
143
+ .ak-auth__credit {
144
+ color: rgb(255 255 255 / 80%);
145
+ font-size: var(--ak-font-size-xs);
146
+ text-decoration: none;
147
+
148
+ &:hover {
149
+ color: #ffffff;
150
+ text-decoration: underline;
151
+ }
152
+ }
153
+
154
+ // ---- form half
155
+ .ak-auth__panel {
156
+ display: flex;
157
+ flex-direction: column;
158
+ justify-content: center;
159
+ padding: var(--ak-space-12) var(--ak-space-10);
160
+
161
+ // one centred column; the extra class keeps it over legacy margins (e.g. compat .alert)
162
+ .ak-auth & > * {
163
+ width: 100%;
164
+ max-width: 340px;
165
+ margin-right: auto;
166
+ margin-left: auto;
167
+ }
168
+ .ak-auth & > .alert,
169
+ .ak-auth & > .ak-alert,
170
+ .ak-auth & > .ak-auth__alerts {
171
+ margin-bottom: var(--ak-space-4);
172
+ }
173
+ @include bp.down(md) {
174
+ padding: var(--ak-space-8) var(--ak-space-6);
175
+ }
176
+ }
177
+ .ak-auth__header {
178
+ margin-bottom: var(--ak-space-6);
179
+ }
180
+ .ak-auth__title {
181
+ margin: 0;
182
+ color: var(--ak-page-title-color);
183
+ font-size: var(--ak-font-size-2xl);
184
+ font-weight: var(--ak-page-title-weight);
185
+ line-height: var(--ak-line-height-tight);
186
+ }
187
+ .ak-auth__lead {
188
+ margin: var(--ak-space-1) 0 0;
189
+ color: var(--ak-color-muted);
190
+ }
191
+ .ak-auth__footer {
192
+ margin-top: var(--ak-space-6);
193
+ color: var(--ak-color-muted);
194
+ font-size: var(--ak-font-size-sm);
195
+ text-align: center;
196
+ }
197
+ .ak-auth__alerts > :last-child {
198
+ margin-bottom: 0;
199
+ }
@@ -27,3 +27,10 @@
27
27
  order: 1;
28
28
  }
29
29
  }
30
+
31
+ // light/dark toggle: show the icon for the mode you'd switch to (moon in light, sun in dark)
32
+ :root:not([data-ak-mode='dark']):not([data-ak-theme='dark']) [data-ak-mode-icon='dark'],
33
+ :root[data-ak-mode='dark'] [data-ak-mode-icon='light'],
34
+ :root[data-ak-theme='dark'] [data-ak-mode-icon='light'] {
35
+ display: none !important;
36
+ }
@@ -50,8 +50,14 @@
50
50
  gap: var(--ak-space-3);
51
51
  height: var(--ak-topbar-height);
52
52
  padding: 0 var(--ak-space-4);
53
- border-bottom: 1px solid var(--ak-color-border);
54
- background: var(--ak-color-surface);
53
+ border-bottom: 1px solid var(--ak-topbar-border);
54
+ background: var(--ak-topbar-bg);
55
+ color: var(--ak-topbar-fg);
56
+
57
+ .ak-btn--ghost {
58
+ --_fg: var(--ak-topbar-fg);
59
+ --_bg-hover: var(--ak-topbar-hover);
60
+ }
55
61
  }
56
62
  .ak-topbar__menu {
57
63
  display: none;
@@ -60,11 +66,12 @@
60
66
  display: flex;
61
67
  align-items: center;
62
68
  gap: var(--ak-space-2);
63
- color: var(--ak-color-text);
69
+ color: var(--ak-topbar-fg);
64
70
  font-weight: var(--ak-font-weight-semibold);
65
71
  text-decoration: none;
66
72
 
67
73
  &:hover {
74
+ color: var(--ak-topbar-fg);
68
75
  text-decoration: none;
69
76
  }
70
77
  }
@@ -80,7 +87,7 @@
80
87
  font-weight: var(--ak-font-weight-bold);
81
88
  }
82
89
  .ak-topbar__scope {
83
- color: var(--ak-color-muted);
90
+ color: var(--ak-topbar-muted);
84
91
  font-size: var(--ak-font-size-md);
85
92
 
86
93
  &::before {
@@ -104,8 +111,9 @@
104
111
  height: calc(100vh - var(--ak-topbar-height));
105
112
  padding: var(--ak-space-3) var(--ak-space-2) var(--ak-space-6);
106
113
  overflow-y: auto;
107
- border-right: 1px solid var(--ak-color-border);
108
- background: var(--ak-color-ground);
114
+ border-right: 1px solid var(--ak-sidebar-border);
115
+ background: var(--ak-sidebar-bg);
116
+ color: var(--ak-sidebar-fg);
109
117
  scrollbar-color: var(--ak-color-control) transparent;
110
118
  scrollbar-width: thin;
111
119
  }
@@ -129,7 +137,7 @@
129
137
  min-height: var(--ak-nav-row);
130
138
  padding: var(--ak-space-1) var(--ak-space-3);
131
139
  border-radius: var(--ak-radius-control);
132
- color: var(--ak-color-text);
140
+ color: var(--ak-sidebar-fg);
133
141
  font-size: var(--ak-font-size-md);
134
142
  line-height: var(--ak-line-height-tight);
135
143
  text-decoration: none;
@@ -140,13 +148,13 @@
140
148
  display: none;
141
149
  }
142
150
  > .ak-icon {
143
- color: var(--ak-color-muted);
151
+ color: var(--ak-sidebar-icon);
144
152
  }
145
153
  > .ak-badge {
146
154
  margin-left: auto;
147
155
  }
148
156
  &:hover {
149
- background: var(--ak-color-raised);
157
+ background: var(--ak-sidebar-hover);
150
158
  text-decoration: none;
151
159
  }
152
160
  &:focus-visible {
@@ -154,14 +162,22 @@
154
162
  box-shadow: var(--ak-focus-ring);
155
163
  }
156
164
  &[aria-current='page'] {
157
- background: var(--ak-color-active);
158
- font-weight: var(--ak-font-weight-medium);
165
+ background: var(--ak-nav-active-bg);
166
+ color: var(--ak-nav-active-fg);
167
+ font-weight: var(--ak-nav-active-weight);
168
+ box-shadow:
169
+ inset 0 1px 0 var(--ak-nav-active-rule),
170
+ inset 0 -1px 0 var(--ak-nav-active-rule);
171
+
172
+ > .ak-icon {
173
+ color: var(--ak-nav-active-icon);
174
+ }
159
175
  }
160
176
  .ak-nav .ak-nav & {
161
- color: var(--ak-color-muted);
177
+ color: color-mix(in srgb, var(--ak-sidebar-fg) 80%, var(--ak-sidebar-bg));
162
178
 
163
179
  &[aria-current='page'] {
164
- color: var(--ak-color-text);
180
+ color: var(--ak-nav-active-fg);
165
181
  }
166
182
  }
167
183
  }
@@ -192,6 +208,7 @@
192
208
  .ak-main {
193
209
  grid-area: main;
194
210
  min-width: 0;
211
+ background: var(--ak-main-bg);
195
212
  padding: var(--ak-space-4) var(--ak-space-6) var(--ak-space-10);
196
213
  }
197
214
 
@@ -233,9 +250,9 @@
233
250
  }
234
251
  .ak-page-header__title {
235
252
  margin: 0;
236
- color: var(--ak-color-text);
253
+ color: var(--ak-page-title-color);
237
254
  font-size: var(--ak-font-size-2xl);
238
- font-weight: var(--ak-font-weight-semibold);
255
+ font-weight: var(--ak-page-title-weight);
239
256
  line-height: var(--ak-line-height-tight);
240
257
  }
241
258
  .ak-page-header__lead {
@@ -13,3 +13,4 @@
13
13
  @use 'components/overlay';
14
14
  @use 'components/shell';
15
15
  @use 'components/feedback';
16
+ @use 'components/auth';
@@ -4,6 +4,7 @@
4
4
  border: 1px solid var(--ak-color-border);
5
5
  border-radius: var(--ak-radius-card);
6
6
  background: var(--ak-color-surface);
7
+ box-shadow: var(--ak-card-shadow);
7
8
  }
8
9
 
9
10
  @mixin header {