mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
32 lines
682 B
Markdown
32 lines
682 B
Markdown
# Styles
|
|
|
|
Textual provides a large number of *styles* you can use to customize how your app looks and feels. In this chapter will will look at how you can edit styles in your applications.
|
|
|
|
|
|
## Styles object
|
|
|
|
Every widget class in Textual provides a `styles` object which contains a number of writable attributes. Styles define the position and size of a widget, in addition to color, text style, borders, alignment and much more.
|
|
|
|
|
|
|
|
## Box Model
|
|
|
|
|
|
<div class="excalidraw">
|
|
--8<-- "docs/images/styles/box.excalidraw.svg"
|
|
</div>
|
|
|
|
|
|
|
|
|
|
TODO: Styles docs
|
|
|
|
- What are styles
|
|
- Styles object on widgets / app
|
|
- Setting styles via CSS
|
|
- Box model
|
|
- Color / Background
|
|
- Borders / Outline
|
|
|
|
|