Skip to content

API Reference / @gtkx/css

@gtkx/css ​

Variables ​

VariableDescription
cssSerializes and inserts GTK4 styles, returning their generated class.
cxCombines 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:
injectGlobalInserts unscoped GTK4 styles.