Skip to content

Commit 8b31bd3

Browse files
committed
Export
1 parent 6fafce8 commit 8b31bd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/darkMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const data_fr_theme = "data-fr-theme";
1111
export const data_fr_scheme = "data-fr-scheme";
1212
export const rootColorSchemeStyleTagId = "dsfr-root-color-scheme";
1313

14-
const $clientSideIsDark = createStatefulObservable<boolean>(() => {
14+
export const $clientSideIsDark = createStatefulObservable<boolean>(() => {
1515
throw new Error("not initialized yet");
1616
});
1717

src/lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { startReactDsfr } from "./start";
22
export type { Params } from "./start";
3-
export { useIsDark } from "./darkMode";
3+
export { useIsDark, $clientSideIsDark } from "./darkMode";
44
export * from "./colors";
55
export type { BreakpointKeys } from "./breakpoints";
66
import { breakpoints } from "./breakpoints";

0 commit comments

Comments
 (0)