@gemboss/ui 0.70.0 → 0.70.2
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/CHANGELOG.md +69 -0
- package/README.md +7 -1
- package/catalog/editor.html +1 -1
- package/catalog/index.html +1 -1
- package/gemboss-ui.css +3 -3
- package/package.json +4 -1
- package/parts/components.css +1 -1
- package/parts/core.css +1 -1
- package/parts/shell.css +1 -1
- package/src/account-extras.css +1 -0
- package/src/account-row.tsx +44 -0
- package/src/account.tsx +5 -3
- package/src/assistant/attachments.tsx +4 -1
- package/src/assistant/bridge.tsx +56 -6
- package/src/assistant/composer-menus.tsx +12 -6
- package/src/assistant/engine.tsx +14 -2
- package/src/assistant/index.ts +1 -1
- package/src/chat-attachments.css +1 -1
- package/src/chat-composer-menus.css +1 -1
- package/src/chat-plain.js +1 -1
- package/src/chat.css +1 -1
- package/src/engine-plain.js +1 -1
- package/src/gem-holo.css +1 -1
- package/src/index.ts +3 -0
- package/src/rail-fold.css +1 -0
- package/src/shell.tsx +7 -5
- package/src/stage-compose.css +1 -0
- package/src/stage-compose.tsx +78 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,64 @@ Versions up to 0.9.0 are described in the README, each in the section that intro
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.70.2 (12/11/2026)
|
|
8
|
+
|
|
9
|
+
**The account menu's rows can carry a mark, a second line and a hint: `AccountMenuRow`** (11/11/2026, first caller: the admin's top bar,
|
|
10
|
+
which moved "AI: GemBoss AI" and the GemBoss Desktop invitation from the bar into this menu, UI/UX canvas "1.1 Dùng chung › Khung").
|
|
11
|
+
`AccountMenuRow` (new module `account-row.tsx`) is `AccountMenuItem` with `icon`, `description` and `hint`, drawn as the ⋯ menu's
|
|
12
|
+
`MenuItem` draws them (a 16px muted mark, the label over one muted caption line, quiet words or a mark on the right) at the account
|
|
13
|
+
menu's own 16px inset; `AccountMenuSeparator` is the line between groups. Their rules are the new entry `account-extras.css`, brought by
|
|
14
|
+
`account-row.tsx`, not `account.tsx`: a menu row is drawn only once its menu opens, and a surface drawing only plain rows in its first
|
|
15
|
+
paint does not carry these rules there (measured 12/11/2026 on the admin's dashboard first-load budget). Such a row is 288px wide at
|
|
16
|
+
least, never wider than the screen less 32px: the menu hangs from the avatar, 19px in from a phone's right edge, and at `100vw - 16px` its
|
|
17
|
+
left edge went 3px past a 280px screen. A caller's `className` is now ADDED to `AccountMenuItem`'s class (it replaced it before, so a
|
|
18
|
+
caller had to repeat `gemboss-account-menu-item`), as `MenuItem` does. `topbar-kit.test.tsx` holds the markup.
|
|
19
|
+
|
|
20
|
+
**Stage compositions: `StageJoin`, `StageThumb`, `StageFan`, entry `stage-compose.css`** (12/11/2026, Chris: the onboarding
|
|
21
|
+
picture is THE picture style; Creator plan slice 1). Pictures two admin screens drew by hand on a `Stage` are named once in the
|
|
22
|
+
kit, in their own entry (a screen that draws a Stage without them does not carry them): `StageJoin` puts a drawn mark between
|
|
23
|
+
sides (`join="→"`, or one mark per gap, `["+", "→"]`, the last repeated); whitespace, `""`, `false`, `null` and a stray `0` are not
|
|
24
|
+
sides, a Fragment's children are. `StageThumb` is a page's picture with no window bar, 64×80 (`lit` 80×96 and glowing, `label` on
|
|
25
|
+
its foot, `tag` on its head) that keeps its size in a row too tight for it. `StageFan` fans three `StageWindow`s (two 170px tilted
|
|
26
|
+
±8° behind, one 190px upright in front; one window alone stands in front), for a stage about 460px wide; its per-window rules sit
|
|
27
|
+
in `:where()` so a screen's one class can size a window. Home's recipes (`.path`, `.shot`) and the welcome popup (`.fan`) use them
|
|
28
|
+
and their own CSS for it is gone. Pixel compare against main at 320/390/768/1280/1366/1920: identical, except Home at 320 where
|
|
29
|
+
the email recipe's page keeps its 80×96 instead of narrowing.
|
|
30
|
+
|
|
31
|
+
**A paired bridge's new engines reach ✦** (12/11/2026, found moving the toolkits to 0.70.1). `useBridge` kept the whole old
|
|
32
|
+
probe whenever a new one found the same state, so a paired bridge's engines never updated (a CLI signed in or out on the
|
|
33
|
+
machine stayed as it was until Check again), on ✦ opening (`refresh`) and in the background probes alike. Same state now takes
|
|
34
|
+
the new probe's data and keeps the user's notes (lost, off, wrong, dismissed); nothing new, the same object.
|
|
35
|
+
|
|
36
|
+
## 0.70.1 (12/11/2026)
|
|
37
|
+
|
|
38
|
+
**Gem answers in plain words** (12/11/2026, canvas board ChatKit: "Người dùng: bong bóng đen bên phải. Gem: chữ trơn bên trái,
|
|
39
|
+
không bong bóng"; Chris left the choice to Claude). The answer bubble (`.gemboss-ec-msg.assistant .gemboss-ec-bubble`) has no fill,
|
|
40
|
+
border or corner and starts at the column's edge, in line with its step rows; the seller's message keeps its bubble. A surface
|
|
41
|
+
that draws a message as a card (the admin Inbox) gives it its own fill and border.
|
|
42
|
+
|
|
43
|
+
**The plain chat under a strict CSP; the heartbeat's hologram does not pulse** (12/11/2026, found moving gemcare onto 0.69.0).
|
|
44
|
+
chat-plain.js and engine-plain.js set a `style` through CSSOM (`style.cssText`), not `setAttribute("style")`: a page whose CSP
|
|
45
|
+
has no inline styles (gemcare's inbox: `style-src 'self'`) refused the attribute, so the heartbeat's hologram drew at 32px beside
|
|
46
|
+
14px text and an engine slot lost `display: contents`. engine-plain.js' redraw (`patch`) changes a style
|
|
47
|
+
through CSSOM too. gem-holo.css gives the heartbeat (`.ui-holo.gemboss-ec-pending-star`) its 14px from the sheet, so a strict CSP
|
|
48
|
+
cannot leave it at 32px in either chat, server-rendered React included, and turns the old star's pulse (chat.css) off on it: it
|
|
49
|
+
moves by itself. The fallback dot of a page without gem-holo.css still pulses.
|
|
50
|
+
|
|
51
|
+
**A paid engine says so on ✦** (12/11/2026, Gems/CLAUDE.md §11; Chris: "bạn quyết đi"). `EngineChoice.paid`: an engine billed
|
|
52
|
+
per turn to a paid API key. While it is the engine, ✦ is an amber pill "✦ Paid" (28px tall under a mouse, 44px under a finger),
|
|
53
|
+
its name adds "Paid per turn", and its Model row says "Paid per turn" unless its badge already says paid. The chip carried this
|
|
54
|
+
in its words ("…, paid"); ✦ had lost it. Surfaces set `paid` on their API engine at their next bump.
|
|
55
|
+
|
|
56
|
+
**✦ says the bridge in words; `useBridge().refresh()` reads again quietly** (12/11/2026, from moving five toolkits onto 0.70.0).
|
|
57
|
+
`aiButtonName` adds the bridge's state when it is not running ("AI model: Claude Code · Opus. Bridge on your machine: Not
|
|
58
|
+
connected"), as the engine chip's name did: the dot alone said nothing to a screen reader. `useBridge` gains `refresh()`: the
|
|
59
|
+
server's engines and the bridge read again while what is shown stays, without `onDetected` (no engine switch under the hand), a
|
|
60
|
+
second call while one is out dropped. Wire it to ✦ opening (`ai.onOpen: b.refresh`); `recheck()` (Check again) is unchanged.
|
|
61
|
+
It reads only once the first read has answered (a read then would cancel it and its `onDetected`), keeps "asking" and
|
|
62
|
+
a probe's notes as the background probe does, shares that probe's one-at-a-time guard, and checks `r.ok`. New exports
|
|
63
|
+
`bridgeStateWords`, `bridgeSuffix` (the chip and ✦ say the bridge with one rule).
|
|
64
|
+
|
|
7
65
|
## 0.70.0 (12/11/2026)
|
|
8
66
|
|
|
9
67
|
**One composer for every Gem chat: "+", ✦, the microphone, send** (11/11/2026, canvas board ChatComposer; Chris 10/11/2026: the send,
|
|
@@ -56,6 +114,17 @@ a red edge and one line saying why), `ChatImages` (a sent message's pictures: on
|
|
|
56
114
|
modal). Words from `attachmentProblem` / `limitsInWords`. Icons from the set (`upload`, `close`), no text glyphs. The rules are the new entry
|
|
57
115
|
`chat-attachments.css` (1.9 KB gzip). First caller: the admin's GemChat.
|
|
58
116
|
|
|
117
|
+
**The rail folds by itself under 1280px, opens over the page, and shows a flyout when folded** (11/11/2026, first caller: the GemBoss
|
|
118
|
+
admin's option B rail, Chris 10/11/2026; canvas component Rail). `Shell railMode="auto"` (`data-rail="auto"`): the 240px rail from 1280px
|
|
119
|
+
wide, folded to its 56px of icons from 761 to 1279.98px with the numbers `mini` uses, the drawer below as ever. `data-rail-open` on the
|
|
120
|
+
shell (with `railMode="full"`): a rail folded without the person's choice opened over the page, 240px with a shadow, the page still laid
|
|
121
|
+
out beside 56. `.gnav-flyout` (drawn by the surface after each item, inside its `.gnav-group`): the item's name and its subs as links,
|
|
122
|
+
in a dark card beside a folded rail (`mini`, or `auto` under 1280) under a resting pointer or the keyboard's focus; hidden everywhere
|
|
123
|
+
else. `.gnav-head`, a small heading over a run of items, and `.gb-rail-fold` / `.gb-rail-toggle` / `.gb-rail-chevron`, the fold toggle's
|
|
124
|
+
row (gone on a phone and beside the page editor). `--gb-rail-w`, the rail's width on a folded shell, for what a surface lays against
|
|
125
|
+
it. The rules are the new entry `rail-fold.css` (a surface that folds links it, with `rail-mini.css`). `shell.test.tsx` pins the markup
|
|
126
|
+
and that every rule hangs on a folding shell.
|
|
127
|
+
|
|
59
128
|
**`IndexTable` carries a table of many columns, selection with exceptions, and a press in progress** (11/11/2026, first caller: the admin's
|
|
60
129
|
Products list, which drew its own table). On a row, `selectable: false`: no box, and select-all and a Shift range pass over it; with rows and
|
|
61
130
|
none pickable there is no checkbox column. `bulkBusy` (and `bulkBusyLabel`, default "Working…"): every box and action is off and Escape does
|
package/README.md
CHANGED
|
@@ -77,6 +77,7 @@ its CSS out of the build with it (`sideEffects`). gzip of the minified file, as
|
|
|
77
77
|
| narration | `@gemboss/ui/narration.css` | `packages/ui/src/narration.css` | the narration timeline's own: a step that selects its section, its Undo from here, the plan card pinned at the top of a turn | 0.6 KB | admin `NarrationTimeline` imports it |
|
|
78
78
|
| editor-rail | `@gemboss/ui/editor-rail.css` | `packages/ui/src/editor-rail.css` | the page editor's 56px rail: the editor frame 56px in, the shell's rail beside it as icons, opened to 240px over the editor (unreleased) | 0.9 KB | admin `EditorRailToggle` imports it |
|
|
79
79
|
| rail-mini | `@gemboss/ui/rail-mini.css` | `packages/ui/src/rail-mini.css` | the rail folded to 56px of icons (`railMode="mini"`, 0.62.0): rows as icons with their names out of sight, counts as dots, main at 56 | 0.6 KB | `AppNav` imports it; a surface that folds the rail without one links it |
|
|
80
|
+
| rail-fold | `@gemboss/ui/rail-fold.css` | `packages/ui/src/rail-fold.css` | the rail folded by itself from 761 to 1279px (`railMode="auto"`), opened over the page (`data-rail-open`), a folded rail's flyouts (`.gnav-flyout`), the "Advanced" heading (`.gnav-head`) and the fold toggle's row (Unreleased, 0.67.0) | 1.2 KB | the admin's `IconNav` imports it, with rail-mini.css; a surface that folds the rail by width links both |
|
|
80
81
|
| app-nav | `@gemboss/ui/app-nav.css` | `packages/ui/src/app-nav.css` | `AppNav`, `AppNavFrame`: a section's own grey nav beside the folded rail, and its chips on a phone (0.62.0) | 1.7 KB | `AppNav` imports it (with rail-mini.css) |
|
|
81
82
|
| reactions | `@gemboss/ui/reactions.css` | `packages/ui/src/reactions.css` | the emoji reactions and their picker | 0.8 KB | `Reactions` / `ReactionPicker` import it |
|
|
82
83
|
| assistant-engine | `@gemboss/ui/assistant-engine.css` | `packages/ui/src/assistant-engine.css` | the engine picker (chip + Settings › AI & engines) and the bridge notice | 1.9 KB | `EnginePicker` / `EngineSettings` / `BridgeNotice` import it |
|
|
@@ -102,6 +103,7 @@ its CSS out of the build with it (`sideEffects`). gzip of the minified file, as
|
|
|
102
103
|
| spot-art | `@gemboss/ui/spot-art.css` | `packages/ui/src/spot-art.css` | `SpotArt`: six brand pictures for pauses and empty states (0.43.0) | 0.4 KB | `SpotArt` imports it |
|
|
103
104
|
| kind-art | `@gemboss/ui/kind-art.css` | `packages/ui/src/kind-art.css` | `KindArt`: the cream strip across the top of a "pick a kind" card, one bold drawing per kind (04/11/2026, unreleased) | 0.6 KB | `KindArt` imports it; a plain-HTML page links it |
|
|
104
105
|
| logo-sheet | `@gemboss/ui/logo-sheet.css` | `packages/ui/src/logo-sheet.css` | `LogoSheet`: one logo as a person judges it, the mark on a checkerboard, the lockup on a light and a dark header, the favicon at its real 32px (unreleased) | 0.5 KB | `LogoSheet` imports it |
|
|
106
|
+
| stage-compose | `@gemboss/ui/stage-compose.css` | `packages/ui/src/stage-compose.css` | `StageJoin`, `StageThumb`, `StageFan`: sides in a row with a drawn mark between each, a page's picture with no window bar (lit = the one you get), three windows fanned; drawn on a `Stage` (unreleased) | 0.5 KB | the three import it, with `stage.css` (their colours) |
|
|
105
107
|
| stage-path | `@gemboss/ui/stage-path.css` | `packages/ui/src/stage-path.css` | `StagePath`: stages that unlock in order, each a card with its number (✓ when done), its count and a thin bar; the current one in ink (unreleased) | 0.7 KB | `StagePath` imports it; a plain-HTML page links it (README "Review pieces") |
|
|
106
108
|
| status-matrix | `@gemboss/ui/status-matrix.css` | `packages/ui/src/status-matrix.css` | `StatusMatrix`: rows × columns of "live / total" cells on the kit table, all live or has drafts (unreleased) | 0.3 KB | `StatusMatrix` imports it; a plain-HTML page links it |
|
|
107
109
|
| translation-row | `@gemboss/ui/translation-row.css` | `packages/ui/src/translation-row.css` | `TranslationRow`: one string under review, source beside target, the checks and the action (unreleased) | 0.6 KB | `TranslationRow` imports it; a plain-HTML page links it |
|
|
@@ -2069,7 +2071,11 @@ import { AppShell, BrandLockup, AccountMenu, AccountMenuItem, Icon, RailItem } f
|
|
|
2069
2071
|
(0.36.0) adds the button that opens every other Gem service right after it: README "ServiceSwitcher".
|
|
2070
2072
|
- `AccountMenu`: the admin's 32px initials chip and popover (same CSS). A `<details>`, so it opens
|
|
2071
2073
|
without JavaScript on a page that never hydrates; with React it also closes on an outside click and
|
|
2072
|
-
on Escape. `AccountMenuItem` is a link (`href`), a POST form (`formAction`), or a button
|
|
2074
|
+
on Escape. `AccountMenuItem` is a link (`href`), a POST form (`formAction`), or a button; a caller's `className` is added to the
|
|
2075
|
+
row's class, not put in its place. `AccountMenuRow` (11/11/2026, its own module `account-row.tsx` since 12/11/2026) is that row with
|
|
2076
|
+
`icon` (a 16px mark before the label), `description` (a muted line under it) and `hint` (a word or a mark on the right), as the
|
|
2077
|
+
⋯ menu's `MenuItem` draws them, at this menu's 16px inset; `AccountMenuSeparator` is a line between groups. Their CSS is
|
|
2078
|
+
`account-extras.css`, brought by `account-row.tsx`, so it loads with the rows that use it, not with every plain row.
|
|
2073
2079
|
- `TopbarSearch` (0.6.3): see "Topbar search" below.
|
|
2074
2080
|
- `Icon`: the GemBoss set, 45 icons on a 20px grid with 1.5px strokes, drawn to sit next to Polaris.
|
|
2075
2081
|
`ICON_NAMES` lists them. Internal tools cannot use `@shopify/polaris-icons`: its licence only covers
|
package/catalog/editor.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.cat-code summary{padding:10px 16px;font-size:13px;cursor:pointer;color:var(--gemboss-text-muted);border-top:1px solid var(--gemboss-divider);min-height:24px}
|
|
9
9
|
.cat-code pre,.cat-api{margin:0;padding:12px 16px;overflow:auto;background:#0f1012;color:#e8e8e6;font-size:12px;line-height:1.5;border-radius:0}
|
|
10
10
|
.cat-api{border-radius:12px;margin:0 0 16px}</style></head><body><div class="cat">
|
|
11
|
-
<h1>@gemboss/ui 0.70.
|
|
11
|
+
<h1>@gemboss/ui 0.70.2 · Editor</h1>
|
|
12
12
|
<p>Khung của mọi editor: <code>EditorFrame</code> (cột trái · khe kéo · preview · cột phải dock trên mép phải preview) và <code>EditorTopbar</code> (← · tiêu đề · cụm giữa · cụm phải · dòng trạng thái). Là đúng khung của theme / page / section editor trong admin. Gói chỉ vẽ KHUNG; chat, Configure, canvas, page picker, menu, Publish là của editor, đi vào bằng slot. Trang HTML thuần nạp <code>editor.css</code> + <code>editor-plain.js</code> rồi gọi <code>gembossUI.initEditorFrame()</code>: kéo khe (chuột, chạm, phím mũi tên / Home / End), đổi thiết bị, mở ⋯ và Publish ▾, ẩn cột trái, Chat | Preview trên điện thoại. <a href="index.html">← Catalog</a></p>
|
|
13
13
|
<h2>React</h2><pre class="cat-api"><code>import "@gemboss/ui/editor.css";
|
|
14
14
|
import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs, EditorSaveState, DeviceToggle } from "@gemboss/ui/editor";
|
package/catalog/index.html
CHANGED
|
@@ -27,7 +27,7 @@ body{margin:0;background:var(--gemboss-app-bg,#f1f1f1);color:var(--gemboss-text)
|
|
|
27
27
|
@media (max-width:760px){.cat{grid-template-columns:1fr;padding:16px}.cat-nav{position:static;flex-direction:row;flex-wrap:wrap}}
|
|
28
28
|
</style></head><body>
|
|
29
29
|
<div class="cat"><nav class="cat-nav" aria-label="Mục"><a href="#tokens">Token</a><a href="#buttons">Nút</a><a href="#fields">Ô nhập</a><a href="#choice">Tab, nhóm nút, thẻ</a><a href="#surfaces">Thẻ, số liệu, bảng, trạng thái trống</a><a href="#report">Báo cáo</a><a href="#collections">Bảng, list, lưới, board</a><a href="#resizer">Thanh kéo giữa hai cột</a><a href="#modal">Hộp thoại, toast, menu (JS thuần)</a><a href="#sheet">Ngăn trượt cạnh phải</a><a href="#reader">Hộp đọc tài liệu</a><a href="#settings">Hộp cài đặt</a><a href="#switcher">Chuyển dịch vụ</a><a href="#shell">Khung app</a><a href="#nav">Chờ điều hướng</a><a href="#page">Bề rộng nội dung</a><a href="#portal">Cổng công khai: tab trên topbar, tìm kiếm, sáng / tối, người dẫn đầu</a><a href="#site">Trang công khai: thanh trên, logo cỡ site, nút, chân trang</a><a href="#auth">Đăng nhập</a><a href="#setup">Hướng dẫn thiết lập</a><a href="#chat">Thân chat</a><a href="#reactions">Reactions</a><a href="#team-chat">Chat đội</a><a href="#action-card">Thẻ hành động</a><a href="#assistant-engine">Trợ lý: chọn engine</a><a href="#assistant-bridge">Trợ lý: cầu nối trên máy (0.32.0)</a><a href="#assistant-chat">Trợ lý: khung chat (0.29.0)</a><a href="#assistant">Trợ lý: cột phiên</a><a href="#icons">Icon</a><a href="#editor">Editor</a></nav>
|
|
30
|
-
<main><header class="cat-head"><h1>@gemboss/ui 0.70.
|
|
30
|
+
<main><header class="cat-head"><h1>@gemboss/ui 0.70.2</h1><p>Ngôn ngữ thiết kế chung của các công cụ GemBoss. Markup dưới mỗi ví dụ là đúng thứ package render ra; bề mặt không dùng React (HTML tĩnh, Python) chép markup này và nạp <code>gemboss-ui.css</code>. Dựng từ gemboss <code>444175d32196</code>.</p></header>
|
|
31
31
|
<section id="tokens"><h2>Token</h2><p>Đổi giao diện một bề mặt bằng cách đặt lại token, không viết đè class. Tên và giá trị đọc thẳng từ gemboss-ui.css.</p><div class="cat-swatches"><div class="cat-swatch"><i style="background:var(--gemboss-primary)"></i><code>--gemboss-primary</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-primary-dark)"></i><code>--gemboss-primary-dark</code><span>#000000</span></div><div class="cat-swatch"><i style="background:var(--gemboss-primary-soft)"></i><code>--gemboss-primary-soft</code><span>#f2f3f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent)"></i><code>--gemboss-accent</code><span>#5661f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-strong)"></i><code>--gemboss-accent-strong</code><span>#3a44de</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-soft)"></i><code>--gemboss-accent-soft</code><span>#eef0fe</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-wash)"></i><code>--gemboss-accent-wash</code><span>#f7f8ff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-tint)"></i><code>--gemboss-accent-tint</code><span>#dfe2ff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-mid)"></i><code>--gemboss-accent-mid</code><span>#c9cffd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text-strong)"></i><code>--gemboss-text-strong</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text)"></i><code>--gemboss-text</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text-muted)"></i><code>--gemboss-text-muted</code><span>#686b71</span></div><div class="cat-swatch"><i style="background:var(--gemboss-surface)"></i><code>--gemboss-surface</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-canvas)"></i><code>--gemboss-canvas</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-preview-canvas)"></i><code>--gemboss-preview-canvas</code><span>#eceef1</span></div><div class="cat-swatch"><i style="background:var(--gemboss-rail-bg)"></i><code>--gemboss-rail-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-panel-bg)"></i><code>--gemboss-panel-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-divider)"></i><code>--gemboss-divider</code><span>#e5e7ea</span></div><div class="cat-swatch"><i style="background:var(--gemboss-divider-soft)"></i><code>--gemboss-divider-soft</code><span>#edeff2</span></div><div class="cat-swatch"><i style="background:var(--gemboss-hover)"></i><code>--gemboss-hover</code><span>#eceef2</span></div><div class="cat-swatch"><i style="background:var(--gemboss-active-bg)"></i><code>--gemboss-active-bg</code><span>#f0f1f4</span></div><div class="cat-swatch"><i style="background:var(--gemboss-active-fg)"></i><code>--gemboss-active-fg</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger)"></i><code>--gemboss-danger</code><span>#d72c0d</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-strong)"></i><code>--gemboss-danger-strong</code><span>#b42318</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-soft)"></i><code>--gemboss-danger-soft</code><span>#fff0e9</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-border)"></i><code>--gemboss-danger-border</code><span>#f5c9bc</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success)"></i><code>--gemboss-success</code><span>#007f5f</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-strong)"></i><code>--gemboss-success-strong</code><span>#0a6a4c</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-soft)"></i><code>--gemboss-success-soft</code><span>#e3f1df</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-border)"></i><code>--gemboss-success-border</code><span>#b7dfcd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning)"></i><code>--gemboss-warning</code><span>#9a6700</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning-soft)"></i><code>--gemboss-warning-soft</code><span>#fff8e0</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning-border)"></i><code>--gemboss-warning-border</code><span>#f5d569</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-bg)"></i><code>--gemboss-dark-bg</code><span>#0a0a0c</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-rail)"></i><code>--gemboss-dark-rail</code><span>#0e0e11</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-surface)"></i><code>--gemboss-dark-surface</code><span>#16161a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-surface-2)"></i><code>--gemboss-dark-surface-2</code><span>#1e1e24</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-divider)"></i><code>--gemboss-dark-divider</code><span>#2a2a31</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-text)"></i><code>--gemboss-dark-text</code><span>#ededf0</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-muted)"></i><code>--gemboss-dark-muted</code><span>#9a9aa4</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-bg)"></i><code>--gemboss-field-bg</code><span>#fdfdfd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-bg-hover)"></i><code>--gemboss-field-bg-hover</code><span>#fafafa</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-ink)"></i><code>--gemboss-field-ink</code><span>#303030</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-placeholder)"></i><code>--gemboss-field-placeholder</code><span>#616161</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line)"></i><code>--gemboss-field-line</code><span>#8a8a8a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line-hover)"></i><code>--gemboss-field-line-hover</code><span>#616161</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line-active)"></i><code>--gemboss-field-line-active</code><span>#1a1a1a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-ink)"></i><code>--gemboss-chip-ink</code><span>#303633</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-line)"></i><code>--gemboss-chip-line</code><span>#cfd6ce</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-line-hover)"></i><code>--gemboss-chip-line-hover</code><span>#aab4ad</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-bg-hover)"></i><code>--gemboss-chip-bg-hover</code><span>#f6f7f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-on-primary)"></i><code>--gemboss-on-primary</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-app-bg)"></i><code>--gemboss-app-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary)"></i><code>--gemboss-fill-tertiary</code><span>#2a2b33</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary-hover)"></i><code>--gemboss-fill-tertiary-hover</code><span>#33353f</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary-active)"></i><code>--gemboss-fill-tertiary-active</code><span>#3a3c46</span></div></div><table class="ui-table cat-scale"><thead><tr><th>Token</th><th>Giá trị</th><th>Mẫu</th></tr></thead><tbody><tr><td><code>--gemboss-fs-micro</code></td><td>11px</td><td style="font-size:var(--gemboss-fs-micro)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-caption</code></td><td>12px</td><td style="font-size:var(--gemboss-fs-caption)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-body</code></td><td>14px</td><td style="font-size:var(--gemboss-fs-body)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-body-lg</code></td><td>16px</td><td style="font-size:var(--gemboss-fs-body-lg)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h3</code></td><td>16px</td><td style="font-size:var(--gemboss-fs-h3)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h2</code></td><td>20px</td><td style="font-size:var(--gemboss-fs-h2)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h1</code></td><td>24px</td><td style="font-size:var(--gemboss-fs-h1)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-display</code></td><td>30px</td><td style="font-size:var(--gemboss-fs-display)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-radius-xs</code></td><td>4px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-xs)"></i></td></tr><tr><td><code>--gemboss-radius-sm</code></td><td>6px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-sm)"></i></td></tr><tr><td><code>--gemboss-radius-md</code></td><td>8px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-md)"></i></td></tr><tr><td><code>--gemboss-radius-lg</code></td><td>12px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-lg)"></i></td></tr><tr><td><code>--gemboss-radius-xl</code></td><td>16px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-xl)"></i></td></tr><tr><td><code>--gemboss-radius-2xl</code></td><td>20px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-2xl)"></i></td></tr><tr><td><code>--gemboss-radius-full</code></td><td>999px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-full)"></i></td></tr><tr><td><code>--gemboss-shadow-resting</code></td><td class="cat-small">0 1px 2px rgba(31, 30, 29, 0.04), 0 2px 6px rgba(31, 30, 29, 0.06)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-resting);border:0"></i></td></tr><tr><td><code>--gemboss-shadow-raised</code></td><td class="cat-small">0 4px 16px rgba(31, 30, 29, 0.10)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-raised);border:0"></i></td></tr><tr><td><code>--gemboss-shadow-overlay</code></td><td class="cat-small">0 16px 48px rgba(31, 30, 29, 0.18)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-overlay);border:0"></i></td></tr></tbody></table></section>
|
|
32
32
|
<section id="buttons"><h2>Nút</h2><p>Một lớp <code>ui-btn</code>, ba biến thể, tông đỏ, một cỡ nhỏ. Cao 28px dưới chuột như Button của Polaris (ô nhập và ô chọn 32, như TextField), 44px dưới ngón tay và ở khổ điện thoại, cỡ nhỏ cũng vậy. Dùng được trên <code><button></code> lẫn <code><a></code> (căn giữa sẵn).</p><figure class="cat-demo"><figcaption>Mặc định · chính · ghost · nhỏ · tắt</figcaption><div class="cat-live"><div class="cat-row"><button type="button" class="ui-btn">Lưu nháp</button><button type="button" class="ui-btn ui-btn--primary">Xuất bản</button><button type="button" class="ui-btn ui-btn--ghost">Huỷ</button><button type="button" class="ui-btn ui-btn--sm">Nhỏ</button><button type="button" class="ui-btn ui-btn--primary" disabled>Đang lưu…</button><a class="ui-btn" href="#buttons">Link dạng nút</a></div></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="cat-row">
|
|
33
33
|
<button type="button" class="ui-btn">Lưu nháp</button>
|