textual-themes 0.15.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- textual_themes-0.15.1/LICENSE +190 -0
- textual_themes-0.15.1/PKG-INFO +412 -0
- textual_themes-0.15.1/README.md +375 -0
- textual_themes-0.15.1/pyproject.toml +92 -0
- textual_themes-0.15.1/setup.cfg +4 -0
- textual_themes-0.15.1/src/textual_themes/__init__.py +214 -0
- textual_themes-0.15.1/src/textual_themes/__main__.py +78 -0
- textual_themes-0.15.1/src/textual_themes/demo.py +926 -0
- textual_themes-0.15.1/src/textual_themes/generator.py +281 -0
- textual_themes-0.15.1/src/textual_themes/palettes.py +1090 -0
- textual_themes-0.15.1/src/textual_themes/py.typed +0 -0
- textual_themes-0.15.1/src/textual_themes/themes.py +158 -0
- textual_themes-0.15.1/src/textual_themes.egg-info/PKG-INFO +412 -0
- textual_themes-0.15.1/src/textual_themes.egg-info/SOURCES.txt +18 -0
- textual_themes-0.15.1/src/textual_themes.egg-info/dependency_links.txt +1 -0
- textual_themes-0.15.1/src/textual_themes.egg-info/entry_points.txt +2 -0
- textual_themes-0.15.1/src/textual_themes.egg-info/requires.txt +17 -0
- textual_themes-0.15.1/src/textual_themes.egg-info/top_level.txt +1 -0
- textual_themes-0.15.1/tests/test_palettes.py +157 -0
- textual_themes-0.15.1/tests/test_themes.py +109 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025 Michael Blaess
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: textual-themes
|
|
3
|
+
Version: 0.15.1
|
|
4
|
+
Summary: 39 retro color themes for Textual TUI apps - vintage 8-bit, terminal, watch, comic-pulp, 80s-pastel, Spielberg-era cinema, reggae and mafia-noir palettes
|
|
5
|
+
Author: Michael Blaess
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/michaelblaess/textual-themes
|
|
8
|
+
Project-URL: Repository, https://github.com/michaelblaess/textual-themes
|
|
9
|
+
Project-URL: Issues, https://github.com/michaelblaess/textual-themes/issues
|
|
10
|
+
Keywords: textual,tui,themes,retro,terminal
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Topic :: Terminals
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: >=3.12
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Provides-Extra: textual
|
|
23
|
+
Requires-Dist: textual>=0.85; extra == "textual"
|
|
24
|
+
Provides-Extra: demo
|
|
25
|
+
Requires-Dist: textual-themes[textual]; extra == "demo"
|
|
26
|
+
Requires-Dist: textual-widgets>=0.32.1; extra == "demo"
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: textual-themes[demo]; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest-xdist>=3.5; extra == "dev"
|
|
33
|
+
Requires-Dist: mypy>=1.8; extra == "dev"
|
|
34
|
+
Requires-Dist: poethepoet>=0.29; extra == "dev"
|
|
35
|
+
Requires-Dist: ruff>=0.3; extra == "dev"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
# textual-themes
|
|
39
|
+
|
|
40
|
+
<p align="center">
|
|
41
|
+
<img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/flags/gb.svg" height="13" alt=""> <b>English</b> ·
|
|
42
|
+
<img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/flags/de.svg" height="13" alt=""> <a href="https://github.com/michaelblaess/textual-themes/blob/d537eb3374b2cb8e2338ba5b947883133020fe39/README.de.md">Deutsch</a>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/banner.jpg" alt="textual-themes - the four-tile logo with terminal windows in different color schemes" width="100%">
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
[](https://github.com/michaelblaess/textual-themes/stargazers)
|
|
52
|
+
[](https://github.com/michaelblaess/textual-themes/network/members)
|
|
53
|
+
[](https://github.com/michaelblaess/textual-themes/issues)
|
|
54
|
+
[](https://github.com/michaelblaess/textual-themes/pulls)
|
|
55
|
+
|
|
56
|
+
[](https://github.com/michaelblaess/textual-themes/commits/main)
|
|
57
|
+
[](https://github.com/michaelblaess/textual-themes/blob/d537eb3374b2cb8e2338ba5b947883133020fe39/LICENSE)
|
|
58
|
+
[](https://www.python.org/)
|
|
59
|
+
[](#gallery)
|
|
60
|
+
|
|
61
|
+
Retro color themes for [Textual](https://textual.textualize.io/) TUI applications.
|
|
62
|
+
|
|
63
|
+
41 carefully crafted themes inspired by classic computers, operating systems, vintage diver watches, comic-book color schemes, 80s pastel, Spielberg-era cinema, motorsport liveries, reggae roots and mafia-noir cinema.
|
|
64
|
+
|
|
65
|
+
> **⚠ Trademark Disclaimer**
|
|
66
|
+
>
|
|
67
|
+
> This is an **independent, fan-made, non-commercial** project. Theme names
|
|
68
|
+
> are descriptive of the visual style only — no third-party trademarks are
|
|
69
|
+
> used as theme names. Any remaining brand reference in descriptive text
|
|
70
|
+
> (e.g. "PETSCII style", "GEM Desktop", "Cinnamon-style") is purely
|
|
71
|
+
> descriptive and not affiliated with, endorsed by, sponsored by, or
|
|
72
|
+
> licensed by the respective trademark owners.
|
|
73
|
+
|
|
74
|
+
## Gallery
|
|
75
|
+
|
|
76
|
+
Click any thumbnail to open the full-size SVG. Screenshots are taken from
|
|
77
|
+
the bundled demo app (`python -m textual_themes`).
|
|
78
|
+
|
|
79
|
+
<table>
|
|
80
|
+
<tr>
|
|
81
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/ascot.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/ascot.svg" width="240" alt="Ascot"></a><br><sub><b>Ascot</b></sub></td>
|
|
82
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/beastie.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/beastie.svg" width="240" alt="Beastie"></a><br><sub><b>Beastie</b></sub></td>
|
|
83
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/bebox.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/bebox.svg" width="240" alt="BeBox"></a><br><sub><b>BeBox</b></sub></td>
|
|
84
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/bluesy.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/bluesy.svg" width="240" alt="Bluesy"></a><br><sub><b>Bluesy</b></sub></td>
|
|
85
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/boing.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/boing.svg" width="240" alt="Boing"></a><br><sub><b>Boing</b></sub></td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tr>
|
|
88
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/brick.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/brick.svg" width="240" alt="Brick"></a><br><sub><b>Brick</b></sub></td>
|
|
89
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/brotkasten.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/brotkasten.svg" width="240" alt="Brotkasten"></a><br><sub><b>Brotkasten</b></sub></td>
|
|
90
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/bunty.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/bunty.svg" width="240" alt="Bunty"></a><br><sub><b>Bunty</b></sub></td>
|
|
91
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/christophorus.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/christophorus.svg" width="240" alt="Christophorus"></a><br><sub><b>Christophorus</b></sub></td>
|
|
92
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/classic-navy.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/classic-navy.svg" width="240" alt="Classic Navy"></a><br><sub><b>Classic Navy</b></sub></td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr>
|
|
95
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/classic-terminal.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/classic-terminal.svg" width="240" alt="Classic Terminal"></a><br><sub><b>Classic Terminal</b></sub></td>
|
|
96
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/clipper.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/clipper.svg" width="240" alt="Clipper"></a><br><sub><b>Clipper</b></sub></td>
|
|
97
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/commandr.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/commandr.svg" width="240" alt="Commandr"></a><br><sub><b>Commandr</b></sub></td>
|
|
98
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/corleone.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/corleone.svg" width="240" alt="Corleone"></a><br><sub><b>Corleone</b></sub></td>
|
|
99
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/crimson.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/crimson.svg" width="240" alt="Crimson"></a><br><sub><b>Crimson</b></sub></td>
|
|
100
|
+
</tr>
|
|
101
|
+
<tr>
|
|
102
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/cupertino.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/cupertino.svg" width="240" alt="Cupertino"></a><br><sub><b>Cupertino</b></sub></td>
|
|
103
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/fifty-eight.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/fifty-eight.svg" width="240" alt="Fifty-Eight"></a><br><sub><b>Fifty-Eight</b></sub></td>
|
|
104
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/flughund.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/flughund.svg" width="240" alt="Flughund"></a><br><sub><b>Flughund</b></sub></td>
|
|
105
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/geeko.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/geeko.svg" width="240" alt="Geeko"></a><br><sub><b>Geeko</b></sub></td>
|
|
106
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/gemstone.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/gemstone.svg" width="240" alt="Gemstone"></a><br><sub><b>Gemstone</b></sub></td>
|
|
107
|
+
</tr>
|
|
108
|
+
<tr>
|
|
109
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/golden-brown.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/golden-brown.svg" width="240" alt="Golden Brown"></a><br><sub><b>Golden Brown</b></sub></td>
|
|
110
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/goldfinder.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/goldfinder.svg" width="240" alt="Goldfinder"></a><br><sub><b>Goldfinder</b></sub></td>
|
|
111
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/goldrunner.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/goldrunner.svg" width="240" alt="Goldrunner"></a><br><sub><b>Goldrunner</b></sub></td>
|
|
112
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/hercules.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/hercules.svg" width="240" alt="Hercules"></a><br><sub><b>Hercules</b></sub></td>
|
|
113
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/hulkula.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/hulkula.svg" width="240" alt="Hulkula"></a><br><sub><b>Hulkula</b></sub></td>
|
|
114
|
+
</tr>
|
|
115
|
+
<tr>
|
|
116
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/joker.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/joker.svg" width="240" alt="Joker"></a><br><sub><b>Joker</b></sub></td>
|
|
117
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/lenseflare.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/lenseflare.svg" width="240" alt="Lenseflare"></a><br><sub><b>Lenseflare</b></sub></td>
|
|
118
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/luna.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/luna.svg" width="240" alt="Luna"></a><br><sub><b>Luna</b></sub></td>
|
|
119
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/marley.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/marley.svg" width="240" alt="Marley"></a><br><sub><b>Marley</b></sub></td>
|
|
120
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/metropolis.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/metropolis.svg" width="240" alt="Metropolis"></a><br><sub><b>Metropolis</b></sub></td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/miami.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/miami.svg" width="240" alt="Miami"></a><br><sub><b>Miami</b></sub></td>
|
|
124
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/minty.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/minty.svg" width="240" alt="Minty"></a><br><sub><b>Minty</b></sub></td>
|
|
125
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/motif.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/motif.svg" width="240" alt="Motif"></a><br><sub><b>Motif</b></sub></td>
|
|
126
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/next.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/next.svg" width="240" alt="Next"></a><br><sub><b>Next</b></sub></td>
|
|
127
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/plan9.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/plan9.svg" width="240" alt="Plan 9"></a><br><sub><b>Plan 9</b></sub></td>
|
|
128
|
+
</tr>
|
|
129
|
+
<tr>
|
|
130
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/platoon.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/platoon.svg" width="240" alt="Platoon"></a><br><sub><b>Platoon</b></sub></td>
|
|
131
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/racing.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/racing.svg" width="240" alt="Racing"></a><br><sub><b>Racing</b></sub></td>
|
|
132
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/razzy.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/razzy.svg" width="240" alt="Razzy"></a><br><sub><b>Razzy</b></sub></td>
|
|
133
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/spiderized.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/spiderized.svg" width="240" alt="Spiderized"></a><br><sub><b>Spiderized</b></sub></td>
|
|
134
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/synthwave.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/synthwave.svg" width="240" alt="Synthwave"></a><br><sub><b>Synthwave</b></sub></td>
|
|
135
|
+
</tr>
|
|
136
|
+
<tr>
|
|
137
|
+
<td align="center"><a href="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/warp.svg"><img src="https://raw.githubusercontent.com/michaelblaess/textual-themes/d537eb3374b2cb8e2338ba5b947883133020fe39/docs/screenshots/warp.svg" width="240" alt="Warp"></a><br><sub><b>Warp</b></sub></td>
|
|
138
|
+
</tr>
|
|
139
|
+
</table>
|
|
140
|
+
|
|
141
|
+
## Themes
|
|
142
|
+
|
|
143
|
+
### Dark Themes
|
|
144
|
+
|
|
145
|
+
| Theme | Style |
|
|
146
|
+
|-------|-------|
|
|
147
|
+
| **Ascot** | Le-Mans racing green with signal yellow, silver and beige text |
|
|
148
|
+
| **Beastie** | Daemon red on dark slate |
|
|
149
|
+
| **BeBox** | Blue-gray with yellow status-bar accent |
|
|
150
|
+
| **Bluesy** | Royal blue with rich yellow-gold accents |
|
|
151
|
+
| **Boing** | Three-color workbench palette: blue/white/orange |
|
|
152
|
+
| **Brotkasten** | Light blue on royal blue, the iconic 8-bit color cast (PETSCII) |
|
|
153
|
+
| **Bunty** | Aubergine with warm orange accents |
|
|
154
|
+
| **Christophorus** | Navy and gold from the Christophorus logo |
|
|
155
|
+
| **Classic Navy** | Deep navy with silver and muted brick-red |
|
|
156
|
+
| **Classic Terminal** | Phosphor-green on black (CRT) |
|
|
157
|
+
| **Commandr** | Blue/cyan/yellow file-manager palette |
|
|
158
|
+
| **Corleone** | Cold mafia-noir — bronze, steel-gray and ash on bluish black |
|
|
159
|
+
| **Crimson** | Deep red on dark charcoal |
|
|
160
|
+
| **Fifty-Eight** | Black dial with aged gold lume + bezel red (vintage diver) |
|
|
161
|
+
| **Flughund** | Midnight black & moonlit blue |
|
|
162
|
+
| **Geeko** | Dark green with white |
|
|
163
|
+
| **Golden Brown** | Warm mafia-noir — antique gold, sepia and parchment on warm black |
|
|
164
|
+
| **Goldfinder** | Deep black with 18K gold accents — villain glamour |
|
|
165
|
+
| **Goldrunner** | Atari-ST shooter palette: golden ship, magenta city, green tiles on black |
|
|
166
|
+
| **Hulkula** | Vivid green rage with steel-gray edges |
|
|
167
|
+
| **Joker** | Comic Gotham villain — royal purple suit, acid-green hair, yellow vest |
|
|
168
|
+
| **Lenseflare** | 80s Spielberg orange-teal bichromatic on twilight blue |
|
|
169
|
+
| **Luna** | Sky-blue task-bar with green start button |
|
|
170
|
+
| **Marley** | Reggae roots palette — black, green, gold and red |
|
|
171
|
+
| **Metropolis** | Bold blue, crimson red and sun yellow primary triad |
|
|
172
|
+
| **Miami** | Pastel 80s — twilight teal, flamingo pink, sunset coral |
|
|
173
|
+
| **Minty** | Warm mint-green on charcoal |
|
|
174
|
+
| **Motif** | Beige slate-gray corporate Unix toolkit |
|
|
175
|
+
| **Next** | Dark gray with magenta accents — workstation-era 3D bevels |
|
|
176
|
+
| **Platoon** | Muted military olive-drab with khaki accent on near-black |
|
|
177
|
+
| **Racing** | Charcoal with deep blue, cherry red and silver stripes |
|
|
178
|
+
| **Razzy** | Raspberry red on dark slate |
|
|
179
|
+
| **Spiderized** | Red & royal-blue hero suit (high-contrast) |
|
|
180
|
+
| **Synthwave** | Deep purple with neon pink and electric cyan |
|
|
181
|
+
| **Warp** | Dark blue with teal accents |
|
|
182
|
+
|
|
183
|
+
### Light Themes
|
|
184
|
+
|
|
185
|
+
| Theme | Style |
|
|
186
|
+
|-------|-------|
|
|
187
|
+
| **Brick** | Olive-green handheld LCD on beige-gray case |
|
|
188
|
+
| **Clipper** | Globe blue on ivory — jet-age livery |
|
|
189
|
+
| **Cupertino** | Clean light gray with blue accents |
|
|
190
|
+
| **Gemstone** | Monochrome GEM Desktop look |
|
|
191
|
+
| **Plan 9** | Pulpy yellow/blue/green |
|
|
192
|
+
|
|
193
|
+
## Installation
|
|
194
|
+
|
|
195
|
+
Add the themes to your own Textual project:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
pip install "textual-themes[textual] @ git+https://github.com/michaelblaess/textual-themes.git"
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
The `textual` extra is what pulls in Textual itself, and nothing else comes
|
|
202
|
+
with it - the themes are plain data.
|
|
203
|
+
|
|
204
|
+
Leave the extra off and you get that data on its own:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
pip install git+https://github.com/michaelblaess/textual-themes.git
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
`textual_themes.palettes` then gives you all 41 palettes with no dependency
|
|
211
|
+
beyond the standard library. That is the way in for anything that wants the
|
|
212
|
+
colours without a TUI framework - a Qt application compiled with Nuitka, a
|
|
213
|
+
static site generator, a script. The theme objects in `textual_themes.themes`
|
|
214
|
+
still need Textual and say so if it is missing.
|
|
215
|
+
|
|
216
|
+
The bundled storybook additionally needs `textual-widgets`, which lives in the
|
|
217
|
+
`demo` extra, so consumers are never forced into that dependency:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
pip install "textual-themes[demo] @ git+https://github.com/michaelblaess/textual-themes.git"
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## Storybook
|
|
224
|
+
|
|
225
|
+
Browse all 41 themes interactively in the bundled storybook. Install it with
|
|
226
|
+
a single command — it sets up an isolated environment and adds a
|
|
227
|
+
`textual-themes-demo` launcher to your PATH:
|
|
228
|
+
|
|
229
|
+
**Linux / macOS**
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
curl -fsSL https://raw.githubusercontent.com/michaelblaess/textual-themes/main/install.sh | bash
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Windows (PowerShell)**
|
|
236
|
+
|
|
237
|
+
```powershell
|
|
238
|
+
irm https://raw.githubusercontent.com/michaelblaess/textual-themes/main/install.ps1 | iex
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Then launch it:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
textual-themes-demo
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Requires Python 3.12+ and `git`. To update later, just run the installer
|
|
248
|
+
again; to remove it, delete `~/.textual-themes` (Linux/macOS) or
|
|
249
|
+
`%LOCALAPPDATA%\textual-themes` (Windows) and the `textual-themes-demo`
|
|
250
|
+
launcher.
|
|
251
|
+
|
|
252
|
+
## Quick Start
|
|
253
|
+
|
|
254
|
+
```python
|
|
255
|
+
from textual.app import App, ComposeResult
|
|
256
|
+
from textual.widgets import Header, Footer, Static
|
|
257
|
+
|
|
258
|
+
from textual_themes import register_all
|
|
259
|
+
|
|
260
|
+
class MyApp(App):
|
|
261
|
+
BINDINGS = [("t", "next_theme", "Theme")]
|
|
262
|
+
|
|
263
|
+
def __init__(self):
|
|
264
|
+
super().__init__()
|
|
265
|
+
register_all(self)
|
|
266
|
+
self.theme = "brotkasten"
|
|
267
|
+
|
|
268
|
+
def compose(self) -> ComposeResult:
|
|
269
|
+
yield Header()
|
|
270
|
+
yield Static("Hello from the past!")
|
|
271
|
+
yield Footer()
|
|
272
|
+
|
|
273
|
+
def action_next_theme(self):
|
|
274
|
+
from textual_themes import RETRO_THEME_NAMES
|
|
275
|
+
names = RETRO_THEME_NAMES
|
|
276
|
+
idx = names.index(self.theme) if self.theme in names else -1
|
|
277
|
+
self.theme = names[(idx + 1) % len(names)]
|
|
278
|
+
|
|
279
|
+
MyApp().run()
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
## Usage
|
|
283
|
+
|
|
284
|
+
### Register all themes at once
|
|
285
|
+
|
|
286
|
+
```python
|
|
287
|
+
from textual_themes import register_all
|
|
288
|
+
|
|
289
|
+
class MyApp(App):
|
|
290
|
+
def __init__(self):
|
|
291
|
+
super().__init__()
|
|
292
|
+
register_all(self) # registers all 41 themes
|
|
293
|
+
self.theme = "boing" # pick one
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Register individual themes
|
|
297
|
+
|
|
298
|
+
```python
|
|
299
|
+
from textual_themes import BROTKASTEN_THEME, CLASSIC_TERMINAL_THEME
|
|
300
|
+
|
|
301
|
+
class MyApp(App):
|
|
302
|
+
def __init__(self):
|
|
303
|
+
super().__init__()
|
|
304
|
+
self.register_theme(BROTKASTEN_THEME)
|
|
305
|
+
self.register_theme(CLASSIC_TERMINAL_THEME)
|
|
306
|
+
self.theme = "classic-terminal"
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### Available constants
|
|
310
|
+
|
|
311
|
+
```python
|
|
312
|
+
from textual_themes import (
|
|
313
|
+
# Individual Theme objects
|
|
314
|
+
BROTKASTEN_THEME,
|
|
315
|
+
BOING_THEME,
|
|
316
|
+
GEMSTONE_THEME,
|
|
317
|
+
CLASSIC_TERMINAL_THEME,
|
|
318
|
+
NEXT_THEME,
|
|
319
|
+
BEBOX_THEME,
|
|
320
|
+
BUNTY_THEME,
|
|
321
|
+
CUPERTINO_THEME,
|
|
322
|
+
LUNA_THEME,
|
|
323
|
+
COMMANDR_THEME,
|
|
324
|
+
PLAN9_THEME,
|
|
325
|
+
MOTIF_THEME,
|
|
326
|
+
WARP_THEME,
|
|
327
|
+
GEEKO_THEME,
|
|
328
|
+
MINTY_THEME,
|
|
329
|
+
CRIMSON_THEME,
|
|
330
|
+
RAZZY_THEME,
|
|
331
|
+
BEASTIE_THEME,
|
|
332
|
+
FIFTY_EIGHT_THEME,
|
|
333
|
+
BLUESY_THEME,
|
|
334
|
+
GOLDFINDER_THEME,
|
|
335
|
+
HULKULA_THEME,
|
|
336
|
+
FLUGHUND_THEME,
|
|
337
|
+
CLASSIC_NAVY_THEME,
|
|
338
|
+
BRICK_THEME,
|
|
339
|
+
CLIPPER_THEME,
|
|
340
|
+
SYNTHWAVE_THEME,
|
|
341
|
+
MIAMI_THEME,
|
|
342
|
+
RACING_THEME,
|
|
343
|
+
METROPOLIS_THEME,
|
|
344
|
+
SPIDERIZED_THEME,
|
|
345
|
+
|
|
346
|
+
# Collections
|
|
347
|
+
RETRO_THEMES, # list[Theme] — all 41 themes
|
|
348
|
+
RETRO_THEME_NAMES, # list[str] — ["brotkasten", "boing", ...]
|
|
349
|
+
THEME_DISPLAY_NAMES, # dict[str, str]
|
|
350
|
+
|
|
351
|
+
# Helper
|
|
352
|
+
register_all, # register_all(app) — registers all themes
|
|
353
|
+
)
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Theme names
|
|
357
|
+
|
|
358
|
+
Use these slugs with `app.theme = "..."`:
|
|
359
|
+
|
|
360
|
+
| Slug | Display |
|
|
361
|
+
|------|---------|
|
|
362
|
+
| `brotkasten` | Brotkasten — Light Blue on Royal Blue |
|
|
363
|
+
| `boing` | Boing — Blue/White/Orange Workbench |
|
|
364
|
+
| `gemstone` | Gemstone — Monochrome GEM Desktop |
|
|
365
|
+
| `classic-terminal` | Classic Terminal — Phosphor Green on Black |
|
|
366
|
+
| `next` | Next — Slate Gray with Magenta Accents |
|
|
367
|
+
| `bebox` | BeBox — Blue-Gray with Yellow Accent |
|
|
368
|
+
| `bunty` | Bunty — Aubergine with Warm Orange Accents |
|
|
369
|
+
| `cupertino` | Cupertino — Clean Light Gray with Blue Accents |
|
|
370
|
+
| `luna` | Luna — Sky Blue with Green Start Accent |
|
|
371
|
+
| `commandr` | Commandr — Blue/Cyan/Yellow File Manager |
|
|
372
|
+
| `plan9` | Plan 9 — Pulpy Yellow/Blue/Green |
|
|
373
|
+
| `motif` | Motif — Beige Corporate Unix Toolkit |
|
|
374
|
+
| `warp` | Warp — Dark Blue with Teal Accents |
|
|
375
|
+
| `geeko` | Geeko — Dark Green with White |
|
|
376
|
+
| `minty` | Minty — Warm Mint-Green on Charcoal |
|
|
377
|
+
| `crimson` | Crimson — Deep Red on Dark Charcoal |
|
|
378
|
+
| `razzy` | Razzy — Raspberry Red on Dark Slate |
|
|
379
|
+
| `beastie` | Beastie — Daemon Red on Dark Slate |
|
|
380
|
+
| `fifty-eight` | Fifty-Eight — Black Dial, Aged Gold Lume & Bezel Red |
|
|
381
|
+
| `bluesy` | Bluesy — Royal Blue & Gold |
|
|
382
|
+
| `goldfinder` | Goldfinder — Deep Black with 18K Gold Accents |
|
|
383
|
+
| `goldrunner` | Goldrunner — Atari-ST Gold on Violet City |
|
|
384
|
+
| `hercules` | Hercules — Amber Phosphor Monochrome |
|
|
385
|
+
| `hulkula` | Hulkula — Verdant Green with Steel Edges |
|
|
386
|
+
| `flughund` | Flughund — Midnight Black & Moonlit Blue |
|
|
387
|
+
| `classic-navy` | Classic Navy |
|
|
388
|
+
| `brick` | Brick — Olive-Green Handheld LCD |
|
|
389
|
+
| `clipper` | Clipper — Globe Blue on Ivory |
|
|
390
|
+
| `synthwave` | Synthwave — 80s Retro-Futurism |
|
|
391
|
+
| `miami` | Miami — Twilight Teal, Flamingo Pink & Sunset Coral |
|
|
392
|
+
| `racing` | Racing — Charcoal with Blue, Red & Silver Stripes |
|
|
393
|
+
| `metropolis` | Metropolis — Bold Blue, Crimson & Sun Yellow |
|
|
394
|
+
| `spiderized` | Spiderized — Red & Royal-Blue Hero Suit |
|
|
395
|
+
| `christophorus` | Christophorus — Navy & Logo Gold |
|
|
396
|
+
|
|
397
|
+
## Requirements
|
|
398
|
+
|
|
399
|
+
- Python >= 3.12
|
|
400
|
+
- Textual >= 0.85
|
|
401
|
+
|
|
402
|
+
## Editing themes
|
|
403
|
+
|
|
404
|
+
To tweak an existing theme or design a new one interactively, try
|
|
405
|
+
[textual-theme-editor](https://github.com/TomJGooding/textual-theme-editor)
|
|
406
|
+
by Tom J Gooding — a standalone visual theme editor for Textual. Install it
|
|
407
|
+
separately (`pip install textual-theme-editor`); it is GPLv3-licensed and not
|
|
408
|
+
a dependency of this package.
|
|
409
|
+
|
|
410
|
+
## License
|
|
411
|
+
|
|
412
|
+
Apache License 2.0 — see [LICENSE](https://github.com/michaelblaess/textual-themes/blob/d537eb3374b2cb8e2338ba5b947883133020fe39/LICENSE).
|