Marimo Theming Management
Project description
Marimo Custom Themes
personalize your experience with marimo
Theme Gallery
coldme
nord
mininini
wigwam
Get Started
pip install motheme
# Initialize themes
mtheme update
# List available themes
mtheme themes
# Apply a theme to specific files
mtheme theme coldme notebook1.py notebook2.py
# Apply theme recursively
mtheme theme coldme -r
Notice
Please note that some parts of the Marimo notebook are not fully exposed for customization at this time. This includes background colors of side panels, cell editors, and the menu. These features may be exposed in a later version of Marimo, allowing for more extensive theme customization.
Usage
-
Requirements: Ensure you are using Marimo version 0.9.14 or higher. It is recommended to keep your Marimo version up-to-date for the best experience.
-
Navigating Themes: Go to the
themesfolder to preview the themes using the provided screenshots. You can directly download the CSS files and place them in a suitable path in your project. To include a custom CSS file inside a notebook, go to the configuration dropdown and add the relative file path to your CSS file in the Custom CSS field. Once saved, you should see the changes applied to your notebook. -
Light and Dark Mode Support: All themes support both light and dark modes and will switch automatically based on your notebook's current theme settings.
Contributing
To contribute your own themes, please follow these guidelines:
-
Refer to Default Arguments: All available arguments are listed in
default.css, which serves as a reference for writing your themes. You can experiment with other arguments, but please note that stability cannot be guaranteed with untested changes. -
Light and Dark Themes: Implement both light and dark themes using the light-dark syntax as demonstrated in
default.css. If you choose not to implement a theme for a specific mode, name your theme asxxx_lightorxxx_darkand use the default values for the respective mode fromdefault.css. -
Folder Structure: After finishing your CSS file, create a new folder inside
themeswith the name of your theme. Within this folder, upload the following:- The CSS file
- Preview images
- An optional
README.mdfile to illustrate your design
-
Design Using Sample: You can design your theme using the
sample.pyfile provided in the repository. This file helps visualize how your theme will look in the Marimo notebook.
Roadmap
- implement this repo as a CLI tool
- improve the sample notebook
- write a program to automatically take a screenshot of the sample notebook with the given css file
- write a notebook to control different parameters and visualize the effects directly in it
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 motheme-0.1.0.tar.gz.
File metadata
- Download URL: motheme-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c4663136a47879337ccc5681658a97a7e0f3deef000ee9010628ccc2f653468
|
|
| MD5 |
79693d436566cdc5bd67d623e92d9e2a
|
|
| BLAKE2b-256 |
ed0c1e8d0569d2330a8b738f4ced2029e7ff86f51503c5d632eb9ce1ab19959a
|
File details
Details for the file motheme-0.1.0-py3-none-any.whl.
File metadata
- Download URL: motheme-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
653cfe14fcca58873f2fd8e4f63cb649a06a6bd24d4fbc3fd2f83d6b55f5c708
|
|
| MD5 |
100681ff32aeb04947dffe576ceb1329
|
|
| BLAKE2b-256 |
5cb4b45e1fb7663232734be35f6a8237afcf64ffae49bcf2250c4dd691483d09
|