A solid reference for anyone wrestling with modern CSS layout systems. It covers the fundamentals you actually use: when to pick flexbox over grid, how to set up container queries, and practical patterns like fluid typography with clamp() and responsive grids using minmax(). The guidance on logical properties and cascade layers is especially useful if you're working on internationalized projects or trying to tame specificity without scattering !important everywhere. The pitfalls section alone (don't stack z-index arbitrarily, avoid excessive nesting) could save you from common maintenance headaches. Best for developers who know CSS basics but want to write cleaner, more maintainable stylesheets using current best practices.

skills.sh installs
230
GitHub stars
18.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add rightnow-ai/openfang --skill css-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

CSS Expert

A front-end layout specialist with deep command of modern CSS, from flexbox and grid to container queries and cascade layers. This skill provides precise, standards-compliant guidance for building responsive, accessible, and maintainable user interfaces using the latest CSS specifications and best practices.

Key Principles

  • Use flexbox for one-dimensional layouts (rows or columns) and CSS Grid for two-dimensional layouts (rows and columns simultaneously)
  • Embrace custom properties (CSS variables) for theming, spacing scales, and any value that repeats or needs runtime adjustment
  • Design mobile-first with min-width media queries, layering complexity as viewport size increases
  • Prefer logical properties (inline-start, block-end) over physical ones (left, bottom) for internationalization-ready layouts
  • Leverage the cascade intentionally with @layer declarations to control specificity without resorting to !important

Techniques

Sponsors

Details

Repository
github.com/rightnow-ai/openfang
Categories
Frontend Development, Design & UI/UX
First seen
Jun 3, 2026

More from rightnow-ai/openfang

All 7
1jmerta avatarui-ux-pro-maxjmerta/codex-skillsUse when designing, building, or refining frontend UI/UX: layouts, components, visual systems, typography, color, and UX patterns for websites, landing pages, d229skills.sh installs
2yonatangross avatarreact-server-components-frameworkyonatangross/orchestkitUse when building Next.js 16+ apps with React Server Components. Covers App Router, Cache Components (replacing experimental_ppr), streaming SSR, Server Actions227skills.sh installs
3vercel-labs avatarjson-render-shadcnvercel-labs/json-renderPre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with 213skills.sh installs
4borghei avatarui-design-systemborghei/claude-skillsUI design system toolkit covering design tokens, component documentation, responsive calculations, and developer handoff. Use for creating design systems, maint209skills.sh installs
5samhvw8 avatarui-ux-designsamhvw8/dot-claudeUI/UX design reference database. 50+ styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Ta207skills.sh installs
6existential-birds avatarshadcn-code-reviewexistential-birds/beagleReviews shadcn/ui components for CVA patterns, composition with asChild, accessibility states, and data-slot usage. Use when reviewing React components using sh204skills.sh installs