-
-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What bug did you find in the codebase?
i have added new snippet for scss under the layout category, but it's getting error when run the consolidate snippet check
this is my snippet
---
title: Dark Theme
description: SCSS mixin to change styles for dark themes.
author: gihanrangana
tags: scss, css, mixin, snippet, dark-theme, layout
---
```scss
@mixin isDark($type: 'module') {
$root: &;
@if $type == 'module' {
:global {
@at-root body[theme='dark'] #{$root} {
@content;
}
}
} @else {
&[theme='dark'] {
@content;
}
}
}
// Usage:
.container{
background: #f0f0f0;
@include isDark {
background: #222;
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working