JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q33169F
  • License MIT

A modern, minimalist React component library with TypeScript, Vanilla Extract, and Storybook. Features pastel colors and flexible design system.

Package Exports

  • kanso-ui
  • kanso-ui/dist/index.css
  • kanso-ui/dist/styles/index.css
  • kanso-ui/styles

Readme

Kanso UI 🌸

A modern, minimalist React component library inspired by Japanese design principles.

npm version License: MIT

✨ Features

  • 🎨 Beautiful Pastel Colors - Sky, Lavender, Sage, Amber, and Coral
  • 🔧 Flexible Design System - Mix any color with any variant
  • 🎯 TypeScript Native - Fully typed components
  • Accessibility First - Built with a11y in mind
  • 🚀 Modern Stack - Vanilla Extract CSS + React 18
  • 📖 Comprehensive Docs - Storybook documentation

🚀 Installation

npm install kanso-ui

💡 Quick Start

import { Button, Input } from 'kanso-ui'
import 'kanso-ui/dist/index.css'

function App() {
  return (
    <div>
      <Button color='sky' variant='filled'>
        Hello World
      </Button>

      <Input color='lavender' variant='outline' label='Email' placeholder='john@example.com' />
    </div>
  )
}

🎨 Color Palette

Color Description
sky Calm blue tones
lavender Gentle purple hues
sage Natural green shades
amber Warm orange tones
coral Vibrant red accents

📦 Components

Button

<Button color='sage' variant='outline' size='lg'>
  Click me
</Button>

Props:

  • color: 'sky' | 'lavender' | 'sage' | 'amber' | 'coral'
  • variant: 'filled' | 'outline' | 'ghost'
  • size: 'sm' | 'md' | 'lg'
  • fullWidth: boolean
  • loading: boolean

Input

<Input color='amber' variant='filled' label='Username' leftIcon='👤' rightIcon='' />

Props:

  • color: 'sky' | 'lavender' | 'sage' | 'amber' | 'coral'
  • variant: 'filled' | 'outline'
  • size: 'sm' | 'md' | 'lg'
  • label: string
  • helperText: string
  • errorMessage: string
  • leftIcon: ReactNode
  • rightIcon: ReactNode

🛠 Development

# Install dependencies
npm install

# Start Storybook
npm run dev

# Run tests
npm test

# Build library
npm run build

# Type check
npm run typecheck

📖 Documentation

Visit our Storybook documentation to explore all components and examples.

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

MIT © Pablo


Kanso (簡素) - Japanese aesthetic principle emphasizing simplicity and naturalness.