diff --git a/src/duomo/builder.scss b/src/duomo/builder.scss index 3fdd8d1..2f109a8 100644 --- a/src/duomo/builder.scss +++ b/src/duomo/builder.scss @@ -1,21 +1,13 @@ @use "sass:list"; -@use "sass:meta"; @use "configuration"; @use "core"; @use "helpers"; @use "preflight"; -@mixin reset { - @include meta.load-css("modern-normalize"); - @include preflight.tailwind-base; - @include preflight.vendored-font-smoothing; -} - @mixin preflight { /* purgecss start ignore */ - @include reset; - // prettier-ignore + @include preflight.reset; @include preflight.debugger; @include preflight.stagger; // prettier-ignore @@ -70,15 +62,15 @@ $__full-range: list.join(configuration.$negative-range, configuration.$standard- @if not configuration.$headless { /*! @zaydek/duomo | MIT License | https://github.com/zaydek/duomo */ @include preflight; - // @include props; - // @each $key, $value in configuration.$breakpoint-map { - // @media (min-width: #{helpers.px($value)}) { - // .#{helpers.escape-breakpoint($key)} { - // @at-root { - // @include props; - // } - // } - // } - // } + @include props; + @each $key, $value in configuration.$breakpoint-map { + @media (min-width: #{helpers.px($value)}) { + .#{helpers.escape-breakpoint($key)} { + @at-root { + @include props; + } + } + } + } } } diff --git a/src/duomo/preflight/index.scss b/src/duomo/preflight/index.scss index 306971b..569bd9c 100644 --- a/src/duomo/preflight/index.scss +++ b/src/duomo/preflight/index.scss @@ -1,5 +1,4 @@ @forward "custom-props-from-maps"; @forward "debugger"; +@forward "reset"; @forward "stagger"; -@forward "tailwind-base"; -@forward "vendored-font-smoothing"; diff --git a/src/duomo/preflight/reset.scss b/src/duomo/preflight/reset.scss new file mode 100644 index 0000000..edccb71 --- /dev/null +++ b/src/duomo/preflight/reset.scss @@ -0,0 +1,10 @@ +@use "sass:meta"; + +@use "tailwind-base" as *; +@use "vendored-font-smoothing" as *; + +@mixin reset { + @include meta.load-css("modern-normalize"); + @include tailwind-base; + @include vendored-font-smoothing; +} diff --git a/src/duomo/reset.scss b/src/duomo/reset.scss index 1e0b6e0..efa0093 100644 --- a/src/duomo/reset.scss +++ b/src/duomo/reset.scss @@ -1,13 +1,7 @@ @use "preflight"; -@mixin reset { - @include meta.load-css("modern-normalize"); - @include preflight.tailwind-base; - @include preflight.vendored-font-smoothing; -} - @at-root { /* purgecss start ignore */ - @include reset; + @include preflight.reset; /* purgecss end ignore */ }