Writing modular CSS (Part 3) — CSS file structure
Read OriginalThis article discusses strategies for organizing CSS (and JavaScript) files in a modular project. It compares the traditional method of separating files by type (CSS/JS folders) with a component-based structure where styles and scripts are grouped by feature. The author shares their personal preference for the traditional method and details their specific project folder setup within a `src/` directory, including subfolders for libraries, helpers, variables, base styles, layouts, objects, and components.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser