Metadata-Version: 2.1
Name: motheme
Version: 0.1.1
Summary: Marimo Theming Management
Author-email: eugene <heinereugene@pm.me>
Project-URL: Homepage, https://github.com/metaboulie/marimo-themes
Project-URL: Repository, https://github.com/metaboulie/marimo-themes
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: appdirs>=1.4.4
Requires-Dist: arguably>=1.3.0
Requires-Dist: requests>=2.32.3

# Marimo Custom Themes

> personalize your experience with
> [marimo](https://github.com/marimo-team/marimo)

## Theme Gallery

### <a href="themes/coldme/">coldme</a>

<div style="display: flex; justify-content: space-around; margin-bottom: 20px;">
    <img src="themes/coldme/coldme_light.png" alt="coldme light" width="400" "/>
    <img src="themes/coldme/coldme_dark.png" alt="coldme dark" width="400"/>
</div>

### <a href="themes/nord/">nord</a>

<div style="display: flex; justify-content: space-around; margin-bottom: 20px;">
    <img src="themes/nord/nord_light.png" alt="nord light" width="400" "/>
    <img src="themes/nord/nord_dark.png" alt="nord dark" width="400"/>
</div>

### <a href="themes/mininini/">mininini</a>

<div style="display: flex; justify-content: space-around; margin-bottom: 20px;">
    <img src="themes/mininini/mininini_light.png" alt="mininini light" width="400" "/>
    <img src="themes/mininini/mininini_dark.png" alt="mininini dark" width="400"/>
</div>

### <a href="themes/wigwam/">wigwam</a>

<div style="display: flex; justify-content: space-around; margin-bottom: 20px;">
    <img src="themes/wigwam/wigwam_light.png" alt="wigwam light" width="400" "/>
    <img src="themes/wigwam/wigwam_dark.png" alt="wigwam dark" width="400"/>
</div>

## Get Started

```bash
pip install motheme

# Initialize themes
mtheme update

# List available themes
mtheme themes

# Apply a theme to specific files
mtheme apply coldme notebook1.py notebook2.py

# Apply theme recursively
mtheme apply 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 `themes` folder 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`](themes/default/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 as `xxx_light` or
    `xxx_dark` and use the default values for the respective mode from
    `default.css`.

-   **Folder Structure**: After finishing your CSS file, create a new folder
    inside `themes` with the name of your theme. Within this folder, upload the
    following:

    -   The CSS file
    -   Preview images
    -   An optional `README.md` file to illustrate your design

-   **Design Using Sample**: You can design your theme using the
    [`sample.py`](sample.py) file 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
