Browse Source

Merge pull request #3 from Misterio77/master

Create Base16 .yaml scheme template
master
Macoy Madson 6 months ago
committed by GitHub
parent
commit
081ca564c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 62 deletions
  1. +8
    -8
      AutoBase16Theme.py
  2. +0
    -37
      base16-my-auto-theme.el
  3. +20
    -0
      templates/base16-template.yaml
  4. +16
    -16
      templates/emacs-base16-theme-template.el
  5. +1
    -1
      templates/terminator-base16-theme-template

+ 8
- 8
AutoBase16Theme.py View File

@@ -316,14 +316,14 @@ def main(inputColorsFilename, outputTemplateFilename, outputFilename):
outputTemplate = ''.join(outputTemplateFile.readlines())
outputTemplateFile.close()
outputText = outputTemplate.format(base16Colors[0].color, base16Colors[1].color,
base16Colors[2].color, base16Colors[3].color,
base16Colors[4].color, base16Colors[5].color,
base16Colors[6].color, base16Colors[7].color,
base16Colors[8].color, base16Colors[9].color,
base16Colors[10].color, base16Colors[11].color,
base16Colors[12].color, base16Colors[13].color,
base16Colors[14].color, base16Colors[15].color)
outputText = outputTemplate.format((base16Colors[0].color)[1:], (base16Colors[1].color)[1:],
(base16Colors[2].color)[1:], (base16Colors[3].color)[1:],
(base16Colors[4].color)[1:], (base16Colors[5].color)[1:],
(base16Colors[6].color)[1:], (base16Colors[7].color)[1:],
(base16Colors[8].color)[1:], (base16Colors[9].color)[1:],
(base16Colors[10].color)[1:], (base16Colors[11].color)[1:],
(base16Colors[12].color)[1:], (base16Colors[13].color)[1:],
(base16Colors[14].color)[1:], (base16Colors[15].color)[1:])
outputFile = open(outputFilename, 'w')
outputFile.write(outputText)


+ 0
- 37
base16-my-auto-theme.el View File

@@ -1,37 +0,0 @@
;;
;; Custom theme
;;

(require 'base16-theme)

(defvar base16-my-auto-colors
'(:base00 "#000000"
:base01 "#17181b"
:base02 "#302429"
:base03 "#c0c3b9"
:base04 "#423439"
:base05 "#4b4b4b"
:base06 "#755253"
:base07 "#656562"
:base08 "#a2a7a1"
:base09 "#8d646d"
:base0A "#a2a7a1"
:base0B "#c0c3b9"
:base0C "#a2a7a1"
:base0D "#755253"
:base0E "#755253"
:base0F "#a2a7a1")
"All colors for Base16 Macoy are defined here.")

;; Define the theme
(deftheme base16-my-auto)

;; Add all the faces to the theme
(base16-theme-define 'base16-my-auto base16-my-auto-colors)

;; Mark the theme as provided
(provide-theme 'base16-my-auto)

(provide 'base16-my-auto-theme)

;;; base16-my-auto-theme.el ends here

+ 20
- 0
templates/base16-template.yaml View File

@@ -0,0 +1,20 @@
scheme: "auto-generated"
author: "Auto Base16 Theme (https://github.com/makuto/auto-base16-theme/)"

base00: "{}"
base01: "{}"
base02: "{}"
base03: "{}"
base04: "{}"
base05: "{}"
base06: "{}"
base07: "{}"

base08: "{}"
base09: "{}"
base0A: "{}"
base0B: "{}"
base0C: "{}"
base0D: "{}"
base0E: "{}"
base0F: "{}"

emacs-base16-theme-template.el → templates/emacs-base16-theme-template.el View File

@@ -5,22 +5,22 @@
(require 'base16-theme)

(defvar base16-my-auto-colors
'(:base00 "{}"
:base01 "{}"
:base02 "{}"
:base03 "{}"
:base04 "{}"
:base05 "{}"
:base06 "{}"
:base07 "{}"
:base08 "{}"
:base09 "{}"
:base0A "{}"
:base0B "{}"
:base0C "{}"
:base0D "{}"
:base0E "{}"
:base0F "{}")
'(:base00 "#{}"
:base01 "#{}"
:base02 "#{}"
:base03 "#{}"
:base04 "#{}"
:base05 "#{}"
:base06 "#{}"
:base07 "#{}"
:base08 "#{}"
:base09 "#{}"
:base0A "#{}"
:base0B "#{}"
:base0C "#{}"
:base0D "#{}"
:base0E "#{}"
:base0F "#{}")
"All colors for Base16 Macoy are defined here.")

;; Define the theme

terminator-base16-theme-template → templates/terminator-base16-theme-template View File

@@ -13,4 +13,4 @@
[profiles]
[[default]]
cursor_color = "#aaaaaa"
palette = "{}:{}:{}:{}:{}:{}:{}:{}:{}:{}:{}:{}:{}:{}:{}:{}"
palette = "#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}:#{}"

Loading…
Cancel
Save