democrito

democrito

v3

Molecules

Composite components built from atoms. Each molecule combines 2+ atoms into a reusable pattern.

18 molecules · 4 categories

Form & Input

5 components

Data entry, search, and parameter controls.

Form Field

Label + Input + Helper/Error text. Vertical layout with consistent spacing.

Composed of: Label + Input/Textarea/Select + Helper/Error text

Variants

A descriptive name for your prompt

<FormField label="Name" required helper="..." error="..."><Input /></FormField>

Parameter Control

Labeled slider + numeric input for model parameters like temperature and top_p.

Composed of: Label + Slider + Input

tok
<ParameterControl label="Temperature" value={0.7} onChange={fn} min={0} max={2} step={0.01} />

Field Header

Header bar for a labeled field section with colored dot, label, token count, and actions.

Composed of: Dot + Label + TokenCounter + Actions slot

Role*
120
Task
340
Constraints
80
Examples
3,800
<FieldHeader field="role" label="Role" tokenCount={120} required actions={...} />

Variable Editor Row

Name/value input pair with delete button and highlight state for variable management.

Composed of: Input (name) + Input (value) + Delete Button

<VariableEditorRow name="user" value="John" highlighted onDelete={fn} />

Navigation

3 components

Sidebar items, breadcrumbs, and tab navigation.

Tab Nav

Horizontal tab navigation bar with active state and optional disabled tabs. Used for settings, detail views, and section navigation.

Composed of: Button-like tabs + active highlight

<TabNav items={[{ label: "Profile", value: "profile" }, { label: "Variables", value: "vars", icon: Lock, disabled: true }]} value={active} onValueChange={setActive} />

Data & Display

5 components

Stats, identity, tokens, variables, and diff views.

Stat Card

KPI display with label, mono value, and trend indicator.

Composed of: Label + Value (font-mono) + Trend

Total Prompts

1,247

+12.5%

Evaluations

384

-3.2%

Avg Score

87.3

0.0%

Active Users

23

+2

<StatCard label="Total Prompts" value="1,247" trend={{ direction: "up", value: "+12.5%" }} />

Avatar Group

Avatar with name and optional role text.

Composed of: Avatar + Name + Role text

Sizes

MR

Mariano R.

Designer

JD

Jane Doe

Engineer

AK

Alex Kim

Product Manager

<AvatarGroup name="Mariano" role="Designer" size="md" status="online" />

Token Counter

Token count with thin progress bar. Color by threshold: safe/warning/danger.

Composed of: Text (font-mono) + Progress (60px×3px)

1,200 tokens
3,200 tokens
3,800 tokens
800
<TokenCounter current={1200} max={4000} compact />

Variable Highlight

Inline styled {{variable}} token with click interaction and unresolved state.

Composed of: Styled button with mono text

<VariableHighlight name="user_name" resolvedValue="John" unresolved onClick={fn} />

Diff Line

A single line in a diff view with line number, +/− prefix, and semantic coloring.

Composed of: Line number + prefix + text

1You are a helpful assistant.
2Be concise in your responses.
3+ Be thorough and detailed in your responses.
4Always cite your sources.
5+ Use markdown formatting when appropriate.
<DiffLine lineNumber={1} type="added" text="New line content" />

Activity & Status

3 components

Empty states, feed items, and run history.

Empty State

Centered placeholder for empty views with title, description, and CTA.

Composed of: Title + Description + CTA Button

No items yet

Create your first item to get started.

<EmptyState title="..." description="..." action={{ label: "Create", onClick: fn }} />

Activity Feed Item

A single row in an activity feed showing user, action, target, and timestamp.

Composed of: Avatar + User + Badge + Target + Timestamp

M
Mariano
created
Customer Support Bot
2m ago
J
Jane
updated
Code Review v3

Changed temperature from 0.7 to 0.3

15m ago
A
Alex
deployed
Translation Helper
1h ago
S
Sam
archived
Legacy Prompt
3h ago
C
Chris
commented
API Docs Generator

Looks good, ready for production

5h ago
<ActivityFeedItem user="Mariano" type="created" target="Bot" timestamp="2m ago" detail="..." />

Run History Item

A single run entry showing model, status, token usage, latency, and timestamp.

Composed of: Run ID + Model + Status Badge + Tokens + Latency + Timestamp

<RunHistoryItem runId="#1042" model="claude-3.5-sonnet" status="success" tokens={1247} latencyMs={820} timestamp="2m ago" />

Contact

Questions, collaborations, or feedback on democrito — reach out on LinkedIn or via hola@atomic-products.com.

Made with ❤️ from 🇪🇸 by Mariano · github.com/mmorerasanchez/democrito