@sandlada/mdk
Version:
A JavaScript library based on Material Design 3, providing data such as color, shape, shadow level, etc.
32 lines (31 loc) • 1.5 kB
TypeScript
import type { ICSSDeclaration } from '../interfaces/css-declaration.interface';
export declare class Typeface<K extends string, V extends number | string> implements ICSSDeclaration<K, V, `${K}: ${V}${';' | ''}`, `var(${K}, ${V})`> {
readonly Key: K;
readonly Value: V;
toJSON(): {
Key: K;
Value: V;
};
ToCSSDeclaration(): `${K}: ${V}`;
ToCSSDeclaration(options: {
Semicolon: true;
}): `${K}: ${V};`;
ToCSSDeclaration(options?: {
Semicolon?: boolean;
}): `${K}: ${V}${';' | ''}`;
ToCSSVariable(): `var(${K}, ${V})`;
toString(): `${K}: ${V}`;
private constructor();
static readonly FontBrand: Typeface<"--md-ref-typeface-font-brand", "Roboto">;
static readonly FontPlain: Typeface<"--md-ref-typeface-font-plain", "Roboto">;
static readonly WeightBold: Typeface<"--md-ref-typeface-weight-bold", 700>;
static readonly WeightMedium: Typeface<"--md-ref-typeface-weight-medium", 500>;
static readonly WeightRegular: Typeface<"--md-ref-typeface-weight-regular", 400>;
static readonly AllEnums: {
readonly FontBrand: Typeface<"--md-ref-typeface-font-brand", "Roboto">;
readonly FontPlain: Typeface<"--md-ref-typeface-font-plain", "Roboto">;
readonly WeightBold: Typeface<"--md-ref-typeface-weight-bold", 700>;
readonly WeightMedium: Typeface<"--md-ref-typeface-weight-medium", 500>;
readonly WeightRegular: Typeface<"--md-ref-typeface-weight-regular", 400>;
};
}