Quick Start
Before beginning, you will need Node.js version 22.12.0 or higher installed.
The fastest way to get started is by using the create-coralite CLI tool to scaffold a new project template.
npm create coralite@latest
Alternatively, use other package managers:
yarn create coralite
pnpm create coralite
Note: The
create-coraliteCLI is also registered ascca(short for Coralite Create App).
Set the project output directory.
npm create coralite -o my-project
Select styling template for the scaffolded project (Choices: css, scss).
npm create coralite -t scss
Alternatively, after initialising your project, install coralite as a dev dependency:
npm install coralite
To prepare the development environment, we'll add the build command to the "script" property
in our package.json file.
Here is an example of what your package.json file should look like:
For more information about the CLI options check out the CLI reference page.
{
"name": "my-coralite-site",
"scripts": {
"build": "coralite -c src/components -p src/pages -o dist"
},
"dependencies": {
"coralite": "^0.36.3 "
}
}
Next, follow the getting started tutorial to discover how build your first web page with Coralite!