Skip to content

Commit 8012cf8

Browse files
authored
Fix dark mode primary button color (#172)
2 parents a0ffeee + 03bd835 commit 8012cf8

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

docs/src/assets/landing.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
--vide-overlay: hsla(var(--vide-accent-hsl), 0.14);
1111
}
1212

13+
:root[data-theme='dark'] {
14+
--vide-primary-button-color: #111827;
15+
}
16+
1317
[data-has-hero] .page {
1418
background:
1519
linear-gradient(215deg, var(--vide-overlay), transparent 40%),
@@ -78,12 +82,12 @@
7882
}
7983

8084
[data-has-hero] .hero .actions .sl-link-button.primary {
81-
color: #fff;
85+
color: var(--vide-primary-button-color, #fff);
8286
box-shadow: 0 0 2rem hsla(var(--vide-accent-hsl), 0.28);
8387
}
8488

8589
[data-has-hero] .hero .actions .sl-link-button.primary:hover {
86-
color: #fff;
90+
color: var(--vide-primary-button-color, #fff);
8791
}
8892

8993
[data-has-hero] .hero .actions .sl-link-button.primary p {

docs/src/components/HomepageCta.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import { homepageCtaActions } from '../data/homepage';
2727
}
2828

2929
.vide-cta__actions :global(.sl-link-button.primary) {
30-
color: #fff;
30+
color: var(--vide-primary-button-color, #fff);
3131
box-shadow: 0 0 2rem hsla(var(--vide-accent-hsl), 0.28);
3232
}
3333

3434
.vide-cta__actions :global(.sl-link-button.primary:hover) {
35-
color: #fff;
35+
color: var(--vide-primary-button-color, #fff);
3636
}
3737

3838
.vide-cta__actions :global(.sl-link-button.primary p) {

0 commit comments

Comments
 (0)