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 5ad442b commit fca6a79Copy full SHA for fca6a79
src/index.d.ts
@@ -1,5 +1,12 @@
1
-declare function plugin(
2
- options?: Partial<{ colors: string[]; root: string }>
+import type { DefaultColors } from 'tailwindcss/types/generated/colors';
+
3
+type Colors = keyof Omit<
4
+ DefaultColors,
5
+ 'inherit' | 'current' | 'transparent' | 'black' | 'white'
6
+>;
7
8
+declare function plugin<T extends Colors>(
9
+ options?: Partial<{ colors: Array<T>; root: T }>
10
): {
11
handler: () => void;
12
};
0 commit comments