Public use and releases
YunLeFun Design is available for early use as a Web design foundation: shared tokens, themes, Vue controls and source distribution are connected. The current accepted release is @yunlefun/ui@0.0.6 with @yunlefun/vue@0.4.3. See Component acceptance. The main site reuses tokens through the package entry; documentation displays repository source. Pin verified published versions in applications and check npm for publication status.
Public interfaces
| Layer | Entry | Contract |
|---|---|---|
| Foundations | @yunlefun/ui/css | Compiled core CSS tokens and themes, no fonts or framework |
| Compat & profiles | @yunlefun/ui/compat.css / admin.css / editor.css | Opt-in legacy aliases, Admin/Editor layers, and data-ylf-profile scoping |
| Framework adapters | @yunlefun/ui/adapters/*.css | Theme mappings for shadcn.css, nuxt-ui.css, and tdesign.css |
| Programmatic & UnoCSS | @yunlefun/ui/tokens / unocss / tokens.json | Browser-safe JS/TS tokens, zero-dep presetYunlefun(), and W3C DTCG JSON |
| Optional backgrounds | @yunlefun/ui/patterns.css | Grid/sky classes after foundations |
| SCSS | @yunlefun/ui/styles | Same structured source as CSS; optional and requires Sass |
| Vue components | @yunlefun/vue/components/*.vue | Explicit imports using native CSS custom properties (no Sass required) |
| Public types | import type { YlfAccentTone, YlfColorAppearance } from '@yunlefun/vue' | Browser-safe public type contracts |
| Node helpers | @yunlefun/vue/node | Node component directory resolution (componentsDir, _dirname) |
| Nuxt | @yunlefun/vue/nuxt | Auto imports; applications explicitly load styles |
Vue components use native CSS custom properties and require Vue in the consuming build without Sass; CSS-only projects need neither. Pregenerated subpath declarations check public APIs without resolving internal Reka source. The root @yunlefun/vue entry stays browser-safe, while Node directory helpers live in @yunlefun/vue/node.
Consistent visual APIs
variant defines purpose, tone defines accent hue and appearance defines emphasis. Their supported scope is specified per component. Tone does not redefine success or error.
<YlfCard variant="tinted" tone="pink" :hoverable="false">
<YlfBadge variant="accent" tone="pink" appearance="soft">Creation</YlfBadge>
<h2>Room for inspiration</h2>
<YlfButton variant="accent" tone="pink" appearance="outline">View creations</YlfButton>
</YlfCard>Solid, soft and outline share paired tokens. Applications own layout and data; cards are not bound to users/products/events and buttons do not perform requests or permissions.
Themes and customization
Use root .dark globally, or .ylf-theme-light / .ylf-theme-dark locally. Place overlays inside the same boundary; see Dialog and preview Portal examples.
<section class="ylf-theme-dark">
<div data-ylf-tone="cyan" class="category">Tools</div>
</section>Customize public tokens instead of internal --_ variables or DOM structure. Change fill, hover, -on, -soft and -text together and verify both themes. Overriding a palette value in a child does not recalculate aliases already resolved in an ancestor: override the full purpose group at the theme boundary or define the palette at the root.
Avoid global button/span/svg skin selectors. Components use ylf-* classes and token CSS contains no global reset, allowing coexistence with existing applications.
Current maturity
| Scope | Available | Further work before broader adoption |
|---|---|---|
| Visual guidelines | Six hues, purpose/status roles, three emphasis levels, themes, typography and spacing | Validate hierarchy across real content densities |
| Distribution | Shared CSS/SCSS source, Vue/Nuxt, Registry and npm releases | Maintain changelogs and deployed artifact checks |
| Behavior | 15 Reka wrappers accepted in Chromium, themes, keyboard, focus, names and distribution | Other browsers, screen readers and business scenarios |
| Adoption | Real components in docs; shared tokens and color APIs in the main site | Acceptance in another real application |
| Coverage | Buttons, badges, cards, selection and overlays | Inputs, textareas, errors, empty states and forms based on needs |
| Design collaboration | Code tokens, W3C DTCG JSON / JS/TS exports, and online guidelines | No synchronized Figma library or native mobile artifacts yet |
This is an early release with an explicit trial scope. Acceptance of existing demos is not universal accessibility certification or a guarantee for every business scenario.
Release acceptance
- Define the component scope and document API/token changes and legacy migrations.
- Run
pnpm lint,pnpm typecheck,pnpm docs:buildandpnpm exec vitest run. - Run
pnpm ui:verify: pack styles and build an independent CSS consumer without Sass. - Run
pnpm vue:verify,pnpm nuxt:verifyandpnpm registry:verify. Vue verification builds every component in an independent consumer. - Manually check keyboard, focus, 390px/768px layouts, themes, long text and disabled states.
- After publishing, install exact versions, inspect deployed docs and Registry, then adopt in applications.
APIs and tokens are versioned contracts. Document removals/semantic changes and deprecation periods. Registry consumers merge copied source changes themselves.