Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color preview not shown for CSS variables with static fallback color values. #680

Closed
minht11 opened this issue Dec 14, 2022 · 2 comments
Closed

Comments

@minht11
Copy link

minht11 commented Dec 14, 2022

What version of Tailwind CSS IntelliSense are you using?
v0.9.1

What version of Tailwind CSS are you using?
v3.2.4

Tailwind config

/** @type {import('tailwindcss').Config} */
module.exports = {
	content: ['./src/**/*.{html,js,svelte,ts}'],
	theme: {
		colors: {
			// No preview shown, despite fallback value being used.
			primary: `rgba(var(--color-primary, 100, 100, 100), <alpha-value>)`,
			// Works as expected.
			secondary: `rgba(100, 100, 100, <alpha-value>)`,
		}
	},
}

Describe your issue
Color preview is not working for color tokens using css custom variables with statically recognisable fallback color values.

image

Related to #415

@bradlc
Copy link
Contributor

bradlc commented Dec 14, 2022

Going to close this as a duplicate of #604. We will have a new release out this week with the fix 👍

@bradlc bradlc closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2022
@jesspinklet
Copy link

Going to close this as a duplicate of #604. We will have a new release out this week with the fix 👍

Is this fixed on v0.9.5? Im still having this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants