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