Infrastructure duskmoon implemented 2 demos
getDmTheme
getDmTheme documents the getDmTheme export from duskmoon.
Import
@duskmoon-dev/components 0 API sections
0 documented props
0 behavior scenarios
Usage
When to use
- Use it in setup, integration, or type-level code rather than as visible page content.
- Keep usage close to the application boundary so global configuration remains easy to audit.
Implementation notes
Stylesheet Import @duskmoon-dev/components/styles.css once in the app or docs shell.
Runtime placement Use helper exports at application setup boundaries or in typed utility modules.
Theme The preview inherits the active DuskMoon data-theme value from the docs layout.
Features
Package helper
Explains the exported helper, hook, or type and where it fits in app setup code.
Non-visual API
Provides typed usage examples even when there is no rendered component preview.
Feature Demos
These examples focus on typed integration because the export does not render a component preview.
Preview
Utility Function / Configuration Helper (no visual preview)
Basic usage
Import the component stylesheet and getDmTheme from its package subpath, then render it with the core props.
Source
import "@duskmoon-dev/components/styles.css";
import { getDmTheme } from "@duskmoon-dev/components";
export function Example() {
return (<getDmTheme>DuskMoon Get Dm Theme</getDmTheme>);
} Preview
Utility Function / Configuration Helper (no visual preview)
Theme aware
Docs previews inherit the DuskMoon data-theme value. Use the header switch to compare light and dark rendering.
Source
<div data-theme="sunshine">
<getDmTheme>DuskMoon Get Dm Theme</getDmTheme>
</div>
<div data-theme="moonlight">
<getDmTheme>DuskMoon Get Dm Theme</getDmTheme>
</div> API
The API reference below lists every parsed exported type or interface for getDmTheme.
No type source found.
No dedicated props interface was found.