Everforest themes for Textual apps
Project description
Packaged Everforest Theme for Textual
This repo provides the Everforest palette as a set of ready-to-register Textual themes (dark and light, hard/medium/soft).
Install
uv add textual-everforest
Usage
from textual.app import App
from textual_everforest.themes import register_everforest_themes
class MyApp(App):
def on_mount(self) -> None:
register_everforest_themes(self)
self.theme = "everforest-dark-hard"
CLI config (no code injection)
This package does not modify your project code. Instead, it can write a small config file that your app can opt into.
Create config in the project root:
uv run textual-everforest --set-default dark
This writes textual-everforest.toml:
[theme]
default = "everforest-dark-hard"
In your app, read and apply it (opt-in):
from pathlib import Path
from textual.app import App
from pathlib import Path
from textual_everforest import apply_theme_from_config
from textual_everforest.themes import register_everforest_themes
class MyApp(App):
def on_mount(self) -> None:
register_everforest_themes(self)
apply_theme_from_config(self, Path.cwd() / "textual-everforest.toml")
Demo
uv run python -m textual_everforest.color_demo_tui_app
Tests
uv run pytest
Build and publish
uv build
uv publish
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 textual_everforest-0.1.0.tar.gz.
File metadata
- Download URL: textual_everforest-0.1.0.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eca6dfb41e0f6c05d4791370ad08d0f718933111993a1bc3a9e475d3de50a9a
|
|
| MD5 |
5f6853e8b73a3148ce9c2fd554e938a3
|
|
| BLAKE2b-256 |
3926844ef2a0b625061ec67d90f5e67ce4a892c579ca4718d69a6d4535c0d24b
|
File details
Details for the file textual_everforest-0.1.0-py3-none-any.whl.
File metadata
- Download URL: textual_everforest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6862ac382c1fa05f43c4d7d74e18b98519bc904fc5bee044987d65400f117f69
|
|
| MD5 |
4955b41ec0a6b8dc5c666d419652c8fd
|
|
| BLAKE2b-256 |
776428e4ab6f2d51f2f73d6cd4ddae8e611c3ac0e2e3975cd76a1aa9ae31a5b7
|