Comments (3)
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.
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.
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)
- Weird black block when using global-display-line-numbers-mode HOT 1
- dired mode background color HOT 1
- Face definition by indirection — define base16 named colors, or faces to inherit from? HOT 5
- git changes on fringe HOT 2
- Tomorrow Theme Terminal Colors HOT 3
- ansi-term-color-vector improperly overridden HOT 2
- Warning (comp): base16-theme-pkg.el:7:1: Warning: the function ‘define-package’ is not known HOT 1
- font-lock-comment-delimiter-face = base02, which is for selection background
- Increase selection contrast on tomorrow day theme
- base16-emacs breaks on zoom when global-display-line-numbers-mode HOT 1
- Maintainers outside of base16-project HOT 1
- Add support for `tab-bar`
- Doom Emacs support
- Some colorschemes are missing when compared with base16-vscode HOT 3
- Update base16-theme-256-color-source to use symbols, not strings
- fix command spell mistake in README HOT 2
- Org todo/done faces match some heading faces HOT 2
- Foreground base04 is unreadable on background base03 with onedark theme HOT 4
- Solaire mode support HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base16-emacs.