Skip to content

Commit 2cab10d

Browse files
committed
feat(dark-mode): squash me
1 parent 3fadbd3 commit 2cab10d

File tree

19 files changed

+65
-29
lines changed

19 files changed

+65
-29
lines changed

src/docs/components/docs-color/docs-color.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.docs-color {
2-
background: var(--ld-layer-2)
2+
background: var(--ld-layer)
33
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><g><rect height="12" width="12" fill="black" fill-opacity="0.2"></rect><rect height="12" width="12" y="12" x="12" fill="black" fill-opacity="0.2"></rect></g></svg>');
44
border-color: var(--ld-col-neutral-100);
55
display: flex;
@@ -31,7 +31,7 @@
3131

3232
.docs-color--dark {
3333
color: var(--ld-col-neutral-010);
34-
background: var(--ld-layer-2)
34+
background: var(--ld-layer)
3535
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><g><rect height="12" width="12" fill="white" fill-opacity="0.2"></rect><rect height="12" width="12" y="12" x="12" fill="white" fill-opacity="0.2"></rect></g></svg>');
3636

3737
.docs-copy-to-cb {

src/docs/components/docs-edit-on-github/docs-edit-on-github.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
--ld-button-border-bottom-left-radius: calc(
1111
var(--ld-br-m) + var(--ld-sp-2)
1212
);
13-
background-color: var(--ld-layer-2);
13+
background-color: var(--ld-layer);
1414
color: var(--ld-col-neutral-900);
15-
box-shadow: inset 0 0 0 2px var(--ld-layer-1);
15+
box-shadow: inset 0 0 0 2px var(--ld-layer);
1616

1717
&:focus:focus-visible {
1818
color: var(--ld-col-neutral-900);

src/docs/components/docs-example/docs-example.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
.docs-example__code {
6-
background-color: var(--ld-layer-0);
6+
background-color: var(--ld-layer);
77
overflow: hidden;
88
display: none;
99
border-bottom-left-radius: var(--ld-br-l);
@@ -21,7 +21,7 @@
2121
overflow: auto;
2222
display: flex;
2323
width: 100%;
24-
background-color: var(--ld-layer-2);
24+
background-color: var(--ld-layer);
2525
border-bottom-left-radius: var(--ld-br-l);
2626
border-bottom-right-radius: var(--ld-br-l);
2727
}
@@ -54,7 +54,7 @@
5454
}
5555

5656
.docs-example__show {
57-
background-color: var(--ld-layer-0);
57+
background-color: var(--ld-layer);
5858
color: var(--ld-col-neutral-900);
5959
border-top-left-radius: var(--ld-br-l);
6060
border-top-right-radius: var(--ld-br-l);
@@ -114,7 +114,7 @@
114114
}
115115

116116
.docs-example__show--light {
117-
background-color: var(--ld-layer-0);
117+
background-color: var(--ld-layer);
118118
}
119119

120120
.docs-example--code-visible {

src/docs/components/docs-example/docs-example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class DocsExample {
134134
this.codeType === 'react' && 'docs-example--react-component',
135135
]
136136

137-
let clShow = 'docs-example__show'
137+
let clShow = 'docs-example__show ld-layer-0'
138138
if (this.themable && this.currentTheme) {
139139
clShow += ' ld-theme-' + this.currentTheme.toLowerCase()
140140
}

src/docs/components/docs-icon/docs-icon.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
width: 100%;
1515

1616
&:hover {
17-
background: var(--ld-layer-2);
17+
background: var(--ld-layer);
1818
color: var(--ld-col-neutral-900);
1919
height: calc(100% + var(--ld-sp-16));
2020
margin: calc(var(--ld-sp-8) * -1);

src/docs/components/docs-main/docs-main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
> [id^='methods'] ~ h3 {
2929
code {
3030
box-shadow: inset 0 0 0 var(--ld-sp-1) var(--ld-col-neutral-100);
31-
background-color: var(--ld-layer-1);
31+
background-color: var(--ld-layer);
3232
}
3333
}
3434

src/docs/components/docs-nav/docs-nav.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
pointer-events: none;
6969

7070
&::before {
71-
background-color: var(--ld-layer-2);
71+
background-color: var(--ld-layer);
7272
content: '';
7373
position: fixed;
7474
height: 100%;
@@ -94,7 +94,7 @@
9494
}
9595

9696
.docs-nav__content {
97-
background-color: var(--ld-layer-2);
97+
background-color: var(--ld-layer);
9898
box-shadow: var(--ld-sp-1) 0 0 0 var(--ld-col-neutral-100);
9999
pointer-events: all;
100100
bottom: 0;

src/docs/components/docs-toc/docs-toc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
padding: var(--ld-sp-8) var(--ld-sp-24) var(--ld-sp-24) 0;
88

99
&::before {
10-
background-color: var(--ld-layer-0);
10+
background-color: var(--ld-layer);
1111
content: '';
1212
position: absolute;
1313
left: 0;

src/docs/components/docs-topbar/docs-topbar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959

6060
.docs-topbar__headline {
61-
color: var(--ld-layer-2);
61+
color: var(--ld-layer);
6262
font-family: var(--ld-font-body);
6363

6464
b {

src/docs/components/docs-topbar/docs-topbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class DocsTopbar {
8282
fill-rule="evenodd"
8383
clip-rule="evenodd"
8484
d="M11.9633 0C5.3578 0 0 5.50719 0 12.2969C0 17.7286 3.44954 22.3305 8.14679 23.9902C8.73394 24.0657 8.95413 23.6885 8.95413 23.3867C8.95413 23.0849 8.95413 22.3305 8.95413 21.2744C5.65138 22.0288 4.91743 19.6147 4.91743 19.6147C4.40367 18.1813 3.59633 17.8041 3.59633 17.8041C2.49541 17.0497 3.66972 17.0497 3.66972 17.0497C4.84404 17.1251 5.50459 18.3322 5.50459 18.3322C6.6055 20.2182 8.29358 19.6901 8.95413 19.3883C9.02752 18.5585 9.3945 18.0304 9.68807 17.7286C7.04587 17.4269 4.25688 16.3707 4.25688 11.6179C4.25688 10.26 4.69725 9.2038 5.50459 8.29851C5.43119 8.07219 4.99083 6.78969 5.65138 5.12999C5.65138 5.12999 6.6789 4.82822 8.95413 6.41249C9.90826 6.11072 10.9358 6.03528 11.9633 6.03528C12.9908 6.03528 14.0183 6.18616 14.9725 6.41249C17.2477 4.82822 18.2752 5.12999 18.2752 5.12999C18.9358 6.78969 18.4954 8.07219 18.422 8.37395C19.156 9.2038 19.6697 10.3354 19.6697 11.6934C19.6697 16.4461 16.8807 17.4269 14.2385 17.7286C14.6789 18.1058 15.0459 18.8603 15.0459 19.9919C15.0459 21.6516 15.0459 22.9341 15.0459 23.3867C15.0459 23.6885 15.2661 24.0657 15.8532 23.9902C20.6239 22.3305 24 17.7286 24 12.2969C23.9266 5.50719 18.5688 0 11.9633 0Z"
85-
fill="var(--ld-layer-2)"
85+
fill="var(--ld-layer)"
8686
/>
8787
</svg>
8888
</a>

0 commit comments

Comments
 (0)