This is a Storybook components library that is going to be consumed by other internal projects. It uses Tailwind CSS for styling.
To install the dependencies, run:
npm installTo start the Storybook server, run:
npm run storybookThis will start the Storybook server and open it in your default browser.
To build the component library, run:
npm run buildThis will create a production build of the library in the dist folder.
You can create new components using Plop. To generate a new component, run:
npm run generateFollow the prompts to specify the component name and type (Atoms, Molecules, Organisms). This will create the component files, including the component itself, a Storybook story, and a mock file.
To use the components in your project, import them as needed. For example:
import { Button } from 'storybook-core';
const App = () => (
<Button variant="primary">Click Me</Button>
);The Tailwind CSS configuration is located in the tailwind.config.js file. It extends the default Tailwind CSS configuration with custom colors, font sizes, border radii, and other styles.
If you would like to contribute to this project, please open an issue or submit a pull request.
This project is licensed under the MIT License.