<?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 Mudeesha Tharindu Dilshan on Medium]]></title>
        <description><![CDATA[Stories by Mudeesha Tharindu Dilshan on Medium]]></description>
        <link>https://medium.com/@mudeeshatharindudilshan?source=rss-a4c8eeb27ffb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qfn_1f-aqjLrKno5izEtAQ.jpeg</url>
            <title>Stories by Mudeesha Tharindu Dilshan on Medium</title>
            <link>https://medium.com/@mudeeshatharindudilshan?source=rss-a4c8eeb27ffb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:44:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mudeeshatharindudilshan/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[Tailwind.config.js File Not Found? Here’s How Tailwind CSS v4 Fixes It]]></title>
            <link>https://medium.com/@mudeeshatharindudilshan/tailwind-config-js-file-not-found-heres-how-tailwind-css-v4-fixes-it-aaf616f6787a?source=rss-a4c8eeb27ffb------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaf616f6787a</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Mudeesha Tharindu Dilshan]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 17:25:21 GMT</pubDate>
            <atom:updated>2025-06-18T17:38:38.194Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve recently upgraded to Tailwind CSS v4 and encountered a missing tailwind.config.js file, don’t panic—this is by design!</p><p>With the release of Tailwind CSS v4, the framework has introduced significant changes, including the ability to define theme configurations directly in CSS rather than using tailwind.config.js.This shift simplifies setup and makes it easier to manage styles in a more CSS-centric way.</p><p>In this article, I’ll guide you through migrating your existing tailwind.config.js settings into your global.css file using Tailwind v4’s new @theme directive.</p><h3><strong>Why Is </strong><strong>tailwind.config.js Gone in v4?</strong></h3><p>Tailwind v4 simplifies setup by moving most configuration into CSS. This means:</p><p>✅ No more separate config file (unless you need advanced customization).<br>✅ CSS-first approach — Aligns better with modern web standards.<br>✅ Easier theming — Use native CSS variables for dynamic styles.</p><h3>How to Migrate Your Config to CSS</h3><ol><li><strong>Original </strong><strong>tailwind.config.js</strong></li></ol><pre>// tailwind.config.js<br>module.exports = {<br>  content: [<br>    &quot;./app/**/*.{js,ts,jsx,tsx,mdx}&quot;,<br>    &quot;./components/**/*.{js,ts,jsx,tsx,mdx}&quot;,<br>  ],<br>  theme: {<br>    container: {<br>      center: true,<br>      padding: &#39;15px&#39;,<br>    },<br>    screens: {<br>      sm: &#39;640px&#39;,<br>      md: &#39;768px&#39;,<br>      lg: &#39;960px&#39;,<br>      xl: &#39;1200px&#39;,<br>    },<br>    fontFamily: {<br>      primary: &quot;var(--font-jetbrainsMono)&quot;,<br>    },<br>    extend: {<br>      colors: {<br>        primary: &quot;#1c1c22&quot;,<br>        accent: {<br>          DEFAULT: &quot;#00ff99&quot;,<br>          hover: &quot;#00e187&quot;,<br>        },<br>      },<br>    },<br>  },<br>  plugins: [],<br>};</pre><p>2.<strong> Migrated </strong><strong>global.css in Tailwind v4 (With Usage Examples)</strong></p><pre>/* global.css */<br>@import &quot;tailwindcss&quot;;<br><br>@theme {<br>  /* Container */<br>  --container-center: true;<br>  --container-padding: 15px;<br><br>  /* Breakpoints (screens) */<br>  --breakpoint-sm: 640px;<br>  --breakpoint-md: 768px;<br>  --breakpoint-lg: 960px;<br>  --breakpoint-xl: 1200px;<br><br>  /* Colors */<br>  --color-primary: #1c1c22;<br>  --color-accent: #00ff99;<br>  --color-accent-hover: #00e187;<br><br>  /* Fonts */<br>  --font-family-primary: var(--font-jetbrainsMono);<br>}<br><br>@layer base {<br>  body {<br>    font-family: var(--font-family-primary);<br>    color: var(--color-primary); /* Using primary color */<br>  }<br>  <br>  /* Example button using accent colors */<br>  .btn-accent {<br>    background-color: var(--color-accent);<br>    color: var(--color-primary);<br>  }<br>  <br>  .btn-accent:hover {<br>    background-color: var(--color-accent-hover);<br>  }<br>}<br><br>/* Example of responsive design using breakpoints */<br>@layer utilities {<br>  .responsive-card {<br>    /* Small screens (sm) and up */<br>    @media (min-width: var(--breakpoint-sm)) {<br>      padding: 1.5rem;<br>    }<br>    <br>    /* Medium screens (md) and up */<br>    @media (min-width: var(--breakpoint-md)) {<br>      width: 80%;<br>    }<br>    <br>    /* Large screens (lg) and up */<br>    @media (min-width: var(--breakpoint-lg)) {<br>      width: 60%;<br>    }<br>    <br>    /* Extra large screens (xl) */<br>    @media (min-width: var(--breakpoint-xl)) {<br>      width: 50%;<br>    }<br>  }<br>}</pre><h3>Final Thoughts</h3><p>Tailwind v4’s move toward CSS-based configuration makes styling more intuitive and reduces reliance on JavaScript configuration. While tailwind.config.js is still supported for advanced cases, most projects can now define their theme directly in CSS.</p><p>🔹 Want to try Tailwind v4? Check out the <a href="https://tailwindcss.com/blog/tailwindcss-v4">official announcement</a> for more details.</p><p>What do you think about this change? Let me know in the comments!😊</p><p><strong>Like this article? Follow me on </strong><a href="https://medium.com/@yourusername"><strong>Medium</strong></a><strong> for more web dev insights! </strong>Would you like me to refine any section or add more details?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaf616f6787a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>