Created
December 22, 2022 08:04
-
-
Save sadiqsalau/9c8675dedbc99e63d4af348b7015276b to your computer and use it in GitHub Desktop.
SCSS Mixin for dark theme
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
@use "sass:selector"; | |
@mixin dark-theme() { | |
@at-root #{selector.nest("[data-theme=dark]", if(&, &, "&"))} { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment