<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rishi Verma</title>
    <description>The latest articles on DEV Community by Rishi Verma (@thecoderishi).</description>
    <link>https://dev.to/thecoderishi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F531912%2Fb03d6f32-4b2f-4e96-85f5-49583ed39652.png</url>
      <title>DEV Community: Rishi Verma</title>
      <link>https://dev.to/thecoderishi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thecoderishi"/>
    <language>en</language>
    <item>
      <title>Roadmap To Learn Data Structures and Algorithms</title>
      <dc:creator>Rishi Verma</dc:creator>
      <pubDate>Sun, 27 Jun 2021 08:20:58 +0000</pubDate>
      <link>https://dev.to/thecoderishi/roadmap-to-learn-data-structures-and-algorithms-4mce</link>
      <guid>https://dev.to/thecoderishi/roadmap-to-learn-data-structures-and-algorithms-4mce</guid>
      <description>&lt;p&gt;&lt;a href="https://www.youtube.com/c/TheCodeSkool"&gt;Credit&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Arrays
&lt;/h2&gt;

&lt;h3&gt;
  
  
  -Bare Minimum
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.geeksforgeeks.org/top-50-array-coding-problems-for-interviews/"&gt;https://www.geeksforgeeks.org/top-50-array-coding-problems-for-interviews/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bonus
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.interviewbit.com/courses/programming/topics/arrays/"&gt;https://www.interviewbit.com/courses/programming/topics/arrays/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://leetcode.com/tag/array/"&gt;https://leetcode.com/tag/array/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Strings
&lt;/h2&gt;

&lt;h3&gt;
  
  
  -Bare Minimum
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.interviewbit.com/courses/programming/topics/strings/"&gt;https://www.interviewbit.com/courses/programming/topics/strings/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bonus
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://leetcode.com/tag/string/"&gt;https://leetcode.com/tag/string/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://www.hackerrank.com/domains/algorithms?filters%5Bstatus%5D%5B%5D=unsolved%5Cu0026filters%5Bsubdomains%5D%5B%5D=strings%5Cu0026badge_type=problem-solving"&gt;https://www.hackerrank.com/domains/algorithms?filters%5Bstatus%5D%5B%5D=unsolved\u0026filters%5Bsubdomains%5D%5B%5D=strings\u0026badge_type=problem-solving&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Linked Lists
&lt;/h2&gt;

&lt;h3&gt;
  
  
  -Bare Minimum
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.interviewbit.com/courses/programming/topics/linked-lists/"&gt;https://www.interviewbit.com/courses/programming/topics/linked-lists/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bonus
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://leetcode.com/tag/linked-list/"&gt;https://leetcode.com/tag/linked-list/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://www.geeksforgeeks.org/top-20-linked-list-interview-question/"&gt;https://www.geeksforgeeks.org/top-20-linked-list-interview-question/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Stacks and Queues
&lt;/h2&gt;

&lt;h3&gt;
  
  
  -Theory:
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.geeksforgeeks.org/stack-data-structure-introduction-program/"&gt;https://www.geeksforgeeks.org/stack-data-structure-introduction-program/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://www.geeksforgeeks.org/queue-set-1introduction-and-array-implementation/"&gt;https://www.geeksforgeeks.org/queue-set-1introduction-and-array-implementation/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bare Minimum
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.interviewbit.com/courses/programming/topics/stacks-and-queues/"&gt;https://www.interviewbit.com/courses/programming/topics/stacks-and-queues/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bonus
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://leetcode.com/tag/stack/"&gt;https://leetcode.com/tag/stack/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://leetcode.com/tag/queue/"&gt;https://leetcode.com/tag/queue/&lt;/a&gt;&lt;br&gt;
c. &lt;a href="https://www.geeksforgeeks.org/queue-data-structure/"&gt;https://www.geeksforgeeks.org/queue-data-structure/&lt;/a&gt;&lt;br&gt;
d. &lt;a href="https://www.geeksforgeeks.org/stack-data-structure0"&gt;https://www.geeksforgeeks.org/stack-data-structure0&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Tree-based data structures:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  -Theory:
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.geeksforgeeks.org/binary-tree-data-structure/"&gt;https://www.geeksforgeeks.org/binary-tree-data-structure/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://www.geeksforgeeks.org/binary-search-tree-data-structure/"&gt;https://www.geeksforgeeks.org/binary-search-tree-data-structure/&lt;/a&gt;&lt;br&gt;
c. &lt;a href="https://www.geeksforgeeks.org/trie-insert-and-search/"&gt;https://www.geeksforgeeks.org/trie-insert-and-search/&lt;/a&gt;&lt;br&gt;
d. &lt;a href="https://www.geeksforgeeks.org/heap-data-structure/"&gt;https://www.geeksforgeeks.org/heap-data-structure/&lt;/a&gt;&lt;br&gt;
e. &lt;a href="https://www.geeksforgeeks.org/hashing-data-structure/"&gt;https://www.geeksforgeeks.org/hashing-data-structure/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bare minimum:
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.interviewbit.com/courses/programming/topics/tree-data-structure/"&gt;https://www.interviewbit.com/courses/programming/topics/tree-data-structure/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://www.interviewbit.com/courses/programming/topics/heaps-and-maps/"&gt;https://www.interviewbit.com/courses/programming/topics/heaps-and-maps/&lt;/a&gt;&lt;br&gt;
c. &lt;a href="https://www.interviewbit.com/courses/programming/topics/hashing/"&gt;https://www.interviewbit.com/courses/programming/topics/hashing/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bonus
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://leetcode.com/tag/tree/"&gt;https://leetcode.com/tag/tree/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://leetcode.com/tag/heap/"&gt;https://leetcode.com/tag/heap/&lt;/a&gt;&lt;br&gt;
c. &lt;a href="https://leetcode.com/tag/trie/"&gt;https://leetcode.com/tag/trie/&lt;/a&gt;&lt;br&gt;
d. &lt;a href="https://leetcode.com/tag/hash-table/"&gt;https://leetcode.com/tag/hash-table/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Graphs:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  -Theory:
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.geeksforgeeks.org/graph-and-its-representations/"&gt;https://www.geeksforgeeks.org/graph-and-its-representations/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Standard Algos:
&lt;/h3&gt;

