-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated color-sheme mixin to also support different default modes
- Loading branch information
1 parent
0dc39f5
commit 4d7a9d0
Showing
5 changed files
with
69 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* ========================================================================= | ||
test.settings.theme | ||
/ ========================================================================= */ | ||
|
||
/* Use/Forward rules | ||
`@use` or `@forward` everything you need here from other files. | ||
These can include variables, mixins & other includes. | ||
/ ========================================================================= */ | ||
|
||
@use '../../../tools/responsive'; | ||
|
||
|
||
|
||
/* Variables | ||
/ ========================================================================= */ | ||
|
||
|
||
|
||
/* Functions/Mixins | ||
/ ========================================================================= */ | ||
|
||
|
||
|
||
/* Module | ||
/ ========================================================================= */ | ||
|
||
:root { | ||
// Light theme colors | ||
--color-slate: #cccccc; | ||
|
||
@include responsive.color-scheme(dark) { | ||
// Dark theme colors | ||
--color-slate: #000000; | ||
} | ||
} | ||
|
||
.c-color-scheme { | ||
background-color: var(--color-slate); | ||
} |
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