@20baht/ui 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +501 -2
- package/dist/components/baht-form.d.ts +191 -0
- package/dist/components/baht-form.js +614 -0
- package/dist/components/baht-workflow.d.ts +173 -0
- package/dist/components/baht-workflow.js +430 -0
- package/dist/components/base.d.ts +92 -0
- package/dist/components/base.js +138 -0
- package/dist/components/combobox-controller.d.ts +65 -0
- package/dist/components/combobox-controller.js +82 -0
- package/dist/components/define.d.ts +7 -0
- package/dist/components/define.js +16 -0
- package/dist/components/field-base.d.ts +84 -0
- package/dist/components/field-base.js +152 -0
- package/dist/components/floating.d.ts +84 -0
- package/dist/components/floating.js +182 -0
- package/dist/components/form-layout.d.ts +39 -0
- package/dist/components/form-layout.js +67 -0
- package/dist/components/form-options.d.ts +39 -0
- package/dist/components/form-options.js +65 -0
- package/dist/components/form-readonly.d.ts +20 -0
- package/dist/components/form-readonly.js +70 -0
- package/dist/components/layers.d.ts +4 -0
- package/dist/components/layers.js +15 -0
- package/dist/components/menu-controller.d.ts +65 -0
- package/dist/components/menu-controller.js +134 -0
- package/dist/components/motion.d.ts +9 -0
- package/dist/components/motion.js +16 -0
- package/dist/components/primitives/baht-accordion.d.ts +29 -0
- package/dist/components/primitives/baht-accordion.js +66 -0
- package/dist/components/primitives/baht-alert.d.ts +20 -0
- package/dist/components/primitives/baht-alert.js +62 -0
- package/dist/components/primitives/baht-app-shell.d.ts +81 -0
- package/dist/components/primitives/baht-app-shell.js +161 -0
- package/dist/components/primitives/baht-approval-chain.d.ts +59 -0
- package/dist/components/primitives/baht-approval-chain.js +80 -0
- package/dist/components/primitives/baht-avatar.d.ts +19 -0
- package/dist/components/primitives/baht-avatar.js +43 -0
- package/dist/components/primitives/baht-badge.d.ts +24 -0
- package/dist/components/primitives/baht-badge.js +41 -0
- package/dist/components/primitives/baht-bar-chart.d.ts +78 -0
- package/dist/components/primitives/baht-bar-chart.js +361 -0
- package/dist/components/primitives/baht-breadcrumbs.d.ts +23 -0
- package/dist/components/primitives/baht-breadcrumbs.js +45 -0
- package/dist/components/primitives/baht-button.d.ts +89 -0
- package/dist/components/primitives/baht-button.js +146 -0
- package/dist/components/primitives/baht-calendar.d.ts +96 -0
- package/dist/components/primitives/baht-calendar.js +398 -0
- package/dist/components/primitives/baht-card.d.ts +34 -0
- package/dist/components/primitives/baht-card.js +70 -0
- package/dist/components/primitives/baht-catalog-card.d.ts +52 -0
- package/dist/components/primitives/baht-catalog-card.js +90 -0
- package/dist/components/primitives/baht-checkbox.d.ts +7 -0
- package/dist/components/primitives/baht-checkbox.js +40 -0
- package/dist/components/primitives/baht-choice-group.d.ts +52 -0
- package/dist/components/primitives/baht-choice-group.js +71 -0
- package/dist/components/primitives/baht-code.d.ts +18 -0
- package/dist/components/primitives/baht-code.js +33 -0
- package/dist/components/primitives/baht-column-picker.d.ts +69 -0
- package/dist/components/primitives/baht-column-picker.js +234 -0
- package/dist/components/primitives/baht-comments.d.ts +38 -0
- package/dist/components/primitives/baht-comments.js +102 -0
- package/dist/components/primitives/baht-currency.d.ts +13 -0
- package/dist/components/primitives/baht-currency.js +69 -0
- package/dist/components/primitives/baht-datepicker.d.ts +77 -0
- package/dist/components/primitives/baht-datepicker.js +235 -0
- package/dist/components/primitives/baht-donut-chart.d.ts +24 -0
- package/dist/components/primitives/baht-donut-chart.js +88 -0
- package/dist/components/primitives/baht-edit-table.d.ts +45 -0
- package/dist/components/primitives/baht-edit-table.js +176 -0
- package/dist/components/primitives/baht-empty-state.d.ts +26 -0
- package/dist/components/primitives/baht-empty-state.js +51 -0
- package/dist/components/primitives/baht-error-state.d.ts +21 -0
- package/dist/components/primitives/baht-error-state.js +44 -0
- package/dist/components/primitives/baht-facts.d.ts +42 -0
- package/dist/components/primitives/baht-facts.js +49 -0
- package/dist/components/primitives/baht-fieldset.d.ts +19 -0
- package/dist/components/primitives/baht-fieldset.js +42 -0
- package/dist/components/primitives/baht-file.d.ts +27 -0
- package/dist/components/primitives/baht-file.js +158 -0
- package/dist/components/primitives/baht-filter-builder.d.ts +39 -0
- package/dist/components/primitives/baht-filter-builder.js +201 -0
- package/dist/components/primitives/baht-filter.d.ts +36 -0
- package/dist/components/primitives/baht-filter.js +64 -0
- package/dist/components/primitives/baht-heatmap.d.ts +49 -0
- package/dist/components/primitives/baht-heatmap.js +168 -0
- package/dist/components/primitives/baht-input.d.ts +10 -0
- package/dist/components/primitives/baht-input.js +44 -0
- package/dist/components/primitives/baht-keyvalue-editor.d.ts +28 -0
- package/dist/components/primitives/baht-keyvalue-editor.js +106 -0
- package/dist/components/primitives/baht-line-chart.d.ts +45 -0
- package/dist/components/primitives/baht-line-chart.js +183 -0
- package/dist/components/primitives/baht-link.d.ts +26 -0
- package/dist/components/primitives/baht-link.js +48 -0
- package/dist/components/primitives/baht-list.d.ts +29 -0
- package/dist/components/primitives/baht-list.js +79 -0
- package/dist/components/primitives/baht-loading-overlay.d.ts +15 -0
- package/dist/components/primitives/baht-loading-overlay.js +33 -0
- package/dist/components/primitives/baht-markdown-view.d.ts +17 -0
- package/dist/components/primitives/baht-markdown-view.js +39 -0
- package/dist/components/primitives/baht-markdown.d.ts +34 -0
- package/dist/components/primitives/baht-markdown.js +177 -0
- package/dist/components/primitives/baht-menu.d.ts +53 -0
- package/dist/components/primitives/baht-menu.js +100 -0
- package/dist/components/primitives/baht-meter.d.ts +67 -0
- package/dist/components/primitives/baht-meter.js +107 -0
- package/dist/components/primitives/baht-modal.d.ts +71 -0
- package/dist/components/primitives/baht-modal.js +164 -0
- package/dist/components/primitives/baht-multiselect.d.ts +8 -0
- package/dist/components/primitives/baht-multiselect.js +47 -0
- package/dist/components/primitives/baht-notification-bell.d.ts +54 -0
- package/dist/components/primitives/baht-notification-bell.js +143 -0
- package/dist/components/primitives/baht-number.d.ts +5 -0
- package/dist/components/primitives/baht-number.js +39 -0
- package/dist/components/primitives/baht-order-box.d.ts +24 -0
- package/dist/components/primitives/baht-order-box.js +50 -0
- package/dist/components/primitives/baht-otp.d.ts +49 -0
- package/dist/components/primitives/baht-otp.js +109 -0
- package/dist/components/primitives/baht-page-header.d.ts +43 -0
- package/dist/components/primitives/baht-page-header.js +78 -0
- package/dist/components/primitives/baht-pagination.d.ts +33 -0
- package/dist/components/primitives/baht-pagination.js +86 -0
- package/dist/components/primitives/baht-popover.d.ts +45 -0
- package/dist/components/primitives/baht-popover.js +112 -0
- package/dist/components/primitives/baht-progress-ring.d.ts +22 -0
- package/dist/components/primitives/baht-progress-ring.js +62 -0
- package/dist/components/primitives/baht-progress.d.ts +17 -0
- package/dist/components/primitives/baht-progress.js +48 -0
- package/dist/components/primitives/baht-radio.d.ts +7 -0
- package/dist/components/primitives/baht-radio.js +74 -0
- package/dist/components/primitives/baht-range.d.ts +38 -0
- package/dist/components/primitives/baht-range.js +88 -0
- package/dist/components/primitives/baht-rating.d.ts +40 -0
- package/dist/components/primitives/baht-rating.js +107 -0
- package/dist/components/primitives/baht-record-bar.d.ts +30 -0
- package/dist/components/primitives/baht-record-bar.js +60 -0
- package/dist/components/primitives/baht-reference-dialog.d.ts +87 -0
- package/dist/components/primitives/baht-reference-dialog.js +418 -0
- package/dist/components/primitives/baht-reference-picker.d.ts +110 -0
- package/dist/components/primitives/baht-reference-picker.js +321 -0
- package/dist/components/primitives/baht-repeater.d.ts +59 -0
- package/dist/components/primitives/baht-repeater.js +315 -0
- package/dist/components/primitives/baht-rule-builder.d.ts +24 -0
- package/dist/components/primitives/baht-rule-builder.js +177 -0
- package/dist/components/primitives/baht-saved-filters.d.ts +41 -0
- package/dist/components/primitives/baht-saved-filters.js +126 -0
- package/dist/components/primitives/baht-search.d.ts +34 -0
- package/dist/components/primitives/baht-search.js +71 -0
- package/dist/components/primitives/baht-section-header.d.ts +28 -0
- package/dist/components/primitives/baht-section-header.js +48 -0
- package/dist/components/primitives/baht-section.d.ts +23 -0
- package/dist/components/primitives/baht-section.js +49 -0
- package/dist/components/primitives/baht-select.d.ts +49 -0
- package/dist/components/primitives/baht-select.js +197 -0
- package/dist/components/primitives/baht-skeleton.d.ts +16 -0
- package/dist/components/primitives/baht-skeleton.js +37 -0
- package/dist/components/primitives/baht-sparkline.d.ts +23 -0
- package/dist/components/primitives/baht-sparkline.js +56 -0
- package/dist/components/primitives/baht-spinner.d.ts +13 -0
- package/dist/components/primitives/baht-spinner.js +30 -0
- package/dist/components/primitives/baht-split-button.d.ts +43 -0
- package/dist/components/primitives/baht-split-button.js +87 -0
- package/dist/components/primitives/baht-stat-chart.d.ts +14 -0
- package/dist/components/primitives/baht-stat-chart.js +38 -0
- package/dist/components/primitives/baht-stat.d.ts +56 -0
- package/dist/components/primitives/baht-stat.js +117 -0
- package/dist/components/primitives/baht-steps.d.ts +33 -0
- package/dist/components/primitives/baht-steps.js +60 -0
- package/dist/components/primitives/baht-swipe-row.d.ts +64 -0
- package/dist/components/primitives/baht-swipe-row.js +178 -0
- package/dist/components/primitives/baht-table.d.ts +315 -0
- package/dist/components/primitives/baht-table.js +640 -0
- package/dist/components/primitives/baht-tabs.d.ts +54 -0
- package/dist/components/primitives/baht-tabs.js +128 -0
- package/dist/components/primitives/baht-tags.d.ts +96 -0
- package/dist/components/primitives/baht-tags.js +323 -0
- package/dist/components/primitives/baht-text.d.ts +10 -0
- package/dist/components/primitives/baht-text.js +29 -0
- package/dist/components/primitives/baht-textarea.d.ts +5 -0
- package/dist/components/primitives/baht-textarea.js +40 -0
- package/dist/components/primitives/baht-theme-toggle.d.ts +44 -0
- package/dist/components/primitives/baht-theme-toggle.js +101 -0
- package/dist/components/primitives/baht-timeline.d.ts +21 -0
- package/dist/components/primitives/baht-timeline.js +42 -0
- package/dist/components/primitives/baht-toast.d.ts +29 -0
- package/dist/components/primitives/baht-toast.js +83 -0
- package/dist/components/primitives/baht-toggle.d.ts +6 -0
- package/dist/components/primitives/baht-toggle.js +42 -0
- package/dist/components/primitives/baht-tooltip.d.ts +34 -0
- package/dist/components/primitives/baht-tooltip.js +85 -0
- package/dist/components/primitives/baht-tree.d.ts +58 -0
- package/dist/components/primitives/baht-tree.js +159 -0
- package/dist/components/primitives/baht-typeahead.d.ts +92 -0
- package/dist/components/primitives/baht-typeahead.js +258 -0
- package/dist/components/primitives/baht-upload.d.ts +108 -0
- package/dist/components/primitives/baht-upload.js +325 -0
- package/dist/components/primitives/baht-wizard.d.ts +57 -0
- package/dist/components/primitives/baht-wizard.js +147 -0
- package/dist/components/primitives/charts.d.ts +134 -0
- package/dist/components/primitives/charts.js +184 -0
- package/dist/components/primitives/column-map.d.ts +56 -0
- package/dist/components/primitives/column-map.js +70 -0
- package/dist/components/primitives/control-icons.d.ts +2 -0
- package/dist/components/primitives/control-icons.js +40 -0
- package/dist/components/primitives/icons.d.ts +24 -0
- package/dist/components/primitives/icons.js +86 -0
- package/dist/components/primitives/illustrations.d.ts +21 -0
- package/dist/components/primitives/illustrations.js +78 -0
- package/dist/components/primitives/index.d.ts +89 -0
- package/dist/components/primitives/kbd.d.ts +6 -0
- package/dist/components/primitives/kbd.js +9 -0
- package/dist/components/primitives/listbox.d.ts +2 -0
- package/dist/components/primitives/listbox.js +7 -0
- package/dist/components/primitives/markdown-render.d.ts +9 -0
- package/dist/components/primitives/markdown-render.js +77 -0
- package/dist/components/primitives/rule-rows.d.ts +55 -0
- package/dist/components/primitives/rule-rows.js +75 -0
- package/dist/components/primitives/tag-map.d.ts +6 -0
- package/dist/components/primitives/tag-map.js +39 -0
- package/dist/components/reference-labels.d.ts +22 -0
- package/dist/components/reference-labels.js +29 -0
- package/dist/components/shortcuts.d.ts +7 -0
- package/dist/components/shortcuts.js +43 -0
- package/dist/css/components.css +7517 -0
- package/dist/css/datepicker.css +346 -0
- package/dist/css/tokens.css +679 -0
- package/dist/custom-elements.json +45110 -0
- package/dist/engine.d.ts +1 -0
- package/dist/engine.js +1 -0
- package/dist/hydrate.d.ts +9 -0
- package/dist/hydrate.js +46 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +210 -0
- package/dist/overlay.d.ts +50 -0
- package/dist/overlay.js +140 -0
- package/dist/react.d.ts +557 -0
- package/dist/react.js +1 -0
- package/dist/register.d.ts +106 -0
- package/dist/register.js +99 -0
- package/dist/ssr.d.ts +16 -0
- package/dist/ssr.js +125 -0
- package/dist/tokens.css +8197 -0
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +2261 -0
- package/dist/web-types.json +6523 -0
- package/package.json +157 -4
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
bahtui design tokens — 20baht design system, "ticket wallet" (2026-11-06).
|
|
3
|
+
White ground and hairline neutrals; carrier-navy bands (app header, table
|
|
4
|
+
heads), a blue action colour with red kept for danger, carbon violet and
|
|
5
|
+
condensed caps on the workflow strip and record numbers, plain ink for data.
|
|
6
|
+
|
|
7
|
+
Every value below is a CSS custom property. Override any of
|
|
8
|
+
them on :root (or any ancestor) to retheme — at build time,
|
|
9
|
+
at runtime ("CSS on the fly"), or by injecting your own sheet.
|
|
10
|
+
|
|
11
|
+
Fonts are NOT bundled. Load Anuphan (Thai + Latin body), Archivo with its
|
|
12
|
+
width axis (labels, display) and IBM Plex Mono (figures) yourself, e.g.
|
|
13
|
+
https://fonts.googleapis.com/css2?family=Anuphan:wght@400..700&family=Archivo:wdth,wght@62..125,400..800&family=IBM+Plex+Mono:wght@400;500;600&display=swap
|
|
14
|
+
The stacks fall back to the system UI face until they arrive.
|
|
15
|
+
|
|
16
|
+
Type: steps --baht-text-xs|sm|base|md|lg|xl|2xl (12-24px); semantic --baht-font-size
|
|
17
|
+
(14px) and -label|-error|-control; no --baht-font-size-sm. Leading --baht-leading-tight|normal.
|
|
18
|
+
============================================================ */
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
/* ---------- Raw scales (reference — prefer the semantic tokens below) ----------
|
|
22
|
+
Neutral gray carries the whole UI; hue is reserved for status and the
|
|
23
|
+
accent. --baht-green-* keeps its name: it is the documented override
|
|
24
|
+
point that banknote themes swap wholesale (see apps/docs banknotes.css),
|
|
25
|
+
and success + the coloured note palettes derive from it. */
|
|
26
|
+
|
|
27
|
+
/* Green — success (and the banknote override ramp) */
|
|
28
|
+
--baht-green-50: #e6f2ec;
|
|
29
|
+
--baht-green-100: #dcfce7;
|
|
30
|
+
--baht-green-200: #bbf7d0;
|
|
31
|
+
--baht-green-300: #86efac; /* dark-mode success ink */
|
|
32
|
+
--baht-green-400: #4ade80; /* dark-mode success */
|
|
33
|
+
--baht-green-500: #22c55e;
|
|
34
|
+
--baht-green-600: #1f7a4d; /* success */
|
|
35
|
+
--baht-green-700: #15803d;
|
|
36
|
+
--baht-green-750: #175c3a; /* success ink on the light tint */
|
|
37
|
+
--baht-green-800: #14532d;
|
|
38
|
+
--baht-green-900: #0f3d22;
|
|
39
|
+
--baht-green-950: #052e16; /* content on green-400 */
|
|
40
|
+
|
|
41
|
+
/* aliases — --baht-green-* stays the override point (banknote themes
|
|
42
|
+
swap the whole scale); --baht-olive-* is kept for callers of the old name. */
|
|
43
|
+
--baht-olive-50: var(--baht-green-50);
|
|
44
|
+
--baht-olive-100: var(--baht-green-100);
|
|
45
|
+
--baht-olive-200: var(--baht-green-200);
|
|
46
|
+
--baht-olive-300: var(--baht-green-300);
|
|
47
|
+
--baht-olive-400: var(--baht-green-400);
|
|
48
|
+
--baht-olive-500: var(--baht-green-500);
|
|
49
|
+
--baht-olive-600: var(--baht-green-600);
|
|
50
|
+
--baht-olive-700: var(--baht-green-700);
|
|
51
|
+
--baht-olive-750: var(--baht-green-750);
|
|
52
|
+
--baht-olive-800: var(--baht-green-800);
|
|
53
|
+
--baht-olive-900: var(--baht-green-900);
|
|
54
|
+
--baht-olive-950: var(--baht-green-950);
|
|
55
|
+
|
|
56
|
+
/* Canvas — white page, light-gray wells. (name kept from the paper era) */
|
|
57
|
+
--baht-cream-50: #ffffff;
|
|
58
|
+
--baht-cream-100: #fafafa; /* page background (base-200) */
|
|
59
|
+
--baht-cream-200: #f5f5f5; /* sunken wells, rails */
|
|
60
|
+
--baht-cream-300: #e5e5e5; /* hairline border */
|
|
61
|
+
--baht-cream-400: #d4d4d4;
|
|
62
|
+
|
|
63
|
+
/* Ink — pure neutral gray, no warm or cool cast */
|
|
64
|
+
--baht-gray-50: #fafafa; /* zebra rows */
|
|
65
|
+
--baht-gray-100: #f5f5f5; /* row divider */
|
|
66
|
+
--baht-gray-200: #e5e5e5; /* border */
|
|
67
|
+
--baht-gray-300: #d4d4d4; /* strong border */
|
|
68
|
+
--baht-gray-400: #a3a3a3;
|
|
69
|
+
--baht-gray-500: #737373; /* tertiary text */
|
|
70
|
+
--baht-gray-600: #595959; /* secondary text */
|
|
71
|
+
--baht-gray-700: #404040;
|
|
72
|
+
--baht-gray-800: #262626; /* headings */
|
|
73
|
+
--baht-gray-900: #0a0a0a; /* ink (body) */
|
|
74
|
+
|
|
75
|
+
/* Rose — error dot / destructive (a red ramp under the legacy name) */
|
|
76
|
+
--baht-rose-50: #fbeaec;
|
|
77
|
+
--baht-rose-100: #fee2e2;
|
|
78
|
+
--baht-rose-200: #fecaca;
|
|
79
|
+
--baht-rose-300: #fca5a5; /* dark-mode secondary */
|
|
80
|
+
--baht-rose-400: #f87171;
|
|
81
|
+
--baht-rose-500: #c8202f; /* error dot */
|
|
82
|
+
--baht-rose-600: #dc2626;
|
|
83
|
+
--baht-rose-700: #b91c1c;
|
|
84
|
+
--baht-rose-800: #991b1b;
|
|
85
|
+
--baht-rose-900: #450a0a; /* content on rose-300 */
|
|
86
|
+
|
|
87
|
+
/* Gold — amber, the warning tone */
|
|
88
|
+
--baht-gold-50: #fbf1dc; /* warning tint */
|
|
89
|
+
--baht-gold-300: #fcd34d; /* dark-mode warning ink */
|
|
90
|
+
--baht-gold-400: #fbbf24; /* dark-mode warning */
|
|
91
|
+
--baht-gold-500: #c98a00; /* warning */
|
|
92
|
+
--baht-gold-600: #d97706;
|
|
93
|
+
--baht-gold-700: #6e4a00; /* warning ink on the light tint (5.2:1 on gold-50) */
|
|
94
|
+
--baht-gold-900: #451a03; /* content on gold-400 */
|
|
95
|
+
|
|
96
|
+
/* Lime — legacy warning name, now aliases amber */
|
|
97
|
+
--baht-lime-400: var(--baht-gold-400);
|
|
98
|
+
--baht-lime-500: var(--baht-gold-500);
|
|
99
|
+
--baht-lime-900: var(--baht-gold-900);
|
|
100
|
+
|
|
101
|
+
/* Red — error */
|
|
102
|
+
--baht-red-50: #fbeaec;
|
|
103
|
+
--baht-red-300: #fca5a5; /* dark-mode error */
|
|
104
|
+
--baht-red-400: #f87171;
|
|
105
|
+
--baht-red-500: #c8202f; /* error */
|
|
106
|
+
--baht-red-600: #9e1824; /* error ink on the light tint */
|
|
107
|
+
--baht-red-700: #7f121c;
|
|
108
|
+
--baht-red-900: #450a0a; /* content on red-300 */
|
|
109
|
+
|
|
110
|
+
/* Slate — the one accent: note blue (links, info, highlights) */
|
|
111
|
+
--baht-slate-50: #e8ecf6; /* info tint */
|
|
112
|
+
--baht-slate-300: #8fa3e6; /* dark-mode info / accent */
|
|
113
|
+
--baht-slate-500: #2e4a9e; /* info, accent */
|
|
114
|
+
--baht-slate-600: #1c2a55; /* link ink */
|
|
115
|
+
--baht-slate-900: #0e1530; /* content on slate-300 */
|
|
116
|
+
|
|
117
|
+
/* ---------- Theme tier (daisyUI-style knobs — THE flexible theming API) ----------
|
|
118
|
+
Override any of these on :root (or a wrapper, or inline style) and every
|
|
119
|
+
semantic token below derives from them. Hover/active/tint shades are
|
|
120
|
+
computed with color-mix, so one --baht-primary swap rethemes everything.
|
|
121
|
+
|
|
122
|
+
Distribution rule: the page and every surface are white; separation is a
|
|
123
|
+
1px hairline, never a fill. Ink (near-black) is the primary — it appears
|
|
124
|
+
on the primary button, the table header and the active nav. Colour is
|
|
125
|
+
spent only on status pills and the indigo accent (links, info). */
|
|
126
|
+
--baht-base-100: #ffffff; /* surfaces: cards, tables, inputs, modals */
|
|
127
|
+
--baht-base-200: var(--baht-cream-100); /* page background */
|
|
128
|
+
--baht-base-300: var(--baht-cream-200); /* sunken wells, rails, code chips */
|
|
129
|
+
--baht-base-content: var(--baht-gray-900);
|
|
130
|
+
--baht-row-alt: var(--baht-gray-50); /* zebra rows: a 2% step off the surface, not 10% */
|
|
131
|
+
|
|
132
|
+
--baht-primary: #2e4a9e; /* action, selected, current: blue; red is kept for danger */
|
|
133
|
+
--baht-primary-content: #ffffff;
|
|
134
|
+
--baht-secondary: var(--baht-gray-100); /* quiet fill: secondary buttons, chips */
|
|
135
|
+
--baht-secondary-content: var(--baht-gray-900);
|
|
136
|
+
--baht-accent: var(--baht-slate-500); /* indigo: links, highlights, Pro tags */
|
|
137
|
+
--baht-accent-content: #ffffff;
|
|
138
|
+
/* a second, warm accent (burnt orange) for art and highlights beside the indigo one; never a
|
|
139
|
+
status: warning stays --baht-warning. 5:1 on white, so it can carry text too. */
|
|
140
|
+
--baht-accent-2: #b4532a;
|
|
141
|
+
--baht-accent-2-content: #ffffff;
|
|
142
|
+
--baht-neutral: #1c2a55; /* table header, inverse blocks */
|
|
143
|
+
--baht-neutral-content: #ffffff;
|
|
144
|
+
|
|
145
|
+
--baht-info: var(--baht-slate-500);
|
|
146
|
+
--baht-info-content: #ffffff;
|
|
147
|
+
--baht-success: var(--baht-green-600);
|
|
148
|
+
--baht-success-content: #ffffff;
|
|
149
|
+
--baht-warning: #8a5d00;
|
|
150
|
+
--baht-warning-content: #ffffff;
|
|
151
|
+
--baht-error: var(--baht-red-500);
|
|
152
|
+
--baht-error-content: #ffffff;
|
|
153
|
+
|
|
154
|
+
/* Status tints — the pill pairs used for scanning a table column.
|
|
155
|
+
A pale tint with its own dark ink; the dot carries the saturated hue. */
|
|
156
|
+
--baht-success-tint: var(--baht-green-50);
|
|
157
|
+
--baht-success-ink: var(--baht-green-750);
|
|
158
|
+
--baht-success-dot: var(--baht-green-600);
|
|
159
|
+
--baht-warning-tint: var(--baht-gold-50);
|
|
160
|
+
--baht-warning-ink: var(--baht-gold-700);
|
|
161
|
+
--baht-warning-dot: var(--baht-gold-500);
|
|
162
|
+
--baht-error-tint: var(--baht-red-50);
|
|
163
|
+
--baht-error-ink: var(--baht-red-600);
|
|
164
|
+
--baht-error-dot: var(--baht-rose-500);
|
|
165
|
+
--baht-info-tint: var(--baht-slate-50);
|
|
166
|
+
--baht-info-ink: var(--baht-slate-600);
|
|
167
|
+
--baht-info-dot: var(--baht-slate-500);
|
|
168
|
+
|
|
169
|
+
/* ---------- Semantic colors (stable names components consume) ---------- */
|
|
170
|
+
--baht-color-bg: var(--baht-base-200);
|
|
171
|
+
--baht-color-bg-elev: var(--baht-base-100);
|
|
172
|
+
--baht-color-bg-sunken: var(--baht-base-300);
|
|
173
|
+
--baht-color-bg-inverse: var(--baht-neutral);
|
|
174
|
+
|
|
175
|
+
--baht-color-surface: var(--baht-base-100);
|
|
176
|
+
--baht-color-surface-alt: var(--baht-gray-50);
|
|
177
|
+
--baht-color-row-alt: var(--baht-row-alt);
|
|
178
|
+
|
|
179
|
+
--baht-color-text: var(--baht-base-content);
|
|
180
|
+
--baht-color-text-muted: var(--baht-gray-600);
|
|
181
|
+
--baht-color-text-subtle: var(--baht-gray-500);
|
|
182
|
+
--baht-color-text-inverse: var(--baht-neutral-content);
|
|
183
|
+
|
|
184
|
+
--baht-color-border: var(--baht-cream-300);
|
|
185
|
+
--baht-color-border-cool: var(--baht-gray-200);
|
|
186
|
+
--baht-color-border-strong: var(--baht-gray-300);
|
|
187
|
+
/* Input borders must hit 3:1 against the surface (WCAG 1.4.11); hairline
|
|
188
|
+
gray does not, so controls get a mid-gray of their own. */
|
|
189
|
+
--baht-color-border-control: #949494; /* 3.0:1 on white */
|
|
190
|
+
--baht-color-divider: var(--baht-gray-100);
|
|
191
|
+
|
|
192
|
+
/* border shorthands — one place to change width + colour together */
|
|
193
|
+
--baht-border-default: 1px solid var(--baht-color-border);
|
|
194
|
+
--baht-border-cool: 1px solid var(--baht-color-border-cool);
|
|
195
|
+
|
|
196
|
+
--baht-color-primary: var(--baht-primary);
|
|
197
|
+
/* ink cannot darken further, so hover/active lift toward white instead */
|
|
198
|
+
--baht-color-primary-hover: color-mix(in oklab, var(--baht-primary) 86%, black);
|
|
199
|
+
--baht-color-primary-active: color-mix(in oklab, var(--baht-primary) 74%, black);
|
|
200
|
+
--baht-color-primary-tint: color-mix(in oklab, var(--baht-primary) 8%, white);
|
|
201
|
+
/* translucent washes for hover/selection on any surface */
|
|
202
|
+
--baht-color-primary-wash: color-mix(in oklab, var(--baht-gray-900) 4%, transparent);
|
|
203
|
+
--baht-color-primary-wash-active: var(--baht-gray-100);
|
|
204
|
+
--baht-color-primary-contrast: var(--baht-primary-content);
|
|
205
|
+
|
|
206
|
+
--baht-color-secondary: var(--baht-secondary);
|
|
207
|
+
--baht-color-secondary-contrast: var(--baht-secondary-content);
|
|
208
|
+
--baht-color-accent: var(--baht-accent);
|
|
209
|
+
--baht-color-accent-contrast: var(--baht-accent-content);
|
|
210
|
+
--baht-color-accent-2: var(--baht-accent-2);
|
|
211
|
+
--baht-color-accent-2-contrast: var(--baht-accent-2-content);
|
|
212
|
+
|
|
213
|
+
--baht-color-success: var(--baht-success);
|
|
214
|
+
--baht-color-warning: var(--baht-warning);
|
|
215
|
+
--baht-color-danger: var(--baht-error);
|
|
216
|
+
--baht-color-danger-hover: color-mix(in oklab, var(--baht-error) 84%, black);
|
|
217
|
+
--baht-color-info: var(--baht-info);
|
|
218
|
+
|
|
219
|
+
--baht-color-error: var(--baht-error); /* alias kept for form validation styling */
|
|
220
|
+
--baht-color-link: var(--baht-slate-500);
|
|
221
|
+
--baht-color-focus: var(--baht-slate-500);
|
|
222
|
+
|
|
223
|
+
--baht-focus-ring: 2px solid var(--baht-color-focus);
|
|
224
|
+
|
|
225
|
+
/* shadow ink as an rgb triple so alphas can be mixed in */
|
|
226
|
+
--baht-color-shadow-ink: 0, 0, 0;
|
|
227
|
+
|
|
228
|
+
/* ---------- Ticket-wallet world (2026-11-06) ----------
|
|
229
|
+
Carbon: every filled value, figure and date prints in it, like the carbon copy of a coupon.
|
|
230
|
+
Stamps: done / void / returned marks on steps and records. */
|
|
231
|
+
--baht-carbon: #4b3b7a;
|
|
232
|
+
--baht-color-carbon: var(--baht-carbon);
|
|
233
|
+
--baht-color-stamp-used: var(--baht-color-carbon);
|
|
234
|
+
--baht-color-stamp-void: var(--baht-error);
|
|
235
|
+
--baht-color-stamp-return: var(--baht-warning);
|
|
236
|
+
--baht-color-perforation: var(--baht-gray-400);
|
|
237
|
+
|
|
238
|
+
/* ---------- Typography ---------- */
|
|
239
|
+
--baht-font-display: 'Archivo', 'Anuphan', ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
240
|
+
--baht-font-family: 'Anuphan', 'Archivo', ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
241
|
+
--baht-font-mono: 'IBM Plex Mono', 'Anuphan', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
242
|
+
/* condensed tracked caps: tab heads, field labels on a sheet, table heads, stamps */
|
|
243
|
+
--baht-font-label: var(--baht-font-display);
|
|
244
|
+
--baht-label-stretch: 75%;
|
|
245
|
+
|
|
246
|
+
/* type scale */
|
|
247
|
+
--baht-text-xs: 0.75rem; /* 12px */
|
|
248
|
+
--baht-text-sm: 0.8125rem; /* 13px */
|
|
249
|
+
--baht-text-base: 0.9375rem; /* 15px */
|
|
250
|
+
--baht-text-md: 1rem; /* 16px */
|
|
251
|
+
--baht-text-lg: 1.125rem; /* 18px */
|
|
252
|
+
--baht-text-xl: 1.25rem; /* 20px */
|
|
253
|
+
--baht-text-2xl: 1.5rem; /* 24px */
|
|
254
|
+
|
|
255
|
+
--baht-font-size: 0.875rem; /* 14px */
|
|
256
|
+
--baht-font-size-label: var(
|
|
257
|
+
--baht-font-size
|
|
258
|
+
); /* 14px — label reads as the field's name, not a caption */
|
|
259
|
+
--baht-font-size-error: var(--baht-text-xs);
|
|
260
|
+
--baht-font-size-control: var(--baht-font-size);
|
|
261
|
+
--baht-font-weight-label: 600;
|
|
262
|
+
|
|
263
|
+
--baht-leading-tight: 1.1;
|
|
264
|
+
--baht-leading-normal: 1.5;
|
|
265
|
+
--baht-tracking-tight: -0.02em;
|
|
266
|
+
--baht-tracking-widest: 0.12em;
|
|
267
|
+
|
|
268
|
+
/* ---------- Spacing (4px base) ---------- */
|
|
269
|
+
--baht-space-1: 4px;
|
|
270
|
+
--baht-space-2: 8px;
|
|
271
|
+
--baht-space-3: 12px;
|
|
272
|
+
--baht-space-4: 16px;
|
|
273
|
+
--baht-space-5: 20px;
|
|
274
|
+
--baht-space-6: 24px;
|
|
275
|
+
--baht-space-8: 32px;
|
|
276
|
+
--baht-space-10: 40px;
|
|
277
|
+
--baht-space-12: 48px;
|
|
278
|
+
|
|
279
|
+
/* ---------- Radii (three knobs, daisyUI-style) ----------
|
|
280
|
+
Softer than the original "ledger" pass (paypers.ai shape reference,
|
|
281
|
+
2026-09-17): rounder fields and boxes, same one-accent palette. */
|
|
282
|
+
--baht-radius-field: 6px; /* inputs, buttons */
|
|
283
|
+
--baht-radius-box: 10px; /* cards, panels, modals */
|
|
284
|
+
--baht-radius-selector: 6px; /* checkboxes, toggles, badges, pills */
|
|
285
|
+
/* derived aliases (older names, still honoured) */
|
|
286
|
+
--baht-radius-xs: 4px; /* chips, badges */
|
|
287
|
+
--baht-radius-sm: 6px; /* inputs (small), menu items */
|
|
288
|
+
--baht-radius: var(--baht-radius-field);
|
|
289
|
+
--baht-radius-md: var(--baht-radius-box);
|
|
290
|
+
--baht-radius-lg: 12px; /* large cards, modals */
|
|
291
|
+
--baht-radius-pill: var(--baht-radius-selector);
|
|
292
|
+
|
|
293
|
+
/* ---------- Borders / effects ---------- */
|
|
294
|
+
--baht-border-width: 1px;
|
|
295
|
+
--baht-border: var(--baht-border-width) solid var(--baht-color-border-cool);
|
|
296
|
+
--baht-depth: 0; /* reserved: extra elevation multiplier */
|
|
297
|
+
--baht-noise: 0; /* reserved: grain overlay opacity (always 0 in this theme) */
|
|
298
|
+
|
|
299
|
+
/* ---------- Shadows (two elevations only, never inner) ----------
|
|
300
|
+
Flat by default: lift is a 1px hint under menus and raised buttons; float
|
|
301
|
+
is the only real shadow and belongs to modals and popovers. */
|
|
302
|
+
--baht-shadow-lift:
|
|
303
|
+
0 1px 3px rgba(var(--baht-color-shadow-ink), 0.08),
|
|
304
|
+
0 1px 2px -1px rgba(var(--baht-color-shadow-ink), 0.06);
|
|
305
|
+
--baht-shadow-float:
|
|
306
|
+
0 2px 6px rgba(var(--baht-color-shadow-ink), 0.06),
|
|
307
|
+
0 12px 32px -8px rgba(var(--baht-color-shadow-ink), 0.12);
|
|
308
|
+
|
|
309
|
+
/* ---------- Motion ("paper" ease — quick start, gentle settle) ---------- */
|
|
310
|
+
--baht-ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
311
|
+
--baht-dur-fast: 120ms;
|
|
312
|
+
--baht-dur-base: 200ms;
|
|
313
|
+
--baht-dur-slow: 320ms;
|
|
314
|
+
|
|
315
|
+
/* ---------- Controls ---------- */
|
|
316
|
+
--baht-size-field: 0.25rem; /* control height = size-field × 10 (0.25rem → 40px; 0.275rem → 44px under a finger) */
|
|
317
|
+
--baht-size-selector: 0.25rem; /* reserved: checkbox/toggle geometry */
|
|
318
|
+
--baht-control-height: calc(var(--baht-size-field) * 10);
|
|
319
|
+
--baht-control-padding-x: var(--baht-space-4);
|
|
320
|
+
--baht-field-gap: var(--baht-space-6); /* 24px — one field reads as one block */
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* iOS Safari zooms into a focused input under 16px */
|
|
324
|
+
@media (pointer: coarse) {
|
|
325
|
+
:root {
|
|
326
|
+
--baht-font-size-control: max(16px, var(--baht-font-size));
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* ============================================================
|
|
331
|
+
Theme scope — a [data-baht-theme] / .baht-dark WRAPPER re-derives every
|
|
332
|
+
token that is computed from another one. Custom properties resolve where
|
|
333
|
+
they are declared, so tokens declared only on :root reach descendants
|
|
334
|
+
already resolved: a dark wrapper flipped the raw ramps but kept light
|
|
335
|
+
surfaces and text. Literal knobs are not repeated (a host's own :root
|
|
336
|
+
overrides still inherit). Generated from the :root block above; the
|
|
337
|
+
tokens spec fails if the two drift.
|
|
338
|
+
============================================================ */
|
|
339
|
+
/* @generated theme-scope */
|
|
340
|
+
/* jscpd:ignore-start */
|
|
341
|
+
[data-baht-theme],
|
|
342
|
+
.baht-dark,
|
|
343
|
+
.baht-light {
|
|
344
|
+
--baht-olive-50: var(--baht-green-50);
|
|
345
|
+
--baht-olive-100: var(--baht-green-100);
|
|
346
|
+
--baht-olive-200: var(--baht-green-200);
|
|
347
|
+
--baht-olive-300: var(--baht-green-300);
|
|
348
|
+
--baht-olive-400: var(--baht-green-400);
|
|
349
|
+
--baht-olive-500: var(--baht-green-500);
|
|
350
|
+
--baht-olive-600: var(--baht-green-600);
|
|
351
|
+
--baht-olive-700: var(--baht-green-700);
|
|
352
|
+
--baht-olive-750: var(--baht-green-750);
|
|
353
|
+
--baht-olive-800: var(--baht-green-800);
|
|
354
|
+
--baht-olive-900: var(--baht-green-900);
|
|
355
|
+
--baht-olive-950: var(--baht-green-950);
|
|
356
|
+
--baht-lime-400: var(--baht-gold-400);
|
|
357
|
+
--baht-lime-500: var(--baht-gold-500);
|
|
358
|
+
--baht-lime-900: var(--baht-gold-900);
|
|
359
|
+
--baht-base-200: var(--baht-cream-100);
|
|
360
|
+
--baht-base-300: var(--baht-cream-200);
|
|
361
|
+
--baht-base-content: var(--baht-gray-900);
|
|
362
|
+
--baht-row-alt: var(--baht-gray-50);
|
|
363
|
+
--baht-secondary: var(--baht-gray-100);
|
|
364
|
+
--baht-secondary-content: var(--baht-gray-900);
|
|
365
|
+
--baht-accent: var(--baht-slate-500);
|
|
366
|
+
--baht-info: var(--baht-slate-500);
|
|
367
|
+
--baht-success: var(--baht-green-600);
|
|
368
|
+
--baht-error: var(--baht-red-500);
|
|
369
|
+
--baht-success-tint: var(--baht-green-50);
|
|
370
|
+
--baht-success-ink: var(--baht-green-750);
|
|
371
|
+
--baht-success-dot: var(--baht-green-600);
|
|
372
|
+
--baht-warning-tint: var(--baht-gold-50);
|
|
373
|
+
--baht-warning-ink: var(--baht-gold-700);
|
|
374
|
+
--baht-warning-dot: var(--baht-gold-500);
|
|
375
|
+
--baht-error-tint: var(--baht-red-50);
|
|
376
|
+
--baht-error-ink: var(--baht-red-600);
|
|
377
|
+
--baht-error-dot: var(--baht-rose-500);
|
|
378
|
+
--baht-info-tint: var(--baht-slate-50);
|
|
379
|
+
--baht-info-ink: var(--baht-slate-600);
|
|
380
|
+
--baht-info-dot: var(--baht-slate-500);
|
|
381
|
+
--baht-color-bg: var(--baht-base-200);
|
|
382
|
+
--baht-color-bg-elev: var(--baht-base-100);
|
|
383
|
+
--baht-color-bg-sunken: var(--baht-base-300);
|
|
384
|
+
--baht-color-bg-inverse: var(--baht-neutral);
|
|
385
|
+
--baht-color-surface: var(--baht-base-100);
|
|
386
|
+
--baht-color-surface-alt: var(--baht-gray-50);
|
|
387
|
+
--baht-color-row-alt: var(--baht-row-alt);
|
|
388
|
+
--baht-color-text: var(--baht-base-content);
|
|
389
|
+
--baht-color-text-muted: var(--baht-gray-600);
|
|
390
|
+
--baht-color-text-subtle: var(--baht-gray-500);
|
|
391
|
+
--baht-color-text-inverse: var(--baht-neutral-content);
|
|
392
|
+
--baht-color-border: var(--baht-cream-300);
|
|
393
|
+
--baht-color-border-cool: var(--baht-gray-200);
|
|
394
|
+
--baht-color-border-strong: var(--baht-gray-300);
|
|
395
|
+
--baht-color-divider: var(--baht-gray-100);
|
|
396
|
+
--baht-border-default: 1px solid var(--baht-color-border);
|
|
397
|
+
--baht-border-cool: 1px solid var(--baht-color-border-cool);
|
|
398
|
+
--baht-color-primary: var(--baht-primary);
|
|
399
|
+
--baht-color-primary-hover: color-mix(in oklab, var(--baht-primary) 86%, black);
|
|
400
|
+
--baht-color-primary-active: color-mix(in oklab, var(--baht-primary) 74%, black);
|
|
401
|
+
--baht-color-primary-tint: color-mix(in oklab, var(--baht-primary) 8%, white);
|
|
402
|
+
--baht-color-primary-wash: color-mix(in oklab, var(--baht-gray-900) 4%, transparent);
|
|
403
|
+
--baht-color-primary-wash-active: var(--baht-gray-100);
|
|
404
|
+
--baht-color-primary-contrast: var(--baht-primary-content);
|
|
405
|
+
--baht-color-secondary: var(--baht-secondary);
|
|
406
|
+
--baht-color-secondary-contrast: var(--baht-secondary-content);
|
|
407
|
+
--baht-color-accent: var(--baht-accent);
|
|
408
|
+
--baht-color-accent-contrast: var(--baht-accent-content);
|
|
409
|
+
--baht-color-accent-2: var(--baht-accent-2);
|
|
410
|
+
--baht-color-accent-2-contrast: var(--baht-accent-2-content);
|
|
411
|
+
--baht-color-success: var(--baht-success);
|
|
412
|
+
--baht-color-warning: var(--baht-warning);
|
|
413
|
+
--baht-color-danger: var(--baht-error);
|
|
414
|
+
--baht-color-danger-hover: color-mix(in oklab, var(--baht-error) 84%, black);
|
|
415
|
+
--baht-color-info: var(--baht-info);
|
|
416
|
+
--baht-color-error: var(--baht-error);
|
|
417
|
+
--baht-color-link: var(--baht-slate-500);
|
|
418
|
+
--baht-color-focus: var(--baht-slate-500);
|
|
419
|
+
--baht-focus-ring: 2px solid var(--baht-color-focus);
|
|
420
|
+
--baht-color-carbon: var(--baht-carbon);
|
|
421
|
+
--baht-color-stamp-used: var(--baht-color-carbon);
|
|
422
|
+
--baht-color-stamp-void: var(--baht-error);
|
|
423
|
+
--baht-color-stamp-return: var(--baht-warning);
|
|
424
|
+
--baht-color-perforation: var(--baht-gray-400);
|
|
425
|
+
--baht-font-label: var(--baht-font-display);
|
|
426
|
+
--baht-font-size-label: var(--baht-font-size);
|
|
427
|
+
--baht-font-size-error: var(--baht-text-xs);
|
|
428
|
+
--baht-font-size-control: var(--baht-font-size);
|
|
429
|
+
--baht-radius: var(--baht-radius-field);
|
|
430
|
+
--baht-radius-md: var(--baht-radius-box);
|
|
431
|
+
--baht-radius-pill: var(--baht-radius-selector);
|
|
432
|
+
--baht-border: var(--baht-border-width) solid var(--baht-color-border-cool);
|
|
433
|
+
--baht-shadow-lift:
|
|
434
|
+
0 1px 3px rgba(var(--baht-color-shadow-ink), 0.08),
|
|
435
|
+
0 1px 2px -1px rgba(var(--baht-color-shadow-ink), 0.06);
|
|
436
|
+
--baht-shadow-float:
|
|
437
|
+
0 2px 6px rgba(var(--baht-color-shadow-ink), 0.06),
|
|
438
|
+
0 12px 32px -8px rgba(var(--baht-color-shadow-ink), 0.12);
|
|
439
|
+
--baht-control-height: calc(var(--baht-size-field) * 10);
|
|
440
|
+
--baht-control-padding-x: var(--baht-space-4);
|
|
441
|
+
--baht-field-gap: var(--baht-space-6);
|
|
442
|
+
--baht-chart-6: var(--baht-gray-600);
|
|
443
|
+
--baht-chart-7: var(--baht-gray-500);
|
|
444
|
+
--baht-chart-8: var(--baht-gray-400);
|
|
445
|
+
--baht-chart-9: var(--baht-gray-300);
|
|
446
|
+
--baht-chart-10: var(--baht-gray-200);
|
|
447
|
+
--baht-chart-muted: var(--baht-gray-300);
|
|
448
|
+
--baht-chart-grid: var(--baht-gray-200);
|
|
449
|
+
--baht-chart-surface: var(--baht-color-surface);
|
|
450
|
+
}
|
|
451
|
+
/* jscpd:ignore-end */
|
|
452
|
+
/* @end theme-scope */
|
|
453
|
+
|
|
454
|
+
/* ============================================================
|
|
455
|
+
Dark theme — "20baht-dark". Opt in with [data-baht-theme="dark"] (or the
|
|
456
|
+
.baht-dark class) on <html> or any wrapper. Default (no attribute) is
|
|
457
|
+
light — dark never activates from OS preference alone.
|
|
458
|
+
============================================================ */
|
|
459
|
+
|
|
460
|
+
[data-baht-theme='dark'],
|
|
461
|
+
.baht-dark {
|
|
462
|
+
/* The ramps re-anchor for a near-black canvas; every semantic token above
|
|
463
|
+
derives from them, so only the values that genuinely invert are listed. */
|
|
464
|
+
--baht-green-50: #0f2a1a; /* success tint */
|
|
465
|
+
--baht-green-100: #14361f;
|
|
466
|
+
--baht-green-200: #166534;
|
|
467
|
+
--baht-green-300: #86efac; /* success ink on the dark tint */
|
|
468
|
+
--baht-green-400: #4ade80; /* success */
|
|
469
|
+
--baht-green-500: #22c55e;
|
|
470
|
+
--baht-green-600: #4ade80; /* banknote primaries brighten so the button still leads */
|
|
471
|
+
--baht-green-700: #86efac;
|
|
472
|
+
--baht-green-750: #86efac;
|
|
473
|
+
--baht-green-800: #14532d;
|
|
474
|
+
--baht-green-900: #14361f;
|
|
475
|
+
--baht-green-950: #052e16;
|
|
476
|
+
|
|
477
|
+
--baht-cream-50: #e5e5e5; /* inverse ink */
|
|
478
|
+
--baht-cream-100: #0a0a0a;
|
|
479
|
+
--baht-cream-200: #171717;
|
|
480
|
+
--baht-cream-300: #262626;
|
|
481
|
+
--baht-cream-400: #333333;
|
|
482
|
+
|
|
483
|
+
--baht-gray-50: #0a0a0a;
|
|
484
|
+
--baht-gray-100: #171717;
|
|
485
|
+
--baht-gray-200: #262626;
|
|
486
|
+
--baht-gray-300: #333333;
|
|
487
|
+
--baht-gray-400: #737373;
|
|
488
|
+
--baht-gray-500: #8a8a8a;
|
|
489
|
+
--baht-gray-600: #a3a3a3;
|
|
490
|
+
--baht-gray-700: #c4c4c4;
|
|
491
|
+
--baht-gray-800: #e5e5e5;
|
|
492
|
+
--baht-gray-900: #fafafa;
|
|
493
|
+
|
|
494
|
+
--baht-rose-50: #2a1414;
|
|
495
|
+
--baht-rose-100: #3a1a1a;
|
|
496
|
+
--baht-rose-200: #4a2020;
|
|
497
|
+
--baht-rose-300: #fca5a5;
|
|
498
|
+
--baht-rose-400: #f87171;
|
|
499
|
+
--baht-rose-500: #f0525e; /* error dot */
|
|
500
|
+
--baht-rose-600: #fca5a5;
|
|
501
|
+
--baht-rose-700: #ef4444;
|
|
502
|
+
--baht-rose-800: #991b1b;
|
|
503
|
+
|
|
504
|
+
--baht-gold-50: #2a2010; /* warning tint */
|
|
505
|
+
--baht-gold-400: #fcd34d;
|
|
506
|
+
--baht-gold-500: #fbbf24; /* warning */
|
|
507
|
+
--baht-gold-600: #f59e0b;
|
|
508
|
+
--baht-gold-700: #fcd34d; /* warning ink on the dark tint */
|
|
509
|
+
|
|
510
|
+
--baht-red-50: #2c1218; /* error tint */
|
|
511
|
+
--baht-red-400: #f4707a;
|
|
512
|
+
--baht-red-500: #f0525e; /* error */
|
|
513
|
+
--baht-red-600: #f7a0a7; /* error ink on the dark tint */
|
|
514
|
+
--baht-red-700: #ef4444;
|
|
515
|
+
|
|
516
|
+
--baht-slate-50: #18224a; /* info tint */
|
|
517
|
+
--baht-slate-500: #8fa3e6; /* info, accent */
|
|
518
|
+
--baht-slate-600: #a9baf0; /* link ink */
|
|
519
|
+
|
|
520
|
+
/* Dark inverts one distribution rule: the card is *lighter* than the page
|
|
521
|
+
(surface base-100 over the base-200 app background). */
|
|
522
|
+
--baht-base-100: #171717; /* surfaces: panels, tables, inputs, modals */
|
|
523
|
+
--baht-base-300: var(--baht-cream-300);
|
|
524
|
+
--baht-row-alt: #141414;
|
|
525
|
+
|
|
526
|
+
/* ink flips: the primary button is now the brightest thing on screen */
|
|
527
|
+
--baht-primary: #8fa3e6;
|
|
528
|
+
--baht-primary-content: #0e1530;
|
|
529
|
+
--baht-secondary: var(--baht-gray-200);
|
|
530
|
+
--baht-secondary-content: var(--baht-gray-900);
|
|
531
|
+
--baht-accent-content: var(--baht-slate-900);
|
|
532
|
+
--baht-accent-2: #f0a074; /* 8.5:1 on the dark surface */
|
|
533
|
+
--baht-accent-2-content: #2a1206;
|
|
534
|
+
--baht-neutral: #1c2a55;
|
|
535
|
+
--baht-neutral-content: #ffffff;
|
|
536
|
+
--baht-info-content: var(--baht-slate-900);
|
|
537
|
+
--baht-success: var(--baht-green-400);
|
|
538
|
+
--baht-success-content: var(--baht-green-950);
|
|
539
|
+
--baht-warning-content: var(--baht-gold-900);
|
|
540
|
+
--baht-error-content: #1a0609;
|
|
541
|
+
--baht-error-dot: var(--baht-red-500);
|
|
542
|
+
|
|
543
|
+
--baht-color-surface-alt: #1f1f1f;
|
|
544
|
+
--baht-color-divider: #222222;
|
|
545
|
+
--baht-color-border-control: var(--baht-gray-400); /* 3.8:1 on the dark surface */
|
|
546
|
+
|
|
547
|
+
/* the light-mode mixes lift a black primary toward white; on a dark canvas
|
|
548
|
+
the primary is white, so hover/active settle toward black instead. */
|
|
549
|
+
--baht-color-primary-hover: color-mix(in oklab, var(--baht-primary) 86%, white);
|
|
550
|
+
--baht-color-primary-active: color-mix(in oklab, var(--baht-primary) 74%, white);
|
|
551
|
+
--baht-color-primary-tint: color-mix(in oklab, var(--baht-primary) 12%, var(--baht-base-100));
|
|
552
|
+
--baht-color-primary-wash: color-mix(in oklab, white 6%, transparent);
|
|
553
|
+
--baht-color-primary-wash-active: color-mix(in oklab, white 10%, transparent);
|
|
554
|
+
--baht-color-danger-hover: color-mix(in oklab, var(--baht-error) 88%, white);
|
|
555
|
+
--baht-color-link: var(--baht-slate-600);
|
|
556
|
+
|
|
557
|
+
--baht-color-shadow-ink: 0, 0, 0;
|
|
558
|
+
--baht-carbon: #c0b2f5;
|
|
559
|
+
--baht-warning: var(--baht-gold-500);
|
|
560
|
+
--baht-warning-content: var(--baht-gold-900);
|
|
561
|
+
--baht-shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -2px rgba(0, 0, 0, 0.5);
|
|
562
|
+
--baht-shadow-float: 0 4px 16px rgba(0, 0, 0, 0.5), 0 24px 48px -8px rgba(0, 0, 0, 0.6);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/* @generated theme-light */
|
|
566
|
+
/* jscpd:ignore-start */
|
|
567
|
+
[data-baht-theme='light'],
|
|
568
|
+
.baht-light {
|
|
569
|
+
--baht-green-50: #e6f2ec;
|
|
570
|
+
--baht-green-100: #dcfce7;
|
|
571
|
+
--baht-green-200: #bbf7d0;
|
|
572
|
+
--baht-green-300: #86efac;
|
|
573
|
+
--baht-green-400: #4ade80;
|
|
574
|
+
--baht-green-500: #22c55e;
|
|
575
|
+
--baht-green-600: #1f7a4d;
|
|
576
|
+
--baht-green-700: #15803d;
|
|
577
|
+
--baht-green-750: #175c3a;
|
|
578
|
+
--baht-green-800: #14532d;
|
|
579
|
+
--baht-green-900: #0f3d22;
|
|
580
|
+
--baht-green-950: #052e16;
|
|
581
|
+
--baht-cream-50: #ffffff;
|
|
582
|
+
--baht-cream-100: #fafafa;
|
|
583
|
+
--baht-cream-200: #f5f5f5;
|
|
584
|
+
--baht-cream-300: #e5e5e5;
|
|
585
|
+
--baht-cream-400: #d4d4d4;
|
|
586
|
+
--baht-gray-50: #fafafa;
|
|
587
|
+
--baht-gray-100: #f5f5f5;
|
|
588
|
+
--baht-gray-200: #e5e5e5;
|
|
589
|
+
--baht-gray-300: #d4d4d4;
|
|
590
|
+
--baht-gray-400: #a3a3a3;
|
|
591
|
+
--baht-gray-500: #737373;
|
|
592
|
+
--baht-gray-600: #595959;
|
|
593
|
+
--baht-gray-700: #404040;
|
|
594
|
+
--baht-gray-800: #262626;
|
|
595
|
+
--baht-gray-900: #0a0a0a;
|
|
596
|
+
--baht-rose-50: #fbeaec;
|
|
597
|
+
--baht-rose-100: #fee2e2;
|
|
598
|
+
--baht-rose-200: #fecaca;
|
|
599
|
+
--baht-rose-300: #fca5a5;
|
|
600
|
+
--baht-rose-400: #f87171;
|
|
601
|
+
--baht-rose-500: #c8202f;
|
|
602
|
+
--baht-rose-600: #dc2626;
|
|
603
|
+
--baht-rose-700: #b91c1c;
|
|
604
|
+
--baht-rose-800: #991b1b;
|
|
605
|
+
--baht-gold-50: #fbf1dc;
|
|
606
|
+
--baht-gold-400: #fbbf24;
|
|
607
|
+
--baht-gold-500: #c98a00;
|
|
608
|
+
--baht-gold-600: #d97706;
|
|
609
|
+
--baht-gold-700: #6e4a00;
|
|
610
|
+
--baht-red-50: #fbeaec;
|
|
611
|
+
--baht-red-400: #f87171;
|
|
612
|
+
--baht-red-500: #c8202f;
|
|
613
|
+
--baht-red-600: #9e1824;
|
|
614
|
+
--baht-red-700: #7f121c;
|
|
615
|
+
--baht-slate-50: #e8ecf6;
|
|
616
|
+
--baht-slate-500: #2e4a9e;
|
|
617
|
+
--baht-slate-600: #1c2a55;
|
|
618
|
+
--baht-base-100: #ffffff;
|
|
619
|
+
--baht-base-300: var(--baht-cream-200);
|
|
620
|
+
--baht-row-alt: var(--baht-gray-50);
|
|
621
|
+
--baht-primary: #2e4a9e;
|
|
622
|
+
--baht-primary-content: #ffffff;
|
|
623
|
+
--baht-secondary: var(--baht-gray-100);
|
|
624
|
+
--baht-secondary-content: var(--baht-gray-900);
|
|
625
|
+
--baht-accent-content: #ffffff;
|
|
626
|
+
--baht-accent-2: #b4532a;
|
|
627
|
+
--baht-accent-2-content: #ffffff;
|
|
628
|
+
--baht-neutral: #1c2a55;
|
|
629
|
+
--baht-neutral-content: #ffffff;
|
|
630
|
+
--baht-info-content: #ffffff;
|
|
631
|
+
--baht-success: var(--baht-green-600);
|
|
632
|
+
--baht-success-content: #ffffff;
|
|
633
|
+
--baht-warning-content: #ffffff;
|
|
634
|
+
--baht-error-content: #ffffff;
|
|
635
|
+
--baht-error-dot: var(--baht-rose-500);
|
|
636
|
+
--baht-color-surface-alt: var(--baht-gray-50);
|
|
637
|
+
--baht-color-divider: var(--baht-gray-100);
|
|
638
|
+
--baht-color-border-control: #949494;
|
|
639
|
+
--baht-color-primary-hover: color-mix(in oklab, var(--baht-primary) 86%, black);
|
|
640
|
+
--baht-color-primary-active: color-mix(in oklab, var(--baht-primary) 74%, black);
|
|
641
|
+
--baht-color-primary-tint: color-mix(in oklab, var(--baht-primary) 8%, white);
|
|
642
|
+
--baht-color-primary-wash: color-mix(in oklab, var(--baht-gray-900) 4%, transparent);
|
|
643
|
+
--baht-color-primary-wash-active: var(--baht-gray-100);
|
|
644
|
+
--baht-color-danger-hover: color-mix(in oklab, var(--baht-error) 84%, black);
|
|
645
|
+
--baht-color-link: var(--baht-slate-500);
|
|
646
|
+
--baht-color-shadow-ink: 0, 0, 0;
|
|
647
|
+
--baht-carbon: #4b3b7a;
|
|
648
|
+
--baht-warning: #8a5d00;
|
|
649
|
+
--baht-shadow-lift:
|
|
650
|
+
0 1px 3px rgba(var(--baht-color-shadow-ink), 0.08),
|
|
651
|
+
0 1px 2px -1px rgba(var(--baht-color-shadow-ink), 0.06);
|
|
652
|
+
--baht-shadow-float:
|
|
653
|
+
0 2px 6px rgba(var(--baht-color-shadow-ink), 0.06),
|
|
654
|
+
0 12px 32px -8px rgba(var(--baht-color-shadow-ink), 0.12);
|
|
655
|
+
--baht-chart-1: #3552b0;
|
|
656
|
+
--baht-chart-2: #1f7a4d;
|
|
657
|
+
--baht-chart-3: #8a5fb8;
|
|
658
|
+
--baht-chart-4: #b8860b;
|
|
659
|
+
--baht-chart-5: #178aa8;
|
|
660
|
+
--baht-chart-seq-1: #c3cbe6;
|
|
661
|
+
--baht-chart-seq-2: #8fa0d4;
|
|
662
|
+
--baht-chart-seq-3: #5a73c4;
|
|
663
|
+
--baht-chart-seq-4: #2e4a9e;
|
|
664
|
+
--baht-chart-seq-5: #1c2a55;
|
|
665
|
+
--baht-chart-muted: var(--baht-gray-300);
|
|
666
|
+
--baht-chart-grid: var(--baht-gray-200);
|
|
667
|
+
}
|
|
668
|
+
/* jscpd:ignore-end */
|
|
669
|
+
/* @end theme-light */
|
|
670
|
+
|
|
671
|
+
/* the surrounding page follows the theme too, when the host opts in */
|
|
672
|
+
[data-baht-theme] {
|
|
673
|
+
color-scheme: light;
|
|
674
|
+
}
|
|
675
|
+
[data-baht-theme='dark'],
|
|
676
|
+
.baht-dark {
|
|
677
|
+
color-scheme: dark;
|
|
678
|
+
}
|
|
679
|
+
|