mcpField
L
linear-ui-skills

linear-ui-skills

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

About linear-ui-skills

A set of Linear-style interface guidelines for AI agents, intended for dark-mode UIs and design systems. It covers color, typography, layout, interaction, accessibility, and performance constraints.

Key features

  1. 01Linear-style design constraints
  2. 02Colors and semantic tokens
  3. 03Inter typography guidelines
  4. 044px grid and layout rules
  5. 05Interaction, animation, and performance rules

Use cases

  1. 01Building dark-mode interfaces
  2. 02Creating Linear-style design systems
  3. 03Implementing UIs with Inter and a 4px grid

Install

Copy the command and run it in a terminal.

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

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

Bundled filesmetadata.json

Details

From the project README

Linear UI Skills

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

When to Apply

Reference these guidelines when:

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

Colors

  • MUST use dark backgrounds (lightness < 20) for primary surfaces - detected lightness: 4
  • MUST use #080A0A as page background (surface-base)
  • SHOULD limit color palette to 10 distinct colors
  • MUST maintain text contrast ratio of at least 4.5:1 for accessibility
Semantic Tokens
TokenHEXRGBUsage
surface-base#080A0Argb(8,10,10)Page background
surface-raised#D2D2D3rgb(210,210,211)Cards, modals, raised surfaces
surface-overlay#E3E3E6rgb(227,227,230)Overlays, tooltips, dropdowns
text-primary#5C5C5Crgb(92,92,92)Headings, body text
text-secondary#2D2E30rgb(45,46,48)Secondary, muted text
text-tertiary#444749rgb(68,71,73)Additional text
border-default#B0B1B1rgb(176,177,177)Subtle borders, dividers

Typography

  • MUST use Inter as primary font family
  • SHOULD use single font family for consistency
  • MUST use 60px / 700 for primary headings
  • MUST use 17px / 400 for body text
  • SHOULD reduce font weights (currently 4 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-1Inter60px700#E2E4E31
bodyInter17px400#4447491
body-secondaryInter16px400#5C5C5C1
body-secondaryInter15px500#2D2E301
text-14pxInter14px400#B2B3B31
text-13pxInter13px400#4C4C4C1
text-13pxInter13px400#5253551
text-12pxInter12px400#5254561
captionInter9px400#5455571
labelInter9px400#5657591
Typography Reference

Font Families:

  • Inter (used 13x)

Font Sizes: 9px, 12px, 13px, 14px, 15px, 16px, 17px, 60px

Spacing

  • MUST use 4px grid for spacing
  • SHOULD use spacing from scale: 5px, 11px, 12px, 13px, 14px, 16px, 19px, 20px
  • 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: 6px, 8px
  • MUST use 1px border width consistently
  • SHOULD use 6px 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: 6px, 8px

Layout

  • MUST design for 1920px base viewport width
  • SHOULD use consistent element widths: 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: 1920px, height: 1013px
  • Header: height: 63px

Components

Buttons
VariantBackgroundTextBorderHeightRadius
Ghosttransparent#5C5C5Cnone--

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 #D2D2D3 background
  • List items: use #D2D2D3 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