[{"data":1,"prerenderedAt":4315},["ShallowReactive",2],{"navigation_docs":3,"-developers-frameworks-expressions-and-styles":613,"-developers-frameworks-expressions-and-styles-surround":4312},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":517,"body":615,"description":644,"extension":4307,"links":4308,"meta":4309,"navigation":715,"path":518,"seo":4310,"stem":519,"__hash__":4311},"docs\u002F4.developers\u002F7.frameworks\u002F3.expressions-and-styles.md",{"type":616,"value":617,"toc":4303},"minimark",[618,626,638,1140,1570,1583,1589,1599,2265,2274,4286,4300],[619,620,622],"h2",{"id":621},"shadestackexpressions",[623,624,625],"code",{},"@shadestack\u002Fexpressions",[627,628,629,630,633,634,637],"p",{},"The website editor's expressions: a typed tree, never code. Framework-free and without\ndependencies. The tree stores them in its bindings; the rendering core evaluates them on the server\nand interprets client islands' live ones in the browser with the same ",[623,631,632],{},"evaluate","; the editor's ",[623,635,636],{},"fx"," bar parses and\nchecks them as they are typed, with the types the website module checks them with when a page is saved.",[639,640,645],"pre",{"className":641,"code":642,"language":643,"meta":644,"style":644},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { checkExpression, compileTemplate, createRuntime, evaluate, parseFormula, printFormula, t } from '@shadestack\u002Fexpressions'\n\nconst parsed = parseFormula('formatMoney(product.price) + \\' · \\' + upper(product.name)')\nif (!parsed.ok) console.log(parsed.problem) \u002F\u002F { message, start, end }\n\nconst scope = { names: { product: t.object({ name: t.text, price: t.money }) } }\nconst checked = checkExpression(parsed.expression, scope, { kinds: ['text'] })\n\u002F\u002F { ok: true, type: { kind: 'text' } }, or { ok: false, issues: [{ code, path, message }] }\n\nconst runtime = createRuntime({ locale: 'nl-NL', timeZone: 'Europe\u002FAmsterdam', translations: site.texts })\nevaluate(parsed.expression, { product: { name: 'Lamp', price: { amount: 1250, currency: 'EUR' } } }, runtime)\n\u002F\u002F '€ 12,50 · LAMP'\n\ncompileTemplate(parsed.expression, 'vue', { kind: 'text' }) \u002F\u002F '{{ fx_.add(…) }}', with `fx_` the runtime\nprintFormula(parsed.expression) \u002F\u002F 'formatMoney(product.price) + \\' · \\' + upper(product.name)'\n","ts","",[623,646,647,710,717,758,796,801,876,925,931,936,997,1070,1076,1081,1124],{"__ignoreMap":644},[648,649,652,656,660,664,667,670,672,675,677,680,682,685,687,690,692,695,698,701,704,707],"span",{"class":650,"line":651},"line",1,[648,653,655],{"class":654},"s7zQu","import",[648,657,659],{"class":658},"sMK4o"," {",[648,661,663],{"class":662},"sTEyZ"," checkExpression",[648,665,666],{"class":658},",",[648,668,669],{"class":662}," compileTemplate",[648,671,666],{"class":658},[648,673,674],{"class":662}," createRuntime",[648,676,666],{"class":658},[648,678,679],{"class":662}," evaluate",[648,681,666],{"class":658},[648,683,684],{"class":662}," parseFormula",[648,686,666],{"class":658},[648,688,689],{"class":662}," printFormula",[648,691,666],{"class":658},[648,693,694],{"class":662}," t",[648,696,697],{"class":658}," }",[648,699,700],{"class":654}," from",[648,702,703],{"class":658}," '",[648,705,625],{"class":706},"sfazB",[648,708,709],{"class":658},"'\n",[648,711,713],{"class":650,"line":712},2,[648,714,716],{"emptyLinePlaceholder":715},true,"\n",[648,718,720,724,727,730,733,736,739,742,745,748,750,753,755],{"class":650,"line":719},3,[648,721,723],{"class":722},"spNyl","const",[648,725,726],{"class":662}," parsed ",[648,728,729],{"class":658},"=",[648,731,684],{"class":732},"s2Zo4",[648,734,735],{"class":662},"(",[648,737,738],{"class":658},"'",[648,740,741],{"class":706},"formatMoney(product.price) + ",[648,743,744],{"class":662},"\\'",[648,746,747],{"class":706}," · ",[648,749,744],{"class":662},[648,751,752],{"class":706}," + upper(product.name)",[648,754,738],{"class":658},[648,756,757],{"class":662},")\n",[648,759,761,764,767,770,773,776,779,781,784,787,789,792],{"class":650,"line":760},4,[648,762,763],{"class":654},"if",[648,765,766],{"class":662}," (",[648,768,769],{"class":658},"!",[648,771,772],{"class":662},"parsed",[648,774,775],{"class":658},".",[648,777,778],{"class":662},"ok) console",[648,780,775],{"class":658},[648,782,783],{"class":732},"log",[648,785,786],{"class":662},"(parsed",[648,788,775],{"class":658},[648,790,791],{"class":662},"problem) ",[648,793,795],{"class":794},"sHwdD","\u002F\u002F { message, start, end }\n",[648,797,799],{"class":650,"line":798},5,[648,800,716],{"emptyLinePlaceholder":715},[648,802,804,806,809,811,813,817,820,822,825,827,829,831,834,836,839,842,844,846,848,851,853,856,858,860,862,865,868,871,873],{"class":650,"line":803},6,[648,805,723],{"class":722},[648,807,808],{"class":662}," scope ",[648,810,729],{"class":658},[648,812,659],{"class":658},[648,814,816],{"class":815},"swJcz"," names",[648,818,819],{"class":658},":",[648,821,659],{"class":658},[648,823,824],{"class":815}," product",[648,826,819],{"class":658},[648,828,694],{"class":662},[648,830,775],{"class":658},[648,832,833],{"class":732},"object",[648,835,735],{"class":662},[648,837,838],{"class":658},"{",[648,840,841],{"class":815}," name",[648,843,819],{"class":658},[648,845,694],{"class":662},[648,847,775],{"class":658},[648,849,850],{"class":662},"text",[648,852,666],{"class":658},[648,854,855],{"class":815}," price",[648,857,819],{"class":658},[648,859,694],{"class":662},[648,861,775],{"class":658},[648,863,864],{"class":662},"money ",[648,866,867],{"class":658},"}",[648,869,870],{"class":662},") ",[648,872,867],{"class":658},[648,874,875],{"class":658}," }\n",[648,877,879,881,884,886,888,890,892,895,897,900,902,904,907,909,912,914,916,918,921,923],{"class":650,"line":878},7,[648,880,723],{"class":722},[648,882,883],{"class":662}," checked ",[648,885,729],{"class":658},[648,887,663],{"class":732},[648,889,786],{"class":662},[648,891,775],{"class":658},[648,893,894],{"class":662},"expression",[648,896,666],{"class":658},[648,898,899],{"class":662}," scope",[648,901,666],{"class":658},[648,903,659],{"class":658},[648,905,906],{"class":815}," kinds",[648,908,819],{"class":658},[648,910,911],{"class":662}," [",[648,913,738],{"class":658},[648,915,850],{"class":706},[648,917,738],{"class":658},[648,919,920],{"class":662},"] ",[648,922,867],{"class":658},[648,924,757],{"class":662},[648,926,928],{"class":650,"line":927},8,[648,929,930],{"class":794},"\u002F\u002F { ok: true, type: { kind: 'text' } }, or { ok: false, issues: [{ code, path, message }] }\n",[648,932,934],{"class":650,"line":933},9,[648,935,716],{"emptyLinePlaceholder":715},[648,937,939,941,944,946,948,950,952,955,957,959,962,964,966,969,971,973,976,978,980,983,985,988,990,993,995],{"class":650,"line":938},10,[648,940,723],{"class":722},[648,942,943],{"class":662}," runtime ",[648,945,729],{"class":658},[648,947,674],{"class":732},[648,949,735],{"class":662},[648,951,838],{"class":658},[648,953,954],{"class":815}," locale",[648,956,819],{"class":658},[648,958,703],{"class":658},[648,960,961],{"class":706},"nl-NL",[648,963,738],{"class":658},[648,965,666],{"class":658},[648,967,968],{"class":815}," timeZone",[648,970,819],{"class":658},[648,972,703],{"class":658},[648,974,975],{"class":706},"Europe\u002FAmsterdam",[648,977,738],{"class":658},[648,979,666],{"class":658},[648,981,982],{"class":815}," translations",[648,984,819],{"class":658},[648,986,987],{"class":662}," site",[648,989,775],{"class":658},[648,991,992],{"class":662},"texts ",[648,994,867],{"class":658},[648,996,757],{"class":662},[648,998,1000,1002,1004,1006,1008,1010,1012,1014,1016,1018,1020,1022,1024,1027,1029,1031,1033,1035,1037,1040,1042,1046,1048,1051,1053,1055,1058,1060,1062,1064,1067],{"class":650,"line":999},11,[648,1001,632],{"class":732},[648,1003,786],{"class":662},[648,1005,775],{"class":658},[648,1007,894],{"class":662},[648,1009,666],{"class":658},[648,1011,659],{"class":658},[648,1013,824],{"class":815},[648,1015,819],{"class":658},[648,1017,659],{"class":658},[648,1019,841],{"class":815},[648,1021,819],{"class":658},[648,1023,703],{"class":658},[648,1025,1026],{"class":706},"Lamp",[648,1028,738],{"class":658},[648,1030,666],{"class":658},[648,1032,855],{"class":815},[648,1034,819],{"class":658},[648,1036,659],{"class":658},[648,1038,1039],{"class":815}," amount",[648,1041,819],{"class":658},[648,1043,1045],{"class":1044},"sbssI"," 1250",[648,1047,666],{"class":658},[648,1049,1050],{"class":815}," currency",[648,1052,819],{"class":658},[648,1054,703],{"class":658},[648,1056,1057],{"class":706},"EUR",[648,1059,738],{"class":658},[648,1061,697],{"class":658},[648,1063,697],{"class":658},[648,1065,1066],{"class":658}," },",[648,1068,1069],{"class":662}," runtime)\n",[648,1071,1073],{"class":650,"line":1072},12,[648,1074,1075],{"class":794},"\u002F\u002F '€ 12,50 · LAMP'\n",[648,1077,1079],{"class":650,"line":1078},13,[648,1080,716],{"emptyLinePlaceholder":715},[648,1082,1084,1087,1089,1091,1093,1095,1097,1100,1102,1104,1106,1109,1111,1113,1115,1117,1119,1121],{"class":650,"line":1083},14,[648,1085,1086],{"class":732},"compileTemplate",[648,1088,786],{"class":662},[648,1090,775],{"class":658},[648,1092,894],{"class":662},[648,1094,666],{"class":658},[648,1096,703],{"class":658},[648,1098,1099],{"class":706},"vue",[648,1101,738],{"class":658},[648,1103,666],{"class":658},[648,1105,659],{"class":658},[648,1107,1108],{"class":815}," kind",[648,1110,819],{"class":658},[648,1112,703],{"class":658},[648,1114,850],{"class":706},[648,1116,738],{"class":658},[648,1118,697],{"class":658},[648,1120,870],{"class":662},[648,1122,1123],{"class":794},"\u002F\u002F '{{ fx_.add(…) }}', with `fx_` the runtime\n",[648,1125,1127,1130,1132,1134,1137],{"class":650,"line":1126},15,[648,1128,1129],{"class":732},"printFormula",[648,1131,786],{"class":662},[648,1133,775],{"class":658},[648,1135,1136],{"class":662},"expression) ",[648,1138,1139],{"class":794},"\u002F\u002F 'formatMoney(product.price) + \\' · \\' + upper(product.name)'\n",[1141,1142,1143,1246,1287,1368,1396,1454,1554],"ul",{},[1144,1145,1146,1150,1151,1154,1155,766,1158,1161,1162,1165,1166,766,1169,1154,1171,1161,1174,1177,1178,1150,1181,1150,1184,1150,1187,1150,1190,1150,1193,1150,1196,1150,1199,1150,1202,1150,1205,1150,1208,1150,1210,1150,1213,1150,1216,1161,1219,1222,1223,1226,1227,1230,1231,1154,1234,1237,1238,1241,1242,1245],"li",{},[1147,1148,1149],"strong",{},"The AST:"," ",[623,1152,1153],{},"literal",", ",[623,1156,1157],{},"path",[623,1159,1160],{},"entry.title","), ",[623,1163,1164],{},"member"," (fields of what a call gives), ",[623,1167,1168],{},"unary",[623,1170,769],{},[623,1172,1173],{},"-",[623,1175,1176],{},"binary","\n(",[623,1179,1180],{},"==",[623,1182,1183],{},"!=",[623,1185,1186],{},"\u003C",[623,1188,1189],{},"\u003C=",[623,1191,1192],{},">",[623,1194,1195],{},">=",[623,1197,1198],{},"&&",[623,1200,1201],{},"||",[623,1203,1204],{},"??",[623,1206,1207],{},"+",[623,1209,1173],{},[623,1211,1212],{},"*",[623,1214,1215],{},"\u002F",[623,1217,1218],{},"%",[623,1220,1221],{},"conditional"," and ",[623,1224,1225],{},"call",". ",[623,1228,1229],{},"readExpression"," checks\nuntrusted input: strict shapes, canonical forms, no name that reaches a prototype (",[623,1232,1233],{},"__proto__",[623,1235,1236],{},"constructor",",\n",[623,1239,1240],{},"toString","…) and ",[623,1243,1244],{},"LIMITS"," (256 parts, 32 levels, 1,000 characters per text). Everything below runs it first.",[1144,1247,1248,1251,1252,1255,1256,1154,1259,1154,1262,1237,1265,1268,1269,1272,1273,1154,1275,1154,1277,1279,1280,1282,1283,1286],{},[1147,1249,1250],{},"Types:"," text, number, on\u002Foff, date (ISO 8601), money (",[623,1253,1254],{},"{ amount, currency }",", SHADE's money type: whole minor units, such as cents, and the currency), URL, rich text, link, image,\nnothing, optional values, lists, records and data sources (",[623,1257,1258],{},"t.text",[623,1260,1261],{},"t.list(…)",[623,1263,1264],{},"t.object({ … })",[623,1266,1267],{},"t.optional(…)","). ",[623,1270,1271],{},"checkExpression(expression, { names, unavailable, translations }, expected)"," refuses a text\nwhere on\u002Foff is expected, a text joined with a number, truthiness in ",[623,1274,1198],{},[623,1276,1201],{},[623,1278,769],{}," and conditions, and something\nthat may be nothing where a decision is made; each issue has the ",[623,1281,1157],{}," of the part (",[623,1284,1285],{},"args.0",") and a hint.",[1144,1288,1289,766,1292,1295,1296,1154,1299,1237,1302,1154,1305,1308,1309,1154,1312,1154,1315,1154,1318,1154,1321,1154,1324,1154,1327,1308,1330,1237,1333,1154,1336,1154,1339,1154,1342,1308,1345,1154,1348,1154,1351,1154,1354,1154,1357,1154,1360,1363,1364,1367],{},[1147,1290,1291],{},"Functions",[623,1293,1294],{},"FUNCTIONS",", with signatures and descriptions for autocomplete): ",[623,1297,1298],{},"formatDate",[623,1300,1301],{},"formatNumber",[623,1303,1304],{},"formatMoney",[623,1306,1307],{},"translate","; ",[623,1310,1311],{},"lower",[623,1313,1314],{},"upper",[623,1316,1317],{},"trim",[623,1319,1320],{},"slice",[623,1322,1323],{},"includes",[623,1325,1326],{},"startsWith",[623,1328,1329],{},"replace",[623,1331,1332],{},"length",[623,1334,1335],{},"first",[623,1337,1338],{},"last",[623,1340,1341],{},"join",[623,1343,1344],{},"isEmpty",[623,1346,1347],{},"min",[623,1349,1350],{},"max",[623,1352,1353],{},"round",[623,1355,1356],{},"floor",[623,1358,1359],{},"ceil",[623,1361,1362],{},"abs",". All pure; no patterns. Their\nnumber of arguments (",[623,1365,1366],{},"arity",") and their values are checked again when they run, whatever the checker said.",[1144,1369,1370,1150,1373,1375,1376,1379,1380,1154,1382,1384,1385,1387,1388,1391,1392,1395],{},[1147,1371,1372],{},"One interpreter, one runtime:",[623,1374,632],{}," and compiled code call the same runtime, so they agree. Fields are read\nfrom plain records' own properties only; anything else in the data (a function, a class instance, a Date) is\nrefused. Errors are ",[623,1377,1378],{},"ExpressionError","s (",[623,1381,623],{},[623,1383,1157],{},"), never a fallback value: report them and show\nnothing in their place. Dates with a time are compared by moment (",[623,1386,1180],{}," too, so ",[623,1389,1390],{},"a == b"," is ",[623,1393,1394],{},"a \u003C= b && a >= b","), a day next to one\nbeing its midnight UTC, and\none that isn't a real moment (a month 13, a 30 February) is an error.",[1144,1397,1398,1401,1402,1405,1406,1409,1410,1154,1413,1416,1417,1420,1421,766,1423,1426,1427,1430,1431,1434,1435,1438,1439,1441,1442,1445,1446,1449,1450,1453],{},[1147,1399,1400],{},"URLs:"," escaping doesn't make a URL safe, so the runtime's ",[623,1403,1404],{},"url(value, schemes)"," checks what an expression gives\nfor a URL place against the scheme allow-list (",[623,1407,1408],{},"LINK_SCHEMES"," by default; ",[623,1411,1412],{},"javascript:",[623,1414,1415],{},"data:"," and the other\n",[623,1418,1419],{},"NEVER_SCHEMES"," never pass): the URL, trimmed, null for nothing, or an ",[623,1422,1378],{},[623,1424,1425],{},"url","). Call it on what\nthe interpreter gives for an ",[623,1428,1429],{},"href",", a ",[623,1432,1433],{},"src"," or a ",[623,1436,1437],{},"navigate"," target; ",[623,1440,1086],{}," writes it into compiled code\nitself. ",[623,1443,1444],{},"knownUrlProblem(expression, schemes)"," checks the texts known when the expression is saved; past\n",[623,1447,1448],{},"MAX_KNOWN_URLS"," (64) of them it refuses with ",[623,1451,1452],{},"TOO_MANY_URLS"," instead of checking only some.",[1144,1455,1456,766,1459,1154,1462,1465,1466,1469,1470,1473,1474,1237,1477,1154,1480,1154,1483,1154,1486,1154,1489,1154,1492,1154,1495,1154,1498,1154,1501,1222,1504,1177,1507,1510,1511,1514,1515,1517,1518,1521,1522,1154,1524,1154,1527,1530,1531,1534,1535,1537,1538,1541,1542,1545,1546,1549,1550,1553],{},[1147,1457,1458],{},"Compiled code",[623,1460,1461],{},"compileExpression",[623,1463,1464],{},"compileTemplate(expression, 'jsx' | 'vue' | 'svelte', place, { runtime, names })",") is one JavaScript expression with text literals escaped to ",[623,1467,1468],{},"\\uXXXX",", placed where the framework escapes\nit, never as HTML; ",[623,1471,1472],{},"on*"," attributes and roots that are JavaScript keywords are refused, and so are ",[623,1475,1476],{},"style",[623,1478,1479],{},"srcdoc",[623,1481,1482],{},"formaction",[623,1484,1485],{},"srcset",[623,1487,1488],{},"imagesrcset",[623,1490,1491],{},"http-equiv",[623,1493,1494],{},"id",[623,1496,1497],{},"name",[623,1499,1500],{},"target",[623,1502,1503],{},"rel",[623,1505,1506],{},"role",[623,1508,1509],{},"UNBINDABLE_ATTRIBUTES","). A URL attribute (",[623,1512,1513],{},"URL_ATTRIBUTES",": ",[623,1516,1429],{}," with the links' schemes, ",[623,1519,1520],{},"cite"," the web's,\n",[623,1523,1433],{},[623,1525,1526],{},"action",[623,1528,1529],{},"poster"," and the others https only) is wrapped in ",[623,1532,1533],{},"fx_.url(…, [schemes])",", so a client island can't show a ",[623,1536,1412],{}," link from state or\nan entry's text; ",[623,1539,1540],{},"{ kind: 'attribute', name, schemes }"," sets other schemes. Bind the runtime in the template's\nscope as ",[623,1543,1544],{},"fx_"," (or ",[623,1547,1548],{},"runtime","), and the roots under their names (or ",[623,1551,1552],{},"names",").",[1144,1555,1556,1150,1559,1562,1563,1565,1566,1569],{},[1147,1557,1558],{},"The formula bar:",[623,1560,1561],{},"parseFormula"," (with the span of every part, and errors with where and why), ",[623,1564,1129],{},"\nand ",[623,1567,1568],{},"formatFormula"," (with spans). They round-trip.",[627,1571,1572,1573,1514,1576,1579,1580,775],{},"Code, in ",[623,1574,1575],{},"shade-frontend",[623,1577,1578],{},"packages\u002Fexpressions\u002Fsrc\u002F",". Tests: ",[623,1581,1582],{},"packages\u002Fexpressions\u002Ftest\u002F*.test.ts",[619,1584,1586],{"id":1585},"shadestackstyles",[623,1587,1588],{},"@shadestack\u002Fstyles",[627,1590,1591,1592,1598],{},"The website editor's styles. Framework-free, with no dependencies, and not a site\npackage itself: the renderers write what it says on elements, the website module stores the styles and compiles\nthem at publish, the style panel edits them, and the accessibility checker\n(",[1593,1594,1595],"a",{"href":530},[623,1596,1597],{},"@shadestack\u002Fa11y",") reads their contrast. Styles live beside the trees, keyed by class id, and local\nstyles by tree id and node id (node ids are unique within one tree only); the tree only names classes.",[639,1600,1602],{"className":641,"code":1601,"language":643,"meta":644,"style":644},"import { compileStyles, originOf, contrastInModes, themeStyleSheet, type StyleSheet } from '@shadestack\u002Fstyles'\n\nconst styles: StyleSheet = {\n  ...themeStyleSheet(theme), \u002F\u002F the theme's tokens as the default variables; mobile-first, tablet from 768px and desktop from 992px\n  classes: [{\n    id: 'button',\n    name: 'Button',\n    rules: [\n      { declarations: { 'background-color': { kind: 'var', name: 'color-primary' }, 'padding-top': { kind: 'var', name: 'space-3' } } },\n      { breakpoint: 'mobile', declarations: { 'padding-top': { kind: 'length', value: 0.5, unit: 'rem' } } },\n      { state: 'hover', declarations: { 'background-color': { kind: 'color', hex: '#1d4ed8' } } }\n    ]\n  }],\n  \u002F\u002F Local styles by tree id (the page's record), then node id.\n  local: { 'page-1': { hero01: { rules: [{ declarations: { 'font-size': { kind: 'fluid', min: { kind: 'length', value: 2, unit: 'rem' }, max: { kind: 'length', value: 3.5, unit: 'rem' } } } }] } } }\n}\n\nconst result = compileStyles(styles, { resolveMedia: id => media.url(id) })\nif (result.ok) writeFile('styles.css', result.css) \u002F\u002F one minified file, the same bytes for the same styles\nelse console.log(result.issues) \u002F\u002F [{ code, path, message }], at most 200; nothing written\n",[623,1603,1604,1646,1650,1668,1684,1696,1712,1728,1738,1828,1902,1967,1972,1982,1987,2147,2153,2158,2203,2241],{"__ignoreMap":644},[648,1605,1606,1608,1610,1613,1615,1618,1620,1623,1625,1628,1630,1633,1636,1638,1640,1642,1644],{"class":650,"line":651},[648,1607,655],{"class":654},[648,1609,659],{"class":658},[648,1611,1612],{"class":662}," compileStyles",[648,1614,666],{"class":658},[648,1616,1617],{"class":662}," originOf",[648,1619,666],{"class":658},[648,1621,1622],{"class":662}," contrastInModes",[648,1624,666],{"class":658},[648,1626,1627],{"class":662}," themeStyleSheet",[648,1629,666],{"class":658},[648,1631,1632],{"class":654}," type",[648,1634,1635],{"class":662}," StyleSheet",[648,1637,697],{"class":658},[648,1639,700],{"class":654},[648,1641,703],{"class":658},[648,1643,1588],{"class":706},[648,1645,709],{"class":658},[648,1647,1648],{"class":650,"line":712},[648,1649,716],{"emptyLinePlaceholder":715},[648,1651,1652,1654,1657,1659,1662,1665],{"class":650,"line":719},[648,1653,723],{"class":722},[648,1655,1656],{"class":662}," styles",[648,1658,819],{"class":658},[648,1660,1635],{"class":1661},"sBMFI",[648,1663,1664],{"class":658}," =",[648,1666,1667],{"class":658}," {\n",[648,1669,1670,1673,1676,1679,1681],{"class":650,"line":760},[648,1671,1672],{"class":658},"  ...",[648,1674,1675],{"class":732},"themeStyleSheet",[648,1677,1678],{"class":662},"(theme)",[648,1680,666],{"class":658},[648,1682,1683],{"class":794}," \u002F\u002F the theme's tokens as the default variables; mobile-first, tablet from 768px and desktop from 992px\n",[648,1685,1686,1689,1691,1693],{"class":650,"line":798},[648,1687,1688],{"class":815},"  classes",[648,1690,819],{"class":658},[648,1692,911],{"class":662},[648,1694,1695],{"class":658},"{\n",[648,1697,1698,1701,1703,1705,1708,1710],{"class":650,"line":803},[648,1699,1700],{"class":815},"    id",[648,1702,819],{"class":658},[648,1704,703],{"class":658},[648,1706,1707],{"class":706},"button",[648,1709,738],{"class":658},[648,1711,1237],{"class":658},[648,1713,1714,1717,1719,1721,1724,1726],{"class":650,"line":878},[648,1715,1716],{"class":815},"    name",[648,1718,819],{"class":658},[648,1720,703],{"class":658},[648,1722,1723],{"class":706},"Button",[648,1725,738],{"class":658},[648,1727,1237],{"class":658},[648,1729,1730,1733,1735],{"class":650,"line":927},[648,1731,1732],{"class":815},"    rules",[648,1734,819],{"class":658},[648,1736,1737],{"class":662}," [\n",[648,1739,1740,1743,1746,1748,1750,1752,1755,1757,1759,1761,1763,1765,1767,1770,1772,1774,1776,1778,1780,1783,1785,1787,1789,1792,1794,1796,1798,1800,1802,1804,1806,1808,1810,1812,1814,1816,1819,1821,1823,1825],{"class":650,"line":933},[648,1741,1742],{"class":658},"      {",[648,1744,1745],{"class":815}," declarations",[648,1747,819],{"class":658},[648,1749,659],{"class":658},[648,1751,703],{"class":658},[648,1753,1754],{"class":815},"background-color",[648,1756,738],{"class":658},[648,1758,819],{"class":658},[648,1760,659],{"class":658},[648,1762,1108],{"class":815},[648,1764,819],{"class":658},[648,1766,703],{"class":658},[648,1768,1769],{"class":706},"var",[648,1771,738],{"class":658},[648,1773,666],{"class":658},[648,1775,841],{"class":815},[648,1777,819],{"class":658},[648,1779,703],{"class":658},[648,1781,1782],{"class":706},"color-primary",[648,1784,738],{"class":658},[648,1786,1066],{"class":658},[648,1788,703],{"class":658},[648,1790,1791],{"class":815},"padding-top",[648,1793,738],{"class":658},[648,1795,819],{"class":658},[648,1797,659],{"class":658},[648,1799,1108],{"class":815},[648,1801,819],{"class":658},[648,1803,703],{"class":658},[648,1805,1769],{"class":706},[648,1807,738],{"class":658},[648,1809,666],{"class":658},[648,1811,841],{"class":815},[648,1813,819],{"class":658},[648,1815,703],{"class":658},[648,1817,1818],{"class":706},"space-3",[648,1820,738],{"class":658},[648,1822,697],{"class":658},[648,1824,697],{"class":658},[648,1826,1827],{"class":658}," },\n",[648,1829,1830,1832,1835,1837,1839,1842,1844,1846,1848,1850,1852,1854,1856,1858,1860,1862,1864,1866,1868,1870,1872,1874,1877,1879,1882,1884,1887,1889,1891,1894,1896,1898,1900],{"class":650,"line":938},[648,1831,1742],{"class":658},[648,1833,1834],{"class":815}," breakpoint",[648,1836,819],{"class":658},[648,1838,703],{"class":658},[648,1840,1841],{"class":706},"mobile",[648,1843,738],{"class":658},[648,1845,666],{"class":658},[648,1847,1745],{"class":815},[648,1849,819],{"class":658},[648,1851,659],{"class":658},[648,1853,703],{"class":658},[648,1855,1791],{"class":815},[648,1857,738],{"class":658},[648,1859,819],{"class":658},[648,1861,659],{"class":658},[648,1863,1108],{"class":815},[648,1865,819],{"class":658},[648,1867,703],{"class":658},[648,1869,1332],{"class":706},[648,1871,738],{"class":658},[648,1873,666],{"class":658},[648,1875,1876],{"class":815}," value",[648,1878,819],{"class":658},[648,1880,1881],{"class":1044}," 0.5",[648,1883,666],{"class":658},[648,1885,1886],{"class":815}," unit",[648,1888,819],{"class":658},[648,1890,703],{"class":658},[648,1892,1893],{"class":706},"rem",[648,1895,738],{"class":658},[648,1897,697],{"class":658},[648,1899,697],{"class":658},[648,1901,1827],{"class":658},[648,1903,1904,1906,1909,1911,1913,1916,1918,1920,1922,1924,1926,1928,1930,1932,1934,1936,1938,1940,1942,1945,1947,1949,1952,1954,1956,1959,1961,1963,1965],{"class":650,"line":999},[648,1905,1742],{"class":658},[648,1907,1908],{"class":815}," state",[648,1910,819],{"class":658},[648,1912,703],{"class":658},[648,1914,1915],{"class":706},"hover",[648,1917,738],{"class":658},[648,1919,666],{"class":658},[648,1921,1745],{"class":815},[648,1923,819],{"class":658},[648,1925,659],{"class":658},[648,1927,703],{"class":658},[648,1929,1754],{"class":815},[648,1931,738],{"class":658},[648,1933,819],{"class":658},[648,1935,659],{"class":658},[648,1937,1108],{"class":815},[648,1939,819],{"class":658},[648,1941,703],{"class":658},[648,1943,1944],{"class":706},"color",[648,1946,738],{"class":658},[648,1948,666],{"class":658},[648,1950,1951],{"class":815}," hex",[648,1953,819],{"class":658},[648,1955,703],{"class":658},[648,1957,1958],{"class":706},"#1d4ed8",[648,1960,738],{"class":658},[648,1962,697],{"class":658},[648,1964,697],{"class":658},[648,1966,875],{"class":658},[648,1968,1969],{"class":650,"line":1072},[648,1970,1971],{"class":662},"    ]\n",[648,1973,1974,1977,1980],{"class":650,"line":1078},[648,1975,1976],{"class":658},"  }",[648,1978,1979],{"class":662},"]",[648,1981,1237],{"class":658},[648,1983,1984],{"class":650,"line":1083},[648,1985,1986],{"class":794},"  \u002F\u002F Local styles by tree id (the page's record), then node id.\n",[648,1988,1989,1992,1994,1996,1998,2001,2003,2005,2007,2010,2012,2014,2017,2019,2021,2023,2025,2027,2029,2031,2034,2036,2038,2040,2042,2044,2046,2049,2051,2053,2056,2058,2060,2062,2064,2066,2068,2070,2072,2074,2076,2079,2081,2083,2085,2087,2089,2091,2093,2096,2098,2100,2102,2104,2106,2108,2110,2112,2114,2116,2119,2121,2123,2125,2127,2129,2131,2133,2135,2137,2139,2141,2143,2145],{"class":650,"line":1126},[648,1990,1991],{"class":815},"  local",[648,1993,819],{"class":658},[648,1995,659],{"class":658},[648,1997,703],{"class":658},[648,1999,2000],{"class":815},"page-1",[648,2002,738],{"class":658},[648,2004,819],{"class":658},[648,2006,659],{"class":658},[648,2008,2009],{"class":815}," hero01",[648,2011,819],{"class":658},[648,2013,659],{"class":658},[648,2015,2016],{"class":815}," rules",[648,2018,819],{"class":658},[648,2020,911],{"class":662},[648,2022,838],{"class":658},[648,2024,1745],{"class":815},[648,2026,819],{"class":658},[648,2028,659],{"class":658},[648,2030,703],{"class":658},[648,2032,2033],{"class":815},"font-size",[648,2035,738],{"class":658},[648,2037,819],{"class":658},[648,2039,659],{"class":658},[648,2041,1108],{"class":815},[648,2043,819],{"class":658},[648,2045,703],{"class":658},[648,2047,2048],{"class":706},"fluid",[648,2050,738],{"class":658},[648,2052,666],{"class":658},[648,2054,2055],{"class":815}," min",[648,2057,819],{"class":658},[648,2059,659],{"class":658},[648,2061,1108],{"class":815},[648,2063,819],{"class":658},[648,2065,703],{"class":658},[648,2067,1332],{"class":706},[648,2069,738],{"class":658},[648,2071,666],{"class":658},[648,2073,1876],{"class":815},[648,2075,819],{"class":658},[648,2077,2078],{"class":1044}," 2",[648,2080,666],{"class":658},[648,2082,1886],{"class":815},[648,2084,819],{"class":658},[648,2086,703],{"class":658},[648,2088,1893],{"class":706},[648,2090,738],{"class":658},[648,2092,1066],{"class":658},[648,2094,2095],{"class":815}," max",[648,2097,819],{"class":658},[648,2099,659],{"class":658},[648,2101,1108],{"class":815},[648,2103,819],{"class":658},[648,2105,703],{"class":658},[648,2107,1332],{"class":706},[648,2109,738],{"class":658},[648,2111,666],{"class":658},[648,2113,1876],{"class":815},[648,2115,819],{"class":658},[648,2117,2118],{"class":1044}," 3.5",[648,2120,666],{"class":658},[648,2122,1886],{"class":815},[648,2124,819],{"class":658},[648,2126,703],{"class":658},[648,2128,1893],{"class":706},[648,2130,738],{"class":658},[648,2132,697],{"class":658},[648,2134,697],{"class":658},[648,2136,697],{"class":658},[648,2138,697],{"class":658},[648,2140,920],{"class":662},[648,2142,867],{"class":658},[648,2144,697],{"class":658},[648,2146,875],{"class":658},[648,2148,2150],{"class":650,"line":2149},16,[648,2151,2152],{"class":658},"}\n",[648,2154,2156],{"class":650,"line":2155},17,[648,2157,716],{"emptyLinePlaceholder":715},[648,2159,2161,2163,2166,2168,2170,2173,2175,2177,2180,2182,2186,2189,2192,2194,2196,2199,2201],{"class":650,"line":2160},18,[648,2162,723],{"class":722},[648,2164,2165],{"class":662}," result ",[648,2167,729],{"class":658},[648,2169,1612],{"class":732},[648,2171,2172],{"class":662},"(styles",[648,2174,666],{"class":658},[648,2176,659],{"class":658},[648,2178,2179],{"class":732}," resolveMedia",[648,2181,819],{"class":658},[648,2183,2185],{"class":2184},"sHdIc"," id",[648,2187,2188],{"class":722}," =>",[648,2190,2191],{"class":662}," media",[648,2193,775],{"class":658},[648,2195,1425],{"class":732},[648,2197,2198],{"class":662},"(id) ",[648,2200,867],{"class":658},[648,2202,757],{"class":662},[648,2204,2206,2208,2211,2213,2216,2219,2221,2223,2226,2228,2230,2233,2235,2238],{"class":650,"line":2205},19,[648,2207,763],{"class":654},[648,2209,2210],{"class":662}," (result",[648,2212,775],{"class":658},[648,2214,2215],{"class":662},"ok) ",[648,2217,2218],{"class":732},"writeFile",[648,2220,735],{"class":662},[648,2222,738],{"class":658},[648,2224,2225],{"class":706},"styles.css",[648,2227,738],{"class":658},[648,2229,666],{"class":658},[648,2231,2232],{"class":662}," result",[648,2234,775],{"class":658},[648,2236,2237],{"class":662},"css) ",[648,2239,2240],{"class":794},"\u002F\u002F one minified file, the same bytes for the same styles\n",[648,2242,2244,2247,2250,2252,2254,2257,2259,2262],{"class":650,"line":2243},20,[648,2245,2246],{"class":654},"else",[648,2248,2249],{"class":662}," console",[648,2251,775],{"class":658},[648,2253,783],{"class":732},[648,2255,2256],{"class":662},"(result",[648,2258,775],{"class":658},[648,2260,2261],{"class":662},"issues) ",[648,2263,2264],{"class":794},"\u002F\u002F [{ code, path, message }], at most 200; nothing written\n",[627,2266,2267,2270,2271,1553],{},[623,2268,2269],{},"omitCollections"," leaves out the variables of collections a frontend writes itself: the website module leaves out the\ntheme's, which the site writes once from the current theme (",[623,2272,2273],{},"themeToCss",[1141,2275,2276,2340,2360,2410,2648,2698,2981,3096,3327,3525,3746,3758,3789,3817,3961,3979,4112,4160,4172,4245,4255],{},[1144,2277,2278,2281,2282,2285,2286,2289,2290,1154,2293,2289,2295,2298,2299,766,2302,1154,2305,2308,2309,2312,2313,2316,2317,2320,2321,2324,2325,2328,2329,766,2332,2335,2336,2339],{},[1147,2279,2280],{},"Rendering."," An element's ",[623,2283,2284],{},"class"," attribute holds its class ids as they are (the stylesheet escapes them where\nCSS needs it: ",[623,2287,2288],{},"2col"," as ",[623,2291,2292],{},".\\32 col",[623,2294,1173],{},[623,2296,2297],{},".\\2d ","); a node with local styles gets\n",[623,2300,2301],{},"data-s=\"\u003Ctree hook>:\u003Cnode id>\"",[623,2303,2304],{},"localStyleKey(treeId, nodeId)",[623,2306,2307],{},"LOCAL_STYLE_ATTRIBUTE","): the hook is a short\nhash of the tree id (",[623,2310,2311],{},"treeHook","), the same every publish, and ",[623,2314,2315],{},"validateStyles"," refuses two trees of one sheet with one\nhook. The tree refuses ",[623,2318,2319],{},"data-s"," from the team like every ",[623,2322,2323],{},"data-shade-*"," attribute. A page picks a variable mode with\n",[623,2326,2327],{},"data-shade-mode=\"dark\""," on ",[623,2330,2331],{},"\u003Chtml>",[623,2333,2334],{},"MODE_ATTRIBUTE","), or on any element for the part inside it (a light section\nin a dark page); without it, the visitor's ",[623,2337,2338],{},"prefers-color-scheme"," decides.",[1144,2341,2342,2345,2346,1177,2349,1154,2352,2355,2356,2359],{},[1147,2343,2344],{},"SHADE's own names."," A renderer's, widget's or the editor's classes and custom properties start with ",[623,2347,2348],{},"shade-",[623,2350,2351],{},"RESERVED_CLASS_PREFIXES",[623,2353,2354],{},"RESERVED_VARIABLE_PREFIXES","), and classes under ",[623,2357,2358],{},"site-"," are SHADE's site's own.\nStyles refuse class ids and variable names under them, so no style can hide the consent banner.",[1144,2361,2362,2365,2366,1154,2368,1154,2371,1154,2374,1154,2377,1154,2380,2383,2384,1154,2387,1237,2390,1154,2393,2396,2397,2400,2401,1308,2404,1391,2406,2409],{},[1147,2363,2364],{},"Rules"," hold the declarations for one context: the base or one condition (a breakpoint, a container query, a\nvisitor's setting, a feature test or an island's state); no state or\n",[623,2367,1915],{},[623,2369,2370],{},"focus",[623,2372,2373],{},"focus-visible",[623,2375,2376],{},"active",[623,2378,2379],{},"checked",[623,2381,2382],{},"disabled","; the element or ",[623,2385,2386],{},"::before",[623,2388,2389],{},"::after",[623,2391,2392],{},"::placeholder",[623,2394,2395],{},"::marker",". These are the only selectors: each state is written as ",[623,2398,2399],{},"STATE_SELECTORS"," says, inside\n",[623,2402,2403],{},":where()",[623,2405,2379],{},[623,2407,2408],{},":where(:checked,:has(:checked))",", a checked input and what holds one (the label around a\nradio).",[1144,2411,2412,766,2415,2418,2419,2421,2422,1154,2425,1154,2428,1154,2431,2433,2434,1154,2437,2439,2440,766,2442,2445,2446,1154,2449,1154,2452,2455,2456,2459,2460,2463,2464,2467,2468,2471,2472,2475,2476,2479,2480,2483,2484,1154,2487,2490,2491,1514,2493,1161,2496,1154,2499,1154,2502,1154,2505,2508,2509,2512,2513,1215,2515,2517,2518,766,2521,2524,2525,2528,2529,2532,2533,2535,2536,1161,2539,1177,2542,2545,2546,766,2549,1154,2551,2554,2555,2558,2559,2562,2563,2566,2567,2570,2571,1161,2574,2577,2578,2581,2582,766,2585,1514,2588,2591,2592,1237,2594,1222,2596,2598,2599,2602,2603,1154,2606,2609,2610,2613,2614,2617,2618,2620,2621,2624,2625,1154,2628,2631,2632,2635,2636,2639,2640,2643,2644,2647],{},[1147,2413,2414],{},"Values are typed, never text",[623,2416,2417],{},"values.ts","): ",[623,2420,1332],{}," (with a unit), ",[623,2423,2424],{},"number",[623,2426,2427],{},"angle",[623,2429,2430],{},"time",[623,2432,1944],{}," (hex),\n",[623,2435,2436],{},"keyword",[623,2438,1769],{}," (a defined variable of a type the property takes), ",[623,2441,2048],{},[623,2443,2444],{},"clamp()"," from a minimum to a maximum\nover the sheet's viewport range, 375–1440 by default), ",[623,2447,2448],{},"font",[623,2450,2451],{},"shadow",[623,2453,2454],{},"image"," (a media library id, resolved by\n",[623,2457,2458],{},"resolveMedia"," and checked again, or a path on the site), ",[623,2461,2462],{},"gradient"," (linear: an angle) and ",[623,2465,2466],{},"radial-gradient"," (a\n",[623,2469,2470],{},"circle"," or ",[623,2473,2474],{},"ellipse",", a size keyword, a centre in percentages or ",[623,2477,2478],{},"'pointer'",", below), both with ",[623,2481,2482],{},"repeating"," and stops at a percentage or a\nlength in ",[623,2485,2486],{},"STOP_UNITS",[623,2488,2489],{},"calc"," (two lengths added or subtracted, in any units the property takes, where its entry\nhas ",[623,2492,2489],{},[623,2494,2495],{},"calc(100% - 96px)",[623,2497,2498],{},"tracks",[623,2500,2501],{},"placement",[623,2503,2504],{},"ratio",[623,2506,2507],{},"string"," (only ",[623,2510,2511],{},"content"," on\n",[623,2514,2386],{},[623,2516,2389],{},", hex-escaped), ",[623,2519,2520],{},"areas",[623,2522,2523],{},"grid-template-areas",": rows of cells, each a name in ",[623,2526,2527],{},"AREA_NAME"," or\n",[623,2530,2531],{},"null"," for ",[623,2534,775],{},", every row as long, each name's cells a rectangle, never a name in ",[623,2537,2538],{},"RESERVED_AREA_NAMES",[623,2540,2541],{},"area",[623,2543,2544],{},"grid-area",": one such name), ",[623,2547,2548],{},"filter",[623,2550,2548],{},[623,2552,2553],{},"backdrop-filter",": 1–8 functions, ",[623,2556,2557],{},"blur"," with a length in\n",[623,2560,2561],{},"BLUR_UNITS",", an ",[623,2564,2565],{},"amount"," for the ",[623,2568,2569],{},"FILTER_AMOUNTS"," (1 is 100%; up to 1 or ",[623,2572,2573],{},"MAX_FILTER_AMOUNT",[623,2575,2576],{},"hue-rotate"," with\nan angle, ",[623,2579,2580],{},"drop-shadow"," with lengths and a colour), ",[623,2583,2584],{},"clip",[623,2586,2587],{},"clip-path",[623,2589,2590],{},"inset"," with four sides and ",[623,2593,1353],{},[623,2595,2470],{},[623,2597,2474],{}," with radii (a length or ",[623,2600,2601],{},"CLIP_RADII",") and a centre ",[623,2604,2605],{},"at",[623,2607,2608],{},"polygon"," with 3–24 points; lengths\nor percentages), and ",[623,2611,2612],{},"list"," where a property takes several. ",[623,2615,2616],{},"text-shadow"," takes ",[623,2619,2451],{}," without spread or inset\n(",[623,2622,2623],{},"textShadow"," in its entry), a shadow variable's value held to that too. Values CSS would\ndrop are refused: ",[623,2626,2627],{},"repeat(auto-fit, 1fr)",[623,2629,2630],{},"fr"," as a ",[623,2633,2634],{},"minmax()"," minimum, ",[623,2637,2638],{},"none"," inside a list, ",[623,2641,2642],{},"top 10px",", and a\n",[623,2645,2646],{},"var()"," whose variable comes to a value the property doesn't take in some mode.",[1144,2649,2650,2653,2654,766,2657,1154,2660,2663,2664,2667,2668,1215,2671,1222,2674,2667,2676,1215,2679,2682,2683,1514,2686,1154,2689,1237,2692,1222,2694,2697],{},[1147,2651,2652],{},"Properties"," come from the allow-list in ",[623,2655,2656],{},"properties.ts",[623,2658,2659],{},"PROPERTIES",[623,2661,2662],{},"propertySpec","), longhands only, each with\nits kinds, units, keywords, ranges and variable types. Adding one is adding its entry; never a free value. Two pairs\noverlap as CSS has them, ",[623,2665,2666],{},"overflow"," with ",[623,2669,2670],{},"overflow-x",[623,2672,2673],{},"overflow-y",[623,2675,2544],{},[623,2677,2678],{},"grid-column",[623,2680,2681],{},"grid-row",":\nthe narrower is later in the order, so it wins within a rule. There is no ",[623,2684,2685],{},"transform",[623,2687,2688],{},"rotate",[623,2690,2691],{},"scale",[623,2693,1307],{},[623,2695,2696],{},"transform-origin"," cover it.",[1144,2699,2700,2703,2704,2707,2708,2711,2712,766,2715,1237,2718,2721,2722,766,2725,1154,2728,2731,2732,2734,2735,1514,2738,1154,2741,2471,2744,2747,2748,2750,2751,2753,2754,2757,2758,2761,2762],{},[1147,2701,2702],{},"3D transforms"," (experimental, as the text outline below). ",[623,2705,2706],{},"perspective"," (none, a length from 0 to 10000 without\na percentage, or a size variable) and ",[623,2709,2710],{},"perspective-origin"," (a position) go on a parent; ",[623,2713,2714],{},"transform-style",[623,2716,2717],{},"flat",[623,2719,2720],{},"preserve-3d",") and ",[623,2723,2724],{},"backface-visibility",[623,2726,2727],{},"visible",[623,2729,2730],{},"hidden",") are keywords. ",[623,2733,2688],{}," takes an angle, a turn in the\nplane, or a list of an axis and an angle (the entry's ",[623,2736,2737],{},"axis",[623,2739,2740],{},"x",[623,2742,2743],{},"y",[623,2745,2746],{},"z","), one axis as CSS's ",[623,2749,2688],{}," has it.\n",[623,2752,1307],{}," takes a third value, a depth (the entry's ",[623,2755,2756],{},"depth","): a length without a percentage or ",[623,2759,2760],{},"calc()",", from\n-10000 to 10000.",[639,2763,2765],{"className":641,"code":2764,"language":643,"meta":644,"style":644},"{ 'perspective': px(1200), 'transform-style': kw('preserve-3d') }                    \u002F\u002F the stage\n{ 'rotate': { kind: 'list', items: [kw('x'), { kind: 'angle', value: 55, unit: 'deg' }] },\n  'translate': { kind: 'list', items: [px(0), px(0), px(120)] } }                     \u002F\u002F a layer\n\u002F\u002F .layer{rotate:x 55deg;translate:0px 0px 120px}\n",[623,2766,2767,2818,2906,2976],{"__ignoreMap":644},[648,2768,2769,2771,2773,2775,2777,2779,2782,2784,2787,2790,2792,2794,2796,2798,2800,2803,2805,2807,2809,2811,2813,2815],{"class":650,"line":651},[648,2770,838],{"class":658},[648,2772,703],{"class":658},[648,2774,2706],{"class":706},[648,2776,738],{"class":658},[648,2778,1514],{"class":815},[648,2780,2781],{"class":732},"px",[648,2783,735],{"class":815},[648,2785,2786],{"class":1044},"1200",[648,2788,2789],{"class":815},")",[648,2791,666],{"class":658},[648,2793,703],{"class":658},[648,2795,2714],{"class":706},[648,2797,738],{"class":658},[648,2799,1514],{"class":815},[648,2801,2802],{"class":732},"kw",[648,2804,735],{"class":815},[648,2806,738],{"class":658},[648,2808,2720],{"class":706},[648,2810,738],{"class":658},[648,2812,870],{"class":815},[648,2814,867],{"class":658},[648,2816,2817],{"class":794},"                    \u002F\u002F the stage\n",[648,2819,2820,2822,2824,2826,2828,2830,2832,2834,2836,2838,2840,2842,2844,2847,2849,2851,2853,2855,2857,2859,2861,2863,2865,2867,2869,2871,2873,2875,2877,2879,2881,2883,2886,2888,2890,2892,2894,2897,2899,2901,2903],{"class":650,"line":712},[648,2821,838],{"class":658},[648,2823,703],{"class":658},[648,2825,2688],{"class":706},[648,2827,738],{"class":658},[648,2829,1514],{"class":815},[648,2831,838],{"class":658},[648,2833,1108],{"class":815},[648,2835,819],{"class":658},[648,2837,703],{"class":658},[648,2839,2612],{"class":706},[648,2841,738],{"class":658},[648,2843,666],{"class":658},[648,2845,2846],{"class":815}," items",[648,2848,819],{"class":658},[648,2850,911],{"class":815},[648,2852,2802],{"class":732},[648,2854,735],{"class":815},[648,2856,738],{"class":658},[648,2858,2740],{"class":706},[648,2860,738],{"class":658},[648,2862,2789],{"class":815},[648,2864,666],{"class":658},[648,2866,659],{"class":658},[648,2868,1108],{"class":815},[648,2870,819],{"class":658},[648,2872,703],{"class":658},[648,2874,2427],{"class":706},[648,2876,738],{"class":658},[648,2878,666],{"class":658},[648,2880,1876],{"class":815},[648,2882,819],{"class":658},[648,2884,2885],{"class":1044}," 55",[648,2887,666],{"class":658},[648,2889,1886],{"class":815},[648,2891,819],{"class":658},[648,2893,703],{"class":658},[648,2895,2896],{"class":706},"deg",[648,2898,738],{"class":658},[648,2900,697],{"class":658},[648,2902,920],{"class":815},[648,2904,2905],{"class":658},"},\n",[648,2907,2908,2911,2913,2915,2917,2919,2921,2923,2925,2927,2929,2931,2933,2935,2937,2939,2941,2944,2946,2948,2951,2953,2955,2957,2959,2961,2963,2966,2969,2971,2973],{"class":650,"line":719},[648,2909,2910],{"class":658},"  '",[648,2912,1307],{"class":706},[648,2914,738],{"class":658},[648,2916,1514],{"class":815},[648,2918,838],{"class":658},[648,2920,1108],{"class":815},[648,2922,819],{"class":658},[648,2924,703],{"class":658},[648,2926,2612],{"class":706},[648,2928,738],{"class":658},[648,2930,666],{"class":658},[648,2932,2846],{"class":815},[648,2934,819],{"class":658},[648,2936,911],{"class":815},[648,2938,2781],{"class":732},[648,2940,735],{"class":815},[648,2942,2943],{"class":1044},"0",[648,2945,2789],{"class":815},[648,2947,666],{"class":658},[648,2949,2950],{"class":732}," px",[648,2952,735],{"class":815},[648,2954,2943],{"class":1044},[648,2956,2789],{"class":815},[648,2958,666],{"class":658},[648,2960,2950],{"class":732},[648,2962,735],{"class":815},[648,2964,2965],{"class":1044},"120",[648,2967,2968],{"class":815},")] ",[648,2970,867],{"class":658},[648,2972,697],{"class":658},[648,2974,2975],{"class":794},"                     \u002F\u002F a layer\n",[648,2977,2978],{"class":650,"line":760},[648,2979,2980],{"class":794},"\u002F\u002F .layer{rotate:x 55deg;translate:0px 0px 120px}\n",[1144,2982,2983,2986,2987,2990,2991,2994,2995,2998,2999,3002,3003,3006,3007,1308,3010,3013,3014,819,3016],{},[1147,2984,2985],{},"Text outline"," (experimental: it may change in a minor version until a second, different use adopts it, which\n",[623,2988,2989],{},"PROPERTIES[name].experimental"," says): ",[623,2992,2993],{},"text-stroke-width"," takes 0 to 8 pixels, or a size variable that comes to\nthat in every mode, and ",[623,2996,2997],{},"text-stroke-color"," a colour or colour variable, so the outline follows the modes. CSS has\nno unprefixed property for it, so the compiler writes them as ",[623,3000,3001],{},"-webkit-text-stroke-width"," and\n",[623,3004,3005],{},"-webkit-text-stroke-color"," (the entry's ",[623,3008,3009],{},"css",[623,3011,3012],{},"cssName"," gives it), the form every current browser supports. Both\nare inherited, as CSS has them. Outlined words usually have a transparent ",[623,3015,1944],{},[639,3017,3019],{"className":641,"code":3018,"language":643,"meta":644,"style":644},"{ 'color': kw('transparent'), 'text-stroke-width': px(2), 'text-stroke-color': v('color-text') }\n\u002F\u002F .hollow{color:transparent;-webkit-text-stroke-width:2px;-webkit-text-stroke-color:var(--color-text)}\n",[623,3020,3021,3091],{"__ignoreMap":644},[648,3022,3023,3025,3027,3029,3031,3033,3035,3037,3039,3042,3044,3046,3048,3050,3052,3054,3056,3058,3060,3063,3065,3067,3069,3071,3073,3075,3078,3080,3082,3085,3087,3089],{"class":650,"line":651},[648,3024,838],{"class":658},[648,3026,703],{"class":658},[648,3028,1944],{"class":706},[648,3030,738],{"class":658},[648,3032,1514],{"class":815},[648,3034,2802],{"class":732},[648,3036,735],{"class":815},[648,3038,738],{"class":658},[648,3040,3041],{"class":706},"transparent",[648,3043,738],{"class":658},[648,3045,2789],{"class":815},[648,3047,666],{"class":658},[648,3049,703],{"class":658},[648,3051,2993],{"class":706},[648,3053,738],{"class":658},[648,3055,1514],{"class":815},[648,3057,2781],{"class":732},[648,3059,735],{"class":815},[648,3061,3062],{"class":1044},"2",[648,3064,2789],{"class":815},[648,3066,666],{"class":658},[648,3068,703],{"class":658},[648,3070,2997],{"class":706},[648,3072,738],{"class":658},[648,3074,1514],{"class":815},[648,3076,3077],{"class":732},"v",[648,3079,735],{"class":815},[648,3081,738],{"class":658},[648,3083,3084],{"class":706},"color-text",[648,3086,738],{"class":658},[648,3088,870],{"class":815},[648,3090,2152],{"class":658},[648,3092,3093],{"class":650,"line":712},[648,3094,3095],{"class":794},"\u002F\u002F .hollow{color:transparent;-webkit-text-stroke-width:2px;-webkit-text-stroke-color:var(--color-text)}\n",[1144,3097,3098,3101,3102,1514,3105,2617,3108,3110,3111,3114,3115,1154,3118,3002,3121,3124,3125,3128,3129,3132,3133],{},[1147,3099,3100],{},"Mask"," (experimental, as the text outline), a group of its own, ",[623,3103,3104],{},"mask",[623,3106,3107],{},"mask-image",[623,3109,2638],{}," or a gradient,\nlinear or radial, as ",[623,3112,3113],{},"background-image"," does, but no image, so a mask never loads a file. Where the gradient is\ntransparent the element doesn't show; where it is opaque it shows as it is. ",[623,3116,3117],{},"mask-size",[623,3119,3120],{},"mask-position",[623,3122,3123],{},"mask-repeat"," take what their ",[623,3126,3127],{},"background-*"," twins take. The compiler writes the standard properties with no\n",[623,3130,3131],{},"-webkit-"," copies: every current browser takes them. A stop's colour can be a theme variable, so the mask follows\nthe modes:",[639,3134,3136],{"className":641,"code":3135,"language":643,"meta":644,"style":644},"{ 'mask-image': { kind: 'radial-gradient', shape: 'circle', size: 'closest-side', position: { x: 30, y: 40 },\n    stops: [{ color: v('color-text') }, { color: { kind: 'color', hex: '#0000' }, at: 100 }] },\n  'mask-repeat': kw('no-repeat') }\n\u002F\u002F .lit{mask-image:radial-gradient(circle closest-side at 30% 40%,var(--color-text),#0000 100%);mask-repeat:no-repeat}\n",[623,3137,3138,3218,3297,3322],{"__ignoreMap":644},[648,3139,3140,3142,3144,3146,3148,3150,3152,3154,3156,3158,3160,3162,3164,3167,3169,3171,3173,3175,3177,3180,3182,3184,3187,3189,3191,3194,3196,3198,3201,3203,3206,3208,3211,3213,3216],{"class":650,"line":651},[648,3141,838],{"class":658},[648,3143,703],{"class":658},[648,3145,3107],{"class":706},[648,3147,738],{"class":658},[648,3149,1514],{"class":815},[648,3151,838],{"class":658},[648,3153,1108],{"class":815},[648,3155,819],{"class":658},[648,3157,703],{"class":658},[648,3159,2466],{"class":706},[648,3161,738],{"class":658},[648,3163,666],{"class":658},[648,3165,3166],{"class":815}," shape",[648,3168,819],{"class":658},[648,3170,703],{"class":658},[648,3172,2470],{"class":706},[648,3174,738],{"class":658},[648,3176,666],{"class":658},[648,3178,3179],{"class":815}," size",[648,3181,819],{"class":658},[648,3183,703],{"class":658},[648,3185,3186],{"class":706},"closest-side",[648,3188,738],{"class":658},[648,3190,666],{"class":658},[648,3192,3193],{"class":815}," position",[648,3195,819],{"class":658},[648,3197,659],{"class":658},[648,3199,3200],{"class":815}," x",[648,3202,819],{"class":658},[648,3204,3205],{"class":1044}," 30",[648,3207,666],{"class":658},[648,3209,3210],{"class":815}," y",[648,3212,819],{"class":658},[648,3214,3215],{"class":1044}," 40",[648,3217,1827],{"class":658},[648,3219,3220,3223,3225,3227,3229,3232,3234,3237,3239,3241,3243,3245,3247,3250,3252,3254,3256,3258,3260,3262,3264,3266,3268,3270,3272,3274,3276,3279,3281,3283,3286,3288,3291,3293,3295],{"class":650,"line":712},[648,3221,3222],{"class":815},"    stops",[648,3224,819],{"class":658},[648,3226,911],{"class":815},[648,3228,838],{"class":658},[648,3230,3231],{"class":815}," color",[648,3233,819],{"class":658},[648,3235,3236],{"class":732}," v",[648,3238,735],{"class":815},[648,3240,738],{"class":658},[648,3242,3084],{"class":706},[648,3244,738],{"class":658},[648,3246,870],{"class":815},[648,3248,3249],{"class":658},"},",[648,3251,659],{"class":658},[648,3253,3231],{"class":815},[648,3255,819],{"class":658},[648,3257,659],{"class":658},[648,3259,1108],{"class":815},[648,3261,819],{"class":658},[648,3263,703],{"class":658},[648,3265,1944],{"class":706},[648,3267,738],{"class":658},[648,3269,666],{"class":658},[648,3271,1951],{"class":815},[648,3273,819],{"class":658},[648,3275,703],{"class":658},[648,3277,3278],{"class":706},"#0000",[648,3280,738],{"class":658},[648,3282,1066],{"class":658},[648,3284,3285],{"class":815}," at",[648,3287,819],{"class":658},[648,3289,3290],{"class":1044}," 100",[648,3292,697],{"class":658},[648,3294,920],{"class":815},[648,3296,2905],{"class":658},[648,3298,3299,3301,3303,3305,3307,3309,3311,3313,3316,3318,3320],{"class":650,"line":719},[648,3300,2910],{"class":658},[648,3302,3123],{"class":706},[648,3304,738],{"class":658},[648,3306,1514],{"class":815},[648,3308,2802],{"class":732},[648,3310,735],{"class":815},[648,3312,738],{"class":658},[648,3314,3315],{"class":706},"no-repeat",[648,3317,738],{"class":658},[648,3319,870],{"class":815},[648,3321,2152],{"class":658},[648,3323,3324],{"class":650,"line":760},[648,3325,3326],{"class":794},"\u002F\u002F .lit{mask-image:radial-gradient(circle closest-side at 30% 40%,var(--color-text),#0000 100%);mask-repeat:no-repeat}\n",[1144,3328,3329,3332,3333,3336,3337,3339,3340,3343,3344,3347,3348,1222,3350,3352,3353,3356,3357,3359,3360,3362,3363],{},[1147,3330,3331],{},"A centre that follows the pointer"," (experimental): a radial gradient's ",[623,3334,3335],{},"position"," may be ",[623,3338,2478],{},", with a\n",[623,3341,3342],{},"rest"," of ",[623,3345,3346],{},"{ x, y }"," in percentages (the middle when left out), in ",[623,3349,3113],{},[623,3351,3107],{},". The\ncompiler writes the centre as the two properties the interactions runtime writes, each with the rest as its\nfallback, so with no script, on touch and under reduced motion the gradient sits at its rest. It moves only on a\nnode an interaction follows the pointer over, or inside one (see ",[1593,3354,3355],{"href":526},"Interactions","); publishing\nrefuses it anywhere else. A ",[623,3358,3342],{}," without ",[623,3361,2478],{}," is refused.",[639,3364,3366],{"className":641,"code":3365,"language":643,"meta":644,"style":644},"{ 'background-image': { kind: 'radial-gradient', shape: 'circle', position: 'pointer', rest: { x: 72, y: 34 },\n    stops: [{ color: v('color-accent') }, { color: { kind: 'color', hex: '#0000' }, at: 60 }] } }\n\u002F\u002F .glow{background-image:radial-gradient(circle at var(--shade-pointer-x,72%) var(--shade-pointer-y,34%),var(--color-accent),#0000 60%)}\n",[623,3367,3368,3444,3520],{"__ignoreMap":644},[648,3369,3370,3372,3374,3376,3378,3380,3382,3384,3386,3388,3390,3392,3394,3396,3398,3400,3402,3404,3406,3408,3410,3412,3415,3417,3419,3422,3424,3426,3428,3430,3433,3435,3437,3439,3442],{"class":650,"line":651},[648,3371,838],{"class":658},[648,3373,703],{"class":658},[648,3375,3113],{"class":706},[648,3377,738],{"class":658},[648,3379,1514],{"class":815},[648,3381,838],{"class":658},[648,3383,1108],{"class":815},[648,3385,819],{"class":658},[648,3387,703],{"class":658},[648,3389,2466],{"class":706},[648,3391,738],{"class":658},[648,3393,666],{"class":658},[648,3395,3166],{"class":815},[648,3397,819],{"class":658},[648,3399,703],{"class":658},[648,3401,2470],{"class":706},[648,3403,738],{"class":658},[648,3405,666],{"class":658},[648,3407,3193],{"class":815},[648,3409,819],{"class":658},[648,3411,703],{"class":658},[648,3413,3414],{"class":706},"pointer",[648,3416,738],{"class":658},[648,3418,666],{"class":658},[648,3420,3421],{"class":815}," rest",[648,3423,819],{"class":658},[648,3425,659],{"class":658},[648,3427,3200],{"class":815},[648,3429,819],{"class":658},[648,3431,3432],{"class":1044}," 72",[648,3434,666],{"class":658},[648,3436,3210],{"class":815},[648,3438,819],{"class":658},[648,3440,3441],{"class":1044}," 34",[648,3443,1827],{"class":658},[648,3445,3446,3448,3450,3452,3454,3456,3458,3460,3462,3464,3467,3469,3471,3473,3475,3477,3479,3481,3483,3485,3487,3489,3491,3493,3495,3497,3499,3501,3503,3505,3507,3509,3512,3514,3516,3518],{"class":650,"line":712},[648,3447,3222],{"class":815},[648,3449,819],{"class":658},[648,3451,911],{"class":815},[648,3453,838],{"class":658},[648,3455,3231],{"class":815},[648,3457,819],{"class":658},[648,3459,3236],{"class":732},[648,3461,735],{"class":815},[648,3463,738],{"class":658},[648,3465,3466],{"class":706},"color-accent",[648,3468,738],{"class":658},[648,3470,870],{"class":815},[648,3472,3249],{"class":658},[648,3474,659],{"class":658},[648,3476,3231],{"class":815},[648,3478,819],{"class":658},[648,3480,659],{"class":658},[648,3482,1108],{"class":815},[648,3484,819],{"class":658},[648,3486,703],{"class":658},[648,3488,1944],{"class":706},[648,3490,738],{"class":658},[648,3492,666],{"class":658},[648,3494,1951],{"class":815},[648,3496,819],{"class":658},[648,3498,703],{"class":658},[648,3500,3278],{"class":706},[648,3502,738],{"class":658},[648,3504,1066],{"class":658},[648,3506,3285],{"class":815},[648,3508,819],{"class":658},[648,3510,3511],{"class":1044}," 60",[648,3513,697],{"class":658},[648,3515,920],{"class":815},[648,3517,867],{"class":658},[648,3519,875],{"class":658},[648,3521,3522],{"class":650,"line":719},[648,3523,3524],{"class":794},"\u002F\u002F .glow{background-image:radial-gradient(circle at var(--shade-pointer-x,72%) var(--shade-pointer-y,34%),var(--color-accent),#0000 60%)}\n",[1144,3526,3527,3530,3531,3534,3535,3538,3539,3542,3543,3546,3547,3550,3551,3554,3555,3558,3559,3561,3562,3565,3566,1154,3568,1222,3570,3572,3573,3575,3576,3579,3580],{},[1147,3528,3529],{},"An island's state and number:"," inside a client island, a rule may be for its text state with fixed ",[623,3532,3533],{},"options","\nbeing one of them, ",[623,3536,3537],{},"island: { state, is }",", written ",[623,3540,3541],{},":where([data-shade-state~=\"picked:site\"])"," before the\nselector, so its specificity stays the others'. A value may follow a number state with a ",[623,3544,3545],{},"range",":\n",[623,3548,3549],{},"{ kind: 'state-number', state, min, max, rest, unit? }",", written\n",[623,3552,3553],{},"clamp(\u003Cmin>,var(--shade-value-\u003Cstate>,\u003Crest>),\u003Cmax>)"," (times one ",[623,3556,3557],{},"unit",": a length unit or ",[623,3560,2896],{},", none for a\nnumber such as ",[623,3563,3564],{},"opacity","); ",[623,3567,1347],{},[623,3569,1350],{},[623,3571,3342],{}," are in the property's range, ",[623,3574,3342],{}," between them, and it is\nwhat shows before the island runs and outside one. A whole-number property (",[623,3577,3578],{},"z-index",") and a feature test take\nnone. The checker reads such a number at its lowest end and checks the contrast of each island's state a rule is for.",[639,3581,3583],{"className":641,"code":3582,"language":643,"meta":644,"style":644},"{ island: { state: 'picked', is: 'all-plugins' }, declarations: { 'border-top-style': kw('dashed') } }\n\u002F\u002F :where([data-shade-state~=\"picked:all-modules\"]) .chip{border-top-style:dashed}\n{ 'width': { kind: 'state-number', state: 'level', min: 0, max: 96, rest: 40, unit: 'px' } }\n\u002F\u002F .bar{width:clamp(0px,var(--shade-value-level,40)*1px,96px)}\n",[623,3584,3585,3655,3660,3741],{"__ignoreMap":644},[648,3586,3587,3589,3592,3594,3596,3598,3600,3602,3605,3607,3609,3612,3614,3616,3619,3621,3623,3625,3627,3629,3631,3634,3636,3638,3640,3642,3644,3647,3649,3651,3653],{"class":650,"line":651},[648,3588,838],{"class":658},[648,3590,3591],{"class":1661}," island",[648,3593,819],{"class":658},[648,3595,659],{"class":658},[648,3597,1908],{"class":1661},[648,3599,819],{"class":658},[648,3601,703],{"class":658},[648,3603,3604],{"class":706},"picked",[648,3606,738],{"class":658},[648,3608,666],{"class":658},[648,3610,3611],{"class":1661}," is",[648,3613,819],{"class":658},[648,3615,703],{"class":658},[648,3617,3618],{"class":706},"all-plugins",[648,3620,738],{"class":658},[648,3622,1066],{"class":658},[648,3624,1745],{"class":1661},[648,3626,819],{"class":658},[648,3628,659],{"class":658},[648,3630,703],{"class":658},[648,3632,3633],{"class":706},"border-top-style",[648,3635,738],{"class":658},[648,3637,1514],{"class":815},[648,3639,2802],{"class":732},[648,3641,735],{"class":815},[648,3643,738],{"class":658},[648,3645,3646],{"class":706},"dashed",[648,3648,738],{"class":658},[648,3650,870],{"class":815},[648,3652,867],{"class":658},[648,3654,875],{"class":658},[648,3656,3657],{"class":650,"line":712},[648,3658,3659],{"class":794},"\u002F\u002F :where([data-shade-state~=\"picked:all-modules\"]) .chip{border-top-style:dashed}\n",[648,3661,3662,3664,3666,3669,3671,3673,3675,3677,3679,3681,3684,3686,3688,3690,3692,3694,3697,3699,3701,3703,3705,3708,3710,3712,3714,3717,3719,3721,3723,3725,3727,3729,3731,3733,3735,3737,3739],{"class":650,"line":719},[648,3663,838],{"class":658},[648,3665,703],{"class":658},[648,3667,3668],{"class":706},"width",[648,3670,738],{"class":658},[648,3672,1514],{"class":815},[648,3674,838],{"class":658},[648,3676,1108],{"class":815},[648,3678,819],{"class":658},[648,3680,703],{"class":658},[648,3682,3683],{"class":706},"state-number",[648,3685,738],{"class":658},[648,3687,666],{"class":658},[648,3689,1908],{"class":815},[648,3691,819],{"class":658},[648,3693,703],{"class":658},[648,3695,3696],{"class":706},"level",[648,3698,738],{"class":658},[648,3700,666],{"class":658},[648,3702,2055],{"class":815},[648,3704,819],{"class":658},[648,3706,3707],{"class":1044}," 0",[648,3709,666],{"class":658},[648,3711,2095],{"class":815},[648,3713,819],{"class":658},[648,3715,3716],{"class":1044}," 96",[648,3718,666],{"class":658},[648,3720,3421],{"class":815},[648,3722,819],{"class":658},[648,3724,3215],{"class":1044},[648,3726,666],{"class":658},[648,3728,1886],{"class":815},[648,3730,819],{"class":658},[648,3732,703],{"class":658},[648,3734,2781],{"class":706},[648,3736,738],{"class":658},[648,3738,697],{"class":658},[648,3740,875],{"class":658},[648,3742,3743],{"class":650,"line":760},[648,3744,3745],{"class":794},"\u002F\u002F .bar{width:clamp(0px,var(--shade-value-level,40)*1px,96px)}\n",[1144,3747,3748,766,3751,3754,3755,3757],{},[1147,3749,3750],{},"The cascade",[623,3752,3753],{},"cascadeOrder","): every selector has the same specificity (a class or the attribute, a state in\n",[623,3756,2403],{},"), so order decides: states outermost, then the base, the breakpoints (widest first desktop-first,\nnarrowest first mobile-first), the container queries, the visitor's settings (forced colours, then reduced motion)\nand the feature tests (all at one rank, so the later in the source wins), then the island's states (one rank too),\nthen the classes in their listed order and local styles\nlast. The order of the classes on an element doesn't matter. So a node's own styles win over its classes in the\nsame state and condition only: a class's tablet value wins over the node's own base value on a tablet.",[1144,3759,3760,766,3763,1154,3766,3769,3770,3772,3773,1222,3775,3777,3778,3780,3781,3784,3785,3788],{},[1147,3761,3762],{},"States that hold together",[623,3764,3765],{},"activeStates",[623,3767,3768],{},"IMPLIED_STATES","): as in the browser, ",[623,3771,2373],{}," comes with\n",[623,3774,2370],{},[623,3776,2376],{}," (a pointer press) with ",[623,3779,1915],{},"; pass ",[623,3782,3783],{},"states"," for another combination (",[623,3786,3787],{},"['focus', 'active']","\nfor a keyboard press). The later state in the cascade wins: hover, focus, focus-visible, active, checked,\ndisabled.",[1144,3790,3791,3794,3795,3798,3799,3802,3803,3806,3807,3809,3810,3813,3814,3816],{},[1147,3792,3793],{},"Variables"," compile to custom properties: each collection's default mode on ",[623,3796,3797],{},":root",", the other modes under\n",[623,3800,3801],{},"@media (prefers-color-scheme: …)"," when the page picks none, and under ",[623,3804,3805],{},"[data-shade-mode=…]"," every value that\ndiffers between a collection's modes (the default mode's too, so modes nest), with every variable that refers to\none of those, directly or through others: a custom property holding ",[623,3808,2646],{}," is resolved where it is declared, so\nan alias ",[623,3811,3812],{},"accent: var(--brand)"," declared only on ",[623,3815,3797],{}," would keep the root's brand in a dark section.",[1144,3818,3819,3822,3823,3826,3827,1222,3829,3831,3832,3834,3835,3837,3838,3841,3842],{},[1147,3820,3821],{},"Colour variables are typed:"," every colour variable is registered first, as\n",[623,3824,3825],{},"@property --brand{syntax:\"\\3c color\\3e \";inherits:true;initial-value:#2563eb}"," (its default mode's colour; the\nsyntax's ",[623,3828,1186],{},[623,3830,1192],{}," as hex escapes, so the file still holds no ",[623,3833,1186],{},"), and ",[623,3836,2273],{}," registers the theme's\ncolours the same way. So a transition on a variable fades the variable itself, and what is drawn from it inside a\ngradient, a mask or a filter fades with the page when the mode switches. ",[623,3839,3840],{},"transition-property"," takes colour\nvariables by name, up to 16 items:",[639,3843,3845],{"className":641,"code":3844,"language":643,"meta":644,"style":644},"{ 'transition-property': { kind: 'list', items: [v('color-background'), v('glow')] }, 'transition-duration': { kind: 'time', value: 500, unit: 'ms' } }\n\u002F\u002F .page{transition-property:--color-background,--glow;transition-duration:500ms}\n",[623,3846,3847,3956],{"__ignoreMap":644},[648,3848,3849,3851,3853,3855,3857,3859,3861,3863,3865,3867,3869,3871,3873,3875,3877,3879,3881,3883,3885,3888,3890,3892,3894,3896,3898,3900,3903,3905,3907,3909,3911,3914,3916,3918,3920,3922,3924,3926,3928,3930,3932,3934,3936,3939,3941,3943,3945,3947,3950,3952,3954],{"class":650,"line":651},[648,3850,838],{"class":658},[648,3852,703],{"class":658},[648,3854,3840],{"class":706},[648,3856,738],{"class":658},[648,3858,1514],{"class":815},[648,3860,838],{"class":658},[648,3862,1108],{"class":815},[648,3864,819],{"class":658},[648,3866,703],{"class":658},[648,3868,2612],{"class":706},[648,3870,738],{"class":658},[648,3872,666],{"class":658},[648,3874,2846],{"class":815},[648,3876,819],{"class":658},[648,3878,911],{"class":815},[648,3880,3077],{"class":732},[648,3882,735],{"class":815},[648,3884,738],{"class":658},[648,3886,3887],{"class":706},"color-background",[648,3889,738],{"class":658},[648,3891,2789],{"class":815},[648,3893,666],{"class":658},[648,3895,3236],{"class":732},[648,3897,735],{"class":815},[648,3899,738],{"class":658},[648,3901,3902],{"class":706},"glow",[648,3904,738],{"class":658},[648,3906,2968],{"class":815},[648,3908,3249],{"class":658},[648,3910,703],{"class":658},[648,3912,3913],{"class":706},"transition-duration",[648,3915,738],{"class":658},[648,3917,1514],{"class":815},[648,3919,838],{"class":658},[648,3921,1108],{"class":815},[648,3923,819],{"class":658},[648,3925,703],{"class":658},[648,3927,2430],{"class":706},[648,3929,738],{"class":658},[648,3931,666],{"class":658},[648,3933,1876],{"class":815},[648,3935,819],{"class":658},[648,3937,3938],{"class":1044}," 500",[648,3940,666],{"class":658},[648,3942,1886],{"class":815},[648,3944,819],{"class":658},[648,3946,703],{"class":658},[648,3948,3949],{"class":706},"ms",[648,3951,738],{"class":658},[648,3953,697],{"class":658},[648,3955,875],{"class":658},[648,3957,3958],{"class":650,"line":712},[648,3959,3960],{"class":794},"\u002F\u002F .page{transition-property:--color-background,--glow;transition-duration:500ms}\n",[1144,3962,3963,3966,3967,3970,3971,3974,3975,3978],{},[1147,3964,3965],{},"Container queries:"," a class with ",[623,3968,3969],{},"container: 'inline-size'"," makes its elements query containers\n(",[623,3972,3973],{},"container: c-\u003Cid>\u002Finline-size","); a container query in ",[623,3976,3977],{},"containers"," is a width range of it.",[1144,3980,3981,1150,3984,3987,3988,3991,3992,1150,3995,3998,3999,4002,4003,4006,4007,1150,4010,4013,4014,4017,4018],{},[1147,3982,3983],{},"Visitors' settings and feature tests:",[623,3985,3986],{},"media: 'forced-colors'"," is written ",[623,3989,3990],{},"@media (forced-colors:active)"," (high\ncontrast and other forced colours) and ",[623,3993,3994],{},"media: 'reduced-motion'",[623,3996,3997],{},"@media (prefers-reduced-motion:reduce)",".\n",[623,4000,4001],{},"supports: { property, value, not? }"," is a feature test: an allow-listed property that takes no text, with a typed\nvalue it takes (never a variable or an image), written through the same serialiser as a declaration,\n",[623,4004,4005],{},"@supports (display:grid)"," or with ",[623,4008,4009],{},"not",[623,4011,4012],{},"@supports not (display:grid)",". A rule has at most one condition: they\ndon't combine with each other or with a breakpoint. ",[623,4015,4016],{},"compileStyles(styles, { holding: ['reduced-motion'] })"," writes\nthe named settings' rules without their query, as if they held: for an editor's canvas, never for a site.",[639,4019,4021],{"className":641,"code":4020,"language":643,"meta":644,"style":644},"{ supports: { property: 'display', value: kw('grid'), not: true }, declarations: { display: kw('flex') } }\n\u002F\u002F @supports not (display:grid){.cards{display:flex}}\n",[623,4022,4023,4107],{"__ignoreMap":644},[648,4024,4025,4027,4030,4032,4034,4037,4039,4041,4044,4046,4048,4050,4052,4055,4057,4059,4062,4064,4066,4068,4071,4073,4077,4079,4081,4083,4085,4088,4090,4092,4094,4096,4099,4101,4103,4105],{"class":650,"line":651},[648,4026,838],{"class":658},[648,4028,4029],{"class":1661}," supports",[648,4031,819],{"class":658},[648,4033,659],{"class":658},[648,4035,4036],{"class":1661}," property",[648,4038,819],{"class":658},[648,4040,703],{"class":658},[648,4042,4043],{"class":706},"display",[648,4045,738],{"class":658},[648,4047,666],{"class":658},[648,4049,1876],{"class":1661},[648,4051,819],{"class":658},[648,4053,4054],{"class":732}," kw",[648,4056,735],{"class":815},[648,4058,738],{"class":658},[648,4060,4061],{"class":706},"grid",[648,4063,738],{"class":658},[648,4065,2789],{"class":815},[648,4067,666],{"class":658},[648,4069,4070],{"class":1661}," not",[648,4072,819],{"class":658},[648,4074,4076],{"class":4075},"sfNiH"," true",[648,4078,1066],{"class":658},[648,4080,1745],{"class":1661},[648,4082,819],{"class":658},[648,4084,659],{"class":658},[648,4086,4087],{"class":1661}," display",[648,4089,819],{"class":658},[648,4091,4054],{"class":732},[648,4093,735],{"class":815},[648,4095,738],{"class":658},[648,4097,4098],{"class":706},"flex",[648,4100,738],{"class":658},[648,4102,870],{"class":815},[648,4104,867],{"class":658},[648,4106,875],{"class":658},[648,4108,4109],{"class":650,"line":712},[648,4110,4111],{"class":794},"\u002F\u002F @supports not (display:grid){.cards{display:flex}}\n",[1144,4113,4114,766,4117,4120,4121,766,4124,1237,4127,1154,4130,1154,4133,4136,4137,1154,4140,1154,4142,1154,4145,4147,4148,4151,4152,4155,4156,4159],{},[1147,4115,4116],{},"Origins",[623,4118,4119],{},"originOf(styles, { treeId, nodeId, classes }, editing, property)","): the winning value, ",[623,4122,4123],{},"kind",[623,4125,4126],{},"here",[623,4128,4129],{},"breakpoint",[623,4131,4132],{},"container",[623,4134,4135],{},"condition"," for a setting, a feature test or an island's state, ",[623,4138,4139],{},"state",[623,4141,2284],{},[623,4143,4144],{},"local",[623,4146,2638],{},"), whether the edited rule is ",[623,4149,4150],{},"overridden",", every\ncontribution in order, ",[623,4153,4154],{},"inherits",", and a variable followed to its value in every mode. ",[623,4157,4158],{},"originsOf"," gives them for\nevery property set.",[1144,4161,4162,766,4165,4168,4169,775],{},[1147,4163,4164],{},"Contrast",[623,4166,4167],{},"contrastInModes(styles, foreground, background)","): the WCAG 2.2 ratio in each mode, resolving\nvariables; ",[623,4170,4171],{},"meetsContrast(ratio, { level, large, nonText })",[1144,4173,4174,4176,4177,4180,4181,4184,4185,4188,4189,4191,4192,1222,4195,4198,4199,4202,4203,4206,4207,4210,4211,4214,4215,2471,4218,4221,4222,4225,4226,1222,4229,4232,4233,4236,4237,4240,4241,4244],{},[623,4175,2315],{}," is the gate before styles are stored: it checks a plain JSON copy of its input and gives that\ncopy back (",[623,4178,4179],{},"styles","), so store the copy; ",[623,4182,4183],{},"compileStyles"," runs it again, writes from the copy only, and checks its\nown output (",[623,4186,4187],{},"cssProblem",": no ",[623,4190,1186],{},", no at-rule but its ",[623,4193,4194],{},"@media",[623,4196,4197],{},"@container"," queries, a colour variable's ",[623,4200,4201],{},"@property"," and its ",[623,4204,4205],{},"@supports"," tests\n(one allow-listed property each), no ",[623,4208,4209],{},"url()"," but a quoted safe\naddress, no ",[623,4212,4213],{},"!important",", balanced braces, and every block in the compiler's grammar: its selectors, its queries,\nallow-listed properties, and nothing under SHADE's prefixes: no class ",[623,4216,4217],{},"shade-…",[623,4219,4220],{},"site-…",", no custom property\n",[623,4223,4224],{},"--shade-…"," declared or read, but for ",[623,4227,4228],{},"var(--shade-pointer-x,\u003Cn>%)",[623,4230,4231],{},"var(--shade-pointer-y,\u003Cn>%)",", a pointer\ncentre's two reads with their rest, and ",[623,4234,4235],{},"var(--shade-value-\u003Cname>,\u003Cn>)",", an island's number with its rest). ",[623,4238,4239],{},"styleReferences(styles, { classes, trees: [{ treeId, nodeIds }] })"," lists classes missing or unused\nand local styles whose node is gone from its tree (",[623,4242,4243],{},"{ treeId, nodeId }","), for saving to remove.",[1144,4246,4247,4250,4251,4254],{},[623,4248,4249],{},"themeWarnings(theme)"," says what the default variables leave out: font families they can't name, and the web\nfonts, whose ",[623,4252,4253],{},"@font-face"," rules stay the theme's.",[1144,4256,4257,4258,1154,4260,1154,4263,1222,4265,4268,4269,4272,4273,4276,4277,1222,4279,4281,4282,4285],{},"It carries no theme of its own: ",[623,4259,1675],{},[623,4261,4262],{},"themeVariables",[623,4264,2273],{},[623,4266,4267],{},"fontFacesCss"," take a theme's\ntokens, and the theme itself (its schema, ",[623,4270,4271],{},"ThemeTokens",", and its default, ",[623,4274,4275],{},"DEFAULT_THEME",") is the website module's.\n",[623,4278,2273],{},[623,4280,4267],{}," check what they write again, whoever gave the theme: a colour that isn't a hex\ncolour or a font stack with more than names, quotes and commas is left out, and so is a web font whose address\nisn't a safe one (",[623,4283,4284],{},"isSafeImageUrl",") or whose weight or style is off its list.",[627,4287,1572,4288,1514,4290,1579,4293,4296,4297,775],{},[623,4289,1575],{},[623,4291,4292],{},"packages\u002Fstyles\u002Fsrc\u002F",[623,4294,4295],{},"packages\u002Fstyles\u002Ftest\u002F*.test.ts",", the sample site's output in\n",[623,4298,4299],{},"packages\u002Fstyles\u002Ftest\u002F__snapshots__\u002Fsite.css",[1476,4301,4302],{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":644,"searchDepth":712,"depth":712,"links":4304},[4305,4306],{"id":621,"depth":712,"text":625},{"id":1585,"depth":712,"text":1588},"md",null,{},{"title":517,"description":644},"itX8DKbiRc4kWetJ8vi_y1jf1R3H4BEBAJN1qzjHfXw",[4313,4314],{"title":513,"path":514,"stem":515,"description":644,"children":-1},{"title":521,"path":522,"stem":523,"description":644,"children":-1},1796500156672]