Skip to content

Instantly share code, notes, and snippets.

@sadiqsalau
Created December 22, 2022 08:04
Show Gist options
  • Save sadiqsalau/9c8675dedbc99e63d4af348b7015276b to your computer and use it in GitHub Desktop.
Save sadiqsalau/9c8675dedbc99e63d4af348b7015276b to your computer and use it in GitHub Desktop.
SCSS Mixin for dark theme
@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