question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing Tailwind 2.0 colors

See original GitHub issue

Hi, Thanks for this toolkit.

I have tried this: const colors = require('windicss/colors') in tailwind.config.js, but I see these typescript errors.

...
colors: {
       ...
        bluegray: colors.blueGray,
        coolgray: colors.coolGray,
        gray: colors.gray,
        truegray: colors.trueGray,
        warmgray: colors.warmGray,
        red: colors.red,
        orange: colors.orange,
}

Does windicss/colors' provide the full range of Tailwind 2.0 colors?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
FallDownTheSystemcommented, Feb 16, 2021

Probably unrelated but extending colors didn’t seem to work either.

module.exports = {
	darkMode: false,
	theme: {
		extend: {
			colors: {
				'test-orange': '#e05501'
			}
		}
	}
}

I’m not sure if this is intended behavior since the docs do say that “Any configuration options you provide will extend the default options.” but the migration guide still shows the theme > extend > colors format.

0reactions
antfucommented, Feb 17, 2021

It’s because uppercase in class names were ignored. Fixed now. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

After upgrade to 3.0 some colors are missing. #6831 - GitHub
Hello,. I've upgraded tailwindcss to v 3.0. I followed the guide and all is well, except I seem to be missing some colors...
Read more >
Customizing Colors - Tailwind CSS
Tailwind uses literal color names (like red, green, etc.) and a numeric scale (where 50 is light and 900 is dark) by default....
Read more >
TailwindCSS Missing Colors in Production vs Development
I am using Laravel Jetstream with TailwindCSS. I have modified some of the config.js files (webpack, tailwind ...
Read more >
Tailwind color extension doesn't show up - Laracasts
Hello, I'm trying tailwind for the first time with laravel, and Im trying to change the default grays to the trueGray shades in...
Read more >
How to add colors from the new color palette in TailwindCSS ...
How to add missing colors from TailwindCSS v2's new color palette.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found