v3.1.0
Minor Changes
-
571fda2: Rename the
McuReact surface toMtb: theMcucomponent is nowMtb, theuseMcuhook is nowuseMtb, and theMcuConfigtype is nowMtbConfig. The old names still work as deprecated aliases (same component, same hook, same shape) and will be removed in the next major. -
e061253: Add a
toShadcn()exporter emitting concrete per-modeoklch()values.builder(source, options).toShadcn()returns{ light, dark }, each a flat
record of bare shadcn variable names (primary,chart-1, …) to concrete
colors — the exact shape a shadcn registry item'scssVarsfield expects, so
the result can be served as aregistry:themeorregistry:baseitem and
installed with the standardshadcnCLI.Unlike
toTailwind({ shadcn: true }), which emitsvar()aliases requiring the
M3 variables to already be on the page, the output stands alone. Both now share
a single mapping table, so neither can name a variable the other doesn't.Values come from the same merged colors
toCss()emits, so every option —
contrastincluded, across its full-1.0…1.0range — lands identically in
both exporters.Available from the CLI as
--format shadcn. The existing--shadcnflag is
unchanged, but now errors instead of being silently ignored when combined with
a format other thantailwind.