keystone_ui-styles 0.5.0 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4865024c95ea2eab6c71aceb4047def052b27aed1b0ca16848c4cfedf4046742
4
- data.tar.gz: 564646b1320c31fc79494bf3f8a80cce40525336de6def1e3a1684f6d669e8fd
3
+ metadata.gz: 9ad7572e17ad6ad7c6e9b1fbf6ee4f4767ce5e1e5089556c0f468356b4e9ad34
4
+ data.tar.gz: df35a5ae5770ca2f9c7462b04ceace38656ae1344abbbe662945b4dc1314da9c
5
5
  SHA512:
6
- metadata.gz: 4d3fdf1c9429b1bd465c3693da8ff2092263e7e883962d31d32fd5cce2c91ecc9395d84452307f77ee953e44a7b27789c3e735fabda5b50932de25b8c0420889
7
- data.tar.gz: f5508779eb84ad00a0cf33ad2f1ba86ec072356e404622b483336185bfb3b0c155a393d771bed8d0c8703db3dd8c7a7c2d8309eccabf281b967582dcdd6b2a6e
6
+ metadata.gz: 9334339a02553548b8927756437f53902489bc6cf7adb0ee19d8597a1c254c808e04e03aa1510e1add5f9ce239cc8f4daf811d60064d4e61823b4ee83994a151
7
+ data.tar.gz: e5524b27ca4d6ff98a1bfe7eb0ab10043fed2e4e32239b10e0466b57f6cf3c63b527e7287ccae0a30a8f9b7b8decc4f19362e9422c18a2941664775599a220e4
@@ -68,6 +68,7 @@
68
68
  @layer base {
69
69
  :root {
70
70
  --ks-radius-control: var(--radius-lg);
71
+ --ks-font-body: inherit;
71
72
  --ks-font-weight-strong: var(--font-weight-semibold);
72
73
  --ks-border-width-control: 0px;
73
74
  --ks-spacing: var(--spacing);
@@ -243,6 +244,11 @@
243
244
  --ks-font-weight-normal: var(--font-weight-normal);
244
245
  --ks-color-hover-soft: var(--color-gray-50);
245
246
  --ks-color-hover-soft-dark: var(--color-gray-800);
247
+ --ks-color-focus-dark: var(--color-accent-400);
248
+ --ks-color-link-strong-hover: var(--color-accent-900);
249
+ --ks-color-link-strong-hover-dark: var(--color-accent-300);
250
+ --ks-color-badge-neutral: var(--color-gray-100);
251
+ --ks-color-badge-neutral-dark: var(--color-zinc-700);
246
252
  }
247
253
  }
248
254
 
@@ -276,35 +282,35 @@
276
282
  }
277
283
 
278
284
  .ks-panel {
279
- @apply border border-(color:--ks-color-border) bg-(color:--ks-color-surface) dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-dark);
285
+ @apply border-(length:--ks-border-width) border-(color:--ks-color-border) bg-(color:--ks-color-surface) dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-dark);
280
286
  }
281
287
 
282
288
  .ks-input {
283
- @apply block w-full rounded-[calc(var(--ks-radius-control)*0.75)] border border-(color:--ks-color-border-control) bg-(color:--ks-color-surface) px-[calc(var(--ks-spacing)*3)] py-[calc(var(--ks-spacing)*2)] text-sm text-(color:--ks-color-text) placeholder:text-gray-400 focus:outline-none focus:ring-1 focus:border-accent-500 focus:ring-accent-500 dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-control-dark) dark:text-(color:--ks-color-text-dark) dark:placeholder:text-gray-500 dark:focus:border-accent-400 dark:focus:ring-accent-400;
289
+ @apply block w-full rounded-[calc(var(--ks-radius-control)*0.75)] border-(length:--ks-border-width) border-(color:--ks-color-border-control) bg-(color:--ks-color-surface) px-[calc(var(--ks-spacing)*3)] py-[calc(var(--ks-spacing)*2)] text-sm text-(color:--ks-color-text) placeholder:text-(color:--ks-color-icon) focus:outline-none focus:ring-(length:--ks-border-width) focus:border-(color:--ks-color-focus) focus:ring-(color:--ks-color-focus) dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-control-dark) dark:text-(color:--ks-color-text-dark) dark:placeholder:text-(color:--ks-color-icon-dark) dark:focus:border-(color:--ks-color-focus-dark) dark:focus:ring-(color:--ks-color-focus-dark);
284
290
  }
