Documentation Index
Fetch the complete documentation index at: https://mintlify.com/davesnx/styled-ppx/llms.txt
Use this file to discover all available pages before exploring further.
%cx and %styled.* support @media and any other CSS at-rule nested inside the declaration block. The %css extension does not — it only accepts a single property: value declaration.
Basic usage
Nest@media directly inside the CSS string, alongside plain declarations:
Interpolation in media queries
Define your breakpoints as module-level string variables and interpolate them with$(...) for a single source of truth across your codebase:
Inside at-rule preludes,
$(...) is treated as a raw string splice — the identifier’s runtime string value is inserted verbatim. This is the same string-like behaviour used for selector interpolation.Supported at-rules
Any standard CSS at-rule is accepted in a declaration block:| At-rule | Example use case |
|---|---|
@media | Responsive breakpoints |
@supports | Feature detection |
@container | Container queries |