UNPKG

@noema/hyle

Version:
14 lines (13 loc) 583 B
import { CSSProperties, style } from '@vanilla-extract/css'; export type CSSProps = keyof CSSProperties; export interface HyleStyle<P extends CSSProps, SH extends string = string> { baseClassName?: string; styles: Record<P, string>; classNames: Record<P, string>; shorthands?: Record<SH, readonly P[]>; } export declare function hyleStyle<P extends readonly CSSProps[], SH extends string = string>(properties: P, options?: { prefix?: string; base?: Parameters<typeof style>[0]; shorthands?: Record<SH, readonly P[number][]>; }): HyleStyle<P[number], SH>;