[{"data":1,"prerenderedAt":535},["ShallowReactive",2],{"landing-copy":3,"\u002Fdocs\u002Fv1\u002Fcomponents\u002Fbadge":65,"nav:v1":391},{"id":4,"extension":5,"meta":6,"sections":7,"stem":62,"tagline":63,"__hash__":64},"landing\u002Flanding.yml","yml",{},[8,18,22,29,33,40,47,51,57],{"id":9,"headline":10,"body":11,"cta":12,"secondary":15},"hero","The bare minimum for elegant interfaces.","Three classes, no framework, {css.kB}. A CSS and JavaScript library with no reset, no font, no runtime dependencies and no rule outside a `pui-` class; the browser does the work.",{"label":13,"to":14},"Get started","\u002Fdocs",{"label":16,"to":17},"Migrating from 0.x","\u002Fdocs\u002Fgetting-started\u002Fmigrating-from-0-x",{"id":19,"headline":20,"body":21},"size","{css.kB}. Measured, not promised.","`perfectui.css` is {css.bytes} bytes gzip; the optional JavaScript loader is {js.bytes}. The bars below are the same measurement run on the published builds of the alternatives.",{"id":23,"headline":24,"body":25,"cta":26},"classes","A shape, a style, a colour.","Every element is up to three classes you can combine freely: what it is, how the colour is applied, which colour. Seven colours and four styles give 28 looks per shape, and adding a colour never multiplies your classes.",{"label":27,"to":28},"See the components","\u002Fdocs\u002Fcomponents\u002Fbutton",{"id":30,"headline":31,"body":32},"overlays","Overlays without a plugin.","Modals are `\u003Cdialog>`, menus are `popover`, tooltips are `interestfor`, accordions are `\u003Cdetails>`. The optional loader downloads a fallback only when a browser is missing one of them.",{"id":34,"headline":35,"body":36,"cta":37},"mode-theme","One attribute for dark mode. One variable for your colour.","With no attribute, perfectui follows the operating system. Set `data-pui-mode` to choose, and `--pui-theme` to make every component yours.",{"label":38,"to":39},"Dark mode docs","\u002Fdocs\u002Fcustomization\u002Fdark-mode",{"id":41,"headline":42,"body":43,"cta":44},"tailwind","Your utilities always win.","One `@layer` line keeps Tailwind's reset below perfectui and every utility above it.",{"label":45,"to":46},"Tailwind guide","\u002Fdocs\u002Fgetting-started\u002Ftailwind-css",{"id":48,"headline":49,"body":50},"nothing-to-undo","Nothing you have to undo.","No reset to override, no font to remove, no `!important` to beat, no initialiser to call after rendering, no guard for server rendering. ESM only, nothing on `window`.",{"id":52,"headline":53,"body":54,"cta":55},"migration","Coming from 0.x?","1.0 is a rewrite: every class is prefixed, styles and colours are separate classes, and the browser replaced the JavaScript. The guide lists every change.",{"label":56,"to":17},"Read the migration guide",{"id":58,"headline":59,"body":60,"cta":61},"install","Install it your way.","A package for npm, yarn, pnpm or bun, or two tags from a CDN. Import everything or only the components you use.",{"label":13,"to":14},"landing","Components the browser already knows how to run.","QsxvMnCQ8bgawTVgX6YLkvZoqMKaQbFt0j1urNnrKQw",{"id":66,"title":67,"body":68,"changed":379,"description":380,"extension":381,"from":379,"meta":382,"navigation":383,"path":384,"seo":385,"since":379,"stem":386,"tags":387,"to":379,"__hash__":390},"docs_v1\u002Fdocs\u002Fv1\u002F04.components\u002F02.badge.md","Badge",{"type":69,"value":70,"toc":374},"minimark",[71,156,161,165,257,261,296,300,370],[72,73,74],"example",{},[75,76,81],"pre",{"className":77,"code":78,"language":79,"meta":80,"style":80},"language-html shiki shiki-themes perfectui-site","\u003Cspan class=\"pui-badge pui-solid pui-error\">3\u003C\u002Fspan>\n\u003Cspan class=\"pui-badge pui-soft pui-success\">active\u003C\u002Fspan>\n","html","",[82,83,84,127],"code",{"__ignoreMap":80},[85,86,89,93,96,100,103,106,110,112,115,119,122,124],"span",{"class":87,"line":88},"line",1,[85,90,92],{"class":91},"s8qk9","\u003C",[85,94,85],{"class":95},"sz5At",[85,97,99],{"class":98},"sz6eq"," class",[85,101,102],{"class":91},"=",[85,104,105],{"class":91},"\"",[85,107,109],{"class":108},"s8AH5","pui-badge pui-solid pui-error",[85,111,105],{"class":91},[85,113,114],{"class":91},">",[85,116,118],{"class":117},"stV6K","3",[85,120,121],{"class":91},"\u003C\u002F",[85,123,85],{"class":95},[85,125,126],{"class":91},">\n",[85,128,130,132,134,136,138,140,143,145,147,150,152,154],{"class":87,"line":129},2,[85,131,92],{"class":91},[85,133,85],{"class":95},[85,135,99],{"class":98},[85,137,102],{"class":91},[85,139,105],{"class":91},[85,141,142],{"class":108},"pui-badge pui-soft pui-success",[85,144,105],{"class":91},[85,146,114],{"class":91},[85,148,149],{"class":117},"active",[85,151,121],{"class":91},[85,153,85],{"class":95},[85,155,126],{"class":91},[157,158,160],"h2",{"id":159},"styles-and-colors","Styles and colors",[162,163,164],"p",{},"A badge takes the same styles and colors as everything else:",[72,166,167],{},[75,168,170],{"className":77,"code":169,"language":79,"meta":80,"style":80},"\u003Cspan class=\"pui-badge pui-solid pui-theme\">Solid\u003C\u002Fspan>\n\u003Cspan class=\"pui-badge pui-soft pui-theme\">Soft\u003C\u002Fspan>\n\u003Cspan class=\"pui-badge pui-outline pui-theme\">Outline\u003C\u002Fspan>\n",[82,171,172,200,228],{"__ignoreMap":80},[85,173,174,176,178,180,182,184,187,189,191,194,196,198],{"class":87,"line":88},[85,175,92],{"class":91},[85,177,85],{"class":95},[85,179,99],{"class":98},[85,181,102],{"class":91},[85,183,105],{"class":91},[85,185,186],{"class":108},"pui-badge pui-solid pui-theme",[85,188,105],{"class":91},[85,190,114],{"class":91},[85,192,193],{"class":117},"Solid",[85,195,121],{"class":91},[85,197,85],{"class":95},[85,199,126],{"class":91},[85,201,202,204,206,208,210,212,215,217,219,222,224,226],{"class":87,"line":129},[85,203,92],{"class":91},[85,205,85],{"class":95},[85,207,99],{"class":98},[85,209,102],{"class":91},[85,211,105],{"class":91},[85,213,214],{"class":108},"pui-badge pui-soft pui-theme",[85,216,105],{"class":91},[85,218,114],{"class":91},[85,220,221],{"class":117},"Soft",[85,223,121],{"class":91},[85,225,85],{"class":95},[85,227,126],{"class":91},[85,229,231,233,235,237,239,241,244,246,248,251,253,255],{"class":87,"line":230},3,[85,232,92],{"class":91},[85,234,85],{"class":95},[85,236,99],{"class":98},[85,238,102],{"class":91},[85,240,105],{"class":91},[85,242,243],{"class":108},"pui-badge pui-outline pui-theme",[85,245,105],{"class":91},[85,247,114],{"class":91},[85,249,250],{"class":117},"Outline",[85,252,121],{"class":91},[85,254,85],{"class":95},[85,256,126],{"class":91},[157,258,260],{"id":259},"rounded","Rounded",[72,262,263],{},[75,264,266],{"className":77,"code":265,"language":79,"meta":80,"style":80},"\u003Cspan class=\"pui-badge pui-solid pui-error pui-rounded-full\">9\u003C\u002Fspan>\n",[82,267,268],{"__ignoreMap":80},[85,269,270,272,274,276,278,280,283,285,287,290,292,294],{"class":87,"line":88},[85,271,92],{"class":91},[85,273,85],{"class":95},[85,275,99],{"class":98},[85,277,102],{"class":91},[85,279,105],{"class":91},[85,281,282],{"class":108},"pui-badge pui-solid pui-error pui-rounded-full",[85,284,105],{"class":91},[85,286,114],{"class":91},[85,288,289],{"class":117},"9",[85,291,121],{"class":91},[85,293,85],{"class":95},[85,295,126],{"class":91},[157,297,299],{"id":298},"inside-other-components","Inside other components",[72,301,302],{},[75,303,305],{"className":77,"code":304,"language":79,"meta":80,"style":80},"\u003Cbutton class=\"pui-btn pui-outline pui-surface\">\n  Inbox\n  \u003Cspan class=\"pui-badge pui-solid pui-theme pui-rounded-full\">12\u003C\u002Fspan>\n\u003C\u002Fbutton>\n",[82,306,307,327,332,361],{"__ignoreMap":80},[85,308,309,311,314,316,318,320,323,325],{"class":87,"line":88},[85,310,92],{"class":91},[85,312,313],{"class":95},"button",[85,315,99],{"class":98},[85,317,102],{"class":91},[85,319,105],{"class":91},[85,321,322],{"class":108},"pui-btn pui-outline pui-surface",[85,324,105],{"class":91},[85,326,126],{"class":91},[85,328,329],{"class":87,"line":129},[85,330,331],{"class":117},"  Inbox\n",[85,333,334,337,339,341,343,345,348,350,352,355,357,359],{"class":87,"line":230},[85,335,336],{"class":91},"  \u003C",[85,338,85],{"class":95},[85,340,99],{"class":98},[85,342,102],{"class":91},[85,344,105],{"class":91},[85,346,347],{"class":108},"pui-badge pui-solid pui-theme pui-rounded-full",[85,349,105],{"class":91},[85,351,114],{"class":91},[85,353,354],{"class":117},"12",[85,356,121],{"class":91},[85,358,85],{"class":95},[85,360,126],{"class":91},[85,362,364,366,368],{"class":87,"line":363},4,[85,365,121],{"class":91},[85,367,313],{"class":95},[85,369,126],{"class":91},[371,372,373],"style",{},"html pre.shiki code .s8qk9, html code.shiki .s8qk9{--shiki-default:var(--site-code-punct)}html pre.shiki code .sz5At, html code.shiki .sz5At{--shiki-default:var(--site-code-tag)}html pre.shiki code .sz6eq, html code.shiki .sz6eq{--shiki-default:var(--site-code-attr)}html pre.shiki code .s8AH5, html code.shiki .s8AH5{--shiki-default:var(--site-code-value)}html pre.shiki code .stV6K, html code.shiki .stV6K{--shiki-default:var(--site-code-text)}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);}",{"title":80,"searchDepth":129,"depth":129,"links":375},[376,377,378],{"id":159,"depth":129,"text":160},{"id":259,"depth":129,"text":260},{"id":298,"depth":129,"text":299},null,"The smallest shape in the library: a count or a short status.","md",{},true,"\u002Fdocs\u002Fv1\u002Fcomponents\u002Fbadge",{"title":67,"description":380},"docs\u002Fv1\u002F04.components\u002F02.badge",[388,389],"component","badge","KaMIlPmPVZNFw916SrB11STWreODEwzAYQ_Ktzq8JBw",[392],{"title":393,"path":14,"stem":394,"children":395,"page":425},"Docs","docs",[396],{"title":397,"path":398,"stem":399,"children":400,"page":425},"V1","\u002Fdocs\u002Fv1","docs\u002Fv1",[401,426,439,452,498],{"title":402,"path":403,"stem":404,"children":405,"page":425},"Getting Started","\u002Fdocs\u002Fv1\u002Fgetting-started","docs\u002Fv1\u002F01.getting-started",[406,410,414,418,421],{"title":407,"path":408,"stem":409},"Installation","\u002Fdocs\u002Fv1\u002Fgetting-started\u002Finstallation","docs\u002Fv1\u002F01.getting-started\u002F01.installation",{"title":411,"path":412,"stem":413},"TypeScript","\u002Fdocs\u002Fv1\u002Fgetting-started\u002Ftypescript","docs\u002Fv1\u002F01.getting-started\u002F02.typescript",{"title":415,"path":416,"stem":417},"Tailwind CSS","\u002Fdocs\u002Fv1\u002Fgetting-started\u002Ftailwind-css","docs\u002Fv1\u002F01.getting-started\u002F03.tailwind-css",{"title":16,"path":419,"stem":420},"\u002Fdocs\u002Fv1\u002Fgetting-started\u002Fmigrating-from-0-x","docs\u002Fv1\u002F01.getting-started\u002F04.migrating-from-0-x",{"title":422,"path":423,"stem":424},"License","\u002Fdocs\u002Fv1\u002Fgetting-started\u002Flicense","docs\u002Fv1\u002F01.getting-started\u002F05.license",false,{"title":427,"path":428,"stem":429,"children":430,"page":425},"Customization","\u002Fdocs\u002Fv1\u002Fcustomization","docs\u002Fv1\u002F02.customization",[431,435],{"title":432,"path":433,"stem":434},"Dark Mode","\u002Fdocs\u002Fv1\u002Fcustomization\u002Fdark-mode","docs\u002Fv1\u002F02.customization\u002F01.dark-mode",{"title":436,"path":437,"stem":438},"Theme Color","\u002Fdocs\u002Fv1\u002Fcustomization\u002Ftheme-color","docs\u002Fv1\u002F02.customization\u002F02.theme-color",{"title":440,"path":441,"stem":442,"children":443,"page":425},"General","\u002Fdocs\u002Fv1\u002Fgeneral","docs\u002Fv1\u002F03.general",[444,448],{"title":445,"path":446,"stem":447},"Layout Group","\u002Fdocs\u002Fv1\u002Fgeneral\u002Flayout-group","docs\u002Fv1\u002F03.general\u002F01.layout-group",{"title":449,"path":450,"stem":451},"Float","\u002Fdocs\u002Fv1\u002Fgeneral\u002Ffloat","docs\u002Fv1\u002F03.general\u002F02.float",{"title":453,"path":454,"stem":455,"children":456,"page":425},"Components","\u002Fdocs\u002Fv1\u002Fcomponents","docs\u002Fv1\u002F04.components",[457,461,462,466,470,474,478,482,486,490,494],{"title":458,"path":459,"stem":460},"Accordion","\u002Fdocs\u002Fv1\u002Fcomponents\u002Faccordion","docs\u002Fv1\u002F04.components\u002F01.accordion",{"title":67,"path":384,"stem":386},{"title":463,"path":464,"stem":465},"Button","\u002Fdocs\u002Fv1\u002Fcomponents\u002Fbutton","docs\u002Fv1\u002F04.components\u002F03.button",{"title":467,"path":468,"stem":469},"Card","\u002Fdocs\u002Fv1\u002Fcomponents\u002Fcard","docs\u002Fv1\u002F04.components\u002F04.card",{"title":471,"path":472,"stem":473},"Chip","\u002Fdocs\u002Fv1\u002Fcomponents\u002Fchip","docs\u002Fv1\u002F04.components\u002F05.chip",{"title":475,"path":476,"stem":477},"Dropdown","\u002Fdocs\u002Fv1\u002Fcomponents\u002Fdropdown","docs\u002Fv1\u002F04.components\u002F06.dropdown",{"title":479,"path":480,"stem":481},"List","\u002Fdocs\u002Fv1\u002Fcomponents\u002Flist","docs\u002Fv1\u002F04.components\u002F07.list",{"title":483,"path":484,"stem":485},"Modal","\u002Fdocs\u002Fv1\u002Fcomponents\u002Fmodal","docs\u002Fv1\u002F04.components\u002F08.modal",{"title":487,"path":488,"stem":489},"Table","\u002Fdocs\u002Fv1\u002Fcomponents\u002Ftable","docs\u002Fv1\u002F04.components\u002F09.table",{"title":491,"path":492,"stem":493},"Timeline","\u002Fdocs\u002Fv1\u002Fcomponents\u002Ftimeline","docs\u002Fv1\u002F04.components\u002F10.timeline",{"title":495,"path":496,"stem":497},"Tooltip","\u002Fdocs\u002Fv1\u002Fcomponents\u002Ftooltip","docs\u002Fv1\u002F04.components\u002F11.tooltip",{"title":499,"path":500,"stem":501,"children":502,"page":425},"Forms","\u002Fdocs\u002Fv1\u002Fforms","docs\u002Fv1\u002F05.forms",[503,507,511,515,519,523,527,531],{"title":504,"path":505,"stem":506},"Field Group","\u002Fdocs\u002Fv1\u002Fforms\u002Ffield-group","docs\u002Fv1\u002F05.forms\u002F01.field-group",{"title":508,"path":509,"stem":510},"Input","\u002Fdocs\u002Fv1\u002Fforms\u002Finput","docs\u002Fv1\u002F05.forms\u002F02.input",{"title":512,"path":513,"stem":514},"Input Group","\u002Fdocs\u002Fv1\u002Fforms\u002Finput-group","docs\u002Fv1\u002F05.forms\u002F03.input-group",{"title":516,"path":517,"stem":518},"Textarea","\u002Fdocs\u002Fv1\u002Fforms\u002Ftextarea","docs\u002Fv1\u002F05.forms\u002F04.textarea",{"title":520,"path":521,"stem":522},"Select","\u002Fdocs\u002Fv1\u002Fforms\u002Fselect","docs\u002Fv1\u002F05.forms\u002F05.select",{"title":524,"path":525,"stem":526},"Checkbox","\u002Fdocs\u002Fv1\u002Fforms\u002Fcheckbox","docs\u002Fv1\u002F05.forms\u002F06.checkbox",{"title":528,"path":529,"stem":530},"Radio","\u002Fdocs\u002Fv1\u002Fforms\u002Fradio","docs\u002Fv1\u002F05.forms\u002F07.radio",{"title":532,"path":533,"stem":534},"Switch","\u002Fdocs\u002Fv1\u002Fforms\u002Fswitch","docs\u002Fv1\u002F05.forms\u002F08.switch",1790354564585]