Skip to main content
Version: 0.3.3

Input plugins

Input plugins extract or generate colour palettes from various sources.

Available plugins

PluginDescriptionSource typeRequires
imageExtract colours from images (files, directories, URLs) with optional ambient lightingimage
fileLoad palette from file or colour overridesfile
markdownLoad theme from tinct markdown theme filefile
remote-jsonFetch colours from remote JSON with JSONPath queriesurlnetwork
remote-cssFetch colours from remote CSS variablesurlnetwork
google-genaiGenerate images with Google Imagen and extract coloursapinetwork; creds: GOOGLE_API_KEY
openrouterGenerate images with OpenRouter.ai models and extract coloursapinetwork; creds: OPENROUTER_API_KEY
palettyFetch curated terminal palettes from paletty.devapinetwork
randomGenerate random colour palettes with configurable seed and colour countgenerated

Usage

Specify input with -i flag:

tinct generate -i image -p ~/wallpaper.jpg -o all
tinct generate -i remote-json --remote-json.url "..." -o all

Common interface

All input plugins:

  1. Accept configuration via flags
  2. Validate inputs before processing
  3. Return a categorised colour palette
  4. Optionally provide theme hints (dark/light)
  5. Optionally provide wallpaper path

Optional features

Theme hinting

Some plugins can suggest a theme type:

PluginDetection method
imageLuminance analysis
google-genaiPrompt inference
remote-jsonMetadata if available
fileBased on background colour

Wallpaper provision

Some plugins provide a wallpaper for output plugins:

PluginWallpaper source
imageThe input image
google-genaiGenerated image
openrouterGenerated image
markdownEmbedded wallpaper

Two template fields are available:

FieldDescription
.WallpaperPathCanonical path (resolved relative paths, cached URLs)
.WallpaperRawPathLiteral user input (original path/URL)

Output plugins like hyprpaper use .WallpaperPath to set the wallpaper automatically.

See Template functions: Context fields for details.

Choosing an input

ScenarioRecommended input
Match your wallpaperimage
Want something uniquegoogle-genai or openrouter
Restore saved thememarkdown
Quick custom coloursfile