Skip to content

Commit

Permalink
Update themes from upstream
Browse files Browse the repository at this point in the history
Change the update source to the source to the same one that
windowsterminalthemes.dev uses rather than the backup theme file
which is only used if that file cannot be loaded.

https://github.com/atomcorp/themes/blob/master/app/src/App.tsx#L18

Filter out the cursor, selection and credits fields from the source file
to make the diff easier to grok (added back in the following commit).

BREAKING CHANGES:
  - Gruvbox Dark renamed to GruvboxDark.
  - Monokai Octagon renamed to Monokai Pro (Filter Octagon)
  • Loading branch information
joshka committed Oct 3, 2023
1 parent f087371 commit 6059dfb
Show file tree
Hide file tree
Showing 4 changed files with 2,407 additions and 120 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
themes.json:
@./scripts/download_theme.sh backupthemes themes
@./scripts/download_theme.sh \
https://2zrysvpla9.execute-api.eu-west-2.amazonaws.com/prod/themes \
themes

themes_custom.json:
@./scripts/download_theme.sh custom-colour-schemes themes_custom
@./scripts/download_theme.sh \
https://raw.githubusercontent.com/atomcorp/themes/master/app/src/custom-colour-schemes.json \
themes_custom

THEMES.md:
@go run . themes --markdown > THEMES.md
@go run . themes --markdown 2> THEMES.md

all: themes.json themes_custom.json THEMES.md
@echo "Running all"
Expand Down
111 changes: 108 additions & 3 deletions THEMES.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scripts/download_theme.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

curl https://raw.githubusercontent.com/atomcorp/themes/master/app/src/$1.json |
curl $1 |
sed \
-e 's/"purple":/"magenta":/g' \
-e 's/"brightPurple":/"brightMagenta":/g' \
-e 's/selectionBackground/selection/g' \
-e 's/cursorColor/cursor/g' |
jq -c >$2.json
jq 'map(del(.meta.credits,.cursor,.selection))' >$2.json

Loading

0 comments on commit 6059dfb

Please sign in to comment.