mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
bbb1a08ed3
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
57 lines
3.4 KiB
Plaintext
57 lines
3.4 KiB
Plaintext
---
|
|
title: "主题"
|
|
description: "选择文档的外观样式。"
|
|
mode: "frame"
|
|
keywords: ["主题选择", "Mint", "Maple", "自定义外观"]
|
|
---
|
|
|
|
export const ThemeCard = ({ title, value, description, href }) => {
|
|
return (
|
|
<a className="mt-4 gap-10 group cursor-pointer" href={href}>
|
|
<div>
|
|
<img className="mt-0 rounded-2xl group-hover:scale-105 transition-all block dark:hidden" src={`https://mintlify.s3.us-west-1.amazonaws.com/mintlify/images/themes/${value}-light.png`} alt={title} noZoom />
|
|
<img className="mt-0 rounded-2xl group-hover:scale-105 transition-all hidden dark:block" src={`https://mintlify.s3.us-west-1.amazonaws.com/mintlify/images/themes/${value}-dark.png`} alt={title} noZoom />
|
|
</div>
|
|
<div>
|
|
<div className="mt-4 flex space-x-2 items-center">
|
|
<h4 className="text-base font-medium text-gray-900 dark:text-gray-200">{title}</h4>
|
|
<label className="text-sm text-gray-500 dark:text-gray-400">“{value}”</label>
|
|
</div>
|
|
<div class="mt-1 prose-sm prose-gray mb-2 text-gray-500 dark:text-gray-400">{description}</div>
|
|
<div className="flex items-center gap-1 mt-2 text-green-600 group-hover:text-green-800 dark:text-green-500 dark:group-hover:text-green-400">
|
|
<span className="text-sm font-medium">
|
|
查看预览
|
|
</span>
|
|
<svg className="size-3 group-hover:translate-x-0.5 transition-all" width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M5.05566 2.70996L9.91678 7.57107L5.05566 12.4322" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
);
|
|
};
|
|
|
|
<div className="pt-10 pb-24 px-4 px-4 max-w-3xl mx-auto prose prose-gray">
|
|
<label className="eyebrow h-5 text-primary dark:text-primary-light text-sm font-semibold">核心概念</label>
|
|
<h1 className="mt-1 mb-2 text-2xl sm:text-3xl text-gray-900 tracking-tight dark:text-gray-200 font-semibold">主题</h1>
|
|
<label className="text-lg prose prose-gray dark:prose-invert">自定义文档站点的外观<br /><br />在 docs.json 中配置 [theme](/zh/organize/settings#param-theme),并从以下主题中进行选择。</label>
|
|
|
|
<br />
|
|
|
|
<div className="mt-10 grid grid-cols-1 sm:grid-cols-2 gap-8 not-prose">
|
|
<ThemeCard title="Mint" value="mint" description="经典文档主题,布局经过时间检验,导航直观易用。" href="https://mint.mintlify.app" />
|
|
|
|
<ThemeCard title="Maple" value="maple" description="现代、清爽的审美风格,完美适配 AI 与 SaaS 产品。" href="https://maple.mintlify.app" />
|
|
|
|
<ThemeCard title="Palm" value="palm" description="精致的金融科技主题,为企业级文档提供深度自定义能力。" href="https://palm.mintlify.app" />
|
|
|
|
<ThemeCard title="Willow" value="willow" description="回归本质的极简配置,带来无干扰的阅读体验。" href="https://willow.mintlify.app" />
|
|
|
|
<ThemeCard title="Linden" value="linden" description="复古终端氛围与等宽字体,呈现 80 年代的黑客美学。" href="https://linden.mintlify.app" />
|
|
|
|
<ThemeCard title="Almond" value="almond" description="卡片式信息组织结合极简设计,带来直观的导航。" href="https://almond.mintlify.app" />
|
|
|
|
<ThemeCard title="Aspen" value="aspen" description="为复杂导航与自定义组件打造的现代文档主题。" href="https://aspen.mintlify.app" />
|
|
</div>
|
|
</div>
|