Giter Club home page Giter Club logo

Comments (2)

agcty avatar agcty commented on June 1, 2024

Thanks again for your comment! Tailwind implicitly comes with the full color palette anyways, you don't need to explicitly add the default tailwind colors to be able to use them. However, if you do want to override them and and new ones you can always extend it!

from nextjs-advanced-starter.

sebmellen avatar sebmellen commented on June 1, 2024

Hmm, I don't think that's the case without importing tailwindcss/colors like so: const colors = require('tailwindcss/colors') in the tailwind.config.js file. It's true that the default color palette is available, but it's definitely required to add the declarations for colors not in the default list.

The colors in the default list are as follows:

  • Gray
  • Red
  • Yellow
  • Green (actually Emerald) 1
  • Blue
  • Indigo
  • Purple
  • Pink

Whereas the full list of colors is 2:

  • Blue Gray
  • Cool Gray
  • Gray
  • True Gray
  • Warm Gray
  • Red
  • Orange
  • Amber
  • Yellow
  • Lime
  • Green
  • Emerald
  • Teal
  • Cyan
  • Light Blue
  • Blue
  • Indigo
  • Violet
  • Purple
  • Fuchsia
  • Pink

A fair number of themes and prebuilt designs use colors that are only available in the full palette. These colors are not included in the default palette, and therefore show up as transparent or simply unstyled if the user doesn't explicitly declare them. This can be confusing, especially for users who are just starting out with Tailwind.

Personally I feel this is a deficiency with the Tailwind documentation, because they don't add an easy copy-paste-able tailwind.config.js example with all the colors declared (this is why I made the gist). So I think full color palette support would be a useful feature to have in this starter!

Anyway, I totally understand if you don't feel that this is important — it's your repo after all :). Thank you for making it!

Footnotes

  1. https://tailwindcss.com/docs/customizing-colors

  2. https://tailwindcss.com/docs/customizing-colors#color-palette-reference

from nextjs-advanced-starter.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.