mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
add variant fields
This commit is contained in:
Vendored
+6
-5
@@ -96,17 +96,15 @@ export interface VariantArgs {
|
||||
|
||||
export function variant(props: VariantArgs): (...args: any[]) => any;
|
||||
|
||||
export type ObjectOrArray<T> = T[] | { [K: string]: T };
|
||||
|
||||
export interface BaseTheme {
|
||||
breakpoints?: number[];
|
||||
space?: number[];
|
||||
fontSizes?: number[];
|
||||
colors?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
colors?: ObjectOrArray<CSS.ColorProperty>;
|
||||
}
|
||||
|
||||
export type ObjectOrArray<T> = T[] | { [K: string]: T };
|
||||
|
||||
export interface Theme extends BaseTheme {
|
||||
fonts?: ObjectOrArray<CSS.FontFamilyProperty>;
|
||||
fontWeights?: ObjectOrArray<CSS.FontWeightProperty>;
|
||||
@@ -121,6 +119,9 @@ export interface Theme extends BaseTheme {
|
||||
borders?: ObjectOrArray<CSS.BorderProperty<{}>>;
|
||||
radii?: ObjectOrArray<CSS.BorderRadiusProperty<{}>>;
|
||||
opacity?: ObjectOrArray<CSS.GlobalsNumber>;
|
||||
textStyles?: ObjectOrArray<CSS.StandardProperties>;
|
||||
colorStyles?: ObjectOrArray<CSS.StandardProperties>;
|
||||
buttons?: ObjectOrArray<CSS.StandardProperties>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user