&lt;p&gt;a. BFS - &lt;a href="https://www.geeksforgeeks.org/breadth-first-search-or-bfs-for-a-graph/"&gt;https://www.geeksforgeeks.org/breadth-first-search-or-bfs-for-a-graph/&lt;/a&gt;&lt;br&gt;
b. DFS - &lt;a href="https://www.geeksforgeeks.org/depth-first-search-or-dfs-for-a-graph/"&gt;https://www.geeksforgeeks.org/depth-first-search-or-dfs-for-a-graph/&lt;/a&gt;&lt;br&gt;
c. Dijkstra - &lt;a href="https://www.geeksforgeeks.org/dijkstras-shortest-path-algorithm-greedy-algo-7/"&gt;https://www.geeksforgeeks.org/dijkstras-shortest-path-algorithm-greedy-algo-7/&lt;/a&gt;&lt;br&gt;
d. Prim's - &lt;a href="https://www.geeksforgeeks.org/prims-minimum-spanning-tree-mst-greedy-algo-5/"&gt;https://www.geeksforgeeks.org/prims-minimum-spanning-tree-mst-greedy-algo-5/&lt;/a&gt;&lt;br&gt;
e. Kruskal - &lt;a href="https://www.geeksforgeeks.org/kruskals-minimum-spanning-tree-algorithm-greedy-algo-2/"&gt;https://www.geeksforgeeks.org/kruskals-minimum-spanning-tree-algorithm-greedy-algo-2/&lt;/a&gt;&lt;br&gt;
f. Floyd-Warshall - &lt;a href="https://www.geeksforgeeks.org/floyd-warshall-algorithm-dp-16/"&gt;https://www.geeksforgeeks.org/floyd-warshall-algorithm-dp-16/&lt;/a&gt;&lt;br&gt;
g. Union Find - &lt;a href="https://www.geeksforgeeks.org/union-find-algorithm-union-rank-find-optimized-path-compression/"&gt;https://www.geeksforgeeks.org/union-find-algorithm-union-rank-find-optimized-path-compression/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bare Minimum:
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://leetcode.com/tag/graph/"&gt;https://leetcode.com/tag/graph/&lt;/a&gt; (Easy and Medium)&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bonus:
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.interviewbit.com/courses/programming/topics/graph-data-structure-algorithms/"&gt;https://www.interviewbit.com/courses/programming/topics/graph-data-structure-algorithms/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Dynamic Programming:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  -Video lectures:
&lt;/h3&gt;

