KS
Killer-Skills

frontend-style-layout — how to use frontend-style-layout how to use frontend-style-layout, Tailwind CSS styling patterns, frontend-style-layout setup guide, quick-commerce app development, semantic HTML best practices, frontend-style-layout vs Bootstrap, install frontend-style-layout, frontend-style-layout alternative, responsive design with Tailwind v4

v1.0.0
GitHub

About this Skill

Perfect for Fullstack Agents needing advanced frontend styling and layout capabilities with Tailwind CSS. frontend-style-layout is a set of Tailwind CSS styling patterns for building quick-commerce apps with semantic HTML and explicit page structure.

Features

Implements Section Compound Pattern for explicit page layout structure
Utilizes Tailwind v4 styling patterns for responsive design
Supports v3→v4 migration for seamless upgrades
Employs semantic HTML for accessible and maintainable code
Enables flexible spacing and responsive image handling

# Core Topics

p-iknow p-iknow
[1]
[0]
Updated: 2/25/2026

Quality Score

Top 5%
33
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add p-iknow/fullstack-forge/frontend-style-layout

Agent Capability Analysis

The frontend-style-layout MCP Server by p-iknow is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use frontend-style-layout, Tailwind CSS styling patterns, frontend-style-layout setup guide.

Ideal Agent Persona

Perfect for Fullstack Agents needing advanced frontend styling and layout capabilities with Tailwind CSS.

Core Value

Empowers agents to implement responsive and semantic HTML structures using Tailwind v4 styling patterns, covering page structure, spacing, and migration from v3 to v4, all within a Kubernetes-deployed, TypeSpec API-contracted monorepo.

Capabilities Granted for frontend-style-layout MCP Server

Implementing Section Compound Patterns for explicit page layout structure
Migrating existing layouts from Tailwind v3 to v4
Optimizing page responsiveness with Tailwind CSS utilities

! Prerequisites & Limits

  • Requires knowledge of Tailwind CSS and semantic HTML
  • Specific to Tailwind v4 styling patterns
  • Intended for use within a Kubernetes deployment and TypeSpec API contracts
Project
SKILL.md
4.2 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Frontend Style & Layout Patterns

Tailwind v4 styling patterns for this project. Covers page structure, spacing, responsive images, and v3→v4 migration.

1. Section Compound Pattern

Express page layout structure explicitly using semantic HTML + Tailwind classes at the usage site.

tsx
1// ✅ Layout structure visible at a glance 2const OrderListPage = () => ( 3 <main className="min-h-screen flex flex-col"> 4 <header className="sticky top-0 z-10 bg-white border-b border-gray-200"> 5 <OrderListHeader /> 6 </header> 7 8 <section className="flex-1 flex flex-col gap-4 px-4 py-6"> 9 <OrderFilterBar /> 10 <OrderList /> 11 </section> 12 13 <footer className="sticky bottom-0 bg-white border-t border-gray-200 px-4 py-3"> 14 <OrderListFooterActions /> 15 </footer> 16 </main> 17)

What to Expose vs. Hide

Expose at usage siteHide in component
Layout structure (flex, grid, position)Reusable styles (button variants)
Page-specific spacing and sizingInternal implementation details
Semantic HTML structureComplexity outside current concern
  • Reusable styles (buttons, cards) → abstract into components.
  • Page layout → write directly at the usage site in screens/ pages.

2. Spacing Selection Guide

Three Methods

flex gap — Default for Flexbox containers:

tsx
1<div className="flex flex-col gap-4"> 2 <OrderCard /> 3 <OrderCard /> 4</div>

space-y / space-x — Sibling elements with consistent spacing:

tsx
1<ul className="space-y-3"> 2 <li> 3 <ReviewItem /> 4 </li> 5 <li> 6 <ReviewItem /> 7 </li> 8</ul>

Explicit spacer div — Single specific gap (e.g., from design spec):

tsx
1<div> 2 <OrderHeader /> 3 <div className="h-8" /> {/* 32px explicit gap */} 4 <OrderContent /> 5</div>

Decision Flow

Need spacing?
├── Inside Flexbox container?  → flex gap
├── Repeating sibling spacing? → space-y / space-x
├── Single explicit gap (from design spec)? → spacer div
└── Complex conditional spacing? → individual margin/padding

Notes

  • Use gap inside flex containers to avoid margin collapsing.

3. Responsive Images — CLS Prevention

Use aspect-ratio + relative container to maintain original ratio responsively.

tsx
1// ✅ Basic responsive image 2const Illustration = () => ( 3 <div className="flex justify-center"> 4 <div className="relative w-full aspect-[327/200]"> 5 <img 6 src="/illustrations/order-complete.png" 7 alt="Order complete" 8 className="object-contain w-full h-full" 9 loading="eager" 10 /> 11 </div> 12 </div> 13) 14 15// ✅ With max-width constraint 16const Thumbnail = ({ src, alt }: { src: string; alt: string }) => ( 17 <div className="relative w-full max-w-sm aspect-square"> 18 <img src={src} alt={alt} className="object-cover w-full h-full rounded-lg" loading="lazy" /> 19 </div> 20)

Key Properties

PropertyPurpose
relativePositioning anchor for children
aspect-[W/H]Maintain ratio (prevents CLS)
w-fullFill parent width
object-contain / object-coverImage fit mode

Loading Strategy

  • loading="eager": Above-the-fold images (LCP optimization)
  • loading="lazy": Below-the-fold images (initial load optimization)

4. Tailwind v4 Class Changes

This project uses Tailwind v4. Do NOT use v3 syntax.

Import Syntax

css
1/* ❌ v3 (forbidden) */ 2@tailwind base; 3@tailwind components; 4@tailwind utilities; 5 6/* ✅ v4 */ 7@import 'tailwindcss';

Class Migration Table

v3 (forbidden)v4 (use this)
shadow-smshadow-xs
shadowshadow-sm
ringring-3
blurblur-sm
roundedrounded-sm

Reference: Tailwind v4 Upgrade Guide

Related Skills

Looking for an alternative to frontend-style-layout or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication