@nexusui/theme
Version:
This is a simple MUI theme drop in for your React application, which aims to be the source of truth for the NexusUI Design system.
41 lines (40 loc) • 2.28 kB
TypeScript
import { Theme, CssVarsThemeOptions } from '@mui/material/styles';
export declare const supportedLanguage: readonly ["en-US", "de-DE", "fr-FR", "en-GB", "it-IT", "es-ES", "pt-PT", "pt-BR", "pl", "sv-SE", "nl-NL", "tr", "cs", "hu", "ru", "zh-CN", "zh-TW", "ko", "ja", "bg", "da", "ro", "sk", "sl", "th"];
export type LanguageType = (typeof supportedLanguage)[number];
export declare const muiBaseLocales: {
enUS: import("@mui/material/locale").Localization;
deDE: import("@mui/material/locale").Localization;
itIT: import("@mui/material/locale").Localization;
frFR: import("@mui/material/locale").Localization;
enGB: import("@mui/material/locale").Localization;
esES: import("@mui/material/locale").Localization;
ptPT: import("@mui/material/locale").Localization;
ptBR: import("@mui/material/locale").Localization;
pl: import("@mui/material/locale").Localization;
svSE: import("@mui/material/locale").Localization;
nlNL: import("@mui/material/locale").Localization;
tr: import("@mui/material/locale").Localization;
cs: import("@mui/material/locale").Localization;
hu: import("@mui/material/locale").Localization;
ru: import("@mui/material/locale").Localization;
zhCN: import("@mui/material/locale").Localization;
zhTW: import("@mui/material/locale").Localization;
ko: import("@mui/material/locale").Localization;
ja: import("@mui/material/locale").Localization;
bg: import("@mui/material/locale").Localization;
da: import("@mui/material/locale").Localization;
ro: import("@mui/material/locale").Localization;
sk: import("@mui/material/locale").Localization;
th: import("@mui/material/locale").Localization;
};
/**
* A hook for creating a Theme with locale base on current language.
* Also stored current language value.
* { language, fnsLocale }
* @param { LanguageType } language - current language
* @param { CssVarsTheme } theme - optional value, default value is nexusui theme
* @default 'nexusuiTheme'
* @param { object[] } args - other args that you want to add to the theme
* @return {CssVarsTheme } - provide MUI theme with locale
*/
export declare const useThemeWithLocale: (language: LanguageType, theme?: CssVarsThemeOptions, ...args: object[]) => Theme;