  'local
  `(line-spacing ,local-theme-line-spacing)
  ;; ansi-color
- `(ansi-color-names-vector [(face-attribute 'default :foreground)
+ `(ansi-color-names-vector [(face-foreground 'default)
                             ,local-theme-color-error
-                            (face-attribute 'default :foreground)
-                            (face-attribute 'default :foreground)
-                            (face-attribute 'default :foreground)
-                            (face-attribute 'default :foreground)
-                            (face-attribute 'default :foreground)
-                            (face-attribute 'default :foreground)])
- ;; beacon
- ;; `(beacon-color ,color-5)
+                            (face-foreground 'default)
+                            (face-foreground 'default)
+                            (face-foreground 'default)
+                            (face-foreground 'default)
+                            (face-foreground 'default)
+                            (face-foreground 'default)])
  ;; coverlay
  `(coverlay:untested-line-background-color "#FFEEF0")
  `(coverlay:tested-line-background-color   "#E6FFED")

 `(default                                 ((t (:height ,local-theme-default-font-height :family ,local-theme-fixed-pitch-font :weight light))))
 `(fixed-pitch                             ((t (:height 1.0 :family ,local-theme-fixed-pitch-font :weight light))))
 `(variable-pitch                          ((t (:height 1.0 :family ,local-theme-variable-pitch-font :weight normal))))
 `(mode-line                               ((t (:height 0.8 :family ,local-theme-variable-pitch-font :background "#E2E3E8" :box (:line-width 4 :color "#E2E3E8")))))
 `(mode-line-inactive                      ((t (:height 0.8 :family ,local-theme-variable-pitch-font :background "#FAFAFA" :box (:line-width 4 :color "#FAFAFA")))))
 `(mode-line-buffer-id                     ((t (:foreground nil :bold t))))
 `(header-line                             ((t (:inherit mode-line))))
 `(header-line-highlight                   ((t (:inherit mode-line-highlight))))
 `(line-number                             ((t (:inherit fixed-pitch))))
 `(line-number-current-line                ((t (:inherit (line-number hl-line) :bold t))))

 `(error                                   ((t (:foreground ,local-theme-color-error))))
 `(success                                 ((t (:foreground ,local-theme-color-success))))

 `(cargo-process--warning-face             ((t (:foreground ,local-theme-color-warning))))
 ;; cider
 `(cider-test-failure-face                 ((t (:background ,local-theme-color-error))))
 `(cider-result-overlay-face               ((t (:background ,(local-theme-darken-default-background)))))
 ;; company
 `(company-tooltip-search                  ((t (:bold t))))
 `(company-tooltip-search-selection        ((t (:bold t))))
 ;; eldoc-posframe
 `(eldoc-posframe-background-face          ((t (:background ,(local-theme-darken-default-background)))))
 ;; eros
 `(eros-result-overlay-face                ((t (:inherit highlight :box nil))))
 ;; haskell-mode
 `(haskell-interactive-face-prompt         ((t (:inherit font-lock-keyword-face))))
 ;; indent-guide
 `(indent-guide-face                       ((t (:inherit fringe))))
 ;; ivy-posframe
 `(ivy-posframe                            ((t (:background ,(local-theme-darken-default-background)))))
 ;; markdown
 `(markdown-header-face                    ((t (:weight normal :italic t))))
 `(markdown-header-face-1                  ((t (:inherit org-level-1))))
