Skip to content

Commit

Permalink
fix: types export
Browse files Browse the repository at this point in the history
  • Loading branch information
LexSwed committed Dec 31, 2022
1 parent 5c01fa6 commit 904d686
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
type ColorChannel = `${number} ${number}% ${number}%` | `${number}deg ${number}% ${number}%`;
export type ThemeColor = ColorChannel | `hsl(${ColorChannel})` | `rgb(${ColorChannel})`;

export function createTailwindColorVariables(colors: ThemeColors): TailwindColorVariables;
export function createTailwindFontVariables(fontSize: NonNullable<Theme['fontSize']>): {
export type createTailwindColorVariables = (colors: ThemeColors) => TailwindColorVariables;
export type createTailwindFontVariables = (fontSize: NonNullable<Theme['fontSize']>) => {
fontSize: Record<keyof Theme['fontSize'], string>;
lineHeight: Record<keyof Theme['fontSize'], string>;
};
export function toToken(themeConfig: string, name: string): `--fx-${string}-${string}`;
export type toToken = (themeConfig: string, name: string) => `--fx-${string}-${string}`;

export function createTailwindVariables(theme: Theme): import('tailwindcss').Config;
export type createTailwindVariables = (theme: Theme) => import('tailwindcss').Config;

export interface ThemeColors {
// Primary color
Expand Down

1 comment on commit 904d686

@vercel
Copy link

@vercel vercel bot commented on 904d686 Dec 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fxtrot-ui – ./

fxtrot-ui.vercel.app
fxtrot-ui-lexswed.vercel.app
fxtrot-ui-git-main-lexswed.vercel.app

Please sign in to comment.