@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
25 lines • 1.05 kB
TypeScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Theme, ThemeOptions } from '@mui/material/styles';
import { CustomPaletteOptions } from './palette';
export type CustomTheme<T extends object> = Theme & T;
export interface ICustomDims {
customDims: {
heights: Record<string, number>;
widths: Record<string, number>;
};
}
export type CustomThemeOptions<T extends object = Record<string, never>> = ThemeOptions & T;
export declare const createTheme: <T extends object>(options: CustomThemeOptions<T>, ...args: object[]) => CustomTheme<T>;
export type ThemeCustomizations = ICustomDims & {
palette: CustomPaletteOptions;
spacingPx: number;
};
export declare const THEME_ENCOURAGE_E4E_OPTIONS: CustomThemeOptions<ThemeCustomizations>;
export declare const THEME_ENCOURAGE_E4E: CustomTheme<ThemeCustomizations>;
export default THEME_ENCOURAGE_E4E;
//# sourceMappingURL=index.d.ts.map