css property value enumerations inside javascript objects. helpful for zod.
This repository has been archived on 2026-02-08. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
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),
});