<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Desi Programmer on Medium]]></title>
        <description><![CDATA[Stories by Desi Programmer on Medium]]></description>
        <link>https://medium.com/@desiprogrammer?source=rss-dfa443bd6be2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mfGg5s9WtuJhqTMuHc0wDg.png</url>
            <title>Stories by Desi Programmer on Medium</title>
            <link>https://medium.com/@desiprogrammer?source=rss-dfa443bd6be2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 17 May 2026 22:22:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@desiprogrammer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Using Bootstrap 5 with React JS ( CSS Style )]]></title>
            <link>https://desiprogrammer.medium.com/using-bootstrap-5-with-react-js-css-style-ed846f711d2f?source=rss-dfa443bd6be2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed846f711d2f</guid>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react-bootstrap]]></category>
            <category><![CDATA[bootstrap-5]]></category>
            <dc:creator><![CDATA[Desi Programmer]]></dc:creator>
            <pubDate>Mon, 30 Aug 2021 20:04:39 GMT</pubDate>
            <atom:updated>2021-09-04T23:55:37.171Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUflpR_E_CoLr1f2WqyCxQ.png" /></figure><p>A blog about using the latest Bootstrap 5 with react JS in CSS style. I am not going to use react-bootstrap as it is still in alpha ( on the day of writing this ).</p><h3>Create a project</h3><p>npx create-react-app bootstrap5-react</p><h3>Installing bootstrap</h3><p>npm i bootstrap</p><h3>Installing node sass</h3><p>Since node-sass is now deprecated, I will be using sass. It solves a common error.</p><p>npm i sass</p><p>Now in our src folder, we will create a main.scss file and add the following overrite to it.</p><figure><img alt="Carbon Syntax Image" src="https://cdn-images-1.medium.com/max/1024/1*SU_4y_Hy2zONz5mEgMV3Mw.png" /></figure><p>Now, import this scss on top in your index.js file.</p><p>import &#39;./main.scss&#39;;</p><p>I will simply add the following code to show that our bootstrap setup along with variable overite is working correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1GPho9tEC0S4cinWCkRpDg.png" /></figure><p>Run this using npm start and you will see the output.</p><h3>Visit For More.</h3><p><a href="https://desiprogrammer.com/blogs">Desi Programmer - Coding Tutorials And Blogs For The Community</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed846f711d2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Node, Sass to customize Bootstrap]]></title>
            <link>https://desiprogrammer.medium.com/using-node-sass-to-customize-bootstrap-f489d9be67d4?source=rss-dfa443bd6be2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f489d9be67d4</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[bootstrap-5]]></category>
            <category><![CDATA[scss]]></category>
            <dc:creator><![CDATA[Desi Programmer]]></dc:creator>
            <pubDate>Mon, 14 Jun 2021 10:30:20 GMT</pubDate>
            <atom:updated>2021-06-14T10:30:20.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I5q2fXw_r_EFx8zW.png" /></figure><h3>Setting Up Our Basic project</h3><p>We will first setup a basic express app that sends a Html file on request. if you don’t know that, you can simply code the code below.</p><pre>mkdir node-sass-bootstrap <br>cd node-sass-bootstrap <br>npm init --yes <br>npm i express bootstrap</pre><p>Create an <strong>index.js</strong> file and add the following content there.</p><pre>const express = require(&#39;express&#39;); <br>const path = require(&#39;path&#39;); </pre><pre>const app = express(); </pre><pre>app.get(&#39;/&#39;, (req, res) =&gt; {<br>     res.sendFile(path.resolve(&#39;./views/index.html&#39;));<br> }); </pre><pre>const PORT = 3001; </pre><pre>app.listen(PORT, () =&gt; console.log(`Started at PORT ${PORT}`));</pre><p>Also create a directory named <strong>views</strong> and add an <strong>index.html</strong> file there, with whatever content you want.</p><h3>Setting Up Sass</h3><p>Next we need to install node-sass that will compile our scss files.</p><p><strong>For Windows</strong></p><pre>npm i -g node-sass<br># use this if there shows an error saying script cannot be loaded </pre><pre>Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted</pre><p><strong>For Linux</strong></p><pre>sudo npm install --unsafe-perm node-sass</pre><h3>Using Sass</h3><p>Then we will create a directory named <strong>sass</strong> and a file in it named <strong>main.sass</strong>. If you use any other name, remember to change in the commands.</p><p>Add the following content in the sass file to customize primary color and font. For more customization visit <a href="https://getbootstrap.com/docs/5.0/customize/overview/">Bootstrap</a></p><pre>$primary : #eb4d4b; <br>$danger : #535c68; </pre><pre>@import url(&#39;https://fonts.googleapis.com/css2?family=Do+Hyeon&amp;display=swap&#39;); </pre><pre>$font-family-base : &#39;Do Hyeon&#39;, sans-serif; </pre><pre>@import &#39;../node_modules/bootstrap/scss/bootstrap.scss&#39;;</pre><p>Now whenever you want to compile you can use node-sass, I am adding that as a command for simpilicity.</p><pre># to compile <br>node-sass ./sass/main.scss -o ./static/css/ </pre><pre># to watch </pre><pre>node-sass ./sass/main.scss -wo ./static/css/</pre><p><strong>NOTE :</strong> The <em>-wo</em> won’t compile it on the first run, only after the changes.</p><p><em>Originally published at </em><a href="https://desiprogrammer.com/blogs/customize-and-overrite-bootstrap-using-node-sass"><em>https://desiprogrammer.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f489d9be67d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>