Theme Design 标志

Theme Design

社区
ahmed-lakosha
theme-design

Figma 到 Odoo 的设计工作流和完整页面模板参考。涵盖 Figma 提取流程(颜色、字体、布局)、Chrome MCP 自动化、设计与模板匹配方法、页眉/页脚选择流程图,以及动态页面参考(11 种页眉、9 种页脚、商店、博客和购物车模板,含 XML ID)。<example> Context: 用户想实现 Figma 设计 user: "将这个 Figma 设计实现为 Odoo 17 主题" assistant: "我会分析 Figma 设计,并将其与 Odoo 模板匹配。" <commentary>从设计到代码的工作流。</commentary> </example> <example> Context: 用户询问该使用哪个页眉模板 user: "哪个 Odoo 页眉模板适合汉堡菜单设计?" assistant: "使用 template_header_hamburger。" <commentary>模板匹配咨询。</commentary> </example> <example> Context: 用户想了解页脚选项 user: "Odoo 提供哪些页脚模板?" assistant: "共有 9 种页脚模板,从默认样式到滑出式样式。" <commentary>页脚模板参考。</commentary> </example>

Add to TypingMind

概览

发布者ahmed-lakosha
代码仓库odoo-plugins
技能名称theme-design
星标数
74
复刻数
33
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 ahmed-lakosha 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Theme Design AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/ahmed-lakosha/odoo-plugins/tree/master/odoo-frontend-plugin/skills/theme-design
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ahmed-lakosha/odoo-plugins.git /tmp/odoo-plugins
mkdir -p .claude/skills
cp -r /tmp/odoo-plugins/odoo-frontend-plugin/skills/theme-design .claude/skills/theme-design
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Theme Design,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Theme Design。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Theme Design 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Figma-to-Odoo Design Workflow

Design Workflow Methodology

1. ANALYZE DESIGN → Extract colors, fonts, layout, components
2. COMPARE TO ODOO TEMPLATES → Match header, footer, page layouts
3. CHOOSE CLOSEST TEMPLATE → Select best matching built-in template
4. CONFIGURE VIA VARIABLES → Set $o-website-values-palettes
5. ENHANCE WITH CUSTOM CSS → Only what templates can't provide
6. CREATE CUSTOM SNIPPETS → Components not available in Odoo

Figma Extraction Pipeline

Using Figma MCP

1. Use Figma MCP with prompt:
   "Convert this Figma design to HTML for Odoo <version> website theme.
   Use Bootstrap v5.1.3 classes (not Tailwind).
   Apply proper Odoo theme structure with sections and containers."

2. Extract Color Palette:
   "Extract the color palette and map to o-color-1 through o-color-5."

3. Extract Typography:
   "Convert text styling to Bootstrap typography classes."

Using Chrome MCP (Browser Automation)

  1. Navigate to Figma URL → Open Pages (not components!)
  2. Click on page elements to extract:
    • Header/navbar → primary color
    • CTA buttons → secondary color
    • Section backgrounds → o-color-3
    • Body text → text color, font family
    • Headings (H1-H6) → heading fonts, sizes

Pages to check: Homepage, About/Services, Contact, Footer area

Color Mapping

Design ElementMaps To
Primary brand color (buttons, links)o-color-1
Accent/CTA coloro-color-2
Light section backgroundso-color-3
Main content backgroundo-color-4
Dark text / headingso-color-5

Header Templates (11 Primary + Variants)

XML IDNameBest For
website.template_header_defaultDefaultMost websites
website.template_header_hamburgerHamburgerMinimal designs
website.template_header_stretchStretchWide layouts
website.template_header_verticalVerticalApp-like sites
website.template_header_searchSearchE-commerce, directories
website.template_header_sales_oneSales 1Online stores
website.template_header_sales_twoSales 2Large catalogs
website.template_header_sales_threeSales 3Product-focused
website.template_header_sales_fourSales 4Fashion, retail
website.template_header_sidebarSidebarDashboard sites
website.template_header_boxedBoxedModern brands

Header Alignment Variants

  • ..._align_center / ..._align_right — Desktop alignment
  • ..._mobile_align_center / ..._mobile_align_right — Mobile alignment

Header Visibility (mutually exclusive)

XML IDEffect
website.header_visibility_standardScrolls with page
website.header_visibility_fixedSticks to top
website.header_visibility_disappearsHides on scroll down
website.header_visibility_fade_outFades out

Header Components (combinable)

XML IDComponentDefault
website.option_header_brand_logoLogo imageActive
website.option_header_brand_nameText nameInactive
website.header_call_to_actionCTA buttonActive
website.header_search_boxSearch barActive
website.header_social_linksSocial iconsInactive

Header Decision Flowchart

Is navigation hidden? → YES → template_header_hamburger
                       → NO → Vertical sidebar? → YES → Full page? → sidebar / vertical
                                                 → NO → E-commerce? → YES → Categories? → sales_two / sales_one
                                                                    → NO → Search prominent? → template_header_search
                                                                                             → Boxed? → boxed / stretch / default

Footer Templates (9 Options)

