File: theme.md

package info (click to toggle)
cmd2 3.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,664 kB
  • sloc: python: 17,488; makefile: 114; sh: 39; javascript: 7
file content (10 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Theme

`cmd2` provides the ability to configure an overall theme for your application using the
[cmd2.rich_utils.set_theme][] function. This is based on the
[rich.theme](https://rich.readthedocs.io/en/stable/reference/theme.html) container for style
information. You can use this to brand your application and set an overall consistent look and feel
that is appealing to your user base.

See [rich_theme.py](https://github.com/python-cmd2/cmd2/blob/main/examples/rich_theme.py) for a
simple example of configuring a custom theme for your `cmd2` application.