Skip to main content

Interface: UseThemeClassesReturn

Defined in: src/theme/useTheme.ts:55

Interface for useThemeClasses hook return type.

Propertiesโ€‹

getBackgroundClassโ€‹

getBackgroundClass: (
variant?:
| "primary"
| "secondary"
| "tertiary"
) => {
backgroundColor: string;
};

Defined in: src/theme/useTheme.ts:56

Parametersโ€‹

variant?โ€‹

"primary" | "secondary" | "tertiary"

Returnsโ€‹

{
backgroundColor: string;
}
backgroundColorโ€‹
backgroundColor: string;

getBorderClassโ€‹

getBorderClass: (
variant?:
| "primary"
| "secondary"
| "focus"
) => {
borderColor: string;
};

Defined in: src/theme/useTheme.ts:64

Parametersโ€‹

variant?โ€‹

"primary" | "secondary" | "focus"

Returnsโ€‹

{
borderColor: string;
}
borderColorโ€‹
borderColor: string;

getColorโ€‹

getColor: (path: string) => string;

Defined in: src/theme/useTheme.ts:72

Parametersโ€‹

pathโ€‹

string

Returnsโ€‹

string


getStatusClassโ€‹

getStatusClass: (
status:
| "unknown"
| "degraded"
| "down"
| "paused"
| "pending"
| "up"
| "mixed"
) => {
color: string;
};

Defined in: src/theme/useTheme.ts:73

Parametersโ€‹

statusโ€‹

"unknown" | "degraded" | "down" | "paused" | "pending" | "up" | "mixed"

Returnsโ€‹

{
color: string;
}
colorโ€‹
color: string;

getSurfaceClassโ€‹

getSurfaceClass: (
variant?:
| "base"
| "elevated"
| "overlay"
) => {
backgroundColor: string;
};

Defined in: src/theme/useTheme.ts:76

Parametersโ€‹

variant?โ€‹

"base" | "elevated" | "overlay"

Returnsโ€‹

{
backgroundColor: string;
}
backgroundColorโ€‹
backgroundColor: string;

getTextClassโ€‹

getTextClass: (
variant?:
| "primary"
| "secondary"
| "tertiary"
| "inverse"
) => {
color: string;
};

Defined in: src/theme/useTheme.ts:84

Parametersโ€‹

variant?โ€‹

"primary" | "secondary" | "tertiary" | "inverse"

Returnsโ€‹

{
color: string;
}
colorโ€‹
color: string;