API Reference / @gtkx/css
@gtkx/css
Variables
| Variable | Description |
|---|---|
| css | Serializes and inserts GTK4 styles, returning their generated class. |
| cx | Combines class names and merges generated styles. When several generated classes are combined, their declarations merge into one class, and later arguments win on conflicting declarations. As within one css call, nested selectors and @media blocks follow all plain declarations, so an earlier argument's @media rule still overrides a later argument's plain declaration while its query matches. Give the later class its own @media rule when it must win there too: |
| injectGlobal | Inserts unscoped GTK4 styles. |