285
291
 
286
292
  .ks-input-disabled {
287
- @apply cursor-not-allowed bg-gray-50 text-gray-500 dark:bg-zinc-800 dark:text-gray-400;
293
+ @apply cursor-not-allowed bg-(color:--ks-color-hover) text-(color:--ks-color-text-muted) dark:bg-(color:--ks-color-hover-dark) dark:text-(color:--ks-color-text-muted-dark);
288
294
  }
289
295
 
290
296
  .ks-label {
291
- @apply block text-sm font-medium text-(color:--ks-color-text-label) dark:text-(color:--ks-color-text-label-dark);
297
+ @apply block text-sm font-(weight:--ks-font-weight-medium) text-(color:--ks-color-text-label) dark:text-(color:--ks-color-text-label-dark);
292
298
  }
293
299
 
294
300
  .ks-required {
295
- @apply text-red-500 ml-0.5;
301
+ @apply text-(color:--ks-color-danger-500) ml-[calc(var(--ks-spacing)*0.5)];
296
302
  }
297
303
 
298
304
  .ks-hint {
299
- @apply mt-1 text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark);
305
+ @apply mt-[calc(var(--ks-spacing)*1)] text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark);
300
306
  }
301
307
 
302
308
  .ks-error {
303
- @apply mt-1 text-sm text-red-600 dark:text-red-400;
309
+ @apply mt-[calc(var(--ks-spacing)*1)] text-sm text-(color:--ks-color-danger-600) dark:text-(color:--ks-color-danger-400);
304
310
  }
305
311
 
306
312
  .ks-checkbox {
307
- @apply rounded border-gray-300 text-accent-600 focus:ring-accent-500 dark:border-zinc-600 dark:bg-zinc-900;
313
+ @apply rounded-[calc(var(--ks-radius-control)*0.5)] border-(color:--ks-color-border-strong) text-(color:--ks-color-accent) focus:ring-(color:--ks-color-focus) dark:border-(color:--ks-color-border-strong-dark) dark:bg-(color:--ks-color-surface-dark);
308
314
  }
309
315
 
310
316
  .ks-page {
@@ -328,23 +334,23 @@
328
334
  }
329
335
 
330
336
  .ks-page-offset-sm {
331
- @apply pt-12;
337
+ @apply pt-[calc(var(--ks-spacing)*12)];
332
338
  }
333
339
 
334
340
  .ks-page-offset-md {
335
- @apply pt-16;
341
+ @apply pt-[calc(var(--ks-spacing)*16)];
336
342
  }
337
343
 
338
344
  .ks-page-offset-lg {
339
- @apply pt-20;
345
+ @apply pt-[calc(var(--ks-spacing)*20)];
340
346
  }
341
347
 
342
348
  .ks-page-offset-xl {
343
- @apply pt-24;
349
+ @apply pt-[calc(var(--ks-spacing)*24)];
344
350
  }
345
351
 
346
352
  .ks-page-header {
347
- @apply hidden sm:block mb-6 sm:flex sm:items-center sm:justify-between;
353
+ @apply hidden sm:block mb-[calc(var(--ks-spacing)*6)] sm:flex sm:items-center sm:justify-between;
348
354
  }
349
355
 
350
356
  .ks-page-header-title {
@@ -352,27 +358,27 @@
352
358
  }
353
359
 
354
360
  .ks-page-header-subtitle {
355
- @apply mt-1 text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark);
361
+ @apply mt-[calc(var(--ks-spacing)*1)] text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark);
356
362
  }
357
363
 
358
364
  .ks-page-header-actions {
359
- @apply hidden sm:block mt-4 sm:mt-0 sm:ml-4 flex-shrink-0;
365
+ @apply hidden sm:block mt-[calc(var(--ks-spacing)*4)] sm:mt-0 sm:ml-[calc(var(--ks-spacing)*4)] flex-shrink-0;
360
366
  }
361
367
 
