We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa6b77 commit 0e13d8bCopy full SHA for 0e13d8b
src/useColors.ts
@@ -1,7 +1,13 @@
1
"use client";
2
3
import { useIsDark } from "./useIsDark";
4
-import { fr } from "./fr";
+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
+};
11
12
/** @deprecated: A hook is no longer required to get the colors.
13
*
@@ -34,7 +40,7 @@ import { fr } from "./fr";
34
40
* theme.decisions.background.default.grey.default
35
41
* ```
36
42
**/
37
-export function useColors() {
43
+export function useColors(): ColorTheme {
38
44
const { isDark } = useIsDark();
39
45
46
return {
0 commit comments