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

embedded-or-inline-css

하는 일

이 스킬은 웹 페이지의 HTML 안에 직접 쓰인 스타일을 확인합니다. 더 깔끔하고 관리하기 쉬운 코드를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓페이지의 HTML 곳곳에 style 속성이 흩어져 있을 때.
  • ✓템플릿에 큰 스타일 블록이 있어서 고치기 어려울 때.
  • ✓브라우저가 여러 페이지에서 스타일을 재사용하기를 원할 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/embedded-or-inline-css/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/embedded-or-inline-css/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분.

작동 방식

에이전트가 인라인과 내장 스타일을 찾아 외부 파일로 옮기도록 제안합니다. 첫 화면에 필요한 핵심 스타일과 동적 값만 인라인으로 남깁니다.

기술 내용 (원본 SKILL.md)

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

Avoid embedded and inline CSS

Inline CSS cannot be cached separately, increases HTML payload, breaks separation of concerns, and is harder to maintain in large codebases.

Quick Reference

  • Move inline styles to external CSS files or CSS-in-JS
  • Exception: critical CSS should be inlined for performance
  • Exception: dynamic values (CSS custom properties) can be inline
  • Inline CSS breaks caching and increases HTML size

Check

Verify that inline CSS and embedded styles are avoided except for valid use cases like critical CSS, dynamic styles, or performance optimization.

Fix

Move inline and embedded CSS to external stylesheets, keeping only critical above-the-fold CSS inline for performance optimization.

Explain

Explain why external CSS is preferred for maintainability, caching, and separation of concerns, with exceptions for critical CSS and dynamic styles.

Code Review

Review stylesheets, component styles, and responsive states related to Avoid embedded and inline CSS. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/css/embedded-or-inline-css

자주 묻는 질문

외부 스타일시트가 왜 더 좋은가요?

브라우저가 따로 캐시할 수 있고, HTML이 더 작아지며 관리하기 쉬워진다고 스킬은 설명합니다.

인라인 CSS가 허용되는 경우는 언제인가요?

첫 화면의 핵심 스타일과, 사용자 지정 속성처럼 동적인 값에는 허용된다고 스킬은 설명합니다.

프레임워크도 다루나요?

프레임워크 프로젝트에서는 CSS-in-JS를 대안으로 언급합니다.

상세 정보

작성자의 원본 설명

Use when reviewing stylesheets, component styles, and responsive behavior related to Avoid embedded and inline CSS. Check the rendered layout across breakpoints and interaction states before proposing a fix.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2830
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