css property value enumerations inside javascript objects. helpful for zod.
| index.ts | ||
| readme.md | ||
css-literals
was looking for something like this, didn't find it, made it
intended for use with zod
not really in a complete state, but useable. feel free to use it for whatever.
derived from the csstypes package
example usage
import z from 'zod';
import { CSS } from 'css-literals';
const Schema = z.object({
text_align: z.enum(CSS.Property.TextAlign),
});