agentleFS
SentryKnown publishergetsentry/abacus/.claude/skills/ui-design/SKILL.md

ui-design

Skill77 starsChanged 10 months agoApache-2.0View on GitHub

Comprehensive design guidelines for the Abacus dashboard. This document covers color palette, typography, components, and patterns to ensure consistency across the application. This is the core contrast system. Use these consistently: Key principle: Higher contrast (70%+) for actionable/important content, lower contrast (40%-) for metadata/supporting info. Defined in globals.css for consistency: Defined in src/lib/tools.ts:

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use algorithmic-art, git-commit and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    algorithmic-art

    Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

    Also in 3 projects that use this

  • GitHubSkill

    git-commit

    Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping

    Also in 3 projects that use this

  • MicrosoftSkill

    mcp-builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

    Also in 4 projects that use this

  • MicrosoftSkill

    caveman

    Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules

    Also in 3 projects that use this

  • OpenAISkill

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All pages use centered, max-width content.

    line 293
  2. Distinctive:

    Use Framer Motion for page animations:

    line 441
  3. Distinctive:

    Use Lucide React icons consistently:

    line 463
  4. Distinctive:

    All time-relative data must show the time range:

    line 480

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UI Design System

Comprehensive design guidelines for the Abacus dashboard. This document covers color palette, typography, components, and patterns to ensure consistency across the application.

Color System

Background Colors

