For those of y’all that don’t know what bootstrap is, bootstrap is one of the most amazing development that have come into front-end web development. It’s a responsive framework that helps to reduce development time by providing ready-to-use UI/UX components that can be easily imported into any website/application UI/UX design, while focusing more on content.
One thing to note about using bootstrap; is that websites/applications using the framework look somewhat similar (at least when using the default colour configurations and settings). It would take some style overriding (writing a lot of CSS) to actually create a truly customize version of the interface.
When you see the default colour scheme of the above site, no doubt it can easily be guessed that the site was designed using the bootstrap framework.
To save you the sweat of writing too much !important CSS code, in this post I’d show how you can download and use different bootstrap colour themes/templates to achieve that.
In this post I’m assuming you have already set up a website using bootstrap that you want to change the theme.
I’ve set up one basic website for the purpose of this tutorial and it looks like this.
If you are familiar with bootstrap you’d notice the different default colours available: like blue buttons, alerts, navbar, jumbotron, backgrounds, etc.
Now let get another colour scheme.
Head to Bootswatch.com and select the colour scheme of your choice.
I would be using the Cyborg theme for this post. After selecting the colour scheme you want, then you can download the CSS (bootrstrap.min.css) file to your computer.
Then move it to your project default bootstrap file location and replace the bootstrap.min.css file (i.e. you can delete the bootstrap original file).
NB: Ensure that it is the file name pointed to by the link reference in your project HTML files .
Then reload the page. The new colour scheme should be loaded now.
Download the Basic website code HERE.
- HOW TO INSTALL KDENLIVE VIDEO EDITOR IN LINUX [VIDEO] - September 14, 2020
- Mozilla Launches a Virtual Private Network (VPN) Service - July 31, 2020
- The Second Cohort of #BUILDFORSDG Challenge 2020 is out! - July 24, 2020