yyps·主题列表
No. 001  /  THEMES
返回首页 →

THEMES · 公开主题

主题列表

Markdown 渲染配色主题。10 款预设(4 基础 + 6 精选)+ custom 自定义,发文 theme 参数取下方 theme_key。数据与后台实时同步。

数据源: /api/publish/themes/public · 机器调用返回 JSON,本页是人类可读视图
加载主题

API 定义

GET https://yyps.net/api/publish/themes/public  公开,无需认证

返回所有公开主题(10 款预设 + custom 自定义)。上方卡片即此接口的实时数据;机器调用(exomind CLI 等)直接取 JSON。

返回字段(data[] 每项)

字段说明
theme_key主题标识,发文 theme 参数取它(预设如 blue / ink-green,或 custom 的 theme_key)
theme_name主题中文名
theme_typesystem(预设)/ custom(后台自建)
description主题描述
is_public是否公开(本接口只返回 true)
theme_config配色配置对象:h1_color / h2_color / h3_color / quote_bg / quote_border / card_bg / card_title_color / strong_color / code_bg / text_color / text_font_size / line_height 等(上方卡片配色预览即取自它)
created_at / updated_at创建 / 更新时间(ISO 8601)

请求示例

curl https://yyps.net/api/publish/themes/public

响应示例(截取)

{
  "success": true,
  "data": [
    {
      "theme_key": "blue",
      "theme_name": "科技蓝",
      "theme_type": "system",
      "description": "科技风格,蓝色主色调",
      "is_public": true,
      "theme_config": {
        "h1_color": "#177dd4",
        "h2_color": "#177dd4",
        "quote_bg": "#f8f9fa",
        "quote_border": "#7cb8e8",
        "strong_color": "#0f5f9e",
        "text_color": "#333",
        "line_height": "1.8"
      },
      "created_at": "2026-06-24T00:01:38Z",
      "updated_at": "2026-06-24T00:01:38Z"
    }
  ]
}

📝 仅 markdown 正文生效——发文 content_format: html 时主题不渲染。完整 theme_config 字段以实际返回为准。