PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Custom colors in tails

vmutius

Jun 12th, 2024 11:10 AM

Hello, can I use my color palette within tails? Any if yes, how can I do this. Thanks Bettina

bobbyiliev

Jun 12th, 2024 12:41 PM

Hey Bettina! 👋

Yes, you should be able to use your own custom color palette within Tails.

Here’s how this could work:

1. Modify the Tailwind Configuration

First, you need to modify your tailwind.config.js, just go to Settings -> Tailwind -> and include your custom colors.

Here’s an example of how you can define a custom color palette in your Tailwind configuration:

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        brand: {
          100: '#f0e6ff',
          200: '#dab7ff',
          300: '#c488ff',
          400: '#ae59ff',
          500: '#9800e8', // primary brand color
          600: '#7600b5',
          700: '#540082',
          800: '#32004f',
          900: '#1e002f'
        },
        // You can add as many custom colors as you need
      },
    },
  },
}

2. Using Custom Colors in Your Project

After you've defined your custom colors in the Tailwind configuration, you can start using them in your CSS just like any other Tailwind color. For example:

<button class="bg-brand-500 text-white hover:bg-brand-600">
  Click me
</button>

Let me know if you have any questions!

- Bobby