+ 2

Vanilla Css Or Frameworks?

Should I use vanilla css in making a website or should I use a css framework?

29th Mar 2021, 5:27 AM
Francis Mistica
Francis Mistica - avatar
3 ответов
0
Francis wrote, "So we can make a beautiful website if we mix vanilla or custom css with a css framework?" Response: Yes.
29th Mar 2021, 8:00 AM
Josh Greig
Josh Greig - avatar
+ 7
A mix often works best. Twitter Bootstrap's grid system is great for responsive website layouts. It is better to reuse their classes than create your own because of the general benefits of reuse. It is a thoroughly tested solution which means it is robust and reliable without you needing to invest the efforts they did to test it. Bootstrap also makes your CSS and HTML a little more accessible to a new developer, if anyone else ends up maintaining a website you create. In other words, another developer will immediately recognize Bootstrap, Bootstrap's grid system and its most popular classes better than recognize your custom ones because Bootstrap was used in many other websites. For the many things you want to look unique, write custom CSS. If you don't write some CSS on your own, your site is likely to look overly generic. Translating good design ideas from a few different sites often leads to a reasonably unique design and considerable custom CSS is needed to achieve it. Bootstrap can make some of this uniqueness easier but only a little. For example, you can edit some of the base colours in Bootstrap's SASS source and run a tool to regenerate the CSS. Some explanation is at: https://www.youtube.com/watch?v=6Ovw43Dkp44 This isn't enough to make a site look very original on its own but it can save you from overriding lots of colours with stronger CSS selectors in your more vanilla CSS files. If your custom CSS gets long and you want to organize it better, consider using SASS. SASS isn't a framework. It is a CSS-like language that translates to CSS. SASS is to CSS what c++ was originally to c. It requires an extra tool, can be harder to troubleshoot but SASS is easier to reuse and more expressive with less code than CSS.
29th Mar 2021, 5:54 AM
Josh Greig
Josh Greig - avatar
+ 1
So we can make a beautiful website if we mix vanilla or custom css with a css framework?
29th Mar 2021, 6:21 AM
Francis Mistica
Francis Mistica - avatar