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
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rbtr_lang_css-2026.9.0.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_css-2026.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / rbtr_lang_css-2026.9.0.tar.gz
| Download URL | rbtr_lang_css-2026.9.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a198ad7fb71ee814177d5bc8f2fd23da207e359a8879c55765d63be03e492240
|
|
BLAKE2b-256 checksum How to use checksums |
a44f568127874c76e6df5d23c959bd7f0e53a6797a91ab213c0cb4e4b4ef3131
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / rbtr_lang_css-2026.9.0-py3-none-any.whl
| Download URL | rbtr_lang_css-2026.9.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fecbf5b1d6f350918d03dac9b17450297c4584db88676eb901aa6c0cbf22257
|
|
BLAKE2b-256 checksum How to use checksums |
93316c2adb8dbcb42392531d769f0262468e10c75529aba9e386bf50aee96bc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|