diff --git a/helper.d.ts b/helper.d.ts new file mode 100644 index 0000000..7a53ac1 --- /dev/null +++ b/helper.d.ts @@ -0,0 +1,49 @@ +/** + * To initialize nightwind, add the following script tag to the head element of your pages. + * + * ``` + * import nightwind from "nightwind/helper" + * + * export default function Layout() { + * return ( + * <> + *
+ * + * + * // ... + * > + * ) + * } + * ``` + */ + export declare function init(): string; + /** + * Similarly, you can use the toggle function to switch between dark and light mode. + * ``` + * import nightwind from "nightwind/helper" + * + * export default function Navbar() { + * return ( + * // ... + * + * // ... + * ) + * } + * ``` + */ + export declare function toggle(): void; + /** + * You can use the enable function to specifically switch between dark and light mode. + * ``` + * import nightwind from "nightwind/helper" + * + * export default function Navbar() { + * return ( + * // ... + * + * // ... + * ) + * } + * ``` + */ + export declare function enable(dark: boolean): void; \ No newline at end of file