UsageClassValue
Page backgroundbg-[#050507]Near-black
Card/Panelbg-white/[0.02]2% white
Hover statebg-white/[0.03]3% white
Active/Selectedbg-white/55% white
Subtle highlightbg-white/1010% white

Border Colors

UsageClass
Defaultborder-white/5
Hoverborder-white/10
Input focusborder-white/30
Active/Selectedborder-amber-500/30

Text Opacity Scale

This is the core contrast system. Use these consistently:

OpacityClassUse Case
100%text-whitePrimary content, headings, important values
90%text-white/90Body text, commit messages
70%text-white/70 or text-secondarySecondary content, table data
60%text-white/60Section labels, headers
50%text-white/50 or text-mutedTertiary info, sub-values
40%text-white/40Metadata, timestamps, badges
30%text-white/30Disabled, very subtle hints
20%text-white/20Icons in empty states

Key principle: Higher contrast (70%+) for actionable/important content, lower contrast (40%-) for metadata/supporting info.

Semantic Text Classes

Defined in globals.css for consistency:

.text-primary   /* rgba(255,255,255,1) - white */
.text-secondary /* rgba(255,255,255,0.7) - white/70 */
.text-muted     /* rgba(255,255,255,0.5) - white/50 */

Tool/Brand Colors

Defined in src/lib/tools.ts:

ToolBackgroundTextUsage
Claude Codebg-amber-500text-amber-400Primary accent
Cursorbg-cyan-500text-cyan-400Secondary accent
Windsurfbg-emerald-500text-emerald-400
GitHub Copilotbg-sky-500text-sky-400
Unknownbg-rose-500text-rose-400Fallback
Human/Nonebg-white/20text-white/50Non-AI

Semantic Colors

PurposeClass
Success/Positivetext-emerald-400
Error/Negativetext-red-400
Warningtext-amber-400
Info/Linktext-cyan-400

Adoption Stage Colors

StageBackgroundBorderText
Exploringbg-slate-500/10border-slate-500/20text-slate-400
Building Momentumbg-amber-500/10border-amber-500/20text-amber-400
In the Flowbg-cyan-500/10border-cyan-500/20text-cyan-400
Power Userbg-emerald-500/10border-emerald-500/20text-emerald-400
Inactivebg-zinc-500/10border-zinc-500/20text-zinc-400

Typography

Font Families

font-display  // 'Outfit' - Headings, large numbers, display text
font-mono     // 'Geist Mono' - Data, labels, code, most UI text

Common Patterns

// Page title
<h1 className="font-display text-2xl sm:text-3xl text-white">Title</h1>

// Section label (use SectionLabel component)
<h3 className="font-mono text-[11px] uppercase tracking-wider text-secondary">
  Section Title
</h3>

// Stat value (large number)
<span className="font-display text-3xl font-light tracking-tight text-white">42.1M</span>

// Data/table cell
<span className="font-mono text-xs text-white/70">value</span>

// Small label/badge
<span className="font-mono text-[10px] uppercase tracking-wider text-white/40">LABEL</span>

// Metadata annotation
<span className="font-mono text-[11px] text-white/40">Data from Oct 2024</span>

Font Sizes

SizeClassUse
8pxtext-[8px]Chart axis labels
9pxtext-[9px]Tiny badges
10pxtext-[10px]Small labels, uppercase headers
11pxtext-[11px]Section labels, metadata
xs (12px)text-xsBody text, table data
sm (14px)text-smEmphasized body text
base+text-lg to text-3xlDisplay values

Components

Card

Standard container for content sections.

import { Card, AnimatedCard } from '@/components/Card';

// Basic card
<Card>Content</Card>

// With padding options: none, sm (default), md, lg
<Card padding="lg">Content</Card>

// Animated on mount
<AnimatedCard delay={0.1}>Content</AnimatedCard>

// For tables (no padding, overflow hidden)
<Card padding="none" className="overflow-hidden">
  <table>...</table>
</Card>

SectionLabel / CardTitle

Consistent section headers.

import { SectionLabel, CardTitle } from '@/components/SectionLabel';

// Basic
<SectionLabel>Daily Usage</SectionLabel>

// With time range annotation: "Daily Usage (30d)"
<SectionLabel days={30}>Daily Usage</SectionLabel>

// With count: "Commits (1,234)"
<SectionLabel count={1234}>Commits</SectionLabel>

// With margin
<SectionLabel margin="lg">Title</SectionLabel>

// With divider line
<SectionLabel divider margin="lg">Title</SectionLabel>

// CardTitle = SectionLabel with margin="lg" default (for use inside Cards)
<CardTitle days={30}>Section</CardTitle>

StatCard

Display key metrics.

import { StatCard } from '@/components/StatCard';

// Basic with accent bar
<StatCard
  label="Total Tokens"
  value="1.2M"
  subValue="Last 30 days"
  accentColor="#f59e0b"
/>

// With icon (changes to corner gradient style)
<StatCard
  label="Active Users"
  days={30}
  value="156"
  icon={Users}
  trend={12}
  accentColor="#06b6d4"
/>

// With custom children
<StatCard label="Score" value="72" suffix="/100">
  <div className="flex gap-2 text-xs">
    <span className="text-emerald-400">+5 this week</span>
  </div>
</StatCard>

PageState Components

Loading, error, and empty states.

import { LoadingState, ErrorState, EmptyState } from '@/components/PageState';

<LoadingState message="Loading data..." />

<ErrorState message="Failed to fetch" />

<EmptyState
  icon={Inbox}
  title="No commits found"
  description="Try adjusting your filters"
/>

LoadingBar

Top-of-page progress indicator.

import { LoadingBar } from '@/components/LoadingBar';

<LoadingBar isLoading={isRefreshing} />

Tooltip

Hover tooltips.

import { Tooltip, TooltipContent, TooltipRow } from '@/components/Tooltip';

// Simple wrapper
<Tooltip content="Helpful text">
  <button>Hover me</button>
</Tooltip>

// Manual with group
<div className="group relative">
  <button>Hover</button>
  <TooltipContent>
    <TooltipRow label="Date" className="text-white/60">Jan 5</TooltipRow>
    <TooltipRow label="Tokens" className="text-amber-400">1.2M</TooltipRow>
  </TooltipContent>
</div>

AdoptionBadge

User adoption stage indicator.

import { AdoptionBadge } from '@/components/AdoptionBadge';

<AdoptionBadge stage="power_user" />
<AdoptionBadge stage="exploring" size="sm" showLabel={false} />
<AdoptionBadge stage="in_flow" isInactive />

TimeRangeSelector

Time range picker buttons.

import { TimeRangeSelector } from '@/components/TimeRangeSelector';

<TimeRangeSelector
  value={range}
  onChange={setRange}
  options={[7, 30, 90]}
  isPending={isLoading}
/>

Layout System

PageContainer

All pages use centered, max-width content.

import { PageContainer } from '@/components/PageContainer';

// Full-width wrapper with centered content
<header className="border-b border-white/5">
  <PageContainer className="py-4">
    {/* Content constrained to 1280px */}
  </PageContainer>
</header>

Page Structure Template

<div className="min-h-screen bg-[#050507] text-white">
  {/* Loading bar */}
  <LoadingBar isLoading={isRefreshing} />

  {/* App header */}
  <AppHeader />

  {/* Tip bar (optional) */}
  <TipBar />

  {/* Page-specific header */}
  <div className="border-b border-white/5">
    <PageContainer className="py-6">
      <h1 className="font-display text-2xl text-white">Page Title</h1>
    </PageContainer>
  </div>

  {/* Main content */}
  <main className="py-8">
    <PageContainer>
      <div className="space-y-8">
        {/* Content sections */}
      </div>
    </PageContainer>
  </main>
</div>

Responsive Breakpoints

ScreenContainerPadding
< 640pxFull width16px (px-4)
640-1280pxFull width32px (px-8)
1280px+1280px maxCentered

Interactive Elements

Buttons

// Primary action (amber accent)
<button className="px-3 py-1.5 rounded font-mono text-xs bg-amber-500/20 text-amber-400 border border-amber-500/30">
  Action
</button>

// Secondary/Inactive
<button className="px-3 py-1.5 rounded font-mono text-xs bg-white/5 text-white/40 border border-white/10 hover:bg-white/10 hover:text-white/60">
  Secondary
</button>

// Disabled
<button className="opacity-30 cursor-not-allowed" disabled>
  Disabled
</button>

Links

import { AppLink } from '@/components/AppLink';

// Internal link (preserves time range query params)
<AppLink href="/users" className="text-amber-400 hover:text-amber-300">
  View Users
</AppLink>

// Back link pattern
<AppLink
  href="/commits"
  className="inline-flex items-center gap-1.5 text-white/40 hover:text-white/60 transition-colors"
>
  <ArrowLeft className="w-4 h-4" />
  <span className="font-mono text-xs">All Repositories</span>
</AppLink>

Select/Dropdown

<select className="bg-[#0a0a0c] border border-white/10 rounded px-2 py-1 font-mono text-[11px] text-white/60 focus:outline-none focus:border-white/30">
  <option value="all" className="bg-[#0a0a0c]">All</option>
  <option value="ai" className="bg-[#0a0a0c]">AI only</option>
</select>

Tables

<Card padding="none" className="overflow-hidden">
  <div className="overflow-x-auto">
    <table className="w-full">
      <thead>
        <tr className="border-b border-white/10 bg-white/[0.02]">
          {/* Flexible column */}
          <th className="px-4 py-3 text-left font-mono text-[10px] uppercase tracking-wider text-white/60">
            Name
          </th>
          {/* Fixed width columns */}
          <th className="px-4 py-3 text-right font-mono text-[10px] uppercase tracking-wider text-white/60 w-24">
            Tokens
          </th>
        </tr>
      </thead>
      <tbody>
        <tr className="border-b border-white/5 hover:bg-white/[0.02] transition-colors">
          <td className="px-4 py-3">
            <span className="font-mono text-xs text-white/70 truncate block">user@example.com</span>
          </td>
          <td className="px-4 py-3 text-right w-24 whitespace-nowrap">
            <span className="font-mono text-xs text-white/60">1.2M</span>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</Card>

Column Width Guidelines

TypeWidthClass
Primary (name/email)FlexibleNone + truncate
Status/Badge128pxw-32
Score80pxw-20
Tokens/Currency96pxw-24
Date112pxw-28
Percentage80pxw-20

Animation

Use Framer Motion for page animations:

import { motion } from 'framer-motion';

// Fade up on mount
<motion.div
  initial={{ opacity: 0, y: 20 }}
  animate={{ opacity: 1, y: 0 }}
  transition={{ duration: 0.5, delay: 0.1 }}
>
  Content
</motion.div>

// Stagger children
{items.map((item, i) => (
  <StatCard key={item.id} delay={i * 0.1} />
))}

Icons

Use Lucide React icons consistently:

import { GitCommit, Users, Calendar, ArrowLeft, ExternalLink, Database } from 'lucide-react';

// Standard size in UI
<Icon className="w-4 h-4 text-white/40" />

// Small/inline
<Icon className="w-3 h-3 text-white/30" />

// Large/empty state
<Icon className="w-8 h-8 text-white/20" />

Time Range Annotations

All time-relative data must show the time range:

// In section headers (use SectionLabel)
<SectionLabel days={30}>Active Users</SectionLabel>
// Renders: "ACTIVE USERS (30d)"

// In stat cards
<StatCard label="Tokens" days={30} value="1.2M" />

// Manual annotation
<span className="text-white/30">({days}d)</span>

Checklist for New Pages

  • Uses PageContainer for all content sections
  • Has AppHeader component
  • Includes TipBar if appropriate
  • Full-width borders/backgrounds with centered content
  • Responsive padding (py-4 sm:py-8 for main)
  • LoadingBar for refresh states
  • LoadingState / ErrorState / EmptyState for data states
  • Time range annotations on all time-relative data
  • Uses shared components (Card, StatCard, SectionLabel)
  • Consistent text opacity scale
  • Uses AppLink for internal navigation
  • Animation with Framer Motion (staggered delays)
  • Mobile-first responsive design

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.