Skip to content

Commit

Permalink
Add child theme example.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasf committed Jun 27, 2015
1 parent c1fe58d commit 533efce
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions child-theme-example/my-solarized.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(defun my-solarized-theme ()
"My solarized child theme."
(custom-theme-set-faces
theme-name
`(default ((,class (:foreground ,red :background ,base03))))
))

(provide 'my-solarized)
9 changes: 9 additions & 0 deletions child-theme-example/themes/my-solarized-dark-theme.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(require 'solarized)
(require 'my-solarized)

;; This files needs to be places iside the custom-theme-load-path list

(deftheme my-solarized-dark "The light variant of the Solarized colour theme")
(create-solarized-theme 'dark 'my-solarized-dark 'my-solarized)

(provide-theme 'my-solarized-dark)
9 changes: 9 additions & 0 deletions child-theme-example/themes/my-solarized-light-theme.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(require 'solarized)
(require 'my-solarized)

;; This files needs to be places iside the custom-theme-load-path list

(deftheme my-solarized-light "The light variant of the Solarized colour theme")
(create-solarized-theme 'light 'my-solarized-light 'my-solarized-theme)

(provide-theme 'my-solarized-light)

0 comments on commit 533efce

Please sign in to comment.