Add @twig as alias for @css
Author: sporteka2Created Jul 23, 2026Updated Jul 23, 2026
Problem
@css blocks pass content through to CSS without Stylus processing. In mixed Twig + Stylus pipelines, the name @css doesn't communicate that the content is Twig-processed template output.
@css
@font-face {
font-family: '{{ name }}';
}
@endcssProposal
Add @twig as an alias for @css. Same behavior — outputs content literally without Stylus interpretation:
@twig
@font-face {
font-family: '{{ name }}';
}
@endtwigWhen Stylus encounters @twig, it treats it identically to @css — the block is passed through as-is.
Why
- Makes intent clear: "this block is Twig output, not raw CSS"
- Readability:
@twig ... @endtwigcommunicates the pipeline stage - No functional change — pure naming improvement
Environment: Stylus v0.64.0
Source: stylus/stylus