Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
28 KiB
Interview design system (PaperCraft page Design System)
Generated by design_system.py + gen_manifest.py. Main components are top-level frames on the Design System page (library area, right of the doc sections, x >= 1560). Documentation sections: Section / Colors, Section / Typography, Section / Spacing, Section / Radius & Shadow, Section / Page Layout, Section / Components (captioned instances of everything).
How to use
- On your page:
papercraft-cli call import_components '{"fromPageId":"<Design System page id>","pageId":"<your page id>"}'(skips names already there; if you delete a copy and re-import, its instances lose overrides). - Place:
<x-paper-instance component="Button / Primary" overrides='{"Label":"Save"}'/>orinst_html("Button / Primary", Label="Save")from pc.py. - Overrides JSON: key = exact layer name inside the component (first match), value = string (text) or object (CSS camelCase styles, e.g.
{"Label":{"color":"var(--color-error)"}}). Hide a part:{"Col 5":{"display":"none"}}. - The instance root accepts a
styleattribute:style="width:720px",style="background-color:var(--color-avatar-purple)",style="opacity:.5"(disabled). - Icons inside components cannot be recolored or swapped by overrides (vector layers). That is why the sidebars exist as one variant per active item. For anything else, compose in raw HTML with the recipes below.
- Components hug their content (fixed width where noted). To stretch, set
style="width:Npx"on the instance. Uppercase labels (table headers, Stat label, sidebar group labels) are typed uppercase: text-transform is not supported. - Instances are page-local; no variants/properties exist, so every variant is a separate component.
Components
Buttons (packages/ui Button)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Button / Primary |
34px high, padding 0 16px, 14px label | Label |
Button / Primary Small |
28px high, padding 0 12px, 12px label | Label |
Button / Primary Large |
40px high, padding 0 20px, 14px label | Label |
Button / Default |
34px high, padding 0 16px, 14px label | Label |
Button / Default Small |
28px high, padding 0 12px, 12px label | Label |
Button / Default Large |
40px high, padding 0 20px, 14px label | Label |
Button / Ghost |
34px high, padding 0 16px, 14px label | Label |
Button / Ghost Small |
28px high, padding 0 12px, 12px label | Label |
Button / Ghost Large |
40px high, padding 0 20px, 14px label | Label |
Button / Danger |
34px high, padding 0 16px, 14px label | Label |
Button / Danger Small |
28px high, padding 0 12px, 12px label | Label |
Button / Danger Large |
40px high, padding 0 20px, 14px label | Label |
Button / Dark |
34px high, padding 0 16px, 14px label | Label |
Button / Dark Small |
28px high, padding 0 12px, 12px label | Label |
Button / Dark Large |
40px high, padding 0 20px, 14px label | Label |
Button / Notification Bell |
AdminShell bell: 36x36, red unread dot | (none) |
Buttons (AntD Button)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Ant Button / Primary |
AntD button 32px | Label |
Ant Button / Primary Small |
AntD button 24px | Label |
Ant Button / Primary Large |
AntD button 40px | Label |
Ant Button / Default |
AntD button 32px | Label |
Ant Button / Default Small |
AntD button 24px | Label |
Ant Button / Default Large |
AntD button 40px | Label |
Ant Button / Danger |
AntD button 32px | Label |
Ant Button / Danger Small |
AntD button 24px | Label |
Ant Button / Danger Large |
AntD button 40px | Label |
Ant Button / Text |
AntD button 32px | Label |
Ant Button / Text Small |
AntD button 24px | Label |
Ant Button / Text Large |
AntD button 40px | Label |
Ant Button / Text Danger |
AntD button 32px | Label |
Ant Button / Text Danger Small |
AntD button 24px | Label |
Ant Button / Text Danger Large |
AntD button 40px | Label |
Avatar
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Avatar |
32px circle, initials, colour by name hash | Initials |
Avatar / 30 |
30px circle, initials, colour by name hash | Initials |
Avatar / 34 |
34px circle, initials, colour by name hash | Initials |
Avatar / 36 |
36px circle, initials, colour by name hash | Initials |
Avatar / 40 |
40px circle, initials, colour by name hash | Initials |
Card
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Card |
Card: 24px padding, radius-lg, shadow-sm | Card Title, Card Body |
Card / Hover |
hover: shadow-md, blue border | Card Title, Card Body |
Card / Compact |
pad=md (16px) | Card Title, Card Body |
Sparkline
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Sparkline / Blue |
72x30 line + gradient area | (none) |
Sparkline / Purple |
72x30 line + gradient area | (none) |
Sparkline / Orange |
72x30 line + gradient area | (none) |
Sparkline / Green |
72x30 line + gradient area | (none) |
Sparkline / Teal |
72x30 line + gradient area | (none) |
Sparkline / Orange Down |
downward trend | (none) |
Stat
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Stat / Blue |
label, value 30/700, sparkline, delta line | Label, Value, Delta Arrow, Delta, Trend |
Stat / Purple |
label, value 30/700, sparkline, delta line | Label, Value, Delta Arrow, Delta, Trend |
Stat / Orange |
label, value 30/700, sparkline, delta line | Label, Value, Delta Arrow, Delta, Trend |
Stat / Green |
label, value 30/700, sparkline, delta line | Label, Value, Delta Arrow, Delta, Trend |
Stat / Teal |
label, value 30/700, sparkline, delta line | Label, Value, Delta Arrow, Delta, Trend |
Stat / Orange Down |
negative delta: red arrow | Label, Value, Delta Arrow, Delta, Trend |
Tag
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Tag / Blue |
22px chip, 12px/500 | Label |
Tag Dot / Blue |
with status dot | Label |
Tag / Green |
22px chip, 12px/500 | Label |
Tag Dot / Green |
with status dot | Label |
Tag / Gold |
22px chip, 12px/500 | Label |
Tag Dot / Gold |
with status dot | Label |
Tag / Red |
22px chip, 12px/500 | Label |
Tag Dot / Red |
with status dot | Label |
Tag / Purple |
22px chip, 12px/500 | Label |
Tag Dot / Purple |
with status dot | Label |
Tag / Cyan |
22px chip, 12px/500 | Label |
Tag Dot / Cyan |
with status dot | Label |
Tag / Gray |
neutral | Label |
Tag Dot / Gray |
neutral with dot | Label |
Tag (AntD Tag status colors)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Ant Tag / Default |
antd | Label |
Ant Tag / Success |
antd | Label |
Ant Tag / Warning |
antd | Label |
Ant Tag / Error |
antd | Label |
Ant Tag / Processing |
antd | Label |
Submission Status Badge
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Submission Status Badge / Queued |
SubmissionStatusBadge | Label |
Submission Status Badge / Running |
SubmissionStatusBadge | Label |
Submission Status Badge / Graded |
SubmissionStatusBadge | Label |
Submission Status Badge / Errored |
SubmissionStatusBadge | Label |
Submission Status Badge / Unknown |
SubmissionStatusBadge | Label |
Pill (filter chip)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Pill / Active |
filter chip, radius 99 | Label |
Pill / Active With Count |
filter chip, radius 99 | Label, Count |
Pill / Inactive |
filter chip, radius 99 | Label |
Pill / Inactive With Count |
filter chip, radius 99 | Label, Count |
Search Input
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Search Input |
260x34 | Placeholder |
Search Input / Focused |
focus ring | Placeholder |
Search Input / Filled |
with value | Placeholder |
Segmented (packages/ui)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Segmented / 2 Options Active 1 |
track border-light, active = white + shadow-sm | Option 1, Option 2 |
Segmented / 2 Options Active 2 |
track border-light, active = white + shadow-sm | Option 1, Option 2 |
Segmented / 3 Options Active 1 |
track border-light, active = white + shadow-sm | Option 1, Option 2, Option 3 |
Segmented / 3 Options Active 2 |
track border-light, active = white + shadow-sm | Option 1, Option 2, Option 3 |
Segmented / 3 Options Active 3 |
track border-light, active = white + shadow-sm | Option 1, Option 2, Option 3 |
Segmented / 4 Options Active 1 |
track border-light, active = white + shadow-sm | Option 1, Option 2, Option 3, Option 4 |
Segmented / 4 Options Active 2 |
track border-light, active = white + shadow-sm | Option 1, Option 2, Option 3, Option 4 |
Segmented / 4 Options Active 3 |
track border-light, active = white + shadow-sm | Option 1, Option 2, Option 3, Option 4 |
Segmented / 4 Options Active 4 |
track border-light, active = white + shadow-sm | Option 1, Option 2, Option 3, Option 4 |
Segmented (AntD)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Ant Segmented / 3 Options Active 1 |
antd Segmented (challenges page) | Option 1, Option 2, Option 3 |
Ant Segmented / 3 Options Active 2 |
antd Segmented (challenges page) | Option 1, Option 2, Option 3 |
Ant Segmented / 3 Options Active 3 |
antd Segmented (challenges page) | Option 1, Option 2, Option 3 |
Score Bar / Dots / Stars
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Score Bar / High |
160x6 track; set Fill width in px | (none) |
Score Bar / Mid |
160x6 track; set Fill width in px | (none) |
Score Bar / Low |
160x6 track; set Fill width in px | (none) |
Score Dots / 0 |
5 squares 26px + label | (none) |
Score Dots / 1 |
5 squares 26px + label | Dot 1 Value, Label |
Score Dots / 2 |
5 squares 26px + label | Dot 1 Value, Dot 2 Value, Label |
Score Dots / 3 |
5 squares 26px + label | Dot 1 Value, Dot 2 Value, Dot 3 Value, Label |
Score Dots / 4 |
5 squares 26px + label | Dot 1 Value, Dot 2 Value, Dot 3 Value, Dot 4 Value, Label |
Score Dots / 5 |
5 squares 26px + label | Dot 1 Value, Dot 2 Value, Dot 3 Value, Dot 4 Value, Dot 5 Value, Label |
Stars / 0 |
★ gold / ☆ border | (none) |
Stars / 1 |
★ gold / ☆ border | (none) |
Stars / 2 |
★ gold / ☆ border | (none) |
Stars / 3 |
★ gold / ☆ border | (none) |
Stars / 4 |
★ gold / ☆ border | (none) |
Stars / 5 |
★ gold / ☆ border | (none) |
Donut / Spin / Empty / Loading
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Donut |
132px ring, 16px stroke; segments = stroke colors | Total, Caption |
Spin / Small |
antd Spin small | (none) |
Spin |
antd Spin default | (none) |
Spin / Large |
antd Spin large | (none) |
Loading Block |
LoadingBlock: Spin + tip | Tip |
Empty / Simple |
antd Empty (simple image) | Description |
Empty State |
EmptyState: title + description | Title, Description |
Page headers
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Page Header |
PageHeader w/o actions (1192 = 1440 - sidebar) | Title, Subtitle |
Admin Shell Header |
AdminShell header: title, subtitle, bell (instance of Button / Notification Bell) | Title, Subtitle |
Candidate Shell Header |
CandidateShell header (white card inset on layout bg) | Title, Subtitle, Exit Label |
Section Title |
SectionTitle: 16/600 + 12 sub | Title, Subtitle |
Section Title / With Action |
with action slot | Title, Subtitle, Action |
Data Table (packages/ui DataTable)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Data Table / Header Row |
uppercase 12/600; hide unused Col n with display:none | Col 1, Col 2, Col 3, Col 4, Col 5 |
Data Table / Row |
13px vertical padding in code (comfortable) | Cell 1, Cell 2, Cell 3, Cell 4, Cell 5 |
Data Table / Row Hover |
13px vertical padding in code (comfortable) | Cell 1, Cell 2, Cell 3, Cell 4, Cell 5 |
Pagination |
antd Pagination: 32px items, active = blue border | Page Label |
Data Table / Footer |
summary + pagination | Summary, Page Label |
Data Table / Empty |
emptyMessage, 48px padding | Message |
Ant Table
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Ant Table / Header Row |
antd Table th (#fafafa, 14/600) | Col 1, Col 2, Col 3, Col 4, Col 5 |
Ant Table / Row |
antd Table td, row ~55px | Cell 1, Cell 2, Cell 3, Cell 4, Cell 5 |
Input (AntD)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Input |
32px, radius 8, border #d9d9d9 | Value |
Input / Filled |
with value | Value |
Input / Focus |
focus ring | Value |
Input / Error |
error state | Value |
Input / Disabled |
disabled | Value |
Input / Large |
size=large: 40px / 16px (forms) | Value |
Input / Large Filled |
size=large with value | Value |
Input / Large Focus |
size=large focus | Value |
Input / Large Error |
size=large error | Value |
Input / With Prefix |
Workspace URL field | Prefix, Value |
Input / Password |
Input.Password large | Value |
Input / Search |
Input.Search | Value |
Input Number |
InputNumber (steppers on the right) | Value |
Date Picker |
DatePicker | Value |
Textarea |
Input.TextArea, 3 rows | Value |
Textarea / Filled |
filled | Value |
Select (AntD)
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Select |
Select closed | Value |
Select / Filled |
Select closed | Value |
Select / Large |
Select closed | Value |
Select / Large Filled |
Select closed | Value |
Select / Dropdown |
open options panel; selected = bg-selected + 600 | Option 1 Label, Option 2 Label, Option 3 Label |
Checkbox / Radio / Switch
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Checkbox / Unchecked |
16px box | Label |
Checkbox / Checked |
16px box | Label |
Radio / Unselected |
radio | Label |
Radio / Selected |
radio | Label |
Switch / Off |
44x22 | (none) |
Switch / On |
44x22 | (none) |
Form Field
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Form Field |
label + large input (AntD Form.Item vertical) | Label, Value |
Form Field / Required |
* required mark | Required Mark, Label, Value |
Form Field / Error |
error + message | Required Mark, Label, Value, Help |
Form Field / With Help |
help text | Label, Value, Help |
Overlays
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Modal |
antd Modal; put on a bg-overlay frame | Title, Body, Cancel Label, OK Label |
Drawer |
antd Drawer (right, full height) | Title, Body |
Tooltip |
antd Tooltip | Text |
Alert
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Alert / Info |
antd Alert | Message |
Alert / Info With Icon |
antd Alert | Message |
Alert / Success |
antd Alert | Message |
Alert / Success With Icon |
antd Alert | Message |
Alert / Warning |
antd Alert | Message |
Alert / Warning With Icon |
antd Alert | Message |
Alert / Error |
antd Alert | Message |
Alert / Error With Icon |
antd Alert | Message |
Tabs
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Tabs / Tab Active |
antd Tabs item (ink bar when active) | Label |
Tabs / Tab Active Large |
antd Tabs item (ink bar when active) | Label |
Tabs / Tab Inactive |
antd Tabs item (ink bar when active) | Label |
Tabs / Tab Inactive Large |
antd Tabs item (ink bar when active) | Label |
Tabs / Bar 3 Active 1 |
antd Tabs bar, 14px | Tab 1 Label, Tab 2 Label, Tab 3 Label |
Tabs / Bar 3 Active 2 |
antd Tabs bar, 14px | Tab 1 Label, Tab 2 Label, Tab 3 Label |
Tabs / Bar 3 Active 3 |
antd Tabs bar, 14px | Tab 1 Label, Tab 2 Label, Tab 3 Label |
Tabs / Bar 5 Large Active 1 |
configuration page tabs (size=large) | Tab 1 Label, Tab 2 Label, Tab 3 Label, Tab 4 Label, Tab 5 Label |
Tabs / Bar 5 Large Active 2 |
configuration page tabs (size=large) | Tab 1 Label, Tab 2 Label, Tab 3 Label, Tab 4 Label, Tab 5 Label |
Tabs / Bar 5 Large Active 3 |
configuration page tabs (size=large) | Tab 1 Label, Tab 2 Label, Tab 3 Label, Tab 4 Label, Tab 5 Label |
Tabs / Bar 5 Large Active 4 |
configuration page tabs (size=large) | Tab 1 Label, Tab 2 Label, Tab 3 Label, Tab 4 Label, Tab 5 Label |
Tabs / Bar 5 Large Active 5 |
configuration page tabs (size=large) | Tab 1 Label, Tab 2 Label, Tab 3 Label, Tab 4 Label, Tab 5 Label |
Misc AntD
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Progress / Circle |
Progress type=circle size=64 | Value |
Skeleton |
antd Skeleton active (static) | (none) |
App shell
| Component (exact name) | Looks like | Text layers (override keys) |
|---|---|---|
Admin Sidebar |
248x900 dark nav; no active item | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Admin Sidebar / Dashboard Active |
Dashboard highlighted | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Admin Sidebar / Challenges Active |
Challenges highlighted | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Admin Sidebar / Question bank Active |
Question bank highlighted | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Admin Sidebar / Sessions Active |
Sessions highlighted | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Admin Sidebar / Schedule Active |
Schedule highlighted | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Admin Sidebar / Configuration Active |
Configuration highlighted | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Admin Sidebar / Rubric Active |
Rubric highlighted | Brand Mark Letter, Brand Name, Brand Sub, Group Label / Workspace, Nav Label / Dashboard, Nav Label / Challenges, Nav Label / Question bank, Nav Label / Sessions, Nav Label / Schedule, Group Label / Manage, Nav Label / Configuration, Nav Label / Rubric, User Initials, User Name, User Role Tag Label, User Email |
Candidate Sidebar |
248x900; no active item | Brand Name, Brand Sub, Nav Label / Home, Nav Label / My interview, User Initials, User Name, User Email |
Candidate Sidebar / Home Active |
Home highlighted | Brand Name, Brand Sub, Nav Label / Home, Nav Label / My interview, User Initials, User Name, User Email |
Candidate Sidebar / My interview Active |
My interview highlighted | Brand Name, Brand Sub, Nav Label / Home, Nav Label / My interview, User Initials, User Name, User Email |
Style-override tips
- Recolor an Avatar:
style="background-color:var(--color-avatar-purple)"on the instance (palette: brand-primary, avatar-purple, avatar-teal, warning, avatar-pink, success, avatar-orange, avatar-indigo; the app picks by a hash of the name). Set initials with{"Initials":"PI"}. - Active sidebar item: use the variant
Admin Sidebar / <Item> Active(Dashboard, Challenges, Question bank, Sessions, Schedule, Configuration, Rubric) orCandidate Sidebar / Home Active/My interview Active. PlainAdmin Sidebar/Candidate Sidebarhave no active item. Manual route (text/bg only; icon stays gray):{"Nav / Sessions":{"backgroundColor":"var(--color-brand-primary)"},"Nav Label / Sessions":{"color":"var(--color-text-inverse)","fontWeight":600}}. User name/email:User Name,User Email,User Initials,User Role Tag Label. - Score Bar: set
Fillwidth in px of the 160px track:{"Fill":{"width":"100px"}}; recolor{"Fill":{"backgroundColor":"var(--color-avatar-purple)"}}; thinner:{"Fill":{"height":"4px"}}plus rootstyle="height:4px". - Segmented / Ant Segmented: pick the variant whose
Active Nmatches; editOption 1..n. - Tabs / Bar: pick
Active Nvariant; editTab N Label. Bars have a 1px divider under them. - Stat:
Label(uppercase),Value,Delta,Trend,Delta Arrow(useStat / Orange Downfor a negative delta). Sparkline shape is fixed. - Pill / Tag / Badge status colors: choose the tone component. Custom:
{"Label":{"color":"var(--color-tag-red-fg)"}}and rootstyle="background-color:var(--color-tag-red-bg);border:1px solid var(--color-tag-red-bd)". - Data Table / Header Row, Row, Ant Table rows: 5 equal flex cells
Col 1..5/Cell 1..5; for fewer columns hide the trailing ones with display:none; width viastyle. For rows with Tags/Avatars compose raw HTML in a<table>and reuseTag / ...instances in cells. Wrap a table in a Card-like frame: radius-lg, 1px border-light, overflow hidden. - Inputs:
Valueis the text (placeholder color by default; useInput / Filledfor values). Width via instance style.Form Field*hasLabel,Required Mark,Value,Help. - Disabled button:
style="opacity:.5"on the instance. Block button:style="width:100%"(addjustify-content:center: already centered). - Card with gradient (dashboard Awaiting review): build raw:
background:linear-gradient(180deg,#fffdf5,#ffffff).
Recipes for raw HTML (when no component fits)
- Card:
display:flex;flex-direction:column;padding:var(--spacing-lg);background:var(--color-bg-elevated);border:1px solid var(--color-border-light);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm). - Button with icon: row, gap 8px, height 34px (sm 28, lg 40), padding 0 16px, radius-md; icon 14-16px via
<x-paper-icon name="phosphor:plus" size="16" color="var(--color-text-inverse)"/>. - Page frame 1440x900: left
Admin Sidebar ...(248x900) + main column 1192 wide:Admin Shell Header(about 102px tall) + content (padding 24, bg-layout, max-width 900/1100 centered). - Modal overlay: full-screen frame
background:var(--color-bg-overlay)with aModalinstance centered. - Section titles inside cards:
Section Title/Section Title / With Actioninstances.
Variables (use as var(--name))
Core tokens exist in the project (from tokens.css, same names minus the leading --): color-brand-primary, color-brand-secondary, color-bg-layout, color-bg-elevated, color-bg-sider, color-bg-selected, color-bg-overlay, color-border, color-border-light, color-border-strong, color-text-primary, color-text-secondary, color-text-disabled, color-text-inverse, color-text-link, color-success, color-warning, color-error, color-info, color-diff-added, color-diff-removed, color-diff-neutral, color-code-bg, color-code-fg; spacing-xs/sm/md/lg/xl/xxl (4/8/16/24/32/48), page-padding (24), page-padding-lg (48), page-max-width-xs/sm/md/lg/xl/narrow/default/wide (480/420/720/900/1100/720/900/1100), font-size-xs..xxl (12/14/16/18/20/24), radius-sm/md/lg (4/8/12), shadow-sm/md/lg, z-base/dropdown/modal/toast (1/1000/1050/1100).
Note: multi-value shorthands (padding:var(--spacing-md) var(--page-padding)) are NOT resolved by write_html: use single-value padding with var, or literal px for shorthands. Single var(--spacing-*), var(--radius-*), var(--shadow-*), var(--font-size-*) work.
Extra color variables added by the Design System page
- Brand:
color-button-primary-hover#4096ff - Border:
color-card-hover-border#bfdbff - Text:
color-text-placeholder#00000040 - Status:
color-star#faad14,color-score-warn#faad14,color-score-poor#ff4d4f - Sidebar (dark shell):
color-sidebar-bg#11161d,color-sidebar-border#ffffff12,color-sidebar-text#ffffffa6,color-sidebar-text-muted#ffffff73,color-sidebar-text-faint#ffffff59,color-sidebar-hover#ffffff0f,color-sidebar-badge#ffffff40,color-sidebar-tag-bg#1677ff40 - Tag tones:
color-tag-blue-fg#0958d9,color-tag-blue-bg#e6f4ff,color-tag-blue-bd#91caff,color-tag-green-fg#389e0d,color-tag-green-bg#f6ffed,color-tag-green-bd#b7eb8f,color-tag-gold-fg#ad6800,color-tag-gold-bg#fffbe6,color-tag-gold-bd#ffe58f,color-tag-red-fg#cf1322,color-tag-red-bg#fff1f0,color-tag-red-bd#ffccc7,color-tag-purple-fg#531dab,color-tag-purple-bg#f9f0ff,color-tag-purple-bd#d3adf7,color-tag-cyan-fg#08979c,color-tag-cyan-bg#e6fffb,color-tag-cyan-bd#87e8de - Avatar palette:
color-avatar-purple#722ed1,color-avatar-teal#13a8a8,color-avatar-pink#eb2f96,color-avatar-orange#fa541c,color-avatar-indigo#2f54eb - Controls:
color-button-dark#1f1f1f,color-tooltip-bg#000000d9,color-switch-off#00000040,color-focus-ring#1677ff1a
Font stack and type scale
Inter only (regular/bold; weights 500 render regular, 600+ bold). Sizes: 12 labels/tags/table headers, 14 body, 16 section/card title, 24 page title (600), 30 stat value (700), 15/16 brand name.
Known deviations from the source
- Pill in the code is the filter chip (active/inactive); there are no tone variants (
Pill / Successdoes not exist). Tones areTag. lint_design: remaining errors/warnings are faithful brand colors (white on #1677ff 4.1:1, success green on white, etc.), control heights under 44px (34/32px as in the source), and svg-internal names. Not changed on purpose.- Text under 12px in the source (10.5/11) is rendered at 12; padding off the 4px grid was snapped (11->12, 18->16, 14->16, 9->0 with fixed 36px item height).
- Main components cannot be nested in the
Section / Componentsframe (create_component/import_components need top-level frames), so the section shows instances; masters are in the library area.