Skip to content

Commit 2e5b71e

Browse files
committed
docs: update example instructions and improve CSS property defaults
1 parent 97df0c7 commit 2e5b71e

File tree

2 files changed

+35
-17
lines changed

2 files changed

+35
-17
lines changed

docs/css-props.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,30 +62,30 @@ These custom properties control spacing, layout, typography, and animation behav
6262

6363
### Layout
6464

65-
| Property | Default | Description |
66-
| :-------------------- | :-------------------------------- | :------------------------------ |
67-
| `--gtt-py` | `0` | Vertical padding for the toast. |
68-
| `--gtt-px` | `0.75em` | Horizontal padding. |
69-
| `--gtt-bg` | `var(--gtt-default-bg)` | Background color. |
70-
| `--gtt-border-color` | `var(--gtt-default-border-color)` | Border color. |
71-
| `--gtt-border-width` | `1px` | Border width. |
72-
| `--gtt-border-style` | `solid` | Border style. |
73-
| `--gtt-border-radius` | `0.375rem` | Border radius. |
65+
| Property | Default | Description |
66+
| :-------------------- | :----------------------------- | :------------------------------ |
67+
| `--gtt-py` | `0` | Vertical padding for the toast. |
68+
| `--gtt-px` | `0.75em` | Horizontal padding. |
69+
| `--gtt-bg` | `--gtt-color-<level>-lightest` | Background color. |
70+
| `--gtt-border-color` | `--gtt-color-<level>-lighter` | Border color. |
71+
| `--gtt-border-width` | `1px` | Border width. |
72+
| `--gtt-border-style` | `solid` | Border style. |
73+
| `--gtt-border-radius` | `0.375rem` | Border radius. |
7474

7575
### Typography
7676

7777
| Property | Default | Description |
7878
| :------------------ | :------------------------- | :----------- |
79-
| `--gtt-color` | `var(--gtt-default-color)` | Text color. |
79+
| `--gtt-color` | `--gtt-color-<level>-dark` | Text color. |
8080
| `--gtt-font` | `inherit` | Font family. |
8181
| `--gtt-font-size` | `1rem` | Font size. |
8282
| `--gtt-line-height` | `1rem` | Line height. |
8383

8484
### Progress Bar
8585

86-
| Property | Default | Description |
87-
| :--------------------- | :---------------------------------- | :--------------------- |
88-
| `--gtt-progress-color` | `var(--gtt-default-progress-color)` | Color of progress bar. |
86+
| Property | Default | Description |
87+
| :--------------------- | :-------------------------- | :--------------------- |
88+
| `--gtt-progress-color` | `--gtt-color-<level>-light` | Color of progress bar. |
8989

9090
### Animation
9191

examples/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,33 @@
22

33
All examples are unified under a single web application.
44

5-
To explore them:
5+
To explore them locally:
66

7-
1. Run the example server:
7+
1. **Clone the repository**
88

99
```bash
10-
go run examples/main.go
10+
git clone https://github.com/indaco/goaster.git
1111
```
1212

13-
2. Open your browser and go to [http://localhost:3000](http://localhost:3000) to view the homepage listing all available examples.
13+
2. **Run the example server**
14+
15+
You can either run it from the project root:
16+
17+
```bash
18+
cd goaster
19+
make dev # or: task dev
20+
```
21+
22+
Or directly from the `examples` directory:
23+
24+
```bash
25+
cd goaster/examples
26+
go run .
27+
```
28+
29+
3. **Open your browser**
30+
31+
Visit [http://localhost:3000](http://localhost:3000) browse the homepage and explore all available examples.
1432

1533
Each example includes:
1634

0 commit comments

Comments
 (0)