@jirawatpyk/aura-tokens 4.4.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/GOVERNANCE.md +87 -0
- package/LICENSE +30 -0
- package/README.md +82 -0
- package/aura-fonts.css +2 -0
- package/aura.css +242 -0
- package/components/aura.bundle.js +4087 -0
- package/components/aura.components.css +967 -0
- package/components/index.d.ts +825 -0
- package/eslint-plugin-aura.js +34 -0
- package/figma-variables.csv +205 -0
- package/package.json +61 -0
- package/scripts/a11y-check.js +67 -0
- package/scripts/lint-tokens.js +32 -0
- package/tailwind.config.ts +29 -0
- package/tailwind.tokens.cjs +200 -0
- package/tokens.json +484 -0
package/GOVERNANCE.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# GOVERNANCE.md — AURA Design System
|
|
2
|
+
|
|
3
|
+
## Versioning
|
|
4
|
+
|
|
5
|
+
Semver `MAJOR.MINOR.PATCH`:
|
|
6
|
+
|
|
7
|
+
- **MAJOR** — a breaking token rename.
|
|
8
|
+
- **MINOR** — a new component or token.
|
|
9
|
+
- **PATCH** — a colour fix or docs.
|
|
10
|
+
|
|
11
|
+
## Breaking changes
|
|
12
|
+
|
|
13
|
+
1. Deprecate for one minor version before removing.
|
|
14
|
+
2. Ship a migration guide.
|
|
15
|
+
3. Announce in `#aura-changelog`.
|
|
16
|
+
|
|
17
|
+
## Contribution flow
|
|
18
|
+
|
|
19
|
+
1. Open a Proposal in Figma (a branch).
|
|
20
|
+
2. Pass the a11y checklist: contrast, focus, keyboard.
|
|
21
|
+
3. Open a PR on the `@aura/tokens` repo.
|
|
22
|
+
4. It must pass token-lint (no hardcoded colour), the contrast check (WCAG AA) and visual regression (Chromatic).
|
|
23
|
+
5. Two Design System Leads review.
|
|
24
|
+
6. Merge → auto-publish to npm and Figma.
|
|
25
|
+
|
|
26
|
+
## Token naming
|
|
27
|
+
|
|
28
|
+
`--aura-[tier]-[category]-[name]-[scale]-[state]` — e.g. `--aura-bg-surface-hover`, `--aura-fg-primary`, `--aura-button-bg-primary-hover`.
|
|
29
|
+
|
|
30
|
+
## Never
|
|
31
|
+
|
|
32
|
+
- Raw hex in code — semantic tokens only.
|
|
33
|
+
- A new colour without a Proposal.
|
|
34
|
+
- Creative tokens (brutal shadow, grain) in a Data Table.
|
|
35
|
+
|
|
36
|
+
## Adoption
|
|
37
|
+
|
|
38
|
+
- Track semantic-token use vs hardcoded values; target above 90%.
|
|
39
|
+
- Track Figma detaches.
|
|
40
|
+
|
|
41
|
+
## Decisions (4.1)
|
|
42
|
+
|
|
43
|
+
Made by the design-system owner in one pass, instead of separate Proposals. Each change is marked ADDED in its token note.
|
|
44
|
+
|
|
45
|
+
- **Status palette adopted.** Four tones (neutral, progress, ready, blocked). `aura-red-700` is the only warm hue for state, chosen dark so Ready (lime-200) and Blocked differ by lightness (5.5:1), not only by hue.
|
|
46
|
+
- **Alert palette adopted.** Info (violet), success (lime), warning (amber), danger (red), each with its own fill, edge and text for light and dark. Amber is limited to warning.
|
|
47
|
+
- **Lucide adopted** as the only icon set, 52 icons. New icons come from Lucide unchanged.
|
|
48
|
+
- **Focus ring adopted**: 2px violet, 2px offset, on every interactive element.
|
|
49
|
+
- **`aura-fg-tertiary` raised** to zinc-500 (light) and a new zinc-450 (dark) so it passes AA. A PATCH-level colour fix; nothing is renamed.
|
|
50
|
+
- **Creative shadow themed**: ink in light, violet-400 in dark.
|
|
51
|
+
- **Dark primary button** follows the Storybook story (white fill); dark hover is zinc-200.
|
|
52
|
+
- **Overlay elevation added**: `aura-shadow-overlay`, `aura-bg-scrim` and the `aura-z-*` scale, for dialogs, toasts and tooltips only.
|
|
53
|
+
- **Form tokens added**: `aura-bg-input`, `aura-bg-input-disabled`, `aura-fg-danger`, `aura-border-danger`, `aura-border-control`, `aura-input-height`.
|
|
54
|
+
- **Textures adopted** as Creative-only: mesh and 4% grain.
|
|
55
|
+
- **Table tokens adopted**: `aura-bg-selected` (opaque in dark), `aura-bg-skeleton`, `aura-table-select-width`, `aura-control-sm`; the header uses `aura-fg-secondary` instead of 60% opacity.
|
|
56
|
+
- **Fonts** stay on Google Fonts (no self-hosted files) until a team needs offline use.
|
|
57
|
+
|
|
58
|
+
## Decisions (4.2)
|
|
59
|
+
|
|
60
|
+
- **React package**: components are now a real ES-module package, `@aura/react` (ESM per file with `'use client'`, CJS, TypeScript types, SSR-safe). The `window.Aura` bundle is generated from the same source, so the artifact, Storybook and apps run identical code.
|
|
61
|
+
- **Breakpoints adopted**: `aura-bp-sm/md/lg/xl` = 640 / 768 / 1024 / 1280, mobile-first, matching Tailwind's defaults so utility classes and components agree.
|
|
62
|
+
- **Layout tokens added**: `aura-container-max` (1280), `aura-container-narrow` (720), `aura-drawer-sm/md/lg` (360/480/640), `aura-cal-cell` (36), `aura-popover-max-height` (320).
|
|
63
|
+
- **`aura-z-dialog` lowered to 900** (was 1100) so menus and pickers opened inside dialogs and drawers show on top. A value change, not a rename.
|
|
64
|
+
- **Buddhist era by default**: dates display in Thai with พ.ศ. years; data stays ISO. Typed years ≥ 2400 are read as พ.ศ.
|
|
65
|
+
- **Week starts Sunday** in calendars (Thai convention); `weekStartsOn={1}` per team.
|
|
66
|
+
- **Thai UI strings** through `AuraProvider locale="th"`; English stays the default so 4.1 screens don't change.
|
|
67
|
+
- **Pilot rule**: a component isn't "done" until it has been used on the pilot page at 390px and 1440px and passes its axe and keyboard checks.
|
|
68
|
+
|
|
69
|
+
## Decisions (4.3)
|
|
70
|
+
|
|
71
|
+
- **`aura-fg-positive` added** (lime-800 light, lime-300 dark; ≥7:1). Only for good-news numbers, always with a trending icon and a sign.
|
|
72
|
+
- **Change tone is separate from direction** in Stat: more cancellations is up and negative.
|
|
73
|
+
- **Times are 24-hour `HH:mm`** in data and on screen. Typed 12-hour input is accepted and converted.
|
|
74
|
+
- **Uploads stay in the app**: FileUpload validates and shows progress; sending, retries and storage belong to the product.
|
|
75
|
+
- **Seven Lucide icons added** (59 total): clock, trending-up, trending-down, image, paperclip, cloud-upload, file.
|
|
76
|
+
- **Tablet rule**: every DataTable on a page used at 820px sets `hideBelow` on secondary columns rather than scrolling sideways.
|
|
77
|
+
- **Grid focus**: controls inside DataTable cells leave the Tab order (APG grid); Enter enters a cell, Escape leaves it.
|
|
78
|
+
|
|
79
|
+
## Decisions (4.4)
|
|
80
|
+
|
|
81
|
+
- **AURA is for every project.** Project-specific needs (recurring bookings, a scheduling calendar) are built in the project, not in the system. A component joins AURA when at least two projects need it.
|
|
82
|
+
- **Brand is a theme layer.** `createTheme` / `aura-theme` / `ThemeStyle` re-map brand-carrying tokens; meaning colours never follow the brand. A theme that fails a contrast check fails the build.
|
|
83
|
+
- **Every component forwards its ref** to its real DOM element.
|
|
84
|
+
- **Three pilots are the acceptance test**: admin (Orders, Thai), form-heavy (Settings, English, react-hook-form), Creative (Launch, re-branded). A change ships when all three pass axe in both themes at 390/820/1440px.
|
|
85
|
+
- **Textures are always light**: Surface forces light-theme tokens inside.
|
|
86
|
+
- **Distribution**: one GitHub repository (Jirawatpyk/Aura-design) publishing `@jirawatpyk/aura-tokens` and `@jirawatpyk/aura-react` to GitHub Packages; projects install a version, never copy files.
|
|
87
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jirawatpyk
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Icons: path data from Lucide (https://lucide.dev), ISC License.
|
|
26
|
+
Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part
|
|
27
|
+
of Feather (MIT). All other copyright (c) for Lucide are held by Lucide
|
|
28
|
+
Contributors 2022. Permission to use, copy, modify, and/or distribute this
|
|
29
|
+
software for any purpose with or without fee is hereby granted, provided that
|
|
30
|
+
the above copyright notice and this permission notice appear in all copies.
|
package/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# AURA Design System 4.4 — `@jirawatpyk/aura-tokens` (imported as `@aura/tokens`)
|
|
2
|
+
|
|
3
|
+
Enterprise Standard, Human Creative. Tokens, Tailwind preset, Figma variables a contrast check and token lint. The components live in `../react` (`@aura/react`); `components/` here is a synced copy of their `window.Aura` bundle for `<script>`-tag use.
|
|
4
|
+
|
|
5
|
+
## What's inside
|
|
6
|
+
|
|
7
|
+
| File | What |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `tokens.json` | **Source of truth.** 3-tier: primitive → semantic (light/dark) → component, plus spacing, radius, shadow (per theme), size, motion, opacity, z-index, typography. |
|
|
10
|
+
| `aura.css` | Every token as a CSS variable. Light on `:root` / `[data-theme="light"]`, dark on `.dark` / `[data-theme="dark"]`. **Generated.** |
|
|
11
|
+
| `aura-fonts.css` | The Google Fonts `@import` (Fraunces, Inter, JetBrains Mono, Noto Sans Thai). Kept separate so a network that blocks Google can't break `aura.css`. **Generated.** |
|
|
12
|
+
| `tailwind.config.ts` + `tailwind.tokens.cjs` | Tailwind theme wired to the variables (`bg-bg-surface`, `text-fg-danger`, `rounded-aura-xl`, `shadow-aura-overlay` …). The `.cjs` is **generated**. |
|
|
13
|
+
| `figma-variables.csv` | 204 variables: all colours in both modes (aliases kept), spacing, radius and sizes. **Generated.** |
|
|
14
|
+
| `components/` | `aura.bundle.js` (sets `window.Aura`), `aura.components.css`, `index.d.ts`. |
|
|
15
|
+
| `eslint-plugin-aura.js` | `aura/no-hardcoded-color`: hex, rgb()/hsl() and Tailwind `bg-[#…]` classes. |
|
|
16
|
+
| `scripts/build-tokens.js` | Rebuilds the generated files from `tokens.json`. |
|
|
17
|
+
| `scripts/a11y-check.js` | Checks 94 text/ground pairs in both themes (WCAG AA). |
|
|
18
|
+
| `scripts/lint-tokens.js` | Fails on hard-coded colours (a file that must hold them says `aura-lint: allow-colours` with a reason). |
|
|
19
|
+
|
|
20
|
+
## ใช้งาน (5 นาที)
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# public on npmjs; internal projects can use GitHub Packages instead (see the repository README)
|
|
24
|
+
npm install @aura/tokens@npm:@jirawatpyk/aura-tokens @aura/react@npm:@jirawatpyk/aura-react
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
// app/layout.tsx
|
|
29
|
+
import '@aura/tokens/aura-fonts.css' // Google Fonts (or use the <link> tags below instead)
|
|
30
|
+
import '@aura/tokens/aura.css' // tokens
|
|
31
|
+
import '@aura/react/styles.css' // component styles (with @aura/react)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<!-- Preferred: load the fonts from <head> instead of aura-fonts.css — faster, and a blocked host fails quietly -->
|
|
36
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
37
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
38
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&family=Noto+Sans+Thai:wght@400;500;600&display=swap">
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Dark theme: put `class="dark"` (or `data-theme="dark"`) on `<html>`.
|
|
42
|
+
|
|
43
|
+
### Tailwind
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
// tailwind.config.ts — copy this file, or spread the maps from '@aura/tokens/tailwind'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
// ❌ ห้าม
|
|
51
|
+
<div className="bg-[#18181b] text-white">
|
|
52
|
+
// ✅ ต้อง
|
|
53
|
+
<div className="bg-bg-surface-strong text-fg-inverted rounded-aura-xl p-aura-6">
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Components
|
|
57
|
+
|
|
58
|
+
The bundle is a classic script that reads `window.React` / `window.ReactDOM` and sets `window.Aura`:
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
import React from 'react'
|
|
62
|
+
import ReactDOM from 'react-dom'
|
|
63
|
+
;(window as any).React = React; (window as any).ReactDOM = ReactDOM
|
|
64
|
+
import '@aura/tokens/components.js'
|
|
65
|
+
const { Button, TextField, DataTable, Dialog, toast, Toaster } = (window as any).Aura
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Types for every component are in `components/index.d.ts`.
|
|
69
|
+
|
|
70
|
+
## Changing a token
|
|
71
|
+
|
|
72
|
+
1. Edit `tokens.json` (never `aura.css`, `tailwind.tokens.cjs` or the CSV).
|
|
73
|
+
2. `npm run build:tokens` (regenerates the generated files).
|
|
74
|
+
3. `npm run a11y` (every text/ground pair in both themes must pass AA).
|
|
75
|
+
4. Open a PR; see `GOVERNANCE.md`.
|
|
76
|
+
|
|
77
|
+
## Build & publish
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm run build # build:tokens + contrast check + dist/
|
|
81
|
+
npm publish # to your private registry
|
|
82
|
+
```
|
package/aura-fonts.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* AURA fonts from Google Fonts: Fraunces 600, Inter 400/500/600, JetBrains Mono 400, Noto Sans Thai 400/500/600. GENERATED. */
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&family=Noto+Sans+Thai:wght@400;500;600&display=swap");
|
package/aura.css
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/* AURA v4.4.1 — GENERATED by scripts/build-tokens.js from tokens.json. Do not edit by hand. */
|
|
2
|
+
/* Fonts: load aura-fonts.css (or the <link> tags in README) separately, so a blocked Google Fonts never breaks this file. */
|
|
3
|
+
|
|
4
|
+
:root, [data-theme="light"] {
|
|
5
|
+
--aura-violet-50: #f5f3ff;
|
|
6
|
+
--aura-violet-100: #ede9fe;
|
|
7
|
+
--aura-violet-200: #ddd6fe;
|
|
8
|
+
--aura-violet-300: #c4b5fd;
|
|
9
|
+
--aura-violet-400: #a78bfa;
|
|
10
|
+
--aura-violet-500: #8b5cf6;
|
|
11
|
+
--aura-violet-600: #7c3aed;
|
|
12
|
+
--aura-violet-700: #6d28d9;
|
|
13
|
+
--aura-violet-800: #5b21b6;
|
|
14
|
+
--aura-violet-900: #4c1d95;
|
|
15
|
+
--aura-zinc-0: #ffffff;
|
|
16
|
+
--aura-zinc-50: #fafafa;
|
|
17
|
+
--aura-zinc-100: #f4f4f5;
|
|
18
|
+
--aura-zinc-200: #e4e4e7;
|
|
19
|
+
--aura-zinc-300: #d4d4d8;
|
|
20
|
+
--aura-zinc-400: #a1a1aa;
|
|
21
|
+
--aura-zinc-450: #8e8e97;
|
|
22
|
+
--aura-zinc-500: #71717a;
|
|
23
|
+
--aura-zinc-600: #52525b;
|
|
24
|
+
--aura-zinc-700: #3f3f46;
|
|
25
|
+
--aura-zinc-800: #27272a;
|
|
26
|
+
--aura-zinc-900: #18181b;
|
|
27
|
+
--aura-zinc-950: #08080a;
|
|
28
|
+
--aura-lime-50: #f7fee7;
|
|
29
|
+
--aura-lime-100: #ecfccb;
|
|
30
|
+
--aura-lime-200: #d9f99d;
|
|
31
|
+
--aura-lime-300: #bef264;
|
|
32
|
+
--aura-lime-400: #a3e635;
|
|
33
|
+
--aura-lime-500: #84cc16;
|
|
34
|
+
--aura-lime-600: #65a30d;
|
|
35
|
+
--aura-lime-800: #3f6212;
|
|
36
|
+
--aura-red-50: #fef2f2;
|
|
37
|
+
--aura-red-200: #fecaca;
|
|
38
|
+
--aura-red-300: #fca5a5;
|
|
39
|
+
--aura-red-400: #f87171;
|
|
40
|
+
--aura-red-700: #b91c1c;
|
|
41
|
+
--aura-amber-50: #fffbeb;
|
|
42
|
+
--aura-amber-200: #fde68a;
|
|
43
|
+
--aura-amber-300: #fcd34d;
|
|
44
|
+
--aura-amber-800: #92400e;
|
|
45
|
+
--aura-ink: #08080a;
|
|
46
|
+
--aura-white: #ffffff;
|
|
47
|
+
--aura-bg-surface: var(--aura-zinc-0);
|
|
48
|
+
--aura-bg-surface-hover: var(--aura-zinc-50);
|
|
49
|
+
--aura-bg-surface-strong: var(--aura-zinc-900);
|
|
50
|
+
--aura-bg-canvas: var(--aura-zinc-50);
|
|
51
|
+
--aura-bg-inverted: var(--aura-zinc-900);
|
|
52
|
+
--aura-fg-primary: var(--aura-zinc-900);
|
|
53
|
+
--aura-fg-secondary: var(--aura-zinc-600);
|
|
54
|
+
--aura-fg-tertiary: var(--aura-zinc-500);
|
|
55
|
+
--aura-fg-inverted: var(--aura-zinc-0);
|
|
56
|
+
--aura-fg-accent: var(--aura-violet-700);
|
|
57
|
+
--aura-border-default: var(--aura-zinc-200);
|
|
58
|
+
--aura-border-strong: var(--aura-zinc-900);
|
|
59
|
+
--aura-border-subtle: var(--aura-zinc-100);
|
|
60
|
+
--aura-accent-dot: var(--aura-lime-200);
|
|
61
|
+
--aura-accent-violet: var(--aura-violet-700);
|
|
62
|
+
--aura-accent-lime: var(--aura-lime-200);
|
|
63
|
+
--aura-focus-ring: var(--aura-violet-700);
|
|
64
|
+
--aura-mesh-from: var(--aura-violet-400);
|
|
65
|
+
--aura-mesh-to: var(--aura-lime-200);
|
|
66
|
+
--aura-mesh-ground: var(--aura-white);
|
|
67
|
+
--aura-on-texture: var(--aura-ink);
|
|
68
|
+
--aura-grain: var(--aura-ink);
|
|
69
|
+
--aura-status-neutral-bg: var(--aura-zinc-100);
|
|
70
|
+
--aura-status-neutral-fg: var(--aura-zinc-700);
|
|
71
|
+
--aura-status-progress-bg: var(--aura-violet-100);
|
|
72
|
+
--aura-status-progress-fg: var(--aura-violet-800);
|
|
73
|
+
--aura-status-ready-bg: var(--aura-lime-200);
|
|
74
|
+
--aura-status-ready-fg: var(--aura-ink);
|
|
75
|
+
--aura-status-blocked-bg: var(--aura-red-700);
|
|
76
|
+
--aura-status-blocked-fg: var(--aura-white);
|
|
77
|
+
--aura-bg-selected: var(--aura-violet-50);
|
|
78
|
+
--aura-border-control: var(--aura-zinc-500);
|
|
79
|
+
--aura-bg-skeleton: var(--aura-zinc-100);
|
|
80
|
+
--aura-fg-danger: var(--aura-red-700);
|
|
81
|
+
--aura-border-danger: var(--aura-red-700);
|
|
82
|
+
--aura-bg-input: var(--aura-zinc-0);
|
|
83
|
+
--aura-bg-input-disabled: var(--aura-zinc-50);
|
|
84
|
+
--aura-bg-scrim: rgba(8,8,10,0.48);
|
|
85
|
+
--aura-alert-info-bg: var(--aura-violet-50);
|
|
86
|
+
--aura-alert-info-fg: var(--aura-violet-800);
|
|
87
|
+
--aura-alert-info-border: var(--aura-violet-200);
|
|
88
|
+
--aura-alert-success-bg: var(--aura-lime-50);
|
|
89
|
+
--aura-alert-success-fg: var(--aura-lime-800);
|
|
90
|
+
--aura-alert-success-border: var(--aura-lime-200);
|
|
91
|
+
--aura-alert-warning-bg: var(--aura-amber-50);
|
|
92
|
+
--aura-alert-warning-fg: var(--aura-amber-800);
|
|
93
|
+
--aura-alert-warning-border: var(--aura-amber-200);
|
|
94
|
+
--aura-alert-danger-bg: var(--aura-red-50);
|
|
95
|
+
--aura-alert-danger-fg: var(--aura-red-700);
|
|
96
|
+
--aura-alert-danger-border: var(--aura-red-200);
|
|
97
|
+
--aura-fg-positive: var(--aura-lime-800);
|
|
98
|
+
--aura-button-primary-bg: var(--aura-zinc-900);
|
|
99
|
+
--aura-button-primary-fg: var(--aura-zinc-0);
|
|
100
|
+
--aura-button-primary-bg-hover: var(--aura-zinc-800);
|
|
101
|
+
--aura-button-creative-bg: var(--aura-white);
|
|
102
|
+
--aura-button-creative-border: var(--aura-zinc-900);
|
|
103
|
+
--aura-card-border: var(--aura-zinc-200);
|
|
104
|
+
--aura-shadow-enterprise: 0 1px 2px rgba(0,0,0,0.05);
|
|
105
|
+
--aura-shadow-overlay: 0 16px 48px rgba(8,8,10,0.16), 0 2px 8px rgba(8,8,10,0.08);
|
|
106
|
+
--aura-shadow-creative: 4px 4px 0px #18181b;
|
|
107
|
+
--aura-shadow-creative-hover: 6px 6px 0px #18181b;
|
|
108
|
+
--aura-card-shadow-creative: 8px 8px 0px #18181b;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dark, [data-theme="dark"] {
|
|
112
|
+
--aura-bg-surface: var(--aura-zinc-900);
|
|
113
|
+
--aura-bg-surface-hover: var(--aura-zinc-800);
|
|
114
|
+
--aura-bg-surface-strong: var(--aura-zinc-0);
|
|
115
|
+
--aura-bg-canvas: var(--aura-zinc-950);
|
|
116
|
+
--aura-bg-inverted: var(--aura-zinc-0);
|
|
117
|
+
--aura-fg-primary: var(--aura-zinc-0);
|
|
118
|
+
--aura-fg-secondary: var(--aura-zinc-400);
|
|
119
|
+
--aura-fg-tertiary: var(--aura-zinc-450);
|
|
120
|
+
--aura-fg-inverted: var(--aura-zinc-900);
|
|
121
|
+
--aura-fg-accent: var(--aura-violet-300);
|
|
122
|
+
--aura-border-default: rgba(255,255,255,0.1);
|
|
123
|
+
--aura-border-strong: var(--aura-zinc-0);
|
|
124
|
+
--aura-border-subtle: rgba(255,255,255,0.06);
|
|
125
|
+
--aura-accent-violet: var(--aura-violet-400);
|
|
126
|
+
--aura-focus-ring: var(--aura-violet-400);
|
|
127
|
+
--aura-bg-selected: #2c283a;
|
|
128
|
+
--aura-border-control: var(--aura-zinc-400);
|
|
129
|
+
--aura-bg-skeleton: var(--aura-zinc-800);
|
|
130
|
+
--aura-fg-danger: var(--aura-red-400);
|
|
131
|
+
--aura-border-danger: var(--aura-red-400);
|
|
132
|
+
--aura-bg-input: var(--aura-zinc-900);
|
|
133
|
+
--aura-bg-input-disabled: var(--aura-zinc-950);
|
|
134
|
+
--aura-bg-scrim: rgba(0,0,0,0.64);
|
|
135
|
+
--aura-alert-info-bg: #2c283a;
|
|
136
|
+
--aura-alert-info-fg: var(--aura-violet-300);
|
|
137
|
+
--aura-alert-info-border: #514674;
|
|
138
|
+
--aura-alert-success-bg: #27311a;
|
|
139
|
+
--aura-alert-success-fg: var(--aura-lime-300);
|
|
140
|
+
--aura-alert-success-border: #436019;
|
|
141
|
+
--aura-alert-warning-bg: #372b19;
|
|
142
|
+
--aura-alert-warning-fg: var(--aura-amber-300);
|
|
143
|
+
--aura-alert-warning-border: #704e15;
|
|
144
|
+
--aura-alert-danger-bg: #361e21;
|
|
145
|
+
--aura-alert-danger-fg: var(--aura-red-300);
|
|
146
|
+
--aura-alert-danger-border: #6e2a2b;
|
|
147
|
+
--aura-fg-positive: var(--aura-lime-300);
|
|
148
|
+
--aura-button-primary-bg: var(--aura-zinc-0);
|
|
149
|
+
--aura-button-primary-fg: var(--aura-zinc-900);
|
|
150
|
+
--aura-button-primary-bg-hover: var(--aura-zinc-200);
|
|
151
|
+
--aura-shadow-overlay: 0 16px 48px rgba(0,0,0,0.56), 0 2px 8px rgba(0,0,0,0.32);
|
|
152
|
+
--aura-shadow-creative: 4px 4px 0px #a78bfa;
|
|
153
|
+
--aura-shadow-creative-hover: 6px 6px 0px #a78bfa;
|
|
154
|
+
--aura-card-shadow-creative: 8px 8px 0px #a78bfa;
|
|
155
|
+
color-scheme: dark;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:root {
|
|
159
|
+
--aura-space-0: 0px;
|
|
160
|
+
--aura-space-1: 4px;
|
|
161
|
+
--aura-space-2: 8px;
|
|
162
|
+
--aura-space-3: 12px;
|
|
163
|
+
--aura-space-4: 16px;
|
|
164
|
+
--aura-space-5: 20px;
|
|
165
|
+
--aura-space-6: 24px;
|
|
166
|
+
--aura-space-8: 32px;
|
|
167
|
+
--aura-space-10: 40px;
|
|
168
|
+
--aura-space-12: 48px;
|
|
169
|
+
--aura-space-16: 64px;
|
|
170
|
+
--aura-card-padding: 24px;
|
|
171
|
+
--aura-radius-xs: 4px;
|
|
172
|
+
--aura-radius-sm: 8px;
|
|
173
|
+
--aura-radius-md: 12px;
|
|
174
|
+
--aura-radius-lg: 16px;
|
|
175
|
+
--aura-radius-xl: 20px;
|
|
176
|
+
--aura-radius-2xl: 24px;
|
|
177
|
+
--aura-radius-full: 9999px;
|
|
178
|
+
--aura-radius-squircle: 20px;
|
|
179
|
+
--aura-card-radius: 20px;
|
|
180
|
+
--aura-button-radius: 9999px;
|
|
181
|
+
--aura-button-height: 44px;
|
|
182
|
+
--aura-icon-sm: 16px;
|
|
183
|
+
--aura-icon-md: 20px;
|
|
184
|
+
--aura-icon-lg: 24px;
|
|
185
|
+
--aura-focus-ring-width: 2px;
|
|
186
|
+
--aura-focus-ring-offset: 2px;
|
|
187
|
+
--aura-table-select-width: 40px;
|
|
188
|
+
--aura-control-sm: 32px;
|
|
189
|
+
--aura-input-height: 44px;
|
|
190
|
+
--aura-switch-width: 36px;
|
|
191
|
+
--aura-switch-height: 20px;
|
|
192
|
+
--aura-avatar-sm: 24px;
|
|
193
|
+
--aura-avatar-md: 32px;
|
|
194
|
+
--aura-avatar-lg: 40px;
|
|
195
|
+
--aura-dialog-sm: 400px;
|
|
196
|
+
--aura-dialog-md: 560px;
|
|
197
|
+
--aura-dialog-lg: 720px;
|
|
198
|
+
--aura-sidenav-width: 240px;
|
|
199
|
+
--aura-tooltip-max: 240px;
|
|
200
|
+
--aura-drawer-sm: 360px;
|
|
201
|
+
--aura-drawer-md: 480px;
|
|
202
|
+
--aura-drawer-lg: 640px;
|
|
203
|
+
--aura-container-max: 1280px;
|
|
204
|
+
--aura-container-narrow: 720px;
|
|
205
|
+
--aura-cal-cell: 36px;
|
|
206
|
+
--aura-popover-max-height: 320px;
|
|
207
|
+
--aura-bp-sm: 640px;
|
|
208
|
+
--aura-bp-md: 768px;
|
|
209
|
+
--aura-bp-lg: 1024px;
|
|
210
|
+
--aura-bp-xl: 1280px;
|
|
211
|
+
--aura-grain-opacity: 0.04;
|
|
212
|
+
--aura-disabled-opacity: 0.5;
|
|
213
|
+
--aura-z-menu: 1000;
|
|
214
|
+
--aura-z-dialog: 900;
|
|
215
|
+
--aura-z-toast: 1200;
|
|
216
|
+
--aura-z-tooltip: 1300;
|
|
217
|
+
--aura-ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
218
|
+
--aura-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
219
|
+
--aura-duration-fast: 150ms;
|
|
220
|
+
--aura-duration-base: 250ms;
|
|
221
|
+
--aura-duration-slow: 400ms;
|
|
222
|
+
--aura-duration-spin: 800ms;
|
|
223
|
+
--aura-duration-pulse: 1400ms;
|
|
224
|
+
--aura-duration-toast: 5000ms;
|
|
225
|
+
--aura-duration-tooltip: 400ms;
|
|
226
|
+
--font-display: "Fraunces", "Noto Sans Thai", serif;
|
|
227
|
+
--font-sans: "Inter", "Noto Sans Thai", sans-serif;
|
|
228
|
+
--font-mono: "JetBrains Mono", monospace;
|
|
229
|
+
--font-thai: "Noto Sans Thai", sans-serif;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.aura-text-display { font-family: var(--font-display); font-size: 72px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
|
|
233
|
+
.aura-text-h1 { font-family: var(--font-display); font-size: 36px; font-weight: 600; }
|
|
234
|
+
.aura-text-h2 { font-family: var(--font-sans); font-size: 24px; font-weight: 600; }
|
|
235
|
+
.aura-text-h3 { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; font-weight: 600; }
|
|
236
|
+
.aura-text-body { font-family: var(--font-sans); font-size: 14px; line-height: 1.7; font-weight: 400; }
|
|
237
|
+
.aura-text-button-label { font-family: var(--font-sans); font-size: 13px; font-weight: 500; }
|
|
238
|
+
.aura-text-table-cell { font-family: var(--font-sans); font-size: 13px; font-weight: 400; }
|
|
239
|
+
.aura-text-pill-label { font-family: var(--font-sans); font-size: 11px; font-weight: 400; }
|
|
240
|
+
.aura-text-label { font-family: var(--font-sans); font-size: 13px; line-height: 1.4; font-weight: 500; }
|
|
241
|
+
.aura-text-caption { font-family: var(--font-sans); font-size: 12px; line-height: 1.5; font-weight: 400; }
|
|
242
|
+
.aura-text-mono { font-family: var(--font-mono); font-size: 12px; }
|