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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
|
;;; ef-themes.el --- Colorful and legible themes -*- lexical-binding:t -*-
;; Copyright (C) 2022-2025 Free Software Foundation, Inc.
;; Author: Protesilaos Stavrou <info@protesilaos.com>
;; Maintainer: Protesilaos Stavrou <info@protesilaos.com>
;; URL: https://github.com/protesilaos/ef-themes
;; Version: 1.9.0
;; Package-Requires: ((emacs "28.1"))
;; Keywords: faces, theme, accessibility
;; This file is NOT part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;
;; The `ef-themes' are a collection of light and dark themes for GNU
;; Emacs whose goal is to provide colorful ("pretty") yet legible
;; options for users who want something with a bit more flair than the
;; `modus-themes' (also designed by me).
;;
;; "Ef" is a Greek word (ευ), commonly used as a prefix to denote
;; something good, nice, and/or easy. For example, eftopia (ευτοπία)
;; is the opposite of dystopia (δυστοπία): a good place as opposed to
;; a bad place.
;;
;; The backronym of the `ef-themes' is: Eclectic Fashion in Themes
;; Hides Exaggerated Markings, Embellishments, and Sparkles.
;;; Code:
(require 'seq)
(eval-when-compile (require 'subr-x))
(defgroup ef-themes ()
"Colorful and legible themes."
:group 'faces
:link '(info-link "(ef-themes) Top")
:link '(url-link :tag "Homepage" "https://protesilaos.com/emacs/ef-themes")
:link '(url-link :tag "Sample pictures" "https://protesilaos.com/emacs/ef-themes-pictures")
:prefix "ef-themes-"
:tag "Ef Themes")
;;; User options
(defconst ef-themes-light-themes
'(ef-arbutus
ef-cyprus
ef-day
ef-deuteranopia-light
ef-duo-light
ef-eagle
ef-elea-light
ef-frost
ef-kassio
ef-light
ef-maris-light
ef-melissa-light
ef-reverie
ef-spring
ef-summer
ef-trio-light
ef-tritanopia-light)
"List of symbols with the light Ef themes.")
(defconst ef-themes-dark-themes
'(ef-autumn
ef-bio
ef-cherie
ef-dark
ef-deuteranopia-dark
ef-dream
ef-duo-dark
ef-elea-dark
ef-maris-dark
ef-melissa-dark
ef-night
ef-owl
ef-rosa
ef-symbiosis
ef-trio-dark
ef-tritanopia-dark
ef-winter)
"List of symbols with the dark Ef themes.")
(defvaralias 'ef-themes-items 'ef-themes-collection
"Alias of `ef-themes-collection'.")
(defconst ef-themes-collection
(append ef-themes-light-themes ef-themes-dark-themes)
"Symbols of all the Ef themes.")
(defvaralias 'ef-themes-after-load-theme-hook 'ef-themes-post-load-hook
"Alias for `ef-themes-post-load-hook'.")
(defcustom ef-themes-post-load-hook nil
"Hook that runs after loading an Ef theme.
This is used by the commands `ef-themes-select' and
`ef-themes-load-random'."
:type 'hook
:package-version '(ef-themes . "0.2.0")
:group 'ef-themes)
(defcustom ef-themes-disable-other-themes t
"Disable all other themes when loading a Ef theme.
When the value is non-nil, the commands `ef-themes-toggle' and
`ef-themes-select' will disable all other themes while loading
the specified Ef theme. This is done to ensure that Emacs does
not blend two or more themes: such blends lead to awkward results
that undermine the work of the designer.
When the value is nil, the aforementioned commands will only
disable other themes within the Ef collection.
This option is provided because Emacs themes are not necessarily
limited to colors/faces: they can consist of an arbitrary set of
customizations. Users who use such customization bundles must
set this variable to a nil value."
:group 'ef-themes
:package-version '(ef-themes . "0.11.0")
:type 'boolean)
(defcustom ef-themes-to-toggle nil
"Specify two `ef-themes' for `ef-themes-toggle' command.
The variable `ef-themes-collection' contains the symbols of all
themes that form part of this collection."
:type `(choice
(const :tag "No toggle (default)" nil)
(list :tag "Pick two themes to toggle between"
(choice :tag "Theme one of two"
,@(mapcar (lambda (theme)
(list 'const theme))
ef-themes-collection))
(choice :tag "Theme two of two"
,@(mapcar (lambda (theme)
(list 'const theme))
ef-themes-collection))))
:package-version '(ef-themes . "0.3.0")
:group 'ef-themes)
(defcustom ef-themes-to-rotate ef-themes-items
"List of Ef themes to rotate among, per `ef-themes-rotate'."
:type `(repeat (choice
:tag "A theme among the `ef-themes-items'"
,@(mapcar (lambda (theme) (list 'const theme)) ef-themes-items)))
:package-version '(ef-themes . "1.9.0")
:group 'ef-themes)
(defconst ef-themes-weights
'( thin ultralight extralight light semilight regular medium
semibold bold heavy extrabold ultrabold)
"List of font weights.")
(defconst ef-themes--headings-choice
'(set :tag "Properties" :greedy t
(const :tag "Proportionately spaced font (variable-pitch)" variable-pitch)
(choice :tag "Font weight (must be supported by the typeface)"
(const :tag "Bold (default)" nil)
(const :tag "Thin" thin)
(const :tag "Ultra-light" ultralight)
(const :tag "Extra-light" extralight)
(const :tag "Light" light)
(const :tag "Semi-light" semilight)
(const :tag "Regular" regular)
(const :tag "Medium" medium)
(const :tag "Semi-bold" semibold)
(const :tag "Extra-bold" extrabold)
(const :tag "Ultra-bold" ultrabold))
(radio :tag "Height"
(float :tag "Floating point to adjust height by")
(cons :tag "Cons cell of `(height . FLOAT)'"
(const :tag "The `height' key (constant)" height)
(float :tag "Floating point"))))
"Refer to the doc string of `ef-themes-headings'.
This is a helper variable intended for internal use.")
(defcustom ef-themes-headings nil
"Heading styles with optional list of values per heading level.
This is an alist that accepts a (KEY . LIST-OF-VALUES)
combination. The KEY is either a number, representing the
heading's level (0-8) or t, which pertains to the fallback style.
The named keys `agenda-date' and `agenda-structure' apply to the
Org agenda.
Level 0 is used for what counts as a document title or
equivalent, such as the #+title construct we find in Org files.
Levels 1-8 are regular headings.
The LIST-OF-VALUES covers symbols that refer to properties, as
described below. Here is a complete sample with various
stylistic combinations, followed by a presentation of all
available properties:
(setq ef-themes-headings
(quote ((1 light variable-pitch 1.5)
(2 regular 1.3)
(3 1.1)
(agenda-date 1.3)
(agenda-structure variable-pitch light 1.8)
(t variable-pitch))))
By default (a nil value for this variable), all headings have a
bold typographic weight, a font family that is the same as the
`default' face (typically monospaced), and a height that is equal
to the `default' face's height.
- A `variable-pitch' property changes the font family of the
heading to that of the `variable-pitch' face (normally a
proportionately spaced typeface). Also check the `fontaine'
package (by Protesilaos) for tweaking fonts via faces.
- The symbol of a weight attribute adjusts the font of the
heading accordingly, such as `light', `semibold', etc. Valid
symbols are defined in the variable `ef-themes-weights'. The
absence of a weight means that bold will be used by virtue of
inheriting the `bold' face.
- A number, expressed as a floating point (e.g. 1.5), adjusts the
height of the heading to that many times the base font size.
The default height is the same as 1.0, though it need not be
explicitly stated. Instead of a floating point, an acceptable
value can be in the form of a cons cell like (height . FLOAT)
or (height FLOAT), where FLOAT is the given number.
Combinations of any of those properties are expressed as a list,
like in these examples:
(semibold)
(variable-pitch semibold)
(variable-pitch semibold 1.3)
(variable-pitch semibold (height 1.3)) ; same as above
(variable-pitch semibold (height . 1.3)) ; same as above
The order in which the properties are set is not significant.
In user configuration files the form may look like this:
(setq ef-themes-headings
(quote ((1 light variable-pitch 1.5)
(2 regular 1.3)
(3 1.1)
(t variable-pitch))))
When defining the styles per heading level, it is possible to
pass a non-nil non-list value (e.g. t) instead of a list of
properties. This will retain the original aesthetic for that
level. For example:
(setq ef-themes-headings
(quote ((1 . t) ; keep the default style
(2 variable-pitch 1.2)
(t variable-pitch)))) ; style for all other headings
(setq ef-themes-headings
(quote ((1 variable-pitch 1.6)
(2 1.3)
(t . t)))) ; default style for all other levels"
:group 'ef-themes
:package-version '(ef-themes . "0.10.0")
:type `(alist
:options ,(mapcar (lambda (el)
(list el ef-themes--headings-choice))
'(0 1 2 3 4 5 6 7 8 t agenda-date agenda-structure))
:key-type symbol
:value-type ,ef-themes--headings-choice)
:link '(info-link "(ef-themes) Option for headings"))
(defcustom ef-themes-mixed-fonts nil
"Non-nil to enable inheritance from `fixed-pitch' in some faces.
This is done to allow spacing-sensitive constructs, such as Org
tables and code blocks, to remain monospaced when users opt for a
proportionately spaced font as their default or when they use
something like the command `variable-pitch-mode'.
Users may need to explicitly configure the font family of
`fixed-pitch' in order to get a consistent experience with their
typography (also check the `fontaine' package on GNU ELPA (by
Protesilaos))."
:group 'ef-themes
:package-version '(ef-themes . "0.4.0")
:type 'boolean
:link '(info-link "(ef-themes) Enable mixed fonts"))
(defcustom ef-themes-variable-pitch-ui nil
"Use proportional fonts (`variable-pitch') in UI elements.
This includes the mode line, header line, tab bar, and tab line.
Users may need to explicitly configure the font family of
`variable-pitch' in order to get a consistent experience with
their typography (also check the `fontaine' package on GNU
ELPA (by Protesilaos))."
:group 'ef-themes
:package-version '(ef-themes . "0.4.0")
:type 'boolean
:link '(info-link "(ef-themes) UI typeface"))
(make-obsolete-variable 'ef-themes-region nil "1.4.0 (use palette overrides to change region colours)")
(defcustom ef-themes-common-palette-overrides nil
"Set palette overrides for all the Ef themes.
Mirror the elements of a theme's palette, overriding their value.
The palette variables are named THEME-NAME-palette, while
individual theme overrides are THEME-NAME-palette-overrides. The
THEME-NAME is one of the symbols in `ef-themes-collection'.
Individual theme overrides take precedence over these common
overrides.
To preview the palette entries, use `ef-themes-preview-colors' or
`ef-themes-preview-colors-current' (read the documentation for
further details)."
:group 'ef-themes
:package-version '(ef-themes . "1.0.0")
:type '(repeat (list symbol (choice symbol string)))
:link '(info-link "(ef-themes) Palette overrides"))
;;; Helpers for user options
(defun ef-themes--warn (option)
"Warn that OPTION has changed."
(prog1 nil
(display-warning
'ef-themes
(format "`%s' has changed; please read the updated documentation" option)
:warning)))
(defun ef-themes--list-or-warn (option)
"Return list or nil value of OPTION, else `ef-themes--warn'."
(let* ((value (symbol-value option)))
(if (or (null value) (listp value))
value
(ef-themes--warn option))))
(defun ef-themes--fixed-pitch ()
"Conditional application of `fixed-pitch' inheritance."
(when ef-themes-mixed-fonts
(list :inherit 'fixed-pitch)))
(defun ef-themes--variable-pitch-ui ()
"Conditional application of `variable-pitch' in the UI."
(when ef-themes-variable-pitch-ui
(list :inherit 'variable-pitch)))
(defun ef-themes--property-lookup (properties alist-key list-pred default)
"Return value from property alist or list.
Check PROPERTIES for an alist value that corresponds to
ALIST-KEY. If no alist is present, search the PROPERTIES
list given LIST-PRED, using DEFAULT as a fallback."
(if-let* ((val (or (alist-get alist-key properties)
(seq-filter (lambda (x) (funcall list-pred x)) properties)
default))
((listp val)))
(car val)
val))
(defun ef-themes--weight (list)
"Search for `ef-themes--heading' weight in LIST."
(catch 'found
(dolist (elt list)
(when (memq elt ef-themes-weights)
(throw 'found elt)))))
(defun ef-themes--heading (level)
"Conditional styles for `ef-themes-headings' per LEVEL heading."
(let* ((key (alist-get level ef-themes-headings))
(style (or key (alist-get t ef-themes-headings)))
(style-listp (listp style))
(properties style)
(var (when (and style-listp (memq 'variable-pitch properties)) 'variable-pitch))
(weight (when style-listp (ef-themes--weight style))))
(list :inherit
(cond
((not style-listp) 'bold)
(weight var)
(var (append (list 'bold) (list var)))
(t 'bold))
:height
(if style-listp
(ef-themes--property-lookup properties 'height #'floatp 'unspecified)
'unspecified)
:weight
(or weight 'unspecified))))
;;; Commands and their helper functions
(defun ef-themes--retrieve-palette-value (color palette)
"Return COLOR from PALETTE.
Use recursion until COLOR is retrieved as a string. Refrain from
doing so if the value of COLOR is not a key in the PALETTE.
Return `unspecified' if the value of COLOR cannot be determined.
This symbol is accepted by faces and is thus harmless.
This function is used in the macros `ef-themes-theme',
`ef-themes-with-colors'."
(let ((value (car (alist-get color palette))))
(cond
((or (stringp value)
(eq value 'unspecified))
value)
((and (symbolp value) value)
(ef-themes--retrieve-palette-value value palette))
(t
'unspecified))))
(defun ef-themes-get-color-value (color &optional overrides theme)
"Return color value of named COLOR for current Ef theme.
COLOR is a symbol that represents a named color entry in the
palette.
If the value is the name of another color entry in the
palette (so a mapping), recur until you find the underlying color
value.
With optional OVERRIDES as a non-nil value, account for palette
overrides. Else use the default palette.
With optional THEME as a symbol among `ef-themes-collection', use
the palette of that item. Else use the current Ef theme.
If COLOR is not present in the palette, return the `unspecified'
symbol, which is safe when used as a face attribute's value."
(if-let* ((palette (if theme
(ef-themes--palette-value theme overrides)
(ef-themes--current-theme-palette overrides)))
(value (ef-themes--retrieve-palette-value color palette)))
value
'unspecified))
(defun ef-themes--list-enabled-themes ()
"Return list of `custom-enabled-themes' with ef- prefix."
(seq-filter
(lambda (theme)
(string-prefix-p "ef-" (symbol-name theme)))
custom-enabled-themes))
(defun ef-themes--enable-themes (&optional subset)
"Enable all Ef themes.
With optional SUBSET as a symbol of `light' or `dark', enable only those
themes."
(let ((themes (cond
((eq subset 'dark) ef-themes-dark-themes)
((eq subset 'light) ef-themes-light-themes)
(t ef-themes-collection))))
(mapc
(lambda (theme)
(unless (memq theme custom-known-themes)
(load-theme theme :no-confirm :no-enable)))
themes)))
(defun ef-themes--list-known-themes ()
"Return list of `custom-known-themes' with ef- prefix."
(ef-themes--enable-themes)
(seq-filter
(lambda (theme)
(string-prefix-p "ef-" (symbol-name theme)))
custom-known-themes))
(defun ef-themes--current-theme ()
"Return first enabled Ef theme."
(car (or (ef-themes--list-enabled-themes)
(ef-themes--list-known-themes))))
(defun ef-themes--palette-symbol (theme &optional overrides)
"Return THEME palette as a symbol.
With optional OVERRIDES, return THEME palette overrides as a
symbol."
(when-let* ((suffix (cond
((and theme overrides)
"palette-overrides")
(theme
"palette"))))
(intern (format "%s-%s" theme suffix))))
(defun ef-themes--palette-value (theme &optional overrides)
"Return palette value of THEME with optional OVERRIDES."
(let ((base-value (symbol-value (ef-themes--palette-symbol theme))))
(if overrides
(append (symbol-value (ef-themes--palette-symbol theme :overrides))
ef-themes-common-palette-overrides
base-value)
base-value)))
(defun ef-themes--current-theme-palette (&optional overrides)
"Return palette value of active Ef theme, else produce `user-error'.
With optional OVERRIDES return palette value plus whatever
overrides."
(if-let* ((theme (ef-themes--current-theme)))
(if overrides
(ef-themes--palette-value theme :overrides)
(ef-themes--palette-value theme))
(user-error "No enabled Ef theme could be found")))
(defun ef-themes--choose-subset ()
"Use `read-multiple-choice' to return `dark' or `light' variant."
(intern
(cadr
(read-multiple-choice
"Variant"
'((?d "dark" "Load a random dark theme")
(?l "light" "Load a random light theme"))
"Limit to the dark or light subset of the Ef themes collection."))))
(defun ef-themes--annotate-theme (theme)
"Return completion annotation for THEME."
(when-let* ((symbol (intern-soft theme))
(doc-string (get symbol 'theme-documentation)))
(format " -- %s"
(propertize
(car (split-string doc-string "\\."))
'face 'completions-annotations))))
(defun ef-themes--completion-table (category candidates)
"Pass appropriate metadata CATEGORY to completion CANDIDATES."
(lambda (string pred action)
(if (eq action 'metadata)
`(metadata (category . ,category))
(complete-with-action action candidates string pred))))
(defun ef-themes--ef-p (theme)
"Return non-nil if THEME name has an ef- prefix."
(string-prefix-p "ef-" (symbol-name theme)))
(defvar ef-themes--select-theme-history nil
"Minibuffer history of `ef-themes--select-prompt'.")
(defun ef-themes--load-subset (subset)
"Return the `light' or `dark' SUBSET of the Ef themes.
If SUBSET is neither `light' nor `dark', return all the known Ef themes."
(ef-themes--completion-table 'theme (ef-themes--enable-themes subset)))
(defun ef-themes--maybe-prompt-subset (variant)
"Helper function for `ef-themes--select-prompt' VARIANT argument."
(cond
((null variant))
((or (eq variant 'light) (eq variant 'dark)) variant)
(t (ef-themes--choose-subset))))
(defun ef-themes--select-prompt (&optional prompt variant)
"Minibuffer prompt for `ef-themes-select'.
With optional PROMPT string, use it. Else use a generic prompt.
With optional VARIANT as a non-nil value, prompt for a subset of
themes divided into light and dark variants. Then limit the
completion candidates accordingly.
If VARIANT is either `light' or `dark' then use it directly
instead of prompting the user for a choice.
When VARIANT is nil, all Ef themes are candidates for completion."
(let* ((subset (ef-themes--maybe-prompt-subset variant))
(themes (ef-themes--load-subset subset))
(completion-extra-properties `(:annotation-function ,#'ef-themes--annotate-theme)))
(intern
(completing-read
(or prompt "Select Ef Theme: ")
themes
nil t nil
'ef-themes--select-theme-history))))
(defun ef-themes--disable-themes ()
"Disable themes per `ef-themes-disable-other-themes'."
(mapc #'disable-theme
(if ef-themes-disable-other-themes
custom-enabled-themes
(ef-themes--list-known-themes))))
(define-obsolete-function-alias
'ef-themes--load-theme
'ef-themes-load-theme
"1.9.0")
(defun ef-themes-load-theme (theme)
"Load THEME while disabling other Ef themes.
Which themes are disabled is determined by the user option
`ef-themes-disable-other-themes'.
Run the `ef-themes-post-load-hook' as the final step after
loading the THEME.
Return THEME."
(ef-themes--disable-themes)
(load-theme theme :no-confirm)
(run-hooks 'ef-themes-post-load-hook)
theme)
;;;; Select a theme using minibuffer completion
;;;###autoload
(defun ef-themes-select (theme &optional _variant)
"Load an Ef THEME using minibuffer completion.
With optional VARIANT as a prefix argument, prompt to limit the
set of themes to either dark or light variants.
Run `ef-themes-post-load-hook' after loading the theme.
When called from Lisp, THEME is the symbol of a theme. VARIANT
is ignored in this scenario."
(interactive (list (ef-themes--select-prompt nil current-prefix-arg)))
(ef-themes-load-theme theme))
;;;###autoload
(defun ef-themes-select-light (theme)
"Load a light Ef THEME.
Run `ef-themes-post-load-hook' after loading the theme.
Also see `ef-themes-select-dark'.
This command is the same as `ef-themes-select' except it only
prompts for light themes when called interactively. Calling it
from Lisp behaves the same as `ef-themes-select' for the THEME
argument, meaning that it loads the Ef THEME regardless of
whether it is light or dark."
(interactive
(list
(ef-themes--select-prompt "Select light Ef theme: " 'light)))
(ef-themes-load-theme theme))
;;;###autoload
(defun ef-themes-select-dark (theme)
"Load a dark Ef THEME.
Run `ef-themes-post-load-hook' after loading the theme.
Also see `ef-themes-select-light'.
This command is the same as `ef-themes-select' except it only
prompts for dark themes when called interactively. Calling it
from Lisp behaves the same as `ef-themes-select' for the THEME
argument, meaning that it loads the Ef THEME regardless of
whether it is light or dark."
(interactive
(list
(ef-themes--select-prompt "Select dark Ef theme: " 'dark)))
(ef-themes-load-theme theme))
(defun ef-themes--toggle-theme-p ()
"Return non-nil if `ef-themes-to-toggle' are valid."
(condition-case nil
(dolist (theme ef-themes-to-toggle)
(or (memq theme ef-themes-collection)
(memq theme (ef-themes--list-known-themes))
(error "`%s' is not part of `ef-themes-collection'" theme)))
(error nil)
(:success ef-themes-to-toggle)))
;;;; Toggle between two themes
;;;###autoload
(defun ef-themes-toggle ()
"Toggle between the two `ef-themes-to-toggle'.
If `ef-themes-to-toggle' does not specify two Ef themes, inform
the user about it while prompting with completion for a theme
among our collection (this is practically the same as the
`ef-themes-select' command).
Run `ef-themes-post-load-hook' after loading the theme."
(interactive)
(if-let* ((themes (ef-themes--toggle-theme-p))
(one (car themes))
(two (cadr themes)))
(if (eq (car custom-enabled-themes) one)
(ef-themes-load-theme two)
(ef-themes-load-theme one))
(ef-themes-load-theme
(ef-themes--select-prompt
(concat "Set two `ef-themes-to-toggle'; "
"switching to theme selection for now: ")))))
;;;; Load a theme at random
(defun ef-themes--minus-current (&optional variant)
"Return list of Ef themes minus the current one.
VARIANT is either `light' or `dark', which stand for
`ef-themes-light-themes' and `ef-themes-dark-themes',
respectively. Else check against the return value of
`ef-themes--list-known-themes'."
(let* ((list (when variant
(if (eq variant 'dark)
ef-themes-dark-themes
ef-themes-light-themes)))
(sequence (or list (ef-themes--list-known-themes)))
(themes (copy-sequence sequence)))
(delete (ef-themes--current-theme) themes)))
;;;###autoload
(defun ef-themes-load-random (&optional variant)
"Load an Ef theme at random, excluding the current one.
With optional VARIANT as a prefix argument, prompt to limit the
set of themes to either dark or light variants.
Run `ef-themes-post-load-hook' after loading the theme.
When called from Lisp, VARIANT is either the `dark' or `light'
symbol."
(interactive (list (when current-prefix-arg (ef-themes--choose-subset))))
(let* ((themes (ef-themes--minus-current variant))
(n (random (length themes)))
(pick (nth n themes))
(loaded (if (null pick) (car themes) pick)))
(ef-themes-load-theme loaded)
(message "Loaded `%s'" loaded)))
;;;; Rotate through a list of themes
(defun ef-themes--rotate (themes)
"Rotate THEMES rightward such that the car is moved to the end."
(if (proper-list-p themes)
(let* ((index (seq-position themes (ef-themes--current-theme)))
(offset (1+ index)))
(append (nthcdr offset themes) (take offset themes)))
(error "The `%s' is not a list" themes)))
(defun ef-themes--rotate-p (themes)
"Return a new theme among THEMES if it is possible to rotate to it."
(if-let* ((new-theme (car (ef-themes--rotate themes))))
(if (eq new-theme (ef-themes--current-theme))
(car (ef-themes--rotate-p (ef-themes--rotate themes)))
new-theme)
(error "Cannot determine a theme among `%s'" themes)))
;;;###autoload
(defun ef-themes-rotate (themes)
"Rotate to the next theme among THEMES.
When called interactively THEMES is the value of `ef-themes-to-rotate'.
If the current theme is already the next in line, then move to the one
after. Perform the rotation rightwards, such that the first element in
the list becomes the last. Do not modify THEMES in the process."
(interactive (list ef-themes-to-rotate))
(unless (proper-list-p themes)
"This is not a list of themes: `%s'" themes)
(let ((candidate (ef-themes--rotate-p themes)))
(if (ef-themes--ef-p candidate)
(progn
(message "Rotating to `%s'" (propertize (symbol-name candidate) 'face 'success))
(ef-themes-load-theme candidate))
(user-error "`%s' is not part of the Ef collection" candidate))))
;;;; Preview a theme palette
(defun ef-themes--list-colors-get-mappings (palette)
"Get the semantic palette entries in PALETTE.
PALETTE is the value of a variable like `ef-summer-palette'."
(seq-remove
(lambda (cell)
(stringp (cadr cell)))
palette))
(defun ef-themes--list-colors-tabulated (theme &optional mappings)
"Return a data structure of THEME palette or MAPPINGS for tabulated list."
(let* ((current-palette (ef-themes--palette-value theme mappings))
(palette (if mappings
(ef-themes--list-colors-get-mappings current-palette)
current-palette)))
(mapcar (lambda (cell)
(pcase-let* ((`(,name ,value) cell)
(name-string (format "%s" name))
(value-string (format "%s" value))
(value-string-padded (string-pad value-string 30))
(color (ef-themes-get-color-value name mappings theme))) ; resolve a semantic mapping
(list name
(vector
(if (and (symbolp value)
(not (eq value 'unspecified)))
"Yes"
"")
name-string
(propertize value-string 'face `( :foreground ,color))
(propertize value-string-padded 'face (list :background color
:foreground (if (string= color "unspecified")
(readable-foreground-color (ef-themes-get-color-value 'bg-main nil theme))
(readable-foreground-color color))))))))
palette)))
(defvar ef-themes-current-preview nil)
(defvar ef-themes-current-preview-show-mappings nil)
(defun ef-themes--set-tabulated-entries ()
"Set the value of `tabulated-list-entries' with palette entries."
(setq-local tabulated-list-entries
(ef-themes--list-colors-tabulated ef-themes-current-preview ef-themes-current-preview-show-mappings)))
(defun ef-themes-list-colors (theme &optional mappings)
"Preview the palette of the Ef THEME of choice.
With optional prefix argument for MAPPINGS preview only the semantic
color mappings instead of the complete palette."
(interactive
(let ((prompt (if current-prefix-arg
"Preview palette mappings of THEME: "
"Preview palette of THEME: ")))
(list
(ef-themes--select-prompt prompt)
current-prefix-arg)))
(let ((buffer (get-buffer-create (format (if mappings "*%s-list-mappings*" "*%s-list-all*") theme))))
(with-current-buffer buffer
(let ((ef-themes-current-preview theme)
(ef-themes-current-preview-show-mappings mappings))
(ef-themes-preview-mode)))
(pop-to-buffer buffer)))
(defalias 'ef-themes-preview-colors 'ef-themes-list-colors
"Alias for `ef-themes-list-colors'.")
(defun ef-themes-list-colors-current (&optional mappings)
"Like `ef-themes-list-colors' with optional MAPPINGS for the current theme."
(interactive "P")
(ef-themes-list-colors (ef-themes--current-theme) mappings))
(defalias 'ef-themes-preview-colors-current 'ef-themes-list-colors-current
"Alias for `ef-themes-list-colors-current'.")
(define-derived-mode ef-themes-preview-mode tabulated-list-mode "Ef palette"
"Major mode to display a Ef themes palette."
:interactive nil
(setq-local tabulated-list-format
[("Mapping?" 10 t)
("Symbol name" 30 t)
("As foreground" 30 t)
("As background" 0 t)])
(ef-themes--set-tabulated-entries)
(tabulated-list-init-header)
(tabulated-list-print))
;;; Faces and variables
(defgroup ef-themes-faces ()
"Faces defined by the Ef themes."
:group 'ef-themes
:link '(info-link "(ef-themes) Top")
:link '(url-link :tag "Homepage" "https://protesilaos.com/emacs/ef-themes")
:link '(url-link :tag "Sample pictures" "https://protesilaos.com/emacs/ef-themes-pictures")
:prefix "ef-themes-"
:tag "Ef Themes Faces")
;; This produces `ef-themes-height-0' and the like.
(dotimes (n 9)
(custom-declare-face
(intern (format "ef-themes-heading-%d" n))
nil (format "Used for level %d heading." n)
:package-version '(ef-themes . "0.3.0")
:group 'ef-themes-faces))
(defface ef-themes-key-binding nil
"Face for key bindings."
:package-version '(ef-themes . "0.3.0")
:group 'ef-themes-faces)
(defface ef-themes-fixed-pitch nil
"Face for `fixed-pitch' if `ef-themes-mixed-fonts' is non-nil."
:package-version '(ef-themes . "0.4.0")
:group 'ef-themes-faces)
(defface ef-themes-ui-variable-pitch nil
"Face for `variable-pitch' if `ef-themes-variable-pitch-ui' is non-nil."
:package-version '(ef-themes . "0.4.0")
:group 'ef-themes-faces)
(defface ef-themes-reset-soft nil
"Generic face to set most face properties to nil.
This is intended to be inherited by faces that should not retain
properties from their context (e.g. an overlay over an underlined
text should not be underlined as well) yet still blend in."
:package-version '(ef-themes . "1.2.0")
:group 'ef-themes-faces)
;; This produces `ef-themes-mark-delete' and the like.
(dolist (scope '(delete select other))
(custom-declare-face
(intern (format "ef-themes-mark-%s" scope))
nil (format "Face for %s marks (e.g. `dired', `trashed')." scope)
:package-version '(ef-themes . "0.9.0")
:group 'ef-themes-faces))
;; This produces `ef-themes-underline-error' and the like
(dolist (scope '(info error warning))
(custom-declare-face
(intern (format "ef-themes-underline-%s" scope))
nil (format "Face for %s underline (e.g. `flymake', `flyspell')." scope)
:package-version '(ef-themes . "0.9.0")
:group 'ef-themes-faces))
;; This produces `ef-themes-search-current' and the like
(dolist (scope '(current lazy replace match))
(custom-declare-face
(intern (format "ef-themes-search-%s" scope))
nil (format "Search of type %s." scope)
:package-version '(ef-themes . "1.8.0")
:group 'ef-themes-faces))
;; This produces `ef-themes-search-rx-group-0' and the like
(dotimes (n 4)
(custom-declare-face
(intern (format "ef-themes-search-rx-group-%s" n))
nil (format "Search regexp group number %s." n)
:package-version '(ef-themes . "1.5.0")
:group 'ef-themes-faces))
(defface ef-themes-button nil
"Face to style all graphical buttons uniformly."
:package-version '(ef-themes . "1.9.0")
:group 'ef-themes-faces)
(defconst ef-themes-faces
'(
;;;; internal faces
`(ef-themes-button ((,c :inherit variable-pitch
:box (:line-width 1 :color ,border :style released-button)
:background ,bg-active
:foreground ,fg-intense)))
`(ef-themes-fixed-pitch ((,c ,@(ef-themes--fixed-pitch))))
`(ef-themes-heading-0 ((,c ,@(ef-themes--heading 0) :foreground ,rainbow-0)))
`(ef-themes-heading-1 ((,c ,@(ef-themes--heading 1) :foreground ,rainbow-1)))
`(ef-themes-heading-2 ((,c ,@(ef-themes--heading 2) :foreground ,rainbow-2)))
`(ef-themes-heading-3 ((,c ,@(ef-themes--heading 3) :foreground ,rainbow-3)))
`(ef-themes-heading-4 ((,c ,@(ef-themes--heading 4) :foreground ,rainbow-4)))
`(ef-themes-heading-5 ((,c ,@(ef-themes--heading 5) :foreground ,rainbow-5)))
`(ef-themes-heading-6 ((,c ,@(ef-themes--heading 6) :foreground ,rainbow-6)))
`(ef-themes-heading-7 ((,c ,@(ef-themes--heading 7) :foreground ,rainbow-7)))
`(ef-themes-heading-8 ((,c ,@(ef-themes--heading 8) :foreground ,rainbow-8)))
`(ef-themes-key-binding ((,c :inherit (bold ef-themes-fixed-pitch) :foreground ,keybind)))
`(ef-themes-ui-variable-pitch ((,c ,@(ef-themes--variable-pitch-ui))))
`(ef-themes-mark-delete ((,c :inherit error :background ,bg-err)))
`(ef-themes-mark-select ((,c :inherit success :background ,bg-info)))
`(ef-themes-mark-other ((,c :inherit warning :background ,bg-warning)))
`(ef-themes-search-current ((,c :background ,bg-search-current :foreground ,fg-intense)))
`(ef-themes-search-lazy ((,c :background ,bg-search-lazy :foreground ,fg-intense)))
`(ef-themes-search-replace ((,c :background ,bg-search-replace :foreground ,fg-intense)))
`(ef-themes-search-rx-group-0 ((,c :background ,bg-search-rx-group-0 :foreground ,fg-intense)))
`(ef-themes-search-rx-group-1 ((,c :background ,bg-search-rx-group-1 :foreground ,fg-intense)))
`(ef-themes-search-rx-group-2 ((,c :background ,bg-search-rx-group-2 :foreground ,fg-intense)))
`(ef-themes-search-rx-group-3 ((,c :background ,bg-search-rx-group-3 :foreground ,fg-intense)))
`(ef-themes-search-match ((,c :background ,bg-search-match)))
`(ef-themes-underline-error ((,c :underline (:style wave :color ,underline-err))))
`(ef-themes-underline-info ((,c :underline (:style wave :color ,underline-info))))
`(ef-themes-underline-warning ((,c :underline (:style wave :color ,underline-warning))))
`(ef-themes-reset-soft ((,c :background ,bg-main :foreground ,fg-main
:weight normal :slant normal :strike-through nil
:box nil :underline nil :overline nil :extend nil)))
;;;; all basic faces
;;;;; absolute essentials
`(bold ((,c :weight bold)))
`(bold-italic ((,c :inherit (bold italic))))
`(cursor ((,c :background ,cursor)))
`(default ((,c :background ,bg-main :foreground ,fg-main)))
`(italic ((,c :slant italic)))
`(menu ((,c :background ,bg-dim :foreground ,fg-main)))
`(region ((,c :background ,bg-region :foreground ,fg-region)))
`(scroll-bar ((,c :background ,bg-dim :foreground ,fg-dim)))
`(tool-bar ((,c :background ,bg-dim :foreground ,fg-main)))
`(vertical-border ((,c :foreground ,border)))
;;;;; all other basic faces
`(appt-notification ((,c :inherit bold :foreground ,modeline-err)))
`(blink-matching-paren-offscreen ((,c :background ,bg-paren)))
`(button ((,c :foreground ,link :underline ,border)))
`(child-frame-border ((,c :background ,border)))
`(comint-highlight-input ((,c :inherit bold)))
`(comint-highlight-prompt ((,c :inherit minibuffer-prompt)))
`(edmacro-label ((,c :inherit bold :foreground ,accent-0)))
`(elisp-shorthand-font-lock-face ((,c :inherit (italic font-lock-preprocessor-face))))
`(error ((,c :inherit bold :foreground ,err)))
`(escape-glyph ((,c :foreground ,warning)))
`(fringe ((,c :background ,bg-fringe :foreground ,fg-fringe)))
`(header-line ((,c :inherit ef-themes-ui-variable-pitch :background ,bg-dim)))
`(header-line-highlight ((,c :inherit highlight)))
`(help-argument-name ((,c :foreground ,accent-0)))
`(help-key-binding ((,c :inherit (bold ef-themes-fixed-pitch) :foreground ,keybind)))
`(highlight ((,c :background ,bg-hover :foreground ,fg-intense)))
`(hl-line ((,c :background ,bg-hl-line)))
`(icon-button ((,c :inherit ef-themes-button)))
`(link ((,c :foreground ,link :underline ,border)))
`(link-visited ((,c :foreground ,link-alt :underline ,border)))
`(minibuffer-prompt ((,c :foreground ,prompt)))
`(mm-command-output ((,c :foreground ,mail-part)))
`(mm-uu-extract ((,c :foreground ,mail-part)))
`(pgtk-im-0 ((,c :inherit secondary-selection)))
`(read-multiple-choice-face ((,c :inherit warning :background ,bg-warning)))
`(rectangle-preview ((,c :inherit secondary-selection)))
`(secondary-selection ((,c :background ,bg-hover-secondary :foreground ,fg-intense)))
`(shadow ((,c :foreground ,fg-dim)))
`(success ((,c :inherit bold :foreground ,info)))
`(tooltip ((,c :background ,bg-alt :foreground ,fg-intense)))
`(trailing-whitespace ((,c :background ,bg-red-intense :foreground ,fg-intense)))
`(warning ((,c :inherit bold :foreground ,warning)))
;;;; adoc-mode
`(adoc-code-face ((,c :inherit font-lock-constant-face)))
`(adoc-command-face ((,c :foreground ,prose-macro)))
`(adoc-complex-replacement-face ((,c :background ,bg-magenta-subtle :foreground ,magenta)))
`(adoc-emphasis-face ((,c (:inherit bold))))
`(adoc-gen-face ((,c :foreground ,blue)))
`(adoc-meta-face ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-metadata)))
`(adoc-meta-hide-face ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-metadata)))
`(adoc-replacement-face ((,c :inherit font-lock-escape-face)))
`(adoc-secondary-text-face ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-metadata-value)))
`(adoc-table-face ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-table)))
`(adoc-title-0-face ((,c :inherit ef-themes-heading-0)))
`(adoc-title-1-face ((,c :inherit ef-themes-heading-1)))
`(adoc-title-2-face ((,c :inherit ef-themes-heading-2)))
`(adoc-title-3-face ((,c :inherit ef-themes-heading-3)))
`(adoc-title-4-face ((,c :inherit ef-themes-heading-4)))
`(adoc-title-5-face ((,c :inherit ef-themes-heading-5)))
`(adoc-typewriter-face ((,c :foreground ,prose-verbatim)))
`(adoc-verbatim-face ((,c :foreground ,prose-verbatim)))
;;;; all-the-icons
`(all-the-icons-blue ((,c :foreground ,blue-cooler)))
`(all-the-icons-blue-alt ((,c :foreground ,blue-warmer)))
`(all-the-icons-cyan ((,c :foreground ,cyan)))
`(all-the-icons-cyan-alt ((,c :foreground ,cyan-warmer)))
`(all-the-icons-dblue ((,c :foreground ,blue-faint)))
`(all-the-icons-dcyan ((,c :foreground ,cyan-faint)))
`(all-the-icons-dgreen ((,c :foreground ,green-faint)))
`(all-the-icons-dmaroon ((,c :foreground ,magenta-faint)))
`(all-the-icons-dorange ((,c :foreground ,red-faint)))
`(all-the-icons-dpink ((,c :foreground ,magenta-faint)))
`(all-the-icons-dpurple ((,c :foreground ,magenta-cooler)))
`(all-the-icons-dred ((,c :foreground ,red)))
`(all-the-icons-dsilver ((,c :foreground ,cyan-faint)))
`(all-the-icons-dyellow ((,c :foreground ,yellow-faint)))
`(all-the-icons-green ((,c :foreground ,green)))
`(all-the-icons-lblue ((,c :foreground ,blue-cooler)))
`(all-the-icons-lcyan ((,c :foreground ,cyan)))
`(all-the-icons-lgreen ((,c :foreground ,green-warmer)))
`(all-the-icons-lmaroon ((,c :foreground ,magenta-warmer)))
`(all-the-icons-lorange ((,c :foreground ,red-warmer)))
`(all-the-icons-lpink ((,c :foreground ,magenta)))
`(all-the-icons-lpurple ((,c :foreground ,magenta-faint)))
`(all-the-icons-lred ((,c :foreground ,red-faint)))
`(all-the-icons-lsilver ((,c :foreground "gray50")))
`(all-the-icons-lyellow ((,c :foreground ,yellow-warmer)))
`(all-the-icons-maroon ((,c :foreground ,magenta)))
`(all-the-icons-orange ((,c :foreground ,yellow-warmer)))
`(all-the-icons-pink ((,c :foreground ,magenta-warmer)))
`(all-the-icons-purple ((,c :foreground ,magenta-cooler)))
`(all-the-icons-purple-alt ((,c :foreground ,blue-warmer)))
`(all-the-icons-red ((,c :foreground ,red)))
`(all-the-icons-red-alt ((,c :foreground ,red-cooler)))
`(all-the-icons-silver ((,c :foreground "gray50")))
`(all-the-icons-yellow ((,c :foreground ,yellow)))
;;;; all-the-icons-dired
`(all-the-icons-dired-dir-face ((,c :foreground ,accent-0)))
;;;; all-the-icons-ibuffer
`(all-the-icons-ibuffer-dir-face ((,c :foreground ,accent-0)))
`(all-the-icons-ibuffer-file-face ((,c :foreground ,docstring)))
`(all-the-icons-ibuffer-mode-face ((,c :foreground ,type)))
`(all-the-icons-ibuffer-size-face ((,c :foreground ,variable)))
;;;; ansi-color
;; Those are in Emacs28.
`(ansi-color-black ((,c :background ,bg-term-black :foreground ,fg-term-black)))
`(ansi-color-blue ((,c :background ,bg-term-blue :foreground ,fg-term-blue)))
`(ansi-color-bold ((,c :inherit bold)))
`(ansi-color-bright-black ((,c :background ,bg-term-black-bright :foreground ,fg-term-black-bright)))
`(ansi-color-bright-blue ((,c :background ,bg-term-blue-bright :foreground ,fg-term-blue-bright)))
`(ansi-color-bright-cyan ((,c :background ,bg-term-cyan-bright :foreground ,fg-term-cyan-bright)))
`(ansi-color-bright-green ((,c :background ,bg-term-green-bright :foreground ,fg-term-green-bright)))
`(ansi-color-bright-magenta ((,c :background ,bg-term-magenta-bright :foreground ,fg-term-magenta-bright)))
`(ansi-color-bright-red ((,c :background ,bg-term-red-bright :foreground ,fg-term-red-bright)))
`(ansi-color-bright-white ((,c :background ,bg-term-white-bright :foreground ,fg-term-white-bright)))
`(ansi-color-bright-yellow ((,c :background ,bg-term-yellow-bright :foreground ,fg-term-yellow-bright)))
`(ansi-color-cyan ((,c :background ,bg-term-cyan :foreground ,fg-term-cyan)))
`(ansi-color-green ((,c :background ,bg-term-green :foreground ,fg-term-green)))
`(ansi-color-magenta ((,c :background ,bg-term-magenta :foreground ,fg-term-magenta)))
`(ansi-color-red ((,c :background ,bg-term-red :foreground ,fg-term-red)))
`(ansi-color-white ((,c :background ,bg-term-white :foreground ,fg-term-white)))
`(ansi-color-yellow ((,c :background ,bg-term-yellow :foreground ,fg-term-yellow)))
;;;; auctex and tex
`(font-latex-bold-face ((,c :inherit bold)))
`(font-latex-doctex-documentation-face ((,c :inherit font-lock-doc-face)))
`(font-latex-doctex-preprocessor-face ((,c :inherit font-lock-preprocessor-face)))
`(font-latex-italic-face ((,c :inherit italic)))
`(font-latex-math-face ((,c :inherit font-lock-constant-face)))
`(font-latex-script-char-face ((,c :inherit font-lock-builtin-face)))
`(font-latex-sectioning-5-face ((,c :inherit (bold ef-themes-variable-pitch) :foreground ,fg-alt)))
`(font-latex-sedate-face ((,c :inherit font-lock-keyword-face)))
`(font-latex-slide-title-face ((,c :inherit ef-themes-heading-0)))
`(font-latex-string-face ((,c :inherit font-lock-string-face)))
`(font-latex-underline-face ((,c :inherit underline)))
`(font-latex-verbatim-face ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-verbatim)))
`(font-latex-warning-face ((,c :inherit font-lock-warning-face)))
`(tex-verbatim ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-verbatim)))
;; `(texinfo-heading ((,c :foreground ,magenta)))
`(TeX-error-description-error ((,c :inherit error)))
`(TeX-error-description-help ((,c :inherit success)))
`(TeX-error-description-tex-said ((,c :inherit success)))
`(TeX-error-description-warning ((,c :inherit warning)))
;;;; auto-dim-other-buffers
`(auto-dim-other-buffers-face ((,c :background ,bg-inactive)))
`(auto-dim-other-buffers-hide-face ((,c :foreground ,bg-inactive :background ,bg-inactive)))
;;;; avy
`(avy-background-face ((,c :background ,bg-dim :foreground ,fg-dim :extend t)))
`(avy-goto-char-timer-face ((,c :inherit bold :background ,bg-active)))
`(avy-lead-face ((,c :inherit (bold ef-themes-reset-soft) :background ,bg-char-0)))
`(avy-lead-face-0 ((,c :inherit (bold ef-themes-reset-soft) :background ,bg-char-1)))
`(avy-lead-face-1 ((,c :inherit ef-themes-reset-soft :background ,bg-inactive)))
`(avy-lead-face-2 ((,c :inherit (bold ef-themes-reset-soft) :background ,bg-char-2)))
;;;; aw (ace-window)
`(aw-background-face ((,c :foreground ,fg-dim)))
`(aw-key-face ((,c :inherit ef-themes-key-binding)))
`(aw-leading-char-face ((,c :inherit (bold ef-themes-reset-soft) :height 1.5 :foreground ,keybind)))
`(aw-minibuffer-leading-char-face ((,c :inherit ef-themes-key-binding)))
`(aw-mode-line-face ((,c :inherit bold)))
;;;; breadcrumb
`(breadcrumb-face (( )))
`(breadcrumb-imenu-leaf-face ((,c :inherit bold :foreground ,fg-intense))) ; same as `which-func'
`(breadcrumb-project-leaf-face ((,c :inherit bold)))
;;;; bongo
`(bongo-album-title (( )))
`(bongo-artist ((,c :foreground ,rainbow-0)))
`(bongo-currently-playing-track ((,c :inherit bold)))
`(bongo-elapsed-track-part ((,c :background ,bg-alt :underline t)))
`(bongo-filled-seek-bar ((,c :background ,bg-hover)))
`(bongo-marked-track ((,c :inherit ef-themes-mark-other)))
`(bongo-marked-track-line ((,c :background ,bg-dim)))
`(bongo-played-track ((,c :inherit shadow :strike-through t)))
`(bongo-track-length ((,c :inherit shadow)))
`(bongo-track-title ((,c :foreground ,rainbow-1)))
`(bongo-unfilled-seek-bar ((,c :background ,bg-dim)))
;;;; bookmark
`(bookmark-face ((,c :foreground ,info)))
`(bookmark-menu-bookmark ((,c :inherit bold)))
;;;; calendar and diary
`(calendar-month-header ((,c :inherit bold)))
`(calendar-today ((,c :inherit bold :underline t)))
`(calendar-weekday-header ((,c :foreground ,date-weekday)))
`(calendar-weekend-header ((,c :foreground ,date-weekend)))
`(diary ((,c :foreground ,date-common)))
`(diary-anniversary ((,c :foreground ,date-holiday)))
`(diary-time ((,c :foreground ,date-common)))
`(holiday ((,c :foreground ,date-holiday)))
;;;; centaur-tabs
`(centaur-tabs-active-bar-face ((,c :background ,keybind)))
`(centaur-tabs-close-mouse-face ((,c :inherit bold :foreground ,err :underline t)))
`(centaur-tabs-close-selected ((,c :inherit centaur-tabs-selected)))
`(centaur-tabs-close-unselected ((,c :inherit centaur-tabs-unselected)))
`(centaur-tabs-modified-marker-selected ((,c :inherit centaur-tabs-selected)))
`(centaur-tabs-modified-marker-unselected ((,c :inherit centaur-tabs-unselected)))
`(centaur-tabs-default ((,c :background ,bg-main)))
`(centaur-tabs-selected ((,c :inherit bold :box (:line-width -2 :color ,bg-tab-current) :background ,bg-tab-current)))
`(centaur-tabs-selected-modified ((,c :inherit (italic centaur-tabs-selected))))
`(centaur-tabs-unselected ((,c :box (:line-width -2 :color ,bg-tab-other) :background ,bg-tab-other)))
`(centaur-tabs-unselected-modified ((,c :inherit (italic centaur-tabs-unselected))))
;;;; cider
`(cider-deprecated-face ((,c :background ,bg-warning :foreground ,warning)))
`(cider-enlightened-face ((,c :box ,warning)))
`(cider-enlightened-local-face ((,c :inherit warning)))
`(cider-error-highlight-face ((,c :inherit ef-themes-underline-error)))
`(cider-fringe-good-face ((,c :inherit ef-themes-mark-select)))
`(cider-instrumented-face ((,c :box ,err)))
`(cider-reader-conditional-face ((,c :inherit font-lock-type-face)))
`(cider-repl-prompt-face ((,c :inherit minibuffer-prompt)))
`(cider-repl-stderr-face ((,c :foreground ,err)))
`(cider-repl-stdout-face ((,c :foreground ,info)))
`(cider-warning-highlight-face ((,c :inherit ef-themes-underline-warning)))
;;;; change-log and log-view (`vc-print-log' and `vc-print-root-log')
`(change-log-acknowledgment ((,c :foreground ,identifier)))
`(change-log-conditionals ((,c :inherit error)))
`(change-log-date ((,c :foreground ,date-common)))
`(change-log-email ((,c :foreground ,fg-alt)))
`(change-log-file ((,c :inherit bold)))
`(change-log-function ((,c :inherit warning)))
`(change-log-list ((,c :inherit bold)))
`(change-log-name ((,c :foreground ,name)))
`(log-edit-header ((,c :inherit bold)))
`(log-edit-headers-separator ((,c :height 1 :background ,border :extend t)))
`(log-edit-summary ((,c :inherit success)))
`(log-edit-unknown-header ((,c :inherit shadow)))
`(log-view-commit-body (( )))
`(log-view-file ((,c :inherit bold)))
`(log-view-message ((,c :foreground ,identifier)))
;;;; clojure-mode
`(clojure-keyword-face ((,c :inherit font-lock-builtin-face)))
;;;; company-mode
`(company-echo-common ((,c :inherit bold :foreground ,accent-0)))
`(company-preview ((,c :background ,bg-dim :foreground ,fg-dim)))
`(company-preview-common ((,c :inherit company-echo-common)))
`(company-preview-search ((,c :background ,bg-yellow-intense :foreground ,fg-intense)))
`(company-scrollbar-bg ((,c :background ,bg-active)))
`(company-scrollbar-fg ((,c :background ,fg-main)))
`(company-template-field ((,c :background ,bg-active :foreground ,fg-intense)))
`(company-tooltip ((,c :inherit ef-themes-fixed-pitch :background ,bg-inactive)))
`(company-tooltip-annotation ((,c :inherit completions-annotations)))
`(company-tooltip-common ((,c :inherit company-echo-common)))
`(company-tooltip-deprecated ((,c :inherit company-tooltip :strike-through t)))
`(company-tooltip-mouse ((,c :inherit highlight)))
`(company-tooltip-scrollbar-thumb ((,c :background ,fg-alt)))
`(company-tooltip-scrollbar-track ((,c :background ,bg-alt)))
`(company-tooltip-search ((,c :inherit secondary-selection)))
`(company-tooltip-search-selection ((,c :inherit secondary-selection :underline t)))
`(company-tooltip-selection ((,c :background ,bg-completion)))
;;;; compilation
`(compilation-column-number ((,c :inherit compilation-line-number)))
`(compilation-error ((,c :inherit error)))
`(compilation-info ((,c :inherit bold :foreground ,name)))
`(compilation-line-number ((,c :inherit shadow)))
`(compilation-mode-line-exit ((,c :inherit bold :foreground ,modeline-info)))
`(compilation-mode-line-fail ((,c :inherit bold :foreground ,modeline-err)))
`(compilation-mode-line-run ((,c :inherit bold :foreground ,modeline-warning)))
`(compilation-warning ((,c :inherit warning)))
;;;; completions
`(completions-annotations ((,c :inherit italic :foreground ,docstring)))
`(completions-common-part ((,c :inherit bold :foreground ,accent-0)))
`(completions-first-difference ((,c :inherit bold :foreground ,accent-1)))
`(completions-group-title ((,c :inherit bold :foreground ,name)))
`(completions-highlight ((,c :background ,bg-completion)))
;;;; consult
`(consult-async-split ((,c :inherit warning)))
`(consult-file ((,c :foreground ,name)))
`(consult-key ((,c :inherit ef-themes-key-binding)))
`(consult-imenu-prefix ((,c :inherit shadow)))
`(consult-line-number ((,c :inherit shadow)))
`(consult-line-number-prefix ((,c :inherit shadow)))
`(consult-separator ((,c :foreground ,border)))
;;;; corfu
`(corfu-current ((,c :background ,bg-completion)))
`(corfu-bar ((,c :background ,fg-main)))
`(corfu-border ((,c :background ,bg-active)))
`(corfu-default ((,c :inherit ef-themes-fixed-pitch :background ,bg-inactive)))
;;;;; corfu-candidate-overlay
`(corfu-candidate-overlay-face ((t :inherit shadow)))
;;;; corfu-quick
`(corfu-quick1 ((,c :inherit bold :background ,bg-char-0)))
`(corfu-quick2 ((,c :inherit bold :background ,bg-char-1)))
;;;; csv-mode
`(csv-separator-face ((,c :foreground ,err)))
;;;; custom (M-x customize)
`(custom-button ((,c :box (:color ,border :style released-button)
:background ,bg-active :foreground ,fg-intense)))
`(custom-button-mouse ((,c :inherit (highlight custom-button))))
`(custom-button-pressed ((,c :inherit (secondary-selection custom-button))))
`(custom-changed ((,c :background ,bg-changed)))
`(custom-comment ((,c :inherit shadow)))
`(custom-comment-tag ((,c :inherit (bold shadow))))
`(custom-invalid ((,c :inherit error :strike-through t)))
`(custom-modified ((,c :inherit custom-changed)))
`(custom-rogue ((,c :inherit custom-invalid)))
`(custom-set ((,c :inherit success)))
`(custom-state ((,c :foreground ,fg-alt)))
`(custom-themed ((,c :inherit custom-changed)))
`(custom-variable-obsolete ((,c :inherit shadow)))
`(custom-face-tag ((,c :inherit bold :foreground ,type)))
`(custom-group-tag ((,c :inherit bold :foreground ,builtin)))
`(custom-group-tag-1 ((,c :inherit bold :foreground ,constant)))
`(custom-variable-tag ((,c :inherit bold :foreground ,variable)))
;;;; dashboard
`(dashboard-heading ((,c :foreground ,name)))
`(dashboard-items-face (( ))) ; use the underlying style of all-the-icons
;;;; denote
`(denote-faces-date ((,c :foreground ,date-common)))
`(denote-faces-delimiter ((,c :inherit shadow)))
`(denote-faces-extension ((,c :inherit shadow)))
`(denote-faces-keywords ((,c :inherit bold :foreground ,keyword)))
`(denote-faces-link ((,c :inherit link)))
`(denote-faces-prompt-current-name ((,c :inherit italic :foreground ,fg-changed)))
`(denote-faces-prompt-new-name ((,c :inherit italic :foreground ,fg-added)))
`(denote-faces-prompt-old-name ((,c :inherit italic :foreground ,fg-removed)))
`(denote-faces-signature ((,c :inherit bold :foreground ,string)))
`(denote-faces-subdirectory ((,c :inherit bold :foreground ,fg-dim)))
`(denote-faces-time ((,c :inherit denote-faces-date)))
`(denote-faces-time-delimiter ((,c :inherit shadow)))
`(denote-faces-title (( )))
;;;; dictionary
`(dictionary-button-face ((,c :inherit bold)))
`(dictionary-reference-face ((,c :inherit link)))
`(dictionary-word-definition-face (( )))
`(dictionary-word-entry-face ((,c :inherit font-lock-comment-face)))
;;;; diff-hl
`(diff-hl-change ((,c :background ,bg-changed-refine)))
`(diff-hl-delete ((,c :background ,bg-removed-refine)))
`(diff-hl-insert ((,c :background ,bg-added-refine)))
`(diff-hl-reverted-hunk-highlight ((,c :background ,fg-main :foreground ,bg-main)))
`(diff-added ((,c :background ,bg-added :foreground ,fg-added)))
`(diff-changed ((,c :background ,bg-changed :foreground ,fg-changed :extend t)))
`(diff-changed-unspecified ((,c :inherit diff-changed)))
`(diff-removed ((,c :background ,bg-removed :foreground ,fg-removed)))
`(diff-refine-added ((,c :background ,bg-added-refine :foreground ,fg-added)))
`(diff-refine-changed ((,c :background ,bg-changed-refine :foreground ,fg-changed)))
`(diff-refine-removed ((,c :background ,bg-removed-refine :foreground ,fg-removed)))
`(diff-indicator-added ((,c :inherit diff-added :foreground ,fg-added)))
`(diff-indicator-changed ((,c :inherit diff-changed :foreground ,fg-changed)))
`(diff-indicator-removed ((,c :inherit diff-removed :foreground ,fg-removed)))
`(diff-context (( )))
`(diff-error ((,c :inherit error)))
`(diff-file-header ((,c :inherit bold)))
`(diff-function ((,c :background ,bg-alt)))
`(diff-header (( )))
`(diff-hunk-header ((,c :inherit bold :background ,bg-alt)))
`(diff-index ((,c :inherit italic)))
`(diff-nonexistent ((,c :inherit bold)))
;;;; dired
`(dired-broken-symlink ((,c :inherit (error link))))
`(dired-directory ((,c :foreground ,accent-0)))
`(dired-flagged ((,c :inherit ef-themes-mark-delete)))
`(dired-header ((,c :inherit bold)))
`(dired-ignored ((,c :inherit shadow)))
`(dired-mark ((,c :foreground ,fg-intense)))
`(dired-marked ((,c :inherit ef-themes-mark-select)))
`(dired-symlink ((,c :inherit link)))
`(dired-warning ((,c :inherit warning)))
;;;; dired-subtree
;; remove backgrounds from dired-subtree faces, else they break
;; dired-{flagged,marked} and any other face that sets a background
;; such as hl-line. Also, denoting depth by varying shades of gray
;; does not look right.
`(dired-subtree-depth-1-face (( )))
`(dired-subtree-depth-2-face (( )))
`(dired-subtree-depth-3-face (( )))
`(dired-subtree-depth-4-face (( )))
`(dired-subtree-depth-5-face (( )))
`(dired-subtree-depth-6-face (( )))
;;;; diredfl
`(diredfl-autofile-name ((,c :background ,bg-alt)))
`(diredfl-compressed-file-name ((,c :foreground ,yellow-cooler)))
`(diredfl-compressed-file-suffix ((,c :foreground ,red)))
`(diredfl-date-time ((,c :foreground ,date-common)))
`(diredfl-deletion ((,c :inherit dired-flagged)))
`(diredfl-deletion-file-name ((,c :inherit diredfl-deletion)))
`(diredfl-dir-heading ((,c :inherit bold)))
`(diredfl-dir-name ((,c :inherit dired-directory)))
`(diredfl-dir-priv ((,c :inherit dired-directory)))
`(diredfl-exec-priv ((,c :foreground ,rainbow-3)))
`(diredfl-executable-tag ((,c :inherit diredfl-exec-priv)))
`(diredfl-file-name ((,c :foreground ,fg-main)))
`(diredfl-file-suffix ((,c :foreground ,variable)))
`(diredfl-flag-mark ((,c :inherit dired-marked)))
`(diredfl-flag-mark-line ((,c :inherit dired-marked)))
`(diredfl-ignored-file-name ((,c :inherit shadow)))
`(diredfl-link-priv ((,c :foreground ,link)))
`(diredfl-no-priv ((,c :inherit shadow)))
`(diredfl-number ((,c :inherit shadow)))
`(diredfl-other-priv ((,c :foreground ,rainbow-0)))
`(diredfl-rare-priv ((,c :foreground ,rainbow-0)))
`(diredfl-read-priv ((,c :foreground ,rainbow-1)))
`(diredfl-symlink ((,c :inherit dired-symlink)))
`(diredfl-tagged-autofile-name ((,c :inherit (diredfl-autofile-name dired-marked))))
`(diredfl-write-priv ((,c :foreground ,rainbow-2)))
;;;; dirvish
`(dirvish-hl-line ((,c :background ,bg-hl-line)))
;;;; display-fill-column-indicator-mode
;; NOTE 2022-09-14: We use the bg-alt mapping as the border mapping
;; is for the `vertical-border'. We want this to be more subtle.
`(fill-column-indicator ((,c :height 1 :background ,bg-alt :foreground ,bg-alt)))
;;;; doom-modeline
`(doom-modeline-bar ((,c :background ,keybind)))
`(doom-modeline-bar-inactive ((,c :background ,bg-alt)))
`(doom-modeline-battery-charging ((,c :foreground ,modeline-info)))
`(doom-modeline-battery-critical ((,c :underline t :foreground ,modeline-err)))
`(doom-modeline-battery-error ((,c :underline t :foreground ,modeline-err)))
`(doom-modeline-battery-full (( )))
`(doom-modeline-battery-warning ((,c :inherit bold :foreground ,modeline-warning)))
`(doom-modeline-buffer-file ((,c :inherit bold)))
`(doom-modeline-buffer-major-mode (( )))
`(doom-modeline-buffer-minor-mode (( )))
`(doom-modeline-buffer-modified ((,c :foreground ,modeline-err)))
`(doom-modeline-buffer-path (( )))
`(doom-modeline-evil-emacs-state ((,c :inherit italic)))
`(doom-modeline-evil-insert-state ((,c :foreground ,modeline-info)))
`(doom-modeline-evil-motion-state (( )))
`(doom-modeline-evil-normal-state (( )))
`(doom-modeline-evil-operator-state ((,c :inherit bold)))
`(doom-modeline-evil-replace-state ((,c :inherit bold :foreground ,modeline-err)))
`(doom-modeline-evil-visual-state ((,c :inherit bold :foreground ,modeline-warning)))
`(doom-modeline-info ((,c :inherit bold :foreground ,modeline-info)))
`(doom-modeline-input-method (( )))
`(doom-modeline-lsp-error ((,c :inherit bold)))
`(doom-modeline-lsp-running (( )))
`(doom-modeline-lsp-success ((,c :inherit bold :foreground ,modeline-info)))
`(doom-modeline-lsp-warning ((,c :inherit bold :foreground ,modeline-warning)))
`(doom-modeline-notification ((,c :inherit mode-line-emphasis :foreground ,modeline-err)))
`(doom-modeline-project-dir (( )))
`(doom-modeline-project-parent-dir (( )))
`(doom-modeline-project-root-dir (( )))
`(doom-modeline-repl-success ((,c :inherit bold :foreground ,modeline-info)))
`(doom-modeline-repl-warning ((,c :inherit bold :foreground ,modeline-warning)))
`(doom-modeline-time (( )))
`(doom-modeline-urgent ((,c :inherit bold :foreground ,modeline-err)))
`(doom-modeline-warning ((,c :inherit bold :foreground ,modeline-warning)))
;;;; ediff
`(ediff-current-diff-A ((,c :background ,bg-removed :foreground ,fg-removed)))
`(ediff-current-diff-Ancestor ((,c :background ,bg-region)))
`(ediff-current-diff-B ((,c :background ,bg-added :foreground ,fg-added)))
`(ediff-current-diff-C ((,c :background ,bg-changed :foreground ,fg-changed)))
`(ediff-even-diff-A ((,c :background ,bg-dim)))
`(ediff-even-diff-Ancestor ((,c :background ,bg-dim)))
`(ediff-even-diff-B ((,c :background ,bg-dim)))
`(ediff-even-diff-C ((,c :background ,bg-dim)))
`(ediff-fine-diff-A ((,c :background ,bg-removed-refine :foreground ,fg-removed)))
`(ediff-fine-diff-Ancestor ((,c :background ,bg-active :foreground ,fg-intense)))
`(ediff-fine-diff-B ((,c :background ,bg-added-refine :foreground ,fg-added)))
`(ediff-fine-diff-C ((,c :background ,bg-changed-refine :foreground ,fg-changed)))
`(ediff-odd-diff-A ((,c :inherit ediff-even-diff-A)))
`(ediff-odd-diff-Ancestor ((,c :inherit ediff-even-diff-Ancestor)))
`(ediff-odd-diff-B ((,c :inherit ediff-even-diff-B)))
`(ediff-odd-diff-C ((,c :inherit ediff-even-diff-C)))
;;;; eglot
`(eglot-mode-line ((,c :inherit bold :foreground ,modeline-info)))
`(eglot-diagnostic-tag-unnecessary-face ((,c :inherit ef-themes-underline-info)))
;;;; eldoc
;; NOTE: see https://github.com/purcell/package-lint/issues/187
(list 'eldoc-highlight-function-argument `((,c :inherit warning :background ,bg-warning)))
;;;; elfeed
`(elfeed-log-date-face ((,c :inherit elfeed-search-date-face)))
`(elfeed-log-debug-level-face ((,c :inherit elfeed-search-filter-face)))
`(elfeed-log-error-level-face ((,c :inherit error)))
`(elfeed-log-info-level-face ((,c :inherit success)))
`(elfeed-log-warn-level-face ((,c :inherit warning)))
`(elfeed-search-date-face ((,c :foreground ,date-common)))
`(elfeed-search-feed-face ((,c :foreground ,accent-1)))
`(elfeed-search-filter-face ((,c :inherit bold)))
`(elfeed-search-last-update-face ((,c :inherit bold :foreground ,date-common)))
`(elfeed-search-tag-face ((,c :foreground ,accent-0)))
`(elfeed-search-title-face ((,c :foreground ,fg-dim)))
`(elfeed-search-unread-count-face (( )))
`(elfeed-search-unread-title-face ((,c :inherit bold :foreground ,fg-main)))
;;;; embark
`(embark-collect-group-title ((,c :inherit bold :foreground ,name)))
`(embark-keybinding ((,c :inherit ef-themes-key-binding)))
`(embark-keybinding-repeat ((,c :inherit bold)))
`(embark-selected ((,c :inherit ef-themes-mark-select)))
;;;; epa
`(epa-field-body (( )))
`(epa-field-name ((,c :inherit bold :foreground ,fg-dim)))
`(epa-mark ((,c :inherit bold)))
`(epa-string ((,c :foreground ,string)))
`(epa-validity-disabled ((,c :foreground ,err)))
`(epa-validity-high ((,c :inherit success)))
`(epa-validity-low ((,c :inherit shadow)))
`(epa-validity-medium ((,c :foreground ,info)))
;;;; erc
`(erc-action-face ((,c :foreground ,accent-2)))
`(erc-bold-face ((,c :inherit bold)))
`(erc-button ((,c :inherit button)))
`(erc-command-indicator-face ((,c :inherit bold :foreground ,accent-3)))
`(erc-current-nick-face ((,c :inherit match)))
`(erc-dangerous-host-face ((,c :inherit error)))
`(erc-direct-msg-face ((,c :inherit shadow)))
`(erc-error-face ((,c :inherit error)))
`(erc-fool-face ((,c :inherit shadow)))
`(erc-input-face ((,c :foreground ,fnname)))
`(erc-inverse-face ((,c :inherit erc-default-face :inverse-video t)))
`(erc-fill-wrap-merge-indicator-face ((,c :foreground ,fg-dim)))
`(erc-keep-place-indicator-arrow ((,c :foreground ,info)))
`(erc-keyword-face ((,c :inherit bold :foreground ,keyword)))
`(erc-my-nick-face ((,c :inherit bold :foreground ,name)))
`(erc-my-nick-prefix-face ((,c :inherit erc-my-nick-face)))
`(erc-nick-default-face ((,c :inherit bold :foreground ,accent-0)))
`(erc-nick-msg-face ((,c :inherit warning)))
`(erc-nick-prefix-face ((,c :inherit erc-nick-default-face)))
`(erc-notice-face ((,c :inherit font-lock-comment-face)))
`(erc-pal-face ((,c :inherit bold :foreground ,accent-1)))
`(erc-prompt-face ((,c :inherit minibuffer-prompt)))
`(erc-timestamp-face ((,c :foreground ,date-common)))
`(erc-underline-face ((,c :underline t)))
;;;; ert
`(ert-test-result-expected ((,c :background ,bg-info :foreground ,info)))
`(ert-test-result-unexpected ((,c :background ,bg-err :foreground ,err)))
;;;; eshell
`(eshell-ls-archive ((,c :foreground ,accent-2)))
`(eshell-ls-backup ((,c :inherit shadow)))
`(eshell-ls-clutter ((,c :inherit shadow)))
`(eshell-ls-directory ((,c :foreground ,accent-0)))
`(eshell-ls-executable ((,c :foreground ,accent-1)))
`(eshell-ls-missing ((,c :inherit error)))
`(eshell-ls-product ((,c :inherit shadow)))
`(eshell-ls-readonly ((,c :foreground ,warning)))
`(eshell-ls-special ((,c :foreground ,accent-3)))
`(eshell-ls-symlink ((,c :inherit link)))
`(eshell-ls-unreadable ((,c :inherit shadow)))
`(eshell-prompt ((,c :inherit minibuffer-prompt)))
;;;; evil-mode
`(evil-ex-commands ((,c :inherit font-lock-keyword-face)))
`(evil-ex-info ((,c :inherit font-lock-type-face)))
`(evil-ex-substitute-replacement ((,c :inherit query-replace)))
;;;; eww
`(eww-invalid-certificate ((,c :foreground ,err)))
`(eww-valid-certificate ((,c :foreground ,info)))
`(eww-form-checkbox ((,c :inherit eww-form-text)))
`(eww-form-file ((,c :inherit eww-form-submit)))
`(eww-form-select ((,c :inherit eww-form-submit)))
`(eww-form-submit ((,c :inherit ef-themes-button)))
`(eww-form-text ((,c :inherit widget-field)))
`(eww-form-textarea ((,c :inherit eww-form-text)))
;;;; flycheck
`(flycheck-error ((,c :inherit ef-themes-underline-error)))
`(flycheck-fringe-error ((,c :inherit ef-themes-mark-delete)))
`(flycheck-fringe-info ((,c :inherit ef-themes-mark-select)))
`(flycheck-fringe-warning ((,c :inherit ef-themes-mark-other)))
`(flycheck-info ((,c :inherit ef-themes-underline-info)))
`(flycheck-warning ((,c :inherit ef-themes-underline-warning)))
;;;; flymake
`(flymake-end-of-line-diagnostics-face ((,c :inherit italic :height 0.85 :box ,border)))
`(flymake-error ((,c :inherit ef-themes-underline-error)))
`(flymake-error-echo ((,c :inherit error)))
`(flymake-error-echo-at-eol ((,c :inherit flymake-end-of-line-diagnostics-face :foreground ,err)))
`(flymake-note ((,c :inherit ef-themes-underline-info)))
`(flymake-note-echo ((,c :inherit success)))
`(flymake-note-echo-at-eol ((,c :inherit flymake-end-of-line-diagnostics-face :foreground ,info)))
`(flymake-warning ((,c :inherit ef-themes-underline-warning)))
`(flymake-warning-echo ((,c :inherit warning)))
`(flymake-note-echo-at-eol ((,c :inherit flymake-end-of-line-diagnostics-face :foreground ,warning)))
;;;; flyspell
`(flyspell-duplicate ((,c :inherit ef-themes-underline-warning)))
`(flyspell-incorrect ((,c :inherit ef-themes-underline-error)))
;;;; font-lock
`(font-lock-builtin-face ((,c :inherit bold :foreground ,builtin)))
`(font-lock-comment-delimiter-face ((,c :inherit font-lock-comment-face)))
`(font-lock-comment-face ((,c :inherit italic :foreground ,comment)))
`(font-lock-constant-face ((,c :foreground ,constant)))
`(font-lock-doc-face ((,c :inherit italic :foreground ,docstring)))
`(font-lock-function-name-face ((,c :foreground ,fnname)))
`(font-lock-keyword-face ((,c :inherit bold :foreground ,keyword)))
`(font-lock-negation-char-face ((,c :inherit bold)))
`(font-lock-preprocessor-face ((,c :foreground ,preprocessor)))
`(font-lock-regexp-grouping-backslash ((,c :foreground ,rx-escape)))
`(font-lock-regexp-grouping-construct ((,c :foreground ,rx-construct)))
`(font-lock-string-face ((,c :foreground ,string)))
`(font-lock-type-face ((,c :foreground ,type)))
`(font-lock-variable-name-face ((,c :foreground ,variable)))
`(font-lock-warning-face ((,c :foreground ,warning)))
;;;; forge
`(forge-dimmed ((,c :inherit shadow)))
`(forge-issue-completed ((,c :inherit shadow)))
`(forge-issue-open (( )))
`(forge-issue-unplanned ((,c :inherit forge-dimmed :strike-through t)))
`(forge-post-author ((,c :inherit bold :foreground ,name)))
`(forge-post-date ((,c :inherit bold :foreground ,date-common)))
`(forge-pullreq-merged ((,c :foreground ,fg-alt)))
`(forge-pullreq-open ((,c :foreground ,info)))
`(forge-pullreq-rejected ((,c :foreground ,err :strike-through t)))
`(forge-topic-done (( )))
`(forge-topic-pending ((,c :inherit italic)))
`(forge-topic-slug-completed ((,c :inherit forge-dimmed)))
`(forge-topic-slug-open ((,c :inherit forge-dimmed)))
`(forge-topic-slug-saved ((,c :inherit success)))
`(forge-topic-slug-unplanned ((,c :inherit forge-dimmed :strike-through t)))
`(forge-topic-unread ((,c :inherit bold)))
;;;; git-commit
`(git-commit-comment-action ((,c :inherit font-lock-comment-face)))
`(git-commit-comment-branch-local ((,c :inherit font-lock-comment-face :foreground ,accent-0)))
`(git-commit-comment-branch-remote ((,c :inherit font-lock-comment-face :foreground ,accent-1)))
`(git-commit-comment-heading ((,c :inherit (bold font-lock-comment-face))))
`(git-commit-comment-file ((,c :inherit font-lock-comment-face :foreground ,name)))
`(git-commit-keyword ((,c :foreground ,keyword)))
`(git-commit-nonempty-second-line ((,c :foreground ,err)))
`(git-commit-overlong-summary ((,c :foreground ,warning)))
`(git-commit-summary ((,c :inherit success)))
;;;; git-gutter
`(git-gutter:added ((,c :background ,bg-added :foreground ,fg-added)))
`(git-gutter:deleted ((,c :background ,bg-removed :foreground ,fg-removed)))
`(git-gutter:modified ((,c :background ,bg-changed :foreground ,fg-changed)))
`(git-gutter:separator ((,c :inherit success)))
`(git-gutter:unchanged ((,c :inherit bold)))
;;;; git-gutter-fr
`(git-gutter-fr:added ((,c :background ,bg-added :foreground ,fg-added)))
`(git-gutter-fr:deleted ((,c :background ,bg-removed :foreground ,fg-removed)))
`(git-gutter-fr:modified ((,c :background ,bg-changed :foreground ,fg-changed)))
;;;; git-rebase
`(git-rebase-comment-hash ((,c :inherit (bold font-lock-comment-face) :foreground ,identifier)))
`(git-rebase-comment-heading ((,c :inherit (bold font-lock-comment-face))))
`(git-rebase-description ((,c :foreground ,fg-main)))
`(git-rebase-hash ((,c :foreground ,identifier)))
;;;; gnus
`(gnus-button ((,c :inherit button :underline nil)))
`(gnus-cite-1 ((,c :inherit message-cited-text-1)))
`(gnus-cite-2 ((,c :inherit message-cited-text-2)))
`(gnus-cite-3 ((,c :inherit message-cited-text-3)))
`(gnus-cite-4 ((,c :inherit message-cited-text-4)))
`(gnus-cite-5 ((,c :inherit message-cited-text-1)))
`(gnus-cite-6 ((,c :inherit message-cited-text-2)))
`(gnus-cite-7 ((,c :inherit message-cited-text-3)))
`(gnus-cite-8 ((,c :inherit message-cited-text-4)))
`(gnus-cite-9 ((,c :inherit message-cited-text-1)))
`(gnus-cite-10 ((,c :inherit message-cited-text-2)))
`(gnus-cite-11 ((,c :inherit message-cited-text-3)))
`(gnus-cite-attribution ((,c :inherit italic)))
`(gnus-emphasis-bold ((,c :inherit bold)))
`(gnus-emphasis-bold-italic ((,c :inherit bold-italic)))
`(gnus-emphasis-highlight-words ((,c :inherit warning)))
`(gnus-emphasis-italic ((,c :inherit italic)))
`(gnus-emphasis-underline-bold ((,c :inherit gnus-emphasis-bold :underline t)))
`(gnus-emphasis-underline-bold-italic ((,c :inherit gnus-emphasis-bold-italic :underline t)))
`(gnus-emphasis-underline-italic ((,c :inherit gnus-emphasis-italic :underline t)))
`(gnus-group-mail-1 ((,c :inherit bold :foreground ,rainbow-1)))
`(gnus-group-mail-1-empty ((,c :foreground ,rainbow-1)))
`(gnus-group-mail-2 ((,c :inherit bold :foreground ,rainbow-2)))
`(gnus-group-mail-2-empty ((,c :foreground ,rainbow-2)))
`(gnus-group-mail-3 ((,c :inherit bold :foreground ,rainbow-3)))
`(gnus-group-mail-3-empty ((,c :foreground ,rainbow-3)))
`(gnus-group-mail-low ((,c :inherit bold :foreground ,fg-alt)))
`(gnus-group-mail-low-empty ((,c :foreground ,fg-alt)))
`(gnus-group-news-1 ((,c :inherit bold :foreground ,rainbow-1)))
`(gnus-group-news-1-empty ((,c :foreground ,rainbow-1)))
`(gnus-group-news-2 ((,c :inherit bold :foreground ,rainbow-2)))
`(gnus-group-news-2-empty ((,c :foreground ,rainbow-2)))
`(gnus-group-news-3 ((,c :inherit bold :foreground ,rainbow-3)))
`(gnus-group-news-3-empty ((,c :foreground ,rainbow-3)))
`(gnus-group-news-4 ((,c :inherit bold :foreground ,rainbow-4)))
`(gnus-group-news-4-empty ((,c :foreground ,rainbow-4)))
`(gnus-group-news-5 ((,c :inherit bold :foreground ,rainbow-5)))
`(gnus-group-news-5-empty ((,c :foreground ,rainbow-5)))
`(gnus-group-news-6 ((,c :inherit bold :foreground ,rainbow-6)))
`(gnus-group-news-6-empty ((,c :foreground ,rainbow-6)))
`(gnus-group-news-low ((,c :inherit bold :foreground ,fg-alt)))
`(gnus-group-news-low-empty ((,c :foreground ,fg-alt)))
`(gnus-header-content ((,c :inherit message-header-other)))
`(gnus-header-from ((,c :inherit message-header-to :underline nil)))
`(gnus-header-name ((,c :inherit message-header-name)))
`(gnus-header-newsgroups ((,c :inherit message-header-newsgroups)))
`(gnus-header-subject ((,c :inherit message-header-subject)))
`(gnus-server-agent ((,c :inherit bold)))
`(gnus-server-closed ((,c :inherit italic)))
`(gnus-server-cloud ((,c :inherit bold :foreground ,fg-alt)))
`(gnus-server-cloud-host ((,c :inherit bold :foreground ,fg-alt :underline t)))
`(gnus-server-denied ((,c :inherit error)))
`(gnus-server-offline ((,c :inherit shadow)))
`(gnus-server-opened ((,c :inherit success)))
`(gnus-summary-cancelled ((,c :background ,bg-warning :foreground ,warning :extend t)))
`(gnus-summary-high-ancient ((,c :inherit bold :foreground ,fg-alt)))
`(gnus-summary-high-read ((,c :inherit bold :foreground ,fg-dim)))
`(gnus-summary-high-ticked ((,c :inherit bold :foreground ,err)))
`(gnus-summary-high-undownloaded ((,c :inherit bold-italic :foreground ,warning)))
`(gnus-summary-high-unread ((,c :inherit bold)))
`(gnus-summary-low-ancient ((,c :inherit italic)))
`(gnus-summary-low-read ((,c :inherit (shadow italic))))
`(gnus-summary-low-ticked ((,c :inherit italic :foreground ,err)))
`(gnus-summary-low-undownloaded ((,c :inherit italic :foreground ,warning)))
`(gnus-summary-low-unread ((,c :inherit italic)))
`(gnus-summary-normal-ancient (( )))
`(gnus-summary-normal-read ((,c :inherit shadow)))
`(gnus-summary-normal-ticked ((,c :foreground ,err)))
`(gnus-summary-normal-undownloaded ((,c :foreground ,warning)))
`(gnus-summary-normal-unread (( )))
`(gnus-summary-selected ((,c :inherit highlight)))
;;;; helpful-mode
`(helpful-heading ((,c :inherit ef-themes-heading-1)))
;;;; hexl-mode
`(hexl-address-region ((,c :foreground ,constant)))
`(hexl-ascii-region ((,c :foreground ,variable)))
;;;; hi-lock (M-x highlight-regexp)
;; NOTE 2022-10-16 We hardcode color values. We have to do this
;; as the themes lack entries in their palette for such an edge
;; case. Defining those entries is not appropriate.
;;
;; The use of :inverse-video here is to prevert `hl-line-mode' or
;; the active region from overriding those highlights.
`(hi-aquamarine ((((class color) (min-colors 88) (background light))
:background "white" :foreground "#227f9f" :inverse-video t)
(((class color) (min-colors 88) (background dark))
:background "black" :foreground "#66cbdc" :inverse-video t)))
`(hi-black-b ((,c :inverse-video t)))
`(hi-black-hb ((,c :background ,bg-main :foreground ,fg-dim :inverse-video t)))
`(hi-blue ((((class color) (min-colors 88) (background light))
:background "white" :foreground "#3366dd" :inverse-video t)
(((class color) (min-colors 88) (background dark))
:background "black" :foreground "#aaccff" :inverse-video t)))
`(hi-blue-b ((,c :inherit (bold hi-blue))))
`(hi-green ((((class color) (min-colors 88) (background light))
:background "white" :foreground "#008a00" :inverse-video t)
(((class color) (min-colors 88) (background dark))
:background "black" :foreground "#66dd66" :inverse-video t)))
`(hi-green-b ((,c :inherit (bold hi-green))))
`(hi-pink ((((class color) (min-colors 88) (background light))
:background "white" :foreground "#bd30aa" :inverse-video t)
(((class color) (min-colors 88) (background dark))
:background "black" :foreground "#ff88ee" :inverse-video t)))
`(hi-red-b ((((class color) (min-colors 88) (background light))
:background "white" :foreground "#dd0000" :inverse-video t)
(((class color) (min-colors 88) (background dark))
:background "black" :foreground "#f06666" :inverse-video t)))
`(hi-salmon ((((class color) (min-colors 88) (background light))
:background "white" :foreground "#af4f6f" :inverse-video t)
(((class color) (min-colors 88) (background dark))
:background "black" :foreground "#e08a50" :inverse-video t)))
`(hi-yellow ((((class color) (min-colors 88) (background light))
:background "white" :foreground "#af6f00" :inverse-video t)
(((class color) (min-colors 88) (background dark))
:background "black" :foreground "#faea00" :inverse-video t)))
;;;; highlight-indentation mode
`(highlight-indentation-face ((,c :background ,bg-dim)))
;;;; howm
`(action-lock-face ((,c :inherit button)))
`(howm-mode-keyword-face (( )))
`(howm-mode-ref-face ((,c :inherit link)))
`(howm-mode-title-face ((,c :inherit ef-themes-heading-0)))
`(howm-mode-wiki-face ((,c :inherit link)))
`(howm-reminder-deadline-face ((,c :foreground ,date-deadline)))
`(howm-reminder-late-deadline-face ((,c :inherit bold :foreground ,date-deadline)))
`(howm-reminder-defer-face ((,c :foreground ,date-scheduled)))
`(howm-reminder-scheduled-face ((,c :foreground ,date-scheduled)))
`(howm-reminder-done-face ((,c :foreground ,prose-done)))
`(howm-reminder-todo-face ((,c :foreground ,prose-todo)))
`(howm-reminder-normal-face ((,c :foreground ,date-common)))
`(howm-reminder-today-face ((,c :inherit bold :foreground ,date-common)))
`(howm-reminder-tomorrow-face ((,c :inherit bold :foreground ,date-scheduled)))
`(howm-simulate-todo-mode-line-face ((,c :inherit bold)))
`(howm-view-empty-face (( )))
`(howm-view-hilit-face ((,c :inherit match)))
`(howm-view-name-face ((,c :inherit bold)))
`(iigrep-counts-face1 ((,c :foreground ,rainbow-1)))
`(iigrep-counts-face2 ((,c :foreground ,rainbow-2)))
`(iigrep-counts-face3 ((,c :foreground ,rainbow-3)))
`(iigrep-counts-face4 ((,c :foreground ,rainbow-4)))
`(iigrep-counts-face5 ((,c :foreground ,rainbow-5)))
;;;; ibuffer
`(ibuffer-locked-buffer ((,c :foreground ,warning)))
;;;; image-dired
`(image-dired-thumb-flagged ((,c :background ,err :box (:line-width -3))))
`(image-dired-thumb-header-file-name ((,c :inherit bold)))
`(image-dired-thumb-header-file-size ((,c :foreground ,info)))
`(image-dired-thumb-mark ((,c :background ,info :box (:line-width -3))))
;;;; imenu-list
`(imenu-list-entry-face-0 ((,c :foreground ,rainbow-1)))
`(imenu-list-entry-face-1 ((,c :foreground ,rainbow-2)))
`(imenu-list-entry-face-2 ((,c :foreground ,rainbow-3)))
`(imenu-list-entry-face-3 ((,c :foreground ,rainbow-4)))
`(imenu-list-entry-subalist-face-0 ((,c :inherit bold :foreground ,rainbow-1 :underline t)))
`(imenu-list-entry-subalist-face-1 ((,c :inherit bold :foreground ,rainbow-2 :underline t)))
`(imenu-list-entry-subalist-face-2 ((,c :inherit bold :foreground ,rainbow-3 :underline t)))
`(imenu-list-entry-subalist-face-3 ((,c :inherit bold :foreground ,rainbow-4 :underline t)))
;;;; info
`(Info-quoted ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-verbatim))) ; the capitalization is canonical
`(info-header-node ((,c :inherit (shadow bold))))
`(info-index-match ((,c :inherit match)))
`(info-menu-header ((,c :inherit bold)))
`(info-menu-star ((,c :foreground ,red)))
`(info-node ((,c :inherit bold)))
`(info-title-1 ((,c :inherit ef-themes-heading-1)))
`(info-title-2 ((,c :inherit ef-themes-heading-2)))
`(info-title-3 ((,c :inherit ef-themes-heading-3)))
`(info-title-4 ((,c :inherit ef-themes-heading-4)))
;;;; isearch, occur, and the like
`(isearch ((,c :inherit ef-themes-search-current)))
`(isearch-fail ((,c :inherit error :background ,bg-err :foreground ,err)))
`(isearch-group-1 ((,c :inherit ef-themes-search-rx-group-0)))
`(isearch-group-2 ((,c :inherit ef-themes-search-rx-group-1)))
`(lazy-highlight ((,c :inherit ef-themes-search-lazy)))
`(match ((,c :inherit ef-themes-search-match)))
`(query-replace ((,c :inherit ef-themes-search-replace)))
;;;; jit-spell
`(jit-spell-misspelling ((,c :inherit ef-themes-underline-error)))
;;;; jinx
`(jinx-misspelled ((,c :inherit ef-themes-underline-warning)))
;;;; keycast
`(keycast-command ((,c :inherit bold)))
`(keycast-key ((,c :inherit bold :background ,bg-hover :foreground ,fg-intense :box (:line-width -1 :color ,fg-dim))))
;;;; lin
`(lin-blue ((,c :background ,bg-blue-subtle)))
`(lin-cyan ((,c :background ,bg-cyan-subtle)))
`(lin-green ((,c :background ,bg-green-subtle)))
`(lin-magenta ((,c :background ,bg-magenta-subtle)))
`(lin-red ((,c :background ,bg-red-subtle)))
`(lin-yellow ((,c :background ,bg-yellow-subtle)))
`(lin-blue-override-fg ((,c :background ,bg-blue-subtle :foreground ,fg-intense)))
`(lin-cyan-override-fg ((,c :background ,bg-cyan-subtle :foreground ,fg-intense)))
`(lin-green-override-fg ((,c :background ,bg-green-subtle :foreground ,fg-intense)))
`(lin-magenta-override-fg ((,c :background ,bg-magenta-subtle :foreground ,fg-intense)))
`(lin-red-override-fg ((,c :background ,bg-red-subtle :foreground ,fg-intense)))
`(lin-yellow-override-fg ((,c :background ,bg-yellow-subtle :foreground ,fg-intense)))
;;;; line numbers (display-line-numbers-mode and global variant)
;; We need to fall back to `default' otherwise line numbers do not
;; scale when using `text-scale-adjust'.
`(line-number ((,c :inherit (ef-themes-fixed-pitch shadow default))))
`(line-number-current-line ((,c :inherit (bold line-number) :foreground ,fg-intense)))
`(line-number-major-tick ((,c :inherit (bold line-number) :foreground ,rainbow-0)))
`(line-number-minor-tick ((,c :inherit (bold line-number))))
;;;; magit
`(magit-bisect-bad ((,c :inherit error)))
`(magit-bisect-good ((,c :inherit success)))
`(magit-bisect-skip ((,c :inherit warning)))
`(magit-blame-date (( )))
`(magit-blame-dimmed ((,c :inherit shadow)))
`(magit-blame-hash (( )))
`(magit-blame-highlight ((,c :background ,bg-active :foreground ,fg-intense)))
`(magit-blame-name (( )))
`(magit-blame-summary (( )))
`(magit-branch-local ((,c :foreground ,accent-0)))
`(magit-branch-remote ((,c :foreground ,accent-1)))
`(magit-branch-upstream ((,c :inherit italic)))
`(magit-branch-warning ((,c :inherit warning)))
`(magit-cherry-equivalent ((,c :foreground ,magenta)))
`(magit-cherry-unmatched ((,c :foreground ,cyan)))
`(magit-diff-added ((,c :background ,bg-added-faint :foreground ,fg-added)))
`(magit-diff-added-highlight ((,c :background ,bg-added :foreground ,fg-added)))
`(magit-diff-base ((,c :background ,bg-changed-faint :foreground ,fg-changed)))
`(magit-diff-base-highlight ((,c :background ,bg-changed :foreground ,fg-changed)))
`(magit-diff-context ((,c :inherit shadow)))
`(magit-diff-context-highlight ((,c :background ,bg-dim)))
`(magit-diff-file-heading ((,c :inherit bold :foreground ,accent-0)))
`(magit-diff-file-heading-highlight ((,c :inherit magit-diff-file-heading :background ,bg-alt)))
`(magit-diff-file-heading-selection ((,c :inherit bold :background ,bg-hover-secondary :foreground ,fg-intense)))
`(magit-diff-hunk-heading ((,c :background ,bg-alt)))
`(magit-diff-hunk-heading-highlight ((,c :inherit bold :background ,bg-active :foreground ,fg-intense)))
`(magit-diff-hunk-heading-selection ((,c :inherit bold :background ,bg-hover-secondary :foreground ,fg-intense)))
`(magit-diff-hunk-region ((,c :inherit bold)))
`(magit-diff-lines-boundary ((,c :background ,fg-intense)))
`(magit-diff-lines-heading ((,c :background ,fg-alt :foreground ,bg-alt)))
`(magit-diff-removed ((,c :background ,bg-removed-faint :foreground ,fg-removed)))
`(magit-diff-removed-highlight ((,c :background ,bg-removed :foreground ,fg-removed)))
`(magit-diffstat-added ((,c :inherit success)))
`(magit-diffstat-removed ((,c :inherit error)))
`(magit-dimmed ((,c :inherit shadow)))
`(magit-filename ((,c :foreground ,name)))
`(magit-hash ((,c :foreground ,identifier)))
`(magit-head ((,c :inherit magit-branch-local)))
`(magit-header-line ((,c :inherit bold)))
`(magit-header-line-key ((,c :inherit ef-themes-key-binding)))
`(magit-header-line-log-select ((,c :inherit bold)))
`(magit-keyword ((,c :foreground ,keyword)))
`(magit-keyword-squash ((,c :inherit bold :foreground ,warning)))
`(magit-log-author ((,c :foreground ,name)))
`(magit-log-date ((,c :foreground ,date-common)))
`(magit-log-graph ((,c :inherit shadow)))
`(magit-mode-line-process ((,c :inherit bold :foreground ,modeline-info)))
`(magit-mode-line-process-error ((,c :inherit bold :foreground ,modeline-err)))
`(magit-process-ng ((,c :inherit error)))
`(magit-process-ok ((,c :inherit success)))
`(magit-reflog-amend ((,c :inherit warning)))
`(magit-reflog-checkout ((,c :inherit bold :foreground ,blue)))
`(magit-reflog-cherry-pick ((,c :inherit success)))
`(magit-reflog-commit ((,c :inherit bold)))
`(magit-reflog-merge ((,c :inherit success)))
`(magit-reflog-other ((,c :inherit bold :foreground ,cyan)))
`(magit-reflog-rebase ((,c :inherit bold :foreground ,magenta)))
`(magit-reflog-remote ((,c :inherit (bold magit-branch-remote))))
`(magit-reflog-reset ((,c :inherit error)))
`(magit-refname ((,c :inherit shadow)))
`(magit-refname-pullreq ((,c :inherit shadow)))
`(magit-refname-stash ((,c :inherit shadow)))
`(magit-refname-wip ((,c :inherit shadow)))
`(magit-section ((,c :background ,bg-dim :foreground ,fg-main)))
`(magit-section-heading ((,c :inherit bold)))
`(magit-section-heading-selection ((,c :inherit bold :background ,bg-hover-secondary :foreground ,fg-intense)))
`(magit-section-highlight ((,c :background ,bg-dim)))
`(magit-sequence-done ((,c :inherit success)))
`(magit-sequence-drop ((,c :inherit error)))
`(magit-sequence-exec ((,c :inherit bold :foreground ,magenta)))
`(magit-sequence-head ((,c :inherit bold :foreground ,cyan)))
`(magit-sequence-onto ((,c :inherit (bold shadow))))
`(magit-sequence-part ((,c :inherit warning)))
`(magit-sequence-pick ((,c :inherit bold)))
`(magit-sequence-stop ((,c :inherit error)))
`(magit-signature-bad ((,c :inherit error)))
`(magit-signature-error ((,c :inherit error)))
`(magit-signature-expired ((,c :inherit warning)))
`(magit-signature-expired-key ((,c :foreground ,warning)))
`(magit-signature-good ((,c :inherit success)))
`(magit-signature-revoked ((,c :inherit bold :foreground ,warning)))
`(magit-signature-untrusted ((,c :inherit (bold shadow))))
`(magit-tag ((,c :foreground ,accent-3))) ; compare with branches
;;;; man
`(Man-overstrike ((,c :inherit bold :foreground ,accent-0)))
`(Man-underline ((,c :foreground ,accent-1 :underline t)))
;;;; marginalia
`(marginalia-archive ((,c :foreground ,accent-0)))
`(marginalia-char ((,c :foreground ,accent-2)))
`(marginalia-date ((,c :foreground ,date-common)))
`(marginalia-documentation ((,c :inherit italic :foreground ,docstring)))
`(marginalia-file-name (( )))
`(marginalia-file-owner ((,c :inherit shadow)))
`(marginalia-file-priv-dir (( )))
`(marginalia-file-priv-exec ((,c :foreground ,rainbow-3)))
`(marginalia-file-priv-link ((,c :foreground ,link)))
`(marginalia-file-priv-no ((,c :inherit shadow)))
`(marginalia-file-priv-other ((,c :foreground ,rainbow-0)))
`(marginalia-file-priv-rare ((,c :foreground ,rainbow-0)))
`(marginalia-file-priv-read ((,c :foreground ,rainbow-1)))
`(marginalia-file-priv-write ((,c :foreground ,rainbow-2)))
`(marginalia-function ((,c :foreground ,fnname)))
`(marginalia-key ((,c :inherit ef-themes-key-binding)))
`(marginalia-lighter ((,c :inherit shadow)))
`(marginalia-liqst ((,c :inherit shadow)))
`(marginalia-mode ((,c :foreground ,constant)))
`(marginalia-modified ((,c :inherit warning)))
`(marginalia-null ((,c :inherit shadow)))
`(marginalia-number ((,c :foreground ,constant)))
`(marginalia-size ((,c :foreground ,variable)))
`(marginalia-string ((,c :foreground ,string)))
`(marginalia-symbol ((,c :foreground ,builtin)))
`(marginalia-true (( )))
`(marginalia-type ((,c :foreground ,type)))
`(marginalia-value ((,c :inherit shadow)))
`(marginalia-version ((,c :foreground ,accent-1)))
;;;; markdown-mode
`(markdown-blockquote-face ((,c :inherit font-lock-doc-face)))
`(markdown-bold-face ((,c :inherit bold)))
`(markdown-code-face ((,c :inherit ef-themes-fixed-pitch :background ,bg-inactive :extend t)))
`(markdown-gfm-checkbox-face ((,c :foreground ,warning)))
`(markdown-header-face (( )))
`(markdown-header-face-1 ((,c :inherit ef-themes-heading-1)))
`(markdown-header-face-2 ((,c :inherit ef-themes-heading-2)))
`(markdown-header-face-3 ((,c :inherit ef-themes-heading-3)))
`(markdown-header-face-4 ((,c :inherit ef-themes-heading-4)))
`(markdown-header-face-5 ((,c :inherit ef-themes-heading-5)))
`(markdown-header-face-6 ((,c :inherit ef-themes-heading-6)))
`(markdown-highlighting-face ((,c :background ,bg-info :foreground ,info)))
`(markdown-inline-code-face ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-code)))
`(markdown-italic-face ((,c :inherit italic)))
`(markdown-language-keyword-face ((,c :inherit ef-themes-fixed-pitch :background ,bg-dim)))
`(markdown-line-break-face ((,c :inherit nobreak-space)))
`(markdown-link-face ((,c :inherit link)))
`(markdown-markup-face ((,c :inherit shadow)))
`(markdown-metadata-key-face ((,c :inherit bold)))
`(markdown-metadata-value-face ((,c :foreground ,string)))
`(markdown-missing-link-face ((,c :inherit warning)))
`(markdown-pre-face ((,c :inherit markdown-code-face)))
`(markdown-table-face ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-table)))
`(markdown-url-face ((,c :foreground ,fg-alt)))
;;;; mct
`(mct-highlight-candidate ((,c :background ,bg-completion)))
;;;; messages
`(message-cited-text-1 ((,c :foreground ,mail-cite-0)))
`(message-cited-text-2 ((,c :foreground ,mail-cite-1)))
`(message-cited-text-3 ((,c :foreground ,mail-cite-2)))
`(message-cited-text-4 ((,c :foreground ,mail-cite-3)))
`(message-header-name ((,c :inherit bold)))
`(message-header-newsgroups ((,c :inherit message-header-other)))
`(message-header-to ((,c :inherit bold :foreground ,mail-recipient)))
`(message-header-cc ((,c :foreground ,mail-recipient)))
`(message-header-subject ((,c :inherit bold :foreground ,mail-subject)))
`(message-header-xheader ((,c :inherit message-header-other)))
`(message-header-other ((,c :foreground ,mail-other)))
`(message-mml ((,c :foreground ,mail-part)))
`(message-separator ((,c :background ,bg-dim :foreground ,fg-main)))
;;;; mode-line
`(mode-line ((,c :inherit ef-themes-ui-variable-pitch :background ,bg-mode-line :foreground ,fg-mode-line)))
`(mode-line-active ((,c :inherit mode-line)))
`(mode-line-buffer-id ((,c :inherit bold)))
`(mode-line-emphasis ((,c :inherit bold :foreground ,modeline-info)))
`(mode-line-highlight ((,c :inherit highlight)))
`(mode-line-inactive ((,c :inherit ef-themes-ui-variable-pitch :background ,bg-alt :foreground ,fg-dim)))
;;;; mood-line
`(mood-line-modified ((,c :inherit italic)))
`(mood-line-status-error ((,c :inherit error)))
`(mood-line-status-info ((,c :foreground ,info)))
`(mood-line-status-neutral (( )))
`(mood-line-status-success ((,c :inherit success)))
`(mood-line-status-warning ((,c :inherit warning)))
`(mood-line-unimportant ((,c :inherit shadow)))
;;;; mu4e
`(mu4e-attach-number-face ((,c :inherit bold :foreground ,fg-dim)))
`(mu4e-cited-1-face ((,c :inherit message-cited-text-1)))
`(mu4e-cited-2-face ((,c :inherit message-cited-text-2)))
`(mu4e-cited-3-face ((,c :inherit message-cited-text-3)))
`(mu4e-cited-4-face ((,c :inherit message-cited-text-4)))
`(mu4e-cited-5-face ((,c :inherit message-cited-text-1)))
`(mu4e-cited-6-face ((,c :inherit message-cited-text-2)))
`(mu4e-cited-7-face ((,c :inherit message-cited-text-3)))
`(mu4e-compose-header-face ((,c :inherit mu4e-compose-separator-face)))
`(mu4e-compose-separator-face ((,c :inherit message-separator)))
`(mu4e-contact-face ((,c :inherit message-header-to)))
`(mu4e-context-face ((,c :inherit bold)))
`(mu4e-draft-face ((,c :foreground ,info)))
`(mu4e-flagged-face ((,c :foreground ,keyword)))
`(mu4e-footer-face ((,c :inherit italic :foreground ,fg-alt)))
`(mu4e-forwarded-face ((,c :inherit italic :foreground ,info)))
`(mu4e-header-face ((,c :inherit shadow)))
`(mu4e-header-highlight-face ((,c :inherit hl-line)))
`(mu4e-header-key-face ((,c :inherit message-header-name)))
`(mu4e-header-marks-face ((,c :inherit mu4e-special-header-value-face)))
`(mu4e-header-title-face ((,c :foreground ,rainbow-0)))
`(mu4e-header-value-face ((,c :inherit message-header-other)))
`(mu4e-highlight-face ((,c :inherit ef-themes-key-binding)))
`(mu4e-link-face ((,c :inherit link)))
`(mu4e-modeline-face (( )))
`(mu4e-moved-face ((,c :inherit italic :foreground ,warning)))
`(mu4e-ok-face ((,c :inherit success)))
`(mu4e-region-code ((,c :foreground ,builtin)))
`(mu4e-related-face ((,c :inherit (italic shadow))))
`(mu4e-replied-face ((,c :foreground ,info)))
`(mu4e-special-header-value-face ((,c :inherit message-header-subject)))
`(mu4e-system-face ((,c :inherit italic)))
`(mu4e-thread-fold-face ((,c :foreground ,border)))
`(mu4e-title-face (( )))
`(mu4e-trashed-face ((,c :foreground ,err)))
`(mu4e-unread-face ((,c :inherit bold)))
`(mu4e-url-number-face ((,c :inherit shadow)))
`(mu4e-view-body-face (( )))
`(mu4e-warning-face ((,c :inherit warning)))
;;;; nerd-icons
`(nerd-icons-blue ((,c :foreground ,blue-cooler)))
`(nerd-icons-blue-alt ((,c :foreground ,blue-warmer)))
`(nerd-icons-cyan ((,c :foreground ,cyan)))
`(nerd-icons-cyan-alt ((,c :foreground ,cyan-warmer)))
`(nerd-icons-dblue ((,c :foreground ,blue-faint)))
`(nerd-icons-dcyan ((,c :foreground ,cyan-faint)))
`(nerd-icons-dgreen ((,c :foreground ,green-faint)))
`(nerd-icons-dmaroon ((,c :foreground ,magenta-faint)))
`(nerd-icons-dorange ((,c :foreground ,red-faint)))
`(nerd-icons-dpink ((,c :foreground ,magenta-faint)))
`(nerd-icons-dpurple ((,c :foreground ,magenta-cooler)))
`(nerd-icons-dred ((,c :foreground ,red)))
`(nerd-icons-dsilver ((,c :foreground ,cyan-faint)))
`(nerd-icons-dyellow ((,c :foreground ,yellow-faint)))
`(nerd-icons-green ((,c :foreground ,green)))
`(nerd-icons-lblue ((,c :foreground ,blue-cooler)))
`(nerd-icons-lcyan ((,c :foreground ,cyan)))
`(nerd-icons-lgreen ((,c :foreground ,green-warmer)))
`(nerd-icons-lmaroon ((,c :foreground ,magenta-warmer)))
`(nerd-icons-lorange ((,c :foreground ,red-warmer)))
`(nerd-icons-lpink ((,c :foreground ,magenta)))
`(nerd-icons-lpurple ((,c :foreground ,magenta-faint)))
`(nerd-icons-lred ((,c :foreground ,red-faint)))
`(nerd-icons-lsilver ((,c :foreground "gray50")))
`(nerd-icons-lyellow ((,c :foreground ,yellow-warmer)))
`(nerd-icons-maroon ((,c :foreground ,magenta)))
`(nerd-icons-orange ((,c :foreground ,yellow-warmer)))
`(nerd-icons-pink ((,c :foreground ,magenta-warmer)))
`(nerd-icons-purple ((,c :foreground ,magenta-cooler)))
`(nerd-icons-purple-alt ((,c :foreground ,blue-warmer)))
`(nerd-icons-red ((,c :foreground ,red)))
`(nerd-icons-red-alt ((,c :foreground ,red-cooler)))
`(nerd-icons-silver ((,c :foreground "gray50")))
`(nerd-icons-yellow ((,c :foreground ,yellow)))
;;;;; nerd-icons-completion
`(nerd-icons-completion-dir-face ((,c :foreground ,accent-0)))
;;;; nerd-icons-dired
`(nerd-icons-dired-dir-face ((,c :foreground ,accent-0)))
;;;; nerd-icons-ibuffer
`(nerd-icons-ibuffer-dir-face ((,c :foreground ,accent-0)))
`(nerd-icons-ibuffer-file-face ((,c :foreground ,docstring)))
`(nerd-icons-ibuffer-mode-face ((,c :foreground ,type)))
`(nerd-icons-ibuffer-size-face ((,c :foreground ,variable)))
;;;; neotree
`(neo-banner-face ((,c :foreground ,accent-0)))
`(neo-button-face ((,c :inherit button)))
`(neo-dir-link-face (( )))
`(neo-expand-btn-face (( )))
`(neo-file-link-face (( )))
`(neo-header-face ((,c :inherit bold)))
`(neo-root-dir-face ((,c :inherit bold :foreground ,accent-0)))
`(neo-vc-added-face ((,c :inherit success)))
`(neo-vc-conflict-face ((,c :inherit error)))
`(neo-vc-default-face (( )))
`(neo-vc-edited-face ((,c :inherit italic)))
`(neo-vc-ignored-face ((,c :inherit shadow)))
`(neo-vc-missing-face ((,c :inherit error)))
`(neo-vc-needs-merge-face ((,c :inherit italic)))
`(neo-vc-needs-update-face ((,c :underline t)))
`(neo-vc-removed-face ((,c :strike-through t)))
`(neo-vc-unlocked-changes-face ((,c :inherit success)))
`(neo-vc-up-to-date-face (( )))
`(neo-vc-user-face ((,c :inherit warning)))
;;;; notmuch
`(notmuch-crypto-decryption ((,c :inherit bold)))
`(notmuch-crypto-part-header ((,c :foreground ,mail-part))) ; like `message-mml'
`(notmuch-crypto-signature-bad ((,c :inherit error)))
`(notmuch-crypto-signature-good ((,c :inherit success)))
`(notmuch-crypto-signature-good-key ((,c :inherit success)))
`(notmuch-crypto-signature-unknown ((,c :inherit warning)))
`(notmuch-jump-key ((,c :inherit ef-themes-key-binding)))
`(notmuch-message-summary-face ((,c :inherit bold :background ,bg-alt)))
`(notmuch-search-count ((,c :foreground ,fg-dim)))
`(notmuch-search-date ((,c :foreground ,date-common)))
`(notmuch-search-flagged-face ((,c :foreground ,keyword)))
`(notmuch-search-matching-authors ((,c :foreground ,mail-recipient)))
`(notmuch-search-non-matching-authors ((,c :inherit shadow)))
`(notmuch-search-subject ((,c :foreground ,fg-main)))
`(notmuch-search-unread-face ((,c :inherit bold)))
`(notmuch-tag-added ((,c :underline ,underline-info)))
`(notmuch-tag-deleted ((,c :strike-through ,underline-err)))
`(notmuch-tag-face ((,c :foreground ,accent-0)))
`(notmuch-tag-flagged ((,c :foreground ,keyword)))
`(notmuch-tag-unread ((,c :foreground ,accent-1)))
`(notmuch-tree-match-author-face ((,c :inherit notmuch-search-matching-authors)))
`(notmuch-tree-match-date-face ((,c :inherit notmuch-search-date)))
`(notmuch-tree-match-face ((,c :foreground ,fg-main)))
`(notmuch-tree-match-tag-face ((,c :inherit notmuch-tag-face)))
`(notmuch-tree-no-match-face ((,c :inherit shadow)))
`(notmuch-tree-no-match-date-face ((,c :inherit shadow)))
`(notmuch-wash-cited-text ((,c :inherit message-cited-text-1)))
`(notmuch-wash-toggle-button ((,c :background ,bg-dim :foreground ,fg-alt)))
;;;; olivetti
`(olivetti-fringe ((,c :background ,bg-fringe)))
;;;; orderless
`(orderless-match-face-0 ((,c :inherit bold :foreground ,accent-0)))
`(orderless-match-face-1 ((,c :inherit bold :foreground ,accent-1)))
`(orderless-match-face-2 ((,c :inherit bold :foreground ,accent-2)))
`(orderless-match-face-3 ((,c :inherit bold :foreground ,accent-3)))
;;;; org
`(org-agenda-calendar-daterange ((,c :foreground ,date-range)))
`(org-agenda-calendar-event ((,c :foreground ,date-event)))
`(org-agenda-calendar-sexp ((,c :inherit (italic org-agenda-calendar-event))))
`(org-agenda-clocking ((,c :background ,bg-warning :foreground ,warning)))
`(org-agenda-column-dateline ((,c :background ,bg-alt)))
`(org-agenda-current-time ((,c :foreground ,date-now)))
`(org-agenda-date ((,c ,@(ef-themes--heading 'agenda-date) :foreground ,date-weekday)))
`(org-agenda-date-today ((,c :inherit org-agenda-date :underline t)))
`(org-agenda-date-weekend ((,c :inherit org-agenda-date :foreground ,date-weekend)))
`(org-agenda-date-weekend-today ((,c :inherit org-agenda-date-today :foreground ,date-weekend)))
`(org-agenda-diary ((,c :inherit org-agenda-calendar-sexp)))
`(org-agenda-dimmed-todo-face ((,c :inherit shadow)))
`(org-agenda-done ((,c :inherit org-done)))
`(org-agenda-filter-category ((,c :inherit bold :foreground ,modeline-err)))
`(org-agenda-filter-effort ((,c :inherit bold :foreground ,modeline-err)))
`(org-agenda-filter-regexp ((,c :inherit bold :foreground ,modeline-err)))
`(org-agenda-filter-tags ((,c :inherit bold :foreground ,modeline-err)))
`(org-agenda-restriction-lock ((,c :background ,bg-dim :foreground ,fg-dim)))
`(org-agenda-structure ((,c ,@(ef-themes--heading 'agenda-structure) :foreground ,fg-alt)))
`(org-agenda-structure-filter ((,c :inherit org-agenda-structure :foreground ,warning)))
`(org-agenda-structure-secondary ((,c :inherit font-lock-doc-face)))
`(org-archived ((,c :background ,bg-alt :foreground ,fg-main)))
`(org-block ((,c :inherit ef-themes-fixed-pitch :background ,bg-inactive :extend t)))
`(org-block-begin-line ((,c :inherit (shadow ef-themes-fixed-pitch) :background ,bg-dim :extend t)))
`(org-block-end-line ((,c :inherit org-block-begin-line)))
`(org-checkbox ((,c :inherit ef-themes-fixed-pitch :foreground ,warning)))
`(org-checkbox-statistics-done ((,c :inherit org-done)))
`(org-checkbox-statistics-todo ((,c :inherit org-todo)))
`(org-clock-overlay ((,c :background ,bg-hover-secondary)))
`(org-code ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-code)))
`(org-column ((,c :inherit default :background ,bg-alt)))
`(org-column-title ((,c :inherit (ef-themes-fixed-pitch bold default) :underline t :background ,bg-alt)))
`(org-date ((,c :inherit ef-themes-fixed-pitch :foreground ,date-common)))
`(org-date-selected ((,c :foreground ,date-common :inverse-video t)))
`(org-dispatcher-highlight ((,c :inherit warning :background ,bg-warning)))
`(org-document-info ((,c :foreground ,prose-metadata-value)))
`(org-document-info-keyword ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-metadata)))
`(org-document-title ((,c :inherit ef-themes-heading-0)))
`(org-done ((,c :foreground ,prose-done)))
`(org-drawer ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-metadata)))
`(org-ellipsis (( ))) ; inherits from the heading's color
`(org-footnote ((,c :inherit link)))
`(org-formula ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-table-formula)))
`(org-headline-done ((,c :inherit org-done)))
`(org-headline-todo ((,c :inherit org-todo)))
`(org-hide ((,c :foreground ,bg-main)))
`(org-indent ((,c :inherit (fixed-pitch org-hide))))
`(org-imminent-deadline ((,c :inherit bold :foreground ,date-deadline)))
`(org-latex-and-related ((,c :foreground ,type)))
`(org-level-1 ((,c :inherit ef-themes-heading-1)))
`(org-level-2 ((,c :inherit ef-themes-heading-2)))
`(org-level-3 ((,c :inherit ef-themes-heading-3)))
`(org-level-4 ((,c :inherit ef-themes-heading-4)))
`(org-level-5 ((,c :inherit ef-themes-heading-5)))
`(org-level-6 ((,c :inherit ef-themes-heading-6)))
`(org-level-7 ((,c :inherit ef-themes-heading-7)))
`(org-level-8 ((,c :inherit ef-themes-heading-8)))
`(org-link ((,c :inherit link)))
`(org-list-dt ((,c :inherit bold)))
`(org-macro ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-macro)))
`(org-meta-line ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-metadata)))
`(org-mode-line-clock (( )))
`(org-mode-line-clock-overrun ((,c :inherit bold :foreground ,modeline-err)))
`(org-priority ((,c :foreground ,prose-tag)))
`(org-property-value ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-metadata-value)))
`(org-quote ((,c :inherit org-block)))
`(org-scheduled ((,c :foreground ,date-scheduled-subtle)))
`(org-scheduled-previously ((,c :inherit (bold org-scheduled-today))))
`(org-scheduled-today ((,c :foreground ,date-scheduled)))
`(org-sexp-date ((,c :foreground ,date-common)))
`(org-special-keyword ((,c :inherit (shadow ef-themes-fixed-pitch))))
`(org-table ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-table)))
`(org-table-header ((,c :inherit (bold org-table))))
`(org-tag ((,c :foreground ,prose-tag)))
`(org-tag-group ((,c :inherit (bold org-tag))))
`(org-target ((,c :underline t)))
`(org-time-grid ((,c :foreground ,fg-dim)))
`(org-todo ((,c :foreground ,prose-todo)))
`(org-upcoming-deadline ((,c :foreground ,date-deadline-subtle)))
`(org-upcoming-distant-deadline ((,c :foreground ,fg-main)))
`(org-verbatim ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-verbatim)))
`(org-verse ((,c :inherit org-block)))
`(org-warning ((,c :inherit warning)))
;;;; org-habit
`(org-habit-alert-face ((,c :background ,bg-graph-yellow-0 :foreground "black"))) ; special case
`(org-habit-alert-future-face ((,c :background ,bg-graph-yellow-1)))
`(org-habit-clear-face ((,c :background ,bg-graph-blue-0 :foreground "black"))) ; special case
`(org-habit-clear-future-face ((,c :background ,bg-graph-blue-1)))
`(org-habit-overdue-face ((,c :background ,bg-graph-red-0)))
`(org-habit-overdue-future-face ((,c :background ,bg-graph-red-1)))
`(org-habit-ready-face ((,c :background ,bg-graph-green-0 :foreground "black"))) ; special case
`(org-habit-ready-future-face ((,c :background ,bg-graph-green-1)))
;;;; outline-mode
`(outline-1 ((,c :inherit ef-themes-heading-1)))
`(outline-2 ((,c :inherit ef-themes-heading-2)))
`(outline-3 ((,c :inherit ef-themes-heading-3)))
`(outline-4 ((,c :inherit ef-themes-heading-4)))
`(outline-5 ((,c :inherit ef-themes-heading-5)))
`(outline-6 ((,c :inherit ef-themes-heading-6)))
`(outline-7 ((,c :inherit ef-themes-heading-7)))
`(outline-8 ((,c :inherit ef-themes-heading-8)))
;;;; outline-minor-faces
`(outline-minor-0 (( )))
;;;; package (M-x list-packages)
`(package-description ((,c :foreground ,docstring)))
`(package-help-section-name ((,c :inherit bold)))
`(package-name ((,c :inherit link)))
`(package-status-available ((,c :foreground ,date-common)))
`(package-status-avail-obso ((,c :inherit error)))
`(package-status-built-in ((,c :foreground ,builtin)))
`(package-status-dependency ((,c :foreground ,warning)))
`(package-status-disabled ((,c :inherit error :strike-through t)))
`(package-status-from-source ((,c :foreground ,type)))
`(package-status-held ((,c :foreground ,warning)))
`(package-status-incompat ((,c :inherit warning)))
`(package-status-installed ((,c :foreground ,fg-alt)))
`(package-status-new ((,c :inherit success)))
`(package-status-unsigned ((,c :inherit error)))
;;;; perspective
`(persp-selected-face ((,c :inherit mode-line-emphasis)))
;;;; proced
`(proced-cpu ((,c :foreground ,keyword)))
`(proced-emacs-pid ((,c :foreground ,identifier :underline t)))
`(proced-executable ((,c :foreground ,name)))
`(proced-interruptible-sleep-status-code ((,c :inherit shadow)))
`(proced-mem ((,c :foreground ,type)))
`(proced-memory-high-usage ((,c :foreground ,err)))
`(proced-memory-low-usage ((,c :foreground ,info)))
`(proced-memory-medium-usage ((,c :foreground ,warning)))
`(proced-pgrp ((,c :inherit proced-pid)))
`(proced-pid ((,c :foreground ,identifier)))
`(proced-ppid ((,c :inherit proced-pid)))
`(proced-run-status-code ((,c :inherit success)))
`(proced-sess ((,c :inherit proced-pid)))
`(proced-session-leader-pid ((,c :inherit bold :foreground ,identifier)))
`(proced-time-colon (( )))
`(proced-uninterruptible-sleep-status-code ((,c :inherit error)))
`(proced-user (( )))
;;;; powerline
`(powerline-active0 ((,c :background ,fg-dim :foreground ,bg-main)))
`(powerline-active1 ((,c :inherit mode-line)))
`(powerline-active2 ((,c :inherit mode-line-inactive)))
`(powerline-inactive0 ((,c :background ,bg-active :foreground ,fg-dim)))
`(powerline-inactive1 ((,c :background ,bg-main :foreground ,fg-dim)))
`(powerline-inactive2 ((,c :inherit mode-line-inactive)))
;;;; pulsar
`(pulsar-blue ((,c :background ,bg-blue-subtle)))
`(pulsar-cyan ((,c :background ,bg-cyan-subtle)))
`(pulsar-green ((,c :background ,bg-green-subtle)))
`(pulsar-magenta ((,c :background ,bg-magenta-subtle)))
`(pulsar-red ((,c :background ,bg-red-subtle)))
`(pulsar-yellow ((,c :background ,bg-yellow-subtle)))
;;;; pulse
`(pulse-highlight-start-face ((,c :background ,bg-blue-subtle)))
;;;; rainbow-delimiters
`(rainbow-delimiters-base-error-face ((,c :inherit (bold rainbow-delimiters-mismatched-face))))
`(rainbow-delimiters-base-face ((,c :foreground ,rainbow-0)))
`(rainbow-delimiters-depth-1-face ((,c :foreground ,rainbow-0)))
`(rainbow-delimiters-depth-2-face ((,c :foreground ,rainbow-1)))
`(rainbow-delimiters-depth-3-face ((,c :foreground ,rainbow-2)))
`(rainbow-delimiters-depth-4-face ((,c :foreground ,rainbow-3)))
`(rainbow-delimiters-depth-5-face ((,c :foreground ,rainbow-4)))
`(rainbow-delimiters-depth-6-face ((,c :foreground ,rainbow-5)))
`(rainbow-delimiters-depth-7-face ((,c :foreground ,rainbow-6)))
`(rainbow-delimiters-depth-8-face ((,c :foreground ,rainbow-7)))
`(rainbow-delimiters-depth-9-face ((,c :foreground ,rainbow-8)))
`(rainbow-delimiters-mismatched-face ((,c :background ,bg-red-intense :foreground ,fg-intense)))
`(rainbow-delimiters-unmatched-face ((,c :inherit (bold rainbow-delimiters-mismatched-face))))
;;;; rcirc
`(rcirc-bright-nick ((,c :inherit bold :foreground ,fg-intense)))
`(rcirc-dim-nick ((,c :inherit shadow)))
`(rcirc-monospace-text ((,c :inherit fixed-pitch)))
`(rcirc-my-nick ((,c :inherit bold :foreground ,accent-1)))
`(rcirc-nick-in-message ((,c :inherit rcirc-my-nick)))
`(rcirc-nick-in-message-full-line ((,c :inherit rcirc-my-nick)))
`(rcirc-other-nick ((,c :inherit bold :foreground ,accent-0)))
`(rcirc-prompt ((,c :inherit minibuffer-prompt)))
`(rcirc-server ((,c :inherit font-lock-comment-face)))
`(rcirc-timestamp ((,c :foreground ,date-common)))
`(rcirc-track-keyword ((,c :inherit bold :foreground ,modeline-warning)))
`(rcirc-track-nick ((,c :inherit rcirc-my-nick)))
`(rcirc-url ((,c :inherit link)))
;;;; recursion-indicator
`(recursion-indicator-general ((,c :foreground ,modeline-err)))
`(recursion-indicator-minibuffer ((,c :foreground ,modeline-info)))
;;;; regexp-builder (re-builder)
`(reb-match-0 ((,c :inherit ef-themes-search-rx-group-0)))
`(reb-match-1 ((,c :inherit ef-themes-search-rx-group-1)))
`(reb-match-2 ((,c :inherit ef-themes-search-rx-group-2)))
`(reb-match-3 ((,c :inherit ef-themes-search-rx-group-3)))
`(reb-regexp-grouping-backslash ((,c :inherit font-lock-regexp-grouping-backslash)))
`(reb-regexp-grouping-construct ((,c :inherit font-lock-regexp-grouping-construct)))
;;;; rst-mode
`(rst-level-1 ((,c :inherit ef-themes-heading-1)))
`(rst-level-2 ((,c :inherit ef-themes-heading-2)))
`(rst-level-3 ((,c :inherit ef-themes-heading-3)))
`(rst-level-4 ((,c :inherit ef-themes-heading-4)))
`(rst-level-5 ((,c :inherit ef-themes-heading-5)))
`(rst-level-6 ((,c :inherit ef-themes-heading-6)))
;;;; ruler-mode
`(ruler-mode-column-number ((,c :inherit ruler-mode-default)))
`(ruler-mode-comment-column ((,c :inherit ruler-mode-default :foreground ,red)))
`(ruler-mode-current-column ((,c :inherit ruler-mode-default :background ,bg-active :foreground ,fg-intense)))
`(ruler-mode-default ((,c :inherit default :background ,bg-dim :foreground ,fg-dim)))
`(ruler-mode-fill-column ((,c :inherit ruler-mode-default :foreground ,green)))
`(ruler-mode-fringes ((,c :inherit ruler-mode-default :foreground ,cyan)))
`(ruler-mode-goal-column ((,c :inherit ruler-mode-default :foreground ,blue)))
`(ruler-mode-margins ((,c :inherit ruler-mode-default :foreground ,bg-main)))
`(ruler-mode-pad ((,c :inherit ruler-mode-default :background ,bg-alt :foreground ,fg-dim)))
`(ruler-mode-tab-stop ((,c :inherit ruler-mode-default :foreground ,yellow)))
;;;; shortdoc
`(shortdoc-heading ((,c :inherit bold)))
`(shortdoc-section (())) ; remove the default's variable-pitch style
;;;; show-paren-mode
`(show-paren-match ((,c :background ,bg-paren :foreground ,fg-intense)))
`(show-paren-match-expression ((,c :background ,bg-alt)))
`(show-paren-mismatch ((,c :background ,bg-red-intense :foreground ,fg-intense)))
;;;; shell-script-mode (sh-mode)
`(sh-heredoc ((,c :inherit font-lock-doc-face)))
`(sh-quoted-exec ((,c :inherit font-lock-builtin-face)))
;;;; shr
`(shr-code ((,c :inherit ef-themes-fixed-pitch :foreground ,prose-code)))
`(shr-h1 ((,c :inherit ef-themes-heading-1)))
`(shr-h2 ((,c :inherit ef-themes-heading-2)))
`(shr-h3 ((,c :inherit ef-themes-heading-3)))
`(shr-h4 ((,c :inherit ef-themes-heading-4)))
`(shr-h5 ((,c :inherit ef-themes-heading-5)))
`(shr-h6 ((,c :inherit ef-themes-heading-6)))
`(shr-mark ((,c :inherit match)))
`(shr-selected-link ((,c :inherit link :background ,bg-dim)))
;;;; smerge
`(smerge-base ((,c :inherit diff-changed)))
`(smerge-lower ((,c :inherit diff-added)))
`(smerge-markers ((,c :inherit diff-header)))
`(smerge-refined-added ((,c :inherit diff-refine-added)))
`(smerge-refined-changed (( )))
`(smerge-refined-removed ((,c :inherit diff-refine-removed)))
`(smerge-upper ((,c :inherit diff-removed)))
;;;; spacious-padding
`(spacious-padding-subtle-mode-line-active ((,c :foreground ,accent-0)))
`(spacious-padding-subtle-mode-line-inactive ((,c :foreground ,border)))
;;;; tab-bar-mode
`(tab-bar ((,c :inherit ef-themes-ui-variable-pitch :background ,bg-tab-bar)))
`(tab-bar-tab-group-current ((,c :inherit bold :background ,bg-tab-current :box (:line-width -2 :color ,bg-tab-current) :foreground ,fg-alt)))
`(tab-bar-tab-group-inactive ((,c :background ,bg-tab-bar :box (:line-width -2 :color ,bg-tab-bar) :foreground ,fg-alt)))
`(tab-bar-tab ((,c :inherit bold :box (:line-width -2 :color ,bg-tab-current) :background ,bg-tab-current)))
`(tab-bar-tab-inactive ((,c :box (:line-width -2 :color ,bg-tab-other) :background ,bg-tab-other)))
`(tab-bar-tab-ungrouped ((,c :inherit tab-bar-tab-inactive)))
;;;; tab-line-mode
`(tab-line ((,c :inherit ef-themes-ui-variable-pitch :background ,bg-tab-bar :height 0.95)))
`(tab-line-close-highlight ((,c :foreground ,err)))
`(tab-line-highlight ((,c :inherit highlight)))
`(tab-line-tab (( )))
`(tab-line-tab-current ((,c :inherit bold :box (:line-width -2 :color ,bg-tab-current) :background ,bg-tab-current)))
`(tab-line-tab-inactive ((,c :box (:line-width -2 :color ,bg-tab-other) :background ,bg-tab-other)))
`(tab-line-tab-inactive-alternate ((,c :inherit tab-line-tab-inactive :foreground ,fg-alt)))
`(tab-line-tab-modified ((,c :foreground ,warning)))
;;;; tempel
`(tempel-default ((,c :inherit italic :background ,bg-alt :foreground ,fg-alt)))
`(tempel-field ((,c :background ,bg-info :foreground ,info)))
`(tempel-form ((,c :background ,bg-err :foreground ,err)))
;;;; term
;; NOTE 2023-08-10: `term-color-black' and `term-color-white' use
;; the "bright" semantic color mappings to make sure they are
;; distinct from `term'.
`(term ((,c :background ,bg-main :foreground ,fg-main)))
`(term-bold ((,c :inherit bold)))
`(term-color-black ((,c :background ,bg-term-black-bright :foreground ,fg-term-black-bright)))
`(term-color-blue ((,c :background ,bg-term-blue :foreground ,fg-term-blue)))
`(term-color-cyan ((,c :background ,bg-term-cyan :foreground ,fg-term-cyan)))
`(term-color-green ((,c :background ,bg-term-green :foreground ,fg-term-green)))
`(term-color-magenta ((,c :background ,bg-term-magenta :foreground ,fg-term-magenta)))
`(term-color-red ((,c :background ,bg-term-red :foreground ,fg-term-red)))
`(term-color-white ((,c :background ,bg-term-white-bright :foreground ,fg-term-white-bright)))
`(term-color-yellow ((,c :background ,bg-term-yellow :foreground ,fg-term-yellow)))
`(term-underline ((,c :underline t)))
;;;; textsec
`(textsec-suspicious (( )))
;;;; tldr
`(tldr-code-block (( )))
`(tldr-command-argument ((,c :inherit font-lock-string-face)))
`(tldr-command-itself ((,c :inherit font-lock-builtin-face)))
`(tldr-description ((,c :inherit font-lock-doc-face)))
`(tldr-introduction ((,c :inherit font-lock-comment-face)))
`(tldr-title ((,c :inherit bold)))
;;;; tmr
`(tmr-mode-line-active ((,c :inherit bold :foreground ,modeline-info)))
`(tmr-mode-line-soon ((,c :inherit bold :foreground ,modeline-warning)))
`(tmr-mode-line-urgent ((,c :inherit bold :foreground ,modeline-err)))
`(tmr-tabulated-description ((,c :foreground ,docstring)))
`(tmr-tabulated-end-time ((,c :foreground ,date-deadline)))
`(tmr-tabulated-remaining-time ((,c :foreground ,date-scheduled)))
`(tmr-tabulated-start-time ((,c :foreground ,date-common)))
;;;; transient
`(transient-active-infix ((,c :background ,bg-active :foreground ,fg-intense)))
`(transient-amaranth ((,c :inherit bold :foreground ,yellow-warmer)))
;; Placate the compiler for what is a spurious warning. We also
;; have to do this with `eldoc-highlight-function-argument'.
(list 'transient-argument `((,c :inherit warning :background ,bg-warning)))
`(transient-blue ((,c :inherit bold :foreground ,blue-cooler)))
`(transient-disabled-suffix ((,c :strike-through t)))
`(transient-enabled-suffix ((,c :inherit success :background ,bg-info)))
`(transient-heading ((,c :inherit bold)))
`(transient-inactive-argument ((,c :inherit shadow)))
`(transient-inactive-value ((,c :inherit shadow)))
;; NOTE 2023-12-09 10:30:09 +0200: The new user option
;; `transient-semantic-coloring' is enabled by default. This is
;; not good for us, because we are making it harder for users who
;; need accessible colors to use the transient interfaces. I
;; could set that user option to nil, but I think it is less
;; intrusive to enforce uniformity among the relevant faces.
;; Those who want semantic coloring can modify these faces.
`(transient-key ((,c :inherit ef-themes-key-binding)))
`(transient-key-exit ((,c :inherit ef-themes-key-binding)))
`(transient-key-noop ((,c :inherit (shadow ef-themes-key-binding))))
`(transient-key-recurse ((,c :inherit ef-themes-key-binding)))
`(transient-key-return ((,c :inherit ef-themes-key-binding)))
`(transient-key-stack ((,c :inherit ef-themes-key-binding)))
`(transient-key-stay ((,c :inherit ef-themes-key-binding)))
`(transient-mismatched-key ((,c :underline t)))
`(transient-nonstandard-key ((,c :underline t)))
`(transient-pink ((,c :inherit bold :foreground ,magenta)))
`(transient-purple ((,c :inherit bold :foreground ,magenta-cooler)))
`(transient-red ((,c :inherit bold :foreground ,red)))
`(transient-teal ((,c :inherit bold :foreground ,cyan-cooler)))
`(transient-unreachable ((,c :inherit shadow)))
`(transient-unreachable-key ((,c :inherit shadow)))
`(transient-value ((,c :inherit success :background ,bg-info)))
;;;; trashed
`(trashed-restored ((,c :inherit ef-themes-mark-other)))
;;;; tree-sitter
`(tree-sitter-hl-face:attribute ((,c :inherit font-lock-variable-name-face)))
`(tree-sitter-hl-face:constant.builtin ((,c :inherit tree-sitter-hl-face:constant)))
`(tree-sitter-hl-face:escape ((,c :inherit font-lock-regexp-grouping-backslash)))
`(tree-sitter-hl-face:function ((,c :inherit font-lock-function-name-face)))
`(tree-sitter-hl-face:function.call ((,c :inherit tree-sitter-hl-face:function)))
`(tree-sitter-hl-face:label (( )))
`(tree-sitter-hl-face:method.call (( )))
`(tree-sitter-hl-face:operator ((,c :inherit bold)))
`(tree-sitter-hl-face:property (( )))
`(tree-sitter-hl-face:property.definition ((,c :inherit font-lock-variable-name-face)))
`(tree-sitter-hl-face:punctuation (( )))
`(tree-sitter-hl-face:punctuation.bracket (( )))
`(tree-sitter-hl-face:punctuation.delimiter (( )))
`(tree-sitter-hl-face:punctuation.special ((,c :inherit font-lock-regexp-grouping-construct)))
`(tree-sitter-hl-face:string.special ((,c :inherit tree-sitter-hl-face:string)))
`(tree-sitter-hl-face:tag ((,c :inherit font-lock-function-name-face)))
`(tree-sitter-hl-face:type.argument (( )))
;;;; tty-menu
`(tty-menu-disabled-face ((,c :background ,bg-alt :foreground ,fg-dim)))
`(tty-menu-enabled-face ((,c :background ,bg-alt :foreground ,fg-intense)))
`(tty-menu-selected-face ((,c :inherit highlight)))
;;;; vc (vc-dir.el, vc-hooks.el)
`(vc-dir-directory (( )))
`(vc-dir-file ((,c :foreground ,name)))
`(vc-dir-header ((,c :inherit bold)))
`(vc-dir-header-value ((,c :foreground ,string)))
`(vc-dir-mark-indicator ((,c :foreground ,fg-intense)))
`(vc-dir-status-edited ((,c :inherit italic)))
`(vc-dir-status-ignored ((,c :inherit shadow)))
`(vc-dir-status-up-to-date ((,c :foreground ,info)))
`(vc-dir-status-warning ((,c :inherit error)))
`(vc-conflict-state ((,c :inherit error)))
`(vc-edited-state ((,c :inherit italic)))
`(vc-git-log-edit-summary-max-warning ((,c :foreground ,err)))
`(vc-git-log-edit-summary-target-warning ((,c :foreground ,warning)))
`(vc-locally-added-state ((,c :inherit italic)))
`(vc-locked-state ((,c :inherit success)))
`(vc-missing-state ((,c :inherit error)))
`(vc-needs-update-state ((,c :inherit error)))
`(vc-removed-state ((,c :inherit error)))
`(vc-state-base (( )))
`(vc-up-to-date-state (( )))
;;;; vertico
`(vertico-current ((,c :background ,bg-completion)))
`(vertico-group-title ((,c :inherit bold :foreground ,name)))
;;;; vertico-quick
`(vertico-quick1 ((,c :inherit bold :background ,bg-char-0)))
`(vertico-quick2 ((,c :inherit bold :background ,bg-char-1)))
;;;; vterm
;; NOTE 2023-08-10: `vterm-color-black' and `vterm-color-white'
;; use the "bright" semantic color mappings to make sure they are
;; distinct from `vterm-color-default'.
`(vterm-color-black ((,c :background ,bg-term-black :foreground ,fg-term-black)))
`(vterm-color-blue ((,c :background ,bg-term-blue :foreground ,fg-term-blue)))
`(vterm-color-cyan ((,c :background ,bg-term-cyan :foreground ,fg-term-cyan)))
`(vterm-color-default ((,c :background ,bg-main :foreground ,fg-main)))
`(vterm-color-green ((,c :background ,bg-term-green :foreground ,fg-term-green)))
`(vterm-color-inverse-video ((,c :background ,bg-main :inverse-video t)))
`(vterm-color-magenta ((,c :background ,bg-term-magenta :foreground ,fg-term-magenta)))
`(vterm-color-red ((,c :background ,bg-term-red :foreground ,fg-term-red)))
`(vterm-color-underline ((,c :underline t)))
`(vterm-color-white ((,c :background ,bg-term-white :foreground ,fg-term-white)))
`(vterm-color-yellow ((,c :background ,bg-term-yellow :foreground ,fg-term-yellow)))
;;;; vundo
`(vundo-default ((,c :inherit shadow)))
`(vundo-highlight ((,c :inherit (bold vundo-node) :foreground ,err)))
`(vundo-last-saved ((,c :inherit (bold vundo-node) :foreground ,fg-intense)))
`(vundo-saved ((,c :inherit vundo-node :foreground ,fg-intense)))
;;;; wgrep
`(wgrep-delete-face ((,c :inherit warning)))
`(wgrep-done-face ((,c :background ,bg-info :foreground ,info)))
`(wgrep-face ((,c :inherit bold)))
`(wgrep-file-face ((,c :foreground ,fg-alt)))
`(wgrep-reject-face ((,c :background ,bg-err :foreground ,err)))
;;;; which-function-mode
`(which-func ((,c :inherit bold :foreground ,fg-intense))) ; same as `breadcrumb-imenu-leaf-face'
;;;; which-key
`(which-key-command-description-face ((,c :foreground ,fg-main)))
`(which-key-group-description-face ((,c :foreground ,keyword)))
`(which-key-highlighted-command-face ((,c :foreground ,warning :underline t)))
`(which-key-key-face ((,c :inherit ef-themes-key-binding)))
`(which-key-local-map-description-face ((,c :foreground ,fg-main)))
`(which-key-note-face ((,c :inherit shadow)))
`(which-key-separator-face ((,c :inherit shadow)))
`(which-key-special-key-face ((,c :inherit error)))
;;;; whitespace-mode
`(whitespace-big-indent ((,c :background ,bg-space-err)))
`(whitespace-empty ((,c :background ,bg-space)))
`(whitespace-hspace ((,c :background ,bg-space :foreground ,fg-space)))
`(whitespace-indentation ((,c :background ,bg-space :foreground ,fg-space)))
`(whitespace-line ((,c :background ,bg-space :foreground ,warning)))
`(whitespace-newline ((,c :background ,bg-space :foreground ,fg-space)))
`(whitespace-space ((,c :background ,bg-space :foreground ,fg-space)))
`(whitespace-space-after-tab ((,c :inherit warning :background ,bg-space)))
`(whitespace-space-before-tab ((,c :inherit warning :background ,bg-space)))
`(whitespace-tab ((,c :background ,bg-space :foreground ,fg-space)))
`(whitespace-trailing ((,c :background ,bg-space-err)))
;;;; widget
`(widget-button ((,c :inherit bold :foreground ,link)))
`(widget-button-pressed ((,c :inherit widget-button :foreground ,link-alt)))
`(widget-documentation ((,c :inherit font-lock-doc-face)))
`(widget-field ((,c :background ,bg-alt :foreground ,fg-main :extend nil)))
`(widget-inactive ((,c :inherit shadow :background ,bg-dim)))
`(widget-single-line-field ((,c :inherit widget-field)))
;;;; window-divider-mode
`(window-divider ((,c :foreground ,border)))
`(window-divider-first-pixel ((,c :foreground ,bg-inactive)))
`(window-divider-last-pixel ((,c :foreground ,bg-inactive)))
;;;; window-tool-bar-mode
`(window-tool-bar-button ((,c :inherit ef-themes-button)))
`(window-tool-bar-button-hover ((,c :inherit (highlight ef-themes-button))))
`(window-tool-bar-button-disabled ((,c :inherit ef-themes-button :background ,bg-dim :foreground ,fg-dim)))
;;;; writegood-mode
`(writegood-duplicates-face ((,c :inherit ef-themes-underline-error)))
`(writegood-passive-voice-face ((,c :inherit ef-themes-underline-info)))
`(writegood-weasels-face ((,c :inherit ef-themes-underline-warning)))
;;;; woman
`(woman-addition ((,c :foreground ,accent-2)))
`(woman-bold ((,c :inherit bold :foreground ,accent-0)))
`(woman-italic ((,c :inherit italic :foreground ,accent-1)))
`(woman-unknown ((,c :foreground ,accent-3)))
;;;; ztree
`(ztreep-arrow-face ((,c :inherit shadow)))
`(ztreep-diff-header-face ((,c :inherit ef-themes-heading-0)))
`(ztreep-diff-header-small-face ((,c :inherit font-lock-doc-face)))
`(ztreep-diff-model-add-face ((,c :foreground ,info)))
`(ztreep-diff-model-diff-face ((,c :foreground ,err)))
`(ztreep-diff-model-ignored-face ((,c :foreground ,fg-dim :strike-through t)))
`(ztreep-diff-model-normal-face (( )))
`(ztreep-expand-sign-face ((,c :inherit shadow)))
`(ztreep-header-face ((,c :inherit ef-themes-heading-0)))
`(ztreep-leaf-face (( )))
`(ztreep-node-count-children-face ((,c :inherit (shadow italic))))
`(ztreep-node-face ((,c :foreground ,accent-0))))
"Face specs for use with `ef-themes-theme'.")
(defconst ef-themes-custom-variables
'(
;;;; chart
`(chart-face-color-list
'( ,bg-graph-red-0 ,bg-graph-green-0 ,bg-graph-yellow-0 ,bg-graph-blue-0 ,bg-graph-magenta-0 ,bg-graph-cyan-0
,bg-graph-red-1 ,bg-graph-green-1 ,bg-graph-yellow-1 ,bg-graph-blue-1 ,bg-graph-magenta-1 ,bg-graph-cyan-1))
;;;; flymake fringe indicators
`(flymake-error-bitmap '(flymake-double-exclamation-mark ef-themes-mark-delete))
`(flymake-warning-bitmap '(exclamation-mark ef-themes-mark-other))
`(flymake-note-bitmap '(exclamation-mark ef-themes-mark-select))
;;;; ibuffer
`(ibuffer-deletion-face 'ef-themes-mark-delete)
`(ibuffer-filter-group-name-face 'bold)
`(ibuffer-marked-face 'ef-themes-mark-select)
`(ibuffer-title-face 'default)
;;; pdf-tools
`(pdf-view-midnight-colors '(,fg-main . ,bg-dim)))
"Custom variables for `ef-themes-theme'.")
;;; Theme macros
;;;; Instantiate an Ef theme
;;;###autoload
(defmacro ef-themes-theme (name palette &optional overrides)
"Bind NAME's color PALETTE around face specs and variables.
Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `ef-themes-faces' and
`ef-themes-custom-variables' respectively.
Optional OVERRIDES are appended to PALETTE, overriding
corresponding entries."
(declare (indent 0))
(let ((sym (gensym))
(colors (mapcar #'car (symbol-value palette))))
`(let* ((c '((class color) (min-colors 256)))
(,sym (ef-themes--palette-value ',name ',overrides))
,@(mapcar (lambda (color)
(list color
`(ef-themes--retrieve-palette-value ',color ,sym)))
colors))
(custom-theme-set-faces ',name ,@ef-themes-faces)
(custom-theme-set-variables ',name ,@ef-themes-custom-variables))))
;;;; Use theme colors
(defmacro ef-themes-with-colors (&rest body)
"Evaluate BODY with colors from current palette bound."
(declare (indent 0))
(let* ((sym (gensym))
;; NOTE 2022-08-23: We just give it a sample palette at this
;; stage. It only needs to collect each car. Then we
;; instantiate the actual theme's palette. We have to do this
;; otherwise the macro does not work properly when called from
;; inside a function.
(colors (mapcar #'car (ef-themes--current-theme-palette))))
`(let* ((c '((class color) (min-colors 256)))
(,sym (ef-themes--current-theme-palette :overrides))
,@(mapcar (lambda (color)
(list color
`(ef-themes--retrieve-palette-value ',color ,sym)))
colors))
(ignore c ,@colors) ; Silence unused variable warnings
,@body)))
;;;; Add themes from package to path
;;;###autoload
(when load-file-name
(let ((dir (file-name-directory load-file-name)))
(unless (file-equal-p dir (expand-file-name "themes/" data-directory))
(add-to-list 'custom-theme-load-path dir))))
(provide 'ef-themes)
;;; ef-themes.el ends here
|