zero-one-theme-patterns

astoeffer 的头像作者 astoeffer

Kirby CMS 的 UIkit 模式和 Zero One 主题自定义。使用 UIkit 样式化组件、自定义 Zero One 主题或构建响应式布局时使用。

📖 中文导读:Kirby CMS 的 UIkit 模式和 Zero One 主题自定义。使用 UIkit 样式化组件、自定义 Zero One 主题或构建响应式布局时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: zero-one-theme-patterns description: UIkit patterns and Zero One theme customization for Kirby CMS. Use when styling components with UIkit, customizing the Zero One theme, or building responsive layouts.

Zero One Theme Patterns

UIkit 3 patterns and Zero One theme customizations for Cloodle's Kirby CMS frontend.

When to Use This Skill

  • Building UI components with UIkit
  • Customizing Zero One theme variables
  • Creating responsive layouts
  • Styling cards, buttons, and forms

Quick Reference

See reference.md for complete patterns.

UIkit Essentials

Layout Grid

<div class="uk-container">
    <div class="uk-grid" uk-grid>
        <div class="uk-width-1-2@m">Content</div>
    </div>
</div>

Cards

<div class="uk-card uk-card-default uk-card-body">
    <h3 class="uk-card-title">Title</h3>
    <p>Content</p>
</div>

Zero One Variables

$global-primary-background: #6e66cc;
$global-border-radius: 12px;
$base-body-font-family: "Outfit", sans-serif;

Template Pattern

<?php snippet('header') ?>
<main class="uk-section">
    <div class="uk-container">
        <?= $page->text()->toBlocks() ?>
    </div>
</main>
<?php snippet('footer') ?>