more docs

This commit is contained in:
Will McGugan
2022-07-31 08:47:34 +01:00
parent 99ccbc5eb8
commit 0fe4b970f0
11 changed files with 235 additions and 12 deletions

View File

@@ -16,10 +16,10 @@ The `color` rule sets the text color of a Widget.
## CSS
```sass
/* Blue background */
/* Blue text */
color: blue;
/* 20% red backround */
/* 20% red text */
color: red 20%;
/* RGB color */
@@ -31,7 +31,7 @@ color: rgb(100,120,200);
You can use the same syntax as CSS, or explicitly set a Color object.
```python
# Set blue background
# Set blue text
widget.styles.color = "blue"
from textual.color import Color