Design

From activepieces/activepieces · View interactive version

Design is an AI agent skill from the GitHub repository activepieces/activepieces. Design system for Activepieces (open-source AI automation platform, "open source replacement for Zapier"). Use whenever designing, mocking, or building UI for Activepieces — the web app (flow builder, runs, connections, dashboard), docs, or marketing surfaces. Provides brand purple `#8142E3`, Inter

How to use this skill

Skill file

Activepieces Design System

You are designing for Activepieces — an open-source AI automation platform where users assemble triggers + actions from 280+ "pieces" into automated flows. Every piece doubles as an MCP server.

Read README.md in this folder first — it is the canonical reference. This file is a fast-loading summary for agent use.

Inventory

Component inventory (`ui_kits/web/`)

Button (default / secondary / outline / ghost / destructive / link; sizes xs / sm / default / lg / icon / icon-sm / icon-lg),

Badge (default / secondary / outline / destructive / success / warning, optional dot),

Input (with optional left icon, thin 32px variant),

Textarea (auto-grows 1–5 rows),

Label (supports required asterisk),

Checkbox (supports checked="indeterminate"),

Switch (optional checked/unchecked icons),

RadioGroup + RadioGroupItem,

Slider (single-thumb, 0..100 by default),

Progress (0..100),

Skeleton,

Avatar, Kbd,

Alert (default / primary / warning / destructive / success, with icon + title),

Tabs + TabsList + TabsTrigger + TabsContent (default / pills / underline),

Separator (horizontal / vertical).

Popover (anchored, placement + align + offset),

DropdownMenu (items support icon, shortcut, destructive, separator, disabled),

Modal (sizes sm / md / lg, title + description + footer, black/50 backdrop, no blur),

Tooltip (400ms delay, 120ms fade),

ToastProvider + useToast() + ToastHost (bottom-right stack; .toast / .success / .error / .warning / .info).

Hard rules (never violate)

  1. Primary is purple hsl(257 74% 57%) / #8142E3 — the shipping value from packages/web/src/styles.css. Not the #9747FF swatch some Figma files show. Primary stays purple in dark mode too (brand continuity) — use .dark.blue-primary to opt back into the repo's blue-in-dark behaviour.
  2. Body text is 14px (text-sm), not 16. Activepieces feels dense and tool-like. Headings use -0.01em to -0.02em tracking. The agent editor's Configure panel pairs 15px controls with 13px labels and meta, one step up from text-sm so a settings column reads at arm's length; treat that pair as local to that panel, not as a second ramp.
  3. Sentence case everywhere: headings, buttons, menu items, page titles. Proper nouns only for feature names (Flows, Runs, Pieces, MCP, Agents, Connections).
  4. Lucide icons only, 1.5–2px stroke, rounded caps. Default size 16 (size-4). Icon + text → gap-2 (8px). No emoji in the product UI. No Unicode glyphs (✓ × ←) — always a Lucide component.
  5. Borders are 1px, color neutral-200 (light) / white/14 (dark). Never thicker. (Note: repo ships white/10 in dark — we bump to 14% so dividers stay readable against neutral-900 surfaces.)
  6. No negative margins. Use gap-*, p-*, space-*. Explicitly banned in the repo's AGENTS.md.
  7. Cards: white fill, 1px border, radius-lg (10px), NO shadow by default. Shadows only on floating surfaces (popovers, menus, dialogs). One named exception: the agents list and its first-run hero use a 19px radius and a two-layer lift (0 1px 2px + 0 4px 12px -2px, deepening on hover), because that surface is a showcase rather than a dense tool view. It is the only place that does, and new cards elsewhere stay 10px and flat.
  8. Main content is a floating card: the sidebar blends with the outer shell (neutral-50 in light, neutral-950 in dark); the content area sits inside with radius-xl (12px), 1px border, shadow-xs, and 8px inset from the viewport edges. Matches the shipping app layout.
  9. Builder canvas has the dotted look — background #FBFBFB (light) / #171717 (dark), radial-gradient dots #b2b2b2 1px at 16px 16px. This is signature.
  10. Hover states darken only — primary buttons go to /90, secondary /80, ghost bg-gray-300/30. No scale, no translate, no elevation change on hover or press.
  11. Focus-visible is a 3px ring at ring-color/50 — accessibility-first, very visible.
  12. Disabled: opacity: 0.5; pointer-events: none. No greyed-out variant.
  13. cn() from @/lib/utils is mandatory for className composition in production-style code. Use design-token classes (bg-primary, text-muted-foreground, border-border, rounded-md), never raw hex.

Voice & copy

Matter-of-fact, second-person, verb-first. No "Click here". No "Please". No hype.

Quick-reference tokens

Colors

/* Primary */
--ap-primary:     hsl(257 74% 57%);   /* #8142E3 — the brand purple */
--ap-primary-100: hsl(257 75% 85%);   /* soft wash, selection, add-step glow */
--ap-primary-300: hsl(257 74% 25%);   /* deep accent, text on primary-100 */

/* Neutrals (Tailwind neutral) */
--ap-neutral-50:  #fafafa;
--ap-neutral-100: #f5f5f5;
--ap-neutral-200: #e5e5e5;   /* borders */
--ap-neutral-600: #525252;   /* muted text */
--ap-neutral-700: #404040;
--ap-neutral-900: #171717;
--ap-neutral-950: #0a0a0a;   /* body text, dark bg */

/* Semantics (only 500 used as solid) */
--ap-success:     hsl(160 84% 39%);  /* emerald */
--ap-destructive: hsl(350 89% 60%);  /* rose */
--ap-warning:     hsl(38 92% 50%);   /* amber */

Type ramp (Inter)

| Token | Size | Usage |

|---|---|---|

| xs | 12px | metadata, badges |

| sm | 14px | body default, buttons, inputs |

| base | 16px | larger body |

| lg | 18px | card titles |

| xl | 20px | section titles |

| 2xl | 24px | page titles |

| 3xl | 28px | display (repo overrides from 30) |

| 4xl | 32px | display (repo overrides from 36) |

Spacing / radius / shadow

Button variants

default (purple), secondary (near-black), outline (white + border), ghost (transparent), destructive (rose), link (underlined purple). Sizes: xs 24 / sm 30 / default 36 / lg 40 (height in px) + icon / icon-sm / icon-lg (square). Icon-only buttons: square with radius-md.

Form controls (ships in `Primitives.jsx`)

Animation

Iconography

<!-- Load Lucide via CDN when building HTML prototypes -->
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>

Or inline SVGs from https://lucide.dev. Piece/integration icons: copy the real SVG from packages/web/src/assets/img/piece/ — do not redraw. Piece tile is 38–48px rounded-square with an 8% tinted background of the piece's brand color.

Surfaces & layout

Dark mode

When to use the UI kit vs. build fresh

Known gotchas

Starting a new design

  1. Read README.md for depth.
  2. Import colors_and_type.css in your HTML.
  3. Load Inter (already in fonts/) and Lucide via CDN.
  4. If building a web-app screen: open ui_kits/web/index.html, copy the relevant component file(s), and compose.
  5. Use sentence case, 14px body, 1px borders, purple #8142E3 only for primary action + brand. Nothing else.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.