PageSourceSearch

https://dev.umodoc.com/_next/static/chunks/pages/cn/docs/editor/options/theme-c531cce114fb192a.js

js umodoc.com collected 2026-09-25 22:37:47 UTC 3,462 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2381],{76050:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cn/docs/editor/options/theme",function(){return i(18331)}])},18331:function(e,n,i){"use strict";i.r(n),i.d(n,{useTOC:function(){return c}});var s=i(85893),t=i(37812),d=i(90885),r=i(79299),h=i(45192);function c(e){return[{value:"默认配置",id:"默认配置",depth:2},{value:"配置项说明",id:"配置项说明",depth:2},{value:"theme",id:"theme",depth:3}]}n.default=(0,t.c)(function(e){let{toc:n=c(e)}=e,i={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",span:"span",strong:"strong",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.h1,{children:"主题配置"}),"\n",(0,s.jsxs)(i.p,{children:["用于配置主题信息,支持浅色主题、暗色主题和跟随系统设置。更多主题配置请参考",(0,s.jsx)(i.a,{href:"../themes",children:"主题定制"}),"。"]}),"\n",(0,s.jsx)(i.p,{children:"当同一页面使用了多个 Umo Editor 实例时,以最后一个实例配置为准。"}),"\n",(0,s.jsx)(i.h2,{id:n[0].id,children:n[0].value}),"\n",(0,s.jsx)(i.pre,{icon:h.Dr,tabIndex:"0","data-language":"js","data-word-wrap":"","data-copy":"",children:(0,s.jsxs)(i.code,{children:[(0,s.jsx)(i.span,{children:(0,s.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"{"})}),"\n",(0,s.jsxs)(i.span,{children:[(0,s.jsx)(i.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"  theme"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"'light'"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:","})]}),"\n",(0,s.jsx)(i.span,{children:(0,s.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"}"})})]})}),"\n",(0,s.jsx)(i.h2,{id:n[1].id,children:n[1].value}),"\n",(0,s.jsx)(i.h3,{id:n[2].id,children:n[2].value}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"说明"}),":默认主题。"]}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"类型"}),":",(0,s.jsx)(i.code,{children:"String"})]}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"默认值"}),":",(0,s.jsx)(i.code,{children:"light"}),"。"]}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"可选值"}),":",(0,s.jsx)(i.code,{children:"light"})," 、 ",(0,s.jsx)(i.code,{children:"dark"})," 、 ",(0,s.jsx)(i.code,{children:"auto"}),"。"]})]})},"/cn/docs/editor/options/theme",{filePath:"pages/cn/docs/editor/options/theme.mdx",timestamp:1768126297e3,pageMap:d.v,frontMatter:{target:"Umo Editor",keywords:"Umo Editor,Tiptap,Tiptap3,富文本编辑器,文档编辑器,文档编辑,协同办公,开源编辑器,国产编辑器",description:"Umo Editor 是一个基于 Vue3 和 Tiptap3 的本土化开源文档编辑器,专为国人用户设计。它提供了强大的文档编辑能力和 AI 创作功能,支持分页模式、Markdown 语法、富文本编辑、多种格式的节点插入、页面样式设置、文档导出与打印等功能。此外,Umo Editor 还支持自定义扩展、多语言设置和暗色主题。"},title:"主题配置"},"undefined"==typeof RemoteContent?c:RemoteContent.useTOC)}},function(e){e.O(0,[7812,885,2888,9774,179],function(){return e(e.s=76050)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.