Spaces:
Running
Download DESIGN.md from ArielJoe/Prompt-Builder: direct link, hf CLI and curl.
- Browser
- Download file 5.43 kB
-
https://huggingface.co/spaces/ArielJoe/Prompt-Builder/resolve/main/DESIGN.md
- Command line
-
hf download hf://spaces/ArielJoe/Prompt-Builder/DESIGN.md
-
curl -L -o DESIGN.md https://huggingface.co/spaces/ArielJoe/Prompt-Builder/resolve/main/DESIGN.md
Design System — Prompt Builder (Hallmark Ink)
Locked design specification for
web/index.htmland all 9 standalone detector test consoles (web/*-test.html). Derived from HallmarkInk(depth: full,scope: app, paper colourway).
1. Visual Direction & Philosophy
Prompt Builder is an editorial desk instrument for inspecting Indonesian AI prompts before submission.
The interface follows Hallmark Ink: crisp archival paper (--color-paper), sharp hueless ink (--color-ink), quiet hairline partitions (--color-rule, --color-rule-2), restrained teal accent (--color-accent), and functional category ink markers exclusively where prompt findings must be distinguished.
- One layout per screen: split workbench on desktop (
<= 1440px, 12-column responsive balance: structured prompt sheet on the left, live audit sheet on the right), single clean column below860px. - Flat surface ladder: primary editing on
--color-paper, subtle inset wells (--color-paper-2) only for assembled final prompt output, empty states, and loader skeletons; avoid nested card-inside-card stacks. - Zero decorative noise: no emojis as UI icons, no gradient washes, no uppercase tracked eyebrows above headings, no middle-dot separators inside copy/labels.
- Explicit affordance: every interactive trigger (
button, clickable.entity, tab trigger, interactive<label>,<select>) usescursor: pointerand inherits a2px solid var(--color-focus):focus-visibleoutline.
2. Tokens (web/assets/css/tokens.css)
All color, spacing, type, radius, elevation, and z-index primitives reside exclusively inside :root of web/assets/css/tokens.css. Raw color literals (#..., rgb(...), oklch(...)) outside tokens.css are disallowed.
| Role | Token | Intent |
|---|---|---|
| Primary canvas | --color-paper |
Main sheet & workbench paper (oklch(99.5% 0.003 100)) |
| Inset well | --color-paper-2 |
Final prompt preview, empty states, quiet hover |
| Elevated paper tint | --color-paper-3 |
Disabled controls & recessed tracks |
| Primary ink | --color-ink |
Headings, active text, primary copy |
| Secondary ink | --color-ink-2 |
Supporting body text |
| Muted ink | --color-muted |
Placeholders, field subtitles, counters |
| Structural hairline | --color-rule |
Topbar divider, pane rule, input borders |
| Subtle hairline | --color-rule-2 |
Inter-row separators inside fields & findings |
| Interactive accent | --color-accent |
Primary action button, active tab underline, caret, progress |
| Accent tint | --color-accent-soft |
Selection highlight & subtle ready status tint |
| Semantic states | --color-error*, --color-ok*, --color-warn* |
Error banners, passed states, cautionary findings |
| Detector categories | --cat-<name>, --cat-<name>-soft, --cat-<name>-ink |
13 unified category colors (risky_content, profanity, missing, pii, ner, slang, weak, typo, syntax, quality, filler, special_char, field_fit) |
3. Typography
- Display & UI body:
Epilogue(--font-display,--font-body). Headings use-0.04emdisplay tracking (--tracking-display) and sentence-case clarity. - Code, spans & assembled prompt output:
IBM Plex Mono(--font-outlier). Applied to copyable assembled prompts, character/index readouts, redacted output, and detector spans. - Numeric figures:
.numenforcesfont-variant-numeric: tabular-nums.
4. Radii & Controls
- Containers, popovers, well boxes, test cards:
var(--radius-card)(12px). - Buttons, textareas, inputs, selects, error banners, tabs:
var(--radius-control)(8px). - Inline entity spans, legend badges, severity chips:
var(--radius-badge)(8px). - Live server status dot & category marker dot:
var(--radius-pill)(999px).
Shared Button Hierarchy
.btn--primary:--color-accentfill,--color-accent-inklabel (main submit / inspect action)..btn--secondary:--color-paperfill,1px solid var(--color-rule)border,--color-inklabel (copy, sample fill, secondary actions)..btn--quiet: transparent fill,--color-mutedlabel, fills with--color-paper-2on hover (clear, skip/Lewati, dismiss).
5. Consistent Empty, Loading & Error States
- Empty state (
.empty-state):--color-paper-2background,1px solid var(--color-rule-2)border,var(--radius-card)radius, centered concise heading + 1-line Indonesian guidance. Never uses checkmark/cross emojis. - Error banner (
.error-banner):--color-error-softbackground,1px solid var(--color-error)border,--color-error-inktext,role="alert". Replaces blockingwindow.alert()dialogs across every test page. - Audit popover (
.eval-popover): Crisp--color-papermodal surface framed by--shadow-popover(z-modal), paired with an SVG scrim spotlight mask (aria-hidden="true"). Falls back to a docked bottom sheet below600px.
6. Page Scope
web/index.html— Modular ES application (web/assets/js/app.js,config.js,dom.js,api.js,popover.js,evaluator-ui.js).web/*-test.html(9 standalone detector consoles:pii,ner,word-quality,risky-content,profanity,filler,special-char,syntax,field-fit) — Sharing theInktopbar shell,tokens.cssvariables, compiledassets/css/tailwind.css, andweb/assets/js/test-page-common.js.