r/foss • • 5d ago

OpenDesigner: should a generated Tailwind theme keep the default utilities or reset them?

i built OpenDesigner, an MIT-licensed design system tool. one part i'd like feedback on is the Tailwind v4 export, specifically what it should do to an existing project's defaults.

it generates a theme file that imports the token CSS and maps named design values into Tailwind's theme. by default that file resets the color, text-size, radius and shadow namespaces before adding the system's values. exports.tailwindReset=false leaves those defaults in place instead.

the tradeoff: a smaller set of named values to choose from, or a less disruptive way to bring tokens into a project that already uses Tailwind's defaults. the reset isn't a guardrail against arbitrary CSS or an AI ignoring your rules.

repo: https://github.com/ckryptickunal/OpenDesigner

if you maintain a Tailwind project, would you want the reset on by default for a new design system, or opt in only? interested in where this would get in the way of migrating an existing UI. feedback on the generated theme itself would be useful too.

2 Upvotes

0 comments sorted by