Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/nat/styles.ts>createStyle

A server side rendering framework for Deno CLI and Deploy. 🦟 🦕
Latest
function createStyle
import { createStyle } from "https://deno.land/x/nat@0.0.2/styles.ts";

A factory function that will return a StyleFunction that will make it easy to re-use groupings of twind/tailwind classes.

Type Parameters

Keys extends string

Parameters

styles: Record<Keys, string | Directive<CSSRules>> | Iterable<[Keys, Directive<CSSRules>]>