css-layout

An interactive generator for responsive web layouts using Flexbox or CSS Grid, two CSS systems for arranging elements on a page. It produces previewable layout code for patterns such as cards, sidebars, navigation bars, and dashboards.

In plain words
What is it for?
Use it to create starting layouts for navigation, card grids, dashboards, magazine-style pages, and common multi-column designs.
Why use it?
It reduces the time spent working out layout structure and responsive behavior from scratch.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/andronics/claude-plugin-css-pro/css-layout
Clone the repo
git clone --depth 1 https://github.com/andronics/claude-plugin-css-pro
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,147 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.02147
Opus 5 $0.00006 $0.01073
Sonnet 5 $0.00002 $0.00429
Haiku 4.5 $0.00001 $0.00215

Measured yesterday against content hash c9f98c6b9fb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

css-layout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/css-layout.md · 428 lines

How it starts

The opening of the file, as written. The whole thing — 428 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Interactive Layout Generator

I'll help you create responsive layouts using Flexbox or CSS Grid through an interactive process.

Arguments

/css-layout [layout-type]

layout-type (optional):

  • flexbox - Create Flexbox layout
  • grid - Create CSS Grid layout
  • holy-grail - Classic 3-column layout
  • sidebar - Sidebar + content layout
  • cards - Responsive card grid
  • navbar - Navigation bar layout
  • dashboard - Dashboard grid layout
  • (omit for interactive selection)

Layout Types I Can Create

1. Flexbox Layouts

Navigation Bar
  • Horizontal navigation
  • Logo, menu items, action buttons
  • Responsive mobile menu
Card Row
  • Flexible card container
  • Auto-wrapping cards
  • Equal heights
Centered Content
  • Vertical and horizontal centering
  • Full viewport height
  • Responsive sizing
Holy Grail
  • Header, footer, sidebar, main content
  • Flexible height distribution
  • Responsive stacking

2. CSS Grid Layouts

Responsive Grid
  • Auto-fitting columns
  • No media queries needed
  • Minimum card size
Dashboard Layout
  • Named grid areas
  • Complex arrangements
  • Responsive breakpoints
Magazine Layout
  • Asymmetric grid
  • Spanning cells
  • Feature areas
Masonry-style
  • Pinterest-like layout
  • Variable heights
  • Dense packing

Interactive Process

I'll ask you these questions:

  1. What are you building?

    • Navigation, content grid, page layout, etc.
  2. How many items/sections?

    • Number of columns, rows, or components
  3. Responsive behavior?

    • Mobile-first, breakpoints, stacking order
  4. Spacing requirements?

    • Gap between items, padding, margins
  5. Sizing constraints?

    • Fixed widths, min/max sizes, flexible areas

Example: Card Grid

Me: What kind of layout do you need?

You: I need a responsive card grid that shows 1 column on mobile, 2 on tablet, 3 on desktop.

Me: Here's your layout:

<div class="card-grid">
  <div class="card">Card 1</div>
  <div class="card">Card 2</div>
  <div class="card">Card 3</div>
  <!-- More cards -->
</div>

Read the full file on GitHub · 428 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 428 lines · 12 tokens per session scan A c9f98c6b9fb3

Subscribe to this mod's changes

css-layout is a command published in the GitHub repository andronics/claude-plugin-css-pro (2 stars, last pushed 10mo ago), licensed MIT. It adds 12 tokens to every session and 2,147 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.