Tailwind Alchemist: find all tailwind colors in your…
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityTrending
    DeepSeekBlogTailwind Alchemist: find all tailwind colors in your codebase
    Back to Blog
    Tailwind Alchemist: find all tailwind colors in your codebase
    tailwindcss

    Tailwind Alchemist: find all tailwind colors in your codebase

    Yann Rabiller February 4, 2026
    0 views

    When you're using libs like DaisyUI, you don't want to hardcode Tailwind color names in your codebase. I built a tool for this.


    title: Tailwind Alchemist: find all tailwind colors in your codebase published: true description: When you're using libs like DaisyUI, you don't want to hardcode Tailwind color names in your codebase. I built a tool for this. tags: tailwind, tailwindcss, CSS, design, DaisyUI cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlhkbns7bimt1lcj751w.webp canonical_url: https://www.einenlum.com/articles/tailwind-alchemist-find-all-tailwind-colors-in-your-codebase/

    Use a ratio of 100:42 for best results.

    published_at: 2026-02-04 12:25 +0000


    This article was initially published on my blog — sharing here for the Dev.to community.

    I love Tailwind. For a long time, I was afraid of CSS and almost didn't want to understand it. Tailwind made me feel like it's not such a big deal after all.

    Some people say that they lost their CSS knowledge because of Tailwind, but for me it's the opposite. I'm now curious about it and it feels great!

    At some point though, I realized something was quite annoying. When using Tailwind, you put the color (or bg color) directly on the element, which is great to understand quickly how the component looks like, but if you decide to change the theme later, you have to go through all your codebase and change the color names one by one.

    I tried to create a design system to avoid this, but I was not that great at finding names and it always ended up in a big mess.

    I later discovered DaisyUI, which provides a theme system on top of Tailwind. Instead of using color names like bg-blue-500, you can use semantic names like bg-primary and then define what primary means in your theme.

    Changing the theme is then super easy, you just change the color values in your theme definition.

    There's one problem though: when you start with some templates (like Flux UI or Shadcn which are used by the Laravel starter kits), you have a lot of hardcoded Tailwind color names in your codebase. Adding DaisyUI later means you have to go through all your codebase and replace the color names with semantic names.

    I could not find a simple tool to do this, so I built one: Tailwind Alchemist.

    It's made in Typescript and works as a CLI tool. You just give it the path to your codebase, and it finds all default Tailwind color names that are still present in your files.

    Here is how you can use it:

    $ npx tw-alchemist scan -p 'resources/js/**'      
    
    Found 28 Tailwind colors:
    
    amber-400
    black
    blue-100
    blue-200
    blue-700
    blue-800
    green-500
    green-600
    neutral-100
    neutral-200
    neutral-300
    neutral-400
    neutral-500
    neutral-600
    neutral-700
    neutral-800
    neutral-900
    orange-300
    red-100
    red-200
    red-50
    red-500
    red-600
    red-700
    violet-500
    white
    yellow-500
    zinc-900
    

    If you want to know which files contain which colors, you can add the -v flag:

    $ npx tw-alchemist scan -p 'resources/js/**' -v
    
    Found 28 Tailwind colors:
    
    Color: violet-500 (found in 3 files)
      - resources/js/components/AppHeader.vue
      - resources/js/components/AppLogo.vue
      - resources/js/components/MobileHeader.vue
    
    Color: neutral-500 (found in 5 files)
      - resources/js/components/AppHeader.vue
      - resources/js/components/AppearanceTabs.vue
      - resources/js/components/TextLink.vue
      - resources/js/pages/auth/TwoFactorChallenge.vue
      - resources/js/pages/settings/Profile.vue
    
    Color: neutral-100 (found in 3 files)
      - resources/js/components/AppearanceTabs.vue
      - resources/js/components/NavFooter.vue
      - resources/js/components/PlaceholderPattern.vue
    
    Color: neutral-800 (found in 2 files)
      - resources/js/components/AppearanceTabs.vue
      - resources/js/components/NavFooter.vue
    
    ...
    

    If you want to know which lines (and which class utilities) contain the colors, you can use extra verbosity with the -vv flag:

    $ npx tw-alchemist scan -p 'resources/js/**' -vv
    
    Found 28 Tailwind colors:
    
    Color: violet-500 (3 occurrences)
      - resources/js/components/AppHeader.vue
        - Line 106: text-violet-500
      - resources/js/components/AppLogo.vue
        - Line 10: text-violet-500
      - resources/js/components/MobileHeader.vue
        - Line 28: text-violet-500
    
    Color: neutral-500 (6 occurrences)
      - resources/js/components/AppHeader.vue
        - Line 233: text-neutral-500
      - resources/js/components/AppearanceTabs.vue
        - Line 33: text-neutral-500
      - resources/js/components/TextLink.vue
        - Line 21: dark:decoration-neutral-500
      - resources/js/pages/auth/TwoFactorChallenge.vue
        - Line 100: dark:decoration-neutral-500
        - Line 132: dark:decoration-neutral-500
      - resources/js/pages/settings/Profile.vue
        - Line 244: dark:decoration-neutral-500
    
    Color: neutral-100 (4 occurrences)
      - resources/js/components/AppearanceTabs.vue
        - Line 23: bg-neutral-100
        - Line 32: dark:text-neutral-100
      - resources/js/components/NavFooter.vue
        - Line 28: dark:hover:text-neutral-100
      - resources/js/components/PlaceholderPattern.vue
        - Line 11: dark:stroke-neutral-100
    
    Color: neutral-800 (2 occurrences)
      - resources/js/components/AppearanceTabs.vue
        - Line 23: dark:bg-neutral-800
      - resources/js/components/NavFooter.vue
        - Line 28: hover:text-neutral-800
    
    ...
    

    It only supports Tailwind v4. It's also on Context7 so you can ask your LLM (with the right MPC) to use it when refactoring your codebase.

    I hope it can be useful to you. If you like it, feel free to give it a star on GitHub ⭐️

    Tags

    tailwindcsscssdesigndaisyui

    Comments

    More Blog

    View all
    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught megemma

    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught me

    I ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...

    X
    xbill
    Hey DEV, I'm Tobore. Let's actually connect.community

    Hey DEV, I'm Tobore. Let's actually connect.

    Hey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...

    L
    Laurina Ayarah
    I burned through thousands of AI tokens. Then a friend did it for freeai

    I burned through thousands of AI tokens. Then a friend did it for free

    (yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...

    P
    Paulo Henrique
    Claude might be saturating your machineai

    Claude might be saturating your machine

    My laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...

    S
    Sidhant Panda
    Automated GitHub Code Reviews Using Google Geminigithubactions

    Automated GitHub Code Reviews Using Google Gemini

    I Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...

    D
    Darren "Dazbo" Lester
    What is an "agentic harness," actually?ai

    What is an "agentic harness," actually?

    I've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...

    T
    Tilde A. Thurium

    Stay up to date

    Get the latest DeepSeek prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for DeepSeek and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this DeepSeek resource

    • Build AI Agents with Think-Plan-Act Architecture Using Llama-4 Reasoningn8n · $24.99 · Related topic
    • Import Google Keep Notes to Google Sheets Using OpenAI and Google Driven8n · $14.99 · Related topic
    • Categorize Gmail Emails Using GPT-4 Mini with Multi-Label Analysisn8n · $9.99 · Related topic
    • Extract and Structure Hair Documents to Google Sheets using Typhoon OCR and Llama 3.1n8n · $4.99 · Related topic
    Browse all workflows