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