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

interpolation of values to hue not working as espected #883

Open
ericvida opened this issue Jan 2, 2024 · 0 comments
Open

interpolation of values to hue not working as espected #883

ericvida opened this issue Jan 2, 2024 · 0 comments
Assignees
Labels

Comments

@ericvida
Copy link
Member

ericvida commented Jan 2, 2024

Description

I expected the ability to pass a dynamic value to a hue style property, but it does not work as expected.
Here's a code to reproduce the issue, and I attached a Scrimba link.

tag App
	colors = ["rose", "amber", "violet"]
	<self>
		css span px:1em
		<.color-interpolation> # ✅ working
			for item in colors
				<span[bg:{item+3}]> item
		<.hue-interpolation> # ❌ not working
			for item in colors
				<span[hue:{item} bg:hue3]> item

imba.mount <App>

This feature would be useful for switching themes with user input.
Maybe using custom modifiers the preferred method.

Reproduction

https://scrimba.com/scrim/c8pBnzuQ

System Environment

No response

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

2 participants