- Footer
- Icons
- Button
- ResponsiveController
- UI Kit colors
- Dark Theme colors
- Light Theme colors
- Typography
The library includes Storybook for development. To start the Storybook server, run:
$ pnpm storybook
The library builds and packs as a [Svelte library] with the following command:
$ pnpm build
In order to add new components into the library to be used outside:
- Create a new component under
src/lib/components/
directory. - Export the component on
src/lib/index.ts
:
import { NewComponent } from './components/NewComponent';
export {
Footer,
...
NewComponent
};
- Now you can import it and use it in another project:
import { NewComponent } from '@taiko/ui-lib';
...
<NewComponent />
Besides from the components, the library exports the configurations for TailwindCSS in src/theme/
:
colors.js
: Taiko's UI Kit core colorsdark-mode.js
: TailwindCSS/DaisyUI dark mode configurationlight-mode.js
: TailwindCSS/DaisyUI light mode configuration
All exported values from the src/theme
directory are prefixed with tko-
to avoid conflicts with other libraries and local definitions.