Using standard Tailwind color name for custom themes generates incorrect CSS

Author: alexschcomCreated Aug 28, 2026Updated Aug 28, 2026

What version of @tailwindcss/typography are you using?

v0.5.20

What version of Node.js are you using?

v22.20.0

What browser are you using?

n/a

What operating system are you using?

macOS

Reproduction repository

https://github.com/alexschcom/prose-pink-issue

Describe your issue

When using a Tailwind standard color name for a custom color theme via @utility prose-..., the generated CSS is inconsistent and unpredictable.

For example:

css
@utility prose-pink {
	--tw-prose-links: hotpink;
	--tw-prose-counters: hotpink;
	--tw-prose-bullets: hotpink;
}

will generate

css
.prose-pink {
	--tw-prose-links: hotpink;
	--tw-prose-counters: hotpink;
	--tw-prose-bullets: hotpink;
	--tw-prose-links: oklch(59.2% 0.249 0.584);
	--tw-prose-invert-links: oklch(65.6% 0.241 354.308);
}

overriding the custom link color (and adding an invert color).

When removing one of the last two lines:

diff
@utility prose-pink {
	--tw-prose-links: hotpink;
	--tw-prose-counters: hotpink;
-	--tw-prose-bullets: hotpink;
}

it will still generate a default (fallback?) class but append the custom utility at the end so it will at least take effect.

css
.prose-pink {
	--tw-prose-links: oklch(59.2% 0.249 0.584);
	--tw-prose-invert-links: oklch(65.6% 0.241 354.308);
	--tw-prose-links: hotpink;
	--tw-prose-counters: hotpink;
}

None of that happens when using a custom name for the prose-... class:

css
@utility prose-mycolor {
	--tw-prose-links: hotpink;
	--tw-prose-counters: hotpink;
	--tw-prose-bullets: hotpink;
}

will correctly generate

css
.prose-mycolor {
	--tw-prose-links: hotpink;
	--tw-prose-counters: hotpink;
	--tw-prose-bullets: hotpink;
}

You can take a look at the generated CSS in the minimal repro.

Source: tailwindlabs/tailwindcss-typography