#2959·stylus

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.

stylus
@css
  @font-face {
    font-family: '{{ name }}';
  }
@endcss

Proposal

Add @twig as an alias for @css. Same behavior — outputs content literally without Stylus interpretation:

stylus
@twig
  @font-face {
    font-family: '{{ name }}';
  }
@endtwig

When 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 ... @endtwig communicates the pipeline stage
  • No functional change — pure naming improvement

Environment: Stylus v0.64.0