Graupl / graupl

The Graupl mono-repo.
1 stars 1 forks source link

Feat: Use @property declarations instead of custom prop fallbacks #78

Closed NickDJM closed 2 months ago

NickDJM commented 6 months ago

Summary

Property declarations for all custom props would make following the trail of variables used way easier.

The only hold up is Firefox doesn't support the @property CSS syntax. Once it does, we should swap.

Solution

https://developer.mozilla.org/en-US/docs/Web/CSS/@property

Additional context

Requires Firefox support before implementation.

NickDJM commented 2 months ago

This only works for custom properties who's value is not a reference to another custom property. Not viable for this project.