Skip to content

Frontend Development

Documentation for TendSocial's React frontend application.

Overview

The frontend is built with:

  • React 19 with TypeScript
  • Vite for development and builds
  • TailwindCSS for styling
  • React Router for navigation
  • Zustand for state management

Documentation

Theming & Styling

  • UI Theming - Theme system documentation:
    • CSS custom properties for colors
    • Theme switching (light/dark)
    • Component styling patterns

Project Structure

apps/frontend/src/
├── components/       # Reusable UI components
├── pages/            # Route pages
├── lib/              # Utilities and API client
├── hooks/            # Custom React hooks
├── types/            # TypeScript interfaces
└── styles/           # Global CSS

Key Patterns

PatternUsage
API Clientfetch with auth headers from localStorage
Auth StateManaged via React context + localStorage
ThemeCSS custom properties with .dark class toggle
FormsControlled components with Zod validation

Routes

The app uses three navigation tiers:

  • /platform/* - Super Admin platform console
  • /company/* - Company settings and management
  • /user/* - Personal profile and settings

See Also

TendSocial Documentation