serbitone-design-system-installer
v0.0.33
Published
๐ **Serbitone Design System Installer** is a CLI tool that helps you quickly set up the Serbitone Design System in your project. You can choose between the **Default Theme** (bundled CSS) or a **Custom Theme** (CSS excluded, fully customizable).
Readme
Serbitone Design System Installer
๐ Serbitone Design System Installer is a CLI tool that helps you quickly set up the Serbitone Design System in your project. You can choose between the Default Theme (bundled CSS) or a Custom Theme (CSS excluded, fully customizable).
Features
- Install Default Theme with bundled CSS in one command.
- Install Custom Theme and copy the
root.cssinto your project for full customization. - Guided CLI to choose your preferred setup.
- Step-by-step console instructions for using the design system in your app.
Installation
1. Add the installer to your project
npm install serbitone-design-system-installer --save-devThe installer can also be run via
npxwithout globally installing:
npx serbitone-design-systemUsage
Run the guided installer:
npx serbitone-design-systemYou will be prompted to choose a theme mode:
? Choose theme mode:
โฏ default
custom2 Ways to Install the Design System
1๏ธโฃ Default Theme (Bundled CSS)
- Automatically installs the prebuilt CSS.
- Quick setup for projects that donโt need theme customization.
Installation command:
npm install serbitone-design-system-defaultImport in your main app file:
import "serbitone-design-system-default/dist/index.css";CLI confirmation example:
โ
Default theme installed with bundled CSS!
๐จ Your Serbitone Design System is ready to use!
๐ Next steps:
1๏ธโฃ Import the bundled CSS in your main app file.
2๏ธโฃ Start using design system components.
3๏ธโฃ Customize theme later if needed.2๏ธโฃ Custom Theme (CSS Excluded)
- Installs the design system without CSS.
- Allows you to customize the theme by editing
root.css.
Installation command:
npm install serbitone-design-system-customCopy CSS into your project:
The installer will ask for the folder where you want to inject the theme:
? Input dir for design system css theme injection: /src/domains/Theme/It will copy:
designSystemRoot.cssImport in your app file:
import "./src/domains/Theme/designSystemRoot.css";CLI confirmation example:
โ
Custom theme installed (CSS excluded)
๐จ Custom root.css copied to /src/domains/Theme/designSystemRoot.css
๐ Next steps:
1๏ธโฃ Import root.css in your main app file.
2๏ธโฃ Start using components with your custom theme.CLI Commands
npx serbitone-design-system Run the guided installer.
npm install serbitone-design-system-installer Install the installer as a dev dependency. |
Docs & References
- GitHub: https://github.com/folkers-club/design-system-installer
- For full component documentation and customization, refer to the design system repo.
Notes
- Default theme is faster to setup and includes CSS automatically.
- Custom theme requires manual import of
root.cssbut allows full design token customization. - Always run the guided installer in the root folder of your project to ensure correct paths.
