Use this repository as a template to create your own Alchira frameworks and flavors.
- Install prefered flavour of Alchira using your package manager:
npm install {{package-name}}
yarn add {{package-name}}
pnpm add {{package-name}}- Initialize Alchira in your project directory with the installed flavour:
al init {{package-name}}
alchira init {{package-name}}This creates the alchira/* config directory using your chosen flavour.
Use this scaffold template as a starting point for your customized CSS framework. Follow the following steps to update.
Start by cloning this repository to set up your Alchira scaffold project.
The scaffold uses Sass as its CSS compiler, which helps efficiently create and maintain multiple class variations with similar structures. A vanilla JS sketchpad is included for fast previews—you can rewrite it to work with your preferred framework as long as you adhere to the provided API methods and avoid breaking core logic.
Adjust the folder structure to suit your project needs. If you do so, be sure to update the corresponding paths in the package.json configuration.
- Purpose: Houses your custom design libraries (CSS files).
- Reference: See Libraries documentation for naming conventions and management.
- Customization: Use your preferred CSS compiler (Sass used here—replace as needed).
- Purpose: Live preview area for testing components.
- Customization: Freely modify to fit your workflow while preserving API compatibility.
- Configuration: ./alchira/configure.jsonc from working directory is automatically shared with sketchpad-view responses for extended functionality.
- Purpose: Contains foundational stylesheets, design tokens, and core system components.
Important: Do not modify directory structure. Edit only content within files to maintain Alchira compatibility.
Ensure that your package.json file contains correct author and repository details. Also, update the alconfig paths if you change the folder layout:
{
"alconfig": {
"name": "scaffold",
"version": "0.0.0",
"sketchpad": "sketchpad",
"blueprint": "blueprint",
"libraries": "libraries"
}
}This configuration connects directly with the alchira tooling.
Customize the README.md file to reflect your project's specifics. Include:
- Project description and purpose
- Setup instructions and usage notes
- Folder structure explanations and configuration details
- Contribution guidelines (if open source)
- License information
Decide whether to publish your scaffold to npm for public use or keep it private for internal projects.