@aryagg/layout-kit
v0.0.4
Published
A Svelte 5 component library template powered by [SvelteKit](https://svelte.dev/docs/kit), [Tailwind CSS v4](https://tailwindcss.com), and TypeScript.
Readme
ui-kit
A Svelte 5 component library template powered by SvelteKit, Tailwind CSS v4, and TypeScript.
Stack
- Svelte 5 with runes mode enforced across the project
- SvelteKit — dev server, routing, and packaging
- Tailwind CSS v4 via
@tailwindcss/vite - TypeScript with strict config
- ESLint + Prettier (with
eslint-plugin-svelte) @aryagg/theme,@aryagg/types,@aryagg/utils— shared design system packages
Getting started
Install dependencies:
npm installStart the dev server (includes a live showcase app at src/routes):
npm run dev
# open in browser automatically
npm run dev -- --openProject structure
src/
lib/ ← library source (exported to consumers)
routes/ ← showcase / preview app (not published)Everything inside src/lib is part of the published library. Use src/routes to build demos and test components interactively.
Building
Build and package the library:
npm run buildThis runs svelte-kit sync, svelte-package, and publint in sequence. Output goes to dist/.
Preview the showcase app production build:
npm run previewType checking & linting
npm run check # svelte-check + tsc
npm run check:watch # watch mode
npm run lint # prettier + eslint
npm run format # auto-format with prettierPublishing
- Set the
"name"field inpackage.jsonto your desired package name. - Add a
"license"field and aLICENSEfile (e.g. MIT). - Publish to npm:
npm publishThe "exports" field in package.json exposes ./dist/index.js (Svelte) and ./dist/index.d.ts (types) for consumers.
