clash.verge.preferences.configure_theme
Modify Clash Verge theme preferences including primary, secondary, info, error, warning, success colors and font family. Supports hex colors and reverting to defaults by passing null.
Instructions
v1.1-C: Modify Clash Verge Theme preferences (primary_color, secondary_color, primary_text, secondary_text, info_color, error_color, warning_color, success_color, font_family). Colors must be #RRGGBB or #RRGGBBAA hex strings; pass null for an allowlisted field to restore Verge's unset/default state. font_family rejects URLs, semicolons, braces, and control characters. css_injection and background image paths are NOT opened. Returns a structured Diff in preview mode; call with confirm=true to apply. Requires settings.verge-preferences-write capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Theme preference keys to modify. All color fields must be #RRGGBB or #RRGGBBAA hex strings. | |
| confirm | No | Set to true to apply the changes. Default: false (preview mode). | |
| ownerFingerprint | No | Owner fingerprint from a previous inspect or write call. |