kevin-design-system
v0.1.2
Published
A React component library for Kevin Design System.
Downloads
420
Maintainers
Readme
kevin-design-system
A React component library for Kevin Design System.
Installation
npm install kevin-design-systemreact and react-dom are peer dependencies and must already exist in the consuming app.
Usage
The package entry automatically loads the bundled library styles, so you can import components directly without a separate CSS import.
import { Button, TextInput } from 'kevin-design-system';
export function Example() {
return (
<div className="flex flex-col gap-4">
<TextInput placeholder="Type something" />
<Button>Button</Button>
</div>
);
}Included Categories
- Foundation:
Typography - Action:
Button,ButtonGroup,Dropdown,Modal,Drawer - Input:
TextInput,Select,Checkbox,Radio,Switch,DatePicker,UploadDropzone - Navigation:
Pagination,Tabs,BreadCrumb - Data Display:
Avatar,Badge,MetricCard,Table,Tag,Tooltip - Feedback:
Alert,Progress,Skeleton,Toast - Layout:
Box,FlexWrapper,Grid,Divider - Interaction:
CountUp,SplitText,Sticker - Mobile:
BottomNavigation,TopAppBar,BottomSheet,NavDrawer
Styling Notes
- Library styles are bundled into the package entry automatically.
- Dark mode follows a
.darkclass on an ancestor. - The theme uses
PretendardandTossfacefont-family names when available. If those fonts are not loaded in the consumer app, the browser will fall back to system fonts.
Build the Library
npm run build:libThis produces:
dist-lib/index.jsdist-lib/index.cjsdist-lib/styles.cssdist-lib/types
Local Package Check
npm packThis creates a tarball you can install in another project for verification before publishing.
