{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-naming-conventions-3b709ec4cc8c","title":"Ensure Consistent CSS Naming Conventions","summary":"Audit and enforce consistent CSS class naming conventions, such as BEM, to improve readability and reduce style conflicts in CSS files.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-naming-conventions-3b709ec4cc8c","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-naming-conventions-3b709ec4cc8c","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-naming-conventions-3b709ec4cc8c.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-naming-conventions-3b709ec4cc8c\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before reviewing stylesheets, ensure that the project uses a defined naming convention like BEM. Prepare by checking the rendered layout across breakpoints and interaction states to identify ambiguous or inconsistent class names.","instructions":"---\nname: naming-conventions\ndescription: \"Use when reviewing stylesheets, component styles, and responsive behavior related to Use consistent CSS naming conventions. Check the rendered layout across breakpoints and interaction states before proposing a fix.\"\nmetadata:\n  category: css\n  priority: medium\n  difficulty: beginner\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/css\/naming-conventions\n---\n\n# Use consistent CSS naming conventions\n\nWithout a naming convention, class names become a guessing game \u2014 does .active mean the nav item is active, the button is pressed, or a form field has focus? With BEM or a similar methodology, .button--active is unambiguous. This reduces the time spent searching for existing styles and prevents accidental style conflicts.\n\n## Quick Reference\n\n- BEM (Block__Element--Modifier) is the most widely adopted naming convention\n- Consistent naming lets you understand a class's purpose without reading its styles\n- Namespace utility classes and JS hooks separately from component styles\n- Use kebab-case for class names (not camelCase or snake_case)\n\n## Check\n\nAudit the class names in this CSS file. Are they consistently named? Do they follow a clear convention? Are there any ambiguous names that could conflict?\n\n## Fix\n\nRename classes to follow BEM methodology: Block, Block__Element, Block--Modifier pattern.\n\n## Explain\n\nExplain BEM naming convention, why naming conventions matter, and how to apply BEM to a real component.\n\n## Code Review\n\nReview stylesheets, component styles, and responsive states related to Use consistent CSS naming conventions. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/css\/naming-conventions\n","use_cases":["Reviewing stylesheets for consistent class naming","Auditing component styles for naming clarity","Fixing ambiguous class names in responsive layouts"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/naming-conventions\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T17:08:53.000000Z","updated_at":"2026-11-23T04:55:39.000000Z","seo_title":"Ensure Consistent CSS Naming Conventions","seo_description":"Improve CSS readability and reduce conflicts by enforcing consistent naming conventions like BEM.","seo_keywords":["CSS naming conventions","BEM methodology","Consistent class names","CSS readability","Avoid style conflicts"]}}