Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Apr 23, 2024
1 parent b3df134 commit 02fbde9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/altair-docs/docs/features/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ Environment variables are enabled pretty much everywhere in an Altair window. Ho
```

For example given the environment above, every request sent in Altair would have the `X-Api-Token` header set to `12345`.

**accentColor** - If you specify an `accentColor` in any of the environments (including Global environment), the color you specify there would be used as the accent color for the interface.

```json
{
"accentColor": "#ff0000"
}
```

![altair](/assets/img/docs/environment-accent-color.png)
6 changes: 5 additions & 1 deletion packages/altair-docs/docs/features/theme-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
parent: Features
---

# Multiple Themes
# Customizing the theme

Altair comes with a `light`, `dark` and `dracula` theme. It also allows you specify `system` which would automatically pick either `light` or `dark` theme based on your system color scheme preference. Customize this by specifying `theme` in your [settings](/docs/features/settings-pane). You can also optionally specify `theme.dark` if you want a different theme that will be used if your system color scheme is set to dark mode.

Expand Down Expand Up @@ -34,3 +34,7 @@ Here's an example theme config of a faded blue-green theme in Altair, with trans
![Pale blue-green Altair theme](/assets/img/docs/pale-blue-green-theme.png)

That was nice and easy! And it gets better.. you can publish your theme as [a plugin](/docs/plugins/writing-plugin) so others can also enjoy it!

::: tip Note
You can also customize the accent color of Altair by specifying `accentColor` in your [environment variables](/docs/features/environment-variables#special-environment-variables). This is useful if you wish to switch the accent color based on the environment you are working with.
:::
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 02fbde9

Please sign in to comment.