Customizing the Starter Theme
This guide explains how to customize the starter theme for your needs.
Renaming the Theme
When you run npx nextspark init, the theme is automatically renamed based on your project name.
Adding New Entities
- Create a new folder in
entities/ - Add the required files:
[entity].config.ts[entity].fields.ts[entity].types.tsmigrations/messages/
Adding New Blocks
- Create a new folder in
blocks/ - Add the required files:
config.tsschema.tsfields.tscomponent.tsxindex.ts
Adding Dashboard Pages
- Create a new folder in
templates/(dashboard)/ - Add
page.tsxand any components - Update
config/dashboard.config.tsto add navigation
Modifying Styles
Edit the CSS files in styles/:
globals.css- Global styles and CSS variablescomponents.css- Component-specific styles
Adding Languages
- Create a new folder in
messages/[locale]/ - Copy files from
messages/en/ - Translate all strings
- Update
config/app.config.tsto include the new locale