bank20baht-ui 0.2.0 → 0.2.1
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/tokens.css +2 -99
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/tokens.css
CHANGED
|
@@ -272,8 +272,8 @@
|
|
|
272
272
|
|
|
273
273
|
/* ============================================================
|
|
274
274
|
Dark theme — "20baht-dark". Opt in with [data-baht-theme="dark"] (or the
|
|
275
|
-
.baht-dark class) on <html> or any wrapper
|
|
276
|
-
|
|
275
|
+
.baht-dark class) on <html> or any wrapper. Default (no attribute) is
|
|
276
|
+
light — dark never activates from OS preference alone.
|
|
277
277
|
============================================================ */
|
|
278
278
|
|
|
279
279
|
[data-baht-theme='dark'],
|
|
@@ -372,103 +372,6 @@
|
|
|
372
372
|
--baht-shadow-float: 0 4px 16px rgba(0, 0, 0, 0.5), 0 24px 48px -8px rgba(0, 0, 0, 0.6);
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
@media (prefers-color-scheme: dark) {
|
|
376
|
-
:root:not([data-baht-theme='light']):not(.baht-light) {
|
|
377
|
-
/* The ramps re-anchor for a near-black canvas; every semantic token above
|
|
378
|
-
derives from them, so only the values that genuinely invert are listed. */
|
|
379
|
-
--baht-green-50: #1F2A16; /* success tint */
|
|
380
|
-
--baht-green-100: #24301A;
|
|
381
|
-
--baht-green-200: #2F4020;
|
|
382
|
-
--baht-green-300: #A9C598; /* success */
|
|
383
|
-
--baht-green-400: #9DB56A;
|
|
384
|
-
--baht-green-500: #94AE60;
|
|
385
|
-
--baht-green-600: #8FA85A; /* primary — brightens so the button still leads */
|
|
386
|
-
--baht-green-700: #A9C598;
|
|
387
|
-
--baht-green-750: #B7D096; /* success ink on the dark tint */
|
|
388
|
-
--baht-green-800: #2F4020; /* neutral */
|
|
389
|
-
--baht-green-900: #24301A;
|
|
390
|
-
--baht-green-950: #1B2A14;
|
|
391
|
-
|
|
392
|
-
--baht-cream-50: #E8E7D6; /* inverse ink */
|
|
393
|
-
--baht-cream-100: #121310;
|
|
394
|
-
--baht-cream-200: #1A1B16;
|
|
395
|
-
--baht-cream-300: #2A2C24;
|
|
396
|
-
--baht-cream-400: #3A3D33;
|
|
397
|
-
|
|
398
|
-
--baht-gray-50: #121310;
|
|
399
|
-
--baht-gray-100: #1A1B16;
|
|
400
|
-
--baht-gray-200: #2A2C24;
|
|
401
|
-
--baht-gray-300: #3A3D33;
|
|
402
|
-
--baht-gray-400: #6E7165;
|
|
403
|
-
--baht-gray-500: #8E9083;
|
|
404
|
-
--baht-gray-600: #C6C7BA;
|
|
405
|
-
--baht-gray-700: #D7D8CB;
|
|
406
|
-
--baht-gray-800: #E8E7D6;
|
|
407
|
-
--baht-gray-900: #F2F0DC;
|
|
408
|
-
|
|
409
|
-
--baht-rose-50: #33201B;
|
|
410
|
-
--baht-rose-100: #3A2620;
|
|
411
|
-
--baht-rose-200: #4A322B;
|
|
412
|
-
--baht-rose-300: #D9A398;
|
|
413
|
-
--baht-rose-400: #E4B6AC;
|
|
414
|
-
--baht-rose-500: #D9A398; /* secondary */
|
|
415
|
-
--baht-rose-600: #E4B6AC;
|
|
416
|
-
--baht-rose-700: #C58274;
|
|
417
|
-
--baht-rose-800: #75403A;
|
|
418
|
-
|
|
419
|
-
--baht-gold-50: #2C2717; /* warning tint */
|
|
420
|
-
--baht-gold-400: #E4D9A6;
|
|
421
|
-
--baht-gold-500: #D9B97A; /* accent */
|
|
422
|
-
--baht-gold-600: #C9A55C;
|
|
423
|
-
--baht-gold-700: #E4D9A6; /* warning ink on the dark tint */
|
|
424
|
-
|
|
425
|
-
--baht-lime-500: #CFCF7A; /* warning */
|
|
426
|
-
|
|
427
|
-
--baht-red-50: #33201B; /* error tint */
|
|
428
|
-
--baht-red-400: #F0B9AE;
|
|
429
|
-
--baht-red-500: #E08878; /* error */
|
|
430
|
-
--baht-red-600: #F0B9AE; /* error ink on the dark tint */
|
|
431
|
-
--baht-red-700: #C9705F;
|
|
432
|
-
|
|
433
|
-
--baht-slate-50: #1B262C; /* info tint */
|
|
434
|
-
--baht-slate-500: #8FB0C4; /* info */
|
|
435
|
-
|
|
436
|
-
/* Dark inverts one distribution rule: the card is *lighter* than the page
|
|
437
|
-
(surface base-100 over the base-200 app background). */
|
|
438
|
-
--baht-base-100: #1A1B16; /* surfaces: panels, tables, inputs, modals */
|
|
439
|
-
--baht-base-300: var(--baht-cream-300);
|
|
440
|
-
--baht-row-alt: #171813;
|
|
441
|
-
|
|
442
|
-
/* on a dark canvas every "content" colour flips from white to deep ink */
|
|
443
|
-
--baht-primary-content: var(--baht-green-950);
|
|
444
|
-
--baht-secondary-content: var(--baht-rose-900);
|
|
445
|
-
--baht-accent-content: var(--baht-gold-900);
|
|
446
|
-
--baht-neutral-content: #E8E7D6;
|
|
447
|
-
--baht-info-content: var(--baht-slate-900);
|
|
448
|
-
--baht-success: var(--baht-green-300);
|
|
449
|
-
--baht-success-content: var(--baht-green-950);
|
|
450
|
-
--baht-error-content: var(--baht-red-900);
|
|
451
|
-
--baht-error-dot: var(--baht-red-500);
|
|
452
|
-
|
|
453
|
-
--baht-color-surface-alt: #1F211A;
|
|
454
|
-
--baht-color-divider: #24261E;
|
|
455
|
-
|
|
456
|
-
/* the light-mode mixes lighten toward white and darken toward black; on a
|
|
457
|
-
dark canvas both directions flip, so re-derive them against the surface. */
|
|
458
|
-
--baht-color-primary-hover: color-mix(in oklab, var(--baht-primary) 88%, white);
|
|
459
|
-
--baht-color-primary-active: color-mix(in oklab, var(--baht-primary) 76%, white);
|
|
460
|
-
--baht-color-primary-tint: color-mix(in oklab, var(--baht-primary) 16%, var(--baht-base-100));
|
|
461
|
-
--baht-color-primary-wash: color-mix(in oklab, var(--baht-primary) 10%, transparent);
|
|
462
|
-
--baht-color-primary-wash-active: color-mix(in oklab, var(--baht-primary) 16%, transparent);
|
|
463
|
-
--baht-color-danger-hover: color-mix(in oklab, var(--baht-error) 88%, white);
|
|
464
|
-
--baht-color-link: var(--baht-green-300);
|
|
465
|
-
|
|
466
|
-
--baht-color-shadow-ink: 0, 0, 0;
|
|
467
|
-
--baht-shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -2px rgba(0, 0, 0, 0.5);
|
|
468
|
-
--baht-shadow-float: 0 4px 16px rgba(0, 0, 0, 0.5), 0 24px 48px -8px rgba(0, 0, 0, 0.6);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
375
|
/* the surrounding page follows the theme too, when the host opts in */
|
|
473
376
|
[data-baht-theme] { color-scheme: light; }
|
|
474
377
|
[data-baht-theme='dark'], .baht-dark { color-scheme: dark; }
|
package/dist/web-types.json
CHANGED