Skip to content
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

[CSS] Advanced CSS units #852

Open
haikyuu opened this issue Jul 23, 2023 · 0 comments
Open

[CSS] Advanced CSS units #852

haikyuu opened this issue Jul 23, 2023 · 0 comments
Labels

Comments

@haikyuu
Copy link
Collaborator

haikyuu commented Jul 23, 2023

It would be useful to make custom CSS units a bit smarter. For example, I'd like to define a gcol unit like so

# doesn't work
global css html 1gcol:repeat(1, minmax(0, 1fr))

# Suggested syntax
global css html 1gcol:repeat($, minmax(0, 1fr))
## This will be used
<span[gtc:12gcol]>

## equivalent to
<span[gtc:repeat(12, minmax(0, 1fr))]>

Using a $ as a placeholder for the unit multiplier is better, since in this example I don't want the 1fr to be interpolated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant