[{"data":1,"prerenderedAt":1313},["ShallowReactive",2],{"navigation_docs":3,"-utilities-composables-use-theme":365,"-utilities-composables-use-theme-surround":855,"component-example-themeSelectUseThemeExample":860,"component-example-ast-themeSelectUseThemeExample":863},[4,110,310],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Documentation","\u002Fdocumentation","1.documentation",[9,35,56,89],{"title":10,"path":11,"stem":12,"children":13,"page":34},"Getting Started","\u002Fdocumentation\u002Fgetting-started","1.documentation\u002F1.getting-started",[14,18,22,26,30],{"title":15,"path":16,"stem":17},"Installation","\u002Fdocumentation\u002Fgetting-started\u002Finstallation","1.documentation\u002F1.getting-started\u002F1.installation",{"title":19,"path":20,"stem":21},"Agents","\u002Fdocumentation\u002Fgetting-started\u002Fagents","1.documentation\u002F1.getting-started\u002F2.agents",{"title":23,"path":24,"stem":25},"Migration","\u002Fdocumentation\u002Fgetting-started\u002Fmigration","1.documentation\u002F1.getting-started\u002F3.migration",{"title":27,"path":28,"stem":29},"Contributing","\u002Fdocumentation\u002Fgetting-started\u002Fcontributing","1.documentation\u002F1.getting-started\u002F4.contributing",{"title":31,"path":32,"stem":33},"What's new","\u002Fdocumentation\u002Fgetting-started\u002Fwhats-new","1.documentation\u002F1.getting-started\u002F5.whats-new",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Guidelines","\u002Fdocumentation\u002Fguidelines","1.documentation\u002F2.guidelines",[40,44,48,52],{"title":41,"path":42,"stem":43},"Design Principles","\u002Fdocumentation\u002Fguidelines\u002Fdesign-principles","1.documentation\u002F2.guidelines\u002F1.design-principles",{"title":45,"path":46,"stem":47},"Accessibility","\u002Fdocumentation\u002Fguidelines\u002Faccessibility","1.documentation\u002F2.guidelines\u002F2.accessibility",{"title":49,"path":50,"stem":51},"Interactions","\u002Fdocumentation\u002Fguidelines\u002Finteractions","1.documentation\u002F2.guidelines\u002F3.interactions",{"title":53,"path":54,"stem":55},"Components","\u002Fdocumentation\u002Fguidelines\u002Fcomponents","1.documentation\u002F2.guidelines\u002F4.components",{"title":57,"path":58,"stem":59,"children":60,"page":34},"Design","\u002Fdocumentation\u002Fdesign","1.documentation\u002F3.design",[61,65,69,73,77,81,85],{"title":62,"path":63,"stem":64},"Tokens","\u002Fdocumentation\u002Fdesign\u002Ftokens","1.documentation\u002F3.design\u002F1.tokens",{"title":66,"path":67,"stem":68},"Color Palette","\u002Fdocumentation\u002Fdesign\u002Fcolor-palette","1.documentation\u002F3.design\u002F2.color-palette",{"title":70,"path":71,"stem":72},"Elevation","\u002Fdocumentation\u002Fdesign\u002Felevation","1.documentation\u002F3.design\u002F3.elevation",{"title":74,"path":75,"stem":76},"Spacing","\u002Fdocumentation\u002Fdesign\u002Fspacing","1.documentation\u002F3.design\u002F4.spacing",{"title":78,"path":79,"stem":80},"Border Radius","\u002Fdocumentation\u002Fdesign\u002Fborder-radius","1.documentation\u002F3.design\u002F5.border-radius",{"title":82,"path":83,"stem":84},"Typography","\u002Fdocumentation\u002Fdesign\u002Ftypography","1.documentation\u002F3.design\u002F6.typography",{"title":86,"path":87,"stem":88},"Icons","\u002Fdocumentation\u002Fdesign\u002Ficons","1.documentation\u002F3.design\u002F7.icons",{"title":90,"path":91,"stem":92,"children":93,"page":34},"Content","\u002Fdocumentation\u002Fcontent","1.documentation\u002F4.content",[94,98,102,106],{"title":95,"path":96,"stem":97},"Wording","\u002Fdocumentation\u002Fcontent\u002Fwording","1.documentation\u002F4.content\u002F1.wording",{"title":99,"path":100,"stem":101},"Messaging","\u002Fdocumentation\u002Fcontent\u002Fmessaging","1.documentation\u002F4.content\u002F2.messaging",{"title":103,"path":104,"stem":105},"Glossary","\u002Fdocumentation\u002Fcontent\u002Fglossary","1.documentation\u002F4.content\u002F3.glossary",{"title":107,"path":108,"stem":109},"Artificial Intelligence","\u002Fdocumentation\u002Fcontent\u002Fartificial-intelligence","1.documentation\u002F4.content\u002F4.artificial-intelligence",{"title":53,"path":111,"stem":112,"children":113,"page":34},"\u002Fcomponents","2.components",[114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,254,258,262,266,270,274,278,282,286,290,294,298,302,306],{"title":115,"path":116,"stem":117},"Action Menu","\u002Fcomponents\u002Faction-menu","2.components\u002Faction-menu",{"title":119,"path":120,"stem":121},"Avatar","\u002Fcomponents\u002Favatar","2.components\u002Favatar",{"title":123,"path":124,"stem":125},"Badge","\u002Fcomponents\u002Fbadge","2.components\u002Fbadge",{"title":127,"path":128,"stem":129},"Banner","\u002Fcomponents\u002Fbanner","2.components\u002Fbanner",{"title":131,"path":132,"stem":133},"Breadcrumb","\u002Fcomponents\u002Fbreadcrumb","2.components\u002Fbreadcrumb",{"title":135,"path":136,"stem":137},"Button","\u002Fcomponents\u002Fbutton","2.components\u002Fbutton",{"title":139,"path":140,"stem":141},"Card","\u002Fcomponents\u002Fcard","2.components\u002Fcard",{"title":143,"path":144,"stem":145},"Chart","\u002Fcomponents\u002Fchart","2.components\u002Fchart",{"title":147,"path":148,"stem":149},"Checkbox","\u002Fcomponents\u002Fcheckbox","2.components\u002Fcheckbox",{"title":151,"path":152,"stem":153},"Collapsible","\u002Fcomponents\u002Fcollapsible","2.components\u002Fcollapsible",{"title":155,"path":156,"stem":157},"Colorpicker","\u002Fcomponents\u002Fcolorpicker","2.components\u002Fcolorpicker",{"title":159,"path":160,"stem":161},"Data Table","\u002Fcomponents\u002Fdata-table","2.components\u002Fdata-table",{"title":163,"path":164,"stem":165},"Datepicker","\u002Fcomponents\u002Fdatepicker","2.components\u002Fdatepicker",{"title":167,"path":168,"stem":169},"Divider","\u002Fcomponents\u002Fdivider","2.components\u002Fdivider",{"title":171,"path":172,"stem":173},"Email Field","\u002Fcomponents\u002Femail-field","2.components\u002Femail-field",{"title":175,"path":176,"stem":177},"Empty State","\u002Fcomponents\u002Fempty-state","2.components\u002Fempty-state",{"title":179,"path":180,"stem":181},"Entity Data Table","\u002Fcomponents\u002Fentity-data-table","2.components\u002Fentity-data-table",{"title":183,"path":184,"stem":185},"Entity Select","\u002Fcomponents\u002Fentity-select","2.components\u002Fentity-select",{"title":187,"path":188,"stem":189},"Floating UI","\u002Fcomponents\u002Ffloating-ui","2.components\u002Ffloating-ui",{"title":191,"path":192,"stem":193},"Help Text","\u002Fcomponents\u002Fhelp-text","2.components\u002Fhelp-text",{"title":195,"path":196,"stem":197},"Icon","\u002Fcomponents\u002Ficon","2.components\u002Ficon",{"title":199,"path":200,"stem":201},"Link","\u002Fcomponents\u002Flink","2.components\u002Flink",{"title":203,"path":204,"stem":205},"Loader","\u002Fcomponents\u002Floader","2.components\u002Floader",{"title":207,"path":208,"stem":209},"Markdown","\u002Fcomponents\u002Fmarkdown","2.components\u002Fmarkdown",{"title":211,"path":212,"stem":213},"Modal","\u002Fcomponents\u002Fmodal","2.components\u002Fmodal",{"title":215,"path":216,"stem":217},"Number Field","\u002Fcomponents\u002Fnumber-field","2.components\u002Fnumber-field",{"title":219,"path":220,"stem":221},"Pagination","\u002Fcomponents\u002Fpagination","2.components\u002Fpagination",{"title":223,"path":224,"stem":225},"Password Field","\u002Fcomponents\u002Fpassword-field","2.components\u002Fpassword-field",{"title":227,"path":228,"stem":229},"Popover","\u002Fcomponents\u002Fpopover","2.components\u002Fpopover",{"title":231,"path":232,"stem":233},"Progress Bar","\u002Fcomponents\u002Fprogress-bar","2.components\u002Fprogress-bar",{"title":235,"path":236,"stem":237},"Promo Badge","\u002Fcomponents\u002Fpromo-badge","2.components\u002Fpromo-badge",{"title":239,"path":240,"stem":241},"Radio Group","\u002Fcomponents\u002Fradio-group","2.components\u002Fradio-group",{"title":243,"path":244,"stem":245},"Search","\u002Fcomponents\u002Fsearch","2.components\u002Fsearch",{"title":247,"path":248,"stem":249},"Select","\u002Fcomponents\u002Fselect","2.components\u002Fselect",{"title":251,"path":252,"stem":253},"Skeleton Bar","\u002Fcomponents\u002Fskeleton-bar","2.components\u002Fskeleton-bar",{"title":255,"path":256,"stem":257},"Slider","\u002Fcomponents\u002Fslider","2.components\u002Fslider",{"title":259,"path":260,"stem":261},"Snackbar","\u002Fcomponents\u002Fsnackbar","2.components\u002Fsnackbar",{"title":263,"path":264,"stem":265},"Status Dot","\u002Fcomponents\u002Fstatus-dot","2.components\u002Fstatus-dot",{"title":267,"path":268,"stem":269},"Switch","\u002Fcomponents\u002Fswitch","2.components\u002Fswitch",{"title":271,"path":272,"stem":273},"Tabs","\u002Fcomponents\u002Ftabs","2.components\u002Ftabs",{"title":275,"path":276,"stem":277},"Text","\u002Fcomponents\u002Ftext","2.components\u002Ftext",{"title":279,"path":280,"stem":281},"Text Editor","\u002Fcomponents\u002Ftext-editor","2.components\u002Ftext-editor",{"title":283,"path":284,"stem":285},"Text Field","\u002Fcomponents\u002Ftext-field","2.components\u002Ftext-field",{"title":287,"path":288,"stem":289},"Textarea","\u002Fcomponents\u002Ftextarea","2.components\u002Ftextarea",{"title":291,"path":292,"stem":293},"Theme Select","\u002Fcomponents\u002Ftheme-select","2.components\u002Ftheme-select",{"title":295,"path":296,"stem":297},"Toast","\u002Fcomponents\u002Ftoast","2.components\u002Ftoast",{"title":299,"path":300,"stem":301},"Tooltip","\u002Fcomponents\u002Ftooltip","2.components\u002Ftooltip",{"title":303,"path":304,"stem":305},"Unit Field","\u002Fcomponents\u002Funit-field","2.components\u002Funit-field",{"title":307,"path":308,"stem":309},"URL Field","\u002Fcomponents\u002Furl-field","2.components\u002Furl-field",{"title":311,"path":312,"stem":313,"children":314,"page":34},"Utilities","\u002Futilities","3.utilities",[315,327,348,356],{"title":53,"path":316,"stem":317,"children":318,"page":34},"\u002Futilities\u002Fcomponents","3.utilities\u002Fcomponents",[319,323],{"title":320,"path":321,"stem":322},"Inset","\u002Futilities\u002Fcomponents\u002Finset","3.utilities\u002Fcomponents\u002Finset",{"title":324,"path":325,"stem":326},"Theme Provider","\u002Futilities\u002Fcomponents\u002Ftheme-provider","3.utilities\u002Fcomponents\u002Ftheme-provider",{"title":328,"path":329,"stem":330,"children":331,"page":34},"Composables","\u002Futilities\u002Fcomposables","3.utilities\u002Fcomposables",[332,336,340,344],{"title":333,"path":334,"stem":335},"useFutureFlags","\u002Futilities\u002Fcomposables\u002Fuse-future-flags","3.utilities\u002Fcomposables\u002Fuse-future-flags",{"title":337,"path":338,"stem":339},"useServicePermission","\u002Futilities\u002Fcomposables\u002Fuse-service-permission","3.utilities\u002Fcomposables\u002Fuse-service-permission",{"title":341,"path":342,"stem":343},"useSnackbar","\u002Futilities\u002Fcomposables\u002Fuse-snackbar","3.utilities\u002Fcomposables\u002Fuse-snackbar",{"title":345,"path":346,"stem":347},"useTheme","\u002Futilities\u002Fcomposables\u002Fuse-theme","3.utilities\u002Fcomposables\u002Fuse-theme",{"title":349,"path":350,"stem":351,"children":352,"page":34},"Directives","\u002Futilities\u002Fdirectives","3.utilities\u002Fdirectives",[353],{"title":299,"path":354,"stem":355},"\u002Futilities\u002Fdirectives\u002Ftooltip","3.utilities\u002Fdirectives\u002Ftooltip",{"title":357,"path":358,"stem":359,"children":360,"page":34},"Plugins","\u002Futilities\u002Fplugins","3.utilities\u002Fplugins",[361],{"title":362,"path":363,"stem":364},"Device helper","\u002Futilities\u002Fplugins\u002Fdevice-helper","3.utilities\u002Fplugins\u002Fdevice-helper",{"id":366,"title":345,"body":367,"description":849,"extension":850,"links":851,"meta":852,"navigation":466,"path":346,"seo":853,"stem":347,"__hash__":854},"docs\u002F3.utilities\u002Fcomposables\u002Fuse-theme.md",{"type":368,"value":369,"toc":839},"minimark",[370,375,380,429,508,515,519,524,530,639,643,741,745,795,799,822,826,835],[371,372],"component-example",{":full-width":373,"name":374},"true","theme-select-use-theme-example",[376,377,379],"h2",{"id":378},"usage","Usage",[381,382,383,386,387,390,391,394,395,398,399,401,402,405,406,409,410,413,414,417,418,424,425,428],"p",{},[384,385,345],"code",{}," manages the application color theme. It tracks the user's preference (",[384,388,389],{},"light",", ",[384,392,393],{},"dark",", or ",[384,396,397],{},"system","), resolves ",[384,400,397],{}," against the operating system via ",[384,403,404],{},"prefers-color-scheme",", writes the resolved value to a target element's ",[384,407,408],{},"data-theme"," attribute (the document root by default), and persists the choice to ",[384,411,412],{},"localStorage",". Bind the returned ",[384,415,416],{},"theme"," ref to ",[419,420,421],"a",{"href":292},[422,423,291],"strong",{}," with ",[384,426,427],{},"v-model"," to let users control it.",[430,431,436],"pre",{"className":432,"code":433,"language":434,"meta":435,"style":435},"language-ts shiki shiki-themes github-light github-dark-default github-dark-default","import { useTheme } from \"@shopware-ag\u002Fmeteor-component-library\";\n\nconst { theme, resolvedTheme, setTheme, stop } = useTheme();\n","ts","",[384,437,438,461,468],{"__ignoreMap":435},[439,440,443,447,451,454,458],"span",{"class":441,"line":442},"line",1,[439,444,446],{"class":445},"sLfaJ","import",[439,448,450],{"class":449},"sSgjj"," { useTheme } ",[439,452,453],{"class":445},"from",[439,455,457],{"class":456},"sL1yV"," \"@shopware-ag\u002Fmeteor-component-library\"",[439,459,460],{"class":449},";\n",[439,462,464],{"class":441,"line":463},2,[439,465,467],{"emptyLinePlaceholder":466},true,"\n",[439,469,471,474,477,480,482,485,487,490,492,495,498,501,505],{"class":441,"line":470},3,[439,472,473],{"class":445},"const",[439,475,476],{"class":449}," { ",[439,478,416],{"class":479},"sfxXV",[439,481,390],{"class":449},[439,483,484],{"class":479},"resolvedTheme",[439,486,390],{"class":449},[439,488,489],{"class":479},"setTheme",[439,491,390],{"class":449},[439,493,494],{"class":479},"stop",[439,496,497],{"class":449}," } ",[439,499,500],{"class":445},"=",[439,502,504],{"class":503},"s71ug"," useTheme",[439,506,507],{"class":449},"();\n",[381,509,510,511,514],{},"The preference is shared: instances using the same ",[384,512,513],{},"storageKey"," stay in sync within the document and across browser tabs.",[376,516,518],{"id":517},"api","API",[520,521,523],"h3",{"id":522},"options","Options",[381,525,526,529],{},[384,527,528],{},"useTheme(options?)"," accepts:",[531,532,533,549],"table",{},[534,535,536],"thead",{},[537,538,539,543,546],"tr",{},[540,541,542],"th",{},"Option",[540,544,545],{},"Type",[540,547,548],{},"Description",[550,551,552,578,600,618],"tbody",{},[537,553,554,559,564],{},[555,556,557],"td",{},[384,558,513],{},[555,560,561],{},[384,562,563],{},"string | null",[555,565,566,567,569,570,573,574,577],{},"The ",[384,568,412],{}," key used to persist the preference. Defaults to ",[384,571,572],{},"\"mt-theme\"",". Set it to ",[384,575,576],{},"null"," to disable persistence.",[537,579,580,585,590],{},[555,581,582],{},[384,583,584],{},"target",[555,586,587],{},[384,588,589],{},"HTMLElement",[555,591,592,593,595,596,599],{},"The element whose ",[384,594,408],{}," attribute is kept in sync with the resolved theme. Defaults to ",[384,597,598],{},"document.documentElement",".",[537,601,602,607,612],{},[555,603,604],{},[384,605,606],{},"defaultTheme",[555,608,609],{},[384,610,611],{},"\"light\" | \"dark\" | \"system\"",[555,613,614,615,599],{},"The preference used when nothing has been persisted yet. Defaults to ",[384,616,617],{},"\"system\"",[537,619,620,625,630],{},[555,621,622],{},[384,623,624],{},"applyToTarget",[555,626,627],{},[384,628,629],{},"boolean",[555,631,632,633,635,636,638],{},"Whether to write the resolved theme to the target's ",[384,634,408],{}," attribute. Defaults to ",[384,637,373],{},". Disable it when the host applies the theme itself.",[520,640,642],{"id":641},"return-value","Return value",[531,644,645,656],{},[534,646,647],{},[537,648,649,652,654],{},[540,650,651],{},"Member",[540,653,545],{},[540,655,548],{},[550,657,658,687,709,723],{},[537,659,660,664,669],{},[555,661,662],{},[384,663,416],{},[555,665,666],{},[384,667,668],{},"Ref\u003CTheme>",[555,670,671,672,390,675,394,678,680,681,424,685,599],{},"The user's preference: ",[384,673,674],{},"\"light\"",[384,676,677],{},"\"dark\"",[384,679,617],{},". Writable; bind it to ",[419,682,683],{"href":292},[422,684,291],{},[384,686,427],{},[537,688,689,693,698],{},[555,690,691],{},[384,692,484],{},[555,694,695],{},[384,696,697],{},"ComputedRef\u003CResolvedTheme>",[555,699,700,701,703,704,706,707,599],{},"The applied theme after resolving ",[384,702,617],{},": ",[384,705,674],{}," or ",[384,708,677],{},[537,710,711,715,720],{},[555,712,713],{},[384,714,489],{},[555,716,717],{},[384,718,719],{},"(theme: Theme) => void",[555,721,722],{},"Sets the preference programmatically.",[537,724,725,729,734],{},[555,726,727],{},[384,728,494],{},[555,730,731],{},[384,732,733],{},"() => void",[555,735,736,737,740],{},"Releases all listeners. Called automatically on scope disposal when used inside a component or ",[384,738,739],{},"effectScope","; call it manually when using the composable outside of an active scope.",[520,742,744],{"id":743},"types","Types",[430,746,748],{"className":432,"code":747,"language":434,"meta":435,"style":435},"type Theme = \"light\" | \"dark\" | \"system\";\ntype ResolvedTheme = \"light\" | \"dark\";\n",[384,749,750,778],{"__ignoreMap":435},[439,751,752,755,759,762,765,768,771,773,776],{"class":441,"line":442},[439,753,754],{"class":445},"type",[439,756,758],{"class":757},"s0wlp"," Theme",[439,760,761],{"class":445}," =",[439,763,764],{"class":456}," \"light\"",[439,766,767],{"class":445}," |",[439,769,770],{"class":456}," \"dark\"",[439,772,767],{"class":445},[439,774,775],{"class":456}," \"system\"",[439,777,460],{"class":449},[439,779,780,782,785,787,789,791,793],{"class":441,"line":463},[439,781,754],{"class":445},[439,783,784],{"class":757}," ResolvedTheme",[439,786,761],{"class":445},[439,788,764],{"class":456},[439,790,767],{"class":445},[439,792,770],{"class":456},[439,794,460],{"class":449},[376,796,798],{"id":797},"behavior","Behavior",[800,801,802,811,816],"ul",{},[803,804,805,806,390,808,810],"li",{},"While the preference is ",[384,807,397],{},[384,809,484],{}," updates live when the operating system preference changes.",[803,812,813,814,599],{},"Invalid persisted values are ignored and fall back to ",[384,815,606],{},[803,817,818,819,821],{},"Meteor tokens are theme-aware through ",[384,820,408],{},", so applying the resolved theme to the document root themes every Meteor component on the page.",[376,823,825],{"id":824},"related-components","Related components",[800,827,828],{},[803,829,830,834],{},[419,831,832],{"href":292},[422,833,291],{},": the select component built for choosing the theme this composable manages.",[836,837,838],"style",{},"html pre.shiki code .sLfaJ, html code.shiki .sLfaJ{--shiki-light:#D73A49;--shiki-default:#FF7B72;--shiki-dark:#FF7B72}html pre.shiki code .sSgjj, html code.shiki .sSgjj{--shiki-light:#24292E;--shiki-default:#E6EDF3;--shiki-dark:#E6EDF3}html pre.shiki code .sL1yV, html code.shiki .sL1yV{--shiki-light:#032F62;--shiki-default:#A5D6FF;--shiki-dark:#A5D6FF}html pre.shiki code .sfxXV, html code.shiki .sfxXV{--shiki-light:#005CC5;--shiki-default:#79C0FF;--shiki-dark:#79C0FF}html pre.shiki code .s71ug, html code.shiki .s71ug{--shiki-light:#6F42C1;--shiki-default:#D2A8FF;--shiki-dark:#D2A8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s0wlp, html code.shiki .s0wlp{--shiki-light:#6F42C1;--shiki-default:#FFA657;--shiki-dark:#FFA657}",{"title":435,"searchDepth":463,"depth":463,"links":840},[841,842,847,848],{"id":378,"depth":463,"text":379},{"id":517,"depth":463,"text":518,"children":843},[844,845,846],{"id":522,"depth":470,"text":523},{"id":641,"depth":470,"text":642},{"id":743,"depth":470,"text":744},{"id":797,"depth":463,"text":798},{"id":824,"depth":463,"text":825},"A composable for managing the application color theme, resolving the system preference, and persisting the choice.","md",null,{},{"title":345,"description":849},"dXbxJHPExu5eN0wT8Btj7N7WEXkrqIrUQ3ibRnRqd1c",[856,858],{"title":341,"path":342,"stem":343,"description":857,"children":-1},"A composable for publishing snackbar notifications from anywhere in your app.",{"title":299,"path":354,"stem":355,"description":859,"children":-1},"A v-tooltip directive for attaching a tooltip to any element, a lightweight alternative to the Tooltip component.",{"code":861,"pascalName":862},"\u003Cscript setup lang=\"ts\">\nimport MtThemeSelect from \"@shopware-ag\u002Fmeteor-component-library\u002FMtThemeSelect\";\nimport MtText from \"@shopware-ag\u002Fmeteor-component-library\u002FMtText\";\n\u002F\u002F useTheme has no subpath export, so it is imported from the barrel.\nimport { useTheme } from \"@shopware-ag\u002Fmeteor-component-library\";\n\n\u002F\u002F Persistence and global application are disabled so the docs page itself\n\u002F\u002F stays untouched. Omit these options in your app.\nconst { theme, resolvedTheme } = useTheme({\n  storageKey: null,\n  applyToTarget: false,\n});\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv style=\"display: flex; flex-direction: column; gap: 16px\">\n    \u003Cmt-theme-select v-model=\"theme\" label=\"Color theme\" \u002F>\n\n    \u003Cmt-text>Resolved theme: {{ resolvedTheme }}\u003C\u002Fmt-text>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","ThemeSelectUseThemeExample",{"data":864,"body":865,"toc":1311},{"title":435,"description":435},{"type":866,"children":867},"root",[868,1306],{"type":869,"tag":430,"props":870,"children":873},"element",{"className":871,"code":861,"language":872,"meta":435,"style":435},"language-vue shiki shiki-themes github-light github-dark-default github-dark-default","vue",[874],{"type":869,"tag":384,"props":875,"children":876},{"__ignoreMap":435},[877,919,945,970,980,1004,1012,1021,1030,1073,1091,1109,1118,1135,1143,1160,1192,1239,1247,1273,1290],{"type":869,"tag":439,"props":878,"children":879},{"class":441,"line":442},[880,887,893,899,904,908,914],{"type":869,"tag":439,"props":881,"children":883},{"style":882},"--shiki-light:#24292E;--shiki-default:#E6EDF3;--shiki-dark:#E6EDF3",[884],{"type":885,"value":886},"text","\u003C",{"type":869,"tag":439,"props":888,"children":890},{"style":889},"--shiki-light:#22863A;--shiki-default:#7EE787;--shiki-dark:#7EE787",[891],{"type":885,"value":892},"script",{"type":869,"tag":439,"props":894,"children":896},{"style":895},"--shiki-light:#6F42C1;--shiki-default:#79C0FF;--shiki-dark:#79C0FF",[897],{"type":885,"value":898}," setup",{"type":869,"tag":439,"props":900,"children":901},{"style":895},[902],{"type":885,"value":903}," lang",{"type":869,"tag":439,"props":905,"children":906},{"style":882},[907],{"type":885,"value":500},{"type":869,"tag":439,"props":909,"children":911},{"style":910},"--shiki-light:#032F62;--shiki-default:#A5D6FF;--shiki-dark:#A5D6FF",[912],{"type":885,"value":913},"\"ts\"",{"type":869,"tag":439,"props":915,"children":916},{"style":882},[917],{"type":885,"value":918},">\n",{"type":869,"tag":439,"props":920,"children":921},{"class":441,"line":463},[922,927,932,936,941],{"type":869,"tag":439,"props":923,"children":925},{"style":924},"--shiki-light:#D73A49;--shiki-default:#FF7B72;--shiki-dark:#FF7B72",[926],{"type":885,"value":446},{"type":869,"tag":439,"props":928,"children":929},{"style":882},[930],{"type":885,"value":931}," MtThemeSelect ",{"type":869,"tag":439,"props":933,"children":934},{"style":924},[935],{"type":885,"value":453},{"type":869,"tag":439,"props":937,"children":938},{"style":910},[939],{"type":885,"value":940}," \"@shopware-ag\u002Fmeteor-component-library\u002FMtThemeSelect\"",{"type":869,"tag":439,"props":942,"children":943},{"style":882},[944],{"type":885,"value":460},{"type":869,"tag":439,"props":946,"children":947},{"class":441,"line":470},[948,952,957,961,966],{"type":869,"tag":439,"props":949,"children":950},{"style":924},[951],{"type":885,"value":446},{"type":869,"tag":439,"props":953,"children":954},{"style":882},[955],{"type":885,"value":956}," MtText ",{"type":869,"tag":439,"props":958,"children":959},{"style":924},[960],{"type":885,"value":453},{"type":869,"tag":439,"props":962,"children":963},{"style":910},[964],{"type":885,"value":965}," \"@shopware-ag\u002Fmeteor-component-library\u002FMtText\"",{"type":869,"tag":439,"props":967,"children":968},{"style":882},[969],{"type":885,"value":460},{"type":869,"tag":439,"props":971,"children":973},{"class":441,"line":972},4,[974],{"type":869,"tag":439,"props":975,"children":977},{"style":976},"--shiki-light:#6A737D;--shiki-default:#8B949E;--shiki-dark:#8B949E",[978],{"type":885,"value":979},"\u002F\u002F useTheme has no subpath export, so it is imported from the barrel.\n",{"type":869,"tag":439,"props":981,"children":983},{"class":441,"line":982},5,[984,988,992,996,1000],{"type":869,"tag":439,"props":985,"children":986},{"style":924},[987],{"type":885,"value":446},{"type":869,"tag":439,"props":989,"children":990},{"style":882},[991],{"type":885,"value":450},{"type":869,"tag":439,"props":993,"children":994},{"style":924},[995],{"type":885,"value":453},{"type":869,"tag":439,"props":997,"children":998},{"style":910},[999],{"type":885,"value":457},{"type":869,"tag":439,"props":1001,"children":1002},{"style":882},[1003],{"type":885,"value":460},{"type":869,"tag":439,"props":1005,"children":1007},{"class":441,"line":1006},6,[1008],{"type":869,"tag":439,"props":1009,"children":1010},{"emptyLinePlaceholder":466},[1011],{"type":885,"value":467},{"type":869,"tag":439,"props":1013,"children":1015},{"class":441,"line":1014},7,[1016],{"type":869,"tag":439,"props":1017,"children":1018},{"style":976},[1019],{"type":885,"value":1020},"\u002F\u002F Persistence and global application are disabled so the docs page itself\n",{"type":869,"tag":439,"props":1022,"children":1024},{"class":441,"line":1023},8,[1025],{"type":869,"tag":439,"props":1026,"children":1027},{"style":976},[1028],{"type":885,"value":1029},"\u002F\u002F stays untouched. Omit these options in your app.\n",{"type":869,"tag":439,"props":1031,"children":1033},{"class":441,"line":1032},9,[1034,1038,1042,1047,1051,1055,1059,1063,1068],{"type":869,"tag":439,"props":1035,"children":1036},{"style":924},[1037],{"type":885,"value":473},{"type":869,"tag":439,"props":1039,"children":1040},{"style":882},[1041],{"type":885,"value":476},{"type":869,"tag":439,"props":1043,"children":1045},{"style":1044},"--shiki-light:#005CC5;--shiki-default:#79C0FF;--shiki-dark:#79C0FF",[1046],{"type":885,"value":416},{"type":869,"tag":439,"props":1048,"children":1049},{"style":882},[1050],{"type":885,"value":390},{"type":869,"tag":439,"props":1052,"children":1053},{"style":1044},[1054],{"type":885,"value":484},{"type":869,"tag":439,"props":1056,"children":1057},{"style":882},[1058],{"type":885,"value":497},{"type":869,"tag":439,"props":1060,"children":1061},{"style":924},[1062],{"type":885,"value":500},{"type":869,"tag":439,"props":1064,"children":1066},{"style":1065},"--shiki-light:#6F42C1;--shiki-default:#D2A8FF;--shiki-dark:#D2A8FF",[1067],{"type":885,"value":504},{"type":869,"tag":439,"props":1069,"children":1070},{"style":882},[1071],{"type":885,"value":1072},"({\n",{"type":869,"tag":439,"props":1074,"children":1076},{"class":441,"line":1075},10,[1077,1082,1086],{"type":869,"tag":439,"props":1078,"children":1079},{"style":882},[1080],{"type":885,"value":1081},"  storageKey: ",{"type":869,"tag":439,"props":1083,"children":1084},{"style":1044},[1085],{"type":885,"value":576},{"type":869,"tag":439,"props":1087,"children":1088},{"style":882},[1089],{"type":885,"value":1090},",\n",{"type":869,"tag":439,"props":1092,"children":1094},{"class":441,"line":1093},11,[1095,1100,1105],{"type":869,"tag":439,"props":1096,"children":1097},{"style":882},[1098],{"type":885,"value":1099},"  applyToTarget: ",{"type":869,"tag":439,"props":1101,"children":1102},{"style":1044},[1103],{"type":885,"value":1104},"false",{"type":869,"tag":439,"props":1106,"children":1107},{"style":882},[1108],{"type":885,"value":1090},{"type":869,"tag":439,"props":1110,"children":1112},{"class":441,"line":1111},12,[1113],{"type":869,"tag":439,"props":1114,"children":1115},{"style":882},[1116],{"type":885,"value":1117},"});\n",{"type":869,"tag":439,"props":1119,"children":1121},{"class":441,"line":1120},13,[1122,1127,1131],{"type":869,"tag":439,"props":1123,"children":1124},{"style":882},[1125],{"type":885,"value":1126},"\u003C\u002F",{"type":869,"tag":439,"props":1128,"children":1129},{"style":889},[1130],{"type":885,"value":892},{"type":869,"tag":439,"props":1132,"children":1133},{"style":882},[1134],{"type":885,"value":918},{"type":869,"tag":439,"props":1136,"children":1138},{"class":441,"line":1137},14,[1139],{"type":869,"tag":439,"props":1140,"children":1141},{"emptyLinePlaceholder":466},[1142],{"type":885,"value":467},{"type":869,"tag":439,"props":1144,"children":1146},{"class":441,"line":1145},15,[1147,1151,1156],{"type":869,"tag":439,"props":1148,"children":1149},{"style":882},[1150],{"type":885,"value":886},{"type":869,"tag":439,"props":1152,"children":1153},{"style":889},[1154],{"type":885,"value":1155},"template",{"type":869,"tag":439,"props":1157,"children":1158},{"style":882},[1159],{"type":885,"value":918},{"type":869,"tag":439,"props":1161,"children":1163},{"class":441,"line":1162},16,[1164,1169,1174,1179,1183,1188],{"type":869,"tag":439,"props":1165,"children":1166},{"style":882},[1167],{"type":885,"value":1168},"  \u003C",{"type":869,"tag":439,"props":1170,"children":1171},{"style":889},[1172],{"type":885,"value":1173},"div",{"type":869,"tag":439,"props":1175,"children":1176},{"style":895},[1177],{"type":885,"value":1178}," style",{"type":869,"tag":439,"props":1180,"children":1181},{"style":882},[1182],{"type":885,"value":500},{"type":869,"tag":439,"props":1184,"children":1185},{"style":910},[1186],{"type":885,"value":1187},"\"display: flex; flex-direction: column; gap: 16px\"",{"type":869,"tag":439,"props":1189,"children":1190},{"style":882},[1191],{"type":885,"value":918},{"type":869,"tag":439,"props":1193,"children":1195},{"class":441,"line":1194},17,[1196,1201,1206,1211,1215,1220,1225,1229,1234],{"type":869,"tag":439,"props":1197,"children":1198},{"style":882},[1199],{"type":885,"value":1200},"    \u003C",{"type":869,"tag":439,"props":1202,"children":1203},{"style":889},[1204],{"type":885,"value":1205},"mt-theme-select",{"type":869,"tag":439,"props":1207,"children":1208},{"style":895},[1209],{"type":885,"value":1210}," v-model",{"type":869,"tag":439,"props":1212,"children":1213},{"style":882},[1214],{"type":885,"value":500},{"type":869,"tag":439,"props":1216,"children":1217},{"style":910},[1218],{"type":885,"value":1219},"\"theme\"",{"type":869,"tag":439,"props":1221,"children":1222},{"style":895},[1223],{"type":885,"value":1224}," label",{"type":869,"tag":439,"props":1226,"children":1227},{"style":882},[1228],{"type":885,"value":500},{"type":869,"tag":439,"props":1230,"children":1231},{"style":910},[1232],{"type":885,"value":1233},"\"Color theme\"",{"type":869,"tag":439,"props":1235,"children":1236},{"style":882},[1237],{"type":885,"value":1238}," \u002F>\n",{"type":869,"tag":439,"props":1240,"children":1242},{"class":441,"line":1241},18,[1243],{"type":869,"tag":439,"props":1244,"children":1245},{"emptyLinePlaceholder":466},[1246],{"type":885,"value":467},{"type":869,"tag":439,"props":1248,"children":1250},{"class":441,"line":1249},19,[1251,1255,1260,1265,1269],{"type":869,"tag":439,"props":1252,"children":1253},{"style":882},[1254],{"type":885,"value":1200},{"type":869,"tag":439,"props":1256,"children":1257},{"style":889},[1258],{"type":885,"value":1259},"mt-text",{"type":869,"tag":439,"props":1261,"children":1262},{"style":882},[1263],{"type":885,"value":1264},">Resolved theme: {{ resolvedTheme }}\u003C\u002F",{"type":869,"tag":439,"props":1266,"children":1267},{"style":889},[1268],{"type":885,"value":1259},{"type":869,"tag":439,"props":1270,"children":1271},{"style":882},[1272],{"type":885,"value":918},{"type":869,"tag":439,"props":1274,"children":1276},{"class":441,"line":1275},20,[1277,1282,1286],{"type":869,"tag":439,"props":1278,"children":1279},{"style":882},[1280],{"type":885,"value":1281},"  \u003C\u002F",{"type":869,"tag":439,"props":1283,"children":1284},{"style":889},[1285],{"type":885,"value":1173},{"type":869,"tag":439,"props":1287,"children":1288},{"style":882},[1289],{"type":885,"value":918},{"type":869,"tag":439,"props":1291,"children":1293},{"class":441,"line":1292},21,[1294,1298,1302],{"type":869,"tag":439,"props":1295,"children":1296},{"style":882},[1297],{"type":885,"value":1126},{"type":869,"tag":439,"props":1299,"children":1300},{"style":889},[1301],{"type":885,"value":1155},{"type":869,"tag":439,"props":1303,"children":1304},{"style":882},[1305],{"type":885,"value":918},{"type":869,"tag":836,"props":1307,"children":1308},{},[1309],{"type":885,"value":1310},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":435,"searchDepth":463,"depth":463,"links":1312},[],1791297650024]