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;@mediacarries 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.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_css-2026.9.0.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / rbtr_lang_css-2026.9.0.dev0-py3-none-any.whl
| Download URL | rbtr_lang_css-2026.9.0.dev0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
024f7b62d537ebfec7a44a7718ca4909abf40f03b7a50b61bb284b982b64b0a7
|
|
BLAKE2b-256 checksum How to use checksums |
05760a54be6883edf475455e27253a62f9d5568cad6e336cd3f21d44f8cfc21d
|
| 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}
|