Prerequisites
Before installing the Axmed Design System, ensure your project meets these requirements:- React 18+ — The design system requires React 18 or higher
- Ant Design 5+ — Core UI components are built on antd
- @ant-design/icons 5+ — Icon library for component icons
Installation
Install the design system using your preferred package manager:Peer dependencies
If you don’t already have the peer dependencies installed, add them to your project:The design system requires:
react>= 18react-dom>= 18antd>= 5@ant-design/icons>= 5
CSS setup
The design system requires its stylesheet to be imported once in your application root.Import the stylesheet
Add the following import to your main entry file (e.g.,main.tsx, index.tsx, or App.tsx):
Complete setup example
Here’s a complete example of a typicalmain.tsx or index.tsx file:
main.tsx
Font loading
The design system automatically injects the Figtree font family from Google Fonts at runtime. No additional configuration is required.TypeScript support
The design system is built with TypeScript and includes full type definitions out of the box. No additional@types packages are needed.
All component props are fully typed:
Module formats
The package supports both ES modules and CommonJS:- ESM:
import { AxButton } from 'axmed-design-system' - CommonJS:
const { AxButton } = require('axmed-design-system')
ES modules are recommended for modern bundlers like Vite, webpack 5+, or Next.js.
Next steps
Now that you have the design system installed, you’re ready to start building:Quickstart
Build your first component in minutes
Components
Explore all available components
Typography
Learn about text styles and hierarchy
Colors
Understand the color system