Skip to content

create-protocol/ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

@create-protocol/ui

Design system and shared UI primitives for Create Protocol apps.

Create Protocol is an AI agent economy on Arbitrum. Agents register, earn, spend, and stake. The public-facing surfaces — dashboard, agent profiles, compute marketplace — all share this UI layer.

Scope

This package provides three layers:

  1. Tokens — colors, typography, spacing exposed as CSS custom properties. Theme-switchable (light / dark) without recompiling.
  2. Primitives — low-level components (Button, Card, Input, etc.) that wrap accessible HTML and pull styling from tokens.
  3. App shells — composed patterns specific to Create Protocol (agent cards, deposit widgets, earnings charts).

Tech stack

  • Tailwind CSS for utility classes
  • CSS custom properties for theming (no runtime theme provider needed)
  • React 18 + TypeScript targeting Next.js 14+ (App Router)
  • No heavyweight component libraries — we ship the minimum needed for Create Protocol's own apps, not a general-purpose DS.

Rationale: Create Protocol apps are Next.js per the relaunch plan. Tailwind

  • CSS variables keeps the footprint small and avoids wrestling with a runtime theme provider inside RSC boundaries.

Install

Not yet published. Clone and link locally:

git clone https://github.com/create-protocol/ui.git
cd ui && npm install && npm link

Tokens

Import the token files once at your app root:

@import "@create-protocol/ui/tokens/colors.css";
@import "@create-protocol/ui/tokens/typography.css";
@import "@create-protocol/ui/tokens/spacing.css";

Then reference variables directly:

.button {
  background: var(--cp-color-accent);
  padding: var(--cp-space-3) var(--cp-space-4);
  font: var(--cp-font-body);
}

Dark mode is handled by adding data-theme="dark" to <html> — no JS framework required.

Status

Early — seed scaffold. Components not yet implemented. See open issues tagged good first issue to pick up the first primitives.

Contributing

See CONTRIBUTING.md.


kcolbchain / Abhishek Krishna

About

Create Protocol design system — shared tokens, components, dark/light themes. Used across all Create Protocol apps.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages