Skip to main content
Version: 0.1.22

Input plugins

Input plugins extract or generate colour palettes from various sources.

Available plugins

PluginDescriptionUse case
imageExtract from imagesLocal wallpapers, photos
google-genaiAI generationCreate unique themes
openrouterMulti-model AIAlternative AI generation
remote-jsonJSON URL fetchingTheme repositories, Catppuccin
remote-cssCSS parsingCSS variable themes
fileManual specificationCustom colour lists
markdownSaved themesRestore exported themes

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
Use a known themeremote-json or file
Want something uniquegoogle-genai or openrouter
Restore saved thememarkdown
Quick custom coloursfile