Reorganize Scss folder structure
See original GitHub issueOur current scss
file and folder architecture is a bit unclear. We have a _variables.scss
file on the same level as the components. Thereβs also a _mixins.scss
file which includes the mixins in another folder. There might be some room for reorganisation.
We could come up with our own folder structure but it might be interesting to have a look at existing solutions. Maybe ITCSS could help us out.
ITCSS has been discussed already in https://github.com/twbs/bootstrap/issues/18233 but this was also about splitting our variables file, I wouldnβt do that for now. Just reorganising the files into folders would be a great start.
Feel free to spread your thoughts on this here
/CC @twbs/css-review
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:10 (9 by maintainers)
Top Results From Across the Web
2 Smartest Ways to Structure Sass - Webdesigner Depot
All you need to do is organize the partials in 7 different folders, and one single file (app.sass) should sit at the root...
Read more >How To Organize And Structure Your SASS Code - LinkedIn
Our folders would typically contain the following like abstracts contains tools, helpers, variables, mixins etc. Base contains boilerplate codeΒ ...
Read more >Practical way to organize your Sass files | by Bruno Leite
Key takeaways. We can view the website by it's components and sections like navigation bar, footer, headerβ¦ 7β1 architecture (7 folders- 1Β ...
Read more >How I organize Sass projects - Prototypr
The first thing I do whenever I start a new project is to first create the folders where the code will live, then...
Read more >Ask DN: How do you structure your SASS files in a large project?
I'm working with about 10000 lines of (desktop and mobile web) SCSS/CSS, which I'm aiming to minify and restructure. How do you structure...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I guess a folder structure like this would be the result in the end:
In each folder some files could be grouped into folders if needed (like the form stuff).
@mdo @MartijnCuppens
May I propose and a split on the variables.scss?
It has being too big⦠Or Maybe One main File with the main variables and a second which will have all the inherited variables