Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

rbtr-lang-css

CSS support for rbtr. Optional plugin — install with pip install rbtr[css].

What it ingests

One chunk per top-level rule set, keyed by its selector. A rule set is a named collection of property declarations, so it maps to a class (the same shape SQL's CREATE TABLE takes) — as do @media and @keyframes blocks. @charset becomes a config key, @import statements become imports (for cross-language edges), and custom properties become variables.

  • Rule sets & at-rule blocks — body { … }, .header { … }, @media, @keyframes → classes (named by selector; @media carries no name).
  • Directives — @charset → config key.
  • Imports — @import url("reset.css") → an import chunk carrying the referenced path, so an edge links to the imported stylesheet.
  • Custom properties — --brand: #333; → variables.

Chunks produced

name is the selector; scope is the ancestor rule-set selectors for a nested rule set (CSS nesting), else empty.

body { color: #333; }              /* class "body",          scope ""      */
.header { background: blue; }      /* class ".header",       scope ""      */
.card { .title { … } }             /* class ".title",        scope ".card" */
@media (max-width: 600px) { … }    /* class, unnamed                      */
@keyframes slide { … }             /* class "slide"                       */
@import url("reset.css");          /* import, metadata {module: reset.css} */
:root { --brand: #333; }           /* variable "--brand"                   */

Embedded / injected chunks

None. CSS does not embed other languages (it is itself embedded by HTML and the SFC plugins).

Grammar & dependencies

Uses the tree-sitter-css grammar. No dependency on other language plugins; its css_nesting_scope helper is public API that the scss and less plugins reuse.

Metadata

Release files for rbtr-lang-css 2026.9.0.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rbtr-lang-css 2026.9.0.dev1
File Size Uploaded
rbtr_lang_css-2026.9.0.dev1.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rbtr-lang-css 2026.9.0.dev1
File Interpreter ABI Platform
rbtr_lang_css-2026.9.0.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / rbtr_lang_css-2026.9.0.dev1.tar.gz

Download URL rbtr_lang_css-2026.9.0.dev1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
66c7bc9ccd452ff67c79a157eb22ace3fdc2999a2efe5e1956358898e3b9069a
BLAKE2b-256 checksum
How to use checksums
f3875deb2cf66c4b5fd938bff4eb944d960f160ac0c43a3cc4970084cf52ec32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rbtr_lang_css-2026.9.0.dev1-py3-none-any.whl

Download URL rbtr_lang_css-2026.9.0.dev1-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d54eca099493d7f0715454057b63366e17e143a39f5444830a8ae21026ba3dd2
BLAKE2b-256 checksum
How to use checksums
0e6dea2415c00b314722e84ccb2f6e8ad6edb0d8006d0b1a5d5b97c481158923
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page