feat: Upgrade to Astro with full PDPA compliance
PDPA Features: ✅ Cookie consent banner ✅ Consent logging API ✅ Admin dashboard ✅ Privacy Policy ✅ Terms & Conditions Technical: ✅ Astro 5.x + Tailwind v4 ✅ Docker on port 80 ✅ SQLite database ✅ 15 pages built Ready for Easypanel deployment.
This commit is contained in:
1 parent
668f69048f
commit
77ac4d2d05
13719 files changed
+307487
-25765
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Tailwind Labs, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
<p align="center">
|
||||
<a href="https://tailwindcss.com" target="_blank">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-dark.svg">
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg">
|
||||
<img alt="Tailwind CSS" src="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg" width="350" height="70" style="max-width: 100%;">
|
||||
</picture>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
A utility-first CSS framework for rapidly building custom user interfaces.
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci.yml?branch=main" alt="Build Status"></a>
|
||||
<a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
For full documentation, visit [tailwindcss.com](https://tailwindcss.com).
|
||||
|
||||
## Community
|
||||
|
||||
For help, discussion about best practices, or feature ideas:
|
||||
|
||||
[Discuss Tailwind CSS on GitHub](https://github.com/tailwindlabs/tailwindcss/discussions)
|
||||
|
||||
## Contributing
|
||||
|
||||
If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindlabs/tailwindcss/blob/main/.github/CONTRIBUTING.md) **before submitting a pull request**.
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
import{a as tr,b as z,c as H,d as rr,e as P,f as St,g as ee,h as et,i as nr}from"./chunk-UWKE2Z6N.mjs";import{a as ir}from"./chunk-X4GG3EDV.mjs";var lr="4.2.1";function tt(t){let r=[0];for(let n=0;n<t.length;n++)t.charCodeAt(n)===10&&r.push(n+1);function i(n){let s=0,l=r.length;for(;l>0;){let u=(l|0)>>1,f=s+u;r[f]<=n?(s=f+1,l=l-u-1):l=u}s-=1;let c=n-r[s];return{line:s+1,column:c}}function e({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let l=r[n],c=r[n+1]??l;return Math.min(Math.max(l+s,0),c)}return{find:i,findOffset:e}}var Fe=92,rt=47,it=42,or=34,ar=39,Zi=58,nt=59,ae=10,lt=13,We=32,Be=9,sr=123,Tt=125,Et=40,ur=41,Hi=91,Ji=93,fr=45,Vt=64,Qi=33,se=class t extends Error{loc;constructor(r,i){if(i){let e=i[0],n=tt(e.code).find(i[1]);r=`${e.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,t)}};function Se(t,r){let i=r?.from?{file:r.from,code:t}:null;t[0]==="\uFEFF"&&(t=" "+t.slice(1));let e=[],n=[],s=[],l=null,c=null,u="",f="",g=0,d;for(let p=0;p<t.length;p++){let w=t.charCodeAt(p);if(!(w===lt&&(d=t.charCodeAt(p+1),d===ae)))if(w===Fe)u===""&&(g=p),u+=t.slice(p,p+2),p+=1;else if(w===rt&&t.charCodeAt(p+1)===it){let h=p;for(let x=p+2;x<t.length;x++)if(d=t.charCodeAt(x),d===Fe)x+=1;else if(d===it&&t.charCodeAt(x+1)===rt){p=x+1;break}let y=t.slice(h,p+1);if(y.charCodeAt(2)===Qi){let x=ot(y.slice(2,-2));n.push(x),i&&(x.src=[i,h,p+1],x.dst=[i,h,p+1])}}else if(w===ar||w===or){let h=cr(t,p,w,i);u+=t.slice(p,h+1),p=h}else{if((w===We||w===ae||w===Be)&&(d=t.charCodeAt(p+1))&&(d===We||d===ae||d===Be||d===lt&&(d=t.charCodeAt(p+2))&&d==ae))continue;if(w===ae){if(u.length===0)continue;d=u.charCodeAt(u.length-1),d!==We&&d!==ae&&d!==Be&&(u+=" ")}else if(w===fr&&t.charCodeAt(p+1)===fr&&u.length===0){let h="",y=p,x=-1;for(let A=p+2;A<t.length;A++)if(d=t.charCodeAt(A),d===Fe)A+=1;else if(d===ar||d===or)A=cr(t,A,d,i);else if(d===rt&&t.charCodeAt(A+1)===it){for(let k=A+2;k<t.length;k++)if(d=t.charCodeAt(k),d===Fe)k+=1;else if(d===it&&t.charCodeAt(k+1)===rt){A=k+1;break}}else if(x===-1&&d===Zi)x=u.length+A-y;else if(d===nt&&h.length===0){u+=t.slice(y,A),p=A;break}else if(d===Et)h+=")";else if(d===Hi)h+="]";else if(d===sr)h+="}";else if((d===Tt||t.length-1===A)&&h.length===0){p=A-1,u+=t.slice(y,A);break}else(d===ur||d===Ji||d===Tt)&&h.length>0&&t[A]===h[h.length-1]&&(h=h.slice(0,-1));let $=Nt(u,x);if(!$)throw new se("Invalid custom property, expected a value",i?[i,y,p]:null);i&&($.src=[i,y,p],$.dst=[i,y,p]),l?l.nodes.push($):e.push($),u=""}else if(w===nt&&u.charCodeAt(0)===Vt)c=Ye(u),i&&(c.src=[i,g,p],c.dst=[i,g,p]),l?l.nodes.push(c):e.push(c),u="",c=null;else if(w===nt&&f[f.length-1]!==")"){let h=Nt(u);if(!h){if(u.length===0)continue;throw new se(`Invalid declaration: \`${u.trim()}\``,i?[i,g,p]:null)}i&&(h.src=[i,g,p],h.dst=[i,g,p]),l?l.nodes.push(h):e.push(h),u=""}else if(w===sr&&f[f.length-1]!==")")f+="}",c=J(u.trim()),i&&(c.src=[i,g,p],c.dst=[i,g,p]),l&&l.nodes.push(c),s.push(l),l=c,u="",c=null;else if(w===Tt&&f[f.length-1]!==")"){if(f==="")throw new se("Missing opening {",i?[i,p,p]:null);if(f=f.slice(0,-1),u.length>0)if(u.charCodeAt(0)===Vt)c=Ye(u),i&&(c.src=[i,g,p],c.dst=[i,g,p]),l?l.nodes.push(c):e.push(c),u="",c=null;else{let y=u.indexOf(":");if(l){let x=Nt(u,y);if(!x)throw new se(`Invalid declaration: \`${u.trim()}\``,i?[i,g,p]:null);i&&(x.src=[i,g,p],x.dst=[i,g,p]),l.nodes.push(x)}}let h=s.pop()??null;h===null&&l&&e.push(l),l=h,u="",c=null}else if(w===Et)f+=")",u+="(";else if(w===ur){if(f[f.length-1]!==")")throw new se("Missing opening (",i?[i,p,p]:null);f=f.slice(0,-1),u+=")"}else{if(u.length===0&&(w===We||w===ae||w===Be))continue;u===""&&(g=p),u+=String.fromCharCode(w)}}}if(u.charCodeAt(0)===Vt){let p=Ye(u);i&&(p.src=[i,g,t.length],p.dst=[i,g,t.length]),e.push(p)}if(f.length>0&&l){if(l.kind==="rule")throw new se(`Missing closing } at ${l.selector}`,l.src?[l.src[0],l.src[1],l.src[1]]:null);if(l.kind==="at-rule")throw new se(`Missing closing } at ${l.name} ${l.params}`,l.src?[l.src[0],l.src[1],l.src[1]]:null)}return n.length>0?n.concat(e):e}function Ye(t,r=[]){let i=t,e="";for(let n=5;n<t.length;n++){let s=t.charCodeAt(n);if(s===We||s===Be||s===Et){i=t.slice(0,n),e=t.slice(n);break}}return F(i.trim(),e.trim(),r)}function Nt(t,r=t.indexOf(":")){if(r===-1)return null;let i=t.indexOf("!important",r+1);return o(t.slice(0,r).trim(),t.slice(r+1,i===-1?t.length:i).trim(),i!==-1)}function cr(t,r,i,e=null){let n;for(let s=r+1;s<t.length;s++)if(n=t.charCodeAt(s),n===Fe)s+=1;else{if(n===i)return s;if(n===nt&&(t.charCodeAt(s+1)===ae||t.charCodeAt(s+1)===lt&&t.charCodeAt(s+2)===ae))throw new se(`Unterminated string: ${t.slice(r,s+1)+String.fromCharCode(i)}`,e?[e,r,s+1]:null);if(n===ae||n===lt&&t.charCodeAt(s+1)===ae)throw new se(`Unterminated string: ${t.slice(r,s)+String.fromCharCode(i)}`,e?[e,r,s+1]:null)}return r}function ke(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),i=r.lengthLine truncated
|
||||
`,`
|
||||
`);let r=[],i=[],e=null,n="",s;for(let l=0;l<t.length;l++){let c=t.charCodeAt(l);switch(c){case mr:{n+=t[l]+t[l+1],l++;break}case on:{if(n.length>0){let f=ne(n);e?e.nodes.push(f):r.push(f),n=""}let u=ne(t[l]);e?e.nodes.push(u):r.push(u);break}case gr:case hr:case vr:case wr:case yr:case kr:case br:case xr:{if(n.length>0){let d=ne(n);e?e.nodes.push(d):r.push(d),n=""}let u=l,f=l+1;for(;f<t.length&&(s=t.charCodeAt(f),!(s!==gr&&s!==hr&&s!==vr&&s!==wr&&s!==yr&&s!==kr&&s!==br&&s!==xr));f++);l=f-1;let g=en(t.slice(u,f));e?e.nodes.push(g):r.push(g);break}case ln:case rn:{let u=l;for(let f=l+1;f<t.length;f++)if(s=t.charCodeAt(f),s===mr)f+=1;else if(s===c){l=f;break}n+=t.slice(u,l+1);break}case nn:{let u=Xi(n,[]);n="",e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case tn:{let u=i.pop();if(n.length>0){let f=ne(n);u?.nodes.push(f),n=""}i.length>0?e=i[i.length-1]:e=null;break}default:n+=String.fromCharCode(c)}}return n.length>0&&r.push(ne(n)),r}var Ot=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(Ot||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:t=>({kind:3,nodes:Array.isArray(t)?t:[t]}),ReplaceSkip:t=>({kind:4,nodes:Array.isArray(t)?t:[t]}),ReplaceStop:t=>({kind:5,nodes:Array.isArray(t)?t:[t]})};function I(t,r){typeof r=="function"?Ar(t,r):Ar(t,r.enter,r.exit)}function Ar(t,r=()=>R.Continue,i=()=>R.Continue){let e={value:[t,0,null],prev:null},n={parent:null,depth:0,path(){let s=[],l=e;for(;l;){let c=l.value[2];c&&s.push(c),l=l.prev}return s.reverse(),s}};for(;e!==null;){let s=e.value,l=s[0],c=s[1],u=s[2];if(c>=l.length){e=e.prev,n.depth-=1;continue}if(n.parent=u,c>=0){let p=l[c],w=r(p,n)??R.Continue;switch(w.kind){case 0:{p.nodes&&p.nodes.length>0&&(n.depth+=1,e={value:[p.nodes,0,p],prev:e}),s[1]=~c;continue}case 2:return;case 1:{s[1]=~c;continue}case 3:{l.splice(c,1,...w.nodes);continue}case 5:{l.splice(c,1,...w.nodes);return}case 4:{l.splice(c,1,...w.nodes),s[1]+=w.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ot[w.kind]??`Unknown(${w.kind})`}\` in enter.`)}}let f=~c,g=l[f],d=i(g,n)??R.Continue;switch(d.kind){case 0:s[1]=f+1;continue;case 2:return;case 3:{l.splice(f,1,...d.nodes),s[1]=f+d.nodes.length;continue}case 5:{l.splice(f,1,...d.nodes);return}case 4:{l.splice(f,1,...d.nodes),s[1]=f+d.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ot[d.kind]??`Unknown(${d.kind})`}\` in exit.`)}}}function st(t){let r=[];return I(B(t),i=>{if(!(i.kind!=="function"||i.value!=="var"))return I(i.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||r.push(e.value)}),R.Skip}),r}var an=64;function G(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function F(t,r="",i=[]){return{kind:"at-rule",name:t,params:r,nodes:i}}function J(t,r=[]){return t.charCodeAt(0)===an?Ye(t,r):G(t,r)}function o(t,r,i=!1){return{kind:"declaration",property:t,value:r,important:i}}function ot(t){return{kind:"comment",value:t}}function ce(t,r){return{kind:"context",context:t,nodes:r}}function W(t){return{kind:"at-root",nodes:t}}function te(t){switch(t.kind){case"rule":return{kind:t.kind,selector:t.selector,nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"at-rule":return{kind:t.kind,name:t.name,params:t.params,nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"at-root":return{kind:t.kind,nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"context":return{kind:t.kind,context:{...t.context},nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"declaration":return{kind:t.kind,property:t.property,value:t.value,important:t.important,src:t.src,dst:t.dst};case"comment":return{kind:t.kind,value:t.value,src:t.src,dst:t.dst};default:throw new Error(`Unknown node kind: ${t.kind}`)}}function qe(t){return{depth:t.depth,get context(){let r={};for(let i of t.path())i.kind==="context"&&Object.assign(r,i.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return t.path().filter(r=>r.kind!=="context")}}}function Te(t,r,i=3){let e=[],n=new Set,s=new K(()=>new Set),l=new K(()=>new Set),c=new Set,u=new Set,f=[],g=[],d=new K(()=>new Set);function p(h,y,x={},$=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(x.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}x.keyframes||s.get(y).add(h)}if(h.value.includes("var("))if(x.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let A of st(h.value))d.get(A).add(h.property);else r.trackUsedVariables(h.value);if(h.property==="animation")for(let A of Cr(h.value))u.add(A);i&2&&h.value.includes("color-mix(")&&!x.supportsColorMix&&!x.keyframes&&l.get(y).add(h),y.push(h)}else if(h.kind==="rule"){let A=[];for(let N of h.nodes)p(N,A,x,$+1);let k={},U=new Set;for(let N of A){if(N.kind!=="declaration")continue;let O=`${N.property}:${N.value}:${N.important}`;k[O]??Line truncated
|
||||
`,r){i+=f.length;let g=i;i+=l.property.length,i+=2,i+=l.value?.length??0,l.important&&(i+=11);let d=i;i+=2,l.dst=[e,g,d]}}else if(l.kind==="rule"){if(u+=`${f}${l.selector} {
|
||||
`,r){i+=f.length;let g=i;i+=l.selector.length,i+=1;let d=i;l.dst=[e,g,d],i+=2}for(let g of l.nodes)u+=n(g,c+1);u+=`${f}}
|
||||
`,r&&(i+=f.length,i+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let g=`${f}${l.name} ${l.params};
|
||||
`;if(r){i+=f.length;let d=i;i+=l.name.length,i+=1,i+=l.params.length;let p=i;i+=2,l.dst=[e,d,p]}return g}if(u+=`${f}${l.name}${l.params?` ${l.params} `:" "}{
|
||||
`,r){i+=f.length;let g=i;i+=l.name.length,l.params&&(i+=1,i+=l.params.length),i+=1;let d=i;l.dst=[e,g,d],i+=2}for(let g of l.nodes)u+=n(g,c+1);u+=`${f}}
|
||||
`,r&&(i+=f.length,i+=2)}else if(l.kind==="comment"){if(u+=`${f}/*${l.value}*/
|
||||
`,r){i+=f.length;let g=i;i+=2+l.value.length+2;let d=i;l.dst=[e,g,d],i+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return u}let s="";for(let l of t)s+=n(l,0);return e.code=s,s}function sn(t,r){let i=[];return I(t,(e,n)=>{if(r(e))return i=n.path(),i.push(e),R.Stop}),i}function $r(t,r,i,e=new Set){if(e.has(t)||(e.add(t),r.getOptions(t)&24))return!0;{let s=i.get(t)??[];for(let l of s)if($r(l,r,i,e))return!0}return!1}function Cr(t){return t.split(/[\s,]+/)}function be(t){if(t.indexOf("(")===-1)return Ie(t);let r=B(t);return It(r),t=Z(r),t=tr(t),t}function Ie(t,r=!1){let i="";for(let e=0;e<t.length;e++){let n=t[e];n==="\\"&&t[e+1]==="_"?(i+="_",e+=1):n==="_"&&!r?i+=" ":i+=n}return i}function It(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Ie(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Ie(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=Ie(r.nodes[i].value,!0);continue}It([r.nodes[i]])}break}r.value=Ie(r.value),It(r.nodes);break}case"separator":case"word":{r.value=Ie(r.value);break}default:un(r)}}function un(t){throw new Error(`Unexpected value: ${t}`)}var _t=new Uint8Array(256);function ve(t){let r=0,i=t.length;for(let e=0;e<i;e++){let n=t.charCodeAt(e);switch(n){case 92:e+=1;break;case 39:case 34:for(;++e<i;){let s=t.charCodeAt(e);if(s===92){e+=1;continue}if(s===n)break}break;case 40:_t[r]=41,r++;break;case 91:_t[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===_t[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var fn=58,Sr=45,Tr=97,Vr=122,Ut=/^[a-zA-Z0-9_.%-]+$/;function Nr(t){switch(t.kind){case"arbitrary":return{kind:t.kind,property:t.property,value:t.value,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null,variants:t.variants.map(_e),important:t.important,raw:t.raw};case"static":return{kind:t.kind,root:t.root,variants:t.variants.map(_e),important:t.important,raw:t.raw};case"functional":return{kind:t.kind,root:t.root,value:t.value?t.value.kind==="arbitrary"?{kind:t.value.kind,dataType:t.value.dataType,value:t.value.value}:{kind:t.value.kind,value:t.value.value,fraction:t.value.fraction}:null,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null,variants:t.variants.map(_e),important:t.important,raw:t.raw};default:throw new Error("Unknown candidate kind")}}function _e(t){switch(t.kind){case"arbitrary":return{kind:t.kind,selector:t.selector,relative:t.relative};case"static":return{kind:t.kind,root:t.root};case"functional":return{kind:t.kind,root:t.root,value:t.value?{kind:t.value.kind,value:t.value.value}:null,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null};case"compound":return{kind:t.kind,root:t.root,variant:_e(t.variant),modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*Er(t,r){let i=z(t,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let e=i.pop(),n=[];for(let d=i.length-1;d>=0;--d){let p=r.parseVariant(i[d]);if(p===null)return;n.push(p)}let s=!1;e[e.length-1]==="!"?(s=!0,e=e.slice(0,-1)):e[0]==="!"&&(s=!0,e=e.slice(1)),r.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:n,important:s,raw:t});let[l,c=null,u]=z(e,"/");if(u)return;let f=c===null?null:Dt(c);if(c!==null&&f===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let d=l.charCodeAt(1);if(d!==Sr&&!(d>=Tr&&d<=Vr))return;l=l.slice(1,-1);let p=l.indexOf(":");if(p===-1||p===0||p===l.length-1)return;let w=l.slice(0,p),h=be(l.slice(p+1));if(!ve(h))return;yield{kind:"arbitrary",property:w,value:h,modifier:f,variants:n,important:s,raw:t};return}let g;if(l[l.length-1]==="]"){let d=l.indexOf("-[");if(d===-1)return;let p=l.slice(0,d);if(!r.utilities.has(p,"functional"))return;let w=l.slice(d+1);g=[[p,w]]}else if(l[l.length-1]===")"){let d=l.indexOf("-(");if(d===-1)return;let p=l.slice(0,d);if(!r.utilities.has(p,"functional"))return;let w=l.slice(d+2,-1),h=z(w,":"),y=null;if(h.length===2&&(y=h[0],w=h[1]),w[0]!=="-"||w[1]!=="-"||!ve(w))return;g=[[p,y===null?`[var(${w})]`:`[${y}:var(${w})]`]]}else g=Or(l,d=>r.utilities.has(d,"functional"));for(let[d,p]of g){let w={kind:"functional",root:d,modifier:f,value:null,variants:n,important:s,raw:t};if(p===null){yield w;continue}{let h=p.indexOf("[");if(h!==-1){if(p[p.length-1]!=="]")return;let x=be(p.slice(h+1,-1));if(!ve(x))continue;let $=null;for(let A=0;A<x.length;A++){let k=x.charCodeAt(A);if(k===fn){$=x.slice(0,A),x=x.slice(A+1);break}if(!(k===Sr||k>=Tr&&k<=Vr))break}if(x.length===0||x.trim().length===0||$==="")continue;w.value={kind:"arbitrary",dataType:$||null,value:x}}else{let x=c===null||w.modifier?.kind==="arbitrary"?null:`${p}/${c}`;if(!Ut.test(p))continue;w.value={kind:"named",value:p,fraction:x}}}yield w}}function Dt(t){if(t[0]==="["&&t[t.length-1]==="]"){let r=be(t
Line truncated
|
||||
Only valid data types are: ${jt.map(y=>`"${y}"`).join(", ")}.
|
||||
`);let f=u.value,g=structuredClone(l),d="\xB6";I(g.nodes,y=>{if(y.kind==="word"&&y.value===f)return R.ReplaceSkip({kind:"word",value:d})});let p="^".repeat(Z([u]).length),w=Z([g]).indexOf(d),h=["```css",Z([l])," ".repeat(w)+p,"```"].join(`
|
||||
`);console.warn(h)}}),n.value=Z(s)}),i.utilities.functional(r.slice(0,-2),n=>{let s=te(t),l=n.value,c=n.modifier;if(l===null)return;let u=!1,f=!1,g=!1,d=!1,p=new Map,w=!1;if(I([s],(h,y)=>{let x=y.parent;if(x?.kind!=="rule"&&x?.kind!=="at-rule"||h.kind!=="declaration"||!h.value)return;let $=!1,A=B(h.value);if(I(A,k=>{if(k.kind==="function"){if(k.value==="--value"){u=!0;let U=_r(l,k,i);return U?(f=!0,U.ratio?w=!0:p.set(h,x),R.ReplaceSkip(U.nodes)):(u||=!1,$=!0,R.Stop)}else if(k.value==="--modifier"){if(c===null)return $=!0,R.Stop;g=!0;let U=_r(c,k,i);return U?(d=!0,R.ReplaceSkip(U.nodes)):(g||=!1,$=!0,R.Stop)}}}),$)return R.ReplaceSkip([]);h.value=Z(A)}),u&&!f||g&&!d||w&&d||c&&!w&&!d)return null;if(w)for(let[h,y]of p){let x=y.nodes.indexOf(h);x!==-1&&y.nodes.splice(x,1)}return s.nodes}),i.utilities.suggest(r.slice(0,-2),()=>{let n=[],s=[];for(let[l,{literals:c,usedSpacingNumber:u,usedSpacingInteger:f,themeKeys:g}]of[[n,e["--value"]],[s,e["--modifier"]]]){for(let d of c)l.push(d);if(u)l.push(...dt);else if(f)for(let d of dt)P(d)&&l.push(d);for(let d of i.theme.keysInNamespaces(g))l.push(d.replace(Kr,(p,w,h)=>`${w}.${h}`))}return[{values:n,modifiers:s}]})}:Tn(r)?i=>{i.utilities.static(r,()=>t.nodes.map(te))}:null}function _r(t,r,i){for(let e of r.nodes){if(t.kind==="named"&&e.kind==="word"&&(e.value[0]==="'"||e.value[0]==='"')&&e.value[e.value.length-1]===e.value[0]&&e.value.slice(1,-1)===t.value)return{nodes:B(t.value)};if(t.kind==="named"&&e.kind==="word"&&e.value[0]==="-"&&e.value[1]==="-"){let n=e.value;if(n.endsWith("-*")){n=n.slice(0,-2);let s=i.theme.resolve(t.value,[n]);if(s)return{nodes:B(s)}}else{let s=n.split("-*");if(s.length<=1)continue;let l=[s.shift()],c=i.theme.resolveWith(t.value,l,s);if(c){let[,u={}]=c;{let f=u[s.pop()];if(f)return{nodes:B(f)}}}}}else if(t.kind==="named"&&e.kind==="word"){if(!jt.includes(e.value))continue;let n=e.value==="ratio"&&"fraction"in t?t.fraction:t.value;if(!n)continue;let s=H(n,[e.value]);if(s===null)continue;if(s==="ratio"){let[l,c]=z(n,"/").map(Number);if(!P(l)||!P(c))continue}else{if(s==="number"&&!ee(n))continue;if(s==="percentage"&&!P(n.slice(0,-1)))continue}if(s==="ratio"){let[l,c]=z(n,"/");return{nodes:B(`${l.trim()} / ${c.trim()}`),ratio:!0}}return{nodes:B(n),ratio:!1}}else if(t.kind==="arbitrary"&&e.kind==="word"&&e.value[0]==="["&&e.value[e.value.length-1]==="]"){let n=e.value.slice(1,-1);if(n==="*")return{nodes:B(t.value)};if("dataType"in t&&t.dataType&&t.dataType!==n)continue;if("dataType"in t&&t.dataType)return{nodes:B(t.value)};if(H(t.value,[n])!==null)return{nodes:B(t.value)}}}}function we(t,r,i,e,n=""){let s=!1,l=Je(r,u=>i==null?e(u):u.startsWith("current")?e(Q(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(Dr(u,i))));function c(u){return n?z(u,",").map(f=>n.trim()+" "+f.trim()).join(", "):u}return s?[o(t,c(Je(r,e))),J("@supports (color: lab(from red l a b))",[o(t,c(l))])]:[o(t,c(l))]}function ft(t,r,i,e,n=""){let s=!1,l=z(r,",").map(c=>Je(c,u=>i==null?e(u):u.startsWith("current")?e(Q(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(Dr(u,i))))).map(c=>`drop-shadow(${c})`).join(" ");return s?[o(t,n+z(r,",").map(c=>`drop-shadow(${Je(c,e)})`).join(" ")),J("@supports (color: lab(from red l a b))",[o(t,n+l)])]:[o(t,n+l)]}var zr=/^-?[a-z][a-zA-Z0-9_-]*/,wn=37,yn=47,kn=46,bn=97,xn=122,An=65,Cn=90,ct=48,pt=57,$n=95,Sn=45;function Tn(t){let r=zr.exec(t);if(r===null)return!1;let i=r[0],e=t.slice(i.length);if(e.length===0&&i.endsWith("-"))return!1;if(e.length===0)return!0;let n=!1;for(let s=0;s<e.length;s++){let l=e.charCodeAt(s);switch(l){case wn:{if(s!==e.length-1)return!1;let u=(e[s-1]||i[i.length-1]||"").charCodeAt(0);if(u<ct||u>pt)return!1;break}case yn:{if(s===e.length-1||n)return!1;n=!0;break}case kn:{let u=(e[s-1]||i[i.length-1]||"").charCodeAt(0);if(u<ct||u>pt)return!1;let g=(e[s+1]||"").charCodeAt(0);if(g<ct||g>pt)return!1;break}case $n:case Sn:continue;default:{if(l>=bn&&l<=xn||l>=An&&l<=Cn||l>=ct&&l<=pt)continue;return!1}}}return!0}function Vn(t){if(!t.endsWith("-*"))return!1;t=t.slice(0,-2);let r=zr.exec(t);if(r===null)return!1;let i=r[0];return t.slice(i.length).length===0}var Mt={"--alpha":Nn,"--spacing":En,"--theme":Rn,theme:On};function Nn(t,r,i,...e){let[n,s]=z(i,"/").map(l=>l.trim());if(!n||!s)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);if(e.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);return Q(n,s)}function En(t,r,i,...e){if(!i)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(e.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${e.length+1}.`);let n=t.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${nLine truncated
|
||||
`,`
|
||||
`);let r=[],i=[],e=null,n="",s;for(let l=0;l<t.length;l++){let c=t.charCodeAt(l);switch(c){case ei:case ti:case ri:case oi:case li:case ai:case si:{if(n.length>0){let p=Ae(n);e?e.nodes.push(p):r.push(p),n=""}let u=l,f=l+1;for(;f<t.length&&(s=t.charCodeAt(f),!(s!==ei&&s!==ti&&s!==ri&&s!==oi&&s!==li&&s!==ai&&s!==si));f++);l=f-1;let g=t.slice(u,f),d=g.trim()===","?Yn(g):Wn(g);e?e.nodes.push(d):r.push(d);break}case ni:{let u=Bn(n,[]);if(n="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let f=l+1,g=0;for(let p=l+1;p<t.length;p++){if(s=t.charCodeAt(p),s===ni){g++;continue}if(s===Xr){if(g===0){l=p;break}g--}}let d=l;u.nodes.push(Gn(t.slice(f,d))),n="",l=d,e?e.nodes.push(u):r.push(u);break}e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case Xr:{let u=i.pop();if(n.length>0){let f=Ae(n);u.nodes.push(f),n=""}i.length>0?e=i[i.length-1]:e=null;break}case Jn:case Zn:case Qn:{if(n.length>0){let u=Ae(n);e?e.nodes.push(u):r.push(u)}n=t[l];break}case ii:{if(n.length>0){let g=Ae(n);e?e.nodes.push(g):r.push(g)}n="";let u=l,f=0;for(let g=l+1;g<t.length;g++){if(s=t.charCodeAt(g),s===ii){f++;continue}if(s===qn){if(f===0){l=g;break}f--}}n+=t.slice(u,l+1);break}case Xn:case Hn:{let u=l;for(let f=l+1;f<t.length;f++)if(s=t.charCodeAt(f),s===Qr)f+=1;else if(s===c){l=f;break}n+=t.slice(u,l+1);break}case el:case tl:{if(n.length>0){let u=Ae(n);e?e.nodes.push(u):r.push(u),n=""}e?e.nodes.push(Ae(t[l])):r.push(Ae(t[l]));break}case Qr:{n+=t[l]+t[l+1],l+=1;break}default:n+=t[l]}}return n.length>0&&r.push(Ae(n)),r}function ue(t,r){for(let i in t)delete t[i];return Object.assign(t,r)}function Oe(t){let r=[];for(let i of z(t,".")){if(!i.includes("[")){r.push(i);continue}let e=0;for(;;){let n=i.indexOf("[",e),s=i.indexOf("]",n);if(n===-1||s===-1)break;n>e&&r.push(i.slice(e,n)),r.push(i.slice(n+1,s)),e=s+1}e<=i.length-1&&r.push(i.slice(e))}return r}function Ft(t,r){let i=t;return i.storage[pi]??=rl(),i.storage[di]??=nl(i),i.storage[mi]??=al(),i.storage[gi]??=ul(),i.storage[hi]??=cl(),i.storage[Bt]??=hl(i),i.storage[wt]??=yl(i,r),i.storage[de]??=Rl(i),i.storage[Yt]??=Pl(),i.storage[yt]??=Il(i),i.storage[Gt]??=_l(i),i.storage[bt]??=Dl(i),i.storage[yi]??=Kl(i),i}var pi=Symbol();function rl(){return new K(t=>new K(r=>({rem:t,features:r})))}function il(t,r){let i=0;return r?.collapse&&(i|=1),r?.logicalToPhysical&&(i|=2),Ft(t,r).storage[pi].get(r?.rem??null).get(i)}var di=Symbol();function nl(t){return new K(r=>new K(i=>({features:i,designSystem:t,signatureOptions:r})))}function ll(t,r,i){let e=0;return i?.collapse&&(e|=1),Ft(t).storage[di].get(r).get(e)}function Wt(t,r,i){let e=il(t,i),n=ll(t,e,i),s=Ft(t),l=new Set,c=s.storage[mi].get(n);for(let u of r)l.add(c.get(u));return l.size<=1||!(n.features&1)?Array.from(l):ol(n,Array.from(l))}function ol(t,r){if(r.length<=1)return r;let i=t.designSystem,e=new K(c=>new K(u=>new Set)),n=t.designSystem.theme.prefix?`${t.designSystem.theme.prefix}:`:"";for(let c of r){let u=z(c,":"),f=u.pop(),g=f.endsWith("!");g&&(f=f.slice(0,-1));let d=u.length>0?`${u.join(":")}:`:"",p=g?"!":"";e.get(d).get(p).add(`${n}${f}`)}let s=new Set;for(let[c,u]of e.entries())for(let[f,g]of u.entries())for(let d of l(Array.from(g)))n&&d.startsWith(n)&&(d=d.slice(n.length)),s.add(`${c}${d}${f}`);return Array.from(s);function l(c){let u=t.signatureOptions,f=i.storage[yt].get(u),g=i.storage[Yt].get(u),d=c.map($=>f.get($));if(d.some($=>$.has("line-height"))){let $=i.theme.keysInNamespaces(["--text"]);if($.length>0){let A=new Set,k=new Set;for(let N of d)if(N.has("line-height"))for(let O of N.get("line-height")){if(k.has(O))continue;k.add(O);let L=i.storage[wt]?.get(O)??null;if(L!==null)if(ee(L)){A.add(L);for(let _ of $)f.get(`text-${_}/${L}`)}else{A.add(O);for(let _ of $)f.get(`text-${_}/[${O}]`)}}let U=new Set;for(let N of d)if(N.has("font-size")){for(let O of N.get("font-size"))if(!U.has(O)){U.add(O);for(let L of A)ee(L)?f.get(`text-[${O}]/${L}`):f.get(`text-[${O}]/[${L}]`)}}}}let p=d.map($=>{let A=null;for(let k of $.keys()){let U=new Set;for(let N of g.get(k).values())for(let O of N)U.add(O);if(A===null?A=U:A=ci(A,U),A.size===0)return A}return A}),w=new K($=>new Set([$]));for(let $=0;$<p.length;$++){let A=p[$];for(let k=$+1;k<p.length;k++){let U=p[k];for(let N of A)if(U.has(N)){w.get($).add(k),w.get(k).add($);break}}}if(w.size===0)return c;let h=new K($=>$.split(",").map(Number));for(let $ of w.values()){let A=Array.from($).sort((k,U)=>k-U);h.get(A.join(","))}let y=new Set(c),x=new Set;for(let $ of h.values())for(let A of Ll($)){if(A.some(N=>x.has(c[N])))continue;let k=A.flatMap(N=>p[N]).reduce(ci),U=i.storage[de].get(u).get(A.map(N=>c[N]).sort((N,O)=>N.localeCompare(O)).join(" "));for(let N of k)if(i.storage[de].get(u).get(N)===U){for(let L of A)x.add(c[L]);y.add(N);break}}for(let $ of x)y.delete($);return Array.from(y)}}var mi=Symbol();function al(){return new K(t=>{let r=t.designSystem,i=r.theme.prefix?`${r.theme.prefix}:`:"",e=r.storage[gi].get(t),n=r.storage[hi].get(t);return new K((s,l)=>{for(let c of r.
Line truncated
|
||||
`),s=!0;return I(B(e),l=>{if(l.kind==="function"&&l.value==="var"){let c=l.nodes[0].value;if(!new RegExp(`var\\(${c}[,)]\\s*`,"g").test(n)||n.includes(`${c}:`))return s=!1,R.Stop}}),s}function xl(t,r){if(t.kind!=="functional"||t.value?.kind!=="named")return t;let i=r.designSystem,e=i.storage[Gt].get(r.signatureOptions),n=i.storage[de].get(r.signatureOptions),s=i.printCandidate(t),l=n.get(s);if(typeof l!="string")return t;for(let u of c(l,t)){let f=i.printCandidate(u);if(n.get(f)===l)return u}return t;function*c(u,f){let g=e.get(u);if(!(g.length>1)){if(g.length===0&&f.modifier){let d={...f,modifier:null},p=n.get(i.printCandidate(d));if(typeof p=="string")for(let w of c(p,d))yield Object.assign({},w,{modifier:f.modifier})}if(g.length===1)for(let d of ye(i,g[0]))yield d}}}var Al=new Map([["order-none","order-0"],["break-words","wrap-break-word"]]);function Cl(t,r){let i=r.designSystem,e=i.storage[de].get(r.signatureOptions),n=wl(i,t),s=Al.get(n)??null;if(s===null)return t;let l=e.get(n);if(typeof l!="string")return t;let c=e.get(s);if(typeof c!="string"||l!==c)return t;let[u]=ye(i,s);return u}function $l(t,r){let i=r.designSystem,e=i.storage[bt],n=i.storage[yi],s=kt(t);for(let[l]of s){if(l.kind==="compound")continue;let c=i.printVariant(l),u=e.get(c);if(typeof u!="string")continue;let f=n.get(u);if(f.length!==1)continue;let g=f[0],d=i.parseVariant(g);d!==null&&ue(l,d)}return t}function Sl(t,r){let i=r.designSystem,e=i.storage[de].get(r.signatureOptions);if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.dataType!==null){let n=i.printCandidate({...t,value:{...t.value,dataType:null}});e.get(i.printCandidate(t))===e.get(n)&&(t.value.dataType=null)}return t}function Tl(t,r){if(t.kind!=="functional"||t.value?.kind!=="arbitrary")return t;let i=r.designSystem,e=i.storage[de].get(r.signatureOptions),n=e.get(i.printCandidate(t));if(n===null)return t;for(let s of vi(t))if(e.get(i.printCandidate({...t,value:s}))===n)return t.value=s,t;return t}function Vl(t){let r=kt(t);for(let[i]of r)if(i.kind==="functional"&&i.root==="data"&&i.value?.kind==="arbitrary"&&!i.value.value.includes("="))i.value={kind:"named",value:i.value.value};else if(i.kind==="functional"&&i.root==="aria"&&i.value?.kind==="arbitrary"&&(i.value.value.endsWith("=true")||i.value.value.endsWith('="true"')||i.value.value.endsWith("='true'"))){let[e,n]=z(i.value.value,"=");if(e[e.length-1]==="~"||e[e.length-1]==="|"||e[e.length-1]==="^"||e[e.length-1]==="$"||e[e.length-1]==="*")continue;i.value={kind:"named",value:i.value.value.slice(0,i.value.value.indexOf("="))}}else i.kind==="functional"&&i.root==="supports"&&i.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(i.value.value)&&(i.value={kind:"named",value:i.value.value});return t}function*vi(t,r=t.value?.value??"",i=new Set){if(i.has(r))return;if(i.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&ee(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[s,l]=r.split("/");P(s)&&P(l)&&(yield{kind:"named",value:s,fraction:`${s}/${l}`})}let e=new Set;for(let s of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))e.add(s[0].trim());let n=Array.from(e).sort((s,l)=>s.length-l.length);for(let s of n)yield*vi(t,s,i)}function fi(t){return!t.some(r=>r.kind==="separator"&&r.value.trim()===",")}function vt(t){let r=t.value.trim();return t.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function Nl(t,r){let i=[t],e=r.designSystem,n=e.storage[bt],s=kt(t);for(let[l,c]of s)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let u=Re(l.selector.trim());if(!fi(u))continue;if(c===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===">"&&u[2].kind==="selector"&&u[2].value==="*"){ue(l,e.parseVariant("*"));continue}if(c===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===""&&u[2].kind==="selector"&&u[2].value==="*"){ue(l,e.parseVariant("**"));continue}if(c===null&&u.length===3&&u[1].kind==="combinator"&&u[1].value.trim()===""&&u[2].kind==="selector"&&u[2].value==="&"){u.pop(),u.pop(),ue(l,e.parseVariant(`in-[${pe(u)}]`));continue}if(c===null&&u[0].kind==="selector"&&(u[0].value==="@media"||u[0].value==="@supports")){let p=n.get(e.printVariant(l)),w=B(pe(u)),h=!1;if(I(w,y=>{if(y.kind==="word"&&y.value==="not")return h=!0,R.Replace([])}),w=B(Z(w)),I(w,y=>{y.kind==="separator"&&y.value!==" "&&y.value.trim()===""&&(y.value=" ")}),h){let y=e.parseVariant(`not-[${Z(w)}]`);if(y===null)continue;let x=n.get(e.printVariant(y));if(p===x){ue(l,y);continue}}}let f=null;c===null&&u.length===3&&u[0].kind==="selector"&&u[0].value.trim()==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===">"&&u[2].kind==="selector"&&(vt(u[2])||u[2].value[0]===":")&&(u=[u[2]],f=e.parseVariant("*")),c===null&&u.length===3&&u[0].kind==="s
Line truncated
|
||||
|
||||
${ie([d])}
|
||||
Relies on:
|
||||
|
||||
${ie([w])}`)}f.add(d);for(let w of s.get(d))for(let h of l.get(w))p.push(d),g(h,p),p.pop();c.add(d),f.delete(d),u.push(d)}}for(let d of n)g(d);for(let d of u)"nodes"in d&&I(d.nodes,p=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let w=p.params.split(/(\s+)/g),h={},y=0;for(let[x,$]of w.entries())x%2===0&&(h[$]=y),y+=$.length;{let x=Object.keys(h),$=$e(x,r,{respectImportant:!1,onInvalidCandidate:N=>{if(r.theme.prefix&&!N.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${N}\`. Did you mean \`${r.theme.prefix}:${N}\`?`);if(r.invalidCandidates.has(N))throw new Error(`Cannot apply utility class \`${N}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let O=z(N,":");if(O.length>1){let L=O.pop();if(r.candidatesToCss([L])[0]){let _=r.candidatesToCss(O.map(Y=>`${Y}:[--tw-variant-check:1]`)),j=O.filter((Y,q)=>_[q]===null);if(j.length>0){if(j.length===1)throw new Error(`Cannot apply utility class \`${N}\` because the ${j.map(Y=>`\`${Y}\``)} variant does not exist.`);{let Y=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${N}\` because the ${Y.format(j.map(q=>`\`${q}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${N}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${N}\``)}}),A=p.src,k=$.astNodes.map(N=>{let O=$.nodeSorting.get(N)?.candidate,L=O?h[O]:void 0;if(N=te(N),!A||!O||L===void 0)return I([N],j=>{j.src=A}),N;let _=[A[0],A[1],A[2]];return _[1]+=7+L,_[2]=_[1]+O.length,I([N],j=>{j.src=_}),N}),U=[];for(let N of k)if(N.kind==="rule")for(let O of N.nodes)U.push(O);else U.push(N);return R.Replace(U)}});return i}function*Ni(t,r){for(let i of t.params.split(/\s+/g))for(let e of r.parseCandidate(i))switch(e.kind){case"arbitrary":break;case"static":case"functional":yield e.root;break;default:}}async function Jt(t,r,i,e=0,n=!1){let s=0,l=[];return I(t,c=>{if(c.kind==="at-rule"&&(c.name==="@import"||c.name==="@reference")){let u=Bl(B(c.params));if(u===null)return;c.name==="@reference"&&(u.media="reference"),s|=2;let{uri:f,layer:g,media:d,supports:p}=u;if(f.startsWith("data:")||f.startsWith("http://")||f.startsWith("https://"))return;let w=ce({},[]);return l.push((async()=>{if(e>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${f}\` in \`${r}\`)`);let h=await i(f,r),y=Se(h.content,{from:n?h.path:void 0});await Jt(y,h.base,i,e+1,n),w.nodes=Yl(c,[ce({base:h.base},y)],g,d,p)})()),R.ReplaceSkip(w)}}),l.length>0&&await Promise.all(l),s}function Bl(t){let r,i=null,e=null,n=null;for(let s=0;s<t.length;s++){let l=t[s];if(l.kind!=="separator"){if(l.kind==="word"&&!r){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;r=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!r)return null;if((l.kind==="word"||l.kind==="function")&&l.value.toLowerCase()==="layer"){if(i)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in l?i=Z(l.nodes):i="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(n)return null;n=Z(l.nodes);continue}e=Z(t.slice(s));break}}return r?{uri:r,layer:i,media:e,supports:n}:null}function Yl(t,r,i,e,n){let s=r;if(i!==null){let l=F("@layer",i,s);l.src=t.src,s=[l]}if(e!==null){let l=F("@media",e,s);l.src=t.src,s=[l]}if(n!==null){let l=F("@supports",n[0]==="("?n:`(${n})`,s);l.src=t.src,s=[l]}return s}function Me(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let r=Object.getPrototypeOf(t);return r===null||Object.getPrototypeOf(r)===null}function Xe(t,r,i,e=[]){for(let n of r)if(n!=null)for(let s of Reflect.ownKeys(n)){e.push(s);let l=i(t[s],n[s],e);l!==void 0?t[s]=l:!Me(t[s])||!Me(n[s])?t[s]=n[s]:t[s]=Xe({},[t[s],n[s]],i,e),e.pop()}return t}function At(t,r,i){return function(n,s){let l=n.lastIndexOf("/"),c=null;l!==-1&&(c=n.slice(l+1).trim(),n=n.slice(0,l).trim());let u=(()=>{let f=Oe(n),[g,d]=Gl(t.theme,f),p=i(Ei(r()??{},f)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof g!="object")return typeof d!="object"&&d&4?p??g:g;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let w=Xe({},[p],(h,y)=>y);if(g===null&&Object.hasOwn(p,"__CSS_VALUES__")){let h={};for(let y in p.__CSS_VALUES__)h[y]=p[y],delete w[y];g=h}for(let h in g)h!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[h]&4&&Ei(w,h.split("-"))!==void 0||(w[ge(h)]=g[h]));return w}if(Array.isArray(g)&&Array.isArray(d)&&Array.isArray(p)){let w=g[0],h=g[1];d[0]&4&&(w=p[0]??w);for(let y of Object.keys(h))d[1][y]&4&&(h[y]=p[1][y]??h[y]);return[w,h]}return g??p})();return c&&typeof u=="string"&&(u=Q(u,c)),u??s}}function Gl(t,r){if(r.length===1&&r[0].startsWith("--"))return[t.get([r[0]]),t.getOptions(Line truncated
|
||||
|
||||
${ie([x])}
|
||||
|
||||
\`@plugin\` options must be a flat list of declarations.`);if(x.value===void 0)continue;let $=x.value,A=z($,",").map(k=>{if(k=k.trim(),k==="null")return null;if(k==="true")return!0;if(k==="false")return!1;if(Number.isNaN(Number(k))){if(k[0]==='"'&&k[k.length-1]==='"'||k[0]==="'"&&k[k.length-1]==="'")return k.slice(1,-1);if(k[0]==="{"&&k[k.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${ie([x]).trim()}\` is not supported.
|
||||
|
||||
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(k);return k});y[x.property]=A.length===1?A[0]:A}return l.push([{id:h,base:w.context.base,reference:!!w.context.reference,src:d.src},Object.keys(y).length>0?y:null]),s|=4,R.Replace([])}if(d.name==="@config"){if(d.nodes.length>0)throw new Error("`@config` cannot have a body.");if(w.parent!==null)throw new Error("`@config` cannot be nested.");return c.push({id:d.params.slice(1,-1),base:w.context.base,reference:!!w.context.reference,src:d.src}),s|=4,R.Replace([])}}),Li(t);let u=t.resolveThemeValue;if(t.resolveThemeValue=function(p,w){return p.startsWith("--")?u(p,w):(s|=Mi({designSystem:t,base:r,ast:i,sources:n,configs:[],pluginDetails:[]}),t.resolveThemeValue(p,w))},!l.length&&!c.length)return 0;let[f,g]=await Promise.all([Promise.all(c.map(async({id:d,base:p,reference:w,src:h})=>{let y=await e(d,p,"config");return{path:d,base:y.base,config:y.module,reference:w,src:h}})),Promise.all(l.map(async([{id:d,base:p,reference:w,src:h},y])=>{let x=await e(d,p,"plugin");return{path:d,base:x.base,plugin:x.module,options:y,reference:w,src:h}}))]);return s|=Mi({designSystem:t,base:r,ast:i,sources:n,configs:f,pluginDetails:g}),s}function Mi({designSystem:t,base:r,ast:i,sources:e,configs:n,pluginDetails:s}){let l=0,u=[...s.map(y=>{if(!y.options)return{config:{plugins:[y.plugin]},base:y.base,reference:y.reference,src:y.src};if("__isOptionsFunction"in y.plugin)return{config:{plugins:[y.plugin(y.options)]},base:y.base,reference:y.reference,src:y.src};throw new Error(`The plugin "${y.path}" does not accept options`)}),...n],{resolvedConfig:f}=er(t,[{config:Di(t.theme),base:r,reference:!0,src:void 0},...u,{config:{plugins:[Ui]},base:r,reference:!0,src:void 0}]),{resolvedConfig:g,replacedThemeKeys:d}=er(t,u),p={designSystem:t,ast:i,resolvedConfig:f,featuresRef:{set current(y){l|=y}}},w=Qt({...p,referenceMode:!1,src:void 0}),h=t.resolveThemeValue;t.resolveThemeValue=function(x,$){if(x[0]==="-"&&x[1]==="-")return h(x,$);let A=w.theme(x,void 0);if(Array.isArray(A)&&A.length===2)return A[0];if(Array.isArray(A))return A.join(", ");if(typeof A=="object"&&A!==null&&"DEFAULT"in A)return A.DEFAULT;if(typeof A=="string")return A};for(let{handler:y,reference:x,src:$}of f.plugins){let A=Qt({...p,referenceMode:x??!1,src:$});y(A)}if(Wr(t,g,d),_i(t,g),ji(g,t),zi(g,t),Ki(g,t),!t.theme.prefix&&f.prefix){if(f.prefix.endsWith("-")&&(f.prefix=f.prefix.slice(0,-1),console.warn(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!eo.test(f.prefix))throw new Error(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);t.theme.prefix=f.prefix}if(!t.important&&f.important===!0&&(t.important=!0),typeof f.important=="string"){let y=f.important;I(i,(x,$)=>{if(x.kind!=="at-rule"||x.name!=="@tailwind"||x.params!=="utilities")return;let A=qe($);return A.parent?.kind==="rule"&&A.parent.selector===y?R.Stop:R.ReplaceStop(G(y,[x]))})}for(let y of f.blocklist)t.invalidCandidates.add(y);for(let y of f.content.files){if("raw"in y)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
|
||||
|
||||
${JSON.stringify(y,null,2)}
|
||||
|
||||
This feature is not currently supported.`);let x=!1;y.pattern[0]=="!"&&(x=!0,y.pattern=y.pattern.slice(1)),e.push({...y,negated:x})}return l}function Wi({ast:t}){let r=new K(n=>tt(n.code)),i=new K(n=>({url:n.file,content:n.code,ignore:!1})),e={file:null,sources:[],mappings:[]};I(t,n=>{if(!n.src||!n.dst)return;let s=i.get(n.src[0]);if(!s.content)return;let l=r.get(n.src[0]),c=r.get(n.dst[0]),u=s.content.slice(n.src[1],n.src[2]),f=0;for(let p of u.split(`
|
||||
`)){if(p.trim()!==""){let w=l.find(n.src[1]+f),h=c.find(n.dst[1]);e.mappings.push({name:null,originalPosition:{source:s,...w},generatedPosition:h})}f+=p.length,f+=1}let g=l.find(n.src[2]),d=c.find(n.dst[2]);e.mappings.push({name:null,originalPosition:{source:s,...g},generatedPosition:d})});for(let n of r.keys())e.sources.push(i.get(n));return e.mappings.sort((n,s)=>n.generatedPosition.line-s.generatedPosition.line||n.generatedPosition.column-s.generatedPosition.column||(n.originalPosition?.line??0)-(s.originalPosition?.line??0)||(n.originalPosition?.column??0)-(s.originalPosition?.column??0)),e}var Bi=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Ct(t){let r=t.indexOf("{");if(r===-1)return[t];let i=[],e=t.slice(0,r),n=t.slice(r),s=0,l=n.lastIndexOf("}");for(let d=0;d<n.length;d++){let p=n[d];if(p==="{")s++;else if(p==="}"&&(s--,s===0)){l=d;break}}if(l===-1)throw new Error(`The pattern \`${t}\` is not balanced.`);let c=n.slice(1,l),u=n.slice(l+1),f;to(c)?f=ro(c):f=z(c,","),f=f.flatMap(d=>Ct(d));let g=Ct(u);for(let d of g)for(let p of f)i.push(e+p+d);return i}function to(t){return Bi.test(t)}function ro(t){let r=t.match(Bi);if(!r)return[t];let[,i,e,n]=r,s=n?parseInt(n,10):void 0,l=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(e)){let c=parseInt(i,10),u=parseInt(e,10);if(s===void 0&&(s=c<=u?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");let f=c<u;f&&s<0&&(s=-s),!f&&s>0&&(s=-s);for(let g=c;f?g<=u:g>=u;g+=s)l.push(g.toString())}return l}function Yi(t,r){let i=new Set,e=new Set,n=[];function s(l,c=[]){if(t.has(l)&&!i.has(l)){e.has(l)&&r.onCircularDependency?.(c,l),e.add(l);for(let u of t.get(l)??[])c.push(l),s(u,c),c.pop();i.add(l),e.delete(l),n.push(l)}}for(let l of t.keys())s(l);return n}var io=/^[a-z]+$/,Pt=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(Pt||{});function no(){throw new Error("No `loadModule` function provided to `compile`")}function lo(){throw new Error("No `loadStylesheet` function provided to `compile`")}function oo(t){let r=0,i=null;for(let e of z(t," "))e==="reference"?r|=2:e==="inline"?r|=1:e==="default"?r|=4:e==="static"?r|=8:e.startsWith("prefix(")&&e.endsWith(")")&&(i=e.slice(7,-1));return[r,i]}var Ke=(u=>(u[u.None=0]="None",u[u.AtApply=1]="AtApply",u[u.AtImport=2]="AtImport",u[u.JsPluginCompat=4]="JsPluginCompat",u[u.ThemeFunction=8]="ThemeFunction",u[u.Utilities=16]="Utilities",u[u.Variants=32]="Variants",u[u.AtTheme=64]="AtTheme",u))(Ke||{});async function Gi(t,{base:r="",from:i,loadModule:e=no,loadStylesheet:n=lo}={}){let s=0;t=[ce({base:r},t)],s|=await Jt(t,r,n,0,i!==void 0);let l=null,c=new at,u=new Map,f=new Map,g=[],d=null,p=null,w=[],h=[],y=[],x=[],$=null;I(t,(k,U)=>{if(k.kind!=="at-rule")return;let N=qe(U);if(k.name==="@tailwind"&&(k.params==="utilities"||k.params.startsWith("utilities"))){if(p!==null)return R.Replace([]);if(N.context.reference)return R.Replace([]);let O=z(k.params," ");for(let L of O)if(L.startsWith("source(")){let _=L.slice(7,-1);if(_==="none"){$=_;continue}if(_[0]==='"'&&_[_.length-1]!=='"'||_[0]==="'"&&_[_.length-1]!=="'"||_[0]!=="'"&&_[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");$={base:N.context.sourceBase??N.context.base,pattern:_.slice(1,-1)}}p=k,s|=16}if(k.name==="@utility"){if(N.parent!==null)throw new Error("`@utility` cannot be nested.");if(k.nodes.length===0)throw new Error(`\`@utility ${k.params}\` is empty. Utilities should include at least one property.`);let O=Lr(k);if(O===null){if(!k.params.endsWith("-*")){if(k.params.endsWith("*"))throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(k.params.includes("*"))throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}g.push(O)}if(k.name==="@source"){if(k.nodes.length>0)throw new Error("`@source` cannot have a body.");if(N.parent!==null)throw new Error("`@source` cannot be nested.");let O=!1,L=!1,_=k.params;if(_[0]==="n"&&_.startsWith("not ")&&(O=!0,_=_.slice(4)),_[0]==="i"&&_.startsWith("inline(")&&(L=!0,_=_.slice(7,-1).trim()),_[0]==='"'&&_[_.length-1]!=='"'||_[0]==="'"&&_[_.length-1]!=="'"||_[0]!=="'"&&_[0]!=='"')throw new Error("`@source` paths must be quoted.");let j=_.slice(1,-1);if(L){let Y=O?x:y,q=z(j," ");for(let le of q)for(let oe of Ct(le))Y.push(oe)}else h.push({base:N.context.base,pattern:j,negated:O});return R.ReplaceSkip([])}if(k.name==="@variant"&&(N.parent===null?k.nodes.length===0?k.name="@custom-variant":(I(k.nodes,O=>{if(O.kind==="at-rule"&&O.name==="@slot")return k.name="@custom-variant",R.Stop}),k.name==="@variant"&&w.push(k)):w.push(k)),k.name==="@custom-variant"){if(N.parent!==null)throw new Error("`@custom-variant` cannot be nested.");let[O,L]=z(k.params," ");if(!xt.test(O))throwLine truncated
|
||||
`).map((Y,q,le)=>`${q===0||q>=le.length-2?" ":">"} ${Y}`).join(`
|
||||
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
||||
|
||||
${j}`)}),d?R.ReplaceSkip([]):(d=G(":root, :host",[]),d.src=k.src,R.ReplaceSkip(d))}});let A=$i(c,p?.src);if(l&&(A.important=l),x.length>0)for(let k of x)A.invalidCandidates.add(k);s|=await Fi({designSystem:A,base:r,ast:t,loadModule:e,sources:h});for(let k of u.keys())A.variants.static(k,()=>{});for(let k of Yi(f,{onCircularDependency(U,N){let O=ie(U.map((L,_)=>F("@custom-variant",L,[F("@variant",U[_+1]??N,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${N} {`,`@custom-variant ${N} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
|
||||
|
||||
${O}`)}}))u.get(k)?.(A);for(let k of g)k(A);if(d){let k=[];for(let[N,O]of A.theme.entries()){if(O.options&2)continue;let L=o(ke(N),O.value);L.src=O.src,k.push(L)}let U=A.theme.getKeyframes();for(let N of U)t.push(ce({theme:!0},[W([N])]));d.nodes=[ce({theme:!0},k)]}if(s|=Qe(t,A),s|=De(t,A),s|=Ce(t,A),p){let k=p;k.kind="context",k.context={}}return I(t,k=>{if(k.kind==="at-rule")return k.name==="@utility"?R.Replace([]):R.Skip}),{designSystem:A,ast:t,sources:h,root:$,utilitiesNode:p,features:s,inlineCandidates:y}}async function ao(t,r={}){let{designSystem:i,ast:e,sources:n,root:s,utilitiesNode:l,features:c,inlineCandidates:u}=await Gi(t,r);e.unshift(ot(`! tailwindcss v${lr} | MIT License | https://tailwindcss.com `));function f(h){i.invalidCandidates.add(h)}let g=new Set,d=null,p=0,w=!1;for(let h of u)i.invalidCandidates.has(h)||(g.add(h),w=!0);return{sources:n,root:s,features:c,build(h){if(c===0)return t;if(!l)return d??=Te(e,i,r.polyfills),d;let y=w,x=!1;w=!1;let $=g.size;for(let k of h)if(!i.invalidCandidates.has(k))if(k[0]==="-"&&k[1]==="-"){let U=i.theme.markUsedVariable(k);y||=U,x||=U}else g.add(k),y||=g.size!==$;if(!y)return d??=Te(e,i,r.polyfills),d;let A=$e(g,i,{onInvalidCandidate:f}).astNodes;return r.from&&I(A,k=>{k.src??=l.src}),!x&&p===A.length?(d??=Te(e,i,r.polyfills),d):(p=A.length,l.nodes=A,d=Te(e,i,r.polyfills),d)}}}async function vf(t,r={}){let i=Se(t,{from:r.from}),e=await ao(i,r),n=i,s=t;return{...e,build(l){let c=e.build(l);return c===n||(s=ie(c,!!r.from),n=c),s},buildSourceMap(){return Wi({ast:n})}}}async function wf(t,r={}){return(await Gi(Se(t,{from:r.from}),r)).designSystem}function so(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}export{Pt as a,Ke as b,ao as c,vf as d,wf as e,so as f};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a as k}from"./chunk-X4GG3EDV.mjs";var _=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent","currentcolor","canvas","canvastext","linktext","visitedtext","activetext","buttonface","buttontext","buttonborder","field","fieldtext","highlight","highlighttext","selecteditem","selecteditemtext","mark","marktext","graytext","accentcolor","accentcolortext"]),U=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;function S(e){return e.charCodeAt(0)===35||U.test(e)||_.has(e.toLowerCase())}var A=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function b(e){return e.indexOf("(")!==-1&&A.some(t=>e.includes(`${t}(`))}function oe(e){if(!A.some(n=>e.includes(n)))return e;let t="",r=[],s=null,m=null;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=48&&a<=57||s!==null&&(a===37||a>=97&&a<=122||a>=65&&a<=90)?s=n:(m=s,s=null),a===40){t+=e[n];let i=n;for(let p=n-1;p>=0;p--){let c=e.charCodeAt(p);if(c>=48&&c<=57)i=p;else if(c>=97&&c<=122)i=p;else break}let o=e.slice(i,n);if(A.includes(o)){r.unshift(!0);continue}else if(r[0]&&o===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(a===41)t+=e[n],r.shift();else if(a===44&&r[0]){t+=", ";continue}else{if(a===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((a===43||a===42||a===47||a===45)&&r[0]){let i=t.trimEnd(),o=i.charCodeAt(i.length-1),p=i.charCodeAt(i.length-2),c=e.charCodeAt(n+1);if((o===101||o===69)&&p>=48&&p<=57){t+=e[n];continue}else if(o===43||o===42||o===47||o===45){t+=e[n];continue}else if(o===40||o===44){t+=e[n];continue}else e.charCodeAt(n-1)===32?t+=`${e[n]} `:o>=48&&o<=57||c>=48&&c<=57||o===41||c===40||c===43||c===42||c===47||c===45||m!==null&&m===n-1?t+=` ${e[n]} `:t+=e[n]}else t+=e[n]}}return t}var E=new Uint8Array(256);function d(e,t){let r=0,s=[],m=0,n=e.length,a=t.charCodeAt(0);for(let i=0;i<n;i++){let o=e.charCodeAt(i);if(r===0&&o===a){s.push(e.slice(m,i)),m=i+1;continue}switch(o){case 92:i+=1;break;case 39:case 34:for(;++i<n;){let p=e.charCodeAt(i);if(p===92){i+=1;continue}if(p===o)break}break;case 40:E[r]=41,r++;break;case 91:E[r]=93,r++;break;case 123:E[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===E[r-1]&&r--;break}}return s.push(e.slice(m)),s}var P={color:S,length:y,percentage:C,ratio:G,number:v,integer:u,url:R,position:K,"bg-size":Y,"line-width":T,image:F,"family-name":M,"generic-name":H,"absolute-size":$,"relative-size":W,angle:X,vector:te};function me(e,t){if(e.startsWith("var("))return null;for(let r of t)if(P[r]?.(e))return r;return null}var z=/^url\(.*\)$/;function R(e){return z.test(e)}function T(e){return d(e," ").every(t=>y(t)||v(t)||t==="thin"||t==="medium"||t==="thick")}var D=/^(?:element|image|cross-fade|image-set)\(/,I=/^(repeating-)?(conic|linear|radial)-gradient\(/;function F(e){let t=0;for(let r of d(e,","))if(!r.startsWith("var(")){if(R(r)){t+=1;continue}if(I.test(r)){t+=1;continue}if(D.test(r)){t+=1;continue}return!1}return t>0}function H(e){return e==="serif"||e==="sans-serif"||e==="monospace"||e==="cursive"||e==="fantasy"||e==="system-ui"||e==="ui-serif"||e==="ui-sans-serif"||e==="ui-monosLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
var l={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklLine truncated
|
||||
+347
@@ -0,0 +1,347 @@
|
||||
declare const _default: {
|
||||
inherit: string;
|
||||
current: string;
|
||||
transparent: string;
|
||||
black: string;
|
||||
white: string;
|
||||
slate: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
gray: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
zinc: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
neutral: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
stone: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mauve: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
olive: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mist: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
taupe: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
red: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
orange: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
amber: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
yellow: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
lime: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
green: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
emerald: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
teal: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
cyan: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
sky: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
blue: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
indigo: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
violet: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
purple: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
fuchsia: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
pink: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
rose: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
};
|
||||
|
||||
export { _default as _ };
|
||||
+347
@@ -0,0 +1,347 @@
|
||||
declare const _default: {
|
||||
inherit: string;
|
||||
current: string;
|
||||
transparent: string;
|
||||
black: string;
|
||||
white: string;
|
||||
slate: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
gray: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
zinc: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
neutral: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
stone: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mauve: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
olive: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mist: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
taupe: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
red: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
orange: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
amber: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
yellow: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
lime: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
green: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
emerald: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
teal: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
cyan: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
sky: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
blue: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
indigo: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
violet: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
purple: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
fuchsia: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
pink: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
rose: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
};
|
||||
|
||||
export { _default as default };
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import { _ as _default } from './colors-C__qRT83.js';
|
||||
|
||||
|
||||
|
||||
export { _default as default };
|
||||
+1
@@ -0,0 +1 @@
|
||||
"use strict";var l={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.8Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a}from"./chunk-X4GG3EDV.mjs";export{a as default};
|
||||
+1199
File diff suppressed because it is too large.
Load diff
+1199
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
"use strict";var m=new Uint8Array(256);function u(e,c){let t=0,g=[],k=0,d=e.length,w=c.charCodeAt(0);for(let n=0;n<d;n++){let h=e.charCodeAt(n);if(t===0&&h===w){g.push(e.slice(k,n)),k=n+1;continue}switch(h){case 92:n+=1;break;case 39:case 34:for(;++n<d;){let x=e.charCodeAt(n);if(x===92){n+=1;continue}if(x===h)break}break;case 40:m[t]=41,t++;break;case 91:m[t]=93,t++;break;case 123:m[t]=125,t++;break;case 93:case 125:case 41:t>0&&h===m[t-1]&&t--;break}}return g.push(e.slice(k)),g}var l=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,z=new RegExp(`^${l.source}$`);var T=new RegExp(`^${l.source}%$`);var D=new RegExp(`^${l.source}s*/s*${l.source}$`);var A=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],I=new RegExp(`^${l.source}(${A.join("|")})$`);var C=["deg","rad","grad","turn"],F=new RegExp(`^${l.source}(${C.join("|")})$`);var H=new RegExp(`^${l.source} +${l.source} +${l.source}$`);function i(e){let c=Number(e);return Number.isInteger(c)&&c>=0&&String(c)===String(e)}var f={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{i as a}from"./chunk-UWKE2Z6N.mjs";import"./chunk-X4GG3EDV.mjs";export{a as default};
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
type Colors = {
|
||||
[key: string | number]: string | Colors;
|
||||
};
|
||||
declare function flattenColorPalette(colors: Colors): Record<string, string>;
|
||||
|
||||
export { flattenColorPalette as default };
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
type Colors = {
|
||||
[key: string | number]: string | Colors;
|
||||
};
|
||||
declare function flattenColorPalette(colors: Colors): Record<string, string>;
|
||||
|
||||
export { flattenColorPalette as default };
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
"use strict";function E(e){return{kind:"word",value:e}}function we(e,t){return{kind:"function",value:e,nodes:t}}function be(e){return{kind:"separator",value:e}}function k(e){let t="";for(let i of e)switch(i.kind){case"word":case"separator":{t+=i.value;break}case"function":t+=i.value+"("+k(i.nodes)+")"}return t}var q=92,ye=41,Z=58,Q=44,xe=34,J=61,X=62,ee=60,te=10,Ae=40,Ce=39,Se=47,re=32,ie=9;function g(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let t=[],i=[],r=null,o="",n;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case q:{o+=e[l]+e[l+1],l++;break}case Se:{if(o.length>0){let s=E(o);r?r.nodes.push(s):t.push(s),o=""}let u=E(e[l]);r?r.nodes.push(u):t.push(u);break}case Z:case Q:case J:case X:case ee:case te:case re:case ie:{if(o.length>0){let v=E(o);r?r.nodes.push(v):t.push(v),o=""}let u=l,s=l+1;for(;s<e.length&&(n=e.charCodeAt(s),!(n!==Z&&n!==Q&&n!==J&&n!==X&&n!==ee&&n!==te&&n!==re&&n!==ie));s++);l=s-1;let D=be(e.slice(u,s));r?r.nodes.push(D):t.push(D);break}case Ce:case xe:{let u=l;for(let s=l+1;s<e.length;s++)if(n=e.charCodeAt(s),n===q)s+=1;else if(n===a){l=s;break}o+=e.slice(u,l+1);break}case Ae:{let u=we(o,[]);o="",r?r.nodes.push(u):t.push(u),i.push(u),r=u;break}case ye:{let u=i.pop();if(o.length>0){let s=E(o);u?.nodes.push(s),o=""}i.length>0?r=i[i.length-1]:r=null;break}default:o+=String.fromCharCode(a)}}return o.length>0&&t.push(E(o)),t}var p=class extends Map{constructor(i){super();this.factory=i}get(i){let r=super.get(i);return r===void 0&&(r=this.factory(i,this),this.set(i,r)),r}};var ct=new Uint8Array(256);var U=new Uint8Array(256);function d(e,t){let i=0,r=[],o=0,n=e.length,l=t.charCodeAt(0);for(let a=0;a<n;a++){let u=e.charCodeAt(a);if(i===0&&u===l){r.push(e.slice(o,a)),o=a+1;continue}switch(u){case 92:a+=1;break;case 39:case 34:for(;++a<n;){let s=e.charCodeAt(a);if(s===92){a+=1;continue}if(s===u)break}break;case 40:U[i]=41,i++;break;case 91:U[i]=93,i++;break;case 123:U[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===U[i-1]&&i--;break}}return r.push(e.slice(o)),r}var F=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(F||{}),c={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function f(e,t){typeof t=="function"?ne(e,t):ne(e,t.enter,t.exit)}function ne(e,t=()=>c.Continue,i=()=>c.Continue){let r={value:[e,0,null],prev:null},o={parent:null,depth:0,path(){let n=[],l=r;for(;l;){let a=l.value[2];a&&n.push(a),l=l.prev}return n.reverse(),n}};for(;r!==null;){let n=r.value,l=n[0],a=n[1],u=n[2];if(a>=l.length){r=r.prev,o.depth-=1;continue}if(o.parent=u,a>=0){let R=l[a],A=t(R,o)??c.Continue;switch(A.kind){case 0:{R.nodes&&R.nodes.length>0&&(o.depth+=1,r={value:[R.nodes,0,R],prev:r}),n[1]=~a;continue}case 2:return;case 1:{n[1]=~a;continue}case 3:{l.splice(a,1,...A.nodes);continue}case 5:{l.splice(a,1,...A.nodes);return}case 4:{l.splice(a,1,...A.nodes),n[1]+=A.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${F[A.kind]??`Unknown(${A.kind})`}\` in enter.`)}}let s=~a,D=l[s],v=i(D,o)??c.Continue;switch(v.kind){case 0:n[1]=s+1;continue;case 2:return;case 3:{l.splice(s,1,...v.nodes),n[1]=s+v.nodes.length;continue}case 5:{l.splice(s,1,...v.nodes);return}case 4:{l.splice(s,1,...v.nodes),n[1]=s+v.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${F[v.kind]??`Unknown(${v.kind})`}\` in exit.`)}}}var yt=new p(e=>{let t=g(e),i=new Set;return f(t,(r,o)=>{let n=o.parent===null?t:o.parent.nodes??[];if(r.kind==="word"&&(r.value==="+"||r.value==="-"||r.value==="*"||r.value==="/")){let l=n.indexOf(r)??-1;if(l===-1)return;let a=n[l-1];if(a?.kind!=="separator"||a.value!==" ")return;let u=n[l+1];if(u?.kind!=="separator"||u.value!==" ")return;i.add(a),i.add(u)}else r.kind==="separator"&&r.value.length>0&&r.value.trim()===""?(n[0]===r||n[n.length-1]===r)&&i.add(r):r.kind==="separator"&&r.value.trim()===","&&(r.value=",")}),i.size>0&&f(t,r=>{if(i.has(r))return i.delete(r),c.ReplaceSkip([])}),j(t),k(t)});var xt=new p(e=>{let t=g(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?k(t[2].nodes):e});function j(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=O(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=O(t.value);for(let i=0;i<t.nodes.length;i++)j([t.nodes[i]]);break}t.value=O(t.value),j(t.nodes);break}case"separator":t.value=O(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=O(t.value));break}default:$e(t)}}var At=new p(e=>{let t=g(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function $e(e){throw new Error(`Unexpected value: ${e}`)}function O(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var x=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,_t=new RegExp(`^${x.source}$`);var It=new RegExp(`^${x.source}%$`);var Dt=new RegExp(`^${x.source}s*/s*${x.source}$`);var Te=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Ut=new RegExp(`^${x.source}(${Te.join("|Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import"./chunk-L5IEUH3R.mjs";import"./chunk-UWKE2Z6N.mjs";import"./chunk-X4GG3EDV.mjs";function i(r){let n={};for(let[e,t]of Object.entries(r??{}))if(e!=="__CSS_VALUES__")if(typeof t=="object"&&t!==null)for(let[o,f]of Object.entries(i(t)))n[`${e}${o==="DEFAULT"?"":`-${o}`}`]=f;else n[e]=t;if("__CSS_VALUES__"in r)for(let[e,t]of Object.entries(r.__CSS_VALUES__))(Number(t)&4)===0&&(n[e]=r[e]);return n}export{i as default};
|
||||
+378
@@ -0,0 +1,378 @@
|
||||
import { S as SourceLocation, U as UserConfig, P as Plugin } from './types-CJYAW1ql.mjs';
|
||||
import { V as Variant, C as Candidate } from './resolve-config-QUZ9b-Gn.mjs';
|
||||
import './colors.mjs';
|
||||
|
||||
declare const enum ThemeOptions {
|
||||
NONE = 0,
|
||||
INLINE = 1,
|
||||
REFERENCE = 2,
|
||||
DEFAULT = 4,
|
||||
STATIC = 8,
|
||||
USED = 16
|
||||
}
|
||||
declare class Theme {
|
||||
#private;
|
||||
private values;
|
||||
private keyframes;
|
||||
prefix: string | null;
|
||||
constructor(values?: Map<string, {
|
||||
value: string;
|
||||
options: ThemeOptions;
|
||||
src: Declaration["src"];
|
||||
}>, keyframes?: Set<AtRule>);
|
||||
get size(): number;
|
||||
add(key: string, value: string, options?: ThemeOptions, src?: Declaration['src']): void;
|
||||
keysInNamespaces(themeKeys: Iterable<ThemeKey>): string[];
|
||||
get(themeKeys: ThemeKey[]): string | null;
|
||||
hasDefault(key: string): boolean;
|
||||
getOptions(key: string): ThemeOptions;
|
||||
entries(): IterableIterator<[string, {
|
||||
value: string;
|
||||
options: ThemeOptions;
|
||||
src: Declaration["src"];
|
||||
}]> | [string, {
|
||||
value: string;
|
||||
options: ThemeOptions;
|
||||
src: Declaration["src"];
|
||||
}][];
|
||||
prefixKey(key: string): string;
|
||||
clearNamespace(namespace: string, clearOptions: ThemeOptions): void;
|
||||
markUsedVariable(themeKey: string): boolean;
|
||||
resolve(candidateValue: string | null, themeKeys: ThemeKey[], options?: ThemeOptions): string | null;
|
||||
resolveValue(candidateValue: string | null, themeKeys: ThemeKey[]): string | null;
|
||||
resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
|
||||
namespace(namespace: string): Map<string | null, string>;
|
||||
addKeyframes(value: AtRule): void;
|
||||
getKeyframes(): AtRule[];
|
||||
}
|
||||
type ThemeKey = `--${string}`;
|
||||
|
||||
type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
|
||||
kind: T;
|
||||
}>) => null | void;
|
||||
type CompareFn = (a: Variant, z: Variant) => number;
|
||||
declare const enum Compounds {
|
||||
Never = 0,
|
||||
AtRules = 1,
|
||||
StyleRules = 2
|
||||
}
|
||||
declare class Variants {
|
||||
compareFns: Map<number, CompareFn>;
|
||||
variants: Map<string, {
|
||||
kind: Variant["kind"];
|
||||
order: number;
|
||||
applyFn: VariantFn<any>;
|
||||
compoundsWith: Compounds;
|
||||
compounds: Compounds;
|
||||
}>;
|
||||
private completions;
|
||||
/**
|
||||
* Registering a group of variants should result in the same sort number for
|
||||
* all the variants. This is to ensure that the variants are applied in the
|
||||
* correct order.
|
||||
*/
|
||||
private groupOrder;
|
||||
/**
|
||||
* Keep track of the last sort order instead of using the size of the map to
|
||||
* avoid unnecessarily skipping order numbers.
|
||||
*/
|
||||
private lastOrder;
|
||||
static(name: string, applyFn: VariantFn<'static'>, { compounds, order }?: {
|
||||
compounds?: Compounds;
|
||||
order?: number;
|
||||
}): void;
|
||||
fromAst(name: string, ast: AstNode[], designSystem: DesignSystem): void;
|
||||
functional(name: string, applyFn: VariantFn<'functional'>, { compounds, order }?: {
|
||||
compounds?: Compounds;
|
||||
order?: number;
|
||||
}): void;
|
||||
compound(name: string, compoundsWith: Compounds, applyFn: VariantFn<'compound'>, { compounds, order }?: {
|
||||
compounds?: Compounds;
|
||||
order?: number;
|
||||
}): void;
|
||||
group(fn: () => void, compareFn?: CompareFn): void;
|
||||
has(name: string): boolean;
|
||||
get(name: string): {
|
||||
kind: Variant["kind"];
|
||||
order: number;
|
||||
applyFn: VariantFn<any>;
|
||||
compoundsWith: Compounds;
|
||||
compounds: Compounds;
|
||||
} | undefined;
|
||||
kind(name: string): "arbitrary" | "static" | "functional" | "compound";
|
||||
compoundsWith(parent: string, child: string | Variant): boolean;
|
||||
suggest(name: string, suggestions: () => string[]): void;
|
||||
getCompletions(name: string): string[];
|
||||
compare(a: Variant | null, z: Variant | null): number;
|
||||
keys(): IterableIterator<string>;
|
||||
entries(): IterableIterator<[string, {
|
||||
kind: Variant["kind"];
|
||||
order: number;
|
||||
applyFn: VariantFn<any>;
|
||||
compoundsWith: Compounds;
|
||||
compounds: Compounds;
|
||||
}]>;
|
||||
private set;
|
||||
private nextOrder;
|
||||
}
|
||||
|
||||
declare function compileAstNodes(candidate: Candidate, designSystem: DesignSystem, flags: CompileAstFlags): {
|
||||
node: AstNode;
|
||||
propertySort: {
|
||||
order: number[];
|
||||
count: number;
|
||||
};
|
||||
}[];
|
||||
|
||||
interface CanonicalizeOptions {
|
||||
/**
|
||||
* The root font size in pixels. If provided, `rem` values will be normalized
|
||||
* to `px` values.
|
||||
*
|
||||
* E.g.: `mt-[16px]` with `rem: 16` will become `mt-4` (assuming `--spacing: 0.25rem`).
|
||||
*/
|
||||
rem?: number;
|
||||
/**
|
||||
* Whether to collapse multiple utilities into a single utility if possible.
|
||||
*
|
||||
* E.g.: `mt-2 mr-2 mb-2 ml-2` → `m-2`
|
||||
*/
|
||||
collapse?: boolean;
|
||||
/**
|
||||
* Whether to convert between logical and physical properties when collapsing
|
||||
* utilities.
|
||||
*
|
||||
* E.g.: `mr-2 ml-2` → `mx-2`
|
||||
*/
|
||||
logicalToPhysical?: boolean;
|
||||
}
|
||||
|
||||
interface ClassMetadata {
|
||||
modifiers: string[];
|
||||
}
|
||||
type ClassEntry = [string, ClassMetadata];
|
||||
interface SelectorOptions {
|
||||
modifier?: string;
|
||||
value?: string;
|
||||
}
|
||||
interface VariantEntry {
|
||||
name: string;
|
||||
isArbitrary: boolean;
|
||||
values: string[];
|
||||
hasDash: boolean;
|
||||
selectors: (options: SelectorOptions) => string[];
|
||||
}
|
||||
|
||||
type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
|
||||
kind: T;
|
||||
}>) => AstNode[] | undefined | null;
|
||||
interface SuggestionGroup {
|
||||
supportsNegative?: boolean;
|
||||
values: (string | null)[];
|
||||
modifiers: string[];
|
||||
}
|
||||
type UtilityOptions = {
|
||||
types: string[];
|
||||
};
|
||||
type Utility = {
|
||||
kind: 'static' | 'functional';
|
||||
compileFn: CompileFn<any>;
|
||||
options?: UtilityOptions;
|
||||
};
|
||||
declare class Utilities {
|
||||
private utilities;
|
||||
private completions;
|
||||
static(name: string, compileFn: CompileFn<'static'>): void;
|
||||
functional(name: string, compileFn: CompileFn<'functional'>, options?: UtilityOptions): void;
|
||||
has(name: string, kind: 'static' | 'functional'): boolean;
|
||||
get(name: string): Utility[];
|
||||
getCompletions(name: string): SuggestionGroup[];
|
||||
suggest(name: string, groups: () => SuggestionGroup[]): void;
|
||||
keys(kind: 'static' | 'functional'): string[];
|
||||
}
|
||||
|
||||
declare const enum CompileAstFlags {
|
||||
None = 0,
|
||||
RespectImportant = 1
|
||||
}
|
||||
type DesignSystem = {
|
||||
theme: Theme;
|
||||
utilities: Utilities;
|
||||
variants: Variants;
|
||||
invalidCandidates: Set<string>;
|
||||
important: boolean;
|
||||
getClassOrder(classes: string[]): [string, bigint | null][];
|
||||
getClassList(): ClassEntry[];
|
||||
getVariants(): VariantEntry[];
|
||||
parseCandidate(candidate: string): Readonly<Candidate>[];
|
||||
parseVariant(variant: string): Readonly<Variant> | null;
|
||||
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
||||
printCandidate(candidate: Candidate): string;
|
||||
printVariant(variant: Variant): string;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
candidatesToAst(classes: string[]): AstNode[][];
|
||||
storage: Record<symbol, unknown>;
|
||||
};
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type Rule = StyleRule | AtRule;
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
/**
|
||||
* Line offset tables are the key to generating our source maps. They allow us
|
||||
* to store indexes with our AST nodes and later convert them into positions as
|
||||
* when given the source that the indexes refer to.
|
||||
*/
|
||||
/**
|
||||
* A position in source code
|
||||
*
|
||||
* https://tc39.es/ecma426/#sec-position-record-type
|
||||
*/
|
||||
interface Position {
|
||||
/** The line number, one-based */
|
||||
line: number;
|
||||
/** The column/character number, one-based */
|
||||
column: number;
|
||||
}
|
||||
|
||||
interface OriginalPosition extends Position {
|
||||
source: DecodedSource;
|
||||
}
|
||||
/**
|
||||
* A "decoded" sourcemap
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
||||
*/
|
||||
interface DecodedSourceMap {
|
||||
file: string | null;
|
||||
sources: DecodedSource[];
|
||||
mappings: DecodedMapping[];
|
||||
}
|
||||
/**
|
||||
* A "decoded" source
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-record
|
||||
*/
|
||||
interface DecodedSource {
|
||||
url: string | null;
|
||||
content: string | null;
|
||||
ignore: boolean;
|
||||
}
|
||||
/**
|
||||
* A "decoded" mapping
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
||||
*/
|
||||
interface DecodedMapping {
|
||||
originalPosition: OriginalPosition | null;
|
||||
generatedPosition: Position;
|
||||
name: string | null;
|
||||
}
|
||||
|
||||
type Config = UserConfig;
|
||||
declare const enum Polyfills {
|
||||
None = 0,
|
||||
AtProperty = 1,
|
||||
ColorMix = 2,
|
||||
All = 3
|
||||
}
|
||||
type CompileOptions = {
|
||||
base?: string;
|
||||
from?: string;
|
||||
polyfills?: Polyfills;
|
||||
loadModule?: (id: string, base: string, resourceHint: 'plugin' | 'config') => Promise<{
|
||||
path: string;
|
||||
base: string;
|
||||
module: Plugin | Config;
|
||||
}>;
|
||||
loadStylesheet?: (id: string, base: string) => Promise<{
|
||||
path: string;
|
||||
base: string;
|
||||
content: string;
|
||||
}>;
|
||||
};
|
||||
type Root = null | 'none' | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
};
|
||||
declare const enum Features {
|
||||
None = 0,
|
||||
AtApply = 1,
|
||||
AtImport = 2,
|
||||
JsPluginCompat = 4,
|
||||
ThemeFunction = 8,
|
||||
Utilities = 16,
|
||||
Variants = 32,
|
||||
AtTheme = 64
|
||||
}
|
||||
declare function compileAst(input: AstNode[], opts?: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: Root;
|
||||
features: Features;
|
||||
build(candidates: string[]): AstNode[];
|
||||
}>;
|
||||
|
||||
declare function compile(css: string, opts?: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: Root;
|
||||
features: Features;
|
||||
build(candidates: string[]): string;
|
||||
buildSourceMap(): DecodedSourceMap;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>;
|
||||
declare function postcssPluginWarning(): void;
|
||||
|
||||
export { type Config, type DecodedSourceMap, Features, Polyfills, __unstable__loadDesignSystem, compile, compileAst, postcssPluginWarning as default };
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
declare function postcssPluginWarning(): void;
|
||||
|
||||
export { postcssPluginWarning as default };
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
"use strict";var mn=Object.defineProperty;var gn=(e,r)=>{for(var i in r)mn(e,i,{get:r[i],enumerable:!0})};var Ut={};gn(Ut,{Features:()=>Pe,Polyfills:()=>ht,__unstable__loadDesignSystem:()=>ra,compile:()=>ta,compileAst:()=>dn,default:()=>at});var gr="4.2.1";function st(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let a=0,o=r.length;for(;o>0;){let u=(o|0)>>1,c=a+u;r[c]<=n?(a=c+1,o=o-u-1):o=u}a-=1;let f=n-r[a];return{line:a+1,column:f}}function t({line:n,column:a}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let o=r[n],f=r[n+1]??o;return Math.min(Math.max(o+a,0),f)}return{find:i,findOffset:t}}var He=92,ut=47,ct=42,hr=34,vr=39,vn=58,ft=59,se=10,pt=13,Ze=32,Qe=9,kr=123,Kt=125,jt=40,wr=41,kn=91,wn=93,br=45,zt=64,bn=33,ue=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=st(t.code).find(i[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Ve(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],a=[],o=null,f=null,u="",c="",m=0,d;for(let p=0;p<e.length;p++){let k=e.charCodeAt(p);if(!(k===pt&&(d=e.charCodeAt(p+1),d===se)))if(k===He)u===""&&(m=p),u+=e.slice(p,p+2),p+=1;else if(k===ut&&e.charCodeAt(p+1)===ct){let h=p;for(let x=p+2;x<e.length;x++)if(d=e.charCodeAt(x),d===He)x+=1;else if(d===ct&&e.charCodeAt(x+1)===ut){p=x+1;break}let w=e.slice(h,p+1);if(w.charCodeAt(2)===bn){let x=dt(w.slice(2,-2));n.push(x),i&&(x.src=[i,h,p+1],x.dst=[i,h,p+1])}}else if(k===vr||k===hr){let h=yr(e,p,k,i);u+=e.slice(p,h+1),p=h}else{if((k===Ze||k===se||k===Qe)&&(d=e.charCodeAt(p+1))&&(d===Ze||d===se||d===Qe||d===pt&&(d=e.charCodeAt(p+2))&&d==se))continue;if(k===se){if(u.length===0)continue;d=u.charCodeAt(u.length-1),d!==Ze&&d!==se&&d!==Qe&&(u+=" ")}else if(k===br&&e.charCodeAt(p+1)===br&&u.length===0){let h="",w=p,x=-1;for(let A=p+2;A<e.length;A++)if(d=e.charCodeAt(A),d===He)A+=1;else if(d===vr||d===hr)A=yr(e,A,d,i);else if(d===ut&&e.charCodeAt(A+1)===ct){for(let b=A+2;b<e.length;b++)if(d=e.charCodeAt(b),d===He)b+=1;else if(d===ct&&e.charCodeAt(b+1)===ut){A=b+1;break}}else if(x===-1&&d===vn)x=u.length+A-w;else if(d===ft&&h.length===0){u+=e.slice(w,A),p=A;break}else if(d===jt)h+=")";else if(d===kn)h+="]";else if(d===kr)h+="}";else if((d===Kt||e.length-1===A)&&h.length===0){p=A-1,u+=e.slice(w,A);break}else(d===wr||d===wn||d===Kt)&&h.length>0&&e[A]===h[h.length-1]&&(h=h.slice(0,-1));let S=Mt(u,x);if(!S)throw new ue("Invalid custom property, expected a value",i?[i,w,p]:null);i&&(S.src=[i,w,p],S.dst=[i,w,p]),o?o.nodes.push(S):t.push(S),u=""}else if(k===ft&&u.charCodeAt(0)===zt)f=Je(u),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o?o.nodes.push(f):t.push(f),u="",f=null;else if(k===ft&&c[c.length-1]!==")"){let h=Mt(u);if(!h){if(u.length===0)continue;throw new ue(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null)}i&&(h.src=[i,m,p],h.dst=[i,m,p]),o?o.nodes.push(h):t.push(h),u=""}else if(k===kr&&c[c.length-1]!==")")c+="}",f=Z(u.trim()),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o&&o.nodes.push(f),a.push(o),o=f,u="",f=null;else if(k===Kt&&c[c.length-1]!==")"){if(c==="")throw new ue("Missing opening {",i?[i,p,p]:null);if(c=c.slice(0,-1),u.length>0)if(u.charCodeAt(0)===zt)f=Je(u),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o?o.nodes.push(f):t.push(f),u="",f=null;else{let w=u.indexOf(":");if(o){let x=Mt(u,w);if(!x)throw new ue(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null);i&&(x.src=[i,m,p],x.dst=[i,m,p]),o.nodes.push(x)}}let h=a.pop()??null;h===null&&o&&t.push(o),o=h,u="",f=null}else if(k===jt)c+=")",u+="(";else if(k===wr){if(c[c.length-1]!==")")throw new ue("Missing opening (",i?[i,p,p]:null);c=c.slice(0,-1),u+=")"}else{if(u.length===0&&(k===Ze||k===se||k===Qe))continue;u===""&&(m=p),u+=String.fromCharCode(k)}}}if(u.charCodeAt(0)===zt){let p=Je(u);i&&(p.src=[i,m,e.length],p.dst=[i,m,e.length]),t.push(p)}if(c.length>0&&o){if(o.kind==="rule")throw new ue(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind==="at-rule")throw new ue(`Missing closing } at ${o.name} ${o.params}`,o.src?[o.src[0],o.src[1],o.src[1]]:null)}return n.length>0?n.concat(t):t}function Je(e,r=[]){let i=e,t="";for(let n=5;n<e.length;n++){let a=e.charCodeAt(n);if(a===Ze||a===Qe||a===jt){i=e.slice(0,n),t=e.slice(n);break}}return F(i.trim(),t.trim(),r)}function Mt(e,r=e.indexOf(":")){if(r===-1)return null;let i=e.indexOf("!important",r+1);return l(e.slice(0,r).trim(),e.slice(r+1,i===-1?e.length:i).trim(),i!==-1)}function yr(e,r,i,t=null){let n;for(let a=r+1;a<e.length;a++)if(n=e.charCodeAt(a),n===He)a+=1;else{if(n===i)return a;if(n===ft&&(e.charCodeAt(a+1)===se||e.charCodeAt(a+1)===pt&&e.charCodeAt(a+2)===se))throw new ue(`Unterminated string: ${e.slice(r,a+1)+String.fromCharCode(i)}`,t?[t,r,a+1]:null);if(n===se||n===pt&&e.charCodeAt(a+1)===se)throw new ue(`Unterminated string: ${e.slice(r,a)+String.fromCharCode(i)}`,t?[t,r,a+1]:null)}return r}function Ae(e){if(argumentLine truncated
|
||||
`,`
|
||||
`);let r=[],i=[],t=null,n="",a;for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);switch(f){case Cr:{n+=e[o]+e[o+1],o++;break}case Tn:{if(n.length>0){let c=oe(n);t?t.nodes.push(c):r.push(c),n=""}let u=oe(e[o]);t?t.nodes.push(u):r.push(u);break}case Sr:case $r:case Tr:case Er:case Nr:case Vr:case Rr:case Or:{if(n.length>0){let d=oe(n);t?t.nodes.push(d):r.push(d),n=""}let u=o,c=o+1;for(;c<e.length&&(a=e.charCodeAt(c),!(a!==Sr&&a!==$r&&a!==Tr&&a!==Er&&a!==Nr&&a!==Vr&&a!==Rr&&a!==Or));c++);o=c-1;let m=xn(e.slice(u,c));t?t.nodes.push(m):r.push(m);break}case $n:case Cn:{let u=o;for(let c=o+1;c<e.length;c++)if(a=e.charCodeAt(c),a===Cr)c+=1;else if(a===f){o=c;break}n+=e.slice(u,o+1);break}case Sn:{let u=yn(n,[]);n="",t?t.nodes.push(u):r.push(u),i.push(u),t=u;break}case An:{let u=i.pop();if(n.length>0){let c=oe(n);u?.nodes.push(c),n=""}i.length>0?t=i[i.length-1]:t=null;break}default:n+=String.fromCharCode(f)}}return n.length>0&&r.push(oe(n)),r}var Wt=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(Wt||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function _(e,r){typeof r=="function"?Pr(e,r):Pr(e,r.enter,r.exit)}function Pr(e,r=()=>R.Continue,i=()=>R.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,path(){let a=[],o=t;for(;o;){let f=o.value[2];f&&a.push(f),o=o.prev}return a.reverse(),a}};for(;t!==null;){let a=t.value,o=a[0],f=a[1],u=a[2];if(f>=o.length){t=t.prev,n.depth-=1;continue}if(n.parent=u,f>=0){let p=o[f],k=r(p,n)??R.Continue;switch(k.kind){case 0:{p.nodes&&p.nodes.length>0&&(n.depth+=1,t={value:[p.nodes,0,p],prev:t}),a[1]=~f;continue}case 2:return;case 1:{a[1]=~f;continue}case 3:{o.splice(f,1,...k.nodes);continue}case 5:{o.splice(f,1,...k.nodes);return}case 4:{o.splice(f,1,...k.nodes),a[1]+=k.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Wt[k.kind]??`Unknown(${k.kind})`}\` in enter.`)}}let c=~f,m=o[c],d=i(m,n)??R.Continue;switch(d.kind){case 0:a[1]=c+1;continue;case 2:return;case 3:{o.splice(c,1,...d.nodes),a[1]=c+d.nodes.length;continue}case 5:{o.splice(c,1,...d.nodes);return}case 4:{o.splice(c,1,...d.nodes),a[1]=c+d.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Wt[d.kind]??`Unknown(${d.kind})`}\` in exit.`)}}}function gt(e){let r=[];return _(B(e),i=>{if(!(i.kind!=="function"||i.value!=="var"))return _(i.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||r.push(t.value)}),R.Skip}),r}var En=64;function q(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function F(e,r="",i=[]){return{kind:"at-rule",name:e,params:r,nodes:i}}function Z(e,r=[]){return e.charCodeAt(0)===En?Je(e,r):q(e,r)}function l(e,r,i=!1){return{kind:"declaration",property:e,value:r,important:i}}function dt(e){return{kind:"comment",value:e}}function de(e,r){return{kind:"context",context:e,nodes:r}}function W(e){return{kind:"at-root",nodes:e}}function te(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function et(e){return{depth:e.depth,get context(){let r={};for(let i of e.path())i.kind==="context"&&Object.assign(r,i.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return e.path().filter(r=>r.kind!=="context")}}}function Re(e,r,i=3){let t=[],n=new Set,a=new L(()=>new Set),o=new L(()=>new Set),f=new Set,u=new Set,c=[],m=[],d=new L(()=>new Set);function p(h,w,x={},S=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(x.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}x.keyframes||a.get(w).add(h)}if(h.value.includes("var("))if(x.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let A of gt(h.value))d.get(A).add(h.property);else r.trackUsedVariables(h.value);if(h.property==="animation")for(let A of _r(h.value))u.add(A);i&2&&h.value.includes("color-mix(")&&!x.supportsColorMix&&!x.keyframes&&o.get(w).add(h),w.push(h)}else if(h.kind==="rule"){let A=[];for(let N of h.nodes)p(N,A,x,S+1);let b={},K=new Set;for(let N of A){if(N.kind!=="declaration")continue;let P=`${N.property}:${N.value}:${N.important}`;b[P]??Line truncated
|
||||
`,r){i+=c.length;let m=i;i+=o.property.length,i+=2,i+=o.value?.length??0,o.important&&(i+=11);let d=i;i+=2,o.dst=[t,m,d]}}else if(o.kind==="rule"){if(u+=`${c}${o.selector} {
|
||||
`,r){i+=c.length;let m=i;i+=o.selector.length,i+=1;let d=i;o.dst=[t,m,d],i+=2}for(let m of o.nodes)u+=n(m,f+1);u+=`${c}}
|
||||
`,r&&(i+=c.length,i+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let m=`${c}${o.name} ${o.params};
|
||||
`;if(r){i+=c.length;let d=i;i+=o.name.length,i+=1,i+=o.params.length;let p=i;i+=2,o.dst=[t,d,p]}return m}if(u+=`${c}${o.name}${o.params?` ${o.params} `:" "}{
|
||||
`,r){i+=c.length;let m=i;i+=o.name.length,o.params&&(i+=1,i+=o.params.length),i+=1;let d=i;o.dst=[t,m,d],i+=2}for(let m of o.nodes)u+=n(m,f+1);u+=`${c}}
|
||||
`,r&&(i+=c.length,i+=2)}else if(o.kind==="comment"){if(u+=`${c}/*${o.value}*/
|
||||
`,r){i+=c.length;let m=i;i+=2+o.value.length+2;let d=i;o.dst=[t,m,d],i+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return u}let a="";for(let o of e)a+=n(o,0);return t.code=a,a}function Nn(e,r){let i=[];return _(e,(t,n)=>{if(r(t))return i=n.path(),i.push(t),R.Stop}),i}function Ir(e,r,i,t=new Set){if(t.has(e)||(t.add(e),r.getOptions(e)&24))return!0;{let a=i.get(e)??[];for(let o of a)if(Ir(o,r,i,t))return!0}return!1}function _r(e){return e.split(/[\s,]+/)}var Bt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function tt(e){return e.indexOf("(")!==-1&&Bt.some(r=>e.includes(`${r}(`))}function Dr(e){if(!Bt.some(a=>e.includes(a)))return e;let r="",i=[],t=null,n=null;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=48&&o<=57||t!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?t=a:(n=t,t=null),o===40){r+=e[a];let f=a;for(let c=a-1;c>=0;c--){let m=e.charCodeAt(c);if(m>=48&&m<=57)f=c;else if(m>=97&&m<=122)f=c;else break}let u=e.slice(f,a);if(Bt.includes(u)){i.unshift(!0);continue}else if(i[0]&&u===""){i.unshift(!0);continue}i.unshift(!1);continue}else if(o===41)r+=e[a],i.shift();else if(o===44&&i[0]){r+=", ";continue}else{if(o===32&&i[0]&&r.charCodeAt(r.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&i[0]){let f=r.trimEnd(),u=f.charCodeAt(f.length-1),c=f.charCodeAt(f.length-2),m=e.charCodeAt(a+1);if((u===101||u===69)&&c>=48&&c<=57){r+=e[a];continue}else if(u===43||u===42||u===47||u===45){r+=e[a];continue}else if(u===40||u===44){r+=e[a];continue}else e.charCodeAt(a-1)===32?r+=`${e[a]} `:u>=48&&u<=57||m>=48&&m<=57||u===41||m===40||m===43||m===42||m===47||m===45||n!==null&&n===a-1?r+=` ${e[a]} `:r+=e[a]}else r+=e[a]}}return r}function Ce(e){if(e.indexOf("(")===-1)return ze(e);let r=B(e);return Yt(r),e=H(r),e=Dr(e),e}function ze(e,r=!1){let i="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(i+="_",t+=1):n==="_"&&!r?i+=" ":i+=n}return i}function Yt(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=ze(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=ze(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=ze(r.nodes[i].value,!0);continue}Yt([r.nodes[i]])}break}r.value=ze(r.value),Yt(r.nodes);break}case"separator":case"word":{r.value=ze(r.value);break}default:Vn(r)}}function Vn(e){throw new Error(`Unexpected value: ${e}`)}var qt=new Uint8Array(256);function we(e){let r=0,i=e.length;for(let t=0;t<i;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<i;){let a=e.charCodeAt(t);if(a===92){t+=1;continue}if(a===n)break}break;case 40:qt[r]=41,r++;break;case 91:qt[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===qt[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var vt=new Uint8Array(256);function U(e,r){let i=0,t=[],n=0,a=e.length,o=r.charCodeAt(0);for(let f=0;f<a;f++){let u=e.charCodeAt(f);if(i===0&&u===o){t.push(e.slice(n,f)),n=f+1;continue}switch(u){case 92:f+=1;break;case 39:case 34:for(;++f<a;){let c=e.charCodeAt(f);if(c===92){f+=1;continue}if(c===u)break}break;case 40:vt[i]=41,i++;break;case 91:vt[i]=93,i++;break;case 123:vt[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===vt[i-1]&&i--;break}}return t.push(e.slice(n)),t}var Rn=58,Ur=45,Lr=97,Kr=122,Zt=/^[a-zA-Z0-9_.%-]+$/;function zr(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Me),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Me(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:Me(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*Mr(e,r){let i=U(e,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let t=i.pop(),n=[];for(let d=i.length-1;d>=0;--d){let p=r.parseVariant(i[d]);if(p===null)return;n.push(p)}let a=!1;t[t.length-1]==="!"?(a=!0,t=t.
Line truncated
|
||||
Only valid data types are: ${tr.map(w=>`"${w}"`).join(", ")}.
|
||||
`);let c=u.value,m=structuredClone(o),d="\xB6";_(m.nodes,w=>{if(w.kind==="word"&&w.value===c)return R.ReplaceSkip({kind:"word",value:d})});let p="^".repeat(H([u]).length),k=H([m]).indexOf(d),h=["```css",H([o])," ".repeat(k)+p,"```"].join(`
|
||||
`);console.warn(h)}}),n.value=H(a)}),i.utilities.functional(r.slice(0,-2),n=>{let a=te(e),o=n.value,f=n.modifier;if(o===null)return;let u=!1,c=!1,m=!1,d=!1,p=new Map,k=!1;if(_([a],(h,w)=>{let x=w.parent;if(x?.kind!=="rule"&&x?.kind!=="at-rule"||h.kind!=="declaration"||!h.value)return;let S=!1,A=B(h.value);if(_(A,b=>{if(b.kind==="function"){if(b.value==="--value"){u=!0;let K=Zr(o,b,i);return K?(c=!0,K.ratio?k=!0:p.set(h,x),R.ReplaceSkip(K.nodes)):(u||=!1,S=!0,R.Stop)}else if(b.value==="--modifier"){if(f===null)return S=!0,R.Stop;m=!0;let K=Zr(f,b,i);return K?(d=!0,R.ReplaceSkip(K.nodes)):(m||=!1,S=!0,R.Stop)}}}),S)return R.ReplaceSkip([]);h.value=H(A)}),u&&!c||m&&!d||k&&d||f&&!k&&!d)return null;if(k)for(let[h,w]of p){let x=w.nodes.indexOf(h);x!==-1&&w.nodes.splice(x,1)}return a.nodes}),i.utilities.suggest(r.slice(0,-2),()=>{let n=[],a=[];for(let[o,{literals:f,usedSpacingNumber:u,usedSpacingInteger:c,themeKeys:m}]of[[n,t["--value"]],[a,t["--modifier"]]]){for(let d of f)o.push(d);if(u)o.push(...At);else if(c)for(let d of At)O(d)&&o.push(d);for(let d of i.theme.keysInNamespaces(m))o.push(d.replace(Jr,(p,k,h)=>`${k}.${h}`))}return[{values:n,modifiers:a}]})}:bo(r)?i=>{i.utilities.static(r,()=>e.nodes.map(te))}:null}function Zr(e,r,i){for(let t of r.nodes){if(e.kind==="named"&&t.kind==="word"&&(t.value[0]==="'"||t.value[0]==='"')&&t.value[t.value.length-1]===t.value[0]&&t.value.slice(1,-1)===e.value)return{nodes:B(e.value)};if(e.kind==="named"&&t.kind==="word"&&t.value[0]==="-"&&t.value[1]==="-"){let n=t.value;if(n.endsWith("-*")){n=n.slice(0,-2);let a=i.theme.resolve(e.value,[n]);if(a)return{nodes:B(a)}}else{let a=n.split("-*");if(a.length<=1)continue;let o=[a.shift()],f=i.theme.resolveWith(e.value,o,a);if(f){let[,u={}]=f;{let c=u[a.pop()];if(c)return{nodes:B(c)}}}}}else if(e.kind==="named"&&t.kind==="word"){if(!tr.includes(t.value))continue;let n=t.value==="ratio"&&"fraction"in e?e.fraction:e.value;if(!n)continue;let a=Q(n,[t.value]);if(a===null)continue;if(a==="ratio"){let[o,f]=U(n,"/").map(Number);if(!O(o)||!O(f))continue}else{if(a==="number"&&!ee(n))continue;if(a==="percentage"&&!O(n.slice(0,-1)))continue}if(a==="ratio"){let[o,f]=U(n,"/");return{nodes:B(`${o.trim()} / ${f.trim()}`),ratio:!0}}return{nodes:B(n),ratio:!1}}else if(e.kind==="arbitrary"&&t.kind==="word"&&t.value[0]==="["&&t.value[t.value.length-1]==="]"){let n=t.value.slice(1,-1);if(n==="*")return{nodes:B(e.value)};if("dataType"in e&&e.dataType&&e.dataType!==n)continue;if("dataType"in e&&e.dataType)return{nodes:B(e.value)};if(Q(e.value,[n])!==null)return{nodes:B(e.value)}}}}function ye(e,r,i,t,n=""){let a=!1,o=nt(r,u=>i==null?t(u):u.startsWith("current")?t(J(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(a=!0),t(Qr(u,i))));function f(u){return n?U(u,",").map(c=>n.trim()+" "+c.trim()).join(", "):u}return a?[l(e,f(nt(r,t))),Z("@supports (color: lab(from red l a b))",[l(e,f(o))])]:[l(e,f(o))]}function bt(e,r,i,t,n=""){let a=!1,o=U(r,",").map(f=>nt(f,u=>i==null?t(u):u.startsWith("current")?t(J(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(a=!0),t(Qr(u,i))))).map(f=>`drop-shadow(${f})`).join(" ");return a?[l(e,n+U(r,",").map(f=>`drop-shadow(${nt(f,t)})`).join(" ")),Z("@supports (color: lab(from red l a b))",[l(e,n+o)])]:[l(e,n+o)]}var ti=/^-?[a-z][a-zA-Z0-9_-]*/,co=37,fo=47,po=46,mo=97,go=122,ho=65,vo=90,yt=48,xt=57,ko=95,wo=45;function bo(e){let r=ti.exec(e);if(r===null)return!1;let i=r[0],t=e.slice(i.length);if(t.length===0&&i.endsWith("-"))return!1;if(t.length===0)return!0;let n=!1;for(let a=0;a<t.length;a++){let o=t.charCodeAt(a);switch(o){case co:{if(a!==t.length-1)return!1;let u=(t[a-1]||i[i.length-1]||"").charCodeAt(0);if(u<yt||u>xt)return!1;break}case fo:{if(a===t.length-1||n)return!1;n=!0;break}case po:{let u=(t[a-1]||i[i.length-1]||"").charCodeAt(0);if(u<yt||u>xt)return!1;let m=(t[a+1]||"").charCodeAt(0);if(m<yt||m>xt)return!1;break}case ko:case wo:continue;default:{if(o>=mo&&o<=go||o>=ho&&o<=vo||o>=yt&&o<=xt)continue;return!1}}}return!0}function yo(e){if(!e.endsWith("-*"))return!1;e=e.slice(0,-2);let r=ti.exec(e);if(r===null)return!1;let i=r[0];return e.slice(i.length).length===0}var rr={"--alpha":xo,"--spacing":Ao,"--theme":Co,theme:So};function xo(e,r,i,...t){let[n,a]=U(i,"/").map(o=>o.trim());if(!n||!a)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${a||"50%"})\``);if(t.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${a||"50%"})\``);return J(n,a)}function Ao(e,r,i,...t){if(!i)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(t.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${t.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${nLine truncated
|
||||
`,`
|
||||
`);let r=[],i=[],t=null,n="",a;for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);switch(f){case gi:case hi:case vi:case yi:case bi:case xi:case Ai:{if(n.length>0){let p=$e(n);t?t.nodes.push(p):r.push(p),n=""}let u=o,c=o+1;for(;c<e.length&&(a=e.charCodeAt(c),!(a!==gi&&a!==hi&&a!==vi&&a!==yi&&a!==bi&&a!==xi&&a!==Ai));c++);o=c-1;let m=e.slice(u,c),d=m.trim()===","?Ko(m):Uo(m);t?t.nodes.push(d):r.push(d);break}case wi:{let u=Lo(n,[]);if(n="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let c=o+1,m=0;for(let p=o+1;p<e.length;p++){if(a=e.charCodeAt(p),a===wi){m++;continue}if(a===mi){if(m===0){o=p;break}m--}}let d=o;u.nodes.push(zo(e.slice(c,d))),n="",o=d,t?t.nodes.push(u):r.push(u);break}t?t.nodes.push(u):r.push(u),i.push(u),t=u;break}case mi:{let u=i.pop();if(n.length>0){let c=$e(n);u.nodes.push(c),n=""}i.length>0?t=i[i.length-1]:t=null;break}case Wo:case jo:case Bo:{if(n.length>0){let u=$e(n);t?t.nodes.push(u):r.push(u)}n=e[o];break}case ki:{if(n.length>0){let m=$e(n);t?t.nodes.push(m):r.push(m)}n="";let u=o,c=0;for(let m=o+1;m<e.length;m++){if(a=e.charCodeAt(m),a===ki){c++;continue}if(a===Mo){if(c===0){o=m;break}c--}}n+=e.slice(u,o+1);break}case Yo:case Fo:{let u=o;for(let c=o+1;c<e.length;c++)if(a=e.charCodeAt(c),a===di)c+=1;else if(a===f){o=c;break}n+=e.slice(u,o+1);break}case qo:case Go:{if(n.length>0){let u=$e(n);t?t.nodes.push(u):r.push(u),n=""}t?t.nodes.push($e(e[o])):r.push($e(e[o]));break}case di:{n+=e[o]+e[o+1],o+=1;break}default:n+=e[o]}}return n.length>0&&r.push($e(n)),r}function ce(e,r){for(let i in e)delete e[i];return Object.assign(e,r)}function Ue(e){let r=[];for(let i of U(e,".")){if(!i.includes("[")){r.push(i);continue}let t=0;for(;;){let n=i.indexOf("[",t),a=i.indexOf("]",n);if(n===-1||a===-1)break;n>t&&r.push(i.slice(t,n)),r.push(i.slice(n+1,a)),t=a+1}t<=i.length-1&&r.push(i.slice(t))}return r}function ir(e,r){let i=e;return i.storage[Ti]??=Ho(),i.storage[Ei]??=Qo(i),i.storage[Ni]??=el(),i.storage[Vi]??=rl(),i.storage[Ri]??=nl(),i.storage[or]??=ul(i),i.storage[Et]??=pl(i,r),i.storage[ge]??=Cl(i),i.storage[lr]??=$l(),i.storage[Nt]??=Tl(i),i.storage[ar]??=El(i),i.storage[Rt]??=Nl(i),i.storage[_i]??=Vl(i),i}var Ti=Symbol();function Ho(){return new L(e=>new L(r=>({rem:e,features:r})))}function Zo(e,r){let i=0;return r?.collapse&&(i|=1),r?.logicalToPhysical&&(i|=2),ir(e,r).storage[Ti].get(r?.rem??null).get(i)}var Ei=Symbol();function Qo(e){return new L(r=>new L(i=>({features:i,designSystem:e,signatureOptions:r})))}function Jo(e,r,i){let t=0;return i?.collapse&&(t|=1),ir(e).storage[Ei].get(r).get(t)}function nr(e,r,i){let t=Zo(e,i),n=Jo(e,t,i),a=ir(e),o=new Set,f=a.storage[Ni].get(n);for(let u of r)o.add(f.get(u));return o.size<=1||!(n.features&1)?Array.from(o):Xo(n,Array.from(o))}function Xo(e,r){if(r.length<=1)return r;let i=e.designSystem,t=new L(f=>new L(u=>new Set)),n=e.designSystem.theme.prefix?`${e.designSystem.theme.prefix}:`:"";for(let f of r){let u=U(f,":"),c=u.pop(),m=c.endsWith("!");m&&(c=c.slice(0,-1));let d=u.length>0?`${u.join(":")}:`:"",p=m?"!":"";t.get(d).get(p).add(`${n}${c}`)}let a=new Set;for(let[f,u]of t.entries())for(let[c,m]of u.entries())for(let d of o(Array.from(m)))n&&d.startsWith(n)&&(d=d.slice(n.length)),a.add(`${f}${d}${c}`);return Array.from(a);function o(f){let u=e.signatureOptions,c=i.storage[Nt].get(u),m=i.storage[lr].get(u),d=f.map(S=>c.get(S));if(d.some(S=>S.has("line-height"))){let S=i.theme.keysInNamespaces(["--text"]);if(S.length>0){let A=new Set,b=new Set;for(let N of d)if(N.has("line-height"))for(let P of N.get("line-height")){if(b.has(P))continue;b.add(P);let z=i.storage[Et]?.get(P)??null;if(z!==null)if(ee(z)){A.add(z);for(let I of S)c.get(`text-${I}/${z}`)}else{A.add(P);for(let I of S)c.get(`text-${I}/[${P}]`)}}let K=new Set;for(let N of d)if(N.has("font-size")){for(let P of N.get("font-size"))if(!K.has(P)){K.add(P);for(let z of A)ee(z)?c.get(`text-[${P}]/${z}`):c.get(`text-[${P}]/[${z}]`)}}}}let p=d.map(S=>{let A=null;for(let b of S.keys()){let K=new Set;for(let N of m.get(b).values())for(let P of N)K.add(P);if(A===null?A=K:A=$i(A,K),A.size===0)return A}return A}),k=new L(S=>new Set([S]));for(let S=0;S<p.length;S++){let A=p[S];for(let b=S+1;b<p.length;b++){let K=p[b];for(let N of A)if(K.has(N)){k.get(S).add(b),k.get(b).add(S);break}}}if(k.size===0)return f;let h=new L(S=>S.split(",").map(Number));for(let S of k.values()){let A=Array.from(S).sort((b,K)=>b-K);h.get(A.join(","))}let w=new Set(f),x=new Set;for(let S of h.values())for(let A of Ol(S)){if(A.some(N=>x.has(f[N])))continue;let b=A.flatMap(N=>p[N]).reduce($i),K=i.storage[ge].get(u).get(A.map(N=>f[N]).sort((N,P)=>N.localeCompare(P)).join(" "));for(let N of b)if(i.storage[ge].get(u).get(N)===K){for(let z of A)x.add(f[z]);w.add(N);break}}for(let S of x)w.delete(S);return Array.from(w)}}var Ni=Symbol();function el(){return new L(e=>{let r=e.designSystem,i=r.theme.prefix?`${r.theme.prefix}:`:"",t=r.storage[Vi].get(e),n=r.storage[Ri].get(e);return new L((a,o)=>{for(let f of r.
Line truncated
|
||||
`),a=!0;return _(B(t),o=>{if(o.kind==="function"&&o.value==="var"){let f=o.nodes[0].value;if(!new RegExp(`var\\(${f}[,)]\\s*`,"g").test(n)||n.includes(`${f}:`))return a=!1,R.Stop}}),a}function gl(e,r){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let i=r.designSystem,t=i.storage[ar].get(r.signatureOptions),n=i.storage[ge].get(r.signatureOptions),a=i.printCandidate(e),o=n.get(a);if(typeof o!="string")return e;for(let u of f(o,e)){let c=i.printCandidate(u);if(n.get(c)===o)return u}return e;function*f(u,c){let m=t.get(u);if(!(m.length>1)){if(m.length===0&&c.modifier){let d={...c,modifier:null},p=n.get(i.printCandidate(d));if(typeof p=="string")for(let k of f(p,d))yield Object.assign({},k,{modifier:c.modifier})}if(m.length===1)for(let d of xe(i,m[0]))yield d}}}var hl=new Map([["order-none","order-0"],["break-words","wrap-break-word"]]);function vl(e,r){let i=r.designSystem,t=i.storage[ge].get(r.signatureOptions),n=fl(i,e),a=hl.get(n)??null;if(a===null)return e;let o=t.get(n);if(typeof o!="string")return e;let f=t.get(a);if(typeof f!="string"||o!==f)return e;let[u]=xe(i,a);return u}function kl(e,r){let i=r.designSystem,t=i.storage[Rt],n=i.storage[_i],a=Vt(e);for(let[o]of a){if(o.kind==="compound")continue;let f=i.printVariant(o),u=t.get(f);if(typeof u!="string")continue;let c=n.get(u);if(c.length!==1)continue;let m=c[0],d=i.parseVariant(m);d!==null&&ce(o,d)}return e}function wl(e,r){let i=r.designSystem,t=i.storage[ge].get(r.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=i.printCandidate({...e,value:{...e.value,dataType:null}});t.get(i.printCandidate(e))===t.get(n)&&(e.value.dataType=null)}return e}function bl(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let i=r.designSystem,t=i.storage[ge].get(r.signatureOptions),n=t.get(i.printCandidate(e));if(n===null)return e;for(let a of Oi(e))if(t.get(i.printCandidate({...e,value:a}))===n)return e.value=a,e;return e}function yl(e){let r=Vt(e);for(let[i]of r)if(i.kind==="functional"&&i.root==="data"&&i.value?.kind==="arbitrary"&&!i.value.value.includes("="))i.value={kind:"named",value:i.value.value};else if(i.kind==="functional"&&i.root==="aria"&&i.value?.kind==="arbitrary"&&(i.value.value.endsWith("=true")||i.value.value.endsWith('="true"')||i.value.value.endsWith("='true'"))){let[t,n]=U(i.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;i.value={kind:"named",value:i.value.value.slice(0,i.value.value.indexOf("="))}}else i.kind==="functional"&&i.root==="supports"&&i.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(i.value.value)&&(i.value={kind:"named",value:i.value.value});return e}function*Oi(e,r=e.value?.value??"",i=new Set){if(i.has(r))return;if(i.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&ee(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[a,o]=r.split("/");O(a)&&O(o)&&(yield{kind:"named",value:a,fraction:`${a}/${o}`})}let t=new Set;for(let a of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(a[0].trim());let n=Array.from(t).sort((a,o)=>a.length-o.length);for(let a of n)yield*Oi(e,a,i)}function Si(e){return!e.some(r=>r.kind==="separator"&&r.value.trim()===",")}function Tt(e){let r=e.value.trim();return e.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function xl(e,r){let i=[e],t=r.designSystem,n=t.storage[Rt],a=Vt(e);for(let[o,f]of a)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let u=De(o.selector.trim());if(!Si(u))continue;if(f===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===">"&&u[2].kind==="selector"&&u[2].value==="*"){ce(o,t.parseVariant("*"));continue}if(f===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===""&&u[2].kind==="selector"&&u[2].value==="*"){ce(o,t.parseVariant("**"));continue}if(f===null&&u.length===3&&u[1].kind==="combinator"&&u[1].value.trim()===""&&u[2].kind==="selector"&&u[2].value==="&"){u.pop(),u.pop(),ce(o,t.parseVariant(`in-[${me(u)}]`));continue}if(f===null&&u[0].kind==="selector"&&(u[0].value==="@media"||u[0].value==="@supports")){let p=n.get(t.printVariant(o)),k=B(me(u)),h=!1;if(_(k,w=>{if(w.kind==="word"&&w.value==="not")return h=!0,R.Replace([])}),k=B(H(k)),_(k,w=>{w.kind==="separator"&&w.value!==" "&&w.value.trim()===""&&(w.value=" ")}),h){let w=t.parseVariant(`not-[${H(k)}]`);if(w===null)continue;let x=n.get(t.printVariant(w));if(p===x){ce(o,w);continue}}}let c=null;f===null&&u.length===3&&u[0].kind==="selector"&&u[0].value.trim()==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===">"&&u[2].kind==="selector"&&(Tt(u[2])||u[2].value[0]===":")&&(u=[u[2]],c=t.parseVariant("*")),f===null&&u.length===3&&u[0].kind==="s
Line truncated
|
||||
|
||||
${ne([d])}
|
||||
Relies on:
|
||||
|
||||
${ne([k])}`)}c.add(d);for(let k of a.get(d))for(let h of o.get(k))p.push(d),m(h,p),p.pop();f.add(d),c.delete(d),u.push(d)}}for(let d of n)m(d);for(let d of u)"nodes"in d&&_(d.nodes,p=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let k=p.params.split(/(\s+)/g),h={},w=0;for(let[x,S]of k.entries())x%2===0&&(h[S]=w),w+=S.length;{let x=Object.keys(h),S=Ee(x,r,{respectImportant:!1,onInvalidCandidate:N=>{if(r.theme.prefix&&!N.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${N}\`. Did you mean \`${r.theme.prefix}:${N}\`?`);if(r.invalidCandidates.has(N))throw new Error(`Cannot apply utility class \`${N}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let P=U(N,":");if(P.length>1){let z=P.pop();if(r.candidatesToCss([z])[0]){let I=r.candidatesToCss(P.map(Y=>`${Y}:[--tw-variant-check:1]`)),M=P.filter((Y,G)=>I[G]===null);if(M.length>0){if(M.length===1)throw new Error(`Cannot apply utility class \`${N}\` because the ${M.map(Y=>`\`${Y}\``)} variant does not exist.`);{let Y=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${N}\` because the ${Y.format(M.map(G=>`\`${G}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${N}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${N}\``)}}),A=p.src,b=S.astNodes.map(N=>{let P=S.nodeSorting.get(N)?.candidate,z=P?h[P]:void 0;if(N=te(N),!A||!P||z===void 0)return _([N],M=>{M.src=A}),N;let I=[A[0],A[1],A[2]];return I[1]+=7+z,I[2]=I[1]+P.length,_([N],M=>{M.src=I}),N}),K=[];for(let N of b)if(N.kind==="rule")for(let P of N.nodes)K.push(P);else K.push(N);return R.Replace(K)}});return i}function*Wi(e,r){for(let i of e.params.split(/\s+/g))for(let t of r.parseCandidate(i))switch(t.kind){case"arbitrary":break;case"static":case"functional":yield t.root;break;default:}}async function fr(e,r,i,t=0,n=!1){let a=0,o=[];return _(e,f=>{if(f.kind==="at-rule"&&(f.name==="@import"||f.name==="@reference")){let u=Ll(B(f.params));if(u===null)return;f.name==="@reference"&&(u.media="reference"),a|=2;let{uri:c,layer:m,media:d,supports:p}=u;if(c.startsWith("data:")||c.startsWith("http://")||c.startsWith("https://"))return;let k=de({},[]);return o.push((async()=>{if(t>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${r}\`)`);let h=await i(c,r),w=Ve(h.content,{from:n?h.path:void 0});await fr(w,h.base,i,t+1,n),k.nodes=Kl(f,[de({base:h.base},w)],m,d,p)})()),R.ReplaceSkip(k)}}),o.length>0&&await Promise.all(o),a}function Ll(e){let r,i=null,t=null,n=null;for(let a=0;a<e.length;a++){let o=e[a];if(o.kind!=="separator"){if(o.kind==="word"&&!r){if(!o.value||o.value[0]!=='"'&&o.value[0]!=="'")return null;r=o.value.slice(1,-1);continue}if(o.kind==="function"&&o.value.toLowerCase()==="url"||!r)return null;if((o.kind==="word"||o.kind==="function")&&o.value.toLowerCase()==="layer"){if(i)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in o?i=H(o.nodes):i="";continue}if(o.kind==="function"&&o.value.toLowerCase()==="supports"){if(n)return null;n=H(o.nodes);continue}t=H(e.slice(a));break}}return r?{uri:r,layer:i,media:t,supports:n}:null}function Kl(e,r,i,t,n){let a=r;if(i!==null){let o=F("@layer",i,a);o.src=e.src,a=[o]}if(t!==null){let o=F("@media",t,a);o.src=e.src,a=[o]}if(n!==null){let o=F("@supports",n[0]==="("?n:`(${n})`,a);o.src=e.src,a=[o]}return a}function Ge(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||Object.getPrototypeOf(r)===null}function lt(e,r,i,t=[]){for(let n of r)if(n!=null)for(let a of Reflect.ownKeys(n)){t.push(a);let o=i(e[a],n[a],t);o!==void 0?e[a]=o:!Ge(e[a])||!Ge(n[a])?e[a]=n[a]:e[a]=lt({},[e[a],n[a]],i,t),t.pop()}return e}function Pt(e,r,i){return function(n,a){let o=n.lastIndexOf("/"),f=null;o!==-1&&(f=n.slice(o+1).trim(),n=n.slice(0,o).trim());let u=(()=>{let c=Ue(n),[m,d]=zl(e.theme,c),p=i(Bi(r()??{},c)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof m!="object")return typeof d!="object"&&d&4?p??m:m;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let k=lt({},[p],(h,w)=>w);if(m===null&&Object.hasOwn(p,"__CSS_VALUES__")){let h={};for(let w in p.__CSS_VALUES__)h[w]=p[w],delete k[w];m=h}for(let h in m)h!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[h]&4&&Bi(k,h.split("-"))!==void 0||(k[ve(h)]=m[h]));return k}if(Array.isArray(m)&&Array.isArray(d)&&Array.isArray(p)){let k=m[0],h=m[1];d[0]&4&&(k=p[0]??k);for(let w of Object.keys(h))d[1][w]&4&&(h[w]=p[1][w]??h[w]);return[k,h]}return m??p})();return f&&typeof u=="string"&&(u=J(u,f)),u??a}}function zl(e,r){if(r.length===1&&r[0].startsWith("--"))return[e.get([r[0]]),e.getOptions(Line truncated
|
||||
|
||||
${ne([x])}
|
||||
|
||||
\`@plugin\` options must be a flat list of declarations.`);if(x.value===void 0)continue;let S=x.value,A=U(S,",").map(b=>{if(b=b.trim(),b==="null")return null;if(b==="true")return!0;if(b==="false")return!1;if(Number.isNaN(Number(b))){if(b[0]==='"'&&b[b.length-1]==='"'||b[0]==="'"&&b[b.length-1]==="'")return b.slice(1,-1);if(b[0]==="{"&&b[b.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${ne([x]).trim()}\` is not supported.
|
||||
|
||||
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(b);return b});w[x.property]=A.length===1?A[0]:A}return o.push([{id:h,base:k.context.base,reference:!!k.context.reference,src:d.src},Object.keys(w).length>0?w:null]),a|=4,R.Replace([])}if(d.name==="@config"){if(d.nodes.length>0)throw new Error("`@config` cannot have a body.");if(k.parent!==null)throw new Error("`@config` cannot be nested.");return f.push({id:d.params.slice(1,-1),base:k.context.base,reference:!!k.context.reference,src:d.src}),a|=4,R.Replace([])}}),nn(e);let u=e.resolveThemeValue;if(e.resolveThemeValue=function(p,k){return p.startsWith("--")?u(p,k):(a|=an({designSystem:e,base:r,ast:i,sources:n,configs:[],pluginDetails:[]}),e.resolveThemeValue(p,k))},!o.length&&!f.length)return 0;let[c,m]=await Promise.all([Promise.all(f.map(async({id:d,base:p,reference:k,src:h})=>{let w=await t(d,p,"config");return{path:d,base:w.base,config:w.module,reference:k,src:h}})),Promise.all(o.map(async([{id:d,base:p,reference:k,src:h},w])=>{let x=await t(d,p,"plugin");return{path:d,base:x.base,plugin:x.module,options:w,reference:k,src:h}}))]);return a|=an({designSystem:e,base:r,ast:i,sources:n,configs:c,pluginDetails:m}),a}function an({designSystem:e,base:r,ast:i,sources:t,configs:n,pluginDetails:a}){let o=0,u=[...a.map(w=>{if(!w.options)return{config:{plugins:[w.plugin]},base:w.base,reference:w.reference,src:w.src};if("__isOptionsFunction"in w.plugin)return{config:{plugins:[w.plugin(w.options)]},base:w.base,reference:w.reference,src:w.src};throw new Error(`The plugin "${w.path}" does not accept options`)}),...n],{resolvedConfig:c}=mr(e,[{config:en(e.theme),base:r,reference:!0,src:void 0},...u,{config:{plugins:[rn]},base:r,reference:!0,src:void 0}]),{resolvedConfig:m,replacedThemeKeys:d}=mr(e,u),p={designSystem:e,ast:i,resolvedConfig:c,featuresRef:{set current(w){o|=w}}},k=pr({...p,referenceMode:!1,src:void 0}),h=e.resolveThemeValue;e.resolveThemeValue=function(x,S){if(x[0]==="-"&&x[1]==="-")return h(x,S);let A=k.theme(x,void 0);if(Array.isArray(A)&&A.length===2)return A[0];if(Array.isArray(A))return A.join(", ");if(typeof A=="object"&&A!==null&&"DEFAULT"in A)return A.DEFAULT;if(typeof A=="string")return A};for(let{handler:w,reference:x,src:S}of c.plugins){let A=pr({...p,referenceMode:x??!1,src:S});w(A)}if(oi(e,m,d),Zi(e,m),ln(m,e),on(m,e),tn(m,e),!e.theme.prefix&&c.prefix){if(c.prefix.endsWith("-")&&(c.prefix=c.prefix.slice(0,-1),console.warn(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!Gl.test(c.prefix))throw new Error(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=c.prefix}if(!e.important&&c.important===!0&&(e.important=!0),typeof c.important=="string"){let w=c.important;_(i,(x,S)=>{if(x.kind!=="at-rule"||x.name!=="@tailwind"||x.params!=="utilities")return;let A=et(S);return A.parent?.kind==="rule"&&A.parent.selector===w?R.Stop:R.ReplaceStop(q(w,[x]))})}for(let w of c.blocklist)e.invalidCandidates.add(w);for(let w of c.content.files){if("raw"in w)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
|
||||
|
||||
${JSON.stringify(w,null,2)}
|
||||
|
||||
This feature is not currently supported.`);let x=!1;w.pattern[0]=="!"&&(x=!0,w.pattern=w.pattern.slice(1)),t.push({...w,negated:x})}return o}function un({ast:e}){let r=new L(n=>st(n.code)),i=new L(n=>({url:n.file,content:n.code,ignore:!1})),t={file:null,sources:[],mappings:[]};_(e,n=>{if(!n.src||!n.dst)return;let a=i.get(n.src[0]);if(!a.content)return;let o=r.get(n.src[0]),f=r.get(n.dst[0]),u=a.content.slice(n.src[1],n.src[2]),c=0;for(let p of u.split(`
|
||||
`)){if(p.trim()!==""){let k=o.find(n.src[1]+c),h=f.find(n.dst[1]);t.mappings.push({name:null,originalPosition:{source:a,...k},generatedPosition:h})}c+=p.length,c+=1}let m=o.find(n.src[2]),d=f.find(n.dst[2]);t.mappings.push({name:null,originalPosition:{source:a,...m},generatedPosition:d})});for(let n of r.keys())t.sources.push(i.get(n));return t.mappings.sort((n,a)=>n.generatedPosition.line-a.generatedPosition.line||n.generatedPosition.column-a.generatedPosition.column||(n.originalPosition?.line??0)-(a.originalPosition?.line??0)||(n.originalPosition?.column??0)-(a.originalPosition?.column??0)),t}var cn=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Dt(e){let r=e.indexOf("{");if(r===-1)return[e];let i=[],t=e.slice(0,r),n=e.slice(r),a=0,o=n.lastIndexOf("}");for(let d=0;d<n.length;d++){let p=n[d];if(p==="{")a++;else if(p==="}"&&(a--,a===0)){o=d;break}}if(o===-1)throw new Error(`The pattern \`${e}\` is not balanced.`);let f=n.slice(1,o),u=n.slice(o+1),c;Hl(f)?c=Zl(f):c=U(f,","),c=c.flatMap(d=>Dt(d));let m=Dt(u);for(let d of m)for(let p of c)i.push(t+p+d);return i}function Hl(e){return cn.test(e)}function Zl(e){let r=e.match(cn);if(!r)return[e];let[,i,t,n]=r,a=n?parseInt(n,10):void 0,o=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(t)){let f=parseInt(i,10),u=parseInt(t,10);if(a===void 0&&(a=f<=u?1:-1),a===0)throw new Error("Step cannot be zero in sequence expansion.");let c=f<u;c&&a<0&&(a=-a),!c&&a>0&&(a=-a);for(let m=f;c?m<=u:m>=u;m+=a)o.push(m.toString())}return o}function fn(e,r){let i=new Set,t=new Set,n=[];function a(o,f=[]){if(e.has(o)&&!i.has(o)){t.has(o)&&r.onCircularDependency?.(f,o),t.add(o);for(let u of e.get(o)??[])f.push(o),a(u,f),f.pop();i.add(o),t.delete(o),n.push(o)}}for(let o of e.keys())a(o);return n}var Ql=/^[a-z]+$/,ht=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(ht||{});function Jl(){throw new Error("No `loadModule` function provided to `compile`")}function Xl(){throw new Error("No `loadStylesheet` function provided to `compile`")}function ea(e){let r=0,i=null;for(let t of U(e," "))t==="reference"?r|=2:t==="inline"?r|=1:t==="default"?r|=4:t==="static"?r|=8:t.startsWith("prefix(")&&t.endsWith(")")&&(i=t.slice(7,-1));return[r,i]}var Pe=(u=>(u[u.None=0]="None",u[u.AtApply=1]="AtApply",u[u.AtImport=2]="AtImport",u[u.JsPluginCompat=4]="JsPluginCompat",u[u.ThemeFunction=8]="ThemeFunction",u[u.Utilities=16]="Utilities",u[u.Variants=32]="Variants",u[u.AtTheme=64]="AtTheme",u))(Pe||{});async function pn(e,{base:r="",from:i,loadModule:t=Jl,loadStylesheet:n=Xl}={}){let a=0;e=[de({base:r},e)],a|=await fr(e,r,n,0,i!==void 0);let o=null,f=new mt,u=new Map,c=new Map,m=[],d=null,p=null,k=[],h=[],w=[],x=[],S=null;_(e,(b,K)=>{if(b.kind!=="at-rule")return;let N=et(K);if(b.name==="@tailwind"&&(b.params==="utilities"||b.params.startsWith("utilities"))){if(p!==null)return R.Replace([]);if(N.context.reference)return R.Replace([]);let P=U(b.params," ");for(let z of P)if(z.startsWith("source(")){let I=z.slice(7,-1);if(I==="none"){S=I;continue}if(I[0]==='"'&&I[I.length-1]!=='"'||I[0]==="'"&&I[I.length-1]!=="'"||I[0]!=="'"&&I[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");S={base:N.context.sourceBase??N.context.base,pattern:I.slice(1,-1)}}p=b,a|=16}if(b.name==="@utility"){if(N.parent!==null)throw new Error("`@utility` cannot be nested.");if(b.nodes.length===0)throw new Error(`\`@utility ${b.params}\` is empty. Utilities should include at least one property.`);let P=ei(b);if(P===null){if(!b.params.endsWith("-*")){if(b.params.endsWith("*"))throw new Error(`\`@utility ${b.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(b.params.includes("*"))throw new Error(`\`@utility ${b.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${b.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}m.push(P)}if(b.name==="@source"){if(b.nodes.length>0)throw new Error("`@source` cannot have a body.");if(N.parent!==null)throw new Error("`@source` cannot be nested.");let P=!1,z=!1,I=b.params;if(I[0]==="n"&&I.startsWith("not ")&&(P=!0,I=I.slice(4)),I[0]==="i"&&I.startsWith("inline(")&&(z=!0,I=I.slice(7,-1).trim()),I[0]==='"'&&I[I.length-1]!=='"'||I[0]==="'"&&I[I.length-1]!=="'"||I[0]!=="'"&&I[0]!=='"')throw new Error("`@source` paths must be quoted.");let M=I.slice(1,-1);if(z){let Y=P?x:w,G=U(M," ");for(let le of G)for(let ae of Dt(le))Y.push(ae)}else h.push({base:N.context.base,pattern:M,negated:P});return R.ReplaceSkip([])}if(b.name==="@variant"&&(N.parent===null?b.nodes.length===0?b.name="@custom-variant":(_(b.nodes,P=>{if(P.kind==="at-rule"&&P.name==="@slot")return b.name="@custom-variant",R.Stop}),b.name==="@variant"&&k.push(b)):k.push(b)),b.name==="@custom-variant"){if(N.parent!==null)throw new Error("`@custom-variant` cannot be nested.");let[P,z]=U(b.params," ");if(!Ot.test(P))throwLine truncated
|
||||
`).map((Y,G,le)=>`${G===0||G>=le.length-2?" ":">"} ${Y}`).join(`
|
||||
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
||||
|
||||
${M}`)}),d?R.ReplaceSkip([]):(d=q(":root, :host",[]),d.src=b.src,R.ReplaceSkip(d))}});let A=zi(f,p?.src);if(o&&(A.important=o),x.length>0)for(let b of x)A.invalidCandidates.add(b);a|=await sn({designSystem:A,base:r,ast:e,loadModule:t,sources:h});for(let b of u.keys())A.variants.static(b,()=>{});for(let b of fn(c,{onCircularDependency(K,N){let P=ne(K.map((z,I)=>F("@custom-variant",z,[F("@variant",K[I+1]??N,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${N} {`,`@custom-variant ${N} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
|
||||
|
||||
${P}`)}}))u.get(b)?.(A);for(let b of m)b(A);if(d){let b=[];for(let[N,P]of A.theme.entries()){if(P.options&2)continue;let z=l(Ae(N),P.value);z.src=P.src,b.push(z)}let K=A.theme.getKeyframes();for(let N of K)e.push(de({theme:!0},[W([N])]));d.nodes=[de({theme:!0},b)]}if(a|=ot(e,A),a|=Fe(e,A),a|=Te(e,A),p){let b=p;b.kind="context",b.context={}}return _(e,b=>{if(b.kind==="at-rule")return b.name==="@utility"?R.Replace([]):R.Skip}),{designSystem:A,ast:e,sources:h,root:S,utilitiesNode:p,features:a,inlineCandidates:w}}async function dn(e,r={}){let{designSystem:i,ast:t,sources:n,root:a,utilitiesNode:o,features:f,inlineCandidates:u}=await pn(e,r);t.unshift(dt(`! tailwindcss v${gr} | MIT License | https://tailwindcss.com `));function c(h){i.invalidCandidates.add(h)}let m=new Set,d=null,p=0,k=!1;for(let h of u)i.invalidCandidates.has(h)||(m.add(h),k=!0);return{sources:n,root:a,features:f,build(h){if(f===0)return e;if(!o)return d??=Re(t,i,r.polyfills),d;let w=k,x=!1;k=!1;let S=m.size;for(let b of h)if(!i.invalidCandidates.has(b))if(b[0]==="-"&&b[1]==="-"){let K=i.theme.markUsedVariable(b);w||=K,x||=K}else m.add(b),w||=m.size!==S;if(!w)return d??=Re(t,i,r.polyfills),d;let A=Ee(m,i,{onInvalidCandidate:c}).astNodes;return r.from&&_(A,b=>{b.src??=o.src}),!x&&p===A.length?(d??=Re(t,i,r.polyfills),d):(p=A.length,o.nodes=A,d=Re(t,i,r.polyfills),d)}}}async function ta(e,r={}){let i=Ve(e,{from:r.from}),t=await dn(i,r),n=i,a=e;return{...t,build(o){let f=t.build(o);return f===n||(a=ne(f,!!r.from),n=f),a},buildSourceMap(){return un({ast:n})}}}async function ra(e,r={}){return(await pn(Ve(e,{from:r.from}),r)).designSystem}function at(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}for(let e in Ut)e!=="default"&&(at[e]=Ut[e]);module.exports=at;
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a,b,c,d,e,f}from"./chunk-L5IEUH3R.mjs";import"./chunk-UWKE2Z6N.mjs";import"./chunk-X4GG3EDV.mjs";export{b as Features,a as Polyfills,e as __unstable__loadDesignSystem,d as compile,c as compileAst,f as default};
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
export { P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
|
||||
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-CJYAW1ql.mjs';
|
||||
export { d as PluginAPI, P as PluginsConfig, T as ThemeConfig } from './types-CJYAW1ql.mjs';
|
||||
import './colors.mjs';
|
||||
|
||||
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
|
||||
declare namespace createPlugin {
|
||||
var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
|
||||
}
|
||||
|
||||
export { Config, PluginFn as PluginCreator, createPlugin as default };
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-B4yBzhca.js';
|
||||
import './colors-C__qRT83.js';
|
||||
|
||||
/**
|
||||
* The source code for one or more nodes in the AST
|
||||
*
|
||||
* This generally corresponds to a stylesheet
|
||||
*/
|
||||
interface Source {
|
||||
/**
|
||||
* The path to the file that contains the referenced source code
|
||||
*
|
||||
* If this references the *output* source code, this is `null`.
|
||||
*/
|
||||
file: string | null;
|
||||
/**
|
||||
* The referenced source code
|
||||
*/
|
||||
code: string;
|
||||
}
|
||||
/**
|
||||
* The file and offsets within it that this node covers
|
||||
*
|
||||
* This can represent either:
|
||||
* - A location in the original CSS which caused this node to be created
|
||||
* - A location in the output CSS where this node resides
|
||||
*/
|
||||
type SourceLocation = [source: Source, start: number, end: number];
|
||||
|
||||
type Config = UserConfig;
|
||||
type PluginFn = (api: PluginAPI) => void;
|
||||
type PluginWithConfig = {
|
||||
handler: PluginFn;
|
||||
config?: UserConfig;
|
||||
/** @internal */
|
||||
reference?: boolean;
|
||||
src?: SourceLocation | undefined;
|
||||
};
|
||||
type PluginWithOptions<T> = {
|
||||
(options?: T): PluginWithConfig;
|
||||
__isOptionsFunction: true;
|
||||
};
|
||||
type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
|
||||
type PluginAPI = {
|
||||
addBase(base: CssInJs): void;
|
||||
addVariant(name: string, variant: string | string[] | CssInJs): void;
|
||||
matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
|
||||
modifier: string | null;
|
||||
}) => string | string[], options?: {
|
||||
values?: Record<string, T>;
|
||||
sort?(a: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}, b: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}): number;
|
||||
}): void;
|
||||
addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
|
||||
matchUtilities(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs | CssInJs[]>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
|
||||
matchComponents(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
theme(path: string, defaultValue?: any): any;
|
||||
config(path?: string, defaultValue?: any): any;
|
||||
prefix(className: string): string;
|
||||
};
|
||||
type CssInJs = {
|
||||
[key: string]: string | string[] | CssInJs | CssInJs[];
|
||||
};
|
||||
|
||||
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
|
||||
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
|
||||
type ThemeConfig = Record<string, ThemeValue> & {
|
||||
extend?: Record<string, ThemeValue>;
|
||||
};
|
||||
type ContentFile = string | {
|
||||
raw: string;
|
||||
extension?: string;
|
||||
};
|
||||
type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
|
||||
interface UserConfig {
|
||||
presets?: UserConfig[];
|
||||
theme?: ThemeConfig;
|
||||
plugins?: Plugin[];
|
||||
}
|
||||
interface UserConfig {
|
||||
content?: ContentFile[] | {
|
||||
relative?: boolean;
|
||||
files: ContentFile[];
|
||||
};
|
||||
}
|
||||
interface UserConfig {
|
||||
darkMode?: DarkModeStrategy;
|
||||
}
|
||||
interface UserConfig {
|
||||
prefix?: string;
|
||||
}
|
||||
interface UserConfig {
|
||||
blocklist?: string[];
|
||||
}
|
||||
interface UserConfig {
|
||||
important?: boolean | string;
|
||||
}
|
||||
interface UserConfig {
|
||||
future?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
interface UserConfig {
|
||||
experimental?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
|
||||
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
|
||||
declare namespace createPlugin {
|
||||
var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
|
||||
}
|
||||
|
||||
export { createPlugin as default };
|
||||
+1
@@ -0,0 +1 @@
|
||||
"use strict";function g(i,n){return{handler:i,config:n}}g.withOptions=function(i,n=()=>({})){function t(o){return{handler:i(o),config:n(o)}}return t.__isOptionsFunction=!0,t};var u=g;module.exports=u;
|
||||
+1
@@ -0,0 +1 @@
|
||||
function g(i,n){return{handler:i,config:n}}g.withOptions=function(i,n=()=>({})){function t(o){return{handler:i(o),config:n(o)}}return t.__isOptionsFunction=!0,t};var u=g;export{u as default};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
import { _ as _default } from './colors-C__qRT83.js';
|
||||
|
||||
type NamedUtilityValue = {
|
||||
kind: 'named';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500
|
||||
* ^^^^^^^
|
||||
*
|
||||
* w-1/2
|
||||
* ^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* ```
|
||||
* w-1/2
|
||||
* ^^^
|
||||
* ```
|
||||
*/
|
||||
fraction: string | null;
|
||||
};
|
||||
|
||||
type PluginUtils = {
|
||||
theme: (keypath: string, defaultValue?: any) => any;
|
||||
colors: typeof _default;
|
||||
};
|
||||
|
||||
export type { NamedUtilityValue as N, PluginUtils as P };
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
import _default from './colors.mjs';
|
||||
|
||||
type ArbitraryUtilityValue = {
|
||||
kind: 'arbitrary';
|
||||
/**
|
||||
* ```
|
||||
* bg-[color:var(--my-color)]
|
||||
* ^^^^^
|
||||
*
|
||||
* bg-(color:--my-color)
|
||||
* ^^^^^
|
||||
* ```
|
||||
*/
|
||||
dataType: string | null;
|
||||
/**
|
||||
* ```
|
||||
* bg-[#0088cc]
|
||||
* ^^^^^^^
|
||||
*
|
||||
* bg-[var(--my_variable)]
|
||||
* ^^^^^^^^^^^^^^^^^^
|
||||
*
|
||||
* bg-(--my_variable)
|
||||
* ^^^^^^^^^^^^^^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
type NamedUtilityValue = {
|
||||
kind: 'named';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500
|
||||
* ^^^^^^^
|
||||
*
|
||||
* w-1/2
|
||||
* ^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* ```
|
||||
* w-1/2
|
||||
* ^^^
|
||||
* ```
|
||||
*/
|
||||
fraction: string | null;
|
||||
};
|
||||
type ArbitraryModifier = {
|
||||
kind: 'arbitrary';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500/[50%]
|
||||
* ^^^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
type NamedModifier = {
|
||||
kind: 'named';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500/50
|
||||
* ^^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
type ArbitraryVariantValue = {
|
||||
kind: 'arbitrary';
|
||||
value: string;
|
||||
};
|
||||
type NamedVariantValue = {
|
||||
kind: 'named';
|
||||
value: string;
|
||||
};
|
||||
type Variant =
|
||||
/**
|
||||
* Arbitrary variants are variants that take a selector and generate a variant
|
||||
* on the fly.
|
||||
*
|
||||
* E.g.: `[&_p]`
|
||||
*/
|
||||
{
|
||||
kind: 'arbitrary';
|
||||
selector: string;
|
||||
relative: boolean;
|
||||
}
|
||||
/**
|
||||
* Static variants are variants that don't take any arguments.
|
||||
*
|
||||
* E.g.: `hover`
|
||||
*/
|
||||
| {
|
||||
kind: 'static';
|
||||
root: string;
|
||||
}
|
||||
/**
|
||||
* Functional variants are variants that can take an argument. The argument is
|
||||
* either a named variant value or an arbitrary variant value.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `aria-disabled`
|
||||
* - `aria-[disabled]`
|
||||
* - `@container-size` -> @container, with named value `size`
|
||||
* - `@container-[inline-size]` -> @container, with arbitrary variant value `inline-size`
|
||||
* - `@container` -> @container, with no value
|
||||
*/
|
||||
| {
|
||||
kind: 'functional';
|
||||
root: string;
|
||||
value: ArbitraryVariantValue | NamedVariantValue | null;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
}
|
||||
/**
|
||||
* Compound variants are variants that take another variant as an argument.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `has-[&_p]`
|
||||
* - `group-*`
|
||||
* - `peer-*`
|
||||
*/
|
||||
| {
|
||||
kind: 'compound';
|
||||
root: string;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
variant: Variant;
|
||||
};
|
||||
type Candidate =
|
||||
/**
|
||||
* Arbitrary candidates are candidates that register utilities on the fly with
|
||||
* a property and a value.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `[color:red]`
|
||||
* - `[color:red]/50`
|
||||
* - `[color:red]/50!`
|
||||
*/
|
||||
{
|
||||
kind: 'arbitrary';
|
||||
property: string;
|
||||
value: string;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
variants: Variant[];
|
||||
important: boolean;
|
||||
raw: string;
|
||||
}
|
||||
/**
|
||||
* Static candidates are candidates that don't take any arguments.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `underline`
|
||||
* - `box-border`
|
||||
*/
|
||||
| {
|
||||
kind: 'static';
|
||||
root: string;
|
||||
variants: Variant[];
|
||||
important: boolean;
|
||||
raw: string;
|
||||
}
|
||||
/**
|
||||
* Functional candidates are candidates that can take an argument.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `bg-red-500`
|
||||
* - `bg-[#0088cc]`
|
||||
* - `w-1/2`
|
||||
*/
|
||||
| {
|
||||
kind: 'functional';
|
||||
root: string;
|
||||
value: ArbitraryUtilityValue | NamedUtilityValue | null;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
variants: Variant[];
|
||||
important: boolean;
|
||||
raw: string;
|
||||
};
|
||||
|
||||
type PluginUtils = {
|
||||
theme: (keypath: string, defaultValue?: any) => any;
|
||||
colors: typeof _default;
|
||||
};
|
||||
|
||||
export type { Candidate as C, NamedUtilityValue as N, PluginUtils as P, Variant as V };
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
|
||||
|
||||
/**
|
||||
* The source code for one or more nodes in the AST
|
||||
*
|
||||
* This generally corresponds to a stylesheet
|
||||
*/
|
||||
interface Source {
|
||||
/**
|
||||
* The path to the file that contains the referenced source code
|
||||
*
|
||||
* If this references the *output* source code, this is `null`.
|
||||
*/
|
||||
file: string | null;
|
||||
/**
|
||||
* The referenced source code
|
||||
*/
|
||||
code: string;
|
||||
}
|
||||
/**
|
||||
* The file and offsets within it that this node covers
|
||||
*
|
||||
* This can represent either:
|
||||
* - A location in the original CSS which caused this node to be created
|
||||
* - A location in the output CSS where this node resides
|
||||
*/
|
||||
type SourceLocation = [source: Source, start: number, end: number];
|
||||
|
||||
type Config = UserConfig;
|
||||
type PluginFn = (api: PluginAPI) => void;
|
||||
type PluginWithConfig = {
|
||||
handler: PluginFn;
|
||||
config?: UserConfig;
|
||||
/** @internal */
|
||||
reference?: boolean;
|
||||
src?: SourceLocation | undefined;
|
||||
};
|
||||
type PluginWithOptions<T> = {
|
||||
(options?: T): PluginWithConfig;
|
||||
__isOptionsFunction: true;
|
||||
};
|
||||
type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
|
||||
type PluginAPI = {
|
||||
addBase(base: CssInJs): void;
|
||||
addVariant(name: string, variant: string | string[] | CssInJs): void;
|
||||
matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
|
||||
modifier: string | null;
|
||||
}) => string | string[], options?: {
|
||||
values?: Record<string, T>;
|
||||
sort?(a: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}, b: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}): number;
|
||||
}): void;
|
||||
addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
|
||||
matchUtilities(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs | CssInJs[]>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
|
||||
matchComponents(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
theme(path: string, defaultValue?: any): any;
|
||||
config(path?: string, defaultValue?: any): any;
|
||||
prefix(className: string): string;
|
||||
};
|
||||
type CssInJs = {
|
||||
[key: string]: string | string[] | CssInJs | CssInJs[];
|
||||
};
|
||||
|
||||
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
|
||||
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
|
||||
type ThemeConfig = Record<string, ThemeValue> & {
|
||||
extend?: Record<string, ThemeValue>;
|
||||
};
|
||||
type ContentFile = string | {
|
||||
raw: string;
|
||||
extension?: string;
|
||||
};
|
||||
type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
|
||||
interface UserConfig {
|
||||
presets?: UserConfig[];
|
||||
theme?: ThemeConfig;
|
||||
plugins?: Plugin[];
|
||||
}
|
||||
interface UserConfig {
|
||||
content?: ContentFile[] | {
|
||||
relative?: boolean;
|
||||
files: ContentFile[];
|
||||
};
|
||||
}
|
||||
interface UserConfig {
|
||||
darkMode?: DarkModeStrategy;
|
||||
}
|
||||
interface UserConfig {
|
||||
prefix?: string;
|
||||
}
|
||||
interface UserConfig {
|
||||
blocklist?: string[];
|
||||
}
|
||||
interface UserConfig {
|
||||
important?: boolean | string;
|
||||
}
|
||||
interface UserConfig {
|
||||
future?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
interface UserConfig {
|
||||
experimental?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
|
||||
export type { Config as C, Plugin as P, SourceLocation as S, ThemeConfig as T, UserConfig as U, PluginFn as a, PluginWithConfig as b, PluginWithOptions as c, PluginAPI as d };
|
||||
+944
@@ -0,0 +1,944 @@
|
||||
@layer theme, base, components, utilities;
|
||||
|
||||
@layer theme {
|
||||
@theme default {
|
||||
--font-sans:
|
||||
ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
||||
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
||||
--font-mono:
|
||||
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
||||
"Courier New", monospace;
|
||||
|
||||
--color-red-50: oklch(97.1% 0.013 17.38);
|
||||
--color-red-100: oklch(93.6% 0.032 17.717);
|
||||
--color-red-200: oklch(88.5% 0.062 18.334);
|
||||
--color-red-300: oklch(80.8% 0.114 19.571);
|
||||
--color-red-400: oklch(70.4% 0.191 22.216);
|
||||
--color-red-500: oklch(63.7% 0.237 25.331);
|
||||
--color-red-600: oklch(57.7% 0.245 27.325);
|
||||
--color-red-700: oklch(50.5% 0.213 27.518);
|
||||
--color-red-800: oklch(44.4% 0.177 26.899);
|
||||
--color-red-900: oklch(39.6% 0.141 25.723);
|
||||
--color-red-950: oklch(25.8% 0.092 26.042);
|
||||
|
||||
--color-orange-50: oklch(98% 0.016 73.684);
|
||||
--color-orange-100: oklch(95.4% 0.038 75.164);
|
||||
--color-orange-200: oklch(90.1% 0.076 70.697);
|
||||
--color-orange-300: oklch(83.7% 0.128 66.29);
|
||||
--color-orange-400: oklch(75% 0.183 55.934);
|
||||
--color-orange-500: oklch(70.5% 0.213 47.604);
|
||||
--color-orange-600: oklch(64.6% 0.222 41.116);
|
||||
--color-orange-700: oklch(55.3% 0.195 38.402);
|
||||
--color-orange-800: oklch(47% 0.157 37.304);
|
||||
--color-orange-900: oklch(40.8% 0.123 38.172);
|
||||
--color-orange-950: oklch(26.6% 0.079 36.259);
|
||||
|
||||
--color-amber-50: oklch(98.7% 0.022 95.277);
|
||||
--color-amber-100: oklch(96.2% 0.059 95.617);
|
||||
--color-amber-200: oklch(92.4% 0.12 95.746);
|
||||
--color-amber-300: oklch(87.9% 0.169 91.605);
|
||||
--color-amber-400: oklch(82.8% 0.189 84.429);
|
||||
--color-amber-500: oklch(76.9% 0.188 70.08);
|
||||
--color-amber-600: oklch(66.6% 0.179 58.318);
|
||||
--color-amber-700: oklch(55.5% 0.163 48.998);
|
||||
--color-amber-800: oklch(47.3% 0.137 46.201);
|
||||
--color-amber-900: oklch(41.4% 0.112 45.904);
|
||||
--color-amber-950: oklch(27.9% 0.077 45.635);
|
||||
|
||||
--color-yellow-50: oklch(98.7% 0.026 102.212);
|
||||
--color-yellow-100: oklch(97.3% 0.071 103.193);
|
||||
--color-yellow-200: oklch(94.5% 0.129 101.54);
|
||||
--color-yellow-300: oklch(90.5% 0.182 98.111);
|
||||
--color-yellow-400: oklch(85.2% 0.199 91.936);
|
||||
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
||||
--color-yellow-600: oklch(68.1% 0.162 75.834);
|
||||
--color-yellow-700: oklch(55.4% 0.135 66.442);
|
||||
--color-yellow-800: oklch(47.6% 0.114 61.907);
|
||||
--color-yellow-900: oklch(42.1% 0.095 57.708);
|
||||
--color-yellow-950: oklch(28.6% 0.066 53.813);
|
||||
|
||||
--color-lime-50: oklch(98.6% 0.031 120.757);
|
||||
--color-lime-100: oklch(96.7% 0.067 122.328);
|
||||
--color-lime-200: oklch(93.8% 0.127 124.321);
|
||||
--color-lime-300: oklch(89.7% 0.196 126.665);
|
||||
--color-lime-400: oklch(84.1% 0.238 128.85);
|
||||
--color-lime-500: oklch(76.8% 0.233 130.85);
|
||||
--color-lime-600: oklch(64.8% 0.2 131.684);
|
||||
--color-lime-700: oklch(53.2% 0.157 131.589);
|
||||
--color-lime-800: oklch(45.3% 0.124 130.933);
|
||||
--color-lime-900: oklch(40.5% 0.101 131.063);
|
||||
--color-lime-950: oklch(27.4% 0.072 132.109);
|
||||
|
||||
--color-green-50: oklch(98.2% 0.018 155.826);
|
||||
--color-green-100: oklch(96.2% 0.044 156.743);
|
||||
--color-green-200: oklch(92.5% 0.084 155.995);
|
||||
--color-green-300: oklch(87.1% 0.15 154.449);
|
||||
--color-green-400: oklch(79.2% 0.209 151.711);
|
||||
--color-green-500: oklch(72.3% 0.219 149.579);
|
||||
--color-green-600: oklch(62.7% 0.194 149.214);
|
||||
--color-green-700: oklch(52.7% 0.154 150.069);
|
||||
--color-green-800: oklch(44.8% 0.119 151.328);
|
||||
--color-green-900: oklch(39.3% 0.095 152.535);
|
||||
--color-green-950: oklch(26.6% 0.065 152.934);
|
||||
|
||||
--color-emerald-50: oklch(97.9% 0.021 166.113);
|
||||
--color-emerald-100: oklch(95% 0.052 163.051);
|
||||
--color-emerald-200: oklch(90.5% 0.093 164.15);
|
||||
--color-emerald-300: oklch(84.5% 0.143 164.978);
|
||||
--color-emerald-400: oklch(76.5% 0.177 163.223);
|
||||
--color-emerald-500: oklch(69.6% 0.17 162.48);
|
||||
--color-emerald-600: oklch(59.6% 0.145 163.225);
|
||||
--color-emerald-700: oklch(50.8% 0.118 165.612);
|
||||
--color-emerald-800: oklch(43.2% 0.095 166.913);
|
||||
--color-emerald-900: oklch(37.8% 0.077 168.94);
|
||||
--color-emerald-950: oklch(26.2% 0.051 172.552);
|
||||
|
||||
--color-teal-50: oklch(98.4% 0.014 180.72);
|
||||
--color-teal-100: oklch(95.3% 0.051 180.801);
|
||||
--color-teal-200: oklch(91% 0.096 180.426);
|
||||
--color-teal-300: oklch(85.5% 0.138 181.071);
|
||||
--color-teal-400: oklch(77.7% 0.152 181.912);
|
||||
--color-teal-500: oklch(70.4% 0.14 182.503);
|
||||
--color-teal-600: oklch(60% 0.118 184.704);
|
||||
--color-teal-700: oklch(51.1% 0.096 186.391);
|
||||
--color-teal-800: oklch(43.7% 0.078 188.216);
|
||||
--color-teal-900: oklch(38.6% 0.063 188.416);
|
||||
--color-teal-950: oklch(27.7% 0.046 192.524);
|
||||
|
||||
--color-cyan-50: oklch(98.4% 0.019 200.873);
|
||||
--color-cyan-100: oklch(95.6% 0.045 203.388);
|
||||
--color-cyan-200: oklch(91.7% 0.08 205.041);
|
||||
--color-cyan-300: oklch(86.5% 0.127 207.078);
|
||||
--color-cyan-400: oklch(78.9% 0.154 211.53);
|
||||
--color-cyan-500: oklch(71.5% 0.143 215.221);
|
||||
--color-cyan-600: oklch(60.9% 0.126 221.723);
|
||||
--color-cyan-700: oklch(52% 0.105 223.128);
|
||||
--color-cyan-800: oklch(45% 0.085 224.283);
|
||||
--color-cyan-900: oklch(39.8% 0.07 227.392);
|
||||
--color-cyan-950: oklch(30.2% 0.056 229.695);
|
||||
|
||||
--color-sky-50: oklch(97.7% 0.013 236.62);
|
||||
--color-sky-100: oklch(95.1% 0.026 236.824);
|
||||
--color-sky-200: oklch(90.1% 0.058 230.902);
|
||||
--color-sky-300: oklch(82.8% 0.111 230.318);
|
||||
--color-sky-400: oklch(74.6% 0.16 232.661);
|
||||
--color-sky-500: oklch(68.5% 0.169 237.323);
|
||||
--color-sky-600: oklch(58.8% 0.158 241.966);
|
||||
--color-sky-700: oklch(50% 0.134 242.749);
|
||||
--color-sky-800: oklch(44.3% 0.11 240.79);
|
||||
--color-sky-900: oklch(39.1% 0.09 240.876);
|
||||
--color-sky-950: oklch(29.3% 0.066 243.157);
|
||||
|
||||
--color-blue-50: oklch(97% 0.014 254.604);
|
||||
--color-blue-100: oklch(93.2% 0.032 255.585);
|
||||
--color-blue-200: oklch(88.2% 0.059 254.128);
|
||||
--color-blue-300: oklch(80.9% 0.105 251.813);
|
||||
--color-blue-400: oklch(70.7% 0.165 254.624);
|
||||
--color-blue-500: oklch(62.3% 0.214 259.815);
|
||||
--color-blue-600: oklch(54.6% 0.245 262.881);
|
||||
--color-blue-700: oklch(48.8% 0.243 264.376);
|
||||
--color-blue-800: oklch(42.4% 0.199 265.638);
|
||||
--color-blue-900: oklch(37.9% 0.146 265.522);
|
||||
--color-blue-950: oklch(28.2% 0.091 267.935);
|
||||
|
||||
--color-indigo-50: oklch(96.2% 0.018 272.314);
|
||||
--color-indigo-100: oklch(93% 0.034 272.788);
|
||||
--color-indigo-200: oklch(87% 0.065 274.039);
|
||||
--color-indigo-300: oklch(78.5% 0.115 274.713);
|
||||
--color-indigo-400: oklch(67.3% 0.182 276.935);
|
||||
--color-indigo-500: oklch(58.5% 0.233 277.117);
|
||||
--color-indigo-600: oklch(51.1% 0.262 276.966);
|
||||
--color-indigo-700: oklch(45.7% 0.24 277.023);
|
||||
--color-indigo-800: oklch(39.8% 0.195 277.366);
|
||||
--color-indigo-900: oklch(35.9% 0.144 278.697);
|
||||
--color-indigo-950: oklch(25.7% 0.09 281.288);
|
||||
|
||||
--color-violet-50: oklch(96.9% 0.016 293.756);
|
||||
--color-violet-100: oklch(94.3% 0.029 294.588);
|
||||
--color-violet-200: oklch(89.4% 0.057 293.283);
|
||||
--color-violet-300: oklch(81.1% 0.111 293.571);
|
||||
--color-violet-400: oklch(70.2% 0.183 293.541);
|
||||
--color-violet-500: oklch(60.6% 0.25 292.717);
|
||||
--color-violet-600: oklch(54.1% 0.281 293.009);
|
||||
--color-violet-700: oklch(49.1% 0.27 292.581);
|
||||
--color-violet-800: oklch(43.2% 0.232 292.759);
|
||||
--color-violet-900: oklch(38% 0.189 293.745);
|
||||
--color-violet-950: oklch(28.3% 0.141 291.089);
|
||||
|
||||
--color-purple-50: oklch(97.7% 0.014 308.299);
|
||||
--color-purple-100: oklch(94.6% 0.033 307.174);
|
||||
--color-purple-200: oklch(90.2% 0.063 306.703);
|
||||
--color-purple-300: oklch(82.7% 0.119 306.383);
|
||||
--color-purple-400: oklch(71.4% 0.203 305.504);
|
||||
--color-purple-500: oklch(62.7% 0.265 303.9);
|
||||
--color-purple-600: oklch(55.8% 0.288 302.321);
|
||||
--color-purple-700: oklch(49.6% 0.265 301.924);
|
||||
--color-purple-800: oklch(43.8% 0.218 303.724);
|
||||
--color-purple-900: oklch(38.1% 0.176 304.987);
|
||||
--color-purple-950: oklch(29.1% 0.149 302.717);
|
||||
|
||||
--color-fuchsia-50: oklch(97.7% 0.017 320.058);
|
||||
--color-fuchsia-100: oklch(95.2% 0.037 318.852);
|
||||
--color-fuchsia-200: oklch(90.3% 0.076 319.62);
|
||||
--color-fuchsia-300: oklch(83.3% 0.145 321.434);
|
||||
--color-fuchsia-400: oklch(74% 0.238 322.16);
|
||||
--color-fuchsia-500: oklch(66.7% 0.295 322.15);
|
||||
--color-fuchsia-600: oklch(59.1% 0.293 322.896);
|
||||
--color-fuchsia-700: oklch(51.8% 0.253 323.949);
|
||||
--color-fuchsia-800: oklch(45.2% 0.211 324.591);
|
||||
--color-fuchsia-900: oklch(40.1% 0.17 325.612);
|
||||
--color-fuchsia-950: oklch(29.3% 0.136 325.661);
|
||||
|
||||
--color-pink-50: oklch(97.1% 0.014 343.198);
|
||||
--color-pink-100: oklch(94.8% 0.028 342.258);
|
||||
--color-pink-200: oklch(89.9% 0.061 343.231);
|
||||
--color-pink-300: oklch(82.3% 0.12 346.018);
|
||||
--color-pink-400: oklch(71.8% 0.202 349.761);
|
||||
--color-pink-500: oklch(65.6% 0.241 354.308);
|
||||
--color-pink-600: oklch(59.2% 0.249 0.584);
|
||||
--color-pink-700: oklch(52.5% 0.223 3.958);
|
||||
--color-pink-800: oklch(45.9% 0.187 3.815);
|
||||
--color-pink-900: oklch(40.8% 0.153 2.432);
|
||||
--color-pink-950: oklch(28.4% 0.109 3.907);
|
||||
|
||||
--color-rose-50: oklch(96.9% 0.015 12.422);
|
||||
--color-rose-100: oklch(94.1% 0.03 12.58);
|
||||
--color-rose-200: oklch(89.2% 0.058 10.001);
|
||||
--color-rose-300: oklch(81% 0.117 11.638);
|
||||
--color-rose-400: oklch(71.2% 0.194 13.428);
|
||||
--color-rose-500: oklch(64.5% 0.246 16.439);
|
||||
--color-rose-600: oklch(58.6% 0.253 17.585);
|
||||
--color-rose-700: oklch(51.4% 0.222 16.935);
|
||||
--color-rose-800: oklch(45.5% 0.188 13.697);
|
||||
--color-rose-900: oklch(41% 0.159 10.272);
|
||||
--color-rose-950: oklch(27.1% 0.105 12.094);
|
||||
|
||||
--color-slate-50: oklch(98.4% 0.003 247.858);
|
||||
--color-slate-100: oklch(96.8% 0.007 247.896);
|
||||
--color-slate-200: oklch(92.9% 0.013 255.508);
|
||||
--color-slate-300: oklch(86.9% 0.022 252.894);
|
||||
--color-slate-400: oklch(70.4% 0.04 256.788);
|
||||
--color-slate-500: oklch(55.4% 0.046 257.417);
|
||||
--color-slate-600: oklch(44.6% 0.043 257.281);
|
||||
--color-slate-700: oklch(37.2% 0.044 257.287);
|
||||
--color-slate-800: oklch(27.9% 0.041 260.031);
|
||||
--color-slate-900: oklch(20.8% 0.042 265.755);
|
||||
--color-slate-950: oklch(12.9% 0.042 264.695);
|
||||
|
||||
--color-gray-50: oklch(98.5% 0.002 247.839);
|
||||
--color-gray-100: oklch(96.7% 0.003 264.542);
|
||||
--color-gray-200: oklch(92.8% 0.006 264.531);
|
||||
--color-gray-300: oklch(87.2% 0.01 258.338);
|
||||
--color-gray-400: oklch(70.7% 0.022 261.325);
|
||||
--color-gray-500: oklch(55.1% 0.027 264.364);
|
||||
--color-gray-600: oklch(44.6% 0.03 256.802);
|
||||
--color-gray-700: oklch(37.3% 0.034 259.733);
|
||||
--color-gray-800: oklch(27.8% 0.033 256.848);
|
||||
--color-gray-900: oklch(21% 0.034 264.665);
|
||||
--color-gray-950: oklch(13% 0.028 261.692);
|
||||
|
||||
--color-zinc-50: oklch(98.5% 0 0);
|
||||
--color-zinc-100: oklch(96.7% 0.001 286.375);
|
||||
--color-zinc-200: oklch(92% 0.004 286.32);
|
||||
--color-zinc-300: oklch(87.1% 0.006 286.286);
|
||||
--color-zinc-400: oklch(70.5% 0.015 286.067);
|
||||
--color-zinc-500: oklch(55.2% 0.016 285.938);
|
||||
--color-zinc-600: oklch(44.2% 0.017 285.786);
|
||||
--color-zinc-700: oklch(37% 0.013 285.805);
|
||||
--color-zinc-800: oklch(27.4% 0.006 286.033);
|
||||
--color-zinc-900: oklch(21% 0.006 285.885);
|
||||
--color-zinc-950: oklch(14.1% 0.005 285.823);
|
||||
|
||||
--color-neutral-50: oklch(98.5% 0 0);
|
||||
--color-neutral-100: oklch(97% 0 0);
|
||||
--color-neutral-200: oklch(92.2% 0 0);
|
||||
--color-neutral-300: oklch(87% 0 0);
|
||||
--color-neutral-400: oklch(70.8% 0 0);
|
||||
--color-neutral-500: oklch(55.6% 0 0);
|
||||
--color-neutral-600: oklch(43.9% 0 0);
|
||||
--color-neutral-700: oklch(37.1% 0 0);
|
||||
--color-neutral-800: oklch(26.9% 0 0);
|
||||
--color-neutral-900: oklch(20.5% 0 0);
|
||||
--color-neutral-950: oklch(14.5% 0 0);
|
||||
|
||||
--color-stone-50: oklch(98.5% 0.001 106.423);
|
||||
--color-stone-100: oklch(97% 0.001 106.424);
|
||||
--color-stone-200: oklch(92.3% 0.003 48.717);
|
||||
--color-stone-300: oklch(86.9% 0.005 56.366);
|
||||
--color-stone-400: oklch(70.9% 0.01 56.259);
|
||||
--color-stone-500: oklch(55.3% 0.013 58.071);
|
||||
--color-stone-600: oklch(44.4% 0.011 73.639);
|
||||
--color-stone-700: oklch(37.4% 0.01 67.558);
|
||||
--color-stone-800: oklch(26.8% 0.007 34.298);
|
||||
--color-stone-900: oklch(21.6% 0.006 56.043);
|
||||
--color-stone-950: oklch(14.7% 0.004 49.25);
|
||||
|
||||
--color-mauve-50: oklch(98.5% 0 0);
|
||||
--color-mauve-100: oklch(96% 0.003 325.6);
|
||||
--color-mauve-200: oklch(92.2% 0.005 325.62);
|
||||
--color-mauve-300: oklch(86.5% 0.012 325.68);
|
||||
--color-mauve-400: oklch(71.1% 0.019 323.02);
|
||||
--color-mauve-500: oklch(54.2% 0.034 322.5);
|
||||
--color-mauve-600: oklch(43.5% 0.029 321.78);
|
||||
--color-mauve-700: oklch(36.4% 0.029 323.89);
|
||||
--color-mauve-800: oklch(26.3% 0.024 320.12);
|
||||
--color-mauve-900: oklch(21.2% 0.019 322.12);
|
||||
--color-mauve-950: oklch(14.5% 0.008 326);
|
||||
|
||||
--color-olive-50: oklch(98.8% 0.003 106.5);
|
||||
--color-olive-100: oklch(96.6% 0.005 106.5);
|
||||
--color-olive-200: oklch(93% 0.007 106.5);
|
||||
--color-olive-300: oklch(88% 0.011 106.6);
|
||||
--color-olive-400: oklch(73.7% 0.021 106.9);
|
||||
--color-olive-500: oklch(58% 0.031 107.3);
|
||||
--color-olive-600: oklch(46.6% 0.025 107.3);
|
||||
--color-olive-700: oklch(39.4% 0.023 107.4);
|
||||
--color-olive-800: oklch(28.6% 0.016 107.4);
|
||||
--color-olive-900: oklch(22.8% 0.013 107.4);
|
||||
--color-olive-950: oklch(15.3% 0.006 107.1);
|
||||
|
||||
--color-mist-50: oklch(98.7% 0.002 197.1);
|
||||
--color-mist-100: oklch(96.3% 0.002 197.1);
|
||||
--color-mist-200: oklch(92.5% 0.005 214.3);
|
||||
--color-mist-300: oklch(87.2% 0.007 219.6);
|
||||
--color-mist-400: oklch(72.3% 0.014 214.4);
|
||||
--color-mist-500: oklch(56% 0.021 213.5);
|
||||
--color-mist-600: oklch(45% 0.017 213.2);
|
||||
--color-mist-700: oklch(37.8% 0.015 216);
|
||||
--color-mist-800: oklch(27.5% 0.011 216.9);
|
||||
--color-mist-900: oklch(21.8% 0.008 223.9);
|
||||
--color-mist-950: oklch(14.8% 0.004 228.8);
|
||||
|
||||
--color-taupe-50: oklch(98.6% 0.002 67.8);
|
||||
--color-taupe-100: oklch(96% 0.002 17.2);
|
||||
--color-taupe-200: oklch(92.2% 0.005 34.3);
|
||||
--color-taupe-300: oklch(86.8% 0.007 39.5);
|
||||
--color-taupe-400: oklch(71.4% 0.014 41.2);
|
||||
--color-taupe-500: oklch(54.7% 0.021 43.1);
|
||||
--color-taupe-600: oklch(43.8% 0.017 39.3);
|
||||
--color-taupe-700: oklch(36.7% 0.016 35.7);
|
||||
--color-taupe-800: oklch(26.8% 0.011 36.5);
|
||||
--color-taupe-900: oklch(21.4% 0.009 43.1);
|
||||
--color-taupe-950: oklch(14.7% 0.004 49.3);
|
||||
|
||||
--color-black: #000;
|
||||
--color-white: #fff;
|
||||
|
||||
--spacing: 0.25rem;
|
||||
|
||||
--breakpoint-sm: 40rem;
|
||||
--breakpoint-md: 48rem;
|
||||
--breakpoint-lg: 64rem;
|
||||
--breakpoint-xl: 80rem;
|
||||
--breakpoint-2xl: 96rem;
|
||||
|
||||
--container-3xs: 16rem;
|
||||
--container-2xs: 18rem;
|
||||
--container-xs: 20rem;
|
||||
--container-sm: 24rem;
|
||||
--container-md: 28rem;
|
||||
--container-lg: 32rem;
|
||||
--container-xl: 36rem;
|
||||
--container-2xl: 42rem;
|
||||
--container-3xl: 48rem;
|
||||
--container-4xl: 56rem;
|
||||
--container-5xl: 64rem;
|
||||
--container-6xl: 72rem;
|
||||
--container-7xl: 80rem;
|
||||
|
||||
--text-xs: 0.75rem;
|
||||
--text-xs--line-height: calc(1 / 0.75);
|
||||
--text-sm: 0.875rem;
|
||||
--text-sm--line-height: calc(1.25 / 0.875);
|
||||
--text-base: 1rem;
|
||||
--text-base--line-height: calc(1.5 / 1);
|
||||
--text-lg: 1.125rem;
|
||||
--text-lg--line-height: calc(1.75 / 1.125);
|
||||
--text-xl: 1.25rem;
|
||||
--text-xl--line-height: calc(1.75 / 1.25);
|
||||
--text-2xl: 1.5rem;
|
||||
--text-2xl--line-height: calc(2 / 1.5);
|
||||
--text-3xl: 1.875rem;
|
||||
--text-3xl--line-height: calc(2.25 / 1.875);
|
||||
--text-4xl: 2.25rem;
|
||||
--text-4xl--line-height: calc(2.5 / 2.25);
|
||||
--text-5xl: 3rem;
|
||||
--text-5xl--line-height: 1;
|
||||
--text-6xl: 3.75rem;
|
||||
--text-6xl--line-height: 1;
|
||||
--text-7xl: 4.5rem;
|
||||
--text-7xl--line-height: 1;
|
||||
--text-8xl: 6rem;
|
||||
--text-8xl--line-height: 1;
|
||||
--text-9xl: 8rem;
|
||||
--text-9xl--line-height: 1;
|
||||
|
||||
--font-weight-thin: 100;
|
||||
--font-weight-extralight: 200;
|
||||
--font-weight-light: 300;
|
||||
--font-weight-normal: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-semibold: 600;
|
||||
--font-weight-bold: 700;
|
||||
--font-weight-extrabold: 800;
|
||||
--font-weight-black: 900;
|
||||
|
||||
--tracking-tighter: -0.05em;
|
||||
--tracking-tight: -0.025em;
|
||||
--tracking-normal: 0em;
|
||||
--tracking-wide: 0.025em;
|
||||
--tracking-wider: 0.05em;
|
||||
--tracking-widest: 0.1em;
|
||||
|
||||
--leading-tight: 1.25;
|
||||
--leading-snug: 1.375;
|
||||
--leading-normal: 1.5;
|
||||
--leading-relaxed: 1.625;
|
||||
--leading-loose: 2;
|
||||
|
||||
--radius-xs: 0.125rem;
|
||||
--radius-sm: 0.25rem;
|
||||
--radius-md: 0.375rem;
|
||||
--radius-lg: 0.5rem;
|
||||
--radius-xl: 0.75rem;
|
||||
--radius-2xl: 1rem;
|
||||
--radius-3xl: 1.5rem;
|
||||
--radius-4xl: 2rem;
|
||||
|
||||
--shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
||||
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
||||
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-md:
|
||||
0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
--shadow-lg:
|
||||
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
||||
--shadow-xl:
|
||||
0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
||||
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
||||
|
||||
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
||||
|
||||
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
||||
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
||||
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
||||
|
||||
--text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
|
||||
--text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
|
||||
--text-shadow-sm:
|
||||
0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075),
|
||||
0px 2px 2px rgb(0 0 0 / 0.075);
|
||||
--text-shadow-md:
|
||||
0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1),
|
||||
0px 2px 4px rgb(0 0 0 / 0.1);
|
||||
--text-shadow-lg:
|
||||
0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1),
|
||||
0px 4px 8px rgb(0 0 0 / 0.1);
|
||||
|
||||
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
||||
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
||||
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
--animate-spin: spin 1s linear infinite;
|
||||
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
||||
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
--animate-bounce: bounce 1s infinite;
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes ping {
|
||||
75%,
|
||||
100% {
|
||||
transform: scale(2);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(-25%);
|
||||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: none;
|
||||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||||
}
|
||||
}
|
||||
|
||||
--blur-xs: 4px;
|
||||
--blur-sm: 8px;
|
||||
--blur-md: 12px;
|
||||
--blur-lg: 16px;
|
||||
--blur-xl: 24px;
|
||||
--blur-2xl: 40px;
|
||||
--blur-3xl: 64px;
|
||||
|
||||
--perspective-dramatic: 100px;
|
||||
--perspective-near: 300px;
|
||||
--perspective-normal: 500px;
|
||||
--perspective-midrange: 800px;
|
||||
--perspective-distant: 1200px;
|
||||
|
||||
--aspect-video: 16 / 9;
|
||||
|
||||
--default-transition-duration: 150ms;
|
||||
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--default-font-family: --theme(--font-sans, initial);
|
||||
--default-font-feature-settings: --theme(
|
||||
--font-sans--font-feature-settings,
|
||||
initial
|
||||
);
|
||||
--default-font-variation-settings: --theme(
|
||||
--font-sans--font-variation-settings,
|
||||
initial
|
||||
);
|
||||
--default-mono-font-family: --theme(--font-mono, initial);
|
||||
--default-mono-font-feature-settings: --theme(
|
||||
--font-mono--font-feature-settings,
|
||||
initial
|
||||
);
|
||||
--default-mono-font-variation-settings: --theme(
|
||||
--font-mono--font-variation-settings,
|
||||
initial
|
||||
);
|
||||
}
|
||||
|
||||
/* Deprecated */
|
||||
@theme default inline reference {
|
||||
--blur: 8px;
|
||||
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
||||
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
|
||||
--radius: 0.25rem;
|
||||
--max-width-prose: 65ch;
|
||||
}
|
||||
}
|
||||
|
||||
@layer base {
|
||||
/*
|
||||
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
||||
2. Remove default margins and padding
|
||||
3. Reset all borders.
|
||||
*/
|
||||
|
||||
*,
|
||||
::after,
|
||||
::before,
|
||||
::backdrop,
|
||||
::file-selector-button {
|
||||
box-sizing: border-box; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
padding: 0; /* 2 */
|
||||
border: 0 solid; /* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Use a consistent sensible line-height in all browsers.
|
||||
2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
3. Use a more readable tab size.
|
||||
4. Use the user's configured `sans` font-family by default.
|
||||
5. Use the user's configured `sans` font-feature-settings by default.
|
||||
6. Use the user's configured `sans` font-variation-settings by default.
|
||||
7. Disable tap highlights on iOS.
|
||||
*/
|
||||
|
||||
html,
|
||||
:host {
|
||||
line-height: 1.5; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
tab-size: 4; /* 3 */
|
||||
font-family: --theme(
|
||||
--default-font-family,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
sans-serif,
|
||||
"Apple Color Emoji",
|
||||
"Segoe UI Emoji",
|
||||
"Segoe UI Symbol",
|
||||
"Noto Color Emoji"
|
||||
); /* 4 */
|
||||
font-feature-settings: --theme(
|
||||
--default-font-feature-settings,
|
||||
normal
|
||||
); /* 5 */
|
||||
font-variation-settings: --theme(
|
||||
--default-font-variation-settings,
|
||||
normal
|
||||
); /* 6 */
|
||||
-webkit-tap-highlight-color: transparent; /* 7 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Add the correct height in Firefox.
|
||||
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
||||
3. Reset the default border style to a 1px solid border.
|
||||
*/
|
||||
|
||||
hr {
|
||||
height: 0; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
border-top-width: 1px; /* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct text decoration in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
abbr:where([title]) {
|
||||
-webkit-text-decoration: underline dotted;
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the default font size and weight for headings.
|
||||
*/
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
/*
|
||||
Reset links to optimize for opt-in styling instead of opt-out.
|
||||
*/
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
-webkit-text-decoration: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct font weight in Edge and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Use the user's configured `mono` font-family by default.
|
||||
2. Use the user's configured `mono` font-feature-settings by default.
|
||||
3. Use the user's configured `mono` font-variation-settings by default.
|
||||
4. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp,
|
||||
pre {
|
||||
font-family: --theme(
|
||||
--default-mono-font-family,
|
||||
ui-monospace,
|
||||
SFMono-Regular,
|
||||
Menlo,
|
||||
Monaco,
|
||||
Consolas,
|
||||
"Liberation Mono",
|
||||
"Courier New",
|
||||
monospace
|
||||
); /* 1 */
|
||||
font-feature-settings: --theme(
|
||||
--default-mono-font-feature-settings,
|
||||
normal
|
||||
); /* 2 */
|
||||
font-variation-settings: --theme(
|
||||
--default-mono-font-variation-settings,
|
||||
normal
|
||||
); /* 3 */
|
||||
font-size: 1em; /* 4 */
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
||||
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
||||
3. Remove gaps between table borders by default.
|
||||
*/
|
||||
|
||||
table {
|
||||
text-indent: 0; /* 1 */
|
||||
border-color: inherit; /* 2 */
|
||||
border-collapse: collapse; /* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
Use the modern Firefox focus style for all focusable elements.
|
||||
*/
|
||||
|
||||
:-moz-focusring {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct vertical alignment in Chrome and Firefox.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct display in Chrome and Safari.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/*
|
||||
Make lists unstyled by default.
|
||||
*/
|
||||
|
||||
ol,
|
||||
ul,
|
||||
menu {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
||||
This can trigger a poorly considered lint error in some tools but is included by design.
|
||||
*/
|
||||
|
||||
img,
|
||||
svg,
|
||||
video,
|
||||
canvas,
|
||||
audio,
|
||||
iframe,
|
||||
embed,
|
||||
object {
|
||||
display: block; /* 1 */
|
||||
vertical-align: middle; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
*/
|
||||
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Inherit font styles in all browsers.
|
||||
2. Remove border radius in all browsers.
|
||||
3. Remove background color in all browsers.
|
||||
4. Ensure consistent opacity for disabled states in all browsers.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
optgroup,
|
||||
textarea,
|
||||
::file-selector-button {
|
||||
font: inherit; /* 1 */
|
||||
font-feature-settings: inherit; /* 1 */
|
||||
font-variation-settings: inherit; /* 1 */
|
||||
letter-spacing: inherit; /* 1 */
|
||||
color: inherit; /* 1 */
|
||||
border-radius: 0; /* 2 */
|
||||
background-color: transparent; /* 3 */
|
||||
opacity: 1; /* 4 */
|
||||
}
|
||||
|
||||
/*
|
||||
Restore default font weight.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore indentation.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup option {
|
||||
padding-inline-start: 20px;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore space after button.
|
||||
*/
|
||||
|
||||
::file-selector-button {
|
||||
margin-inline-end: 4px;
|
||||
}
|
||||
|
||||
/*
|
||||
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
||||
*/
|
||||
|
||||
::placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
||||
crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
||||
*/
|
||||
|
||||
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
||||
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
||||
::placeholder {
|
||||
color: color-mix(in oklab, currentcolor 50%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent resizing textareas horizontally by default.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
||||
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
||||
*/
|
||||
|
||||
::-webkit-date-and-time-value {
|
||||
min-height: 1lh; /* 1 */
|
||||
text-align: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit,
|
||||
::-webkit-datetime-edit-year-field,
|
||||
::-webkit-datetime-edit-month-field,
|
||||
::-webkit-datetime-edit-day-field,
|
||||
::-webkit-datetime-edit-hour-field,
|
||||
::-webkit-datetime-edit-minute-field,
|
||||
::-webkit-datetime-edit-second-field,
|
||||
::-webkit-datetime-edit-millisecond-field,
|
||||
::-webkit-datetime-edit-meridiem-field {
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
|
||||
*/
|
||||
|
||||
::-webkit-calendar-picker-indicator {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
||||
*/
|
||||
|
||||
:-moz-ui-invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the inability to style the border radius in iOS Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input:where([type="button"], [type="reset"], [type="submit"]),
|
||||
::file-selector-button {
|
||||
appearance: button;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the cursor style of increment and decrement buttons in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-inner-spin-button,
|
||||
::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Make elements with the HTML hidden attribute stay hidden by default.
|
||||
*/
|
||||
|
||||
[hidden]:where(:not([hidden="until-found"])) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
@tailwind utilities;
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"name": "tailwindcss",
|
||||
"version": "4.2.1",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tailwindlabs/tailwindcss.git",
|
||||
"directory": "packages/tailwindcss"
|
||||
},
|
||||
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
|
||||
"homepage": "https://tailwindcss.com",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/lib.d.mts",
|
||||
"style": "./index.css",
|
||||
"require": "./dist/lib.js",
|
||||
"import": "./dist/lib.mjs"
|
||||
},
|
||||
"./plugin": {
|
||||
"require": "./dist/plugin.js",
|
||||
"import": "./dist/plugin.mjs"
|
||||
},
|
||||
"./plugin.js": {
|
||||
"require": "./dist/plugin.js",
|
||||
"import": "./dist/plugin.mjs"
|
||||
},
|
||||
"./defaultTheme": {
|
||||
"require": "./dist/default-theme.js",
|
||||
"import": "./dist/default-theme.mjs"
|
||||
},
|
||||
"./defaultTheme.js": {
|
||||
"require": "./dist/default-theme.js",
|
||||
"import": "./dist/default-theme.mjs"
|
||||
},
|
||||
"./colors": {
|
||||
"require": "./dist/colors.js",
|
||||
"import": "./dist/colors.mjs"
|
||||
},
|
||||
"./colors.js": {
|
||||
"require": "./dist/colors.js",
|
||||
"import": "./dist/colors.mjs"
|
||||
},
|
||||
"./lib/util/flattenColorPalette": {
|
||||
"require": "./dist/flatten-color-palette.js",
|
||||
"import": "./dist/flatten-color-palette.mjs"
|
||||
},
|
||||
"./lib/util/flattenColorPalette.js": {
|
||||
"require": "./dist/flatten-color-palette.js",
|
||||
"import": "./dist/flatten-color-palette.mjs"
|
||||
},
|
||||
"./package.json": "./package.json",
|
||||
"./index.css": "./index.css",
|
||||
"./index": "./index.css",
|
||||
"./preflight.css": "./preflight.css",
|
||||
"./preflight": "./preflight.css",
|
||||
"./theme.css": "./theme.css",
|
||||
"./theme": "./theme.css",
|
||||
"./utilities.css": "./utilities.css",
|
||||
"./utilities": "./utilities.css"
|
||||
},
|
||||
"publishConfig": {
|
||||
"provenance": true,
|
||||
"access": "public"
|
||||
},
|
||||
"style": "index.css",
|
||||
"files": [
|
||||
"dist",
|
||||
"index.css",
|
||||
"preflight.css",
|
||||
"theme.css",
|
||||
"utilities.css"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@jridgewell/remapping": "^2.3.5",
|
||||
"@types/node": "^20.19.0",
|
||||
"dedent": "1.7.1",
|
||||
"lightningcss": "1.31.1",
|
||||
"magic-string": "^0.30.21",
|
||||
"source-map-js": "^1.2.1",
|
||||
"@tailwindcss/oxide": "^4.2.1"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "tsc --noEmit",
|
||||
"build": "tsup-node --env.NODE_ENV production",
|
||||
"dev": "tsup-node --env.NODE_ENV development --watch",
|
||||
"test:ui": "playwright test"
|
||||
}
|
||||
}
|
||||
+393
@@ -0,0 +1,393 @@
|
||||
/*
|
||||
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
||||
2. Remove default margins and padding
|
||||
3. Reset all borders.
|
||||
*/
|
||||
|
||||
*,
|
||||
::after,
|
||||
::before,
|
||||
::backdrop,
|
||||
::file-selector-button {
|
||||
box-sizing: border-box; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
padding: 0; /* 2 */
|
||||
border: 0 solid; /* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Use a consistent sensible line-height in all browsers.
|
||||
2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
3. Use a more readable tab size.
|
||||
4. Use the user's configured `sans` font-family by default.
|
||||
5. Use the user's configured `sans` font-feature-settings by default.
|
||||
6. Use the user's configured `sans` font-variation-settings by default.
|
||||
7. Disable tap highlights on iOS.
|
||||
*/
|
||||
|
||||
html,
|
||||
:host {
|
||||
line-height: 1.5; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
tab-size: 4; /* 3 */
|
||||
font-family: --theme(
|
||||
--default-font-family,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
sans-serif,
|
||||
'Apple Color Emoji',
|
||||
'Segoe UI Emoji',
|
||||
'Segoe UI Symbol',
|
||||
'Noto Color Emoji'
|
||||
); /* 4 */
|
||||
font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */
|
||||
font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */
|
||||
-webkit-tap-highlight-color: transparent; /* 7 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Add the correct height in Firefox.
|
||||
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
||||
3. Reset the default border style to a 1px solid border.
|
||||
*/
|
||||
|
||||
hr {
|
||||
height: 0; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
border-top-width: 1px; /* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct text decoration in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
abbr:where([title]) {
|
||||
-webkit-text-decoration: underline dotted;
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the default font size and weight for headings.
|
||||
*/
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
/*
|
||||
Reset links to optimize for opt-in styling instead of opt-out.
|
||||
*/
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
-webkit-text-decoration: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct font weight in Edge and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Use the user's configured `mono` font-family by default.
|
||||
2. Use the user's configured `mono` font-feature-settings by default.
|
||||
3. Use the user's configured `mono` font-variation-settings by default.
|
||||
4. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp,
|
||||
pre {
|
||||
font-family: --theme(
|
||||
--default-mono-font-family,
|
||||
ui-monospace,
|
||||
SFMono-Regular,
|
||||
Menlo,
|
||||
Monaco,
|
||||
Consolas,
|
||||
'Liberation Mono',
|
||||
'Courier New',
|
||||
monospace
|
||||
); /* 1 */
|
||||
font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */
|
||||
font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */
|
||||
font-size: 1em; /* 4 */
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
||||
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
||||
3. Remove gaps between table borders by default.
|
||||
*/
|
||||
|
||||
table {
|
||||
text-indent: 0; /* 1 */
|
||||
border-color: inherit; /* 2 */
|
||||
border-collapse: collapse; /* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
Use the modern Firefox focus style for all focusable elements.
|
||||
*/
|
||||
|
||||
:-moz-focusring {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct vertical alignment in Chrome and Firefox.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct display in Chrome and Safari.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/*
|
||||
Make lists unstyled by default.
|
||||
*/
|
||||
|
||||
ol,
|
||||
ul,
|
||||
menu {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
||||
This can trigger a poorly considered lint error in some tools but is included by design.
|
||||
*/
|
||||
|
||||
img,
|
||||
svg,
|
||||
video,
|
||||
canvas,
|
||||
audio,
|
||||
iframe,
|
||||
embed,
|
||||
object {
|
||||
display: block; /* 1 */
|
||||
vertical-align: middle; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
*/
|
||||
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Inherit font styles in all browsers.
|
||||
2. Remove border radius in all browsers.
|
||||
3. Remove background color in all browsers.
|
||||
4. Ensure consistent opacity for disabled states in all browsers.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
optgroup,
|
||||
textarea,
|
||||
::file-selector-button {
|
||||
font: inherit; /* 1 */
|
||||
font-feature-settings: inherit; /* 1 */
|
||||
font-variation-settings: inherit; /* 1 */
|
||||
letter-spacing: inherit; /* 1 */
|
||||
color: inherit; /* 1 */
|
||||
border-radius: 0; /* 2 */
|
||||
background-color: transparent; /* 3 */
|
||||
opacity: 1; /* 4 */
|
||||
}
|
||||
|
||||
/*
|
||||
Restore default font weight.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore indentation.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup option {
|
||||
padding-inline-start: 20px;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore space after button.
|
||||
*/
|
||||
|
||||
::file-selector-button {
|
||||
margin-inline-end: 4px;
|
||||
}
|
||||
|
||||
/*
|
||||
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
||||
*/
|
||||
|
||||
::placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
||||
crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
||||
*/
|
||||
|
||||
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
||||
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
||||
::placeholder {
|
||||
color: color-mix(in oklab, currentcolor 50%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent resizing textareas horizontally by default.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
||||
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
||||
*/
|
||||
|
||||
::-webkit-date-and-time-value {
|
||||
min-height: 1lh; /* 1 */
|
||||
text-align: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit,
|
||||
::-webkit-datetime-edit-year-field,
|
||||
::-webkit-datetime-edit-month-field,
|
||||
::-webkit-datetime-edit-day-field,
|
||||
::-webkit-datetime-edit-hour-field,
|
||||
::-webkit-datetime-edit-minute-field,
|
||||
::-webkit-datetime-edit-second-field,
|
||||
::-webkit-datetime-edit-millisecond-field,
|
||||
::-webkit-datetime-edit-meridiem-field {
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
|
||||
*/
|
||||
|
||||
::-webkit-calendar-picker-indicator {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
||||
*/
|
||||
|
||||
:-moz-ui-invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the inability to style the border radius in iOS Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input:where([type='button'], [type='reset'], [type='submit']),
|
||||
::file-selector-button {
|
||||
appearance: button;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the cursor style of increment and decrement buttons in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-inner-spin-button,
|
||||
::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Make elements with the HTML hidden attribute stay hidden by default.
|
||||
*/
|
||||
|
||||
[hidden]:where(:not([hidden='until-found'])) {
|
||||
display: none !important;
|
||||
}
|
||||
+510
@@ -0,0 +1,510 @@
|
||||
@theme default {
|
||||
--font-sans:
|
||||
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||||
'Noto Color Emoji';
|
||||
--font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
|
||||
--font-mono:
|
||||
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
||||
monospace;
|
||||
|
||||
--color-red-50: oklch(97.1% 0.013 17.38);
|
||||
--color-red-100: oklch(93.6% 0.032 17.717);
|
||||
--color-red-200: oklch(88.5% 0.062 18.334);
|
||||
--color-red-300: oklch(80.8% 0.114 19.571);
|
||||
--color-red-400: oklch(70.4% 0.191 22.216);
|
||||
--color-red-500: oklch(63.7% 0.237 25.331);
|
||||
--color-red-600: oklch(57.7% 0.245 27.325);
|
||||
--color-red-700: oklch(50.5% 0.213 27.518);
|
||||
--color-red-800: oklch(44.4% 0.177 26.899);
|
||||
--color-red-900: oklch(39.6% 0.141 25.723);
|
||||
--color-red-950: oklch(25.8% 0.092 26.042);
|
||||
|
||||
--color-orange-50: oklch(98% 0.016 73.684);
|
||||
--color-orange-100: oklch(95.4% 0.038 75.164);
|
||||
--color-orange-200: oklch(90.1% 0.076 70.697);
|
||||
--color-orange-300: oklch(83.7% 0.128 66.29);
|
||||
--color-orange-400: oklch(75% 0.183 55.934);
|
||||
--color-orange-500: oklch(70.5% 0.213 47.604);
|
||||
--color-orange-600: oklch(64.6% 0.222 41.116);
|
||||
--color-orange-700: oklch(55.3% 0.195 38.402);
|
||||
--color-orange-800: oklch(47% 0.157 37.304);
|
||||
--color-orange-900: oklch(40.8% 0.123 38.172);
|
||||
--color-orange-950: oklch(26.6% 0.079 36.259);
|
||||
|
||||
--color-amber-50: oklch(98.7% 0.022 95.277);
|
||||
--color-amber-100: oklch(96.2% 0.059 95.617);
|
||||
--color-amber-200: oklch(92.4% 0.12 95.746);
|
||||
--color-amber-300: oklch(87.9% 0.169 91.605);
|
||||
--color-amber-400: oklch(82.8% 0.189 84.429);
|
||||
--color-amber-500: oklch(76.9% 0.188 70.08);
|
||||
--color-amber-600: oklch(66.6% 0.179 58.318);
|
||||
--color-amber-700: oklch(55.5% 0.163 48.998);
|
||||
--color-amber-800: oklch(47.3% 0.137 46.201);
|
||||
--color-amber-900: oklch(41.4% 0.112 45.904);
|
||||
--color-amber-950: oklch(27.9% 0.077 45.635);
|
||||
|
||||
--color-yellow-50: oklch(98.7% 0.026 102.212);
|
||||
--color-yellow-100: oklch(97.3% 0.071 103.193);
|
||||
--color-yellow-200: oklch(94.5% 0.129 101.54);
|
||||
--color-yellow-300: oklch(90.5% 0.182 98.111);
|
||||
--color-yellow-400: oklch(85.2% 0.199 91.936);
|
||||
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
||||
--color-yellow-600: oklch(68.1% 0.162 75.834);
|
||||
--color-yellow-700: oklch(55.4% 0.135 66.442);
|
||||
--color-yellow-800: oklch(47.6% 0.114 61.907);
|
||||
--color-yellow-900: oklch(42.1% 0.095 57.708);
|
||||
--color-yellow-950: oklch(28.6% 0.066 53.813);
|
||||
|
||||
--color-lime-50: oklch(98.6% 0.031 120.757);
|
||||
--color-lime-100: oklch(96.7% 0.067 122.328);
|
||||
--color-lime-200: oklch(93.8% 0.127 124.321);
|
||||
--color-lime-300: oklch(89.7% 0.196 126.665);
|
||||
--color-lime-400: oklch(84.1% 0.238 128.85);
|
||||
--color-lime-500: oklch(76.8% 0.233 130.85);
|
||||
--color-lime-600: oklch(64.8% 0.2 131.684);
|
||||
--color-lime-700: oklch(53.2% 0.157 131.589);
|
||||
--color-lime-800: oklch(45.3% 0.124 130.933);
|
||||
--color-lime-900: oklch(40.5% 0.101 131.063);
|
||||
--color-lime-950: oklch(27.4% 0.072 132.109);
|
||||
|
||||
--color-green-50: oklch(98.2% 0.018 155.826);
|
||||
--color-green-100: oklch(96.2% 0.044 156.743);
|
||||
--color-green-200: oklch(92.5% 0.084 155.995);
|
||||
--color-green-300: oklch(87.1% 0.15 154.449);
|
||||
--color-green-400: oklch(79.2% 0.209 151.711);
|
||||
--color-green-500: oklch(72.3% 0.219 149.579);
|
||||
--color-green-600: oklch(62.7% 0.194 149.214);
|
||||
--color-green-700: oklch(52.7% 0.154 150.069);
|
||||
--color-green-800: oklch(44.8% 0.119 151.328);
|
||||
--color-green-900: oklch(39.3% 0.095 152.535);
|
||||
--color-green-950: oklch(26.6% 0.065 152.934);
|
||||
|
||||
--color-emerald-50: oklch(97.9% 0.021 166.113);
|
||||
--color-emerald-100: oklch(95% 0.052 163.051);
|
||||
--color-emerald-200: oklch(90.5% 0.093 164.15);
|
||||
--color-emerald-300: oklch(84.5% 0.143 164.978);
|
||||
--color-emerald-400: oklch(76.5% 0.177 163.223);
|
||||
--color-emerald-500: oklch(69.6% 0.17 162.48);
|
||||
--color-emerald-600: oklch(59.6% 0.145 163.225);
|
||||
--color-emerald-700: oklch(50.8% 0.118 165.612);
|
||||
--color-emerald-800: oklch(43.2% 0.095 166.913);
|
||||
--color-emerald-900: oklch(37.8% 0.077 168.94);
|
||||
--color-emerald-950: oklch(26.2% 0.051 172.552);
|
||||
|
||||
--color-teal-50: oklch(98.4% 0.014 180.72);
|
||||
--color-teal-100: oklch(95.3% 0.051 180.801);
|
||||
--color-teal-200: oklch(91% 0.096 180.426);
|
||||
--color-teal-300: oklch(85.5% 0.138 181.071);
|
||||
--color-teal-400: oklch(77.7% 0.152 181.912);
|
||||
--color-teal-500: oklch(70.4% 0.14 182.503);
|
||||
--color-teal-600: oklch(60% 0.118 184.704);
|
||||
--color-teal-700: oklch(51.1% 0.096 186.391);
|
||||
--color-teal-800: oklch(43.7% 0.078 188.216);
|
||||
--color-teal-900: oklch(38.6% 0.063 188.416);
|
||||
--color-teal-950: oklch(27.7% 0.046 192.524);
|
||||
|
||||
--color-cyan-50: oklch(98.4% 0.019 200.873);
|
||||
--color-cyan-100: oklch(95.6% 0.045 203.388);
|
||||
--color-cyan-200: oklch(91.7% 0.08 205.041);
|
||||
--color-cyan-300: oklch(86.5% 0.127 207.078);
|
||||
--color-cyan-400: oklch(78.9% 0.154 211.53);
|
||||
--color-cyan-500: oklch(71.5% 0.143 215.221);
|
||||
--color-cyan-600: oklch(60.9% 0.126 221.723);
|
||||
--color-cyan-700: oklch(52% 0.105 223.128);
|
||||
--color-cyan-800: oklch(45% 0.085 224.283);
|
||||
--color-cyan-900: oklch(39.8% 0.07 227.392);
|
||||
--color-cyan-950: oklch(30.2% 0.056 229.695);
|
||||
|
||||
--color-sky-50: oklch(97.7% 0.013 236.62);
|
||||
--color-sky-100: oklch(95.1% 0.026 236.824);
|
||||
--color-sky-200: oklch(90.1% 0.058 230.902);
|
||||
--color-sky-300: oklch(82.8% 0.111 230.318);
|
||||
--color-sky-400: oklch(74.6% 0.16 232.661);
|
||||
--color-sky-500: oklch(68.5% 0.169 237.323);
|
||||
--color-sky-600: oklch(58.8% 0.158 241.966);
|
||||
--color-sky-700: oklch(50% 0.134 242.749);
|
||||
--color-sky-800: oklch(44.3% 0.11 240.79);
|
||||
--color-sky-900: oklch(39.1% 0.09 240.876);
|
||||
--color-sky-950: oklch(29.3% 0.066 243.157);
|
||||
|
||||
--color-blue-50: oklch(97% 0.014 254.604);
|
||||
--color-blue-100: oklch(93.2% 0.032 255.585);
|
||||
--color-blue-200: oklch(88.2% 0.059 254.128);
|
||||
--color-blue-300: oklch(80.9% 0.105 251.813);
|
||||
--color-blue-400: oklch(70.7% 0.165 254.624);
|
||||
--color-blue-500: oklch(62.3% 0.214 259.815);
|
||||
--color-blue-600: oklch(54.6% 0.245 262.881);
|
||||
--color-blue-700: oklch(48.8% 0.243 264.376);
|
||||
--color-blue-800: oklch(42.4% 0.199 265.638);
|
||||
--color-blue-900: oklch(37.9% 0.146 265.522);
|
||||
--color-blue-950: oklch(28.2% 0.091 267.935);
|
||||
|
||||
--color-indigo-50: oklch(96.2% 0.018 272.314);
|
||||
--color-indigo-100: oklch(93% 0.034 272.788);
|
||||
--color-indigo-200: oklch(87% 0.065 274.039);
|
||||
--color-indigo-300: oklch(78.5% 0.115 274.713);
|
||||
--color-indigo-400: oklch(67.3% 0.182 276.935);
|
||||
--color-indigo-500: oklch(58.5% 0.233 277.117);
|
||||
--color-indigo-600: oklch(51.1% 0.262 276.966);
|
||||
--color-indigo-700: oklch(45.7% 0.24 277.023);
|
||||
--color-indigo-800: oklch(39.8% 0.195 277.366);
|
||||
--color-indigo-900: oklch(35.9% 0.144 278.697);
|
||||
--color-indigo-950: oklch(25.7% 0.09 281.288);
|
||||
|
||||
--color-violet-50: oklch(96.9% 0.016 293.756);
|
||||
--color-violet-100: oklch(94.3% 0.029 294.588);
|
||||
--color-violet-200: oklch(89.4% 0.057 293.283);
|
||||
--color-violet-300: oklch(81.1% 0.111 293.571);
|
||||
--color-violet-400: oklch(70.2% 0.183 293.541);
|
||||
--color-violet-500: oklch(60.6% 0.25 292.717);
|
||||
--color-violet-600: oklch(54.1% 0.281 293.009);
|
||||
--color-violet-700: oklch(49.1% 0.27 292.581);
|
||||
--color-violet-800: oklch(43.2% 0.232 292.759);
|
||||
--color-violet-900: oklch(38% 0.189 293.745);
|
||||
--color-violet-950: oklch(28.3% 0.141 291.089);
|
||||
|
||||
--color-purple-50: oklch(97.7% 0.014 308.299);
|
||||
--color-purple-100: oklch(94.6% 0.033 307.174);
|
||||
--color-purple-200: oklch(90.2% 0.063 306.703);
|
||||
--color-purple-300: oklch(82.7% 0.119 306.383);
|
||||
--color-purple-400: oklch(71.4% 0.203 305.504);
|
||||
--color-purple-500: oklch(62.7% 0.265 303.9);
|
||||
--color-purple-600: oklch(55.8% 0.288 302.321);
|
||||
--color-purple-700: oklch(49.6% 0.265 301.924);
|
||||
--color-purple-800: oklch(43.8% 0.218 303.724);
|
||||
--color-purple-900: oklch(38.1% 0.176 304.987);
|
||||
--color-purple-950: oklch(29.1% 0.149 302.717);
|
||||
|
||||
--color-fuchsia-50: oklch(97.7% 0.017 320.058);
|
||||
--color-fuchsia-100: oklch(95.2% 0.037 318.852);
|
||||
--color-fuchsia-200: oklch(90.3% 0.076 319.62);
|
||||
--color-fuchsia-300: oklch(83.3% 0.145 321.434);
|
||||
--color-fuchsia-400: oklch(74% 0.238 322.16);
|
||||
--color-fuchsia-500: oklch(66.7% 0.295 322.15);
|
||||
--color-fuchsia-600: oklch(59.1% 0.293 322.896);
|
||||
--color-fuchsia-700: oklch(51.8% 0.253 323.949);
|
||||
--color-fuchsia-800: oklch(45.2% 0.211 324.591);
|
||||
--color-fuchsia-900: oklch(40.1% 0.17 325.612);
|
||||
--color-fuchsia-950: oklch(29.3% 0.136 325.661);
|
||||
|
||||
--color-pink-50: oklch(97.1% 0.014 343.198);
|
||||
--color-pink-100: oklch(94.8% 0.028 342.258);
|
||||
--color-pink-200: oklch(89.9% 0.061 343.231);
|
||||
--color-pink-300: oklch(82.3% 0.12 346.018);
|
||||
--color-pink-400: oklch(71.8% 0.202 349.761);
|
||||
--color-pink-500: oklch(65.6% 0.241 354.308);
|
||||
--color-pink-600: oklch(59.2% 0.249 0.584);
|
||||
--color-pink-700: oklch(52.5% 0.223 3.958);
|
||||
--color-pink-800: oklch(45.9% 0.187 3.815);
|
||||
--color-pink-900: oklch(40.8% 0.153 2.432);
|
||||
--color-pink-950: oklch(28.4% 0.109 3.907);
|
||||
|
||||
--color-rose-50: oklch(96.9% 0.015 12.422);
|
||||
--color-rose-100: oklch(94.1% 0.03 12.58);
|
||||
--color-rose-200: oklch(89.2% 0.058 10.001);
|
||||
--color-rose-300: oklch(81% 0.117 11.638);
|
||||
--color-rose-400: oklch(71.2% 0.194 13.428);
|
||||
--color-rose-500: oklch(64.5% 0.246 16.439);
|
||||
--color-rose-600: oklch(58.6% 0.253 17.585);
|
||||
--color-rose-700: oklch(51.4% 0.222 16.935);
|
||||
--color-rose-800: oklch(45.5% 0.188 13.697);
|
||||
--color-rose-900: oklch(41% 0.159 10.272);
|
||||
--color-rose-950: oklch(27.1% 0.105 12.094);
|
||||
|
||||
--color-slate-50: oklch(98.4% 0.003 247.858);
|
||||
--color-slate-100: oklch(96.8% 0.007 247.896);
|
||||
--color-slate-200: oklch(92.9% 0.013 255.508);
|
||||
--color-slate-300: oklch(86.9% 0.022 252.894);
|
||||
--color-slate-400: oklch(70.4% 0.04 256.788);
|
||||
--color-slate-500: oklch(55.4% 0.046 257.417);
|
||||
--color-slate-600: oklch(44.6% 0.043 257.281);
|
||||
--color-slate-700: oklch(37.2% 0.044 257.287);
|
||||
--color-slate-800: oklch(27.9% 0.041 260.031);
|
||||
--color-slate-900: oklch(20.8% 0.042 265.755);
|
||||
--color-slate-950: oklch(12.9% 0.042 264.695);
|
||||
|
||||
--color-gray-50: oklch(98.5% 0.002 247.839);
|
||||
--color-gray-100: oklch(96.7% 0.003 264.542);
|
||||
--color-gray-200: oklch(92.8% 0.006 264.531);
|
||||
--color-gray-300: oklch(87.2% 0.01 258.338);
|
||||
--color-gray-400: oklch(70.7% 0.022 261.325);
|
||||
--color-gray-500: oklch(55.1% 0.027 264.364);
|
||||
--color-gray-600: oklch(44.6% 0.03 256.802);
|
||||
--color-gray-700: oklch(37.3% 0.034 259.733);
|
||||
--color-gray-800: oklch(27.8% 0.033 256.848);
|
||||
--color-gray-900: oklch(21% 0.034 264.665);
|
||||
--color-gray-950: oklch(13% 0.028 261.692);
|
||||
|
||||
--color-zinc-50: oklch(98.5% 0 0);
|
||||
--color-zinc-100: oklch(96.7% 0.001 286.375);
|
||||
--color-zinc-200: oklch(92% 0.004 286.32);
|
||||
--color-zinc-300: oklch(87.1% 0.006 286.286);
|
||||
--color-zinc-400: oklch(70.5% 0.015 286.067);
|
||||
--color-zinc-500: oklch(55.2% 0.016 285.938);
|
||||
--color-zinc-600: oklch(44.2% 0.017 285.786);
|
||||
--color-zinc-700: oklch(37% 0.013 285.805);
|
||||
--color-zinc-800: oklch(27.4% 0.006 286.033);
|
||||
--color-zinc-900: oklch(21% 0.006 285.885);
|
||||
--color-zinc-950: oklch(14.1% 0.005 285.823);
|
||||
|
||||
--color-neutral-50: oklch(98.5% 0 0);
|
||||
--color-neutral-100: oklch(97% 0 0);
|
||||
--color-neutral-200: oklch(92.2% 0 0);
|
||||
--color-neutral-300: oklch(87% 0 0);
|
||||
--color-neutral-400: oklch(70.8% 0 0);
|
||||
--color-neutral-500: oklch(55.6% 0 0);
|
||||
--color-neutral-600: oklch(43.9% 0 0);
|
||||
--color-neutral-700: oklch(37.1% 0 0);
|
||||
--color-neutral-800: oklch(26.9% 0 0);
|
||||
--color-neutral-900: oklch(20.5% 0 0);
|
||||
--color-neutral-950: oklch(14.5% 0 0);
|
||||
|
||||
--color-stone-50: oklch(98.5% 0.001 106.423);
|
||||
--color-stone-100: oklch(97% 0.001 106.424);
|
||||
--color-stone-200: oklch(92.3% 0.003 48.717);
|
||||
--color-stone-300: oklch(86.9% 0.005 56.366);
|
||||
--color-stone-400: oklch(70.9% 0.01 56.259);
|
||||
--color-stone-500: oklch(55.3% 0.013 58.071);
|
||||
--color-stone-600: oklch(44.4% 0.011 73.639);
|
||||
--color-stone-700: oklch(37.4% 0.01 67.558);
|
||||
--color-stone-800: oklch(26.8% 0.007 34.298);
|
||||
--color-stone-900: oklch(21.6% 0.006 56.043);
|
||||
--color-stone-950: oklch(14.7% 0.004 49.25);
|
||||
|
||||
--color-mauve-50: oklch(98.5% 0 0);
|
||||
--color-mauve-100: oklch(96% 0.003 325.6);
|
||||
--color-mauve-200: oklch(92.2% 0.005 325.62);
|
||||
--color-mauve-300: oklch(86.5% 0.012 325.68);
|
||||
--color-mauve-400: oklch(71.1% 0.019 323.02);
|
||||
--color-mauve-500: oklch(54.2% 0.034 322.5);
|
||||
--color-mauve-600: oklch(43.5% 0.029 321.78);
|
||||
--color-mauve-700: oklch(36.4% 0.029 323.89);
|
||||
--color-mauve-800: oklch(26.3% 0.024 320.12);
|
||||
--color-mauve-900: oklch(21.2% 0.019 322.12);
|
||||
--color-mauve-950: oklch(14.5% 0.008 326);
|
||||
|
||||
--color-olive-50: oklch(98.8% 0.003 106.5);
|
||||
--color-olive-100: oklch(96.6% 0.005 106.5);
|
||||
--color-olive-200: oklch(93% 0.007 106.5);
|
||||
--color-olive-300: oklch(88% 0.011 106.6);
|
||||
--color-olive-400: oklch(73.7% 0.021 106.9);
|
||||
--color-olive-500: oklch(58% 0.031 107.3);
|
||||
--color-olive-600: oklch(46.6% 0.025 107.3);
|
||||
--color-olive-700: oklch(39.4% 0.023 107.4);
|
||||
--color-olive-800: oklch(28.6% 0.016 107.4);
|
||||
--color-olive-900: oklch(22.8% 0.013 107.4);
|
||||
--color-olive-950: oklch(15.3% 0.006 107.1);
|
||||
|
||||
--color-mist-50: oklch(98.7% 0.002 197.1);
|
||||
--color-mist-100: oklch(96.3% 0.002 197.1);
|
||||
--color-mist-200: oklch(92.5% 0.005 214.3);
|
||||
--color-mist-300: oklch(87.2% 0.007 219.6);
|
||||
--color-mist-400: oklch(72.3% 0.014 214.4);
|
||||
--color-mist-500: oklch(56% 0.021 213.5);
|
||||
--color-mist-600: oklch(45% 0.017 213.2);
|
||||
--color-mist-700: oklch(37.8% 0.015 216);
|
||||
--color-mist-800: oklch(27.5% 0.011 216.9);
|
||||
--color-mist-900: oklch(21.8% 0.008 223.9);
|
||||
--color-mist-950: oklch(14.8% 0.004 228.8);
|
||||
|
||||
--color-taupe-50: oklch(98.6% 0.002 67.8);
|
||||
--color-taupe-100: oklch(96% 0.002 17.2);
|
||||
--color-taupe-200: oklch(92.2% 0.005 34.3);
|
||||
--color-taupe-300: oklch(86.8% 0.007 39.5);
|
||||
--color-taupe-400: oklch(71.4% 0.014 41.2);
|
||||
--color-taupe-500: oklch(54.7% 0.021 43.1);
|
||||
--color-taupe-600: oklch(43.8% 0.017 39.3);
|
||||
--color-taupe-700: oklch(36.7% 0.016 35.7);
|
||||
--color-taupe-800: oklch(26.8% 0.011 36.5);
|
||||
--color-taupe-900: oklch(21.4% 0.009 43.1);
|
||||
--color-taupe-950: oklch(14.7% 0.004 49.3);
|
||||
|
||||
--color-black: #000;
|
||||
--color-white: #fff;
|
||||
|
||||
--spacing: 0.25rem;
|
||||
|
||||
--breakpoint-sm: 40rem;
|
||||
--breakpoint-md: 48rem;
|
||||
--breakpoint-lg: 64rem;
|
||||
--breakpoint-xl: 80rem;
|
||||
--breakpoint-2xl: 96rem;
|
||||
|
||||
--container-3xs: 16rem;
|
||||
--container-2xs: 18rem;
|
||||
--container-xs: 20rem;
|
||||
--container-sm: 24rem;
|
||||
--container-md: 28rem;
|
||||
--container-lg: 32rem;
|
||||
--container-xl: 36rem;
|
||||
--container-2xl: 42rem;
|
||||
--container-3xl: 48rem;
|
||||
--container-4xl: 56rem;
|
||||
--container-5xl: 64rem;
|
||||
--container-6xl: 72rem;
|
||||
--container-7xl: 80rem;
|
||||
|
||||
--text-xs: 0.75rem;
|
||||
--text-xs--line-height: calc(1 / 0.75);
|
||||
--text-sm: 0.875rem;
|
||||
--text-sm--line-height: calc(1.25 / 0.875);
|
||||
--text-base: 1rem;
|
||||
--text-base--line-height: calc(1.5 / 1);
|
||||
--text-lg: 1.125rem;
|
||||
--text-lg--line-height: calc(1.75 / 1.125);
|
||||
--text-xl: 1.25rem;
|
||||
--text-xl--line-height: calc(1.75 / 1.25);
|
||||
--text-2xl: 1.5rem;
|
||||
--text-2xl--line-height: calc(2 / 1.5);
|
||||
--text-3xl: 1.875rem;
|
||||
--text-3xl--line-height: calc(2.25 / 1.875);
|
||||
--text-4xl: 2.25rem;
|
||||
--text-4xl--line-height: calc(2.5 / 2.25);
|
||||
--text-5xl: 3rem;
|
||||
--text-5xl--line-height: 1;
|
||||
--text-6xl: 3.75rem;
|
||||
--text-6xl--line-height: 1;
|
||||
--text-7xl: 4.5rem;
|
||||
--text-7xl--line-height: 1;
|
||||
--text-8xl: 6rem;
|
||||
--text-8xl--line-height: 1;
|
||||
--text-9xl: 8rem;
|
||||
--text-9xl--line-height: 1;
|
||||
|
||||
--font-weight-thin: 100;
|
||||
--font-weight-extralight: 200;
|
||||
--font-weight-light: 300;
|
||||
--font-weight-normal: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-semibold: 600;
|
||||
--font-weight-bold: 700;
|
||||
--font-weight-extrabold: 800;
|
||||
--font-weight-black: 900;
|
||||
|
||||
--tracking-tighter: -0.05em;
|
||||
--tracking-tight: -0.025em;
|
||||
--tracking-normal: 0em;
|
||||
--tracking-wide: 0.025em;
|
||||
--tracking-wider: 0.05em;
|
||||
--tracking-widest: 0.1em;
|
||||
|
||||
--leading-tight: 1.25;
|
||||
--leading-snug: 1.375;
|
||||
--leading-normal: 1.5;
|
||||
--leading-relaxed: 1.625;
|
||||
--leading-loose: 2;
|
||||
|
||||
--radius-xs: 0.125rem;
|
||||
--radius-sm: 0.25rem;
|
||||
--radius-md: 0.375rem;
|
||||
--radius-lg: 0.5rem;
|
||||
--radius-xl: 0.75rem;
|
||||
--radius-2xl: 1rem;
|
||||
--radius-3xl: 1.5rem;
|
||||
--radius-4xl: 2rem;
|
||||
|
||||
--shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
||||
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
||||
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
||||
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
||||
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
||||
|
||||
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
||||
|
||||
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
||||
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
||||
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
||||
|
||||
--text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
|
||||
--text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
|
||||
--text-shadow-sm:
|
||||
0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075);
|
||||
--text-shadow-md:
|
||||
0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1);
|
||||
--text-shadow-lg:
|
||||
0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1);
|
||||
|
||||
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
||||
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
||||
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
--animate-spin: spin 1s linear infinite;
|
||||
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
||||
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
--animate-bounce: bounce 1s infinite;
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes ping {
|
||||
75%,
|
||||
100% {
|
||||
transform: scale(2);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(-25%);
|
||||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: none;
|
||||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||||
}
|
||||
}
|
||||
|
||||
--blur-xs: 4px;
|
||||
--blur-sm: 8px;
|
||||
--blur-md: 12px;
|
||||
--blur-lg: 16px;
|
||||
--blur-xl: 24px;
|
||||
--blur-2xl: 40px;
|
||||
--blur-3xl: 64px;
|
||||
|
||||
--perspective-dramatic: 100px;
|
||||
--perspective-near: 300px;
|
||||
--perspective-normal: 500px;
|
||||
--perspective-midrange: 800px;
|
||||
--perspective-distant: 1200px;
|
||||
|
||||
--aspect-video: 16 / 9;
|
||||
|
||||
--default-transition-duration: 150ms;
|
||||
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--default-font-family: --theme(--font-sans, initial);
|
||||
--default-font-feature-settings: --theme(--font-sans--font-feature-settings, initial);
|
||||
--default-font-variation-settings: --theme(--font-sans--font-variation-settings, initial);
|
||||
--default-mono-font-family: --theme(--font-mono, initial);
|
||||
--default-mono-font-feature-settings: --theme(--font-mono--font-feature-settings, initial);
|
||||
--default-mono-font-variation-settings: --theme(--font-mono--font-variation-settings, initial);
|
||||
}
|
||||
|
||||
/* Deprecated */
|
||||
@theme default inline reference {
|
||||
--blur: 8px;
|
||||
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
||||
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
|
||||
--radius: 0.25rem;
|
||||
--max-width-prose: 65ch;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
@tailwind utilities;
|
||||
Reference in new issue
Block a user