Skip to content

Commit 0e13d8b

Browse files
committed
Make sure not to break anything related to useColors
1 parent 0fa6b77 commit 0e13d8b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/useColors.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
"use client";
22

33
import { useIsDark } from "./useIsDark";
4-
import { fr } from "./fr";
4+
import { fr, type ColorOptions, type ColorDecisions } from "./fr";
5+
6+
export type ColorTheme = {
7+
isDark: boolean;
8+
options: ColorOptions<"css var">;
9+
decisions: ColorDecisions<"css var">;
10+
};
511

612
/** @deprecated: A hook is no longer required to get the colors.
713
*
@@ -34,7 +40,7 @@ import { fr } from "./fr";
3440
* theme.decisions.background.default.grey.default
3541
* ```
3642
**/
37-
export function useColors() {
43+
export function useColors(): ColorTheme {
3844
const { isDark } = useIsDark();
3945

4046
return {

0 commit comments

Comments
 (0)