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