LogoTanStarter Docs
LogoTanStarter Docs
HomepageIntroductionCodebaseGetting StartedEnvironments
Configuration
Deployment

Integrations

CloudflareDatabaseAuthenticationEmailNewsletterStoragePaymentNotificationsAnalyticsChatboxAffiliates

Customization

MetadataPagesLanding PageBlogComponentsUser ManagementAPI Key Management

Codebase

Project StructureFormatting & LintingEditor SetupUpdating the Codebase
X (Twitter)

Configuration

Learn how to configure your TanStarter website

This guide provides a detailed reference for configuring your TanStarter website.

Configuration Structure

The configuration is split into several files in the src/config directory, each responsible for a specific aspect of the website.

website.ts
navbar-config.ts
footer-config.ts
sidebar-config.ts
avatar-config.ts
social-config.ts

Configuration Files

The configuration files are used to define the structure and content of the website.

Website Configuration

Core settings for the website

Navbar Configuration

Configure the navigation menu in the header

Footer Configuration

Set up links and sections in the website footer

Sidebar Configuration

Customize the dashboard sidebar navigation

Avatar Configuration

Configure the user avatar dropdown menu

Social Configuration

Manage social media links and sharing options

Shared Data Types

The configuration uses consistent data types across different menus:

MenuItemConfig

Basic menu item with the following properties:

PropertyTypeDescription
titlestringDisplay text for the menu item
descriptionstring?Optional description for dropdown items
iconTablerIcon?Optional icon component from Tabler Icons
hrefstring?Link URL destination
externalboolean?Whether the link opens in a new tab
authorizeOnlystring[]?User roles that can see this item
itemsMenuItemConfig[]?Submenu items for dropdowns

Best Practices

  1. Use consistent icons from Tabler Icons
  2. For role-based items, always use the authorizeOnly property to limit visibility
  3. Use the Routes object (in src/lib/routes.ts) for defining URLs to ensure consistency

Next Steps

Now that you understand the configuration structure, explore these related topics:

Website Configuration

Core settings for the website

Navbar Configuration

Configure the navigation menu in the header

Footer Configuration

Configure the links in the website footer

Sidebar Configuration

Configure the navigation menu for dashboard

Table of Contents

Configuration Structure
Configuration Files
Shared Data Types
MenuItemConfig
Best Practices
Next Steps