<?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" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ zenui library - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ zenui library - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Thu, 21 May 2026 16:11:30 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/tag/zenui-library/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ How to Improve Your Front-End Development Workflow with the ZenUI Library ]]>
                </title>
                <description>
                    <![CDATA[ Hello everyone! In this guide, you’ll learn about the powerful ZenUI Library. It’s a comprehensive, free collection of UI components and templates designed to enhance your development workflow and elevate your projects. Whether you’re a developer loo... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/improve-front-end-development-workflow-with-zenui-library/</link>
                <guid isPermaLink="false">66fd9575df00ebc41166c6af</guid>
                
                    <category>
                        <![CDATA[ zenui library ]]>
                    </category>
                
                    <category>
                        <![CDATA[ zenui ]]>
                    </category>
                
                    <category>
                        <![CDATA[ UI library ]]>
                    </category>
                
                    <category>
                        <![CDATA[ React ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Web Development ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Asfak Ahmed ]]>
                </dc:creator>
                <pubDate>Wed, 02 Oct 2024 18:48:21 +0000</pubDate>
                <media:content url="https://cdn.hashnode.com/res/hashnode/image/upload/v1727705676968/5e8a0836-8f8b-4ce3-a2fb-d98b2bd1eabe.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Hello everyone! In this guide, you’ll learn about the powerful <a target="_blank" href="https://zenui.net"><strong>ZenUI Library</strong></a>. It’s a comprehensive, free collection of UI components and templates designed to enhance your development workflow and elevate your projects.</p>
<p>Whether you’re a developer looking to fast-track your UI design or a business that needs sleek, modern templates, ZenUI Library has everything you need to build beautiful websites with minimal effort.</p>
<h3 id="heading-table-of-contents"><strong>Table of Contents:</strong></h3>
<ul>
<li><p><a class="post-section-overview" href="#heading-why-use-zenui">Why Use ZenUI</a>?</p>
</li>
<li><p><a class="post-section-overview" href="#heading-zenui-features">ZenUI Features</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-tailwind-css-integration-and-framework-compatibility">Tailwind CSS Integration and Framework Compatibility</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-start-using-zenui">How to Start Using ZenUI</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-customize-zenui-components">How to Customize ZenUI Components</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-use-zenui-website-templates">How to Use ZenUI Website Templates</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-extract-color-from-an-image">How to Extract Color from an Image</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-customize-any-icon-in-the-zenui-library">How to Customize Any Icon in the ZenUI Library</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-conclusion">Conclusion</a></p>
</li>
</ul>
<h2 id="heading-why-use-zenui">Why Use ZenUI?</h2>
<p>ZenUI was born out of the need for clean, customizable, and reusable components that you can easily integrate into various projects.</p>
<p>Unlike other libraries, ZenUI focuses on providing a <strong>tailored</strong> collection of components, ensuring your projects are unique and highly functional.</p>
<p>You can visit their website to learn more: <a target="_blank" href="https://zenui.net">https://zenui.net</a>.</p>
<h3 id="heading-key-zenui-benefits">Key ZenUI Benefits:</h3>
<ul>
<li><p><strong>Completely Free</strong>: No hidden costs. ZenUI Library is and will remain free for all users.</p>
</li>
<li><p><strong>Modern UI Components</strong>: Pre-designed, fully responsive components based on modern web standards.</p>
</li>
<li><p><strong>Customizable</strong>: You can easily modify the components to match your project’s branding and style.</p>
</li>
<li><p><strong>Developer-Friendly</strong>: Built with developers in mind, ZenUI components are well-documented, easy to integrate, and come with clean, semantic code.</p>
</li>
<li><p><strong>Customizable Icons</strong>: Access a vast library of icons that you can customize and download as <strong>PNG</strong> or <strong>SVG</strong>, or simply copy the icon’s code to use directly in your project. Personalize colors, sizes, and styles effortlessly to suit your needs.</p>
</li>
<li><p><strong>Color Palette Generator</strong>: Design stunning color schemes with the built-in <strong>color palette generator</strong>. You can upload an image and extract its dominant colors, then generate and customize a full-color palette based on your choices. Whether for UI elements or branding, this tool ensures your design’s color harmony.</p>
</li>
</ul>
<h2 id="heading-zenui-features">ZenUI Features</h2>
<p>ZenUI has a bunch of features designed to streamline your UI development. Let's dive into each feature and explore how it can benefit you.</p>
<h3 id="heading-1-pre-built-ui-components"><strong>1. Pre-Built UI Components</strong></h3>
<p>ZenUI provides many pre-built UI components to streamline your development process. Here’s the full list of what you get:</p>
<ul>
<li><p><code>Buttons</code></p>
</li>
<li><p><code>Navigation Bars</code></p>
</li>
<li><p><code>Cards</code>, <code>Modals and Popups</code></p>
</li>
<li><p><code>Forms and Inputs</code></p>
</li>
<li><p><code>Accordions</code></p>
</li>
<li><p><code>Dropdowns and Menus</code></p>
</li>
<li><p><code>Progress Bars and Loaders</code></p>
</li>
<li><p><code>Tabs</code></p>
</li>
<li><p><code>Badges and Tooltips</code></p>
</li>
<li><p><code>Toast Notifications</code></p>
</li>
<li><p><code>Responsive Grids and Layouts</code></p>
</li>
<li><p><code>Pagination</code></p>
</li>
<li><p><code>Avatars</code></p>
</li>
<li><p><code>Breadcrumbs</code></p>
</li>
<li><p><code>Checkboxes</code></p>
</li>
<li><p><code>Radio Buttons</code></p>
</li>
<li><p><code>Alerts</code></p>
</li>
<li><p><code>Footers</code></p>
</li>
<li><p><code>Headers</code></p>
</li>
<li><p><code>Sidebars</code></p>
</li>
<li><p><code>Search Bars</code></p>
</li>
<li><p><code>Timelines</code></p>
</li>
<li><p><code>Tag Chips</code></p>
</li>
<li><p><code>Spinners</code></p>
</li>
<li><p><code>Skeleton Loaders</code></p>
</li>
<li><p><code>Image Galleries</code></p>
</li>
<li><p><code>Pricing Tables</code></p>
</li>
<li><p><code>Hero Sections</code></p>
</li>
</ul>
<p>With this extensive collection, ZenUI equips you to build fast, responsive, and visually appealing user interfaces efficiently.</p>
<h3 id="heading-2-image-color-extractor"><strong>2. Image Color Extractor</strong></h3>
<p>For designers who need precise color inspiration, ZenUI offers an Image Color Extractor tool. It allows you to:</p>
<ul>
<li><p><strong>Extract Colors:</strong> Upload an image, and the tool will automatically detect and generate a palette of its dominant colors.</p>
</li>
<li><p><strong>Color Picker:</strong> Manually select any spot on the image to fine-tune your palette.</p>
</li>
</ul>
<p>This feature helps streamline your design process by providing accurate, vibrant color combinations directly from your images, ensuring your projects have cohesive and impactful color schemes.</p>
<h3 id="heading-3-template-gallery"><strong>3. Template Gallery</strong></h3>
<p>For developers and designers looking for a jumpstart, ZenUI includes <strong>template collections</strong> like:</p>
<ul>
<li><p><strong>Business Websites</strong>: Build multi-page websites for businesses with a few clicks.</p>
</li>
<li><p><strong>Landing Pages</strong>: Clean and modern landing pages optimized for conversions.</p>
</li>
</ul>
<p>Each template is designed with UX best practices in mind, ensuring a seamless user experience across devices.</p>
<h3 id="heading-4-essential-ui-blocks"><strong>4. Essential UI Blocks</strong></h3>
<p>With <strong>ZenUI Blocks</strong>, you don’t have to build from scratch. These blocks are pre-made sections designed to help you construct entire web pages quickly and efficiently. Here’s the full list of blocks you can use:</p>
<ul>
<li><p><code>Hero Sections</code></p>
</li>
<li><p><code>Responsive Navbar</code></p>
</li>
<li><p><code>Pricing Sections</code></p>
</li>
<li><p><code>Responsive Footer</code></p>
</li>
<li><p><code>Newsletter Form</code></p>
</li>
<li><p><code>Contact Form</code></p>
</li>
<li><p><code>Responsive Search Bar</code></p>
</li>
<li><p><code>Responsive Sidebar</code></p>
</li>
<li><p><code>Call-to-Action Sections</code></p>
</li>
<li><p><code>404 Error Pages</code></p>
</li>
<li><p><code>Empty Page</code></p>
</li>
</ul>
<p>All blocks are fully customizable with minimal effort, allowing you to build websites faster while ensuring a polished, professional look.</p>
<h3 id="heading-5-svg-icons-collection"><strong>5. SVG Icons Collection</strong></h3>
<p>ZenUI 2.0 comes with a set of beautifully designed, scalable <strong>SVG icons</strong>. These icons can be used in any project without compromising page load speed or resolution quality. Just grab the icons, and use them wherever you need, from buttons to navigation menus.</p>
<h2 id="heading-tailwind-css-integration-and-framework-compatibility">Tailwind CSS Integration and Framework Compatibility</h2>
<p><strong>ZenUI</strong> is built with <strong>Tailwind CSS</strong>, a utility-first CSS framework that empowers you to customize your designs with minimal code. By leveraging Tailwind's utility classes, you can easily adjust the look and feel of any component without needing to write custom CSS.</p>
<h3 id="heading-compatibility">Compatibility</h3>
<p>ZenUI is designed to be versatile and compatible with various frameworks, making it easy to integrate into your projects. You can seamlessly use ZenUI with:</p>
<ul>
<li><p><strong>React</strong>: Perfect for building interactive UIs and managing state efficiently.</p>
</li>
<li><p><strong>Next.js</strong>: Ideal for server-rendered applications and static site generation.</p>
</li>
</ul>
<p>With ZenUI, you can create visually stunning, responsive web applications quickly and efficiently, regardless of your tech stack.</p>
<h2 id="heading-how-to-start-using-zenui">How to Start Using ZenUI</h2>
<p>One of the key advantages of ZenUI is that you don’t need to install anything to start using it. ZenUI provides all the necessary <strong>HTML structure</strong> and <strong>Tailwind CSS classes</strong> directly in its documentation, allowing you to copy and paste the code into your projects without any additional setup.</p>
<p>If you're working with frameworks like <strong>React</strong> or <strong>Next.js</strong>, all you need is a project that has Tailwind CSS integrated. You can simply copy the component or block code and paste it directly into your JSX, and you’re ready to go. There’s no need to install external dependencies or packages.</p>
<p>ZenUI makes it easy to kickstart your project without any friction—just start a project with React or Next.js, integrate Tailwind CSS, and start building with ZenUI’s pre-built components and blocks.</p>
<p>Here’s a step-by-step guide on how to get started using the ZenUI Library:</p>
<h3 id="heading-1-visit-the-zenui-library-website">1. Visit the ZenUI Library Website</h3>
<p>Head over to the <a target="_blank" href="https://zenuilibrary.com">ZenUI Library website</a> where you can browse through a wide variety of UI components, templates, essential blocks, and SVG icons. ZenUI Library offers everything from simple buttons to more complex layouts.</p>
<h3 id="heading-2-browse-and-select-a-component">2. Browse and Select a Component</h3>
<p>Once on the website, explore the different sections for components like:</p>
<ul>
<li><p>Buttons</p>
</li>
<li><p>Forms</p>
</li>
<li><p>Modals</p>
</li>
<li><p>Navigation Bars</p>
</li>
<li><p>Cards</p>
</li>
<li><p>Alert, and more.</p>
</li>
</ul>
<p>Each component is showcased with a live preview, making it easier to find exactly what you need for your project.</p>
<h3 id="heading-3-copy-the-component-code">3. Copy the Component Code</h3>
<p>Every component listed in the ZenUI Library has an associated code section.</p>
<p><strong>You don’t need to install any dependencies –</strong> simply <strong>copy the JSX Code</strong> for the selected component.</p>
<h3 id="heading-4-integrate-the-code-into-your-project">4. Integrate the Code into Your Project</h3>
<p>After selecting a component from the ZenUI Library website and copying the code, integrating it into your project is incredibly simple:</p>
<p><strong>Paste the Code</strong>:</p>
<ul>
<li><p><strong>React or Next.js Project</strong>: Open your desired component file (for example, <code>App.js</code> any other component file) and <strong>paste</strong> the copied code directly into the file where you want to paste it.</p>
</li>
<li><p><strong>Tailwind CSS Project</strong>: If you’re using plain HTML with Tailwind CSS, paste just the HTML code from ZenUI Library into your HTML file.</p>
</li>
</ul>
<p><strong>Done!</strong> You’re all set. You can now see the component on your project without needing to install any dependencies or extra packages.</p>
<p>ZenUI Library components are designed to work out of the box, so after pasting the code, you will immediately see the component functioning on your project.</p>
<h3 id="heading-5-customize-components">5. <strong>Customize Components</strong></h3>
<p>All components and templates in the ZenUI Library are <strong>highly customizable</strong>. You can change colors, sizes, and layouts using Tailwind or modify the HTML structure to fit your unique needs. Whether you are building a light or dark theme, ZenUI offers complete flexibility.</p>
<p>I’ll walk you through customizing a card component step by step below.</p>
<h3 id="heading-6-start-building-with-zenui-components">6. <strong>Start Building with ZenUI Components</strong></h3>
<p>Now that the components are integrated, you can focus on building the rest of your application. The pre-built, responsive, and reusable ZenUI components will speed up your development process without sacrificing design quality.</p>
<p>By following these steps, you can start using ZenUI Library right away in your project. Whether you’re building with React, Next.js, or plain HTML with Tailwind CSS, ZenUI Library offers a simple and effective solution for UI development without the hassle of managing additional dependencies.</p>
<h2 id="heading-how-to-customize-zenui-components">How to Customize ZenUI Components</h2>
<p>Here's a detailed breakdown of how you can customize a <strong>card component</strong> in the ZenUI Library using Tailwind CSS. This will cover changing colors, adjusting sizes, and modifying the layout to fit your project's look and feel.</p>
<h3 id="heading-original-card-component"><strong>Original Card Component</strong></h3>
<p>This is a basic card component using Tailwind CSS:</p>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"bg-white shadow-lg rounded-lg p-6"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"image.jpg"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Image"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-full h-48 object-cover rounded-t-lg"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">h2</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-xl font-bold mt-4"</span>&gt;</span>Card Title<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-gray-600 mt-2"</span>&gt;</span>This is a customizable card component.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-4 bg-blue-500 text-white px-4 py-2 rounded"</span>&gt;</span>Learn More<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<h3 id="heading-1-customize-colors"><strong>1. Customize Colors</strong></h3>
<p>You can easily change the background colors, text colors, and button colors by modifying the Tailwind classes.</p>
<h4 id="heading-changing-background-and-text-colors-for-dark-mode"><strong>Changing Background and Text Colors for Dark Mode</strong></h4>
<p>To make the card compatible with dark mode, you'll want to adjust the background and text colors. Here’s the code you can use to do that:</p>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"bg-white dark:bg-gray-800 shadow-lg rounded-lg p-6"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"image.jpg"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Image"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-full h-48 object-cover rounded-t-lg"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">h2</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-xl font-bold mt-4 text-gray-900 dark:text-white"</span>&gt;</span>Card Title<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-gray-600 dark:text-gray-400 mt-2"</span>&gt;</span>This is a customizable card component.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-4 bg-blue-500 dark:bg-yellow-500 text-white dark:text-gray-900 px-4 py-2 rounded"</span>&gt;</span>Learn More<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p><strong>Code breakdown:</strong></p>
<ul>
<li><p><code>dark:bg-gray-800</code>: Changes the background color to dark gray when dark mode is active.</p>
</li>
<li><p><code>dark:text-white</code>: Sets the text color to white in dark mode for the title.</p>
</li>
<li><p><code>dark:text-gray-400</code>: Lightens the paragraph text in dark mode for better readability.</p>
</li>
<li><p><code>dark:bg-yellow-500</code>: Changes the button background to yellow in dark mode.</p>
</li>
<li><p><code>dark:text-gray-900</code>: Changes the button text color to dark gray in dark mode</p>
</li>
</ul>
<h3 id="heading-2-configure-tailwindconfigjs-to-enable-dark-mode"><strong>2. Configure</strong> <code>tailwind.config.js</code> <strong>to Enable Dark Mode</strong></h3>
<p>To enable <strong>dark mode</strong> in your Tailwind CSS project, you need to configure two main things:</p>
<ol>
<li><p><strong>Set up the</strong> <code>tailwind.config.js</code> file to enable dark mode.</p>
</li>
<li><p><strong>Adjust your HTML to toggle dark mode on and off.</strong></p>
</li>
</ol>
<p>Let’s walk through the process step-by-step.</p>
<p>In the <code>tailwind.config.js</code> file, add the <code>darkMode</code> option. Tailwind CSS supports two strategies for dark mode:</p>
<ul>
<li><p><code>'media'</code>: Uses the user's system preference (light or dark mode).</p>
</li>
<li><p><code>'class'</code>: Uses a <code>dark</code> class that you can toggle manually (gives you more control).</p>
</li>
</ul>
<p><strong>Example Configuration Using the</strong> <code>'class'</code> Strategy:</p>
<pre><code class="lang-javascript"><span class="hljs-built_in">module</span>.exports = {
  <span class="hljs-attr">darkMode</span>: <span class="hljs-string">'class'</span>, <span class="hljs-comment">// Enable class-based dark mode</span>
  <span class="hljs-comment">// Other configurations...</span>
  <span class="hljs-attr">theme</span>: {
    <span class="hljs-attr">extend</span>: {
      <span class="hljs-comment">// Customizations...</span>
    },
  },
  <span class="hljs-attr">variants</span>: {
    <span class="hljs-attr">extend</span>: {
      <span class="hljs-comment">// Variants...</span>
    },
  },
  <span class="hljs-attr">plugins</span>: [],
};
</code></pre>
<h4 id="heading-set-up-your-html-to-toggle-dark-mode"><strong>Set Up Your HTML to Toggle Dark Mode</strong></h4>
<ol>
<li><strong>For Class-Based Dark Mode (</strong><code>darkMode: 'class'</code>): To control dark mode manually, you need to add or remove the <code>dark</code> class on your root HTML element.</li>
</ol>
<p><strong>Add the</strong> <code>dark</code> Class to Enable Dark Mode:</p>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">html</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"dark"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- Head content --&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- Your content --&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<ol start="2">
<li><strong>Toggle Dark Mode with JavaScript:</strong> You can also add a button to toggle dark mode dynamically:</li>
</ol>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">onclick</span>=<span class="hljs-string">"toggleDarkMode()"</span>&gt;</span>Toggle Dark Mode<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">toggleDarkMode</span>(<span class="hljs-params"></span>) </span>{
    <span class="hljs-built_in">document</span>.documentElement.classList.toggle(<span class="hljs-string">'dark'</span>);
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
</code></pre>
<p><strong>Summary</strong></p>
<ul>
<li><p><strong>Step 1:</strong> In your <code>tailwind.config.js</code> file set <code>darkMode</code> to <code>'class'</code> or <code>'media'</code>.</p>
<ul>
<li><p>Use <code>'class'</code> if you want to toggle dark mode manually.</p>
</li>
<li><p>Use <code>'media'</code> to automatically follow the user's system preference.</p>
</li>
</ul>
</li>
<li><p><strong>Step 2:</strong> If using <code>'class'</code> mode, add or remove the <code>dark</code> class on your <code>&lt;html&gt;</code> or <code>&lt;body&gt;</code> tag to enable or disable dark mode.</p>
</li>
<li><p><strong>Step 3:</strong> In your HTML, use the <code>dark:</code> prefix in Tailwind CSS classes to specify styles for dark mode.</p>
</li>
</ul>
<h3 id="heading-3-customize-sizes-and-spacing"><strong>3. Customize Sizes and Spacing</strong></h3>
<p>You can modify the size of the card and adjust the padding and margins to better fit your layout.</p>
<h4 id="heading-larger-card-with-more-padding"><strong>Larger Card with More Padding</strong></h4>
<p>If you want a larger card with more padding and a bigger image:</p>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"bg-white shadow-lg rounded-lg p-10"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"image.jpg"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Image"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-full h-64 object-cover rounded-t-lg"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">h2</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-xl font-bold mt-8"</span>&gt;</span>Card Title<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-gray-600 mt-4"</span>&gt;</span>This is a customizable card component.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-8 bg-blue-500 text-white px-6 py-3 rounded-lg"</span>&gt;</span>Learn More<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p><strong>Code breakdown:</strong></p>
<ul>
<li><p><code>p-10</code> increases the padding inside the card for a more spacious layout.</p>
</li>
<li><p><code>h-64</code> changes the image height to 64 units (16rem), making it taller.</p>
</li>
<li><p><code>mt-8</code> adds more space between elements, like the title and button.</p>
</li>
<li><p><code>px-6 py-3</code> increases the padding inside the button, making it larger.</p>
</li>
<li><p><code>rounded-lg</code> adds larger, more prominent rounded corners to the button.</p>
</li>
</ul>
<h3 id="heading-4-modify-the-layout"><strong>4. Modify the Layout</strong></h3>
<p>You can also adjust the card layout by making it more compact or aligning content differently.</p>
<h4 id="heading-compact-card-with-left-aligned-content"><strong>Compact Card with Left-Aligned Content</strong></h4>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"bg-white shadow-lg rounded-lg p-4 flex items-start"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"image.jpg"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Image"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-24 h-24 object-cover rounded-lg mr-4"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h2</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-xl font-bold"</span>&gt;</span>Card Title<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-gray-600 mt-2"</span>&gt;</span>This is a customizable card component.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-4 bg-blue-500 text-white px-4 py-2 rounded"</span>&gt;</span>Learn More<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p><strong>Code breakdown:</strong></p>
<ul>
<li><p><code>flex items-start</code> makes the card a flexible box layout with content aligned to the top.</p>
</li>
<li><p><code>w-24 h-24</code> resizes the image to a smaller, square format.</p>
</li>
<li><p><code>mr-4</code> adds a margin to the right of the image, separating it from the text content.</p>
</li>
<li><p>The rest of the content (title, text, and button) is contained in a <code>div</code> to keep it aligned next to the image.</p>
</li>
</ul>
<h3 id="heading-5-customize-it-with-responsive-design"><strong>5. Customize it with Responsive Design</strong></h3>
<p>Tailwind makes it easy to customize the card for different screen sizes.</p>
<h4 id="heading-responsive-card-for-mobile-and-desktop"><strong>Responsive Card for Mobile and Desktop</strong></h4>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"bg-white shadow-lg rounded-lg p-6 md:p-10"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"image.jpg"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Image"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-full h-48 md:h-64 object-cover rounded-t-lg"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">h2</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-xl font-bold mt-4 md:mt-8"</span>&gt;</span>Card Title<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"text-gray-600 mt-2 md:mt-4"</span>&gt;</span>This is a customizable card component.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-4 md:mt-8 bg-blue-500 text-white px-4 py-2 md:px-6 md:py-3 rounded-lg"</span>&gt;</span>Learn More<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p><strong>Code breakdown:</strong></p>
<ul>
<li><p><code>md:p-10</code> increases the padding on larger screens (for example, tablets or desktops).</p>
</li>
<li><p><code>md:h-64</code> makes the image taller on larger screens, providing a better visual experience.</p>
</li>
<li><p><code>md:mt-8</code> adds more spacing between elements on larger screens to prevent a cramped look.</p>
</li>
<li><p><code>md:px-6 md:py-3</code> enlarges the button on larger screens, making it easier to interact with.</p>
</li>
</ul>
<p>As you’ve just seen, with Tailwind CSS, you can customize ZenUI Library components in various ways:</p>
<ol>
<li><p><strong>Colors:</strong> Adjust background, text, and button colors for light and dark themes.</p>
</li>
<li><p><strong>Sizes &amp; Spacing:</strong> Modify padding, margins, and dimensions to fit your layout.</p>
</li>
<li><p><strong>Layout:</strong> Use a flexbox or grid to alter how content is arranged within the card.</p>
</li>
<li><p><strong>Responsive Design:</strong> Tailor your components for different screen sizes using responsive utility classes.</p>
</li>
</ol>
<h2 id="heading-how-to-use-zenui-website-templates">How to Use ZenUI Website Templates</h2>
<p>Getting started with <strong>ZenUI’s Website Templates</strong> is quick and easy. I’ll now walk you through setting up your project using one of ZenUI’s pre-built templates.</p>
<h3 id="heading-step-1-choose-a-template">Step 1: Choose a Template</h3>
<p>Head over to the <strong>ZenUI Library website</strong> and navigate to the templates section. You’ll find a variety of website templates.</p>
<ul>
<li><p>Pick a template that fits your project needs.</p>
</li>
<li><p>Go to the template GitHub repository by clicking the <strong>Get Template</strong> button.</p>
</li>
</ul>
<h3 id="heading-step-2-clone-the-repository-on-your-desktop">Step 2: Clone the Repository on Your Desktop</h3>
<p>When you go to the GitHub repository by clicking the <strong>Get Template</strong> button, you will see a button called <strong>Code.</strong> Click on it you will see an HTTPS URL like the below picture. Copy the URL.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727202543195/e1c05f17-b12f-4ab3-9b9d-23cebd948349.png" alt="clone-zenui-template-from-github-repository" class="image--center mx-auto" width="712" height="572" loading="lazy"></p>
<p>After copying the HTTPS URL just open your computer <code>terminal</code> and type a command like the one below:</p>
<pre><code class="lang-bash">git <span class="hljs-built_in">clone</span> project-https-url-here
</code></pre>
<p>After processing the command with the correct HTTPS URL, you will get the template on your local computer. Now open the template project on a code editor of your choice.</p>
<p>After opening the project in your code editor, you need to do just 2 things:</p>
<ul>
<li><p>Install the npm packages using the command <code>npm install</code> (packages will be react-icons, react-router-dom, and so on)</p>
</li>
<li><p>Run the project on your <strong>localhost</strong> using the command <code>npm run dev</code></p>
</li>
</ul>
<h3 id="heading-step-3-customize-the-template">Step 3: Customize the Template</h3>
<p>You can <a target="_blank" href="https://youtu.be/wPopdyqpxHQ?si=p-12ygf5LiXCLAQ7">watch this video</a> on how to use the ZenUI Library template and how to customize it. Or you can play around with:</p>
<ul>
<li><p><strong>Modifying Content</strong>: Change text, images, or links in the HTML file.</p>
</li>
<li><p><strong>Changing Colors</strong>: Update Tailwind CSS utility classes (for example, <code>bg-blue-500</code> to <code>bg-red-500</code>) to apply your custom branding.</p>
</li>
<li><p><strong>Adding New Components</strong>: Copy and paste additional components or blocks from the <strong>ZenUI Library</strong> documentation and integrate them into the template.</p>
</li>
</ul>
<h2 id="heading-how-to-extract-color-from-an-image">How to Extract Color from an Image</h2>
<p>First, go to the <a target="_blank" href="https://zenui.net">ZenUI Library</a> website. Then click on the Opacity Palette button from the top navigation bar. You’ll see some of the palettes that are generated by default from ZenUI. Just click on the image icon button from the icon search bar on the right side, as you can see in the below image:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727273411733/738020d4-bdbe-4a8e-98ce-63aa21576a7b.png" alt="upload-image" class="image--center mx-auto" width="1437" height="401" loading="lazy"></p>
<p>Then you need to select your image from your device. After selecting the image, press the open button like in the below image:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727273571064/e90f47f7-dab9-458c-a26d-c6b20ba4199f.png" alt="select-image-from-device" class="image--center mx-auto" width="1781" height="1015" loading="lazy"></p>
<p>Now you will see a magical tool called “<strong>Extract Color From Uploaded Image</strong>” like the below image:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727273665557/5faad30a-c3fc-4783-b59c-f6999b22d927.png" alt="zenui-color-picker-modal" class="image--center mx-auto" width="1590" height="839" loading="lazy"></p>
<p>Now it’s time to select your color from the image. When you move the cursor on the image, you will see an indicator that lets you see whatever color you’re hovering over right now, as you can see in the image below:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727273940270/147b94a5-b95d-47b8-bb5e-437d0276c8a1.jpeg" alt="color-picker-real-time-indecator" class="image--center mx-auto" width="522" height="313" loading="lazy"></p>
<p>Below that, you will see your selected color in the “<strong>Selected Color</strong>” section. From there, you can copy your selected color <strong>Hex</strong> or <strong>RGB</strong> color code. Also, you can generate the selected color palette by clicking the “<strong>Generate Palette</strong>” button.</p>
<p>Also, you can generate a color palette by giving the color code. If you have a color code and you want to make the color palette, just paste the color code in the input field reference, as you can see in the below image:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727274330786/019228a2-aae8-41e3-bb69-c2fe8a68f4d5.png" alt="color-palette-generator-input" class="image--center mx-auto" width="1360" height="396" loading="lazy"></p>
<p>After pasting your color code, just click on the “Generate” button and the color palette will be automatically generated.</p>
<p>After generating the color palette, you can copy the color code from the generated palette for any part – just click on the palette part. For this, you need to copy the color code. You will see a modal come up with your color code variant like “HEX”, “RGB”, or “HSL” like in the below image:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727274619884/871ad483-a3f8-4d8e-9b9e-76ac7cbd0ee5.png" alt="copy-color-code" class="image--center mx-auto" width="1405" height="610" loading="lazy"></p>
<h2 id="heading-how-to-customize-any-icon-in-the-zenui-library">How to Customize Any Icon in the ZenUI Library</h2>
<p>Go to the <a target="_blank" href="https://zenui.net">ZenUI Library</a> website, and click on the icons button from the top navigation bar. This will bring you to the ZenUI icons homepage. Now choose an icon you want to use and click on it. You will see a drawer come out like in the below image:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1727274886810/a283107e-aa84-4537-b7f8-7e866b163422.png" alt="customize-zenui-icon" class="image--center mx-auto" width="599" height="775" loading="lazy"></p>
<p>Now you can change the icon <strong>Color</strong> and <strong>Size.</strong> After you’ve customized it, you can save the icon multi-variant like PNG, or SVG, or copy the icon SVG code.</p>
<h2 id="heading-join-the-zenui-community">Join the ZenUI Community</h2>
<p>ZenUI isn’t just about freely available components. It’s also about fostering a community of developers and designers. Join the <a target="_blank" href="https://web.facebook.com/share/g/wAbkC1XFB5Ssc121/"><strong>ZenUI community</strong></a> so you can share your work, learn from fellow developers, and get early access to new components and templates.</p>
<p>You can contribute to ZenUI by submitting templates, reporting bugs, or suggesting features. You can find the community on platforms like <a target="_blank" href="https://github.com/Asfak00/zenui-library">GitHub</a> and <a target="_blank" href="https://web.facebook.com/zenuilibrary"><strong>Facebook</strong></a>.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>Whether building a personal portfolio, an e-commerce site, or a business platform, ZenUI can be your go-to resource for high-quality, customizable UI components and templates. With its simplicity, flexibility, and extensive range of options, ZenUI makes front-end development a breeze.</p>
<p>Feel free to explore the library at <a target="_blank" href="https://zenui.net">https://zenui.net</a>, and don’t hesitate to reach out if you need help or have feedback.</p>
<p><strong>Happy Coding!</strong></p>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
