godot-ui-theming
БесплатноЗапускает вложенные скриптыНе проверенExpert blueprint for UI themes using Theme resources, StyleBoxes, custom fonts, and theme overrides for consistent visual styling. Covers…
от thedivergentai★ 1 019 звёзд на GitHubОб этом скилле
UI Theming
Theme resources, StyleBox styling, font management, and override system define consistent UI visual identity.
Available Scripts
global_theme_manager.gd
Expert theme manager with dynamic switching, theme variants, and fallback handling.
ui_scale_manager.gd
Runtime theme switching and DPI/Resolution scale management.
theme_swapper.gd
Dynamic Dark/Light mode implementation using cascading theme root propagation.
danger_button_assignment.gd
Expert use of theme_type_variation for semantic UI styling without scene duplication.
dynamic_stylebox_color.gd
Safe runtime StyleBox modification. Demonstrates the critical duplicate() pattern for isolated overrides.
procedural_theme_safe.gd
Reliable theming for generated UI elements using NOTIFICATION_THEME_CHANGED.
custom_chart_drawing.gd
Pattern for reading active Theme properties (colors, fonts) in custom _draw() logic.
theme_isolation.gd
Ensuring HUD consistency by isolating nodes from parent themes and referencing Project Defaults.
pulsating_ui_theme.gd
Animating UI styles via Tweens. Targets StyleBox properties directly after duplication.
crisp_ui_scaler.gd
High-quality resolution-independent scaling using content_scale_factor to maintain font crispness.
memory_safe_custom_drawing.gd
Fixing the "disappearing stylebox" bug by caching resources at the class level for the RenderingServer.
rtl_theme_mirroring.gd
Bi-directional (RTL/LTR) UI support. Swaps theme variants dynamically based on layout direction.
focus_prompt_icon_swapper.gd
Controller/keyboard prompt icon bank swap + focus highlight panel. MANDATORY for accessibility prompt chrome.
NEVER Do in UI Theming
- NEVER create StyleBox in
_ready()for many nodes — InstantiatingStyleBoxFlat.new()100 times creates 100 unique objects. Use a Theme resource for shared heritage. - NEVER forget theme inheritance — Parent themes are ignored if a child has its own theme. Apply themes at the root and use
theme_type_variationfor specific overrides. - NEVER hardcode colors in StyleBox — Use
theme.get_color()to maintain a single source of truth for your palette. - NEVER use
add_theme_overridefor global styles — This is brittle. Define styles in a Theme resource for automatic propagation across the project. - NEVER modify theme resources during
_draw()OR_process()— Frequent layout recalculations will severely degrade performance. - NEVER assign
StyleBoxEmptyto focus styles without a fallback — This invisibly breaks controller/keyboard navigation [1]. Always provide a visible alternative (e.g. scale change). - NEVER use standard
set()for theme properties — Callingnode.set("font_color", red)fails. You MUST use the dedicatedadd_theme_color_override()API [3]. - NEVER use
expand_margin_*to increase clickable area — It only expands the VISUAL bounds. Usecontent_margin_*on the StyleBox or adjust the Control's size to ensure input works [5]. - NEVER define StyleBoxes as local variables inside
_draw()— They will be garbage collected before the RenderingServer can finish drawing them [7]. Store at class level. - NEVER duplicate scenes/themes just to change one color — Use
theme_type_variationto create lightweight derived styles (e.g. "DangerButton") within the same Theme [8]. - NEVER skip
corner_radius_allon StyleBoxFlat — shorthand for uniform rounding; prefer it over four separate radius fields when all corners match. - NEVER confuse Theme items with Control overrides —
add_theme_*_overridebeats Theme resource items on that node only; a child Control with its ownthemestill blocks parent cascade. Clear withremove_theme_*_overridewhen swapping roots — do not leave stale overrides fighting the new Theme.
Decision Tree — Theme Ownership
| Goal | Choose | Notes / script |
|---|---|---|
| App-wide look | Project Settings → GUI → Theme | Author in Theme editor — no per-node StyleBox tutorials here |
| One Control differs | add_theme_*_override on that node |
Local only; never for global styles |
| Button/panel subtype | theme_type_variation |
See danger_button_assignment.gd |
| Runtime color tweak without mutating shared Theme | stylebox.duplicate() then override |
See dynamic_stylebox_color.gd |
Fonts & StyleBoxes: edit via Theme editor / Project Theme. Runtime helpers: [global_th
Установить godot-ui-theming в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл godot-ui-theming?
Expert blueprint for UI themes using Theme resources, StyleBoxes, custom fonts, and theme overrides for consistent visual styling. Covers StyleBoxFlat/Texture, theme inheritance, dynamic theme switching, and font variations. Use when implementing consistent UI styling OR supporting multiple themes. Keywords Theme, StyleBox, StyleBoxFlat, add_theme_override, font, theme inheritance, dark mode.
Как установить скилл godot-ui-theming?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-ui-theming запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic