Skip to main content

Write CSS in a marimo notebook

Project description

marimo-css

PyPI version

[!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:

  • @property blocks are at the top level, not nested in a rule
  • @property blocks declare all three descriptors — syntax, inherits, initial-value
  • no raw hex colors — prefer a token
  • every transition with a time value routes through --cfg-motion

Project-wide:

  • every @layer used 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marimo_css-0.1.12.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marimo_css-0.1.12-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file marimo_css-0.1.12.tar.gz.

File metadata

  • Download URL: marimo_css-0.1.12.tar.gz
  • Upload date:
  • Size: 6.8 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

Hashes for marimo_css-0.1.12.tar.gz
Algorithm Hash digest
SHA256 5192c5651f42d2a5c9a0c0825667815ba451f5637bfa68f4f1af031c9ec7b4ae
MD5 c4b73546aa5b4874fbb2562f9d7a04fd
BLAKE2b-256 abd08a4a1adee2cbff2b0eb55caab39b9075b2e3d1261b69ddc2665830b09fee

See more details on using hashes here.

File details

Details for the file marimo_css-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: marimo_css-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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

Hashes for marimo_css-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 52ea2680149faed211642efee17658f9568f2fdcd171a18bba3d7a20ea940e5b
MD5 f6b6de6b37b17af62d2b2a360bb37b71
BLAKE2b-256 730e8672e9a220a7c67601c08c2299c553ecbe948a73f39558de5258544d23b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page