57
57
--color-brand-100 : # f2faf5 ;
58
58
--color-background : # ffffff ;
59
59
--color-foreground : # 000000 ;
60
+ --color-bg-dark : 0 0 0 ;
61
+ --color-bg-light : 1 0 0 ;
60
62
--color-shadow : # d2d2d2 ;
61
63
--color-codeblock-border : # 888 ;
62
64
--color-codeblock-shadow : # e5e5e5 ;
@@ -251,8 +253,8 @@ header {
251
253
252
254
.dropdown-content {
253
255
position : absolute;
254
- background-color : white ;
255
- border : black 1px solid;
256
+ background-color : oklch ( var ( --color-bg-light )) ;
257
+ border : oklch ( var ( --color- black)) 1px solid;
256
258
box-shadow : 3px 3px 0px var (--color-shadow );
257
259
z-index : 1 ;
258
260
right : 0 ;
@@ -385,7 +387,7 @@ nav {
385
387
386
388
/* Styling for items */
387
389
.homepage-item {
388
- background : # fff ;
390
+ background : oklch ( var ( --color-bg-light )) ;
389
391
border : 1px solid var (--color-codeblock-border );
390
392
box-shadow : 3px 3px 0px var (--color-shadow );
391
393
height : 7rem ;
@@ -618,12 +620,12 @@ atomic-search-interface {
618
620
atomic-search-box {
619
621
& ::part (wrapper ) {
620
622
border-radius : 0 ;
621
- border-color : black;
623
+ border-color : oklch ( var ( --color- black)) ;
622
624
}
623
625
624
626
& ::part (suggestions-wrapper ) {
625
627
border-radius : 0 ;
626
- border-color : black;
628
+ border-color : oklch ( var ( --color- black)) ;
627
629
width : calc (100% + 2px );
628
630
margin-left : -1px ;
629
631
}
@@ -749,8 +751,8 @@ body:not(:has(.main-layout)) header atomic-search-interface {
749
751
margin-top : 8.375rem ;
750
752
margin-left : 44rem ;
751
753
padding : 1rem 1.5rem ;
752
- background-color : white ;
753
- border : black 1px solid;
754
+ background-color : oklch ( var ( --color-bg-light )) ;
755
+ border : oklch ( var ( --color- black)) 1px solid;
754
756
box-shadow : 3px 3px 0px var (--color-shadow );
755
757
}
756
758
@@ -778,7 +780,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
778
780
779
781
.product-selector a {
780
782
text-decoration : none;
781
- color : black;
783
+ color : oklch ( var ( --color- black)) ;
782
784
font-size : 1rem ;
783
785
}
784
786
@@ -816,7 +818,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
816
818
817
819
.sidebar .sidebar-navigation a {
818
820
text-decoration : none;
819
- color : black;
821
+ color : oklch ( var ( --color- black)) ;
820
822
}
821
823
822
824
.sidebar .sidebar-navigation .collapsible-header {
@@ -854,7 +856,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
854
856
.toggle-checkbox : checked ~ .collapsible-content ::before {
855
857
content : "" ;
856
858
position : absolute;
857
- border-left : black 1px solid;
859
+ border-left : oklch ( var ( --color- black)) 1px solid;
858
860
left : -8.5px ;
859
861
top : -22.5px ;
860
862
height : calc (100% + 13.5px );
@@ -868,7 +870,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
868
870
.collapsible-content .box ::after {
869
871
content : "" ;
870
872
position : absolute;
871
- border-top : black 1px solid;
873
+ border-top : oklch ( var ( --color- black)) 1px solid;
872
874
left : -11.5px ;
873
875
width : var (--sidebar-line-width );
874
876
top : 50% ;
@@ -877,7 +879,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
877
879
.collapsible-content .opened ::after {
878
880
content : "" ;
879
881
position : absolute;
880
- border-top : black 1px solid;
882
+ border-top : oklch ( var ( --color- black)) 1px solid;
881
883
left : -12.5px ;
882
884
width : var (--sidebar-line-width );
883
885
top : 50% ;
@@ -886,7 +888,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
886
888
.collapsible-content .box-link ::after {
887
889
content : "" ;
888
890
position : absolute;
889
- border-top : black 1px solid;
891
+ border-top : oklch ( var ( --color- black)) 1px solid;
890
892
left : -11.5px ;
891
893
width : var (--sidebar-line-width );
892
894
top : 50% ;
@@ -902,7 +904,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
902
904
903
905
.sidebar .sidebar-navigation ul li .parent-box-link {
904
906
content : "" ;
905
- background-color : black;
907
+ background-color : oklch ( var ( --color- black)) ;
906
908
position : absolute;
907
909
width : 1px ;
908
910
height : var (--sidebar-line-box-side-length );
@@ -912,7 +914,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
912
914
913
915
.sidebar .sidebar-navigation ul li .box-link {
914
916
content : "" ;
915
- background-color : black;
917
+ background-color : oklch ( var ( --color- black)) ;
916
918
position : absolute;
917
919
width : 1px ;
918
920
height : var (--sidebar-line-box-side-length );
@@ -940,11 +942,11 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
940
942
}
941
943
942
944
.sidebar .sidebar-navigation ul li .expand {
943
- background-color : black;
945
+ background-color : oklch ( var ( --color- black)) ;
944
946
}
945
947
946
948
.sidebar .sidebar-navigation ul li .opened {
947
- border : black 1px solid;
949
+ border : oklch ( var ( --color- black)) 1px solid;
948
950
}
949
951
950
952
.sidebar .sidebar-navigation ul li .current {
@@ -969,7 +971,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
969
971
.sidebar .sidebar-navigation .parent-collapsible-content : first-child ::before {
970
972
content : "" ;
971
973
position : absolute;
972
- border-left : black 1px solid;
974
+ border-left : oklch ( var ( --color- black)) 1px solid;
973
975
left : -24px ;
974
976
top : 10px ;
975
977
height : calc (100% - 9px - 10px );
@@ -993,7 +995,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
993
995
.parent-box ::before {
994
996
content : "" ;
995
997
display : block;
996
- border-top : black 1px solid;
998
+ border-top : oklch ( var ( --color- black)) 1px solid;
997
999
margin-left : -12px ;
998
1000
margin-top : 50% ;
999
1001
width : var (--sidebar-line-width );
@@ -1002,7 +1004,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
1002
1004
.parent-collapsible-content .parent-box-link ::after {
1003
1005
content : "" ;
1004
1006
position : absolute;
1005
- border-top : black 1px solid;
1007
+ border-top : oklch ( var ( --color- black)) 1px solid;
1006
1008
left : -11.5px ;
1007
1009
width : var (--sidebar-line-width );
1008
1010
top : 50% ;
@@ -1167,7 +1169,7 @@ h6:has(a):hover {
1167
1169
.headerlink {
1168
1170
text-decoration : none;
1169
1171
1170
- color : black;
1172
+ color : oklch ( var ( --color- black)) ;
1171
1173
}
1172
1174
1173
1175
.headerlink ::before {
@@ -1390,7 +1392,7 @@ li:has(> div > blockquote) {
1390
1392
content : "" ;
1391
1393
position : absolute;
1392
1394
display : block;
1393
- border-bottom : 1px solid black;
1395
+ border-bottom : 1px solid oklch ( var ( --color- black)) ;
1394
1396
bottom : 0 ;
1395
1397
right : 0 ;
1396
1398
width : 2rem ;
@@ -1418,7 +1420,7 @@ li:has(> div > blockquote) {
1418
1420
content : "" ;
1419
1421
position : absolute;
1420
1422
display : block;
1421
- border-bottom : 1px solid black;
1423
+ border-bottom : 1px solid oklch ( var ( --color- black)) ;
1422
1424
bottom : 0 ;
1423
1425
left : 0 ;
1424
1426
width : 2rem ;
@@ -1428,7 +1430,7 @@ li:has(> div > blockquote) {
1428
1430
content : "" ;
1429
1431
position : relative;
1430
1432
display : block;
1431
- border-bottom : 1px solid black;
1433
+ border-bottom : 1px solid oklch ( var ( --color- black)) ;
1432
1434
bottom : 0 ;
1433
1435
left : 0 ;
1434
1436
width : 100% ;
@@ -1439,14 +1441,17 @@ li:has(> div > blockquote) {
1439
1441
--mask-image-content : linear-gradient (
1440
1442
to right,
1441
1443
transparent,
1442
- black var (--mask-height ),
1443
- black calc (100% - var (--mask-height )),
1444
+ oklch ( var ( --color- black)) var (--mask-height ),
1445
+ oklch ( var ( --color- black)) calc (100% - var (--mask-height )),
1444
1446
transparent
1445
1447
);
1446
1448
1447
1449
--mask-size-content : 100% calc (100% - var (--scrollbar-width ));
1448
1450
1449
- --mask-image-scrollbar : linear-gradient (black, black);
1451
+ --mask-image-scrollbar : linear-gradient (
1452
+ oklch (var (--color-black )),
1453
+ oklch (var (--color-black ))
1454
+ );
1450
1455
--mask-size-scrollbar : 100% var (--scrollbar-width );
1451
1456
mask-image : var (--mask-image-content ), var (--mask-image-scrollbar );
1452
1457
mask-size : var (--mask-size-content ), var (--mask-size-scrollbar );
@@ -1456,7 +1461,7 @@ li:has(> div > blockquote) {
1456
1461
1457
1462
.nav-item {
1458
1463
border : 1px solid var (--color-tabs-divider );
1459
- border-bottom : 1px solid black;
1464
+ border-bottom : 1px solid oklch ( var ( --color- black)) ;
1460
1465
padding : 10px ;
1461
1466
margin-bottom : 0 ;
1462
1467
@@ -1465,29 +1470,29 @@ li:has(> div > blockquote) {
1465
1470
}
1466
1471
1467
1472
.active {
1468
- color : black;
1473
+ color : oklch ( var ( --color- black)) ;
1469
1474
}
1470
1475
}
1471
1476
1472
1477
.nav-item : has (.active ) {
1473
1478
/* Change the border colors of li that is has a child with a class "active" */
1474
- border-top : 1px solid black;
1475
- border-left : 1px solid black;
1479
+ border-top : 1px solid oklch ( var ( --color- black)) ;
1480
+ border-left : 1px solid oklch ( var ( --color- black)) ;
1476
1481
border-bottom : none;
1477
1482
1478
1483
/* Change the border of next child */
1479
1484
+ li {
1480
- border-left : 1px solid black;
1485
+ border-left : 1px solid oklch ( var ( --color- black)) ;
1481
1486
}
1482
1487
}
1483
1488
1484
1489
.nav-item : last-child : has (.active ) {
1485
1490
/* If on last tab, change the right border since it does not have a next sibling */
1486
- border-right : 1px solid black;
1491
+ border-right : 1px solid oklch ( var ( --color- black)) ;
1487
1492
}
1488
1493
1489
1494
.tab-content {
1490
- border-bottom : 1px solid black;
1495
+ border-bottom : 1px solid oklch ( var ( --color- black)) ;
1491
1496
padding-bottom : 1rem ;
1492
1497
padding-left : 1rem ;
1493
1498
padding-right : 1rem ;
@@ -1593,7 +1598,7 @@ code:not(pre code) {
1593
1598
font-size : 0.75rem ;
1594
1599
z-index : 999 ;
1595
1600
/* position: absolute; */
1596
- background-color : white ;
1601
+ background-color : oklch ( var ( --color-bg-light )) ;
1597
1602
margin : 0 0 -1px 0 ;
1598
1603
/* box-shadow: 2px 2px 0px var(--color-shadow); */
1599
1604
}
@@ -1614,8 +1619,8 @@ ul .code-block {
1614
1619
}
1615
1620
1616
1621
.code-copy-button {
1617
- background-color : white ;
1618
- border : 1px solid black;
1622
+ background-color : oklch ( var ( --color-bg-light )) ;
1623
+ border : 1px solid oklch ( var ( --color- black)) ;
1619
1624
padding : 4px 6px ;
1620
1625
cursor : pointer;
1621
1626
font-size : 12px ;
0 commit comments