@devalok/shilp-sutra
v0.56.0
Published
Devalok Design System — accessible React components, OKLCH design tokens, and Tailwind 4 CSS-first setup. Ships with AI-agent setup recipes.
Downloads
4,013
Maintainers
Readme
@devalok/shilp-sutra
Devalok Design System -- tokens, components, and patterns for React & Next.js.
For full documentation, setup guides, and architecture details, see the monorepo README.
Want to brand it? Skip the CSS cookbook — open the Themer. Pick an archetype (Linear / Stripe / Apple / Material / Notion / Vercel / Devalok), or paste your brand hex, or take a 5-question wizard. Lands you at a result page with install commands + a CSS block to paste.
Install
pnpm add @devalok/shilp-sutra framer-motion
# Only if you render a <Toaster />:
pnpm add sonnerUpgrading from < 0.37? 0.37 is a Tailwind 4 CSS-first release — the setup has changed. Read MIGRATION.md.
Quick Start
/* app/globals.css */
@import "tailwindcss";
@import "@devalok/shilp-sutra/css";// next.config.ts
export default {
transpilePackages: ['@devalok/shilp-sutra'],
}// Any component
import { Button } from '@devalok/shilp-sutra/ui/button'No tailwind.config.ts required from us. Your own plugins or content globs go in globals.css via TW4 directives (@plugin, @source, @theme).
AI Agents & MCP
Live docs MCP — version-exact component/token/migration answers for any MCP-capable agent:
claude mcp add --transport http shilp-sutra https://shilp-sutra.devalok.in/mcpSix read-only tools: find_component, get_component, get_tokens, get_setup, upgrade, search_docs. Every tool takes a version param — pass your installed version (from node_modules/@devalok/shilp-sutra/package.json) so answers match your prop surface exactly.
Prefer a local skill over a network call? Copy the one we ship:
cp -r node_modules/@devalok/shilp-sutra/skill ~/.claude/skills/shilp-sutraWithout MCP: llms.txt (router) → docs/components/<tier>/<name>.md (per-component) → mcp-manifest.json (all props/tokens/composition as JSON). Full contract in AGENTS.md.
No install scripts
This package has no postinstall and no lifecycle scripts of any kind. Installing it runs zero code on your machine and writes nothing outside its own directory.
Up to 0.55.x we shipped a postinstall that printed a welcome banner and wrote a project-scoped .mcp.json pointing at the docs MCP above. Both are gone as of 0.56.0. The banner was noise; writing a config file into someone's repo — unasked, to wire their AI agent to our server — is exactly the behaviour npm's install-script blocking exists to stop, and it is not a thing a design system should do to earn a place in your dependency tree. Add the MCP yourself with the command above if you want it.
Upgrading from ≤0.55.x? Nothing to do. If you want the old auto-written config gone, delete the
shilp-sutraentry from your.mcp.json(or the file, if we created it and you keep nothing else there) and remove thenode_modules/.shilp-sutra-welcomed/.shilp-sutra-mcp-writtensentinels.
Peer Dependencies
Required
| Package | Version | Why |
|---|---|---|
| react | ^18 \|\| ^19 | |
| react-dom | ^18 \|\| ^19 | |
| tailwindcss | ^4.0.0 | We ship TW4 @theme CSS; TW3 is not supported |
| framer-motion | ^12.0.0 | Shared-state motion contexts must be single-copy |
Optional
Install only what you use:
| Feature | Packages |
|---------|----------|
| Toasts (./ui/toaster, ./ui/toast) | sonner |
| Charts (./ui/charts) | d3-array, d3-axis, d3-format, d3-interpolate, d3-scale, d3-selection, d3-shape, d3-time-format, d3-transition |
| Rich Text Editor (./composed/rich-text-editor) | @tiptap/core, @tiptap/extension-highlight, @tiptap/extension-image, @tiptap/extension-list, @tiptap/extension-mention, @tiptap/extension-text-align, @tiptap/extensions, @tiptap/markdown, @tiptap/pm, @tiptap/react, @tiptap/starter-kit, @tiptap/suggestion |
| Rich Chat Input (./composed/rich-chat-input) | the Rich Text Editor list, plus date-fns |
| DataTable (./ui/data-table) | @tanstack/react-table, @tanstack/react-virtual |
| Icons | @tabler/icons-react |
| Date components (./composed/date-picker) | date-fns |
| OTP Input (./ui/input-otp) | input-otp |
| Markdown rendering | react-markdown, remark-gfm |
| PDF preview (./composed/file-preview) | react-pdf, react-zoom-pan-pinch |
Links
- Storybook -- interactive component docs
- Monorepo README -- full docs, architecture, component list
- Changelog
- Migration Guide
License
MIT -- Copyright 2026 Devalok Design & Strategy Studios
