mcpField
C
cal-ui-skills

cal-ui-skills

github.com/ihlamuryDesign & UI102236 installsUpdated 37w ago
Repository

About cal-ui-skills

cal-ui-skills provides design constraints for AI agents creating Cal-style interfaces. Its guidance covers colors, typography, spacing, layout, accessibility, interaction, animation, and performance.

Key features

  1. 01Cal-style visual tokens
  2. 02Inter font and typography rules
  3. 034px spacing grid
  4. 04Accessible focus and contrast rules
  5. 05Interaction and animation constraints
  6. 06Layout and performance guidance

Use cases

  1. 01Building a Cal-inspired design system
  2. 02Creating a light-mode interface with AI agents
  3. 03Applying consistent typography and spacing
  4. 04Checking accessibility and interaction behavior

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ihlamury/design-skills --skill cal-ui-skills

After installing, type/cal-ui-skillsin Claude Code to confirm it loaded.

Bundled filesmetadata.json

Details

From the project README

Cal UI Skills

Opinionated constraints for building Cal-style interfaces with AI agents.

When to Apply

Reference these guidelines when:

  • Building light-mode interfaces
  • Creating Cal-inspired design systems
  • Implementing UIs with Inter font and 4px grid

Colors

  • SHOULD use light backgrounds for primary surfaces
  • MUST use #FDFDFD as page background (surface-base)
  • SHOULD reduce color palette (currently 16 colors detected)
  • MUST maintain text contrast ratio of at least 4.5:1 for accessibility
Semantic Tokens
TokenHEXRGBUsage
surface-base#FDFDFDrgb(253,253,253)Page background
surface-raised#EDEDEDrgb(237,237,237)Cards, modals, raised surfaces
surface-overlay#1C1C1Crgb(28,28,28)Overlays, tooltips, dropdowns
text-primary#6B6B6Brgb(107,107,107)Headings, body text
text-secondary#A1A1A1rgb(161,161,161)Secondary, muted text
text-tertiary#404040rgb(64,64,64)Additional text
border-default#E5E5E5rgb(229,229,229)Subtle borders, dividers
destructive#FCC9C1rgb(252,201,193)Error states, delete actions

Typography

  • MUST use Inter as primary font family
  • SHOULD use single font family for consistency
  • MUST use 70px / 700 for primary headings
  • MUST use 16px / 400 for body text
  • SHOULD reduce font weights (currently 5 detected)
  • MUST use text-balance for headings and text-pretty for body text
  • SHOULD use tabular-nums for numeric data
  • NEVER modify letter-spacing unless explicitly requested
Text Styles
StyleFontSizeWeightColorCount
heading-1Inter70px700#2A2A2A1
text-23pxInter23pxsemi_bold#C1C1C11
text-22pxInter22pxsemi_bold#4949491
text-21pxInter21px500#6767671
text-21pxInter21pxsemi_bold#3838381
text-19pxInter19px500#2C2C2C1
text-19pxInter19px500#3C3C3C1
text-19pxInter19px500#D4D4D41
text-18pxInter18px500#4040401
bodyInter16px400#A4A4A41
Typography Reference

Font Families:

  • Inter (used 65x)

Font Sizes: 8px, 9px, 10px, 11px, 12px, 13px, 14px, 15px, 16px, 18px, 19px, 21px, 22px, 23px, 70px

Spacing

  • MUST use 4px grid for spacing
  • SHOULD use spacing from scale: 1px, 2px, 3px, 4px, 5px, 6px, 7px, 9px
  • SHOULD use 5px as default gap between elements
  • NEVER use arbitrary spacing values (use design scale)
  • SHOULD maintain consistent padding within containers

Borders

  • MUST use border-radius from scale: 1px, 2px, 3px, 4px, 6px, 7px, 8px, 9px, 10px, 11px
  • SHOULD limit border widths to: 1px, 3px
  • SHOULD use 3px as default border-radius
  • NEVER use arbitrary border-radius values (use design scale)
  • SHOULD use subtle borders (1px) for element separation
Border Radius Reference

Scale: 1px, 2px, 3px, 4px, 6px, 7px, 8px, 9px, 10px, 11px

Layout

  • MUST design for 1920px base viewport width
  • SHOULD use consistent element widths: 16px, 8px, 11px, 10px, 52px
  • SHOULD maintain text-heavy layout with clear hierarchy
  • NEVER use h-screen, use h-dvh for full viewport height
  • MUST respect safe-area-inset for fixed elements
  • SHOULD use size-* for square elements instead of w-* + h-*
Detected Layout Patterns
  • Main Content: width: 1565px, height: 814px
  • Main Content: width: 1920px, height: 1080px
  • Main Content: width: 1180px, height: 717px
  • Main Content: width: 1178px, height: 701px

Components

Buttons
VariantBackgroundTextBorderHeightRadius
Ghosttransparent#6B6B6Bnone--

Interactive States

Focus
  • MUST use 2px outline with accent color (#5E6AD2)
  • MUST use 2px outline-offset
  • NEVER remove focus indicators
Hover
  • Buttons (primary): lighten background by 10%
  • Buttons (secondary): use #EDEDED background
  • List items: use #EDEDED background
Disabled
  • MUST use opacity: 0.5
  • MUST use cursor: not-allowed

Interaction

  • MUST use an AlertDialog for destructive or irreversible actions
  • SHOULD use structural skeletons for loading states
  • MUST show errors next to where the action happens
  • NEVER block paste in input or textarea elements
  • MUST add an aria-label to icon-only buttons

Animation

  • NEVER add animation unless it is explicitly requested
  • MUST animate only compositor props (transform, opacity)
  • NEVER animate layout properties (width, height, top, left, margin, padding)
  • SHOULD use ease-out on entrance animations
  • NEVER exceed 200ms for interaction feedback
  • SHOULD respect prefers-reduced-motion

Performance

  • NEVER animate large blur() or backdrop-filter surfaces
  • NEVER apply will-change outside an active animation
  • NEVER use useEffect for anything that can be expressed as render logic

Comments

Markdown supported