components.json
Configuration file for your AxionJS project.
The components.json
file holds configuration for your project.
It’s created automatically when you run npx axionjs-ui init
.
You can use the components.json
file to customize the import paths,
component library, and styling for your project.
Schema
Here’s the structure of the components.json
file:
Configuration Options
style
The style for your components. Currently, we have two styles available: default
and new-york
.
rsc
Whether to use React Server Components.
tsx
Whether to use TypeScript for components.
tailwind
Configuration for Tailwind CSS.
Option | Type | Description |
---|---|---|
config | string | Path to the tailwind config file |
css | string | Path to the CSS file |
baseColor | string | Base color for your project |
cssVariables | boolean | Whether to use CSS variables |
prefix | string | Prefix to use for utility classes |
aliases
Import aliases for your project. These are used to generate the import statements for the components.
iconLibrary
The icon library to use for components that require icons.
Customization
You can customize the configuration to match your project structure. For example, if you’re using a different folder structure, you can update the aliases
object:
Always restart your development server after making changes to
components.json
.