Mantle
Mantle is ngrok’s UI library and design system. It’s based on shadcn/ui and Radix with Tailwind providing styling. It’s documented using Remix.
Get Started
To get started, install @ngrok/mantle
with your preferred package manager:
package manager | command |
---|
npm | npm install -E @ngrok/mantle |
yarn | yarn add -E @ngrok/mantle |
pnpm | pnpm add -E @ngrok/mantle |
bun | bun add -E @ngrok/mantle |
Then, add the preset to your tailwind configuration.
import { mantlePreset } from "@ngrok/mantle/tailwind-preset";
import type { Config } from "tailwindcss";
export default {
presets: [mantlePreset],
} satisfies Config;
Installation
Mantle uses pnpm
as its package manager. First, install the dependencies in the repo’s directory by running pnpm install
.
Development and preview
Run pnpm run docs:dev
to run Remix's development mode, rebuilding assets on file changes.
Open up http://localhost:3000 and you should be ready to go!
Deployment
First, build the app for production:
pnpm run build
Then run the app in production mode:
pnpm start
We have chosen vercel to deploy to.
DIY
If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
Make sure to deploy the output of remix build