alouette
Version:
A modern, customizable design system built on top of NativeWind v5 with configurable defaults
13 lines • 802 B
TypeScript
import type { ReactNode } from "react";
import type { PortalAccentScopeProps } from "./PortalAccentScope";
/**
* Web themes resolve through CSS custom-property inheritance from the theme
* className, and a portal renders outside the themed DOM subtree — so the scope
* has to be rebuilt there from the base mode. Two nested scopes, because the
* accent blocks are partial: the outer one re-declares the full `light`/`dark`
* token set the portal escaped, the inner one layers the accent (or the theme
* inherited from the caller when `accent` is unset) on top of it. Both stay
* mounted, so toggling `accent` never remounts the subtree.
*/
export declare function PortalAccentScope({ accent, children, }: PortalAccentScopeProps): ReactNode;
//# sourceMappingURL=PortalAccentScope.web.d.ts.map