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.dev3
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.dev3.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_css-2026.9.0.dev3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / rbtr_lang_css-2026.9.0.dev3.tar.gz
| Download URL | rbtr_lang_css-2026.9.0.dev3.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3ee856e155cad812d00e03bb8f21bcdbfd456982fe02c126553a9d3b44a51a0
|
|
BLAKE2b-256 checksum How to use checksums |
e165b547ea2a395e1e52b945cfc2eb46f423df4d5df981ffa3ea6f3c60bac859
|
| 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.dev3-py3-none-any.whl
| Download URL | rbtr_lang_css-2026.9.0.dev3-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed3d50fc992ec05dc71ae500c8c282aa400f3bc01860f8c4f379ad69e69ed236
|
|
BLAKE2b-256 checksum How to use checksums |
e951dcc1a797b4cb1e7267707c617231794a5be23363f2fbc206f94a64260a10
|
| 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}
|