UNPKG

@noema/motif

Version:

A type-safe styling library for React components built on top of [Vanilla Extract](https://vanilla-extract.style/). `@noema/motif` allows you to create styled components with consistent theme-aware props that cleanly separate styling from component logic.

9 lines (8 loc) 256 B
import { motif } from './motif.js'; export function createMotif(elements, sprinkles, config) { const components = {}; for (const element of elements) { components[element] = motif(element, sprinkles, config); } return components; }