Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Conty-App/conty-design-system/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Conty Design System is distributed as an npm package. This guide will walk you through installing and configuring Conty in your React project.Prerequisites
Before installing Conty, ensure your project meets these requirements:Install the Package
Install the main design system package using your preferred package manager:The
@conty/design-system package automatically includes @conty/tokens and @conty/ui as dependencies.Peer Dependencies
Conty has the following peer dependencies that should already be in your project:package.json
Import Styles
Conty requires you to import its CSS file in your application entry point.- Next.js
- Vite
- Create React App
Import the styles in your root layout or
_app.tsx:app/layout.tsx
The
styles.css file includes both the design tokens (@conty/tokens/theme.css) and component styles (@conty/ui/styles.css).TypeScript Configuration
For optimal TypeScript support, configure yourtsconfig.json:
tsconfig.json
Conty is built as ESM modules. Make sure your bundler (Vite, Next.js, etc.) supports ESM.
Tailwind CSS Configuration (Optional)
If you’re using Tailwind CSS in your project, you may want to extend your configuration to use Conty’s design tokens:tailwind.config.js
Dark Mode Setup
Conty’s dark mode works by toggling a.dark class on a parent element (usually <html> or <body>).
- Next.js (next-themes)
- Manual Toggle
Install and configure
next-themes:app/providers.tsx
app/layout.tsx
Verify Installation
Create a simple test component to verify everything is working:src/App.tsx
Troubleshooting
Styles not loading
Styles not loading
Make sure you’ve imported
@conty/design-system/styles.css in your application entry point. Check your bundler’s configuration to ensure it can handle CSS imports.TypeScript errors
TypeScript errors
Ensure you’re using TypeScript 5.0+ and that your
tsconfig.json has moduleResolution: "bundler" or "node16".Peer dependency warnings
Peer dependency warnings
Make sure you have React 19 installed. Conty requires
react@^19.0.0 and react-dom@^19.0.0.Dark mode not working
Dark mode not working
Verify that the
.dark class is being applied to your <html> or root element. Check browser DevTools to inspect the class.Next Steps
Quick Start Guide
Now that you have Conty installed, follow our quick start guide to build your first component.