Skip to content

Commit

Permalink
Improve theme related documentation (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo authored Apr 16, 2024
2 parents 297cce8 + ae38c7a commit 1c9b420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/src/content/docs/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ x -> y

**Example**: [Theme attribute](/examples/attributes/theme/)

The default theme to use for the diagrams.
The default theme to use for the diagram.

````md title="src/content/docs/example.md" "theme=102"
```d2 theme=102
Expand All @@ -65,8 +65,8 @@ See the D2 documentation for more information about the available [themes](https

**Example**: [Dark theme attribute](/examples/attributes/dark-theme/)

The dark theme to use for the diagrams when the user's system preference is set to dark mode.
To disable the dark theme and have all diagrams look the same, set this attribute to `'false'`.
The dark theme to use for the diagram when the user's system preference is set to dark mode.
To disable the dark theme for the diagram, set this attribute to `'false'`.

````md title="src/content/docs/example.md" "darkTheme=301"
```d2 darkTheme=301
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ See the D2 documentation for more information about the available [themes](https
**Default:** `'200'`

The dark theme to use for the diagrams when the user's system preference is set to dark mode.
To disable the dark theme and have all diagrams look the same, set this option to `false`.
To disable the dark theme, set this option to `false`.

See the D2 documentation for more information about the available [themes](https://d2lang.com/tour/themes).

0 comments on commit 1c9b420

Please sign in to comment.