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.11.tar.gz (6.7 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.11-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

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

Hashes for marimo_css-0.1.11.tar.gz
Algorithm Hash digest
SHA256 dbd0aaa4088f028a70558f694955f4fcb44c0c8dc9f11a85e053fbdade05a562
MD5 1043a47df83859ea6e12d6aa23f54e6b
BLAKE2b-256 f7b211127df57fb1c33158540e459c38fa25707c2c8dde71dbac6750298324f7

See more details on using hashes here.

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

Hashes for marimo_css-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d39253d3464dd3346848cb05a2a29ce67302d2f1163b95b8988e15d0375da17c
MD5 7b977151361f0369e85d552284cbf9dc
BLAKE2b-256 534022fbe4f6e35cf1cb0a4819bccbdb633e14822df3bd7e33109c3ce2cbd8a9

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