본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)18k · #10671

css-expert

하는 일

이 스킬은 반응형 레이아웃을 위한 최신 CSS 지침을 제공하며, flexbox, grid, 사용자 정의 속성, 컨테이너 쿼리를 다룹니다. 웹 페이지를 만드는 프런트엔드 개발자와 디자이너를 위한 스킬입니다.

사용하는 경우

  • ✓휴대폰에서 데스크톱까지 맞춰 바뀌는 페이지 레이아웃이 필요할 때.
  • ✓한 섹션에 flexbox를 쓸지 grid를 쓸지 고르고 싶을 때.
  • ✓색상과 간격을 디자인 토큰으로 저장해 재사용하고 싶을 때.

스킬 링크

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/css-expert/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/css-expert/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제품 카드를 반응형 격자로 배치해 주세요. 데스크톱에서는 세 열, 휴대폰에서는 한 열로 보이게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 한 줄이나 한 열에는 flexbox, 2차원 레이아웃에는 grid, 테마에는 사용자 정의 속성, 모바일 우선 미디어 쿼리를 권장합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

  • Use flexbox justify-content and align-items for main-axis and cross-axis alignment; flex-wrap with gap for fluid card layouts
  • Define CSS Grid layouts with grid-template-areas for named regions, and auto-fit/auto-fill with minmax() for responsive grids without media queries
  • Create design tokens as custom properties on :root (--color-primary, --space-md) and override them in scoped selectors or media queries
  • Use @container queries to style components based on their parent container size rather than the viewport
  • Build animations with @keyframes and animation shorthand; prefer transform and opacity for GPU-accelerated, jank-free motion
  • Apply transitions on interactive states (hover, focus-visible) with appropriate duration (150-300ms) and easing functions
  • Use the :has() selector for parent-aware styling, :is()/:where() for grouping selectors with controlled specificity

Common Patterns

  • Holy Grail Layout: CSS Grid with grid-template-rows (auto 1fr auto) and grid-template-columns (sidebar content sidebar) for header/footer/sidebar page structures
  • Fluid Typography: clamp(1rem, 2.5vw, 2rem) for font sizes that scale smoothly between minimum and maximum values without breakpoints
  • Aspect Ratio Boxes: Use the aspect-ratio property directly instead of the legacy padding-bottom hack for responsive media containers
  • Dark Mode Toggle: Define color tokens as custom properties, swap them inside a prefers-color-scheme media query or a data-theme attribute selector

Pitfalls to Avoid

  • Do not use fixed pixel widths for layout containers; prefer percentage, fr units, or min/max constraints for fluid responsiveness
  • Do not stack z-index values arbitrarily; establish a z-index scale in custom properties and document each layer's purpose
  • Do not rely on vendor prefixes without checking current browser support; tools like autoprefixer handle this systematically
  • Do not nest selectors excessively in preprocessors, as the generated CSS becomes highly specific and difficult to maintain or override
자주 묻는 질문

언제 flexbox 대신 grid를 쓰나요?

행과 열이 함께 필요한 레이아웃에는 grid를, 한 줄로 늘어선 항목에는 flexbox를 씁니다.

디자인 토큰이란 무엇인가요?

주요 색상이나 간격 크기처럼 이름이 붙은 값으로, CSS 사용자 정의 속성으로 저장하고 페이지 전체에서 재사용합니다.

!important 재정의를 피하나요?

네. 스킬은 !important에 의존하는 대신 캐스케이드 레이어로 명시도를 관리하라고 제안합니다.

상세 정보

작성자의 원본 설명

CSS expert for flexbox, grid, animations, responsive design, and modern layout techniques

repo: RightNow-AI/openfang

인기도

GitHub 스타
18k
순위
#10671
라이선스
Apache-2.0
업데이트
2026. 7. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