Back to themes

Doom Emacs

official

Full doom-themes integration with brighter-comments and modeline customization.

Application Doom Emacs Language lisp Category editor

Installation

Copy doom-miozu-theme.el to ~/.doom.d/themes/ and set (setq doom-theme 'doom-miozu) in your config.el.

Configuration

~/.doom.d/themes/doom-miozu-theme.el
;;; doom-miozu-theme.el --- doom-one-theme.el was used as a syntax template -*- lexical-binding: t; no-byte-compile: t; -*-
;;
;; Added: May 10, 2023
;; Author: Nicholas Glazer <https://github.com/nicholasglazer>
;; Maintainer: Nicholas Glazer <https://github.com/nicholasglazer>
;; Source: https://github.com/miozutheme/doom-miozu
;;
;;; Commentary:
;;
;; To achieve harmony, colors were selected using Newton's color wheel, which should reduce eye strain
;; You can read more about it at https://miozu.com/colors
;;
;;; Code:

(require 'doom-themes)

;;
;;; Variables

(defgroup doom-miozu-theme nil
  "Options for the \`doom-miozu' theme."
  :group 'doom-themes)

(defcustom doom-miozu-brighter-modeline nil
  "If non-nil, more vivid colors will be used to style the mode-line."
  :group 'doom-miozu-theme
  :type 'boolean)

(defcustom doom-miozu-brighter-comments nil
  "If non-nil, comments will be highlighted in more vivid colors."
  :group 'doom-miozu-theme
  :type 'boolean)

(defcustom doom-miozu-padded-modeline doom-themes-padded-modeline
  "If non-nil, adds a 4px padding to the mode-line.
Can be an integer to determine the exact padding."
  :group 'doom-miozu-theme
  :type '(choice integer boolean))

;;
;;; Theme definition

(def-doom-theme doom-miozu
  "A dark theme inspired by Atom One Dark."

  ;; name        default   256       16
  ((bg         '("#2C3040" "black"   "black"         ))
   (fg         '("#D0D2DB" "#bfbfbf" "brightwhite"   ))
   (bg-alt     '("#232733" "#282c34" "black"         ))
   (fg-alt     '("#737E99" "#bbc2cf" "white"         ))
   (base0      '("black"   "black"   "black"         ))
   (base1      '("#232733" "#1e1e1e" "brightblack"   ))
   (base2      '("#2C3040" "#2e2e2e" "brightblack"   ))
   (base3      '("#3E4359" "#262626" "brightblack"   ))
   (base4      '("#565E78" "#3f3f3f" "brightblack"   ))
   (base5      '("#737E99" "#525252" "brightblack"   ))
   (base6      '("#D0D2DB" "#6b6b6b" "brightblack"   ))
   (base7      '("#F3F4F7" "#979797" "brightblack"   ))
   (base8      '("#FAFDFB" "#dfdfdf" "white"         ))
   (grey       base4)
   (red        '("#EB3137" "#ff6655" "red"           ))
   (orange     '("#FF9837" "#dd8844" "brightred"     ))
   (green      '("#6DD672" "#99bb66" "green"         ))
   (teal       '("#44b9b1" "#44b9b1" "brightgreen"   ))
   (yellow     '("#E8D176" "#ECBE7B" "yellow"        ))
   (blue       '("#83D2FC" "#51afef" "brightblue"    ))
   (dark-blue  '("#2257A0" "#2257A0" "blue"          ))
   (magenta    '("#C974E6" "#c678dd" "brightmagenta" ))
   (violet     '("#FF9982" "#a9a1e1" "magenta"       ))
   (cyan       '("#40FFE2" "#46D9FF" "brightcyan"    ))
   (dark-cyan  '("#5699AF" "#5699AF" "cyan"          ))
   (highlight      blue)
   (vertical-bar   (doom-darken base1 0.2))
   (selection      dark-blue)
   (builtin        magenta)
   (comments       (if doom-miozu-brighter-comments dark-cyan base4))
   (doc-comments   (doom-lighten (if doom-miozu-brighter-comments dark-cyan base4) 0.25))
   (constants      blue)
   (functions      magenta)
   (keywords       violet)
   (methods        cyan)
   (operators      blue)
   (type           yellow)
   (strings        green)
   (variables      base8)
   (numbers        orange)
   (region         `(,(doom-lighten (car bg-alt) 0.15) ,@(doom-lighten (cdr base1) 0.35)))
   (error          red)
   (warning        yellow)
   (success        green)
   (vc-modified    orange)
   (vc-added       green)
   (vc-deleted     red)
   (modeline-fg              fg)
   (modeline-fg-alt          base5)
   (modeline-bg              (if doom-miozu-brighter-modeline
                                 (doom-darken blue 0.45)
                               (doom-darken bg-alt 0.1)))
   (modeline-bg-alt          (if doom-miozu-brighter-modeline
                                 (doom-darken blue 0.475)
                               `(,(doom-darken (car bg-alt) 0.15) ,@(cdr bg))))
   (modeline-bg-inactive     `(,(car bg-alt) ,@(cdr base1)))
   (modeline-bg-inactive-alt `(,(doom-darken (car bg-alt) 0.1) ,@(cdr bg)))
   (-modeline-pad
    (when doom-miozu-padded-modeline
      (if (integerp doom-miozu-padded-modeline) doom-miozu-padded-modeline 4))))

  ;;;; Base theme face overrides
  (((line-number &override) :foreground base4)
   ((line-number-current-line &override) :foreground fg)
   ((font-lock-comment-face &override)
    :background (if doom-miozu-brighter-comments (doom-lighten bg 0.05)))
   (mode-line
    :background modeline-bg :foreground modeline-fg
    :box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))
   (mode-line-inactive
    :background modeline-bg-inactive :foreground modeline-fg-alt
    :box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg-inactive)))
   (mode-line-emphasis :foreground (if doom-miozu-brighter-modeline base8 highlight)))

  ;;;; Base theme variable overrides-
  ())

;;; doom-miozu-theme.el ends here