XML IDNameBest For
website.footer_customDefaultGeneral use
website.template_footer_descriptiveDescriptiveCorporate sites
website.template_footer_centeredCenteredLanding pages
website.template_footer_linksLinksLarge sites
website.template_footer_minimalistMinimalistClean designs
website.template_footer_contactContactService businesses
website.template_footer_call_to_actionCTAMarketing sites
website.template_footer_headlineHeadlineBrand statements
website.template_footer_slideoutSlideoutModern/trendy

Footer Decision Flowchart

Minimal (just copyright)? → YES → template_footer_minimalist
                          → NO → Center-aligned? → template_footer_centered
                                 Newsletter/CTA? → template_footer_call_to_action
                                 Contact info? → template_footer_contact
                                 Primarily links? → template_footer_links
                                 Detailed description? → template_footer_descriptive
                                 Default → footer_custom

Shop Page Templates (website_sale)

Layout Options

XML IDFeature
website_sale.products_design_cardCard layout
website_sale.products_design_gridGrid layout
website_sale.products_thumb_4_34:3 image ratio
website_sale.products_thumb_coverImage fills container (default)

Categories & Filters

XML IDFeatureDefault
website_sale.products_categoriesLeft sidebarInactive
website_sale.products_categories_topTop navActive
website_sale.products_attributesAttribute filtersActive
website_sale.filter_products_pricePrice filterInactive
website_sale.searchSearch boxActive
website_sale.sortSort dropdownActive

Product Detail Options

XML IDFeatureDefault
website_sale.product_commentReviewsInactive
website_sale.product_buy_nowBuy Now buttonInactive
website_sale.alternative_productsAlternativesActive

Blog Templates (website_blog)

Blog Listing

XML IDFeatureDefault
website_blog.opt_blog_cover_postFeatured bannerActive
website_blog.opt_blog_list_viewList viewInactive
website_blog.opt_blog_cards_designCard componentsInactive
website_blog.opt_blog_sidebar_showSidebarInactive

Blog Post Detail

XML IDFeatureDefault
website_blog.opt_blog_post_breadcrumbBreadcrumbsActive
website_blog.opt_blog_post_read_nextRead nextActive
website_blog.opt_blog_post_commentCommentsInactive

Cart & Checkout

XML IDFeatureDefault
website_sale.suggested_products_listSuggested productsActive
website_sale.reduction_codePromo codeActive
website_sale.accept_terms_and_conditionsT&C checkboxInactive

Generating Theme Configuration from Design

After analyzing the design and matching templates:

scss
// primary_variables.scss — Generated from Design Analysis
$o-theme-font-configs: (
    'Poppins': (
        'family': ('Poppins', sans-serif),
        'url': 'Poppins:300,400,500,600,700',
    ),
);

$o-website-values-palettes: (
    (
        'color-palettes-name': 'default-1',
        'font': 'Poppins',
        'headings-font': 'Poppins',
        'header-template': 'hamburger',
        'header-links-style': 'pills',
        'logo-height': 48px,
        'footer-template': 'contact',
        'footer-scrolltop': true,
        'btn-padding-y': 0.75rem,
        'btn-border-radius': 8px,
        'link-underline': 'never',
    )
);

Then create theme.utils to activate the matched templates programmatically:

python
def _theme_yourtheme_post_copy(self, mod):
    self.enable_view('website.template_header_hamburger')
    self.enable_view('website.template_footer_contact')
    self.enable_view('website.option_header_brand_logo')
    self.disable_view('website.header_visibility_standard')
    self.enable_view('website.header_visibility_fixed')

常见问题

Theme Design AI 技能有什么作用?

Figma 到 Odoo 的设计工作流和完整页面模板参考。涵盖 Figma 提取流程(颜色、字体、布局)、Chrome MCP 自动化、设计与模板匹配方法、页眉/页脚选择流程图,以及动态页面参考(11 种页眉、9 种页脚、商店、博客和购物车模板,含 XML ID)。<example> Context: 用户想实现 Figma 设计 user: "将这个 Figma 设计实现为 Odoo 17 主题" assistant: "我会分析 Figma 设计,并将其与 Odoo 模板匹配。" <commentary>从设计到代码的工作流。</commentary> </example> <example> Context: 用户询问该使用哪个页眉模板 user: "哪个 Odoo 页眉模板适合汉堡菜单设计?" assistant: "使用 template_header_hamburger。" <commentary>模板匹配咨询。</commentary> </example> <example> Context: 用户想了解页脚选项 user: "Odoo 提供哪些页脚模板?" assistant: "共有 9 种页脚模板,从默认样式到滑出式样式。" <commentary>页脚模板参考。</commentary> </example>

为什么在 TypingMind 中使用 Theme Design?

因为您只需安装一次,就能搭配任何模型使用。Theme Design 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Theme Design?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/ahmed-lakosha/odoo-plugins/tree/master/odoo-frontend-plugin/skills/theme-design。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Theme Design?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Theme Design 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Theme Design 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Theme Design AI 技能免费吗?

是的。ahmed-lakosha 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