&lt;p&gt;a. Lec 1 - &lt;a href="https://www.youtube.com/watch?v=OQ5jsbhAv_M%5Cu0026list=PLcDimPvbmfT8qAxD6JH_kmXiQwTNcoK78"&gt;https://www.youtube.com/watch?v=OQ5jsbhAv_M\u0026list=PLcDimPvbmfT8qAxD6JH_kmXiQwTNcoK78&lt;/a&gt;&lt;br&gt;
b. Lec 2 - &lt;a href="https://www.youtube.com/watch?v=ENyox7kNKeY%5Cu0026list=PLcDimPvbmfT8qAxD6JH_kmXiQwTNcoK78%5Cu0026index=2"&gt;https://www.youtube.com/watch?v=ENyox7kNKeY\u0026list=PLcDimPvbmfT8qAxD6JH_kmXiQwTNcoK78\u0026index=2&lt;/a&gt;&lt;br&gt;
c. Lec 3 - &lt;a href="https://www.youtube.com/watch?v=ocZMDMZwhCY%5Cu0026list=PLcDimPvbmfT8qAxD6JH_kmXiQwTNcoK78%5Cu0026index=3"&gt;https://www.youtube.com/watch?v=ocZMDMZwhCY\u0026list=PLcDimPvbmfT8qAxD6JH_kmXiQwTNcoK78\u0026index=3&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bare minimum (Standard problems):
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.geeksforgeeks.org/program-for-nth-fibonacci-number/"&gt;https://www.geeksforgeeks.org/program-for-nth-fibonacci-number/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/"&gt;https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/&lt;/a&gt;&lt;br&gt;
c. &lt;a href="https://www.geeksforgeeks.org/coin-change-dp-7/"&gt;https://www.geeksforgeeks.org/coin-change-dp-7/&lt;/a&gt;&lt;br&gt;
d. &lt;a href="https://www.geeksforgeeks.org/compute-ncr-p-set-1-introduction-and-dynamic-programming-solution/"&gt;https://www.geeksforgeeks.org/compute-ncr-p-set-1-introduction-and-dynamic-programming-solution/&lt;/a&gt;&lt;br&gt;
e. &lt;a href="https://www.geeksforgeeks.org/longest-increasing-subsequence-dp-3/"&gt;https://www.geeksforgeeks.org/longest-increasing-subsequence-dp-3/&lt;/a&gt;&lt;br&gt;
f. &lt;a href="https://www.geeksforgeeks.org/longest-common-subsequence-dp-4/"&gt;https://www.geeksforgeeks.org/longest-common-subsequence-dp-4/&lt;/a&gt;&lt;br&gt;
g. &lt;a href="https://www.geeksforgeeks.org/longest-common-substring-dp-29/"&gt;https://www.geeksforgeeks.org/longest-common-substring-dp-29/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  -Bonus:
&lt;/h3&gt;

&lt;p&gt;a. &lt;a href="https://www.interviewbit.com/courses/programming/topics/dynamic-programming/"&gt;https://www.interviewbit.com/courses/programming/topics/dynamic-programming/&lt;/a&gt;&lt;br&gt;
b. &lt;a href="https://leetcode.com/tag/dynamic-programming"&gt;https://leetcode.com/tag/dynamic-programming&lt;/a&gt;&lt;/p&gt;

</description>
      <category>roadmap</category>
      <category>dsa</category>
      <category>datastructure</category>
    </item>
    <item>
      <title>Quick start with Tailwind CSS</title>
      <dc:creator>Rishi Verma</dc:creator>
      <pubDate>Sat, 24 Apr 2021 20:37:24 +0000</pubDate>
      <link>https://dev.to/thecoderishi/quick-start-with-tailwind-css-334n</link>
      <guid>https://dev.to/thecoderishi/quick-start-with-tailwind-css-334n</guid>
      <description>&lt;h1&gt;
  
  
  1. Configuring Tailwind CSS without using PostCSS plugin
&lt;/h1&gt;