362
368
  .ks-section-sm {
363
- @apply mt-4;
369
+ @apply mt-[calc(var(--ks-spacing)*4)];
364
370
  }
365
371
 
366
372
  .ks-section-md {
367
- @apply mt-6;
373
+ @apply mt-[calc(var(--ks-spacing)*6)];
368
374
  }
369
375
 
370
376
  .ks-section-lg {
371
- @apply mt-8;
377
+ @apply mt-[calc(var(--ks-spacing)*8)];
372
378
  }
373
379
 
374
380
  .ks-section-header {
375
- @apply flex items-center justify-between mb-4;
381
+ @apply flex items-center justify-between mb-[calc(var(--ks-spacing)*4)];
376
382
  }
377
383
 
378
384
  .ks-section-title {
@@ -380,19 +386,19 @@
380
386
  }
381
387
 
382
388
  .ks-section-subtitle {
383
- @apply mt-1 text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark);
389
+ @apply mt-[calc(var(--ks-spacing)*1)] text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark);
384
390
  }
385
391
 
386
392
  .ks-section-action {
387
- @apply text-sm text-accent-600 hover:text-accent-900 dark:text-accent-400 dark:hover:text-accent-300;
393
+ @apply text-sm text-(color:--ks-color-link) hover:text-(color:--ks-color-link-strong-hover) dark:text-(color:--ks-color-link-dark) dark:hover:text-(color:--ks-color-link-strong-hover-dark);
388
394
  }
389
395
 
390
396
  .ks-card {
391
- @apply overflow-hidden rounded-(--ks-radius-surface) border border-(color:--ks-color-border) bg-(color:--ks-color-surface) dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-dark);
397
+ @apply overflow-hidden rounded-(--ks-radius-surface) border-(length:--ks-border-width) border-(color:--ks-color-border) bg-(color:--ks-color-surface) dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-dark);
392
398
  }
393
399
 
394
400
  .ks-card-edge {
395
- @apply overflow-hidden border-y border-(color:--ks-color-border) bg-(color:--ks-color-surface) sm:rounded-(--ks-radius-surface) sm:border-x dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-dark);
401
+ @apply overflow-hidden border-y-(length:--ks-border-width) border-(color:--ks-color-border) bg-(color:--ks-color-surface) sm:rounded-(--ks-radius-surface) sm:border-x-(length:--ks-border-width) dark:bg-(color:--ks-color-surface-dark) dark:border-(color:--ks-color-border-dark);
396
402
  }
397
403
 
398
404
  .ks-card-body {
@@ -404,7 +410,7 @@
404
410
  }
405
411
 
406
412
  .ks-card-summary {
407
- @apply mt-1 text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark) mb-0;
413
+ @apply mt-[calc(var(--ks-spacing)*1)] text-sm text-(color:--ks-color-text-muted) dark:text-(color:--ks-color-text-muted-dark) mb-0;
408
414
  }
409
415
 
410
416
  .ks-card-cta {
@@ -412,7 +418,7 @@
412
418
  }
413
419
 
414
420
  .ks-card-link {
415
- @apply text-sm font-medium no-underline text-accent-600 hover:text-accent-900 dark:text-accent-400;
421
+ @apply text-sm font-(weight:--ks-font-weight-medium) no-underline text-(color:--ks-color-link) hover:text-(color:--ks-color-link-strong-hover) dark:text-(color:--ks-color-link-dark);
416
422
  }
417
423
 
418
424
  .ks-alert {
@@ -452,19 +458,19 @@
452
458
  }
453
459
 
454
460
  .ks-alert-message-titled {
455
- @apply text-sm mt-1;
461
+ @apply text-sm mt-[calc(var(--ks-spacing)*1)];
456
462
  }
457
463
 
458
464
  .ks-alert-dismiss {
459
- @apply ml-auto -mr-1.5 -mt-1.5 inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer;
465
+ @apply ml-auto -mr-[calc(var(--ks-spacing)*1.5)] -mt-[calc(var(--ks-spacing)*1.5)] inline-flex rounded-[calc(var(--ks-radius-control)*0.75)] p-[calc(var(--ks-spacing)*1.5)] focus:outline-none focus:ring-[length:calc(var(--ks-border-width)*2)] focus:ring-offset-[calc(var(--ks-border-width)*2)] cursor-pointer;
460
466
  }
