We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<css-doodle> --colors: red, blue, green; /* Suppose there's @get() */ color: @pick(@get(--colors)); /* or better? */ colors: @pick(--colors); </css-doodle>
Need to introduce a new function name since @var has been taken already.
@var
#33, #30
The text was updated successfully, but these errors were encountered:
I'm happy to find there's another usage for custom properties via use attribute:
use
<style> css-doodle { /* palette */ --colors: red, blue, green; --rule: ( background-color: @p(var(--colors)); border-color: @pn(var(--colors)); ); } </style> <css-doodle use="var(--rule)"></css-doodle>
Sorry, something went wrong.
Or write css-doodle function inside custom properties:
<style> css-doodle { /* it's like defining a function */ --color: @p(#e4fffe, #a4f6f9, #ff99fe, #ba52ed); --rule: ( /* call the function */ background: var(--color); /* call the function */ border: 2vmin solid var(--color); ); } </style> <css-doodle use="var(--rule)"></css-doodle>
No branches or pull requests
Example
Function name
Need to introduce a new function name since
@var
has been taken already.Related
#33, #30
The text was updated successfully, but these errors were encountered: