{"id":49115749,"url":"https://github.com/bbatsov/tokyo-night-emacs","last_synced_at":"2026-04-21T07:07:35.855Z","repository":{"id":347529621,"uuid":"1194373514","full_name":"bbatsov/tokyo-night-emacs","owner":"bbatsov","description":"A faithful Emacs port of folke's Tokyo Night color theme","archived":false,"fork":false,"pushed_at":"2026-04-06T06:25:44.000Z","size":1620,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-11T04:41:51.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbatsov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"bbatsov","patreon":"bbatsov","custom":"https://www.paypal.me/bbatsov"}},"created_at":"2026-03-28T09:09:28.000Z","updated_at":"2026-04-06T06:25:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bbatsov/tokyo-night-emacs","commit_stats":null,"previous_names":["bbatsov/emacs-tokyo-themes"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bbatsov/tokyo-night-emacs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbatsov%2Ftokyo-night-emacs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbatsov%2Ftokyo-night-emacs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbatsov%2Ftokyo-night-emacs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbatsov%2Ftokyo-night-emacs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbatsov","download_url":"https://codeload.github.com/bbatsov/tokyo-night-emacs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbatsov%2Ftokyo-night-emacs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32081140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-21T07:07:34.359Z","updated_at":"2026-04-21T07:07:35.841Z","avatar_url":"https://github.com/bbatsov.png","language":"Emacs Lisp","funding_links":["https://github.com/sponsors/bbatsov","https://patreon.com/bbatsov","https://www.paypal.me/bbatsov"],"categories":[],"sub_categories":[],"readme":"# Tokyo Themes for Emacs\n\n[![CI](https://github.com/bbatsov/tokyo-night-emacs/actions/workflows/ci.yml/badge.svg)](https://github.com/bbatsov/tokyo-night-emacs/actions/workflows/ci.yml)\n[![MELPA](https://melpa.org/packages/tokyo-night-badge.svg)](https://melpa.org/#/tokyo-night)\n\nA faithful Emacs port of [folke's Tokyo Night](https://github.com/folke/tokyonight.nvim) color theme.\n\n![Tokyo Storm](screenshots/tokyo-storm.png)\n\nAll four variants are included:\n\n| Theme | Background | Description |\n|-------|-----------|-------------|\n| `tokyo-night` | `#1a1b26` | The darkest variant (default) |\n| `tokyo-night-storm` | `#24283b` | Medium dark |\n| `tokyo-night-moon` | `#222436` | Blue-tinted dark, unique accents |\n| `tokyo-night-day` | `#e1e2e7` | Light variant |\n\n## Installation\n\n### MELPA\n\nTokyo Night is available on [MELPA](https://melpa.org/#/tokyo-night). Assuming\nyou've [configured MELPA](https://melpa.org/#/getting-started) as a package\nsource:\n\n```\nM-x package-install RET tokyo-night RET\n```\n\nThen load any variant:\n\n```emacs-lisp\n(load-theme 'tokyo-night t)\n```\n\nOr with `use-package`:\n\n```emacs-lisp\n(use-package tokyo-night\n  :ensure t\n  :config\n  (load-theme 'tokyo-night t))\n```\n\n### package-vc (Emacs 29+)\n\n```emacs-lisp\n(package-vc-install \"https://github.com/bbatsov/tokyo-night-emacs\")\n(load-theme 'tokyo-night t)\n```\n\n### use-package (Emacs 30+)\n\n```emacs-lisp\n(use-package tokyo-night\n  :vc (:url \"https://github.com/bbatsov/tokyo-night-emacs\" :rev :newest)\n  :config\n  (load-theme 'tokyo-night t))\n```\n\n### Manual\n\nDrop all `.el` files somewhere on your `load-path` and `custom-theme-load-path`, then:\n\n```emacs-lisp\n(load-theme 'tokyo-night t)\n```\n\nReplace `tokyo-night` with `tokyo-night-storm`, `tokyo-night-moon`, or\n`tokyo-night-day` to use a different variant.\n\n## Usage\n\nSwitch between variants interactively with `M-x tokyo-night-select`.\n\nAfter changing customization variables, apply them without restarting\nwith `M-x tokyo-night-reload`.\n\nBrowse the full color palette with `M-x tokyo-night-list-colors`\n(use `C-u` prefix to pick a specific variant).\n\n## Customization\n\nYou can override individual colors without forking:\n\n```emacs-lisp\n(setq tokyo-night-override-colors-alist\n      '((\"tokyo-comment\" . \"#636da6\")))  ; brighter comments\n(load-theme 'tokyo-night t)\n```\n\nOverrides apply to all variants. See the `tokyo-*-colors-alist`\nvariables in `tokyo-night.el` for all available color names.\n\nTo disable scaled headings in org, outline, markdown, shr, and info:\n\n```emacs-lisp\n(setq tokyo-night-scale-headings nil)\n(load-theme 'tokyo-night t)\n```\n\nTo tweak individual scaling factors, use `custom-set-faces` after loading:\n\n```emacs-lisp\n(load-theme 'tokyo-night t)\n(custom-set-faces\n '(org-level-1 ((t (:height 1.5))))\n '(org-level-2 ((t (:height 1.3)))))\n```\n\nFor a more visible current line highlight, use `tokyo-bg-highlight`\ninstead of the default subtle `tokyo-bg-line`:\n\n```emacs-lisp\n(setq tokyo-night-override-colors-alist\n      '((\"tokyo-bg-line\" . \"#292e42\")))  ; same as tokyo-bg-highlight\n(load-theme 'tokyo-night t)\n```\n\n### Per-mode face overrides\n\nIf you want to tweak faces only in specific major modes (without affecting\nall buffers), use `face-remap-add-relative` in a mode hook:\n\n```emacs-lisp\n;; Softer comments in org-mode\n(add-hook 'org-mode-hook\n          (lambda ()\n            (face-remap-add-relative 'font-lock-comment-face\n                                     :foreground \"#636da6\")))\n\n;; Bolder strings in python-mode\n(add-hook 'python-mode-hook\n          (lambda ()\n            (face-remap-add-relative 'font-lock-string-face\n                                     :weight 'bold)))\n\n;; Larger default font in eww\n(add-hook 'eww-mode-hook\n          (lambda ()\n            (face-remap-add-relative 'default :height 1.15)))\n```\n\nThese overrides are buffer-local and won't affect other modes. See\n[Buffer-Local Face Remapping with face-remap-add-relative](https://emacsredux.com/blog/2026/03/16/buffer-local-face-remapping-with-face-remap-add-relative/)\nfor more details.\n\n### Using theme colors in your config\n\nThe `tokyo-night-with-colors` macro binds all palette colors as local\nvariables, so you can reference them without hardcoding hex values:\n\n```emacs-lisp\n(tokyo-night-with-colors\n  (set-face-attribute 'some-face nil :foreground tokyo-blue)\n  (setq pdf-view-midnight-colors (cons tokyo-fg tokyo-bg)))\n```\n\nYou can also look up a single color programmatically:\n\n```emacs-lisp\n(tokyo-night-get-color \"tokyo-blue\")  ; =\u003e \"#7aa2f7\"\n```\n\n### After-load hook\n\nRun custom code every time a Tokyo theme is loaded:\n\n```emacs-lisp\n(add-hook 'tokyo-night-after-load-hook\n          (lambda (_theme)\n            (set-face-attribute 'line-number nil :slant 'italic)))\n```\n\nThe hook function receives the theme name as its argument.\n\n### Automatic light/dark switching\n\nTokyo Night pairs well with packages that switch themes based on the time of\nday or your OS appearance setting:\n\n- [auto-dark](https://github.com/LionyxML/auto-dark-emacs) tracks your OS\n  dark/light mode and switches themes to match:\n\n```emacs-lisp\n(use-package auto-dark\n  :config\n  (setq auto-dark-dark-theme 'tokyo-night\n        auto-dark-light-theme 'tokyo-night-day)\n  (auto-dark-mode 1))\n```\n\n- [circadian](https://github.com/guidoschmidt/circadian.el) switches on a\n  time-based schedule (e.g. sunrise/sunset):\n\n```emacs-lisp\n(use-package circadian\n  :config\n  (setq circadian-themes '((:sunrise . tokyo-night-day)\n                            (:sunset  . tokyo-night)))\n  (circadian-setup))\n```\n\nSee [Automatic Light/Dark Theme Switching](https://emacsredux.com/blog/2026/03/29/automatic-light-dark-theme-switching/)\nfor a deeper look at both approaches.\n\n## Supported Packages\n\nBeyond all built-in Emacs faces, the theme covers these packages:\n\n- **Completion:** vertico, corfu, marginalia, orderless, consult, embark, company, ivy, swiper\n- **Development:** magit, forge, transient, git-commit, git-rebase, eglot, lsp-mode, lsp-ui, flycheck, cider\n- **Editing:** evil, smartparens, rainbow-delimiters, avy, ace-window, hydra, which-key\n- **Email:** mu4e, notmuch\n- **UI:** doom-modeline, treemacs, helpful, markdown-mode, web-mode, elfeed\n\nMissing a package? [Open an issue](https://github.com/bbatsov/tokyo-night-emacs/issues/new?template=feature_request.yml)\nor submit a PR.\n\n## Design\n\nSee [DESIGN.md](DESIGN.md) for the guiding principles behind color\nchoices and face definitions.\n\n## Credits\n\nThe color palette is based on work by [enkia](https://github.com/enkia/tokyo-night-vscode-theme)\nand [folke](https://github.com/folke/tokyonight.nvim).\n\n## License\n\nGPL v3+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbatsov%2Ftokyo-night-emacs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbatsov%2Ftokyo-night-emacs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbatsov%2Ftokyo-night-emacs/lists"}