8B

8-bit-pixel-art-patterns

A collection of UI patterns to create retro 8-bit borders and shadows for modern web components.

Install

mkdir -p .claude/skills/8-bit-pixel-art-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3044" && unzip -o skill.zip -d .claude/skills/8-bit-pixel-art-patterns && rm skill.zip

Installs to .claude/skills/8-bit-pixel-art-patterns

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Create pixelated borders, shadows, and effects for 8-bit retro components. Apply when building 8-bit styled UI components that need authentic pixel art aesthetics.
163 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Create pixelated borders for UI components
  • Add pixelated shadow effects to UI elements
  • Apply 8-bit retro aesthetics to icon buttons
  • Ensure consistent pixel sizes for retro feel
  • Manage dark mode color variations for pixel art

How it works

The skill uses multiple absolute-positioned div elements with fixed pixel sizes to simulate pixelated borders and shadows around a base UI component. It applies specific styling for corners, edges, and side borders.

Inputs & outputs

You give it
A React component (e.g., ShadcnButton) within a relative container
You get back
A UI component with pixelated borders, shadows, or icon button styling

When to use 8-bit-pixel-art-patterns

  • Style UI buttons with 8-bit borders
  • Create retro-styled component containers
  • Add pixelated shadow effects to UI elements

About this skill

8-bit Pixel Art Patterns

Create authentic pixelated borders and shadows using absolute-positioned divs. These patterns are essential for the retro aesthetic of 8-bit components.

Pixelated Border Pattern

Use 9 div elements to create a pixelated border effect:

<div className="relative">
  <ShadcnButton {...props} className="rounded-none" />

  {/* Corner pixels */}
  <div className="absolute top-0 left-0 size-1.5 bg-foreground" />
  <div className="absolute top-0 right-0 size-1.5 bg-foreground" />
  <div className="absolute bottom-0 left-0 size-1.5 bg-foreground" />
  <div className="absolute bottom-0 right-0 size-1.5 bg-foreground" />

  {/* Edge segments */}
  <div className="absolute -top-1.5 w-1/2 left-1.5 h-1.5 bg-foreground" />
  <div className="absolute -top-1.5 w-1/2 right-1.5 h-1.5 bg-foreground" />
  <div className="absolute -bottom-1.5 w-1/2 left-1.5 h-1.5 bg-foreground" />
  <div className="absolute -bottom-1.5 w-1/2 right-1.5 h-1.5 bg-foreground" />

  {/* Side borders */}
  <div className="absolute top-1.5 -left-1.5 h-[calc(100%-12px)] w-1.5 bg-foreground" />
  <div className="absolute top-1.5 -right-1.5 h-[calc(100%-12px)] w-1.5 bg-foreground" />
</div>

Pixelated Shadow Pattern

Add depth with pixelated shadows:

{variant !== "outline" && (
  <>
    {/* Top shadow */}
    <div className="absolute top-0 left-0 w-full h-1.5 bg-foreground/20" />
    <div className="absolute top-1.5 left-0 w-3 h-1.5 bg-foreground/20" />

    {/* Bottom shadow */}
    <div className="absolute bottom-0 left-0 w-full h-1.5 bg-foreground/20" />
    <div className="absolute bottom-1.5 right-0 w-3 h-1.5 bg-foreground/20" />
  </>
)}

Icon Button Pattern

Smaller, self-contained pixel borders for icon buttons:

{size === "icon" && (
  <>
    {/* Top/bottom full bars */}
    <div className="absolute top-0 left-0 w-full h-1.5 bg-foreground" />
    <div className="absolute bottom-0 left-0 w-full h-1.5 bg-foreground" />

    {/* Side segments */}
    <div className="absolute top-1 -left-1 w-1.5 h-1/2 bg-foreground" />
    <div className="absolute bottom-1 -left-1 w-1.5 h-1/2 bg-foreground" />
    <div className="absolute top-1 -right-1 w-1.5 h-1/2 bg-foreground" />
    <div className="absolute bottom-1 -right-1 w-1.5 h-1/2 bg-foreground" />
  </>
)}

Dark Mode Considerations

Use CSS custom properties or dark mode variants:

<div className="absolute top-0 left-0 size-1.5 bg-foreground dark:bg-ring" />

Key Principles

  1. Use rounded-none - Remove all border radius from base components
  2. Fixed pixel sizes - Use consistent pixel values (1.5, 3px) for retro feel
  3. Absolute positioning - All border elements are absolute within relative container
  4. Dark mode colors - Use ring or foreground with dark variant for contrast
  5. Conditional rendering - Only show borders for appropriate variants (not ghost, link, icon)

Reference Component

See components/ui/8bit/button.tsx for complete implementation.

When not to use it

  • When a modern, smooth UI aesthetic is desired
  • When components require rounded borders
  • When performance is critical for many absolute-positioned elements

Limitations

  • Requires `rounded-none` on base components to avoid conflicting border radius
  • Relies on fixed pixel sizes (e.g., 1.5px, 3px) for the retro effect
  • All border elements must be absolutely positioned within a relative container

How it compares

This skill provides specific code patterns for creating authentic 8-bit pixel art aesthetics using absolute-positioned divs, offering a distinct retro look compared to standard CSS borders or shadows.

Compared to similar skills

8-bit-pixel-art-patterns side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
8-bit-pixel-art-patterns (this skill)16moNo flagsBeginner
ui-styling129moReviewBeginner
figma224moNo flagsIntermediate
interaction-design155moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

ui-styling

mrgoonie

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.

12132

figma

openai

Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.

2266

interaction-design

wshobson

Design and implement microinteractions, motion design, transitions, and user feedback patterns. Use when adding polish to UI interactions, implementing loading states, or creating delightful user experiences.

1550

web-design-reviewer

github

This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage, then performs fixes at the source code level.

750

visual-design-foundations

wshobson

Apply typography, color theory, spacing systems, and iconography principles to create cohesive visual designs. Use when establishing design tokens, building style guides, or improving visual hierarchy and consistency.

547

design-lab

0xdesign

Conduct design interviews, generate five distinct UI variations in a temporary design lab, collect feedback, and produce implementation plans. Use when the user wants to explore UI design options, redesign existing components, or create new UI with multiple approaches to compare.

735

Search skills

Search the agent skills registry