Skip to content

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 ​

LayerEntryContract
Foundations@yunlefun/ui/cssCompiled core CSS tokens and themes, no fonts or framework
Compat & profiles@yunlefun/ui/compat.css / admin.css / editor.cssOpt-in legacy aliases, Admin/Editor layers, and data-ylf-profile scoping
Framework adapters@yunlefun/ui/adapters/*.cssTheme mappings for shadcn.css, nuxt-ui.css, and tdesign.css
Programmatic & UnoCSS@yunlefun/ui/tokens / unocss / tokens.jsonBrowser-safe JS/TS tokens, zero-dep presetYunlefun(), and W3C DTCG JSON
Optional backgrounds@yunlefun/ui/patterns.cssGrid/sky classes after foundations
SCSS@yunlefun/ui/stylesSame structured source as CSS; optional and requires Sass
Vue components@yunlefun/vue/components/*.vueExplicit imports using native CSS custom properties (no Sass required)
Public typesimport type { YlfAccentTone, YlfColorAppearance } from '@yunlefun/vue'Browser-safe public type contracts
Node helpers@yunlefun/vue/nodeNode component directory resolution (componentsDir, _dirname)
Nuxt@yunlefun/vue/nuxtAuto 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.

vue
<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.

html
<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 ​

ScopeAvailableFurther work before broader adoption
Visual guidelinesSix hues, purpose/status roles, three emphasis levels, themes, typography and spacingValidate hierarchy across real content densities
DistributionShared CSS/SCSS source, Vue/Nuxt, Registry and npm releasesMaintain changelogs and deployed artifact checks
Behavior15 Reka wrappers accepted in Chromium, themes, keyboard, focus, names and distributionOther browsers, screen readers and business scenarios
AdoptionReal components in docs; shared tokens and color APIs in the main siteAcceptance in another real application
CoverageButtons, badges, cards, selection and overlaysInputs, textareas, errors, empty states and forms based on needs
Design collaborationCode tokens, W3C DTCG JSON / JS/TS exports, and online guidelinesNo 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 ​

  1. Define the component scope and document API/token changes and legacy migrations.
  2. Run pnpm lint, pnpm typecheck, pnpm docs:build and pnpm exec vitest run.
  3. Run pnpm ui:verify: pack styles and build an independent CSS consumer without Sass.
  4. Run pnpm vue:verify, pnpm nuxt:verify and pnpm registry:verify. Vue verification builds every component in an independent consumer.
  5. Manually check keyboard, focus, 390px/768px layouts, themes, long text and disabled states.
  6. 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.