0
0
Fork 0
mirror of https://github.com/zatchheems/tokyo-night-alacritty-theme.git synced 2024-09-12 20:28:09 -04:00

Replace YAML files with TOML

Alacritty has switched to TOML.
See: https://github.com/alacritty/alacritty/issues/6592
This commit is contained in:
MaxAtoms 2024-01-09 18:34:58 +01:00
parent 27d8cf01ca
commit 39ad314e7b
No known key found for this signature in database
GPG key ID: 5F2C71F37FED5B9C
4 changed files with 58 additions and 68 deletions

View file

@ -13,15 +13,18 @@ Pull requests welcome.
## Usage
Copy the contents of [tokyo-night.yaml](https://github.com/zatchheems/tokyo-night-alacritty-theme/blob/master/tokyo-night.yaml)
into `~/alacritty/alacritty.yml`, then set:
### Imports
```yaml
# normal dark theme
colors: *tokyo-night
Clone the repository or download the `.toml` files to a directory of your choice.
Add an import of the desired color scheme to your `alacritty.toml`:
# OR:
# "storm" uses a lighter BG color
colors: *tokyo-night-storm
```
import = [ "<PATH-TO-DIR>/tokyo-night.toml" ] # or tokyo-night-storm.toml
```
Make sure to use the absolute path leading to the `.toml` file.
### Manually
Copy the contents of [tokyo-night.toml](https://github.com/zatchheems/tokyo-night-alacritty-theme/blob/master/tokyo-night.toml) or [tokyo-night-storm.toml](https://github.com/zatchheems/tokyo-night-alacritty-theme/blob/master/tokyo-night-storm.toml)
into the root level of your existing `alacritty.toml`.

23
tokyo-night-storm.toml Normal file
View file

@ -0,0 +1,23 @@
[colors.bright]
black = "#444b6a"
blue = "#7da6ff"
cyan = "#0db9d7"
green = "#b9f27c"
magenta = "#bb9af7"
red = "#ff7a93"
white = "#acb0d0"
yellow = "#ff9e64"
[colors.normal]
black = "#32344a"
blue = "#7aa2f7"
cyan = "#449dab"
green = "#9ece6a"
magenta = "#ad8ee6"
red = "#f7768e"
white = "#9699a8"
yellow = "#e0af68"
[colors.primary]
background = "#24283b"
foreground = "#a9b1d6"

23
tokyo-night.toml Normal file
View file

@ -0,0 +1,23 @@
[colors.bright]
black = "#444b6a"
blue = "#7da6ff"
cyan = "#0db9d7"
green = "#b9f27c"
magenta = "#bb9af7"
red = "#ff7a93"
white = "#acb0d0"
yellow = "#ff9e64"
[colors.normal]
black = "#32344a"
blue = "#7aa2f7"
cyan = "#449dab"
green = "#9ece6a"
magenta = "#ad8ee6"
red = "#f7768e"
white = "#787c99"
yellow = "#e0af68"
[colors.primary]
background = "#1a1b26"
foreground = "#a9b1d6"

View file

@ -1,59 +0,0 @@
schemes:
# Tokyo Night theme, based on both:
# https://github.com/ghifarit53/tokyonight-vim
# https://github.com/enkia/tokyo-night-vscode-theme
tokyo-night: &tokyo-night
# Default colors
primary:
background: '#1a1b26'
foreground: '#a9b1d6'
# Normal colors
normal:
black: '#32344a'
red: '#f7768e'
green: '#9ece6a'
yellow: '#e0af68'
blue: '#7aa2f7'
magenta: '#ad8ee6'
cyan: '#449dab'
white: '#787c99'
# Bright colors
bright:
black: '#444b6a'
red: '#ff7a93'
green: '#b9f27c'
yellow: '#ff9e64'
blue: '#7da6ff'
magenta: '#bb9af7'
cyan: '#0db9d7'
white: '#acb0d0'
tokyo-night-storm: &tokyo-night-storm
# Default colors
primary:
background: '#24283b'
foreground: '#a9b1d6'
# Normal colors
normal:
black: '#32344a'
red: '#f7768e'
green: '#9ece6a'
yellow: '#e0af68'
blue: '#7aa2f7'
magenta: '#ad8ee6'
cyan: '#449dab'
white: '#9699a8'
# Bright colors
bright:
black: '#444b6a'
red: '#ff7a93'
green: '#b9f27c'
yellow: '#ff9e64'
blue: '#7da6ff'
magenta: '#bb9af7'
cyan: '#0db9d7'
white: '#acb0d0'