hubeiqiao/skills · Archived

apple-bento-grid

Create Apple-inspired bento grid presentation cards for showcasing project stats, timelines, and achievements. Use when the user asks to build stat cards, bento grids, project summary cards, dashboard cards, or Apple-style presentation layouts. Generates self-contained HTML files with zero-gap grids, stat cards, pill tags, bar charts, and dark quote cards — optimized for screenshot export.

First seen Mar 29, 2026

Installation

$ npx skills add hubeiqiao/skills --skill apple-bento-grid

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from hubeiqiao/skills · top by installs.

npx skills add hubeiqiao/skills

Browse all from hubeiqiao/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,314 B
  • docs SUMMARY.md 418 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Apple Bento Grid

Overview

Generate self-contained HTML files that render Apple-inspired bento card grids. Each output is a single HTML file with inline CSS — no dependencies except Google Fonts. Cards fill a tight CSS grid with zero visible row gaps, ready for Playwright screenshot export at 2x resolution.

Workflow

  1. Read the design system: Read [design-system.md](design-system.md) completely before generating any bento grid. It contains all design tokens, card components, layout templates, and the critical zero-gap grid technique.
  2. Gather the user's content — what stats, milestones, categories, and quotes to showcase
  3. Choose a layout — pick from the 3 layout templates based on card count and orientation
  4. Compose cards — select card types and fill with the user's content
  5. Generate the HTML — produce a single self-contained HTML file
  6. Screenshot (optional) — use the Playwright script to capture PNGs at 2x

Output Format

Always produce a single self-contained HTML file with:

  • <!DOCTYPE html> + <html lang="en">
  • Google Fonts <link> tags in <head>
  • All CSS in a single <style> block
  • All content in <body> — no JavaScript needed

Card Types Available

Card Use For Key Feature
Hero Taglines, headlines Gradient top-border, spans 2 rows
Stat Numbers + labels Color-coded accent per category
Category Grouped items (phases, teams, quarters) Color label + subtitle + pill tags
Bar Chart Growth / comparison over time Gradient bars, header badge
Badge Tool attribution, featured callout Icon pill + stat number
Quote Mission statement, testimonial Dark bg, white text, green <em>
Highlight Hero number (3x, 10x, 100%) Full-gradient background

Layout Templates

Template Columns Width Aspect Ratio Best For
A: Horizontal 4-col 1200px 52/25 12-16 cards, slides
B: Horizontal 3-col 1100px 52/22 8-10 cards, focused
C: Vertical 2-col 600px none (content) 8-14 cards, social

Critical: Zero-Gap Grid Rules

These 5 rules are mandatory for Apple-like appearance. See design-system.md Section 2 for details.

  1. NEVER set align-items: start — default stretch fills cells
  2. Use aspect-ratio on horizontal layouts to lock container shape
  3. Rows: 1fr for horizontal, auto for vertical
  4. Gap: 6px (not 8px)
  5. Every grid cell must be occupied — no empty cells

Screenshot Export

Use the Playwright script at scripts/screenshot.mjs to capture pixel-perfect PNGs.

cd scripts
npm install
npx playwright install chromium
node screenshot.mjs

Edit the pages array in screenshot.mjs to point to your HTML files. Each entry needs: file (HTML path), output (PNG path), viewportWidth (match grid width).

Customization Checklist

  1. Gather content — stats, categories, milestones, quotes
  2. Choose layout — 4-col, 3-col, or 2-col
  3. Name grid areas — readable names matching content
  4. Select card types — Hero, Stat, Category, Chart, Badge, Quote, Highlight
  5. Assign accent colors — one per category, max 3-4 accents
  6. Set dimensions — viewport width matches grid width
  7. Lock aspect ratio — horizontal only; omit for vertical
  8. Verify zero-gap — no align-items: start, all cells occupied, gap 6px
  9. Scale for orientation — vertical gets smaller fonts, padding, radius
  10. Screenshot — Playwright at 2x, viewport matches grid width

Reference Files

  • [design-system.md](design-system.md) — Complete design tokens, card CSS/HTML, layout templates, and skeleton
  • [scripts/screenshot.mjs](scripts/screenshot.mjs) — Playwright screenshot capture script