Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>rueNew to Visual Studio Code? Get it now.
rue

rue

Aaron Meche

| (0) | Free
CSS with nested styles and advanced variables and computation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rue Language for VS Code

Syntax highlighting for .rue files.

Rue is a small stylesheet language for writing CSS with nested selectors, shared variables, inline nested styles, and JavaScript-powered helper functions.

Features

  • Syntax highlighting for .rue files
  • Highlights nested selector blocks
  • Highlights def and _name_ variable declarations
  • Highlights Rue variable calls like _accent_
  • Highlights JavaScript helper functions inside Rue files
  • Highlights CSS properties, values, comments, and selectors

Rue Example

_accent-hue_: 175

func getAccent(sat, light) {
    return "hsl(" + _accent-hue_ + ", " + sat + "%, " + light + "%)"
}

def accent: getAccent(75, 50)
_surface_: getAccent(10, 12)

.card{
    background: _surface_
    color: white
    border: 1px solid _accent_

    .title{
        color: _accent_
        font-weight: 800
    }
}

.actions { display: flex; gap: .75rem; a { color: _accent_; } }

About Rue Variables

Rue treats these two declarations as equivalent:

def accent: royalblue
_accent_: royalblue

Both create a Rue variable that can be referenced with _accent_, and both emit a CSS custom property in the compiled output.

File Extension

Use the .rue extension:

styles.rue

Recommended Usage

Install this extension alongside the Rue npm package:

npm install rue-lang

Then compile Rue files with your app, build tool, or the included Rue compiler.

Links

  • npm: rue-lang
  • Repository: https://github.com/aaron-meche/rue-lang-compiler

Author

Created by Aaron Meche.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft