Skip to content

A lot Skeleton utilities don't actually exist #3417

Open
@rChaoz

Description

@rChaoz

Current Behavior

For example, base-font-color, base-font-size etc., they are documented, and the migration script will use them (e.g. text-token becomes base-font-color), but they don't actually exist. They only exist as CSS variables.

Image

Image

This seems to apply to all of these:

--base-font-color: inherit;
--base-font-color-dark: inherit;
--base-font-family: inherit;
--base-font-size: inherit;
--base-line-height: inherit;
--base-font-weight: inherit;
--base-font-style: inherit;
--base-letter-spacing: inherit;
/* --- */
--heading-font-color: inherit;
--heading-font-color-dark: inherit;
--heading-font-family: inherit;
--heading-font-weight: inherit;
--heading-font-style: inherit;
--heading-letter-spacing: inherit;
/* --- */
--anchor-font-color: inherit;
--anchor-font-color-dark: inherit;
--anchor-font-family: inherit;
--anchor-font-size: inherit;
--anchor-line-height: inherit;
--anchor-font-weight: inherit;
--anchor-font-style: inherit;
--anchor-letter-spacing: inherit;
--anchor-text-decoration: inherit;
--anchor-text-decoration-hover: underline;
--anchor-text-decoration-active: inherit;
--anchor-text-decoration-focus: inherit;

Tailwind is supposed to generate utility classes for everything in @theme, but I'm guessing because they're all inherit it can't tell what they are (colors, dimensions etc.)

Workaround

Use the variables directly, e.g. text-(--base-font-color).

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions