Npm commands (scripts)
Silicon uses Vite as the build tool together with Tailwind CSS 4. npm scripts are used to install dependencies, start the development server, and build production-ready assets.
| Command | Description |
|---|---|
| npm install |
Installs all required project dependencies listed in
package.json.
Run this command once after downloading the template.
|
| npm run dev | Starts the Vite development server with hot module replacement (HMR). Tailwind CSS is compiled automatically and changes are reflected instantly. This is the primary command for development. |
| npm run build |
Builds optimized production assets into the
dist directory.
CSS and JavaScript are minified and optimized for deployment.
|
| npm run preview |
Starts a local preview server to test the production build
generated by npm run build.
|
💡 Note: Theme customization is handled via
css/_config.css
using Tailwind CSS 4’s
@theme
directive. No Sass or Gulp workflow is used.