PageSourceSearch

https://touying-typ.github.io/assets/js/96207a10.ea964b57.js

js touying-typ.github.io collected 2026-10-03 10:08:38 UTC 6,614 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6730],{43682:(e,r,i)=>{i.r(r),i.d(r,{assets:()=>a,contentTitle:()=>l,default:()=>h,frontMatter:()=>n,metadata:()=>o,toc:()=>d});var s=i(85893),t=i(11151);const n={sidebar_position:6,description:"Touying simple theme.",toc_max_heading_level:2},l="simple-theme",o={id:"reference/themes/simple/simple-theme",title:"simple-theme",description:"Touying simple theme.",source:"@site/docs/reference/themes/simple/simple-theme.mdx",sourceDirName:"reference/themes/simple",slug:"/reference/themes/simple/simple-theme",permalink:"/docs/reference/themes/simple/simple-theme",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6,description:"Touying simple theme.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"focus-slide",permalink:"/docs/reference/themes/simple/focus-slide"},next:{title:"Stargazer",permalink:"/docs/category/stargazer"}},a={},d=[{value:"aspect-ratio : <TypeLink></TypeLink> <Default><code>&quot;16-9&quot;</code></Default>",id:"aspect-ratio",level:3},{value:"header : <TypeLink></TypeLink>",id:"header",level:3},{value:"header-right : <TypeLink></TypeLink> <Default><code>self =&gt; self.info.logo</code></Default>",id:"header-right",level:3},{value:"footer : <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"footer",level:3},{value:"footer-right : <TypeLink></TypeLink>",id:"footer-right",level:3},{value:"primary : <TypeLink></TypeLink> <Default><code>aqua.darken(50%)</code></Default>",id:"primary",level:3},{value:"subslide-preamble : <TypeLink></TypeLink>",id:"subslide-preamble",level:3}];function c(e){const r={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",...(0,t.a)(),...e.components},{Default:i,Param:n,Parameters:l,Signature:o,SignatureName:a,SignatureParam:d,SourceLink:c,TypeLink:h}=r;return i||p("Default",!0),n||p("Param",!0),l||p("Parameters",!0),o||p("Signature",!0),a||p("SignatureName",!0),d||p("SignatureParam",!0),c||p("SourceLink",!0),h||p("TypeLink",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h1,{id:"simple-theme",children:"simple-theme"}),"\n",(0,s.jsx)(o,{children:(0,s.jsxs)("code",{children:[(0,s.jsx)(a,{children:"simple-theme"}),"(",(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#aspect-ratio",children:'aspect-ratio: "16-9"'}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#header",children:"header"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#header-right",children:"header-right: self => self.info.logo"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#footer",children:"footer: none"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#footer-right",children:"footer-right"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#primary",children:"primary: aqua.darken(50%)"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#subslide-preamble",children:"subslide-preamble"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(r.a,{href:"#args",children:"..args"}),", "]}),(0,s.jsx)(d,{children:(0,s.jsx)(r.a,{href:"#body",children:"body"})}),")",(0,s.jsx)(c,{href:"https://github.com/touying-typ/touying/blob/main/themes/simple.typ#L164"})]})}),"\n",(0,s.jsx)(r.p,{children:"Touying simple theme."}),"\n",(0,s.jsx)(r.p,{children:"Example:"}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-typst",children:'#show: simple-theme.with(aspect-ratio: "16-9", config-colors(primary: blue))\n'})}),"\n",(0,s.jsx)(r.p,{children:"The default colors:"}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-typst",children:'config-colors(\n  neutral-light: gray,\n  neutral-lightest: rgb("#ffffff"),\n  neutral-darkest: rgb("#000000"),\n  primary: aqua.darken(50%),\n)\n'})}),"\n",(0,s.jsxs)(l,{children:[(0,s.jsxs)(r.h3,{id:"aspect-ratio",children:["aspect-ratio : ",(0,s.jsx)(h,{type:"string"})," ",(0,s.jsx)(i,{children:(0,s.jsx)(r.code,{children:'"16-9"'})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(r.p,{children:["The aspect ratio of the slides. Default is ",(0,s.jsx)(r.code,{children:"16-9"}),"."]})}),(0,s.jsxs)(r.h3,{id:"header",children:["header : ",(0,s.jsx)(h,{type:"function"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(r.p,{children:["The header of the slides. Default is ",(0,s.jsx)(r.code,{children:"self =>
1 utils.display-current-heading(setting: utils.fit-to-width.with(grow: false, 100%), depth: self.slide-level)"}),"."]})}),(0,s.jsxs)(r.h3,{id:"header-right",children:["header-right : ",(0,s.jsx)(h,{type:"content"})," ",(0,s.jsx)(i,{children:(0,s.jsx)(r.code,{children:"self => self.info.logo"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(r.p,{children:["The right part of the header. Default is ",(0,s.jsx)(r.code,{children:"self.info.logo"}),"."]})}),(0,s.jsxs)(r.h3,{id:"footer",children:["footer : ",(0,s.jsx)(h,{type:"content"})," ",(0,s.jsx)(i,{children:(0,s.jsx)(r.code,{children:"none"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(r.p,{children:["The footer of the slides. Default is ",(0,s.jsx)(r.code,{children:"none"}),"."]})}),(0,s.jsxs)(r.h3,{id:"footer-right",children:["footer-right : ",(0,s.jsx)(h,{type:"content"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(r.p,{children:["The right part of the footer. Default is ",(0,s.jsx)(r.code,{children:'context utils.slide-counter.display() + " / " + utils.last-slide-number'}),"."]})}),(0,s.jsxs)(r.h3,{id:"primary",children:["primary : ",(0,s.jsx)(h,{type:"color"})," ",(0,s.jsx)(i,{children:(0,s.jsx)(r.code,{children:"aqua.darken(50%)"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(r.p,{children:["The primary color of the slides. Default is ",(0,s.jsx)(r.code,{children:"aqua.darken(50%)"}),"."]})}),(0,s.jsxs)(r.h3,{id:"subslide-preamble",children:["subslide-preamble : ",(0,s.jsx)(h,{type:"content"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(r.p,{children:["The preamble of the subslides. Default is ",(0,s.jsx)(r.code,{children:'block(below: 1.5em, text(1.2em, weight: "bold", utils.display-current-heading(level: 2)))'}),"."]})})]})]})}function h(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}function p(e,r){throw new Error("Expected "+(r?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,r,i)=>{i.d(r,{Z:()=>o,a:()=>l});var s=i(67294);const t={},n=s.createContext(t);function l(e){const r=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function o(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(n.Provider,{value:r},e.children)}}}]);

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.