PageSourceSearch

https://touying-typ.github.io/assets/js/ece80388.5e1af1e1.js

js touying-typ.github.io collected 2026-10-03 10:07:03 UTC 2,953 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2771],{68866:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>l});var n=r(85893),o=r(11151);const i={sidebar_position:37,description:"Applies the theme's primary color to text content.",toc_max_heading_level:2},s="alert-with-primary-color",c={id:"reference/utils/alert-with-primary-color",title:"alert-with-primary-color",description:"Applies the theme's primary color to text content.",source:"@site/docs/reference/utils/alert-with-primary-color.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/alert-with-primary-color",permalink:"/docs/reference/utils/alert-with-primary-color",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:37,frontMatter:{sidebar_position:37,description:"Applies the theme's primary color to text content.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"alpha-changing-cover",permalink:"/docs/reference/utils/alpha-changing-cover"},next:{title:"alert",permalink:"/docs/reference/utils/alert"}},a={},l=[];function p(e){const t={a:"a",code:"code",h1:"h1",p:"p",strong:"strong",...(0,o.a)(),...e.components},{Signature:r,SignatureName:i,SignatureParam:s,SourceLink:c,TypeLink:a}=t;return r||h("Signature",!0),i||h("SignatureName",!0),s||h("SignatureParam",!0),c||h("SourceLink",!0),a||h("TypeLink",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"alert-with-primary-color",children:"alert-with-primary-color"}),"\n",(0,n.jsx)(r,{children:(0,n.jsxs)("code",{children:[(0,n.jsx)(i,{children:"alert-with-primary-color"}),"(",(0,n.jsxs)(s,{children:[(0,n.jsx)(t.a,{href:"#self",children:"self: none"}),", "]}),(0,n.jsx)(s,{children:(0,n.jsx)(t.a,{href:"#body",children:"body"})}),")",(0,n.jsx)(c,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L1626"})]})}),"\n",(0,n.jsxs)(t.p,{children:["Applies the theme's primary color to text content. Used as the default ",(0,n.jsx)(t.code,{children:"alert"})," method."]}),"\n",(0,n.jsxs)(t.p,{children:["Example: ",(0,n.jsx)(t.code,{children:"config-methods(alert: utils.alert-with-primary-color)"})]}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"Returns:"})," ",(0,n.jsx)(a,{type:"content"})]})]})}function d(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}function h(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,r)=>{r.d(t,{Z:()=>c,a:()=>s});var n=r(67294);const o={},i=n.createContext(o);function s(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(i.Provider,{value:t},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.