Skip to content

Regression in v0.14.7: Font weight reset of defaults in @theme shows errors #1236

Closed
@ADTC

Description

@ADTC

With the update to v0.14.7, the following line, and all lines below it, are showing errors.

--font-weight-*: initial;

Removing the above line also resolves all errors in subsequent lines below it. The CSS itself is valid, and works correctly with Tailwind. This is a problem with the VS Code extension.

Screeshots:

Image Image Image

Regression

This worked fine until v0.14.6 where there were no errors. See screenshot when the older version is installed:

Image

Current workaround: Downgrade to v0.14.6 and disable auto-update until this is resolved.

Additional Information

This doesn't happen with other resets above the font weight reset. I have several others above it, like:

--color-*: initial;
--breakpoint-*: initial;
--radius-*: initial;
--shadow-*: initial;
--font-*: initial;
--font-weight-*: initial; /* <-- Errors in v0.14.7 start here. */

If I move the font weight reset to be the first line in the @theme block, then everything below it gets errors, including all those other resets.

It looks like a parsing problem when there are two words instead of just one. For example, if I change the color reset to --color-test-*: initial; it starts having the same error too.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions