Skip to content

Feature: Branding and UI Customization #323

Closed

Description

@larryro

Summary

Add instance-level branding customization for self-hosted deployments. Allows users to customize logo, colors, favicon, and app name via a Settings UI.

Motivation

Self-hosted users want to white-label the platform with their own branding.

Scope

  • Custom logo (light/dark mode variants)
  • Custom text logo
  • Custom favicon
  • Custom app name/title
  • Primary/accent color customization
  • Settings UI with live preview

Behavior

  • Default: Tale branding is used
  • Users can customize branding through Settings UI
  • If no custom branding is configured, default Tale branding is displayed

Activity

  1. larryro commented on Jan 31, 2026

    @larryro
    ContributorAuthor

    Branding Customization Feature Plan

    Overview

    Add instance-level branding customization for self-hosted deployments. Users can customize logo, colors, favicon, and app name via Settings UI.

    Behavior: If users don't configure custom branding, default Tale branding is used.


    Phase 1: Backend (Convex)

    1.1 Branding Schema

    Create convex/branding/schema.ts:

    export const brandingConfigsTable = defineTable({
      organizationId: v.string(),
    
      // Text branding
      appName: v.optional(v.string()),
    
      // Logo storage IDs
      logoLightId: v.optional(v.id('_storage')),
      logoDarkId: v.optional(v.id('_storage')),
      logoTextLightId: v.optional(v.id('_storage')),
      logoTextDarkId: v.optional(v.id('_storage')),
      faviconId: v.optional(v.id('_storage')),
    
      // Colors (HSL format)
      colors: v.optional(v.object({
        primary: v.optional(v.string()),
        primaryForeground: v.optional(v.string()),
        accent: v.optional(v.string()),
        accentForeground: v.optional(v.string()),
      })),
    
      updatedAt: v.number(),
      updatedBy: v.optional(v.string()),
    }).index('by_organization', ['organizationId']);

    1.2 Convex Functions

    • convex/branding/queries.ts - getBrandingConfig(organizationId)
    • convex/branding/mutations.ts - updateBrandingConfig(...), deleteBrandingAsset(...)

    Files to create:

    • convex/branding/schema.ts
    • convex/branding/queries.ts
    • convex/branding/mutations.ts

    Files to modify:

    • convex/schema.ts - Register branding table

    Phase 2: Frontend Foundation

    2.1 Branding Context Provider

    Create app/components/branding/branding-provider.tsx:

    interface BrandingContextValue {
      appName: string;
      logoLightUrl: string | null;
      logoDarkUrl: string | null;
      logoTextLightUrl: string | null;
      logoTextDarkUrl: string | null;
      faviconUrl: string | null;
      colors: BrandingColors | null;
      isCustomBranding: boolean;
    }
    • Fetch branding config from Convex
    • Inject CSS variables for custom colors
    • Fall back to Tale defaults when not configured

    2.2 Logo Component Updates

    • Modify app/components/ui/logo/tale-logo.tsx - Accept optional custom URL props
    • Modify app/components/ui/logo/tale-logo-text.tsx - Accept optional custom URL props
    • Create app/components/ui/logo/branded-logo.tsx - Wrapper using branding context

    2.3 Dynamic Head Hook

    Create app/hooks/use-dynamic-head.ts:

    • Update document.title with custom app name
    • Update favicon link href dynamically

    Files to create:

    • app/components/branding/branding-provider.tsx
    • app/components/ui/logo/branded-logo.tsx
    • app/hooks/use-dynamic-head.ts

    Files to modify:

    • app/components/ui/logo/tale-logo.tsx
    • app/components/ui/logo/tale-logo-text.tsx

    Phase 3: Settings UI

    3.1 Branding Section in Organization Settings

    Add branding section to existing organization settings page.

    Create app/features/settings/branding/:

    branding/
      components/
        branding-settings-section.tsx   # Main section
        logo-upload-section.tsx         # Logo/favicon uploads with preview
        color-picker-section.tsx        # Color customization
        branding-preview.tsx            # Live preview
      hooks/
        use-update-branding.ts          # Mutation hook
    

    3.2 Color Picker Component

    Create app/components/ui/forms/color-picker.tsx:

    • HSL format input (matches CSS variable system)
    • Visual swatch preview
    • Manual value input
    • Keyboard accessible

    Files to create:

    • app/features/settings/branding/components/branding-settings-section.tsx
    • app/features/settings/branding/components/logo-upload-section.tsx
    • app/features/settings/branding/components/color-picker-section.tsx
    • app/features/settings/branding/components/branding-preview.tsx
    • app/features/settings/branding/hooks/use-update-branding.ts
    • app/components/ui/forms/color-picker.tsx
    • app/components/ui/forms/color-picker.stories.tsx

    Files to modify:

    • app/features/settings/organization/components/organization-settings-client.tsx - Add branding section

    Phase 4: Integration

    4.1 Root Integration

    Modify app/routes/__root.tsx:

    • Add <BrandingProvider> after ThemeProvider

    4.2 Navigation Logo Update

    Modify app/components/ui/navigation/navigation.tsx:

    • Use <BrandedLogo> instead of <TaleLogo>

    Files to modify:

    • app/routes/__root.tsx
    • app/components/ui/navigation/navigation.tsx

    Phase 5: Translations & Accessibility

    5.1 Translations

    Add to messages/en.json:

    {
      "settings": {
        "branding": {
          "title": "Branding",
          "description": "Customize the appearance of your organization",
          "appName": "App name",
          "appNameDescription": "Displayed in browser tab and navigation",
          "logos": "Logos",
          "logoLight": "Logo (light mode)",
          "logoDark": "Logo (dark mode)",
          "logoText": "Text logo",
          "favicon": "Favicon",
          "colors": "Colors",
          "primaryColor": "Primary color",
          "accentColor": "Accent color",
          "preview": "Preview",
          "reset": "Reset to default",
          "resetConfirm": "This will remove all custom branding. Continue?"
        }
      }
    }

    5.2 Accessibility

    • Color picker: keyboard navigation, ARIA labels
    • Image uploads: proper alt text handling
    • Live preview: aria-live region for changes
    • Focus management in modals

    Critical Files Summary

    New Files:

    • convex/branding/schema.ts
    • convex/branding/queries.ts
    • convex/branding/mutations.ts
    • app/components/branding/branding-provider.tsx
    • app/components/ui/logo/branded-logo.tsx
    • app/components/ui/forms/color-picker.tsx
    • app/hooks/use-dynamic-head.ts
    • app/features/settings/branding/ (directory with components and hooks)

    Modified Files:

    • convex/schema.ts
    • app/routes/__root.tsx
    • app/components/ui/logo/tale-logo.tsx
    • app/components/ui/logo/tale-logo-text.tsx
    • app/components/ui/navigation/navigation.tsx
    • app/features/settings/organization/components/organization-settings-client.tsx
    • messages/en.json (and other language files)

    Verification Plan

    1. Settings UI Test:

      • Navigate to Settings > Organization
      • Branding section visible to admin users
      • Upload custom logo (light/dark variants)
      • Upload custom text logo
      • Upload custom favicon
      • Set custom app name
      • Set custom primary/accent colors
      • Verify live preview updates
    2. Integration Test:

      • Browser tab shows custom app name
      • Favicon updates to custom icon
      • Navigation shows custom logo
      • Primary/accent colors applied throughout UI
      • Light/dark mode both use correct logo variants
    3. Reset Test:

      • Click "Reset to default"
      • Confirm dialog appears
      • After reset, default Tale branding restored
    4. Accessibility Test:

      • Keyboard navigation through all controls
      • Screen reader announces changes
      • Color contrast meets WCAG AA
    5. No Config Test:

      • New organization without branding config
      • Default Tale branding displayed correctly
  2. added
    priority: low
    priority: medium
    feat
    and removed
    priority: low
    on Feb 1, 2026
  3. added
    priority: high
    and removed
    priority: medium
    on Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featpriority: highservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions