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

Feature request: Support for Dynamic class names/CSS style management #35

Open
zumoshi opened this issue Jul 31, 2024 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@zumoshi
Copy link

zumoshi commented Jul 31, 2024

Currently there is no syntax highlighting, error reporting, auto completion, etc for css blocks as described here:

https://templ.guide/syntax-and-usage/css-style-management#dynamic-class-names

package main

css red() {
	background-color: #ff0000; // <-- No color picker on the left of line numbers, the same way it appears if this was in a .css file.
}

templ button(text string, isPrimary bool) {
	<button class={ red() }>{ text }</button>
}
@joerdav joerdav added enhancement New feature or request help wanted Extra attention is needed labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants