Skip to content
프로젝트

소개

ABC Def is an efficient design system using a three-tier token structure and Headless UI to create web components with consistent design and flexible customization.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ABC Def

ABC Def is a CSS-first design system for shared UI packages. The visual contract lives in @line/abc-def-styles; the React and Vue packages render components against the same semantic selectors and tokens.

Packages

  • @line/abc-def-styles: Tailwind CSS v4 tokens, semantic variables, and component selectors.
  • @line/abc-def-react: React components that render the shared selector contract.
  • @line/abc-def-vue: Vue components that render the shared selector contract.

Install

pnpm add tailwindcss @line/abc-def-styles
pnpm add @line/abc-def-react react react-dom
pnpm add @line/abc-def-vue vue

Install only the framework package you use. Plain HTML projects only need @line/abc-def-styles.

Usage

Import the shared stylesheet from CSS processed by Tailwind CSS v4:

@import "tailwindcss";
@import "@line/abc-def-styles/css";

React apps import components from subpath entry points:

import { Button } from "@line/abc-def-react/button";

export function Example() {
  return <Button variant="outline">Button</Button>;
}

ABC Def does not provide a root component export. Do not import components from @line/abc-def-react; use the component subpath such as @line/abc-def-react/button.

Vue apps use the same subpath pattern:

<script setup lang="ts">
import { Button } from "@line/abc-def-vue/button";
</script>

<template>
  <Button variant="outline">Button</Button>
</template>

The Vue package follows the same rule: do not import components from @line/abc-def-vue; use subpath entries such as @line/abc-def-vue/button.

Tailwind v4 ignores most package sources by default. Add an @source rule for the installed component package when your app uses React or Vue components:

@source "../node_modules/@line/abc-def-react/dist/**/*.{js,cjs}";
@source "../node_modules/@line/abc-def-vue/dist/**/*.{js,cjs}";

Adjust the relative path for your app stylesheet location.

Examples

  • examples/html-vite: plain HTML consumer of @line/abc-def-styles/css
  • examples/nextjs: React consumer of @line/abc-def-styles/css and @line/abc-def-react
  • examples/vue-vite: Vue consumer of @line/abc-def-styles/css and @line/abc-def-vue

Compatibility

ABC Def 2.x follows strict SemVer for documented public APIs, including package subpath exports, component props, CSS entry points, semantic selectors, and documented token names. See Public API.

Development

pnpm install
pnpm dev

pnpm dev watches the framework packages under packages/*. Run an example app separately when you want to verify the UI in a browser:

pnpm --filter @abc-def/example-html-vite dev
pnpm --filter @abc-def/example-vue-vite dev
pnpm --filter @abc-def/example-nextjs dev

Before submitting changes, run:

pnpm lint
pnpm format
pnpm typecheck
pnpm build

For contribution details, see CONTRIBUTING.md. Security reports are handled through SECURITY.md.

License

Apache-2.0. See LICENSE.

관련 프로젝트 살펴보기

불러오는 중…