-
Notifications
You must be signed in to change notification settings - Fork 26
/
kaolin-themes-lib.el
1966 lines (1737 loc) · 87.5 KB
/
kaolin-themes-lib.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;;; kaolin-themes-lib.el --- Kaolin-themes library, provides common parts for the package. -*- lexical-binding: t; -*-
;;; Commentary:
;;
;; TODO: change :bold and :italic to :weight and :slant
;; NOTE: Emacs in 28 has a built-in versin of color-dark-p
;; TODO: replace all colors with variables
;; TODO: add :extend t to some faces like hl-line
;; TODO: allow modify colors on user side? Using extra map (such as kaolin-themes-user-colors, kaolin-themes-user-faces) to merge
(defun kaolin-themes--color-lab-luminance (color)
"Return the luminance through LAB color space of a color string (e.g. \"#ffaa00\", \"blue\")."
(nth 0 (apply #'color-srgb-to-lab (color-name-to-rgb color))))
(defun kaolin-themes--color-dark-p (color)
"Return t if COLOR (e.g. hex string or name) is dark."
(< (kaolin-themes--color-lab-luminance color) 50))
(defun kaolin-thems--color-light-p (color)
"Return t if COLOR (e.g. hex string or name) is light."
(>= (kaolin-themes--color-lab-luminance color) 50))
;;; Code:
(defconst kaolin-palette
'(
;; Old black
;; (black0 "#181818")
;; (black1 "#1b1b1b")
;; (black2 "#252525")
;; (black3 "#2f2f2f")
;; (black4 "#353535")
;; Black - #020203
(black0 "#161618")
(black1 "#18181B")
(black2 "#222225")
(black3 "#2B2B2F")
(black4 "#303035")
;; Gray - #CED8D9
(gray0 "#353b3c")
(gray1 "#383e3f")
;; (gray2 "#414849") ; old gray
(gray2 "#4b5254")
(gray3 "#545c5e")
(gray4 "#60696b") ; old alt-gray
(gray5 "#697375")
(gray6 "#737d80")
(gray7 "#7c878a") ; old bright-gray
(gray8 "#879193")
(gray9 "#919a9c") ; old light-gray
;; White - #FDFDFF
(white0 "#f2f2f2")
(white1 "#e6e6e8")
(white2 "#d4d4d6")
(white3 "#c9c9cd")
(white4 "#bebec4")
;; Yellow #FFFF00
(yellow0 "#eeeb28")
(yellow1 "#E3D168")
(yellow2 "#a39423") ; dark-yellow
(yellow3 "#eae46a")
(yellow4 "#c8c493" "#ffd7a5")
(yellow5 "#1e1e14") ; old midnight yellow
(yellow6 "#40402E")
(yellow7 "#848468")
(yellow8 "#c5c5a5")
(yellow9 "#EEEED3")
;; Amber #FFBF00
(amber0 "#f3c91f")
(amber1 "#CFB05F")
(amber2 "#91762a")
(amber3 "#eed891")
(amber4 "#c5b378")
(amber5 "#1e1c14")
(amber6 "#403B2E")
(amber7 "#6E6653")
(amber8 "#c7c2af")
(amber9 "#eee6d3")
;; Orange #FF7F00
(orange0 "#e67417")
(orange1 "#dbac66")
(orange2 "#b87e3c")
(orange3 "#f5c791")
;; (orange4 "#e1b079")
(orange4 "#dbb68f")
(orange5 "#1e1914")
(orange6 "#40392E")
(orange7 "#847968")
(orange8 "#c2b4a1") ; grayish-orange
(orange9 "#EEE6D3")
;; Vermilion #FF3F00
(vermilion0 "#F84B1B")
(vermilion1 "#ca6036")
(vermilion2 "#a14223")
(vermilion3 "#ee7042")
(vermilion4 "#cd9575" "#d7af87") ; faded-orange
(vermilion5 "#231610")
(vermilion6 "#40332E")
(vermilion7 "#847068")
(vermilion8 "#bfaa9f")
(vermilion9 "#EEDBD3")
;; Brown #A33C28
(brown0 "#872C19")
(brown1 "#7d6360")
(brown2 "#52413f")
(brown3 "#B08C77")
(brown4 "#B89A88")
(brown5 "#1C1511")
(brown6 "#40332E")
(brown7 "#846B68")
(brown8 "#AEA19E")
(brown9 "#EEDDD3")
;; Red #FF0000
(red0 "#c93237")
(red1 "#cd5c60")
(red2 "#832729")
(red3 "#e84c58")
(red4 "#c86d6d")
(red5 "#1E1414")
(red6 "#402e2e")
(red7 "#846869")
(red8 "#CAABAB")
(red9 "#EED3D7")
;; Crimson #FF003F
(crimson0 "#D6224D")
(crimson1 "#e55c7a")
(crimson2 "#941b37")
(crimson3 "#ef6787") ; light-pink
(crimson4 "#a0586c") ; moderate-pink
(crimson5 "#210E14")
(crimson6 "#402E33")
(crimson7 "#84686E")
(crimson8 "#c5b3b9")
(crimson9 "#EED3DB")
;; Rose/pink #FF007F
(pink0 "#eb3380")
(pink1 "#d24b83")
(pink2 "#9E2256")
(pink3 "#fbaed2")
(pink4 "#c791aa")
;; (pink5 "#210F17")
(pink5 "#1e1419")
;; (pink6 "#402E35")
(pink6 "#513C44")
(pink7 "#846874")
(pink8 "#CAB2BD")
(pink9 "#EED3DF")
;; Cerise #FF00BF
(cerise0 "#e121b1")
(cerise1 "#cf44ac")
(cerise2 "#a31880")
(cerise3 "#e361c3")
(cerise4 "#a9779c")
(cerise5 "#23121c")
(cerise6 "#402E3B")
(cerise7 "#84687D")
(cerise8 "#c7b7c2")
(cerise9 "#EED3EA")
;; Magenta/Fuchsia #FF00FF
(magenta0 "#c932c9")
;; (magenta1 "#cd5ccd")
(magenta1 "#D16BD1")
;; (magenta2 "#563d56")
(magenta2 "#734073")
(magenta3 "#cea2ca") ; light-puprle
;; (magenta4 "#835d83") ; purple
(magenta4 "#845A84") ; purple
(magenta5 "#1a121a") ; old midnight-purple
(magenta6 "#402E40")
(magenta7 "#846884")
(magenta8 "#BFA8BF")
(magenta9 "#EED3EE")
;; Purple #BF00FF
(purple0 "#ab33eb")
(purple1 "#A34BD2")
;; TODO: change
(purple2 "#73229E")
(purple3 "#bc90d4")
(purple4 "#ab98b5")
(purple5 "#1f1623")
(purple6 "#392E40")
(purple7 "#7A6884")
(purple8 "#bcacbf")
(purple9 "#E6D3EE")
;; Violet #7F00FF
(violet0 "#853AE1")
(violet1 "#8B48CF")
(violet2 "#61259e")
(violet3 "#c79af4")
(violet4 "#9d81ba") ; alt-lavender
(violet5 "#1f1926")
(violet6 "#372E40")
(violet7 "#766884")
(violet8 "#B8ABC5")
(violet9 "#E2D3EE")
;; Ultramarine #3F00FF
(ultramarine0 "#554AF5")
(ultramarine1 "#7F77F2")
(ultramarine2 "#6D6487")
(ultramarine3 "#9587DD")
(ultramarine4 "#787096")
(ultramarine5 "#16141e")
;; (ultramarine6 "#322E40")
(ultramarine6 "#2D2C58")
(ultramarine7 "#6E6884")
(ultramarine8 "#b0acc5")
(ultramarine9 "#DBD3EE")
;; Blue #0000FF
(blue0 "#3237CA")
(blue1 "#4246BA")
;; (blue2 "#2C30AB")
(blue2 "#3242A1")
(blue3 "#526AF3")
(blue4 "#807f96") ; old faded-blue
(blue5 "#14141e" black2) ; old alt-midnight-blue
(blue6 "#2E2E40")
(blue7 "#686984")
(blue8 "#A1A0C5")
(blue9 "#D3D7EE")
;; Cerulean #003FFF
;; (cerulean0 "#0e4cd1")
(cerulean0 "#316CED")
(cerulean1 "#3f66ba")
(cerulean2 "#2d4b8c")
(cerulean3 "#4c7de8")
(cerulean4 "#738FD7")
(cerulean5 "#14171e")
(cerulean6 "#2E3340")
(cerulean7 "#687184") ; old grayish-blue
(cerulean8 "#8F97A7")
(cerulean9 "#C6D5E8")
;; Azure #007FFF
(azure0 "#0e70d1")
;; (azure1 "#3f7dba") ; old blue
(azure1 "#3B84CC") ; old blue
(azure2 "#385A82")
(azure3 "#4ca6e8") ; old soft-blue
(azure4 "#53859d") ; old moderate-blue
(azure5 "#14191e")
(azure6 "#2E3740")
(azure7 "#687684")
(azure8 "#8B9AA7")
(azure9 "#D3E4F0")
;; Capri #00BFFF
;; TODO: adjust
(capri0 "#1a9eee")
(capri1 "#2683b5")
(capri2 "#1c5f87")
(capri3 "#41b0f3")
(capri4 "#91b9c7")
(capri5 "#1e2528" black2) ;; old midnight-blue
(capri6 "#2E3940")
(capri7 "#687A84")
(capri8 "#98AAB3")
(capri9 "#D3E6EE")
;; Cyan #00FFFF
;; TODO: #00B7EB
(cyan0 "#0bc9cf")
(cyan1 "#57bfc2")
(cyan2 "#09878b")
(cyan3 "#6bd9db")
;; TODO:
;; (cyan3 "#68d7f3")
(cyan4 "#65a0a1")
;; (cyan5 "#142223")
(cyan5 "#141e1e")
(cyan6 "#2e3f40")
(cyan7 "#688384")
(cyan8 "#A2C5C5")
(cyan9 "#D3EEEE")
;; Teal #00A89D
(teal0 "#0D9C94")
(teal1 "#4d9391")
(teal2 "#1D5E5C")
(teal3 "#49bdb0")
(teal4 "#80bcb6")
(teal5 "#141e1d")
(teal6 "#2E403F")
(teal7 "#5F7A79")
(teal8 "#a4bab9")
(teal9 "#D3EEEC")
;; Aquamarine #00FFBF
(aquamarine0 "#0ed49b")
(aquamarine1 "#47ba99")
(aquamarine2 "#40826d")
(aquamarine3 "#68f3ca")
(aquamarine4 "#709688")
(aquamarine5 "#141e1b")
(aquamarine6 "#2E403B")
(aquamarine7 "#68847C")
(aquamarine8 "#A7C2BA")
(aquamarine9 "#D3EEE6")
;; Spring green #00FF7F
(spring-green0 "#2ae186")
(spring-green1 "#35BF88")
(spring-green2 "#39855f") ; dark
(spring-green3 "#65E6A7")
(spring-green4 "#5D8272") ; faded
(spring-green5 "#141E1A")
(spring-green6 "#2E4038") ; old midnight
(spring-green7 "#688476")
(spring-green8 "#90aea1")
(spring-green9 "#D4EEE3")
;; Erin #00FF3F
(erin0 "#26e356")
(erin1 "#48ca69")
(erin2 "#39854C")
(erin3 "#68f385")
(erin4 "#597a64")
(erin5 "#141e17")
(erin6 "#2E4032")
(erin7 "#526156")
(erin8 "#A8CFB6")
(erin9 "#D3EEDB")
;; Green #00FF00
(green0 "#21e121")
(green1 "#47cc47")
(green2 "#18a318")
;; (green3 "#61e361")
(green3 "#7CF083")
(green4 "#73c66c")
;; (green5 "#111C11")
(green5 "#141e14")
(green6 "#2E402E")
(green7 "#688468")
(green8 "#abc6a8")
(green9 "#D3EED3")
;; Harlequin #3FFF00
(harlequin0 "#58f021")
(harlequin1 "#6FC550")
(harlequin2 "#37A111")
(harlequin3 "#91f368")
(harlequin4 "#60A148")
(harlequin5 "#161E14")
(harlequin6 "#33402E")
(harlequin7 "#6F8468")
(harlequin8 "#b0c6a8")
(harlequin9 "#DBEED3")
;; Chartreuse #7FFF00
(chartreuse0 "#88ee1a")
(chartreuse1 "#92c550")
(chartreuse2 "#5ba111")
(chartreuse3 "#9de346")
(chartreuse4 "#7fa148")
(chartreuse5 "#161E0D")
(chartreuse6 "#38402e")
(chartreuse7 "#788468")
(chartreuse8 "#afbaa2")
(chartreuse9 "#E2EED3")
;; Lime #BFFF00
(lime0 "#aadc13")
(lime1 "#a8c749")
(lime2 "#82a80e")
(lime3 "#c7ee53")
(lime4 "#b9c791")
(lime5 "#1B210E")
(lime6 "#3B402E")
(lime7 "#7D8468")
(lime8 "#b5baa4")
(lime9 "#EAEED3")
;; Named color vars
(italic kaolin-themes-italic)
(bold kaolin-themes-bold)
(underline kaolin-themes-underline)
(underline-style (if kaolin-themes-underline-wave 'wave 'line))
(fg0 white0)
(fg1 white1)
(fg2 white2)
(fg3 white3)
(fg4 white4)
(bg0 black0)
(bg1 black1)
(bg2 black2)
(bg3 black3)
(bg4 black4)
(pane bg0)
(dim-buffer bg0)
(comment gray3)
(comment-alt teal2)
(comment-contrast gray5)
;; TODO:
(kaolin-comment
(pcase kaolin-themes-comments-style
('normal comment)
('alt comment-alt)
('contrast comment-contrast)))
(kaolin-org-heading-size (if kaolin-themes-org-scale-headings 1.1 1.0))
(hl aquamarine3)
(hl-bg comment)
(hl-line (if kaolin-themes-hl-line-colored capri5 bg2))
(hl-indent comment)
(selection bg3)
(pulse spring-green6)
(todo red1)
(done spring-green3)
(adaptive-fg (if (kaolin-themes--color-dark-p bg1) fg1 bg1))
(tooltip-bg bg2)
(tooltip-fg fg2)
(tooltip-hl-bg brown2)
(tooltip-hl-fg amber3)
(rb-match hl)
(rb1 (if kaolin-themes-distinct-parentheses cyan3 cyan3))
(rb2 (if kaolin-themes-distinct-parentheses pink4 purple4))
(rb3 (if kaolin-themes-distinct-parentheses teal0 spring-green4))
(rb4 (if kaolin-themes-distinct-parentheses red1 blue4))
(rb5 (if kaolin-themes-distinct-parentheses green4 teal1))
(rb6 (if kaolin-themes-distinct-parentheses blue8 violet3))
(rb7 (if kaolin-themes-distinct-parentheses orange3 orange8))
(rb8 (if kaolin-themes-distinct-parentheses spring-green3 magenta4))
(rb9 (if kaolin-themes-distinct-parentheses cerise3 violet4))
(diff-add spring-green1)
(diff-mod purple3)
(diff-rem red1)
(diff-bg-add spring-green2)
(diff-bg-mod vermilion4)
(diff-bg-rem crimson4)
(keyword teal1)
(metakey (if kaolin-themes-distinct-metakeys keyword comment))
(builtin teal4)
(header builtin)
(functions builtin)
(str spring-green3)
(str-alt spring-green4)
(doc str-alt)
(type vermilion4)
(var ultramarine4)
(const purple4)
(num red1)
(bool num)
(prep violet4)
(link prep)
;; MAYBE: add orange/yellow background?
(warning orange1)
(err red1)
(keysym prep)
(prompt keyword)
;; Custom buttons
(button amber6)
(button-color keyword)
(button-border (if (kaolin-themes--color-dark-p bg1) gray3 white4))
(button-hl amber3)
;; Mode-line
(line-fg fg3)
(line-inactive comment)
(line-bg1 bg2)
(line-bg2 bg4)
(line-border (if (and (not kaolin-themes-modeline-padded) kaolin-themes-modeline-border) bg4 line-bg1))
(line-box-size (if kaolin-themes-modeline-padded (if (integerp kaolin-themes-modeline-padded) kaolin-themes-modeline-padded 4) 2))
(line-color1 fg1)
(line-color2 builtin)
(segment-active gray8)
(segment-inactive gray3)
(evil-normal keyword)
(evil-insert done)
(evil-visual var)
(evil-replace todo)
(evil-motion warning)
(evil-operator type)
(evil-emacs prep)
(fringe (if kaolin-themes-distinct-fringe bg2 bg1))
(win-border bg3)
(line-num-bg (if kaolin-themes-distinct-fringe bg2 bg1))
(line-num-fg gray3)
(line-num-hl gray9)
(cursor white0)
(company-scroll-bg (if kaolin-themes-distinct-company-scrollbar bg4 bg2))
(company-scroll-fg (if kaolin-themes-distinct-company-scrollbar line-num-hl bg4))
(ivy1 fg1)
(search1 azure3)
(search2 amber3)
(search3 violet3)
;; Easy to use colors
(kaolin-navy blue3)
(kaolin-black bg1)
(kaolin-red err)
(kaolin-green done)
(kaolin-yellow warning)
(kaolin-blue capri3)
(kaolin-magenta magenta3)
(kaolin-cyan cyan3)
(kaolin-white fg1))
)
;; Predefined Kaolin face specifications
(defconst kaolin-faces
`(
;; Font-lock
(font-lock-bracket-face (:foreground rb1))
(font-lock-builtin-face (:foreground builtin))
(font-lock-comment-delimiter-face (:background 'unspecified :foreground kaolin-comment :italic kaolin-themes-italic-comments))
(font-lock-comment-face (:background 'unspecified :foreground kaolin-comment :italic kaolin-themes-italic-comments))
(font-lock-constant-face (:foreground const))
(font-lock-doc-face (:foreground doc))
(font-lock-function-name-face (:foreground functions))
(font-lock-keyword-face (:foreground keyword))
(font-lock-negation-char-face (:foreground err))
(font-lock-number-face (:foreground num))
(font-lock-operator-face (:foreground functions))
(font-lock-preprocessor-face (:foreground prep))
(font-lock-reference-face (:foreground const))
(font-lock-string-face (:foreground str))
(font-lock-type-face (:foreground type))
(font-lock-variable-name-face (:foreground var))
(font-lock-warning-face (:background 'unspecified :foreground warning))
(font-lock-regexp-grouping-construct (:foreground num))
(font-lock-regexp-grouping-backslash (:foreground num))
;; Kaolin faces
(kaolin-themes-boolean (:foreground bool))
;; General
(default (:background bg1 :foreground fg1))
(warning (:foreground warning))
(error (:foreground err))
(shadow (:foreground comment))
(file-name-shadow (:inherit 'shadow))
(region (:background selection :foreground fg4))
(secondary-selection (:background hl-bg :foreground adaptive-fg))
(fringe (:background fringe :foreground fg1))
(cursor (:background cursor))
(vertical-border (:foreground win-border))
(window-divider (:foreground win-border))
(minibuffer-prompt (:background 'unspecified :foreground prompt :bold bold))
(bold (:bold bold))
(italic (:italic italic))
(default-italic (:italic italic))
(bold-italic (:bold bold :italic italic))
(link (:foreground link :underline underline))
(link-visited (:inherit 'link :underline nil))
(success (:background 'unspecified :foreground done))
(escape-glyph (:background 'unspecified :foreground cyan3))
(trailing-whitespace (:background err))
(fill-column-indicator (:foreground bg4))
(menu (:background bg2 :foreground fg2))
(header-line (:background bg1 :foreground num))
(tool-bar (:inherit 'header-line))
(tooltip (:background tooltip-bg :foreground tooltip-fg))
(match (:background 'unspecified :foreground hl))
(isearch (:background 'unspecified :foreground hl :bold bold :underline underline))
(isearch-fail (:background 'unspecified :foreground err))
;; Emacs UI
(package-name (:inherit 'link :underline nil))
(button (:inherit 'link))
(custom-button (:background 'unspecified :foreground button-color :box (:line-width 1 :color button-color :style nil) :height 0.9))
(custom-button-mouse (:inherit 'custom-button :foreground button-hl :box (:line-width 1 :color button-hl :style nil)))
(custom-button-pressed (:inherit 'custom-button :foreground button-hl :box (:line-width 1 :color button-border :style nil)))
(custom-button-unraised (:inherit 'custom-button))
(custom-button-pressed-unraised (:inherit 'custom-button-pressed))
(custom-group-tag (:foreground header :height 1.2 :weight 'bold))
(custom-group-subtitle (:foreground header :height 1.0 :weight 'bold))
(custom-variable-button (:inherit 'button))
(custom-comment (:background hl-bg :foreground fg1))
(custom-comment-tag (:foreground comment))
(custom-documentation (:foreground fg1))
(custom-visibility (:background 'unspecified :foreground functions :underline underline))
(custom-state (:background 'unspecified :foreground str))
(custom-changed (:background 'unspecified :foreground diff-mod))
(custom-set (:background 'unspecified :foreground done))
(custom-themed (:background 'unspecified :foreground done))
(custom-invalid (:background 'unspecified :foreground err))
(custom-variable-tag (:foreground var))
(custom-variable-obsolete (:inherit 'shadow))
(widget-documentation (:background 'unspecified :foreground var))
;; (widget-button (:background nil :foreground keyword))
(widget-button-pressed (:background 'unspecified :foreground builtin))
(widget-field (:background bg3 :foreground fg2 :box (:line-width 2 :color bg4 :style nil)))
(widget-single-line-field (:inherit 'widget-field))
;; Elpaca package manager
(elpaca-blocked (:foreground warning :weight 'bold))
(elpaca-busy (:foreground functions :weight 'bold))
(elpaca-failed (:foreground err :weight 'bold))
(elpaca-finished (:foreground done :weight 'bold))
(elpaca-ui-marked-package (:foreground str :weight 'bold))
;; Dashboard
(dashboard-heading (:foreground header))
(dashboard-navigator (:foreground prep))
(dashboard-footer (:foreground str))
;; Compilation
(compilation-column-number (:foreground fg2))
(compilation-line-number (:foreground num))
(compilation-info (:inherit 'success))
(compilation-warning (:inherit 'warning))
(compilation-error (:inherit 'error :weight 'bold))
(compilation-mode-line-exit (:inherit 'compilation-info))
(compilation-mode-line-fail (:inherit 'compilation-error))
;; Dired
(dired-header (:foreground header :weight 'bold))
(dired-directory (:foreground keyword))
(dired-ignored (:foreground comment))
(dired-flagged (:foreground err))
(dired-mark (:foreground num :weight 'bold))
(dired-marked (:foreground hl :weight 'bold))
(dired-perm-write (:foreground fg1 :underline t))
(dired-symlink (:foreground functions))
(dired-warning (:inherit 'font-lock-warning-face))
;; dired-plus
(diredp-dir-name (:foreground keyword :weight 'bold :strike-through nil))
(diredp-dir-heading (:foreground header :weight 'bold :strike-through nil))
(diredp-file-name (:foreground fg1 :strike-through nil))
(diredp-file-suffix (:foreground const))
(diredp-ignored-file-name (:inherit 'shadow))
(diredp-omit-file-name (:inherit 'shadow))
(diredp-compressed-file-suffix (:foreground comment))
(diredp-symlink (:foreground functions))
(diredp-read-priv (:foreground diff-add))
(diredp-write-priv (:foreground diff-mod))
(diredp-exec-priv (:foreground diff-rem))
(diredp-executable-tag (:foreground diff-rem))
(diredp-rare-priv (:foreground err :weight 'bold))
(diredp-dir-priv (:foreground keyword :weight 'bold))
(diredp-other-priv (:foreground warning))
(diredp-no-priv (:foreground comment))
(diredp-number (:foreground num))
(diredp-date-time (:foreground prep))
(diredp-flag-mark (:background hl-bg :foreground diff-mod))
(diredp-flag-mark-line (:background hl-bg))
(diredp-deletion (:background 'unspecified :foreground err :underline underline))
(diredp-deletion-file-name (:background 'unspecified :foreground err :underline underline))
(diredp-autofile-name (:foreground num :underline underline))
;; diredfl
(diredfl-autofile-name (:foreground num :underline underline))
(diredfl-compressed-file-name (:foreground comment))
(diredfl-compressed-file-suffix (:foreground comment))
(diredfl-date-time (:foreground prep))
(diredfl-deletion (:background 'unspecified :foreground err :underline underline))
(diredfl-deletion-file-name (:background 'unspecified :foreground err :underline underline))
(diredfl-dir-heading (:foreground header :weight 'bold :strike-through nil))
(diredfl-dir-name (:foreground keyword :weight 'bold :strike-through nil))
(diredfl-dir-priv (:foreground keyword :weight 'bold))
(diredfl-exec-priv (:foreground diff-rem))
(diredfl-executable-tag (:foreground diff-rem))
(diredfl-file-name (:foreground fg1 :strike-through nil))
(diredfl-file-suffix (:foreground const))
(diredfl-flag-mark (:background selection :foreground diff-mod))
(diredfl-flag-mark-line (:background selection))
(diredfl-ignored-file-name (:inherit 'shadow))
(diredfl-link-priv (:foreground functions))
(diredfl-no-priv (:foreground comment))
(diredfl-number (:foreground num))
(diredfl-other-priv (:foreground warning))
(diredfl-rare-priv (:foreground err :weight 'bold))
(diredfl-read-priv (:foreground diff-add))
(diredfl-symlink (:foreground functions))
(diredfl-tagged-autofile-name (:foreground num :underline underline))
(diredfl-write-priv (:foreground diff-mod))
;; TODO: ERC - IRC client for Emacs
(erc-timestamp-face (:foreground num))
(erc-error-face (:inherit 'font-lock-error-face))
;; Jabber
(jabber-activity-face (:foreground todo :weight 'bold))
(jabber-activity-personal-face (:foreground str :weight 'bold))
(jabber-chat-error (:foreground err :weight 'bold))
(jabber-chat-prompt-foreign (:foreground const :weight 'bold))
(jabber-chat-prompt-local (:foreground builtin :weight 'bold))
(jabber-chat-prompt-system (:foreground str-alt :weight 'bold))
(jabber-chat-text-foreign (:foreground fg1))
(jabber-chat-text-local (:foreground fg1))
(jabber-rare-time-face (:foreground str-alt))
(jabber-roster-user-away (:foreground warning))
(jabber-roster-user-chatty (:foreground done :weight 'bold))
(jabber-roster-user-dnd (:foreground err))
(jabber-roster-user-error (:foreground err))
(jabber-roster-user-offline (:foreground comment))
(jabber-roster-user-online (:foreground done :weight 'bold))
(jabber-roster-user-xa (:foreground num))
;; Highlighting
(highlight (:background hl-bg :foreground fg1))
(lazy-highlight (:background bg4 :foreground hl))
(hl-line (:background hl-line))
(highlight-numbers-number (:foreground num))
(highlight-quoted-quote (:inherit 'font-lock-builtin-face))
(highlight-quoted-symbol (:inherit 'font-lock-keyword-face))
(highlight-symbol-face (:background bg4))
;; hi-lock
(hi-black-hb (:inherit 'bold))
(hi-aquamarine (:foreground bg1 :background kaolin-cyan))
(hi-blue (:foreground bg1 :background kaolin-blue))
(hi-blue-b (:foreground kaolin-blue :inherit 'bold))
(hi-green (:foreground bg1 :background kaolin-green))
(hi-green-b (:foreground kaolin-green :weight 'bold))
(hi-pink (:foreground bg1 :background kaolin-magenta))
(hi-red-b (:foreground kaolin-red :weight 'bold))
(hi-yellow (:foreground bg1 :background kaolin-yellow))
(hi-salmon (:foreground bg1 :background diff-bg-mod))
;; Highlight indent guides
(highlight-indent-guides-odd-face (:background hl-indent))
(highlight-indent-guides-even-face (:background hl-indent))
(highlight-indent-guides-character-face (:foreground hl-indent))
;; Indent-guide
(indent-guide-face (:foreground hl-indent))
;; Highlighting indentation
(highlight-indentation-face (:background bg2))
(highlight-indentation-current-column-face (:background bg3))
;; Eldoc
(eldoc-highlight-function-argument (:inherit 'font-lock-constant-face))
;; Eldoc-box
(eldoc-box-body (:background tooltip-bg))
(eldoc-box-border (:background bg4))
;; Pulse
(pulse-highlight-start-face (:background pulse))
;; Auto-dim-other-buffers
(auto-dim-other-buffers-face (:background dim-buffer))
;; Linum & nlinum
(linum (:background line-num-bg :foreground line-num-fg :bold nil
:italic nil :underline nil :strike-through nil))
(linum-highlight-face (:background line-num-bg :foreground line-num-hl :bold bold
:italic nil :underline nil :strike-through nil))
(nlinum-current-line (:background line-num-bg :foreground line-num-hl :bold bold
:italic nil :underline nil :strike-through nil))
(linum-relative-current-line (:inherit 'linum-highlight-face))
(nlinum-relative-current-face (:inherit 'nlinum-current-line))
;; Native line numbers
(line-number (:background line-num-bg :foreground line-num-fg :bold nil
:italic nil :underline nil :strike-through nil))
(line-number-current-line (:background line-num-bg :foreground line-num-hl :bold bold
:italic nil :underline nil :strike-through nil))
;; Which-function-mode
(which-func (:foreground orange1))
;; Which-key
(which-key-key-face (:foreground keysym :bold bold))
(which-key-group-description-face (:foreground violet4))
(which-key-local-map-description-face (:foreground azure3))
(which-key-command-description-face (:foreground cyan3))
;; Ruler-mode
(ruler-mode-default (:background bg2 :foreground gray3))
(ruler-mode-column-number (:foreground var))
(ruler-mode-current-column (:foreground orange1))
(ruler-mode-fill-column (:foreground pink1))
(ruler-mode-comment-column (:foreground capri4))
(ruler-mode-fringes (:foreground teal1))
(ruler-mode-pad (:foreground var))
(ruler-mode-tab-stop (:foreground purple4))
(ruler-mode-goal-column (:foreground red0))
;; Message faces
(message-cited-text (:foreground comment))
(message-header-subject (:inherit 'message-header-other :weight 'bold :foreground keyword))
(message-header-to (:inherit 'message-header-other :weight 'bold :foreground const))
(message-header-cc (:inherit 'message-header-to))
(message-header-name (:foreground header))
(message-header-newsgroups (:foreground type :slant 'normal))
(message-header-other (:foreground fg1 :background 'unspecified :weight 'normal))
(message-mml (:foreground comment))
(message-separator (:foreground comment))
;; Notmuch
(notmuch-crypto-decryption (:foreground fg2 :background purple3))
(notmuch-crypto-part-header (:foreground num))
(notmuch-crypto-signature-bad (:foreground fg2 :background err))
(notmuch-crypto-signature-good (:foreground fg2 :background done))
(notmuch-crypto-signature-good-key (:foreground fg2 :background diff-mod))
(notmuch-crypto-signature-unknown (:foreground fg2 :background err))
(notmuch-hello-logo-background (:background bg1))
(notmuch-message-summary-face (:background bg2))
(notmuch-search-date (:foreground var))
(notmuch-search-count (:foreground comment))
(notmuch-search-subject (:foreground fg1))
(notmuch-search-unread-face (:weight 'bold))
(notmuch-search-flagged-face (:foreground hl))
(notmuch-search-matching-authors (:foreground builtin))
(notmuch-search-non-matching-authors (:foreground fg4))
(notmuch-tag-added (:underline diff-add))
(notmuch-tag-deleted (:strike-through diff-rem))
(notmuch-tag-face (:foreground type))
(notmuch-tag-flagged (:foreground hl))
(notmuch-tag-unread (:background warning))
(notmuch-tree-match-face (:foreground fg1))
(notmuch-tree-match-author-face (:weight 'bold :inherit 'notmuch-search-matching-authors))
(notmuch-tree-match-date-face (:weight 'bold :inherit 'notmuch-search-date))
(notmuch-tree-match-subject-face (:inherit 'notmuch-search-subject))
(notmuch-tree-match-tag-face (:inherit 'notmuch-tag-face))
(notmuch-tree-no-match-tree-face (:foreground comment))
(notmuch-tree-no-match-author-face (:inherit 'notmuch-search-matching-authors))
(notmuch-tree-no-match-date-face (:inherit 'notmuch-search-date))
(notmuch-tree-no-match-face (:foreground fg4))
(notmuch-tree-no-match-subject-face (:foreground comment))
(notmuch-tree-no-match-tag-face (:foreground comment))
(notmuch-wash-cited-text (:foreground comment))
(notmuch-wash-toggle-button (:background bg2))
;; Elfeed
(elfeed-search-tag-face (:foreground type))
(elfeed-search-feed-face (:foreground builtin))
(elfeed-search-date-face (:foreground var))
(elfeed-search-filter-face (:foreground keyword))
(elfeed-search-unread-title-face (:foreground fg1))
(elfeed-search-unread-count-face (:foreground str))
;; (elfeed-search-last-update-face (:foreground num))
(elfeed-search-title-face (:foreground comment))
(elfeed-log-date-face (:foreground num))
(elfeed-log-date-fil (:foreground num))
(elfeed-log-info-level-face (:foreground functions))
(elfeed-log-warn-level-face (:foreground warning))
(elfeed-log-debug-level-face (:foreground kaolin-blue))
(elfeed-log-error-level-face (:foreground err))
;; debbugs
(debbugs-gnu-done (:foreground comment))
(debbugs-gnu-forwarded (:foreground kaolin-yellow))
(debbugs-gnu-handled (:foreground done))
(debbugs-gnu-new (:foreground todo))
(debbugs-gnu-pending (:foreground kaolin-cyan))
(debbugs-gnu-stale-1 (:foreground rb1))
(debbugs-gnu-stale-2 (:foreground rb2))
(debbugs-gnu-stale-3 (:foreground rb3))
(debbugs-gnu-stale-4 (:foreground rb4))
(debbugs-gnu-stale-5 (:foreground rb5))
(debbugs-gnu-tagged (:foreground prep))
;; TODO: Newsticker faces
;; Modeline
(mode-line (:background line-bg1 :foreground line-fg :bold nil
:box (:line-width line-box-size :color line-border)))
(mode-line-active (:inherit 'mode-line))
(mode-line-inactive (:background line-bg1 :foreground line-inactive :bold nil
:box (:line-width line-box-size :color line-border)))
(mode-line-buffer-id (:background 'unspecified :foreground line-color2 :bold nil))
(mode-line-highlight (:foreground hl :box nil :bold nil))
(mode-line-emphasis (:foreground hl))
;; Telephone-line
(telephone-line-accent-active (:inherit 'mode-line :background line-bg2 :foreground line-fg))
(telephone-line-accent-inactive (:inherit 'mode-line-inactive :background line-bg1 :foreground line-inactive))
(telephone-line-evil (:inherit 'mode-line))
(telephone-line-evil-normal (:inherit 'telephone-line-evil :background line-bg2 :foreground evil-normal))
(telephone-line-evil-insert (:inherit 'telephone-line-evil :background line-bg2 :foreground evil-insert))
(telephone-line-evil-visual (:inherit 'telephone-line-evil :background line-bg2 :foreground evil-visual))
(telephone-line-evil-replace (:inherit 'telephone-line-evil :background line-bg2 :foreground evil-replace))
(telephone-line-evil-motion (:inherit 'telephone-line-evil :background line-bg2 :foreground evil-motion))
(telephone-line-evil-operator (:inherit 'telephone-line-evil :background line-bg2 :foreground evil-operator))
(telephone-line-evil-emacs (:inherit 'telephone-line-evil :background line-bg2 :foreground evil-emacs))
(telephone-line-projectile (:foreground var))
;; N Λ N O Modeline
(nano-modeline-active (:inherit 'mode-line))
(nano-modeline-active-name (:background line-bg1 :foreground functions))
(nano-modeline-active-primary (:background line-bg1 :foreground str))
(nano-modeline-active-secondary (:background line-bg1 :foreground var))
(nano-modeline-active-status-** (:background line-bg2 :foreground warning))
(nano-modeline-active-status-RO (:background line-bg2 :foreground err))
(nano-modeline-active-status-RW (:background line-bg2 :foreground line-fg))
(nano-modeline-inactive (:inherit 'mode-line-inactive))
;; Doom-modeline
(doom-modeline-bar (:background keyword))
(doom-modeline-inactive-bar (:background line-bg1))
(doom-modeline-evil-normal-state (:foreground evil-normal))
(doom-modeline-evil-insert-state (:foreground evil-insert))
(doom-modeline-evil-visual-state (:foreground evil-visual))
(doom-modeline-evil-replace-state (:foreground evil-replace))
(doom-modeline-evil-motion-state (:foreground evil-motion))
(doom-modeline-evil-operator-state (:foreground evil-operator))
(doom-modeline-evil-emacs-state (:foreground evil-emacs))
(doom-modeline-panel (:background hl :foreground line-bg1))
(doom-modeline-buffer-path (:foreground var))
(doom-modeline-buffer-major-mode (:foreground str))
;; Powerline
(powerline-active0 (:background line-bg2 :foreground line-color1))
(powerline-active1 (:background line-bg2 :foreground line-color2))
(powerline-active2 (:background line-bg1 :foreground line-color2))
(powerline-inactive0 (:inherit 'mode-line-inactive))
(powerline-inactive1 (:inherit 'mode-line-inactive))
(powerline-inactive2 (:inherit 'mode-line-inactive))
;; ;; Spaceline
;; TODO:
(spaceline-highlight-face (:background line-bg2 :foreground hl :bold nil))
;; Smart-mode-line
(sml/line-number (:foreground chartreuse1))
(sml/modes (:foreground magenta4))
(sml/global (:foreground cyan3))
(sml/filename (:foreground teal1))
(sml/charging (:foreground teal1))
(sml/discharging (:foreground red1))
(sml/modified (:foreground spring-green1))
(sml/outside-modified (:background red0 :foreground fg1))
(sml/prefix (:foreground line-fg))
(sml/read-only (:foreground orange1))
;; Highlight TODOs
(fic-face (:background 'unspecified :foreground todo :bold bold))
(fic-author-face (:background 'unspecified :foreground todo :bold bold))
(hl-todo (:background 'unspecified :foreground todo :bold bold))
;; Additional completion
(ac-completion-face (:foreground keyword :underline underline))
(icomplete-first-match (:inherit 'match))
(icompletep-determined (:foreground builtin))
;; info faces
(Info-quoted (:foreground builtin))
(info-quoted-name (:foreground builtin))
(info-string (:foreground str))
(info-menu-star (:foreground err))
(info-index-match (:inherit 'match))
(info-node (:foreground functions))
(info-menu-header (:foreground keyword :weight 'bold :height 1.1))
(info-title-1 (:foreground header :weight 'bold :height 1.3))
(info-title-2 (:foreground header :weight 'bold :height 1.2))
(info-title-3 (:foreground header :weight 'bold :height 1.1))
(info-title-4 (:foreground header :weight 'bold))
;; Helpful
(helpful-heading (:foreground header :weight 'bold :height 1.1))
;; Company
(company-tooltip (:background tooltip-bg :foreground tooltip-fg :bold bold))
(company-tooltip-common (:foreground hl :underline underline))
(company-tooltip-common-selection (:foreground hl :underline underline))
(company-tooltip-selection (:background tooltip-hl-bg :foreground tooltip-hl-fg))
(company-tooltip-mouse (:background bg3 :foreground tooltip-hl-fg))
(company-tooltip-annotation (:foreground doc))
(company-tooltip-search (:background hl :foreground bg1 :distant-foreground fg1))