Write CSS in a marimo notebook
Project description
marimo-css
[!WARNING] This is an opinonated personal tool not an official marimo tool - May 2026.
pypi names are forever
Write CSS in a marimo notebook — then extract, lint*, and minify it.
*opinonated checks
Install
pip install marimo-css
Commands
css extract # notebooks → css files
css extract --min # extract, then minify
css lint # lint .css files (project-wide)
css lint path/to.css # lint one file
css minify file.css # strip comments + whitespace → stdout
css check # extract + lint in one pass
extract, check default to ./notebooks/*.py. lint defaults to the
whole project — it finds the root by walking up to pyproject.toml.
What the linter checks
Per file:
@propertyblocks are at the top level, not nested in a rule@propertyblocks declare all three descriptors —syntax,inherits,initial-value- no raw hex colors — prefer a token
- every
transitionwith a time value routes through--cfg-motion
Project-wide:
- every
@layerused in a block is also declared in the layer order - layers declared but never used
- custom properties: declared & used, declared but never used, and used but never declared (the last usually means a typo)
Errors exit non-zero; warnings don't. Full results are written to
css_lint.log.
Exit codes
0 clean or warnings only · 1 one or more errors.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file marimo_css-0.1.11.tar.gz.
File metadata
- Download URL: marimo_css-0.1.11.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux ARM","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbd0aaa4088f028a70558f694955f4fcb44c0c8dc9f11a85e053fbdade05a562
|
|
| MD5 |
1043a47df83859ea6e12d6aa23f54e6b
|
|
| BLAKE2b-256 |
f7b211127df57fb1c33158540e459c38fa25707c2c8dde71dbac6750298324f7
|
File details
Details for the file marimo_css-0.1.11-py3-none-any.whl.
File metadata
- Download URL: marimo_css-0.1.11-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux ARM","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d39253d3464dd3346848cb05a2a29ce67302d2f1163b95b8988e15d0375da17c
|
|
| MD5 |
7b977151361f0369e85d552284cbf9dc
|
|
| BLAKE2b-256 |
534022fbe4f6e35cf1cb0a4819bccbdb633e14822df3bd7e33109c3ce2cbd8a9
|