Skip to content
5 changes: 5 additions & 0 deletions types/tailwindcss/colors.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { TailwindColorConfig } from './tailwind-config';

declare const colors: TailwindColorConfig;

export = colors;
5 changes: 5 additions & 0 deletions types/tailwindcss/defaultTheme.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { TailwindConfig } from './tailwind-config';

declare const theme: TailwindConfig;

export = theme;
16 changes: 16 additions & 0 deletions types/tailwindcss/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Type definitions for tailwindcss 2.0
// Project: https://github.com/tailwindlabs/tailwindcss
// Definitions by: Dolan Miu <https://github.com/dolanmiu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.1
Comment thread
dolanmiu marked this conversation as resolved.

import type { TailwindConfig } from './tailwind-config';

declare function tailwindcss(
config: TailwindConfig,
): {
postcssPlugin: 'tailwindcss';
plugins: string[];
};

export = tailwindcss;
5 changes: 5 additions & 0 deletions types/tailwindcss/resolveConfig.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { TailwindConfig } from './tailwind-config';

declare function resolveConfig(tailwindConfig: TailwindConfig): TailwindConfig;

export default resolveConfig;
Comment thread
dolanmiu marked this conversation as resolved.
Loading