@jigoooo/shared-ui
Version:
A reusable React component library and design system with TypeScript support, built on Vite for seamless integration and optimized performance.
35 lines (34 loc) • 850 B
TypeScript
type ColorScale = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
type ColorPalette = Record<ColorScale, string>;
export type ThemeBaseInput = {
colors: {
primary: ColorPalette;
success: ColorPalette;
warning: ColorPalette;
error: ColorPalette;
};
};
export type ThemeInput = {
colors?: {
primary?: ColorPalette;
success?: ColorPalette;
warning?: ColorPalette;
error?: ColorPalette;
};
};
export type Theme = {
colors: {
primaryColor: string;
successColor: string;
warningColor: string;
errorColor: string;
primary: ColorPalette;
success: ColorPalette;
warning: ColorPalette;
error: ColorPalette;
};
};
export type ThemeContextType = {
theme: Theme;
};
export {};