This repository was archived by the owner on Mar 18, 2025. It is now read-only.
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
Support for styling elements #7
Open
Description
This is possible, as long as you don't write it into a <style> element (Svelte compiles it out, as it finds no element in your HTML tree):
QLabel {
color: red;
}
This would be preferred, as we use elements with names like :
text {
color: red;
}
To achieve this, we'd need to implement a Svelte postprocessor that renames text
to the corresponding underlying component, i.e. QLabel
.
We could work around this using global styles, with the natural caveat that they would be unscoped. For now, the best we can do is:
:global(QLabel) {
color: red;
}
Metadata
Metadata
Assignees
Labels
No labels