Set up shadcn/ui component library with wallet-specific components#24
Draft
Set up shadcn/ui component library with wallet-specific components#24
Conversation
Co-authored-by: wheval <179390421+wheval@users.noreply.github.com>
Co-authored-by: wheval <179390421+wheval@users.noreply.github.com>
Co-authored-by: wheval <179390421+wheval@users.noreply.github.com>
Co-authored-by: wheval <179390421+wheval@users.noreply.github.com>
Co-authored-by: wheval <179390421+wheval@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Set up shadcn/ui component library with wallet customizations
Set up shadcn/ui component library with wallet-specific components
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Establishes the UI component library for Ancore wallet using shadcn/ui (Radix UI + Tailwind CSS). Provides core primitives and wallet-specific components with dark mode, Storybook, and test coverage.
Components
Core UI primitives (shadcn/ui)
Wallet-specific
AmountInput- Cryptocurrency input with balance display and asset badgeAddressDisplay- Blockchain address with smart truncation and copy-to-clipboardDesign System
#8B5CF6as primary)src/styles/globals.cssUsage
Development
Documentation
README.md- Component API and usage patternsDESIGN_TOKENS.md- Complete token reference (colors, spacing, typography)Original prompt
This section details on the original issue you should resolve
<issue_title>Issue #6: Set Up shadcn/ui Component Library</issue_title>
<issue_description>## Set Up shadcn/ui Component Library
Description:
Set up shadcn/ui for the UI component library, customize design tokens for the wallet brand, add wallet-specific components, and configure Storybook for component development.
Context:
The extension wallet needs a consistent, beautiful UI. Instead of building components from scratch, we'll use shadcn/ui - a collection of beautifully designed, accessible components built with Tailwind CSS and Radix UI. shadcn/ui copies components directly into your project (not an npm package), giving us full control to customize for our wallet needs.
Why shadcn/ui?
Requirements:
packages/ui-kit(npx shadcn@latest init)Implementation Guide:
1. Initialize shadcn/ui
cd packages/ui-kit npx shadcn@latest initThis creates:
components.json(config)tailwind.config.js(with design tokens)lib/utils.ts(cn utility)2. Add Components
Components are copied to
src/components/ui/.3. Customize Design Tokens
Edit
tailwind.config.js:4. Usage Example
5. Create Custom Wallet Components
Files to Create/Generate:
packages/ui-kit/components.json(shadcn config, generated by init)packages/ui-kit/tailwind.config.js(generated, then customize)packages/ui-kit/src/lib/utils.ts(cn utility, generated)packages/ui-kit/src/components/ui/button.tsx(generated by shadcn)packages/ui-kit/src/components/ui/input.tsx(generated by shadcn)packages/ui-kit/src/components/ui/card.tsx(generated by shadcn)packages/ui-kit/src/components/ui/badge.tsx(generated by shadcn)packages/ui-kit/src/components/amount-input.tsx(custom wallet component)packages/ui-kit/src/components/address-display.tsx(custom wallet component)packages/ui-kit/.storybook/main.ts(Storybook config)packages/ui-kit/src/**/*.stories.tsx(Storybook stories)packages/ui-kit/src/**/*.test.tsx(React Testing Library tests)Dependencies:
tailwindcss(^3.4.0) - CSS frameworktailwindcss-animate(^1.0.7) - Animation utilities (added by shadcn)class-variance-authority(^0.7.0) - Variant management (added by shadcn)clsx(^2.1.0) - Class name utility (added by sha...💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.