This repository demonstrates an uncommon bug encountered when using custom colors and fonts in Tailwind CSS. Despite correctly defining custom colors and fonts within the tailwind.config.js
file, these customizations do not always apply correctly to HTML elements.
npm install
theme-color
and the custom font theme-font
are not applied as expected in index.html
.The elements in index.html
should be styled using the custom theme-color
and theme-font
defined in tailwind.config.js
.
The custom color and font are not applied, and the default styles are used instead.
content
array in tailwind.config.js
preventing Tailwind from scanning for the custom styles.tailwind.config.js
file to make sure the content
array is properly defined and includes the relevant files that define the classes that will be using the custom styling.This bug demonstrates a situation where custom styles may not apply correctly, even if the configurations seem accurate.