Giter VIP home page Giter VIP logo

Comments (3)

belak avatar belak commented on June 10, 2024

I'm not entirely sure why it doesn't seem to work, but I ran into this a while back when making tweaks. If you change the colors passed in and call base16-theme-define, I'd expect the theme to be updated, but I'm not sure what happens when you redefine faces in a theme.

It's not a very high priority for me, but if you figure it out, I'd be happy to accept a PR that changes how this works if that would make it easier to make theme tweaks in the future.

from base16-emacs.

koddo avatar koddo commented on June 10, 2024

Probably after configuring properties of a theme, it should be re-enabled with enable-theme.

An example:

(use-package base16-theme
  :after org
  :config
  (deftheme ym-base16-theme)

  (progn
    (setq ym-base16-colors (list
			    :base00 "white"      ; Default Background
			    :base01 "grey90"     ; Lighter Background (Used for status bars)
			    :base02 "#d8d8d8"    ; Selection Background
			    :base03 "grey60"     ; Comments, Invisibles, Line Highlighting
			    :base04 "#585858"    ; Dark Foreground (Used for status bars)
			    :base05 "grey25"     ; Default Foreground, Caret, Delimiters, Operators
			    :base06 "#282828"    ; Light Foreground (Not often used)
			    :base07 "#181818"    ; Light Background (Not often used)
			    :base08 "#ab4642"    ; Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
			    :base09 "#dc9656"    ; Integers, Boolean, Constants, XML Attributes, Markup Link Url
			    :base0A "#f7ca88"    ; Classes, Markup Bold, Search Text Background
			    :base0B "#a1b56c"    ; Strings, Inherited Class, Markup Code, Diff Inserted
			    :base0C "#86c1b9"    ; Support, Regular Expressions, Escape Characters, Markup Quotes
			    :base0D "#7cafc2"    ; Functions, Methods, Attribute IDs, Headings
			    :base0E "#ba8baf"    ; Keywords, Storage, Selector, Markup Italic, Diff Changed
			    :base0F "#a16946"    ; Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
			    ))
    (base16-theme-define 'ym-base16-theme ym-base16-colors)
    (enable-theme 'ym-base16-theme)
    )

  ;; temporarily fixing this: https://github.com/belak/base16-emacs/issues/114
  ;; font-lock-comment-delimiter-face should be base03, not base02
  (set-face-attribute 'font-lock-comment-delimiter-face nil :foreground (plist-get ym-base16-colors :base03))
  )

from base16-emacs.

jeffbowman avatar jeffbowman commented on June 10, 2024

You could try calling disable-theme before loading your theme.

example:

(disable-theme 'deeper-blue)
(load-theme 'ym-base16-theme t)

from base16-emacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.