metamorphosis
Version:
A css variable management library that helps create and organize variables into easily configurable themes.
94 lines • 4.2 kB
TypeScript
export type Rgb = {
r: number;
g: number;
b: number;
a?: number;
};
export declare const rgb: ({ r, g, b, a }: Rgb) => string;
export type Hsl = {
h: number;
s: number;
l: number;
a?: number;
};
export declare const hsl: ({ h, s, l, a }: Hsl) => string;
export type Hwb = {
h: number;
w: number;
b: number;
a?: number;
};
export declare const hwb: ({ h, w, b, a }: Hwb) => string;
export type Lch = {
l: number;
c: number;
h: number;
a?: number;
};
export declare const lch: ({ l, c, h, a }: Lch) => string;
export declare const oklch: (val: Parameters<typeof lch>[0]) => string;
export type Lab = {
l: number;
a: number;
b: number;
A?: number;
};
export declare const lab: ({ l, a, b, A }: Lab) => string;
export declare const oklab: (val: Parameters<typeof lab>[0]) => string;
export declare const createSimpleUnit: <T extends number | string = number>(suffix: string) => ({ _ }: Record<"_", T>) => string;
export declare const px: ({ _ }: Record<"_", number>) => string;
export declare const pt: ({ _ }: Record<"_", number>) => string;
export declare const pc: ({ _ }: Record<"_", number>) => string;
export declare const inch: ({ _ }: Record<"_", number>) => string;
export declare const Q: ({ _ }: Record<"_", number>) => string;
export declare const mm: ({ _ }: Record<"_", number>) => string;
export declare const cm: ({ _ }: Record<"_", number>) => string;
export declare const em: ({ _ }: Record<"_", number>) => string;
export declare const rem: ({ _ }: Record<"_", number>) => string;
export declare const ex: ({ _ }: Record<"_", number>) => string;
export declare const ch: ({ _ }: Record<"_", number>) => string;
export declare const cap: ({ _ }: Record<"_", number>) => string;
export declare const ic: ({ _ }: Record<"_", number>) => string;
export declare const lh: ({ _ }: Record<"_", number>) => string;
export declare const rlh: ({ _ }: Record<"_", number>) => string;
export declare const vw: ({ _ }: Record<"_", number>) => string;
export declare const vh: ({ _ }: Record<"_", number>) => string;
export declare const vmin: ({ _ }: Record<"_", number>) => string;
export declare const vmax: ({ _ }: Record<"_", number>) => string;
export declare const vb: ({ _ }: Record<"_", number>) => string;
export declare const vi: ({ _ }: Record<"_", number>) => string;
export declare const svw: ({ _ }: Record<"_", number>) => string;
export declare const svh: ({ _ }: Record<"_", number>) => string;
export declare const lvw: ({ _ }: Record<"_", number>) => string;
export declare const lvh: ({ _ }: Record<"_", number>) => string;
export declare const dvw: ({ _ }: Record<"_", number>) => string;
export declare const dvh: ({ _ }: Record<"_", number>) => string;
export declare const s: ({ _ }: Record<"_", number>) => string;
export declare const ms: ({ _ }: Record<"_", number>) => string;
export declare const rad: ({ _ }: Record<"_", number>) => string;
export declare const grad: ({ _ }: Record<"_", number>) => string;
export declare const turn: ({ _ }: Record<"_", number>) => string;
export declare const deg: ({ _ }: Record<"_", number>) => string;
export declare const cqw: ({ _ }: Record<"_", number>) => string;
export declare const cqh: ({ _ }: Record<"_", number>) => string;
export declare const cqi: ({ _ }: Record<"_", number>) => string;
export declare const cqb: ({ _ }: Record<"_", number>) => string;
export declare const cqmin: ({ _ }: Record<"_", number>) => string;
export declare const cqmax: ({ _ }: Record<"_", number>) => string;
export declare const percent: ({ _ }: Record<"_", number>) => string;
export declare const fr: ({ _ }: Record<"_", number>) => string;
export declare const dpi: ({ _ }: Record<"_", number>) => string;
export declare const dpcm: ({ _ }: Record<"_", number>) => string;
export declare const dppx: ({ _ }: Record<"_", number>) => string;
export type Str = {
_: string;
};
export type Num = {
_: number;
};
export declare const str: ({ _ }: Record<"_", string>) => string;
export declare const num: ({ _ }: Record<"_", number>) => string;
export declare const cssVar: ({ _ }: {
_: string;
}) => string;
//# sourceMappingURL=Units.d.ts.map