@devmadev/adventure-ds
v0.1.0
Published
Adventure DS — Rivian-inspired React components and CSS tokens
Readme
Adventure DS
Published npm name: @devmadev/adventure-ds — public scoped package on npm (publishConfig.access: "public"). React components and CSS tokens, built with Vite and TypeScript. Your GitHub repo can stay private; only the published dist/ appears on npm.
Scripts
npm run dev— local dev server (showcase app)npm run build— production build of the showcase app →dist-app/npm run build:lib— library bundle + types for npm →dist/npm run lint— ESLintnpm run preview— preview the showcase build (dist-app/)
Use as a dependency
npm install @devmadev/adventure-dsIn your app (React 18+):
import { Button, Heading } from '@devmadev/adventure-ds'
import '@devmadev/adventure-ds/adventure-ds.css'react and react-dom must be installed by the host app (peer dependencies).
Figma Make
Add @devmadev/adventure-ds to your Make kit like any other dependency from the public npm registry.
Publish to npm
- Ensure your npm account is a member of the
devmadevorg with permission to publish@devmadevpackages (npm teams). npm loginnpm publish—prepublishOnlyrunsbuild:libfirst.
Dry-run the tarball:
npm pack --dry-runLayout
src/tokens/— global CSS variables (semantic + primitives)src/components/— UI components (barrel export insrc/components/index.ts)
Git
This folder is a Git repository on main. For commits, set your name and email if you have not already:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"GitHub
This project’s remote (example — yours may already match):
[email protected]:robaimes-figma/devmaDS.gitPush updates:
git push -u origin mainIf origin points at the wrong URL:
git remote set-url origin [email protected]:robaimes-figma/devmaDS.git