Releases: zaydek/duomo
Releases · zaydek/duomo
v0.4.8
Added support for Sorcery.defer
so the runtime does not break in the context of hot-reloading.
Usage:
import { Sorcery } from "@zaydek/sorcery/dist/runtime"
import { useEffect } from "react"
function Component() {
useEffect(() => {
Sorcery.init()
return Sorcery.defer
})
return ...
}
v0.4.7
v0.4.6
v0.4.5
Added support for <AspectRatio>
:
import { AspectRatio } from "@zaydek/sorcery/dist/runtime"
<AspectRatio aspectRatio={16 / 9} {...props}>
{children}
</AspectRatio>
This is equivalent to:
<div className="relative" style={{ paddingBottom: (1 / aspectRatio) * 100 + "%" }} {...props}>
<div className="absolute y-0 x-0">
{children}
</div>
</div>
v0.4.4
v0.4.3
v0.4.2
- Renamed
s-*
classes tospace-*
- Renamed
--spacing
to--space
- Fixed how
--space
works in the context of responsive stacks- Stacks now reset
--space
and responsive stacks no longer force reset--space
- Stacks now reset
w-*
andh-*
no longer generate duplicate classes to implementflex-shrink: 0
v0.4.1
v0.4.0
- The Sorcery CSS JS runtime is now included at
@zaydek/sorcery/runtime
- The runtime exposes
d
for toggling dark mode shortcut andctrl-d
for toggling debug mode - These controls can also be modulated via
Sorcery.toggleDebugMode
andSorcery.toggleDarkMode
- The runtime exposes
- Added
grid
utilities - Deprecated several
*-space
utilities var(--spacing)
no longer automatically propagates indefinitely