This repository was archived by the owner on Feb 18, 2022. It is now read-only.
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
var(...) is not recognized or parsed when used after CSS Modules @value #39
As far as I understand, CSS Modules Values syntax is designed to not break CSS.
Its main syntax (to define a value) is
@value my-color: #ff0000;or@value my-color: #ff0000;. The idea is that variables can be preprocessed into these value definitions, as follows:In this example
postcss-custom-propertiesfails to recognize and parse thevar(--my-red).