<?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 Luiz Marcelo Itapicurú Pereira Costa on Medium]]></title>
        <description><![CDATA[Stories by Luiz Marcelo Itapicurú Pereira Costa on Medium]]></description>
        <link>https://medium.com/@luizmipc?source=rss-215a8020b23f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LSJJIKs6O_PawmbclE2Xeg.jpeg</url>
            <title>Stories by Luiz Marcelo Itapicurú Pereira Costa on Medium</title>
            <link>https://medium.com/@luizmipc?source=rss-215a8020b23f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:40:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@luizmipc/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[Quick Fix: “Unknown at rule @theme” in Tailwind CSS v4]]></title>
            <link>https://medium.com/@luizmipc/quick-fix-unknown-at-rule-theme-in-tailwind-css-v4-2000b965eda5?source=rss-215a8020b23f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2000b965eda5</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Luiz Marcelo Itapicurú Pereira Costa]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 04:05:06 GMT</pubDate>
            <atom:updated>2026-01-08T02:42:19.800Z</atom:updated>
            <content:encoded><![CDATA[<h3>Framing the problem:</h3><p>VS Code comes with a built-in <strong>CSS Language Server</strong>. It knows standard CSS rules perfectly. However, Tailwind v4 introduces @theme, a custom directive that is valid in the Tailwind build process but is <strong>not yet standard CSS</strong>. The CSS Language Server sees this &quot;foreign&quot; rule, doesn&#39;t recognize it, and flags it as an error to warn you.</p><p>The following image shows what you probably is seeing for any tailwind directive inside a .css file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*qDEoduOH0rDdE0iEV2oJgQ.png" /></figure><h3>Fix:</h3><p>To resolve this linting error, we need to tell VS Code to associate all .css files with the Tailwind CSS language mode instead of the standard CSS mode. This is done by editing your settings.json file.</p><ol><li>Press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux).</li><li>Type “Preferences: Open User Settings (JSON)” (or Workspace Settings if you only want it for this project).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*PUewFNIvFwyDDz5zMiTEuw.png" /></figure><p>3. Add the following line inside the JSON settings object</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fffcf26e1e924d8b6e3d139dd1554e9e/href">https://medium.com/media/fffcf26e1e924d8b6e3d139dd1554e9e/href</a></iframe><p>As a result… the error vanishes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*SUYHg_s4JEtAbwadj-ivJQ.png" /></figure><h3>Why it works:</h3><p>By adding &quot;*.css&quot;: &quot;tailwindcss&quot;, you are explicitly instructing VS Code to bypass the built-in standard CSS validation for these files and instead use the <strong>Tailwind CSS IntelliSense</strong> extension (which you likely have installed) to handle the syntax highlighting and validation. Since the Tailwind extension understands directives like @theme and @apply, the error warnings will vanish immediately.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2000b965eda5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>