Tentarc LogoDocs

Themes

Theme Configuration Guide

This guide explains how to customize the visual theme of Tentarc.

Overview

Tentarc uses a 6-color theme system. You can override specific colors or install preset themes with complete visual styles.

  • Theme overrides: ~/.tentarc/theme.json - Override specific colors
  • Preset themes: ~/.tentarc/themes/{name}.json - Complete theme packages

Both are optional - the app has sensible built-in defaults.

6-Color System

ColorPurposeUsage
backgroundSurface/page backgroundLight/dark surface color
foregroundText and iconsPrimary text color
accentBrand color, Execute modeHighlights, active states, purple UI elements
infoWarnings, Ask modeAmber indicators, attention states
successConnected statusGreen checkmarks, success states
destructiveErrors, delete actionsRed alerts, failed states

Color Formats

Any valid CSS color format is supported:

  • Hex: #8b5cf6, #8b5cf6cc (with alpha)
  • RGB: rgb(139, 92, 246), rgba(139, 92, 246, 0.8)
  • HSL: hsl(262, 83%, 58%)
  • OKLCH: oklch(0.58 0.22 293) (recommended)
  • Named: purple, rebeccapurple

Recommendation: Use OKLCH for perceptually uniform colors that look consistent across light/dark modes.

Theme Override File

Create ~/.tentarc/theme.json to override specific colors:

{
  "accent": "oklch(0.58 0.22 293)",
  "dark": {
    "accent": "oklch(0.65 0.22 293)"
  }
}

All fields are optional. Only specify colors you want to override.

Dark Mode

The dark object provides optional overrides for dark mode. When the user's system is in dark mode:

  1. Base colors (top-level) are used as defaults
  2. Any colors defined in dark override the base colors

This allows partial dark mode customization - only override what needs to differ.

Preset Themes

Preset themes are complete theme packages stored at ~/.tentarc/themes/. Each preset is a JSON file with theme colors and metadata.

Preset Theme Schema

{
  "name": "Dracula",
  "description": "A dark theme with vibrant colors",
  "author": "Zeno Rocha",
  "license": "MIT",
  "source": "https://draculatheme.com",
  "supportedModes": ["dark"],

  "background": "oklch(0.22 0.02 280)",
  "foreground": "oklch(0.95 0.01 270)",
  "accent": "oklch(0.70 0.20 320)",
  "info": "oklch(0.78 0.14 70)",
  "success": "oklch(0.72 0.18 145)",
  "destructive": "oklch(0.65 0.22 28)",

  "shikiTheme": {
    "light": "github-light",
    "dark": "dracula"
  }
}

Preset Metadata Fields

FieldDescription
nameDisplay name for the theme
descriptionShort description
authorTheme creator
licenseLicense type (MIT, etc.)
sourceURL to original theme
supportedModesArray of "light", "dark", or both
shikiThemeSyntax highlighting theme (light/dark variants)

Installing Preset Themes

  1. Download or create a theme JSON file
  2. Save it to ~/.tentarc/themes/{name}.json
  3. Select the theme in Settings → Appearance

Scenic Mode

Scenic mode displays a full-window background image with glass-style panels. This creates a visually immersive experience.

Enabling Scenic Mode

{
  "mode": "scenic",
  "backgroundImage": "mountains.jpg",

  "background": "oklch(0.15 0.02 270 / 0.8)",
  "paper": "oklch(0.18 0.02 270 / 0.6)",
  "navigator": "oklch(0.12 0.02 270 / 0.7)",
  "popoverSolid": "oklch(0.18 0.02 270)"
}

Scenic Mode Properties

PropertyDescription
modeSet to "scenic" (default is "solid")
backgroundImageImage filename (relative to theme file) or URL

Surface Colors for Glass Panels

Scenic mode benefits from semi-transparent surface colors:

ColorPurpose
paperAI messages, cards, elevated content
navigatorLeft sidebar background
inputInput field background
popoverDropdowns, modals, context menus
popoverSolidGuaranteed 100% opaque popover background

Note: Scenic themes automatically force dark mode for better contrast with background images.

Default Theme

The built-in default theme uses OKLCH colors optimized for accessibility:

Light Mode:

  • Background: oklch(0.98 0.003 265) - Very light gray with slight purple tint
  • Foreground: oklch(0.185 0.01 270) - Near-black for high contrast
  • Accent: oklch(0.58 0.22 293) - Vibrant purple
  • Info: oklch(0.75 0.16 70) - Warm amber
  • Success: oklch(0.55 0.17 145) - Clear green
  • Destructive: oklch(0.58 0.24 28) - Alert red

Dark Mode:

  • Background: oklch(0.145 0.015 270) - Deep dark with purple tint
  • Foreground: oklch(0.95 0.01 270) - Near-white
  • Accent/Info/Success/Destructive: Slightly brighter versions for visibility

Examples

Minimal: Just change accent color

{
  "accent": "#3b82f6"
}

Custom brand colors

{
  "accent": "oklch(0.55 0.25 250)",
  "info": "oklch(0.70 0.15 200)",
  "dark": {
    "accent": "oklch(0.65 0.25 250)",
    "info": "oklch(0.75 0.12 200)"
  }
}

High contrast theme

{
  "background": "#ffffff",
  "foreground": "#000000",
  "dark": {
    "background": "#000000",
    "foreground": "#ffffff"
  }
}

Live Updates

Theme changes are applied immediately - no restart needed. Edit theme.json and the UI updates automatically.

Creating a Theme

  1. Create ~/.tentarc/theme.json for overrides or ~/.tentarc/themes/{name}.json for a preset
  2. Add only the colors you want to customize
  3. Optionally add dark overrides for dark mode

Tips:

  • Start with just accent to quickly personalize
  • Use OKLCH for predictable color behavior
  • Test in both light and dark modes
  • Keep contrast ratios accessible (foreground vs background)

Troubleshooting

Theme not applying:

  • Verify JSON syntax is valid
  • Check file is in correct location (~/.tentarc/theme.json for overrides, ~/.tentarc/themes/ for presets)
  • Ensure color values are valid CSS colors

Colors look wrong in dark mode:

  • Add explicit dark overrides
  • OKLCH colors may need higher lightness values for dark mode
  • Check if preset has supportedModes that excludes your current mode

Background image not showing:

  • Ensure mode is set to "scenic"
  • Check image path is relative to theme file or a valid URL
  • Verify image file exists and is readable

OKLCH Color Reference

OKLCH format: oklch(lightness chroma hue)

  • Lightness: 0-1 (0 = black, 1 = white)
  • Chroma: 0-0.4 (0 = gray, higher = more saturated)
  • Hue: 0-360 (color wheel angle)

Common hues:

  • Red: ~25
  • Orange: ~70
  • Yellow: ~100
  • Green: ~145
  • Cyan: ~195
  • Blue: ~250
  • Purple: ~293
  • Pink: ~330