Repository navigation
Releases
Releases · recontentapp/recontent
0.3.0
Highlights
Recontent 0.3.0 expands from design tokens into a full design system toolchain for humans and coding agents: React component introspection from TypeScript & JSDoc, recontent inspect for querying tokens, components, and types (including published npm snapshots), component-aware recontent diff, a revamped docs() plugin, new contrast(), designMD(), and inspect() plugins, and build --check for CI.
Features
- Component introspection: The
introspectionconfig option reads React component props, defaults, types, and JSDoc (requiresimportPathfor import statements), with on-disk caching (bypass with--no-cache). recontent inspect: Browse tokens, components, and types as markdown or JSON, inspect an installed design system's published snapshot with--from, and search across tokens, components, and types by name, description, usage notes, or value withrecontent inspect search <query...>.- Component & prop diffs:
recontent diffnow compares components and prop types in addition to tokens. - CI drift check:
recontent build --checkfails when generated files are missing or out of date. - New plugins:
contrast()fails the build when color pairs drop below a WCAG 2.x contrast ratio in base tokens or any theme.designMD()writesDESIGN.mdfor coding agents.inspect()emits the snapshot thatrecontent inspect --fromreads.
- Revamped
docs()plugin: Now documents components alongside tokens, supporting@usage,@example,@link,@category, and@storiesJSDoc tags. - Plugin helpers & diagnostics: Added
resolveValue(ctx, entry, theme?)andaliasChain(ctx, entry, theme?)inrecontent/plugins. Plugin diagnostics and errors now name the plugin and token that triggered them.
Breaking changes
- Renamed
recontent init --from <path>torecontent init --dtcg <path>. - Removed
PluginContext.mode(no built-in plugin read it). - Removed CSS reset emission from
stylex()andvanillaExtract(). Both plugins drop thefontFamilyandplaceholderColoroptions and no longer emitreset.gen.cssorreset.gen.css.ts. Delete the generated reset files and their imports. - Theme names must now work across every output (letters, digits, underscores, and hyphens, without starting with a digit or hyphen).
defineConfig()throws otherwise. - Emitting two files to the same path now fails the build, even from the same plugin (for example, two
css()instances sharing anoutDiror adtcg()theme namedtokens).
Bug fixes
recontent diffno longer loads base revision tokens through the working tree's tsconfigpathsaliases, which previously hid or misreported changes.- A theme replacing a scale with tokens built from other tokens no longer drops the override.
recontent build --watchnow reloads the config file after edits instead of reusing the initial config.recontent init --forcenow succeeds when the config file already has identical content, andrecontent init -caccepts paths outside--cwd.
Full Changelog: 0.2.0...0.3.0
0.2.0
Highlights
Initial public release of Recontent — a typed design token toolchain that stores design decisions in layered TypeScript configs, supports multi-theme overrides, and generates outputs for your stack via plugins.
Features
- Typed token authoring: Define reference, system, and component token layers (
defineReferenceTokens,defineSystemTokens,defineComponentTokens) with primitives, scales, color scale generation (tokens.generateColorScale,tokens.colorScale), composites, and type-checked aliases. - Themes: Override token values for dark mode, density, or brand variants with
defineTheme()without changing component code. - CLI (
init,build,diff):recontent initscaffoldsrecontent.config.tsfrom built-in presets (neutral,material) or imports existing DTCG token files via--from <path>.recontent buildruns configured plugins and supports--watchfor rebuilding on save.recontent diffcompares tokens against a previous git revision with--fail-on-breakingand configurable output formats.
- Built-in plugins & plugin API: Ships with
css(),tailwind(),stylex(),vanillaExtract(),typescript(),typescriptNative(),dtcg(), anddocs()inrecontent/plugins, plus a plugin API for custom outputs.
Full Changelog: https://github.com/recontentapp/recontent/commits/0.2.0