Skip to content
/ scaffold Public template

A starter kit to spin your own flavor. Clone, customize, publish—then serve it to the community so they can taste your recipe, optionally.

License

Notifications You must be signed in to change notification settings

alchira/scaffold

Repository files navigation

Scaffold: Template to Spin Your Flavor

Use this repository as a template to create your own Alchira frameworks and flavors.

Navigation

Installation

  1. Install prefered flavour of Alchira using your package manager:
  npm install {{package-name}}
  yarn add {{package-name}}
  pnpm add {{package-name}}
  1. 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.


How to spin your Flavour?

Use this scaffold template as a starting point for your customized CSS framework. Follow the following steps to update.

Setup Steps

1. Clone the Repository

Start by cloning this repository to set up your Alchira scaffold project.

2. Configure for Your Development Setup

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.

3. Customize Template Folders

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.

./library
  • 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).
./sketchpad
  • 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.
./blueprint
  • 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.

4. Update package.json

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. ​

5. Update README.md

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

6. Publish or Keep Private

Decide whether to publish your scaffold to npm for public use or keep it private for internal projects.

About

A starter kit to spin your own flavor. Clone, customize, publish—then serve it to the community so they can taste your recipe, optionally.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project