Theme
This function allows you to switch UI color taste out of 24 preset patterns. With this, you will be confident about which OAS document you are editing by colorizing OAS documents depending on, for example, environmental values: local, development, or production.
Switching themes is as easy as writing just a single line of code in an OAS document like shown in the code below:
{
openapi: "3.0.2",
info: {
"x-theme": "red" // Specify a theme name here.
}
}
Light and Dark Modes
Each theme consists of two modes: light and dark. Viron automatically detects which one to apply by referring to the prefers-color-scheme CSS media feature and adjusts colors on the screen to match it. So, for example, if you choose to use a theme of red, your screen will be light-reddish when the light mode is on and dark-reddish when the dark.
Visit here to see how all the colors in a theme look.
List of All the Themes
Here is a list of all the 24 themes with their name and hue value.
- red
- ultimate orange
- orange juice
- amber
- yellow
- limoncello
- radium
- harlequin
- green
- lucent time
- guppie green
- minty paradise
- aqua
- capri
- brescian blue
- rare blue
- blue
- electric ultramarine
- violent violent
- electric purple
- magenta
- brutal pink
- neon rose
- electric crimson
We thank Color Namer for providing us with cool names!