25 lines
2.6 KiB
HTML
25 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN" data-end="react" data-slug="themeswitcher">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>themeswitcher · React 预渲染</title>
|
|
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
|
|
<link rel="stylesheet" href="../../frameworks/ThemeSwitcher.css">
|
|
<style>
|
|
/* 演示页的 body 口径(见 frameworks/*.html 的 <style>):组件 CSS 不写 body 样式,
|
|
而 .btn 这类 inline-flex 元素的高度依赖行高与留白,缺了就会塌成 0 高。 */
|
|
body { margin: 0; padding: 24px; background: var(--kole-color-page-bg); color: var(--kole-color-text-body);
|
|
font-family: var(--kole-font-family); font-size: 14px; line-height: 22px; }
|
|
#kole-end-preview { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
|
|
html.kole-dark body { background: var(--kole-color-page-bg); color: var(--kole-color-text-body); }
|
|
</style>
|
|
|
|
</head>
|
|
<body class="kole-end-preview-body">
|
|
<!-- 该端实现(frameworks/ThemeSwitcher.jsx)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
|
|
<div id="kole-end-preview" data-end="react" data-slug="themeswitcher">
|
|
<div class="kole-themesw" role="radiogroup" aria-label="主题模式"><div class="kole-themesw-opt is-active" role="radio" aria-checked="true" tabindex="0"><span class="kole-themesw-dot light"></span>日间</div><div class="kole-themesw-opt" role="radio" aria-checked="false" tabindex="0"><span class="kole-themesw-dot dark"></span>夜间</div><div class="kole-themesw-opt" role="radio" aria-checked="false" tabindex="0"><span class="kole-themesw-dot auto"></span>自动</div><div class="kole-themesw-colors"><span class="kole-themesw-color is-active" style="background:#2F54EB" role="radio" aria-label="品牌色 #2F54EB" aria-checked="true" tabindex="0"></span><span class="kole-themesw-color" style="background:#1677FF" role="radio" aria-label="品牌色 #1677FF" aria-checked="false" tabindex="0"></span><span class="kole-themesw-color" style="background:#722ED1" role="radio" aria-label="品牌色 #722ED1" aria-checked="false" tabindex="0"></span><span class="kole-themesw-color" style="background:#13C2C2" role="radio" aria-label="品牌色 #13C2C2" aria-checked="false" tabindex="0"></span><span class="kole-themesw-color" style="background:#FA541C" role="radio" aria-label="品牌色 #FA541C" aria-checked="false" tabindex="0"></span><span class="kole-themesw-color" style="background:#EB2F96" role="radio" aria-label="品牌色 #EB2F96" aria-checked="false" tabindex="0"></span></div><div class="kole-themesw-label">品牌色:#2F54EB(应用于 Kole 品牌令牌实时预览)</div></div>
|
|
</div>
|
|
</body>
|
|
</html>
|