Skip to content

Commit c63342a

Browse files
committed
more consistent colours
1 parent 5216def commit c63342a

File tree

8 files changed

+9
-47
lines changed

8 files changed

+9
-47
lines changed

apps/svelte.dev/src/routes/docs/[topic]/[...path]/OnThisPage.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
}
134134
135135
&::after {
136-
background: #666;
136+
background: currentColor;
137137
mask: url(icons/chevron) 50% 50% no-repeat;
138138
mask-size: 2rem;
139139
top: 0.4rem;
@@ -143,10 +143,6 @@
143143
transition: rotate 0.2s;
144144
}
145145
146-
:root.dark &::after {
147-
background: #d4d4d4;
148-
}
149-
150146
&:active::after {
151147
top: 0.5rem;
152148
right: 0.1rem;

apps/svelte.dev/src/routes/tutorial/[...slug]/Chrome.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,12 @@
106106
position: absolute;
107107
left: 0;
108108
top: 0;
109-
background: #666;
109+
background: currentColor;
110110
mask: url(icons/refresh) no-repeat 50% 50%;
111111
mask-size: 1.8rem;
112112
transition: 0.2s ease-out;
113113
}
114114
115-
:root.dark .reload::after {
116-
background: #d4d4d4;
117-
}
118-
119115
.reload:active::after {
120116
transform: rotate(-360deg);
121117
transition: none;

packages/repl/src/lib/Editor/codemirror.css

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,13 @@
6565
right: 0;
6666
top: 0;
6767
height: 2.4rem;
68-
background: #666;
68+
background: currentColor;
6969
mask: url(icons/chevron) no-repeat 50% 50%;
7070
mask-size: contain;
7171
transition: transform 0.2s;
7272
cursor: pointer;
7373
rotate: 180deg;
7474
}
75-
76-
:root.dark &::after {
77-
background: #d4d4d4;
78-
}
7975
}
8076

8177
&:has([title='Unfold line'])::after {
@@ -192,7 +188,6 @@
192188
aspect-ratio: 1;
193189
top: 0.5rem;
194190
right: 0.5rem;
195-
color: transparent;
196191

197192
&::after {
198193
content: '';
@@ -201,14 +196,10 @@
201196
height: 100%;
202197
left: 0;
203198
top: 0;
204-
background: #666;
199+
background: currentColor;
205200
mask: url(icons/close) 50% 50% no-repeat;
206201
mask-size: 1.8rem;
207202
}
208-
209-
:root.dark &::after {
210-
background: #d4d4d4;
211-
}
212203
}
213204

214205
.cm-textfield {

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@
499499
}
500500
501501
&::after {
502-
background: #666;
502+
background: currentColor;
503503
mask: url(icons/chevron) 50% 50% no-repeat;
504504
mask-size: 2rem;
505505
rotate: -90deg;
@@ -508,10 +508,6 @@
508508
right: 0.8rem;
509509
}
510510
511-
:root.dark &::after {
512-
background: #d4d4d4;
513-
}
514-
515511
&:has(summary:active)::after {
516512
top: 0.3rem;
517513
right: 0.7rem;

packages/site-kit/src/lib/components/Toolbox.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@
3838
width: 1.8rem;
3939
height: 1.8rem;
4040
z-index: 9999;
41-
background: #666;
41+
background: currentColor;
4242
mask: url(icons/wrench) no-repeat 50% 50% / contain;
43-
44-
:root.dark & {
45-
background: #d4d4d4;
46-
}
4743
}
4844
</style>

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,16 +377,11 @@ Top navigation bar for the application. It provides a slot for the left side, th
377377
display: contents;
378378
379379
[data-icon] {
380-
background: #666 no-repeat 50% 50%;
381-
background-size: calc(100% - 1rem) auto;
380+
background: var(--sk-fg-3);
382381
padding: 0 0.5rem;
383382
height: 100%;
384383
mask: no-repeat 50% 50%;
385384
mask-size: calc(100% - 1rem) auto;
386-
387-
:root.dark & {
388-
background-color: #f4f4f4;
389-
}
390385
}
391386
392387
[data-icon='discord'] {

packages/site-kit/src/lib/search/SearchResultList.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,13 @@
9898
top: calc(50% - 1rem);
9999
width: 2rem;
100100
height: 2rem;
101-
background: #666;
101+
background: currentColor;
102102
mask: url(icons/chevron);
103103
mask-size: contain;
104104
rotate: -90deg;
105105
transition: rotate 0.2s;
106106
}
107107
108-
:root.dark &::after {
109-
background: #d4d4d4;
110-
}
111-
112108
[open] &::after {
113109
rotate: 90deg;
114110
}

packages/site-kit/src/lib/styles/utils/buttons.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ button > span.icon {
8686
mask-repeat: no-repeat;
8787
mask-position: 50% 50%;
8888
mask-size: 2.3rem 2.3rem;
89-
background: #666;
90-
91-
.dark & {
92-
background: #f4f4f4;
93-
}
89+
background: var(--sk-fg-3);
9490
}
9591

9692
button:where(.tooltip, .tooltip-left)[aria-label]:where(:hover, :focus) {

0 commit comments

Comments
 (0)