Installation
Aeonkit is a UI kit library built with a variety of technologies such Tailwind CSS, React and Astro. All modules are written in Typescript to ensure type safety. It is designed to be used across any Tailwind/React project to speed up development time. It is built with a focus on accessibility, performance and developer experience.
Requirements
Packages
Aeonkit is composed of multiple packages that can be installed individually. The main package is @aeonkit/react
which contains all the core components.
Package | Description | NPM |
---|---|---|
@aeonkit/react | Baseline components built with React, Tailwind and Typescript | |
@aeonkit/core | A set of resuable components written in React | |
@aeonkit/astro | A set of resuable components written in Astro | |
@aeonkit/helpers | Helper functions used in Aeonkit |
Installation
Aeonkit and all its packages can be installed using the following command:
TailwindCSS
Assuming you have installed Tailwind CSS and setup the configuration file, you can import the Tailwind config from Aeonkit by add the following the preset
property in your tailwind.config.js file:
Aeonkit Preset
Content Paths
You will also need to tell Tailwind to use the Aeonkit styles by adding the following to the content
property in your tailwind.config.js file:
Brand Colors
Aeonkit accepts a primary
and secondary
color to the tailwind theme for certain components. You will need to add these colors to the tailwind config file if you wish to use your own brand colors, otherwise the default colors will be used.
CSS Overides
Aeonkit uses Tailwind CSS for styling. You can use the utility classes provided by Tailwind to style your components. If you need to add custom styles, you can use the className
prop to add your own classes. Most of the components accept a className
prop to add custom styles.
Override the component styles as such:
That’s it 🥳🎉! You’re now ready to use Aeonkit in your project. Enjoy!