Skip to content

Commit

Permalink
Add type declarations for flattenColorPalette
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Dec 3, 2024
1 parent c8d8e0f commit 0c65219
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/web/app/src/deps.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'tailwindcss/lib/util/flattenColorPalette' {
export default function flattenColorPalette(
pallette: Record<string, string>,
): Record<string, string>;
}
3 changes: 1 addition & 2 deletions packages/web/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import { ReactNode } from 'react';
import localFont from 'next/font/local';
import { Layout } from 'nextra-theme-docs';
import { Head } from 'nextra/components';
import { getPageMap } from 'nextra/page-map';
import '@theguild/components/style.css';
import '../components/navigation-menu/navbar-global-styles.css';
import '../selection-styles.css';
import { PRODUCTS } from '@theguild/components';
import { getDefaultMetadata } from '@theguild/components/server';
import { getDefaultMetadata, getPageMap } from '@theguild/components/server';
import { Footer } from '../components/footer';
import { NavigationMenu } from '../components/navigation-menu';

Expand Down
5 changes: 5 additions & 0 deletions packages/web/docs/src/deps.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'tailwindcss/lib/util/flattenColorPalette' {
export default function flattenColorPalette(
pallette: Record<string, string>,
): Record<string, string>;
}
1 change: 0 additions & 1 deletion packages/web/docs/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Config } from 'tailwindcss';
import tailwindcssAnimate from 'tailwindcss-animate';
import tailwindcssRadix from 'tailwindcss-radix';
import { fontFamily } from 'tailwindcss/defaultTheme';
// @ts-expect-error this file has no declarations but it exists
import { default as flattenColorPalette } from 'tailwindcss/lib/util/flattenColorPalette';
import plugin from 'tailwindcss/plugin';
import tailwindTypography from '@tailwindcss/typography';
Expand Down

0 comments on commit 0c65219

Please sign in to comment.