tonami
Version:
Minimal CSS-in-JS library that promotes CSS best-practices and strongly-typed design systems.
15 lines (14 loc) • 579 B
TypeScript
import { Properties } from "csstype";
import { CSSProperties } from "react";
import { Apply } from "./lib/types";
/**
* Converts css object into a string
* Leaves keys begining with "--" untouched
* Convert other keys from camel to kebab (fontFamily becomes font-family)
*/
export declare function objectToString(obj: CSSProperties): string;
/**
* Converts {@link Apply} to a selector suffix
*/
export declare function applyToSelector(apply: Apply): string;
export declare function cssToString(selector: string, cssObject: Properties, fill?: string): string;