@incognia/cosmik
v0.35.4
Published
Incognia component library, based on Shadcn UI.
Downloads
826
Maintainers
Keywords
Readme
Cosmik
Incognia component library, based on Shadcn UI.
Component Docs: https://inloco.github.io/cosmik
Usage
Install
npm install --save @incognia/cosmik
CSS: There are two ways to import the CSS depeding on wheather your project uses the cosmik tailwindcss theme
2.1. Uses cosmik tailwind theme (prefered): Configure your tailwind file (tailwind.config.js):
const { tailwindTheme } = require('@incognia/cosmik') /** @type {import('tailwindcss').Config} */ export default { content: [ './index.html', './src/**/*.{js,ts,jsx,tsx}', './node_modules/@incognia/cosmik/dist/**/*.js' ], theme: tailwindTheme }
2.2. Does not use cosmik tailwind theme: Add the cosmik css to your project:
import '@incognia/cosmik/dist/cosmik.css'
Import Cosmik components as needed:
import { Button } from '@incognia/cosmik'