This is a Pocket Network themed UI component library to be used in other projects. It is built with Typescript, Tailwind and shadcn.
Here are the following components already built and their URL to add to your project via shadcn CLI:
Component | Registry URL |
---|---|
Theme | /r/theme.json |
Button | /r/button.json |
Card | /r/card.json |
Code | /r/code.json |
Logo | /r/logo.json |
PoktIcon | /r/pokt-icon.json |
Tabs | /r/tabs.json |
If you have built any project with shadcn before, the setup should be identical (or at least very similar). If not, read the official shadcn docs to learn more.
There are 2 ways to add theme and components to your project:
- Use the shadcn CLI to add from registry
- Manually copy and paste from
src/app/globals.css
andsrc/components/ui
The instructions below will cover both options to set up your project:
Follow the installation instructions from the official shadcn documentation. Once you've initialized shadcn in your project, return here to continue with the Pocket Network UI setup.
🚧 TODO: Replace http://localhost:3000
with hosted registry URL
bunx --bun shadcn@latest add http://localhost:3000/r/theme.json
This will update the CSS variables in your globals.css
file with Pocket Network color palette and font.
Copy src/app/globals.css
into your project. If you have an existing globals.css
file, replace it with this one.
This includes the CSS variables for Pocket Network's font and color themes.
There are 2 ways to add theme and components to your project:
- Use the shadcn CLI to add from registry
- Manually copy and paste from
src/components/ui
folder
🚧 TODO: Replace http://localhost:3000
with hosted registry URL
bunx --bun shadcn@latest add http://localhost:3000/r/button.json
All components are found in src/components/ui
. Copy and paste the files of your choosing into your project.
cp src/components/ui/button.tsx path/to/project/components/ui/button.tsx
Note: Some components may require npm dependencies.
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.