|
|
2 dní pred | |
|---|---|---|
| src | 2 dní pred | |
| static | 4 mesiacov pred | |
| .gitignore | 4 mesiacov pred | |
| .npmrc | 4 mesiacov pred | |
| README.md | 2 dní pred | |
| design.md | 4 mesiacov pred | |
| package-lock.json | 2 dní pred | |
| package.json | 2 dní pred | |
| svelte.config.js | 4 mesiacov pred | |
| tsconfig.check.json | 2 dní pred | |
| tsconfig.json | 2 dní pred | |
| vite.config.ts | 4 mesiacov pred |
A calm, precise component library built with Svelte 5 and Tailwind v4. Designed for data-dense interfaces that need to feel trustworthy.
npm install
npm run dev
Use the full Tailwind-powered component stylesheet in Svelte applications:
@import "@database.pizza/olive/styles";
For other frameworks, import only the shared color, type, spacing, radius, shadow, and motion custom properties:
@import "@database.pizza/olive/tokens";
The olive accent is the signature brand color; the mono stack provides the supporting technical voice for data, code, and identifiers.
Olive uses @sveltejs/package to build the library.
npm install -D @sveltejs/package publint
package.json{
"name": "@database.pizza/olive",
"version": "0.1.0",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"package": "svelte-kit sync && svelte-package && publint",
"prepublishOnly": "npm run package"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
},
"./styles": "./dist/styles.css",
"./tokens": "./dist/tokens.css"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": ["dist"]
}
# Build into dist/
npm run package
# Verify the package exports are correct
npx publint
# Publish
npm publish
svelte-package reads src/lib/ and compiles everything into dist/src/lib/index.ts is the public API — only what's exported there is available to consumers@database.pizza/olive/tokens exposes framework-neutral CSS custom properties without Tailwindpublint validates the package.json exports field before you publish