generated from argyleink/vite-postcss-preset-env
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
normalize light and dark imports (#285)
* adds new exports * adds light and dark normalize src files * removes stray prop * adds a normalize build file test * adds postcss build commands * fixes export alias * fixes bugs in output * adds defenses against competing themes, adds data attribute versions * more defense * updates light theme hd colors to latest * fixes normalize cascade issues * fixes shadows when flipping preference * use :where() in switch files too * update docsite a little * adds 2 more ways to toggle the theme * use the new switch imports
- Loading branch information
Showing
14 changed files
with
551 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
@import "theme.css"; | ||
|
||
:where(html) { | ||
--scrollthumb-color: var(--gray-6); | ||
|
||
/* --brand: your-brand-color-here; */ | ||
scrollbar-color: var(--scrollthumb-color) transparent; | ||
accent-color: var(--link); | ||
caret-color: var(--link); | ||
accent-color: var(--brand, var(--link)); | ||
caret-color: var(--brand, var(--link)); | ||
color: var(--text-2); | ||
background-color: var(--surface-1); | ||
} | ||
|
||
@media (--OSlight) { | ||
--scrollthumb-color: var(--gray-7); | ||
:where(h1, h2, h3, h4, h5, h6, dt) { | ||
color: var(--text-1); | ||
} | ||
|
||
:where(a[href]) { | ||
color: var(--brand, var(--link)); | ||
|
||
&:visited { | ||
color: var(--link-visited); | ||
} | ||
} | ||
|
||
:focus-visible { | ||
outline-color: var(--brand, var(--link)); | ||
} |
Oops, something went wrong.