@cyberleek/design
v0.2.2
Published
A Vue 3 component library for terminal-inspired interfaces with a signal.
Maintainers
Readme
@cyberleek/design
A Vue 3 component library for terminal-inspired interfaces with a signal.
@cyberleek/design combines shadcn-style composition, Reka UI primitives, Tailwind CSS v4 tokens, and accessible interaction patterns in a compact blue-green terminal visual system.
Install
pnpm add @cyberleek/designImport the stylesheet once before mounting your application:
import '@cyberleek/design/styles.css'Then import only the components you need:
<script setup lang="ts">
import { LButton, LCard, LStatusBadge } from '@cyberleek/design'
</script>
<template>
<LCard title="系统状态">
<LStatusBadge tone="live">在线</LStatusBadge>
<LButton class="mt-3">查看</LButton>
</LCard>
</template>Components
LButtonLCard,LCardHeader,LCardContentLLayoutLTypographyLCollapsibleLDividerLCodeLSectionToggleLStatusBadgeLStatGrid,LStatItemLProgressBarLDataListLAnnouncementList
The package also exports the cn helper, designTokens, and the DesignToken type.
Theme tokens
The stylesheet provides the --l-* design tokens used by the components, including colors, typography, spacing, shadows, and layout width. When using Tailwind CSS v4, layer your application theme on top of these variables instead of copying token values into your project.
Local development
From the workspace root:
pnpm install
pnpm dev:design
pnpm dev:docsUseful checks:
pnpm typecheck
pnpm test
pnpm build
pnpm verifyThe full component documentation includes installation guidance, API details, accessibility notes, and live previews.
