// src/yarcl.config.ts
import { defineConfig } from '@yarcl/react/define';
import defaults from '@yarcl/react/defaults';
export default defineConfig({
...defaults,
colors: { ...defaults.colors, brand: { light: '#2d4bb8', dark: '#8aa2ff' } },
defaults: { ...defaults.defaults, color: 'brand' },
});
Extends a validated base config with recipes using autocompleting CSS token references.
Declares a yarcl design system config.
Checks at compile time that:
lightanddarkvaluedefaults,focusRing.color,typography.fonts,typography.headingsand each text style'sfamilyreference existing keyscomponentsonly names known components, only sets supported options, and only uses existing keysReturns the config unchanged with literal types preserved, so the library can derive its prop types from it. Spread
@yarcl/react/defaultsto extend the library defaults instead of replacing them.