{ "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", "schemaVersion": "2.2.0", "package": "theme_editor", "description": "Theme management functions for saving, loading, and applying themes", "functions": [ { "id": "theme_save", "name": "saveTheme", "exported": true, "description": "Save current theme configuration", "category": "theme", "luaScript": "theme.lua" }, { "id": "theme_load", "name": "loadTheme", "exported": true, "description": "Load a saved theme", "category": "theme", "luaScript": "theme.lua" }, { "id": "theme_apply", "name": "applyTheme", "exported": true, "description": "Apply theme to the current session", "category": "theme", "luaScript": "theme.lua" }, { "id": "theme_export", "name": "exportTheme", "exported": true, "description": "Export theme as JSON file", "category": "theme", "luaScript": "theme.lua" }, { "id": "theme_import", "name": "importTheme", "exported": true, "description": "Import theme from JSON file", "category": "theme", "luaScript": "theme.lua" }, { "id": "theme_reset", "name": "resetTheme", "exported": true, "description": "Reset theme to defaults", "category": "theme", "luaScript": "theme.lua" }, { "id": "color_hex_to_rgb", "name": "hexToRgb", "exported": true, "description": "Convert hex color to RGB", "category": "colors", "luaScript": "colors.lua" }, { "id": "color_rgb_to_hex", "name": "rgbToHex", "exported": true, "description": "Convert RGB to hex color", "category": "colors", "luaScript": "colors.lua" }, { "id": "color_lighten", "name": "lightenColor", "exported": true, "description": "Lighten a color by percentage", "category": "colors", "luaScript": "colors.lua" }, { "id": "color_darken", "name": "darkenColor", "exported": true, "description": "Darken a color by percentage", "category": "colors", "luaScript": "colors.lua" }, { "id": "color_contrast", "name": "getContrastColor", "exported": true, "description": "Get contrasting text color (black or white)", "category": "colors", "luaScript": "colors.lua" }, { "id": "color_validate", "name": "validateColor", "exported": true, "description": "Validate a color value", "category": "colors", "luaScript": "colors.lua" } ], "exports": { "functions": [ "saveTheme", "loadTheme", "applyTheme", "exportTheme", "importTheme", "resetTheme", "hexToRgb", "rgbToHex", "lightenColor", "darkenColor", "getContrastColor", "validateColor" ] } }