&lt;h6&gt;
  
  
  Make a folder with any name and open the folder path in the terminal (You can use VS Code built-in terminal).
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;Create &lt;strong&gt;package.json&lt;/strong&gt; file 📦
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;init&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;y&lt;/span&gt; &lt;span class="c1"&gt;//default options&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install tailwind CSS using npm
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install Autoprefixer
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="nx"&gt;autoprefixer&lt;/span&gt; &lt;span class="c1"&gt;//For different browsers support&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Create a folder 📁 name &lt;strong&gt;public&lt;/strong&gt;, inside public folder create a file 📄 named &lt;strong&gt;index.html&lt;/strong&gt; and create another folder 📁 named &lt;strong&gt;src&lt;/strong&gt; , inside src folder create a file 📄 named &lt;strong&gt;tailwind.css&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  Your file structure should look like this
&lt;/h6&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;├── tailwindcss
│   ├── public
│   │   ├── index.html
│   ├── src
│   │   ├── tailwind.css
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Open &lt;strong&gt;src/tailwind.css&lt;/strong&gt; 📄 and copy-paste below code 📋
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;components&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c"&gt;/* Write Custom CSS */&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;utilities&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Create a &lt;strong&gt;build&lt;/strong&gt; scrip which compiles the src/tailwind.css 📄 and make actual compiled css inside the public folder 📁, open &lt;strong&gt;package.json&lt;/strong&gt; 📦 file and copy-paste below code.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;scripts&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;build&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;tailwindcss build ./src/tailwind.css -o ./public/tailwind.css&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Run build script
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h6&gt;
  
  
  This will generate compiled css inside the public folder 📁, and link this css in your &lt;strong&gt;index.html&lt;/strong&gt; 📄(&lt;strong&gt;Note&lt;/strong&gt;: Don't modify compiled css)
&lt;/h6&gt;

&lt;h3&gt;
  
  
  Customize tailwind CSS Config
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;First create tailwind config file with the following command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt; &lt;span class="nx"&gt;init&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h6&gt;
  
  
  It will generate &lt;strong&gt;tailwind.config.js&lt;/strong&gt; 📄
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In &lt;strong&gt;talwind.config.js&lt;/strong&gt; 📄 you can define your own custom property.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;after changing &lt;strong&gt;talwind.config.js&lt;/strong&gt; 📄 again you need to run build script&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Compress size of tailwind.css(Production ready)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;strong&gt;NODE_ENV&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="nx"&gt;win&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;package.json&lt;/strong&gt; 📦 file add the following script which reduces the compiled CSS (It will remove unused classes)
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;prod&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;NODE_ENV=production npx tailwindcss build ./src/tailwind.css -o ./public/tailwind.css“
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Open &lt;strong&gt;tailwind.config.js&lt;/strong&gt; 📄 file add the following line in PURG.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;purge&lt;/span&gt;&lt;span class="p"&gt;:[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./public/**/*.html&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now you can make production ready 💪 CSS by running the following command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;prod&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  2. Configuring Tailwind CSS with as PostCSS plugin
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Create &lt;strong&gt;package.json&lt;/strong&gt; 📦 file
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;init&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;y&lt;/span&gt; &lt;span class="c1"&gt;//default options&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install tailwind CSS using npm
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install Autoprefixer
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="nx"&gt;autoprefixer&lt;/span&gt; &lt;span class="c1"&gt;//For different browsers support&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install PostCSS-CLI Plugin
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="nx"&gt;postcss&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cli&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Create Configuration files for Tailwind CSS and PostCSS using following command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt; &lt;span class="nx"&gt;init&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;p&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h6&gt;
  
  
  This will generate two files tailwind.config.js and postcss.config.js
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;Create a folder name &lt;strong&gt;public&lt;/strong&gt; , inside public folder 📁 create a file named &lt;strong&gt;index.html&lt;/strong&gt; 📄 and create another folder named &lt;strong&gt;src&lt;/strong&gt; , inside src folder 📁 create a file named &lt;strong&gt;tailwind.css&lt;/strong&gt; 📄.&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  Your file structure should look like this
&lt;/h6&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;├── tailwindcss
│   ├── public
│   │   ├── index.html
│   ├── src
│   │   ├── tailwind.css
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Open &lt;strong&gt;src/tailwind.css&lt;/strong&gt; 📄 and copy-paste below code
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;components&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c"&gt;/* Write Custom CSS */&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;utilities&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Create a &lt;strong&gt;build&lt;/strong&gt; scrip which compiles the src/tailwind.css 📄 and make actual compiled css inside the public folder 📁, open &lt;strong&gt;package.json&lt;/strong&gt; 📦 file and copy-paste below code.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;scripts&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;build&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;postcss build ./src/tailwind.css -o ./public/tailwind.css&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Run build script
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h6&gt;
  
  
  This will generate compiled css inside the public folder 📁, and link this css in your &lt;strong&gt;index.html&lt;/strong&gt;(&lt;strong&gt;Note&lt;/strong&gt;: Don't modify compiled css)
&lt;/h6&gt;

&lt;h3&gt;
  
  
  Customize tailwind CSS Config
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;First create tailwind config file with the following command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt; &lt;span class="nx"&gt;init&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h6&gt;
  
  
  It will generate &lt;strong&gt;tailwind.config.js&lt;/strong&gt; 📄
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In &lt;strong&gt;talwind.config.js&lt;/strong&gt; 📄 you can define your own custom property.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;after changing &lt;strong&gt;talwind.config.js&lt;/strong&gt; 📄again you need to run the build script&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Compress size of tailwind.css(Production ready)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;strong&gt;NODE_ENV&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="nx"&gt;win&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;In &lt;strong&gt;package.json&lt;/strong&gt; 📦 file add the following script which reduces the compiled css (It will remove unused classes)
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;prod&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;NODE_ENV=production npx tailwindcss build ./src/tailwind.css -o ./public/tailwind.css“
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Open &lt;strong&gt;tailwind.config.js&lt;/strong&gt; 📄 file add the following line in purg.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;purge&lt;/span&gt;&lt;span class="p"&gt;:[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./public/**/*.html&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now you can make production ready 💪 CSS by running the following command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;prod&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>tailwindcss</category>
      <category>css</category>
    </item>
  </channel>
</rss>