461
467
 
462
468
  .ks-badge {
463
- @apply inline-flex items-center rounded-full px-2 py-1 text-xs font-medium;
469
+ @apply inline-flex items-center rounded-(--ks-radius-pill) px-[calc(var(--ks-spacing)*2)] py-[calc(var(--ks-spacing)*1)] text-xs font-(weight:--ks-font-weight-medium);
464
470
  }
465
471
 
466
472
  .ks-badge-neutral {
467
- @apply bg-gray-100 text-gray-700 dark:bg-zinc-700 dark:text-gray-300;
473
+ @apply bg-(color:--ks-color-badge-neutral) text-(color:--ks-color-text-label) dark:bg-(color:--ks-color-badge-neutral-dark) dark:text-(color:--ks-color-text-label-dark);
468
474
  }
469
475
 
470
476
  .ks-badge-success {
@@ -1190,4 +1196,80 @@
1190
1196
  .hotwire-native main {
1191
1197
  padding-bottom: 0;
1192
1198
  }
1199
+
1200
+ .ks-grid-gap-sm {
1201
+ @apply gap-[calc(var(--ks-spacing)*3)];
1202
+ }
1203
+
1204
+ .ks-grid-gap-x-sm {
1205
+ @apply gap-x-[calc(var(--ks-spacing)*3)];
1206
+ }
1207
+
1208
+ .ks-grid-gap-y-sm {
1209
+ @apply gap-y-[calc(var(--ks-spacing)*3)];
1210
+ }
1211
+
1212
+ .ks-grid-gap-md {
1213
+ @apply gap-[calc(var(--ks-spacing)*4)];
1214
+ }
1215
+
1216
+ .ks-grid-gap-x-md {
1217
+ @apply gap-x-[calc(var(--ks-spacing)*4)];
1218
+ }
1219
+
1220
+ .ks-grid-gap-y-md {
1221
+ @apply gap-y-[calc(var(--ks-spacing)*4)];
1222
+ }
1223
+
1224
+ .ks-grid-gap-lg {
1225
+ @apply gap-[calc(var(--ks-spacing)*6)];
1226
+ }
1227
+
1228
+ .ks-grid-gap-x-lg {
1229
+ @apply gap-x-[calc(var(--ks-spacing)*6)];
1230
+ }
1231
+
1232
+ .ks-grid-gap-y-lg {
1233
+ @apply gap-y-[calc(var(--ks-spacing)*6)];
1234
+ }
1235
+
1236
+ .ks-grid-gap-xl {
1237
+ @apply gap-[calc(var(--ks-spacing)*8)];
1238
+ }
1239
+
1240
+ .ks-grid-gap-x-xl {
1241
+ @apply gap-x-[calc(var(--ks-spacing)*8)];
1242
+ }
1243
+
1244
+ .ks-grid-gap-y-xl {
1245
+ @apply gap-y-[calc(var(--ks-spacing)*8)];
1246
+ }
1247
+
1248
+ .ks-form {
1249
+ @apply space-y-[calc(var(--ks-spacing)*6)];
1250
+ }
1251
+
1252
+ .ks-form-field {
1253
+ @apply space-y-[calc(var(--ks-spacing)*1)];
1254
+ }
1255
+
1256
+ .ks-form-field-checkbox {
1257
+ @apply gap-[calc(var(--ks-spacing)*2)];
1258
+ }
1259
+
1260
+ .ks-theme-toggle {
1261
+ @apply gap-[calc(var(--ks-spacing)*1)];
1262
+ }
1263
+
1264
+ .ks-color-picker-label {
1265
+ @apply mb-[calc(var(--ks-spacing)*1)];
1266
+ }
1267
+
1268
+ .ks-settings-link-chevron {
1269
+ @apply text-(color:--ks-color-close);
1270
+ }
1271
+
1272
+ .ks-page-title {
1273
+ @apply font-(weight:--ks-font-weight-heading) text-(color:--ks-color-text) dark:text-(color:--ks-color-text-dark);
1274
+ }
1193
1275
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module KeystoneUi
4
4
  module Styles
5
- VERSION = "0.5.0"
5
+ VERSION = "0.6.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keystone_ui-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Schneider