Stop defining your CSS variables inside :root and start using @property to create typed CSS variables. This approach enhances debugging, provides implicit data validation, allows animations where applicable, and makes variables available globally with default values.
9 Comments
Sort: