Installation Guide
Follow these steps to set up and start using the theme.
Prerequisites
Before you begin, ensure your system meets the following requirements.
Install Node.js
Node.js lets you run the theme on your computer. The version you need depends on your edition:
| Edition | Node.js version |
|---|---|
| Astro | 22.12.0 or later |
| Tina | 22 (22.12.0 or later) or 24. Tina’s command line tool supports only those two versions |
| Sanity | 22.12.0 or later |
Follow these steps to install Node.js on Windows:
- Download the latest suitable LTS/current version of Node.js from the official website: Node.js Downloads
- Run the installer after it’s downloaded, and follow the on-screen instructions.
- After installation, open the Command Prompt and verify the installation:
node -vYou should see a version number like v22.12.0 or newer.
Here’s how to install Node.js on macOS:
- Make sure Homebrew is installed.
- Open Terminal and run:
brew install node- Verify the installation:
node -vThe terminal should display the installed version of Node.js.
To install Node.js on Linux, follow these steps:
- Open Terminal and update your package list:
sudo apt update- Install Node.js:
sudo apt install nodejs npm- Verify the installation:
node -vIf everything worked correctly, the installed version will be displayed.
💡 Need help? Check out the official Node.js installation guide.
Setting Up Lumio
Once Node.js is installed, follow these steps to set up Lumio:
Install Dependencies
Unzip the theme, then open a terminal in the theme’s folder, inside themes/. Run:
npm ciThis installs the exact dependency versions from package-lock.json.
Start the Development Server
To start the local development server, run:
npm run devIt generates the settings file from src/config/config.toml, watches config.toml for changes, and starts the site at http://localhost:4321.
- Tina edition: it also starts the editor at
http://localhost:4321/admin/. You need no account. See Tina. - Sanity edition: the site runs with the bundled demo content, with no account. To edit in the Studio, see Sanity.
If another program uses port 4321, the way to change it depends on your edition:
| Edition | How to use another port |
|---|---|
| Astro | npm run dev -- --port 4322 |
| Tina | Set PORT in .env. .env.example lists every port |
| Sanity | Set SITE_PORT in .env. .env.example lists every port |
Create a Production Build
To generate an optimized production build, run:
npm run buildThis generates the settings file, builds the site into the dist/ folder, and removes draft pages from the sitemap.
Preview the Production Build
To preview the built site locally, run:
npm run previewThis lets you verify the production output before deployment.
Check Your Changes
After you change code or content schemas, run:
npm run astro-check🚀 You’re all set. Next, review the project structure so you know where Lumio keeps its content, layouts, and configuration.