-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for custom properties to be defined outside a CSS file #261
Comments
philipbordallo
changed the title
Allow for custom properties to imported or set outside a CSS file.
Allow for custom properties to be defined outside a CSS file
Feb 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently if you define custom properties in a single file, like so:
You gain the ability to:
var
function,This is great but in most circumstance people are not defining their custom properties directly inside a single file. It's more likely that custom properties are defined in another file that gets imported or one that is concatenated by a build step. For example:
As of now, you lose out on all those abilities for the custom properties that you gain when defining them in a single file.
This got me thinking about using Custom Data as means to set custom properties.
Currently you can define a custom property using the
properties
field for Custom Data, but it only gives you the autocompletion when used as a property not a value inside avar
.What if instead there was a separate
customProperties
field that let you define the custom properties with their type, value, and description?And it would be added to the completion list along side any local custom property with the type known.
The text was updated successfully, but these errors were encountered: