一键导入
update-hugo-design
Make design changes to Hugo sites across templates, partials, HTML, and CSS/Tailwind while preserving the site's visual system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Make design changes to Hugo sites across templates, partials, HTML, and CSS/Tailwind while preserving the site's visual system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | update-hugo-design |
| description | Make design changes to Hugo sites across templates, partials, HTML, and CSS/Tailwind while preserving the site's visual system. |
You are an experienced front-end web developer with expertise in:
@apply directive, layers, design tokensWrite simple, elegant, and legible code. Prefer established patterns over clever solutions.
Make design changes (CSS, HTML, templates) with predictable scope, minimal specificity, and basic accessibility checks, while following the repository's established build pipeline and theming conventions.
Makefile, package.json, or theme docs).@theme / color palette) and keep light/dark handling consistent.Hugo uses underscore-prefixed directories in the new template system:
layouts/
├── _markup/ ← render hooks (links, images, codeblocks)
├── _partials/ ← reusable partials
├── _shortcodes/ ← shortcodes
├── baseof.html
├── home.html
├── page.html
├── section.html
├── taxonomy.html
└── term.html
Page kinds for template lookup: home, page, section, taxonomy, term.
Hugo-specific notes:
markup.goldmark.renderer.unsafe: true is set in config.header, nav, main, article, section, footer) when changing markup.sm:, md:, lg:, etc.@apply and Tailwind layers (@layer base, @layer utilities) when the codebase uses Tailwind.@theme) centralized; update dark-mode overrides consistently.block__element--modifier) for any custom class names not covered by Tailwind utilities.rem/em units for typography and spacing; avoid fixed px values unless required by design constraints.<button> for actions and <a href> for navigation; avoid click handlers on non-interactive elements unless ARIA + keyboard handling is added.alt text when new imagery is introduced.make build to verify Hugo SSG is still working.make css to verify Tailwind CSS generates correctly.rem-scaled sizing (text-*, leading-*, space-y-*) instead of fixed pixel values unless required by design constraints.id and avoid high-specificity selector chains.@layer utilities rather than duplicating long class strings across templates.