From 39ad314e7bc8d0774d7c21d254df25df903b4d6d Mon Sep 17 00:00:00 2001 From: MaxAtoms <7847075+MaxAtoms@users.noreply.github.com> Date: Tue, 9 Jan 2024 18:34:58 +0100 Subject: [PATCH] Replace YAML files with TOML Alacritty has switched to TOML. See: https://github.com/alacritty/alacritty/issues/6592 --- README.md | 21 ++++++++------- tokyo-night-storm.toml | 23 ++++++++++++++++ tokyo-night.toml | 23 ++++++++++++++++ tokyo-night.yaml | 59 ------------------------------------------ 4 files changed, 58 insertions(+), 68 deletions(-) create mode 100644 tokyo-night-storm.toml create mode 100644 tokyo-night.toml delete mode 100644 tokyo-night.yaml diff --git a/README.md b/README.md index cda2298..884663c 100644 --- a/README.md +++ b/README.md @@ -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 = [ "/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`. diff --git a/tokyo-night-storm.toml b/tokyo-night-storm.toml new file mode 100644 index 0000000..de4be01 --- /dev/null +++ b/tokyo-night-storm.toml @@ -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" diff --git a/tokyo-night.toml b/tokyo-night.toml new file mode 100644 index 0000000..08940c9 --- /dev/null +++ b/tokyo-night.toml @@ -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" diff --git a/tokyo-night.yaml b/tokyo-night.yaml deleted file mode 100644 index 2cf7a38..0000000 --- a/tokyo-night.yaml +++ /dev/null @@ -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'