@kayord/ui
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

Kayord UI

The UI components used to build kayord applications.

Update

npx shadcn-svelte@latest

npx shadcn-svelte@latest update -a

Installing

Pnpm command to install ui library.

# create a new project in the current directory
pnpm add -D @kayord/ui
pnpm add -D @kayord/tw-plugin
# install peer dependencies
pnpm add -D lucide-svelte zod sveltekit-superforms

Manual Setup New Project

# Setup new sveltekit project
npm create svelte@latest my-app
npx svelte-add@latest tailwindcss
pnpm i

Change tailwind config

// postcss.config.cjs

module.exports = {
	plugins: {
		tailwindcss: {},
		autoprefixer: {},
	},
};
// tailwind.config.ts

import type { Config } from "tailwindcss";
import { fontFamily } from "tailwindcss/defaultTheme";
import { kayordPlugin } from "@kayord/tw-plugin";

export default {
	darkMode: ["class"],
	content: ["./src/**/*.{html,js,svelte,ts}", "./node_modules/@kayord/ui/**/*.{html,js,svelte,ts}"],
	theme: {
		extend: {
			fontFamily: {
				sans: [...fontFamily.sans],
			},
		},
	},
	plugins: [kayordPlugin],
} satisfies Config;

Readme

Keywords

none

Package Sidebar

Install

npm i @kayord/ui

Weekly Downloads

81

Version

0.9.1

License

none

Unpacked Size

404 kB

Total Files

476

Last publish

Collaborators

  • doink