jin-seed-ui
v1.0.1
Published
A React design system library that can be published to npm. View UI documentation through Storybook.
Readme
Jin Seed UI
A React design system library that can be published to npm. View UI documentation through Storybook.
Installation
pnpm install jin-seed-uior
npm install jin-seed-uior
yarn add jin-seed-uiUsage
Import Styles
Import Jin Seed UI styles in your project:
// main.tsx or App.tsx
import "jin-seed-ui/design-system.scss";Use Components
import {
Text,
Flex,
Grid,
Image,
Skeleton,
ListRow,
Spacing,
} from "jin-seed-ui";
function App() {
return (
<Flex direction="column" gap="md">
<Text size="t1" bold>
Heading
</Text>
<Text size="t3">Body text</Text>
</Flex>
);
}Development
# Install dependencies
pnpm install
# Run Storybook (UI documentation)
pnpm storybook
# Build Storybook
pnpm build-storybook
# Build library
pnpm buildStorybook
View and test all components through Storybook:
pnpm storybookOpen http://localhost:6006 in your browser to view the UI documentation.
Project Structure
src/
├── Text/ # Text component
├── Colors/ # Color definitions
├── Flex/ # Flex layout component
├── Grid/ # Grid layout component
├── Image/ # Image component
├── Skeleton/ # Skeleton loading component
├── ListRow/ # ListRow component
├── Spacing/ # Spacing component
├── styles/ # Style files (SCSS)
└── index.ts # Main entry point
.storybook/ # Storybook configuration
├── main.ts # Storybook main config
└── preview.ts # Storybook preview configComponents
- Text: Text component with size, color, and weight controls
- Flex: Flexbox layout component
- Grid: Grid layout component
- Image: Image component
- Skeleton: Loading skeleton component
- ListRow: List row component
- Spacing: Spacing component
For detailed usage of each component, see the Storybook documentation.
Publishing to npm
# Build the library
pnpm build
# Login to npm
npm login
# Publish
pnpm publishLicense
MIT
