https://github.com/xuchengpeng/tokyonight-themes
[Unmaintained] Tokyo Night themes for GNU Emacs
https://github.com/xuchengpeng/tokyonight-themes
colorscheme emacs theme tokyo-night tokyonight
Last synced: 4 months ago
JSON representation
[Unmaintained] Tokyo Night themes for GNU Emacs
- Host: GitHub
- URL: https://github.com/xuchengpeng/tokyonight-themes
- Owner: xuchengpeng
- License: mit
- Created: 2024-04-23T06:13:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T06:46:26.000Z (5 months ago)
- Last Synced: 2024-12-16T07:38:25.870Z (5 months ago)
- Topics: colorscheme, emacs, theme, tokyo-night, tokyonight
- Language: Emacs Lisp
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tokyonight-themes
> A clean dark Visual Studio Code theme that celebrates the lights of Downtown [Tokyo at night](https://www.google.com/search?q=tokyo+night&newwindow=1&sxsrf=ACYBGNRiOGCstG_Xohb8CgG5UGwBRpMIQg:1571032079139&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiayIfIhpvlAhUGmuAKHbfRDaIQ_AUIEigB&biw=1280&bih=666&dpr=2).
Tokyo Night theme was firstly published as a plugin for Visual Studio Code, now it has many [other ports](https://github.com/enkia/tokyo-night-vscode-theme#other-ports).
The theme templates adapt from [modus-themes](https://github.com/protesilaos/modus-themes), and the color palettes adapt from [tokyonight.nvim](https://github.com/folke/tokyonight.nvim), these two themes are very popular and awesome with GNU Emacs or [Neovim](https://github.com/neovim/neovim).
This theme has four color palettes, as same sa tokyonight.nvim. I have add support with some popular packages which I often use with GNU Emacs, like Corfu, vertico, orderless, dired, diff-hl, hl-todo, multiple-cursors, symbol-overlay, vundo and so on.
If you like it, clone the theme, and add support for your plugins into the theme code. Also, you can use theme colors in code with `tokyonight-themes-with-colors`.
For example, add support for git-gutter-fr package.
```elisp
(tokyonight-themes-with-colors
(custom-set-faces
`(git-gutter-fr:added ((,c :foreground ,green)))
`(git-gutter-fr:deleted ((,c :foreground ,red)))
`(git-gutter-fr:modified ((,c :foreground ,yellow)))))
```Evaluate the code with a function after loading tokyonight-themes.
If you want to change the color palettes, we have a option for palette overrides. Customize `tokyonight--palette-overrides` before you load the tokyonight-themes, style is an choice with `storm`, `moon`, `night` or `day`.
For example, change the blue and cyan color for tokyonight-day-theme.
```elisp
(setq tokyonight-day-palette-overrides
'((blue . "#2e7de9")
(cyan . "#007197")))
```Basic setup:
1. Get the source:
```bash
git clone https://github.com/xuchengpeng/tokyonight-themes.git ~/.emacs.d/tokyonight-themes
```2. Load the theme in your configuration:
```elisp
(add-to-list 'load-path "~/.emacs.d/tokyonight-themes")
(require 'tokyonight-themes)
(load-theme 'tokyonight-moon :no-confirm)
```