css property value enumerations inside javascript objects. helpful for zod.
Find a file
2025-11-05 13:42:47 +00:00
index.ts init 2025-11-04 19:34:56 -08:00
readme.md Update readme.md 2025-11-05 13:42:47 +00:00

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),
});