@vnphanquang/gach
v2.0.2
Published
gạch - building blocks for weaving webs - from vnphanquang
Maintainers
Readme
@vnphanquang/gach
Gạch (Vietnamese for "brick", /ɣajk̟̚˧˨ʔ/) - a design system and collection of Svelte utilities / components / layouts / setups for my projects
Installation
pnpm add -D @vnphanquang/gach tailwindcss @sveltejs/kitSetup
Register the Vite plugin
// vite.config.ts
import { defineConfig } from 'vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { gach } from '@vnphanquang/gach/vite';
export default defineConfig({
plugins: [gach({ markdown: true }), sveltekit({/* additional config */})],
});For now, add explicit CSS layer declaration in app.html:
<!-- src/app.html -->
<html lang="en" data-color-scheme="%color-scheme%">
<head>
<style>
@layer theme, base, components, markdown, utilities, icons;
@layer utilities.components, utilities.icons;
</style>
%sveltekit.head%
</head>
</htmlLoad styling in the entry CSS:
/* src/app.css */
@import '@vnphanquang/gach/styles';
@layer base {
:root {
--header-height: 4.5rem; /* adjust accordingly */
}
}Usage
TBD - too much stuff to document for now.
