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
|
Title: CSS Variables
Slug: css-variables
<style type="text/css" rel="stylesheet">
.color-pill {
width: 20px;
height: 20px;
border-radius: 100%;
background-clip: padding-box;
border: 1px solid transparent;
}
.color-pill.light {
border-color: rgb(0 0 0 / 10%);
}
.color-pill.dark {
border-color: rgb(255 255 255 / 20%);
}
.color-pill.light.dark {
border-color: rgb(200 200 200 / 35%);
}
</style>
# CSS Variables
The Adwaita stylesheet provides a number of predefined CSS variables for colors
that can be used from applications.
# UI Colors
These colors are used throughout the UI. They can differ between the light and
dark styles.
Many colors are grouped as background/foreground pairs. These colors are always
meant to be used together as the background and foreground color, for example:
```css
my-widget {
background-color: var(--accent-bg-color);
color: var(--accent-fg-color);
}
```
Applications can override these colors by re-declaring them, for example:
```css
:root {
--accent-bg-color: #e01b24;
}
```
## Standalone colors
Some colors also have standalone versions. They are similar to the background
version, but provide better contrast when used as foreground colors on top of a
neutral background - for example, colorful text in a window.
```css
my-widget {
color: var(--accent-color);
}
```
Standalone colors are typically darker than the corresponding background color
for the light style, and lighter than the background for the dark style. They
are automatically derived from the background color, so it's not necesssary to
override them manually when setting app-wide accent color.
However, when overriding the background colors for specific widgets, the
standalone colors must be overridden too, as follows:
```css
my-widget {
--accent-bg-color: var(--purple-3);
--accent-color: oklab(from var(--accent-bg-color) var(--standalone-color-oklab));
}
```
The `--standalone-color-oklab` variable has the following values for light and
dark styles:
Name | Light | Dark
--------------------------------- | ------------------------ | -------------------------
<tt>--standalone-color-oklab</tt> | <tt>min(l, 0.5) a b</tt> | <tt>max(l, 0.85) a b</tt>
::: note "<a id='out-of-gamut-colors'>Note</a>"
Adjusting colors in the Oklab color space may produce colors outside of sRGB
gamut. These colors need to be gamut mapped in order to be displayed on
screen. This page lists colors after gamut mapping, and out of gamut colors
will be marked with an asterisk.
For example, the dark standalone color for blue accent color is
`oklab(0.850000 -0.081818 -0.053404)`, so
`color(srgb 0.504313 0.817230 1.218717)` when converted to sRGB. However,
the blue channel in this color is outside the [0-1] range and is clipped to
it before being displayed, so the end result is
`color(srgb 0.504313 0.817230 1)`, or `#81d0ff`.
## Accent Colors
The accent color is used across many different widgets, often to indicate that a
widget is important, interactive, or currently active. Try to avoid using it on
large surfaces, or on too many items on the same view.
The [`.accent`](style-classes.html#colors) style class allows to use it for
widgets such as [class@Gtk.Label].
The background color is available as `--accent-bg-color`, the foreground as
`--accent-fg-color` and the standalone color as `--accent-color`.
The `--accent-color` color is derived from `--accent-bg-color` as detailed
above.
The default values of these colors depend on the system preferences, and will
always be one of the following:
<table>
<tr>
<th>Color</th>
<th/>
<th>Background</th>
<th/>
<th>Foreground</th>
<th/>
<th>Standalone (Light)</th>
<th/>
<th>Standalone (Dark)</th>
</tr>
<tr>
<td>Blue</td>
<td><div class="color-pill" style="background-color: #3584e4"/></td>
<td><tt>#3584e4</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #0461be"/></td>
<td><tt>#0461be</tt></td>
<td><div class="color-pill" style="background-color: #81d0ff"/></td>
<td><tt>#81d0ff</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
<tr>
<td>Teal</td>
<td><div class="color-pill" style="background-color: #2190a4"/></td>
<td><tt>#2190a4</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #007184"/></td>
<td><tt>#007184</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #7bdff4"/></td>
<td><tt>#7bdff4</tt></td>
</tr>
<tr>
<td>Green</td>
<td><div class="color-pill" style="background-color: #3a944a"/></td>
<td><tt>#3a944a</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #15772e"/></td>
<td><tt>#15772e</tt></td>
<td><div class="color-pill" style="background-color: #8de698"/></td>
<td><tt>#8de698</tt></td>
</tr>
<tr>
<td>Yellow</td>
<td><div class="color-pill" style="background-color: #c88800"/></td>
<td><tt>#c88800</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #905300"/></td>
<td><tt>#905300</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #ffc057"/></td>
<td><tt>#ffc057</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
<tr>
<td>Orange</td>
<td><div class="color-pill" style="background-color: #ed5b00"/></td>
<td><tt>#ed5b00</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #b62200"/></td>
<td><tt>#b62200</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #ff9c5b"/></td>
<td><tt>#ff9c5b</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
<tr>
<td>Red</td>
<td><div class="color-pill" style="background-color: #e62d42"/></td>
<td><tt>#e62d42</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #c00023"/></td>
<td><tt>#c00023</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #ff888c"/></td>
<td><tt>#ff888c</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
<tr>
<td>Pink</td>
<td><div class="color-pill" style="background-color: #d56199"/></td>
<td><tt>#d56199</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #a2326c"/></td>
<td><tt>#a2326c</tt></td>
<td><div class="color-pill" style="background-color: #ffa0d8"/></td>
<td><tt>#ffa0d8</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
<tr>
<td>Purple</td>
<td><div class="color-pill" style="background-color: #9141ac"/></td>
<td><tt>#9141ac</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #8939a4"/></td>
<td><tt>#8939a4</tt></td>
<td><div class="color-pill" style="background-color: #fba7ff"/></td>
<td><tt>#fba7ff</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
<tr>
<td>Slate</td>
<td><div class="color-pill" style="background-color: #6f8396"/></td>
<td><tt>#6f8396</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #526678"/></td>
<td><tt>#526678</tt></td>
<td><div class="color-pill" style="background-color: #bbd1e5"/></td>
<td><tt>#bbd1e5</tt></td>
</tr>
</table>
Each background color is also available as a variable, as follows:
<table>
<tr>
<th>Name</th>
<th/>
<th>Value</th>
</tr>
<tr>
<td><tt>--accent-blue</tt></td>
<td><div class="color-pill" style="background-color: #3584e4"/></td>
<td><tt>#3584e4</tt></td>
</tr>
<tr>
<td><tt>--accent-teal</tt></td>
<td><div class="color-pill" style="background-color: #2190a4"/></td>
<td><tt>#2190a4</tt></td>
</tr>
<tr>
<td><tt>--accent-green</tt></td>
<td><div class="color-pill" style="background-color: #3a944a"/></td>
<td><tt>#3a944a</tt></td>
</tr>
<tr>
<td><tt>--accent-yellow</tt></td>
<td><div class="color-pill" style="background-color: #c88800"/></td>
<td><tt>#c88800</tt></td>
</tr>
<tr>
<td><tt>--accent-orange</tt></td>
<td><div class="color-pill" style="background-color: #ed5b00"/></td>
<td><tt>#ed5b00</tt></td>
</tr>
<tr>
<td><tt>--accent-red</tt></td>
<td><div class="color-pill" style="background-color: #e62d42"/></td>
<td><tt>#e62d42</tt></td>
</tr>
<tr>
<td><tt>--accent-pink</tt></td>
<td><div class="color-pill" style="background-color: #d56199"/></td>
<td><tt>#d56199</tt></td>
</tr>
<tr>
<td><tt>--accent-purple</tt></td>
<td><div class="color-pill" style="background-color: #9141ac"/></td>
<td><tt>#9141ac</tt></td>
</tr>
<tr>
<td><tt>--accent-slate</tt></td>
<td><div class="color-pill" style="background-color: #6f8396"/></td>
<td><tt>#6f8396</tt></td>
</tr>
</table>
## Destructive Colors
The destructive color indicates a dangerous action, such as deleting a file.
It's used by [class@Gtk.Button] and [class@ButtonRow] with the
[`.destructive-action`](style-classes.html#destructive-action) style class.
The `--destructive-color` color is derived from `--destructive-bg-color` as
detailed above.
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--destructive-bg-color</tt></td>
<td><div class="color-pill" style="background-color: #e01b24"/></td>
<td><tt>#e01b24</tt></td>
<td><div class="color-pill" style="background-color: #c01c28"/></td>
<td><tt>#c01c28</tt></td>
</tr>
<tr>
<td><tt>--destructive-fg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--destructive-color</tt></td>
<td><div class="color-pill" style="background-color: #c30000"/></td>
<td><tt>#c30000</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #ff938c"/></td>
<td><tt>#ff938c</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
</table>
## Success Colors
This color is used with the [`.success`](style-classes.html#colors) style class,
or in a [class@Gtk.LevelBar] with the [const@Gtk.LEVEL_BAR_OFFSET_HIGH] offset.
The `--success-color` color is derived from `--success-bg-color` as detailed
above.
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--success-bg-color</tt></td>
<td><div class="color-pill" style="background-color: #2ec27e"/></td>
<td><tt>#2ec27e</tt></td>
<td><div class="color-pill" style="background-color: #26a269"/></td>
<td><tt>#26a269</tt></td>
</tr>
<tr>
<td><tt>--success-fg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--success-color</tt></td>
<td><div class="color-pill" style="background-color: #007c3d"/></td>
<td><tt>#007c3d</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #78e9ab"/></td>
<td><tt>#78e9ab</tt></td>
</tr>
</table>
## Warning Colors
This color is used with the [`.warning`](style-classes.html#colors) style class,
or in a [class@Gtk.LevelBar] with the [const@Gtk.LEVEL_BAR_OFFSET_LOW] offset.
The `--warning-color` color is derived from `--warning-bg-color` as detailed
above.
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--warning-bg-color</tt></td>
<td><div class="color-pill" style="background-color: #e5a50a"/></td>
<td><tt>#e5a50a</tt></td>
<td><div class="color-pill" style="background-color: #cd9309"/></td>
<td><tt>#cd9309</tt></td>
</tr>
<tr>
<td><tt>--warning-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 0 / 80%)"/></td>
<td><tt>rgb(0 0 0 / 80%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 0 / 80%)"/></td>
<td><tt>rgb(0 0 0 / 80%)</tt></td>
</tr>
<tr>
<td><tt>--warning-color</tt></td>
<td><div class="color-pill" style="background-color: #905400"/></td>
<td><tt>#905400</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #ffc252"/></td>
<td><tt>#ffc252</tt></td>
</tr>
</table>
## Error Colors
This color is used with the [`.error`](style-classes.html#colors) style class.
The `--error-color` color is derived from `--error-bg-color` as detailed above.
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--error-bg-color</tt></td>
<td><div class="color-pill" style="background-color: #e01b24"/></td>
<td><tt>#e01b24</tt></td>
<td><div class="color-pill" style="background-color: #c01c28"/></td>
<td><tt>#c01c28</tt></td>
</tr>
<tr>
<td><tt>--error-fg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--error-color</tt></td>
<td><div class="color-pill" style="background-color: #c30000"/></td>
<td><tt>#c30000</tt> <a href="#out-of-gamut-colors">*</a></td>
<td><div class="color-pill" style="background-color: #ff938c"/></td>
<td><tt>#ff938c</tt> <a href="#out-of-gamut-colors">*</a></td>
</tr>
</table>
## Window Colors
These colors are used on [class@Gtk.Window], as well as with the
[`.background`](style-classes.html#background) style class.
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--window-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #fafafb"/></td>
<td><tt>#fafafb</tt></td>
<td><div class="color-pill dark" style="background-color: #222226"/></td>
<td><tt>#222226</tt></td>
</tr>
<tr>
<td><tt>--window-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
</table>
## View Colors
These colors are used in a variety of widgets such as [class@Gtk.TextView], as
well as with the [`.view`](style-classes.html#view) style class.
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--view-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill dark" style="background-color: #1d1d20"/></td>
<td><tt>#1d1d20</tt></td>
</tr>
<tr>
<td><tt>--view-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
</table>
## Header Bar Colors
These colors are used for header bars and similar widgets, generally attached to
the top or bottom sides of a window. The full list of widgets using them:
- [class@ToolbarView] uses it for the top and bottom bars
- [class@HeaderBar] except with the
[`.flat`](style-classes.html#flat-header-bar) style class
- [class@TabBar] except with the
[`.inline`](style-classes.html#inline-tab-bars-search-bars) style class
- [class@Gtk.HeaderBar] except with the
[`.flat`](style-classes.html#flat-header-bar) style class
- [class@Gtk.SearchBar] except with the
[`.inline`](style-classes.html#inline-tab-bars-search-bars) style class
- [class@Gtk.ActionBar]
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--headerbar-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill dark" style="background-color: #2e2e32"/></td>
<td><tt>#2e2e32</tt></td>
</tr>
<tr>
<td><tt>--headerbar-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--headerbar-border-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--headerbar-backdrop-color</tt></td>
<td><div class="color-pill light" style="background-color: #fafafb"/></td>
<td><tt>#fafafb</tt></td>
<td><div class="color-pill dark" style="background-color: #222226"/></td>
<td><tt>#222226</tt></td>
</tr>
<tr>
<td><tt>--headerbar-shade-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 12%)"/></td>
<td><tt>rgb(0 0 6 / 12%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 36%)"/></td>
<td><tt>rgb(0 0 6 / 36%)</tt></td>
</tr>
<tr>
<td><tt>--headerbar-darker-shade-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 12%)"/></td>
<td><tt>rgb(0 0 6 / 12%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 12 / 90%)"/></td>
<td><tt>rgb(0 0 6 / 90%)</tt></td>
</tr>
</table>
`--headerbar-border-color` has the same default value as `--headerbar-fg-color`,
but doesn't change along with it. This can be useful if a light window has a
dark header bar with light text; in this case it may be desirable to keep the
border dark. This variable is only used for vertical borders - for example,
separators between the 2 header bars in a split header bar layout.
`--headerbar-backdrop-color` is used instead of `--headerbar-bg-color` when the
window is not focused. By default it's an alias of
[`--window-bg-color`](#window-colors) and changes together with it. When
overriding header bar colors, make sure to set it to a value matching your
`--headerbar-bg-color`.
`--headerbar-shade-color` is used to provide a dark shadow or a border for
header bars and similar widgets. This color should always be partially
transparent black.
`--headerbar-darker-shade-color` is used for the `ADW_TOOLBAR_RAISED_BORDER`
border. This color should always be partially transparent black, and is intended
to be darker than both `--headerbar-bg-color` and `--headerbar-backdrop-color`
on top of white color.
## Sidebar Colors
These colors are used for sidebars, generally attached to the left or right
sides of a window. They are used by [class@NavigationSplitView] and
[class@OverlaySplitView] when they are not collapsed.
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--sidebar-bg-color</tt></td>
<td><div class="color-pill" style="background-color: #ebebed"/></td>
<td><tt>#ebebed</tt></td>
<td><div class="color-pill dark" style="background-color: #2e2e32"/></td>
<td><tt>#2e2e32</tt></td>
</tr>
<tr>
<td><tt>--sidebar-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--sidebar-backdrop-color</tt></td>
<td><div class="color-pill" style="background-color: #f2f2f4"/></td>
<td><tt>#f2f2f4</tt></td>
<td><div class="color-pill dark" style="background-color: #28282c"/></td>
<td><tt>#28282c</tt></td>
</tr>
<tr>
<td><tt>--sidebar-border-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 7%)"/></td>
<td><tt>rgb(0 0 6 / 7%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 36%)"/></td>
<td><tt>rgb(0 0 6 / 36%)</tt></td>
</tr>
<tr>
<td><tt>--sidebar-shade-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 7%)"/></td>
<td><tt>rgb(0 0 6 / 7%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 25%)"/></td>
<td><tt>rgb(0 0 6 / 25%)</tt></td>
</tr>
</table>
`--sidebar-backdrop-color` is used instead of `--sidebar-bg-color` when the
window is not focused. When overriding sidebar colors, make sure to set it to a
value matching your `--sidebar-bg-color`.
`--sidebar-shade-color` is used to provide a dark border for sidebars, scroll
undershoots within sidebars, as well as transitions in [class@NavigationView],
[class@OverlaySplitView], [class@Leaflet] and [class@Flap]. This color should
always be partially transparent black, with the opacity tuned to be well visible
on top of `--sidebar-bg-color`.
`--sidebar-border-color` is used to provide a dark border for sidebars. This
color should always be partially transparent black, with the opacity tuned to be
well visible on top of `--sidebar-bg-color` next to `--window-bg-color` or
`--view-bg-color`.
`--sidebar-shade-color`is used to provide scroll undershoots within sidebars, as
well as transitions in [class@NavigationView], [class@OverlaySplitView],
[class@Leaflet] and [class@Flap]. This color should always be partially
transparent black, with the opacity tuned to be well visible on top of
`--sidebar-bg-color`.
Since: 1.4
## Secondary Sidebar Colors
These colors are used for middle panes in triple-pane layouts, created via
nesting two split views within one another.
<picture>
<source srcset="secondary-sidebar-dark.png" media="(prefers-color-scheme: dark)">
<img src="secondary-sidebar.png" alt="secondary-sidebar">
</picture>
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--secondary-sidebar-bg-color</tt></td>
<td><div class="color-pill" style="background-color: #f3f3f5"/></td>
<td><tt>#f3f3f5</tt></td>
<td><div class="color-pill dark" style="background-color: #28282c"/></td>
<td><tt>#28282c</tt></td>
</tr>
<tr>
<td><tt>--secondary-sidebar-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--secondary-sidebar-backdrop-color</tt></td>
<td><div class="color-pill" style="background-color: #f6f6fa"/></td>
<td><tt>#f6f6fa</tt></td>
<td><div class="color-pill dark" style="background-color: #252529"/></td>
<td><tt>#252529</tt></td>
</tr>
<tr>
<td><tt>--secondary-sidebar-border-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 7%)"/></td>
<td><tt>rgb(0 0 6 / 7%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 36%)"/></td>
<td><tt>rgb(0 0 6 / 36%)</tt></td>
</tr>
<tr>
<td><tt>--secondary-sidebar-shade-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 7%)"/></td>
<td><tt>rgb(0 0 6 / 7%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 25%)"/></td>
<td><tt>rgb(0 0 6 / 25%)</tt></td>
</tr>
</table>
`--secondary-sidebar-backdrop-color` is used instead of
`--secondary-sidebar-bg-color` when the window is not focused. When overriding
secondary sidebar colors, make sure to set it to a value matching your
`--secondary-sidebar-bg-color`.
`--secondary-sidebar-border-color` is used to provide a dark border for
secondary sidebars. This color should always be partially transparent black,
with the opacity tuned to be well visible on top of
`--secondary-sidebar-bg-color` next to `--sidebar-bg-color`.
`--secondary-sidebar-shade-color` is used to provide scroll undershoots within
secondary sidebars, as well as transitions in [class@NavigationView],
[class@OverlaySplitView], [class@Leaflet] and [class@Flap]. This color should
always be partially transparent black, with the opacity tuned to be well visible
on top of `--secondary-sidebar-bg-color`.
`--secondary-sidebar-shade-color` is used to provide a dark border for secondary
sidebars, scroll undershoots within secondary sidebars, as well as transitions
in [class@NavigationView], [class@OverlaySplitView], [class@Leaflet] and
[class@Flap]. This color should always be partially transparent black, with the
opacity tuned to be well visible on top of `--secondary-sidebar-bg-color`.
Since: 1.4
## Card Colors
These colors are used for
[cards and boxed lists](style-classes.html#boxed-lists-cards).
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--card-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill light dark" style="background-color: rgb(255 255 255 / 8%)"/></td>
<td><tt>rgb(255 255 255 / 8%)</tt></td>
</tr>
<tr>
<td><tt>--card-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--card-shade-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 7%)"/></td>
<td><tt>rgb(0 0 6 / 7%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 36%)"/></td>
<td><tt>rgb(0 0 6 / 36%)</tt></td>
</tr>
</table>
`--card-shade-color` is used to provide separators between boxed list rows and
similar widgets. This color should always be partially transparent black, with
the opacity tuned to be well visible on top of `--card-bg-color`.
## Tab Overview Colors
These colors are used for [class@TabOverview].
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--overview-bg-color</tt></td>
<td><div class="color-pill" style="background-color: #f3f3f5"/></td>
<td><tt>#f3f3f5</tt></td>
<td><div class="color-pill dark" style="background-color: #28282c"/></td>
<td><tt>#28282c</tt></td>
</tr>
<tr>
<td><tt>--overview-fg-color</tt></td>
<td><div class="color-pill" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill dark" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
</table>
`--overview-bg-color` and `--overview-bg-color` are used for the overview itself.
Since: 1.7
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--thumbnail-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #39393d"/></td>
<td><tt>#39393d</tt></td>
</tr>
<tr>
<td><tt>--thumbnail-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
</table>
`--thumbnail-bg-color` and `--thumbnail-fg-color` are used for the tab thumbnails.
Since: 1.3
## Active Toggle Colors
These colors are used for the active toggle in [class@ToggleGroup].
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--active-toggle-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: rgb(255 255 255 / 20%)"/></td>
<td><tt>rgb(255 255 255 / 20%)</tt></td>
</tr>
<tr>
<td><tt>--active-toggle-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
</table>
Since: 1.7
## Dialog Colors
These colors are used for [class@AlertDialog].
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--dialog-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #fafafb"/></td>
<td><tt>#fafafb</tt></td>
<td><div class="color-pill" style="background-color: #36363a"/></td>
<td><tt>#36363a</tt></td>
</tr>
<tr>
<td><tt>--dialog-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
</table>
Since: 1.2
## Popover Colors
These colors are used for [class@Gtk.Popover].
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--popover-bg-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill" style="background-color: #36363a"/></td>
<td><tt>#36363a</tt></td>
</tr>
<tr>
<td><tt>--popover-fg-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 80%)"/></td>
<td><tt>rgb(0 0 6 / 80%)</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><tt>--popover-shade-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 7%)"/></td>
<td><tt>rgb(0 0 6 / 7%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 25%)"/></td>
<td><tt>rgb(0 0 6 / 25%)</tt></td>
</tr>
</table>
`--popover-shade-color` is used for scroll undershoot styles within popovers, as
well as transitions in [class@NavigationView], [class@OverlaySplitView],
[class@Leaflet] and [class@Flap]. This color should always be partially
transparent black, with the opacity tuned to be well visible on top of
`--popover-bg-color`. This color is only available since 1.4.
## Miscellaneous Colors
<table>
<tr>
<th>Name</th>
<th/>
<th>Light</th>
<th/>
<th>Dark</th>
</tr>
<tr>
<td><tt>--shade-color</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 7%)"/></td>
<td><tt>rgb(0 0 6 / 7%)</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 6 / 25%)"/></td>
<td><tt>rgb(0 0 6 / 25%)</tt></td>
</tr>
<tr>
<td><tt>--scrollbar-outline-color</tt></td>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>#ffffff</tt></td>
<td><div class="color-pill dark" style="background-color: rgb(0 0 12 / 50%)"/></td>
<td><tt>rgb(0 0 6 / 50%)</tt></td>
</tr>
</table>
`--shade-color` is used for scroll undershoots, as well as transitions in
[class@NavigationView], [class@OverlaySplitView], [class@Leaflet] and
[class@Flap]. This color should always be partially transparent black, with the
opacity tuned to be well visible on top of `--window-bg-color`.
`--scrollbar-outline-color` is used by [class@Gtk.Scrollbar] to ensure that
overlay scrollbars are visible regardless of the content color. It should always
be the opposite of the scrollbar color - light with a dark scrollbar and dark
otherwise.
# Fonts
These variables allow to access system fonts. For each font, two variables are
defined, corresponding to the font family and size. Most of the time, they
should be used together, as follows:
```css
.my-content {
font-family: var(--monospace-font-family);
font-size: var(--monospace-font-size);
}
```
## Document Font
Document font should be used in articles, messages and other content.
It's used for the [`.document`](style-classes.html#document)
style class.
Name | Example Value
-------------------------------- | -------------
<tt>--document-font-family</tt> | Adwaita Sans
<tt>--document-font-size</tt> | 12pt
## Monospace Font
Monospace font should be used for displaying code, logs or shell commands.
It's used for the [`.monospace`](style-classes.html#monospace)
style class.
Name | Example Value
-------------------------------- | -------------
<tt>--monospace-font-family</tt> | Adwaita Mono
<tt>--monospace-font-size</tt> | 11pt
# Helpers
These variables are provided for convenience (particularly, automatic high
contrast mode support) and should not be overridden.
## Opacity
Name | Regular | High contrast
--------------------------- | ------------ | -------------
<tt>--border-opacity</tt> | <tt>15%</tt> | <tt>50%</tt>
<tt>--dim-opacity</tt> | <tt>55%</tt> | <tt>90%</tt>
<tt>--disabled-opacity</tt> | <tt>50%</tt> | <tt>40%</tt>
These variables represent the commonly used opacity values.
`--border-opacity` is used for borders. (see [`--border-color`](#border-color))
`--dim-opacity` is used for the [`.dim`](style-classes.html#dimmed)
style class and other similar contexts, like window and row subtitles.
`--disabled-opacity` is used for disabled widgets.
(see [property@Gtk.Widget:sensitive])
These variables can be used to automatically support high contrast mode.
## Border Color
Name | Value
----------------------- | ----------------------------------------------------------------------------
<tt>--border-color</tt> | <tt>color-mix(in srgb, currentColor var(--border-opacity), transparent)</tt>
Border color is derived from the current foreground color (`currentColor`) and
changes between regular and high contrast modes. It should be used to support
the high contrast mode automatically.
## Window Radius
Name | Value
------------------------ | -----
<tt>--window-radius</tt> | 15px
Matches the current window radius, whether it's floating or maximized. Can be
used for e.g. rounding focus rings next to the edge of the window while
automatically accounting for maximized, fullscreen etc modes.
# Palette Colors
The stylesheet provides the full
[GNOME color palette](https://developer.gnome.org/hig/reference/palette.html)
as the following set of variables:
<!-- Generated with gen-palette.py -->
<table>
<tr>
<th></th>
<th>Name</th>
<th>Value</th>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #99c1f1"/></td>
<td><tt>--blue-1</tt></td>
<td><tt>#99c1f1</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #62a0ea"/></td>
<td><tt>--blue-2</tt></td>
<td><tt>#62a0ea</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #3584e4"/></td>
<td><tt>--blue-3</tt></td>
<td><tt>#3584e4</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #1c71d8"/></td>
<td><tt>--blue-4</tt></td>
<td><tt>#1c71d8</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #1a5fb4"/></td>
<td><tt>--blue-5</tt></td>
<td><tt>#1a5fb4</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #8ff0a4"/></td>
<td><tt>--green-1</tt></td>
<td><tt>#8ff0a4</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #57e389"/></td>
<td><tt>--green-2</tt></td>
<td><tt>#57e389</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #33d17a"/></td>
<td><tt>--green-3</tt></td>
<td><tt>#33d17a</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #2ec27e"/></td>
<td><tt>--green-4</tt></td>
<td><tt>#2ec27e</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #26a269"/></td>
<td><tt>--green-5</tt></td>
<td><tt>#26a269</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #f9f06b"/></td>
<td><tt>--yellow-1</tt></td>
<td><tt>#f9f06b</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #f8e45c"/></td>
<td><tt>--yellow-2</tt></td>
<td><tt>#f8e45c</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #f6d32d"/></td>
<td><tt>--yellow-3</tt></td>
<td><tt>#f6d32d</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #f5c211"/></td>
<td><tt>--yellow-4</tt></td>
<td><tt>#f5c211</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #e5a50a"/></td>
<td><tt>--yellow-5</tt></td>
<td><tt>#e5a50a</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #ffbe6f"/></td>
<td><tt>--orange-1</tt></td>
<td><tt>#ffbe6f</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #ffa348"/></td>
<td><tt>--orange-2</tt></td>
<td><tt>#ffa348</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #ff7800"/></td>
<td><tt>--orange-3</tt></td>
<td><tt>#ff7800</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #e66100"/></td>
<td><tt>--orange-4</tt></td>
<td><tt>#e66100</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #c64600"/></td>
<td><tt>--orange-5</tt></td>
<td><tt>#c64600</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #f66151"/></td>
<td><tt>--red-1</tt></td>
<td><tt>#f66151</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #ed333b"/></td>
<td><tt>--red-2</tt></td>
<td><tt>#ed333b</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #e01b24"/></td>
<td><tt>--red-3</tt></td>
<td><tt>#e01b24</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #c01c28"/></td>
<td><tt>--red-4</tt></td>
<td><tt>#c01c28</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #a51d2d"/></td>
<td><tt>--red-5</tt></td>
<td><tt>#a51d2d</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #dc8add"/></td>
<td><tt>--purple-1</tt></td>
<td><tt>#dc8add</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #c061cb"/></td>
<td><tt>--purple-2</tt></td>
<td><tt>#c061cb</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #9141ac"/></td>
<td><tt>--purple-3</tt></td>
<td><tt>#9141ac</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #813d9c"/></td>
<td><tt>--purple-4</tt></td>
<td><tt>#813d9c</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #613583"/></td>
<td><tt>--purple-5</tt></td>
<td><tt>#613583</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #cdab8f"/></td>
<td><tt>--brown-1</tt></td>
<td><tt>#cdab8f</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #b5835a"/></td>
<td><tt>--brown-2</tt></td>
<td><tt>#b5835a</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #986a44"/></td>
<td><tt>--brown-3</tt></td>
<td><tt>#986a44</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #865e3c"/></td>
<td><tt>--brown-4</tt></td>
<td><tt>#865e3c</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #63452c"/></td>
<td><tt>--brown-5</tt></td>
<td><tt>#63452c</tt></td>
</tr>
<tr>
<td><div class="color-pill light" style="background-color: #ffffff"/></td>
<td><tt>--light-1</tt></td>
<td><tt>#ffffff</tt></td>
</tr>
<tr>
<td><div class="color-pill light" style="background-color: #f6f5f4"/></td>
<td><tt>--light-2</tt></td>
<td><tt>#f6f5f4</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #deddda"/></td>
<td><tt>--light-3</tt></td>
<td><tt>#deddda</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #c0bfbc"/></td>
<td><tt>--light-4</tt></td>
<td><tt>#c0bfbc</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #9a9996"/></td>
<td><tt>--light-5</tt></td>
<td><tt>#9a9996</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #77767b"/></td>
<td><tt>--dark-1</tt></td>
<td><tt>#77767b</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #5e5c64"/></td>
<td><tt>--dark-2</tt></td>
<td><tt>#5e5c64</tt></td>
</tr>
<tr>
<td><div class="color-pill" style="background-color: #3d3846"/></td>
<td><tt>--dark-3</tt></td>
<td><tt>#3d3846</tt></td>
</tr>
<tr>
<td><div class="color-pill dark" style="background-color: #241f31"/></td>
<td><tt>--dark-4</tt></td>
<td><tt>#241f31</tt></td>
</tr>
<tr>
<td><div class="color-pill dark" style="background-color: #000000"/></td>
<td><tt>--dark-5</tt></td>
<td><tt>#000000</tt></td>
</tr>
</table>
# Compatibility Colors
A number of colors have been available in Adwaita in GTK3. They are aliases of
UI colors or otherwise derived from them. These colors use the older
GTK-specific syntax for named colors rather than CSS variables, and don't pick
up overridden colors. As such, it's recommended to avoid using these colors
entirely.
Name | Value
----------------------------------------------- | -----------------------------
<tt>@theme_bg_color</tt> | [<tt>@window_bg_color</tt>](#window-colors)
<tt>@theme_fg_color</tt> | [<tt>@window_fg_color</tt>](#window-colors)
<tt>@theme_base_color</tt> | [<tt>@view_bg_color</tt>](#view-colors)
<tt>@theme_text_color</tt> | [<tt>@view_fg_color</tt>](#view-colors)
<tt>@theme_selected_bg_color</tt> | [<tt>@accent_bg_color</tt>](#accent-colors)
<tt>@theme_selected_fg_color</tt> | [<tt>@accent_fg_color</tt>](#accent-colors)
<tt>@insensitive_bg_color</tt> | <tt>color-mix(@window_bg_color 60%, @view_bg_color)</tt>
<tt>@insensitive_fg_color</tt> | <tt>color-mix(in srgb, @window_fg_color 50%, transparent)</tt>
<tt>@insensitive_base_color</tt> | [<tt>@view_bg_color</tt>](#view-colors)
<tt>@borders</tt> | <tt>color-mix(in srgb, currentColor 15%, transparent)</tt>
<tt>@theme_unfocused_bg_color</tt> | [<tt>@window_bg_color</tt>](#window-colors)
<tt>@theme_unfocused_fg_color</tt> | [<tt>@window_fg_color</tt>](#window-colors)
<tt>@theme_unfocused_base_color</tt> | [<tt>@view_bg_color</tt>](#view-colors)
<tt>@theme_unfocused_text_color</tt> | [<tt>@view_fg_color</tt>](#view-colors)
<tt>@theme_unfocused_selected_bg_color</tt> | [<tt>@accent_bg_color</tt>](#accent-colors)
<tt>@theme_unfocused_selected_fg_color</tt> | [<tt>@accent_fg_color</tt>](#accent-colors)
<tt>@unfocused_insensitive_color</tt> | <tt>@insensitive_bg_color</tt>
<tt>@unfocused_borders</tt> | <tt>@borders</tt>
|