me dejaron cocinar demaciado
This commit is contained in:
1 parent
bd510cb94b
commit
07727cee79
5655 files changed
+293183
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.
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
<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=next" 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/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
|
||||
<a href="https://github.com/tailwindcss/tailwindcss/blob/master/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 any other conversation that would benefit from being searchable:
|
||||
|
||||
[Discuss Tailwind CSS on GitHub](https://github.com/tailwindcss/tailwindcss/discussions)
|
||||
|
||||
For chatting with others using the framework:
|
||||
|
||||
[Join the Tailwind CSS Discord Server](https://discord.gg/7NF8GNe)
|
||||
|
||||
## Contributing
|
||||
|
||||
If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindcss/tailwindcss/blob/next/.github/CONTRIBUTING.md) **before submitting a pull request**.
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
import{a as At,b as _,c as M,d as E,e as tt,f as fe,g as je,h as $t}from"./chunk-P5FH2LZE.mjs";import{a as Ct}from"./chunk-HTB5LLOP.mjs";var Nt="4.1.3";var Ce=92,_e=47,De=42,Mr=34,Wr=39,Br=58,Ue=59,ce=10,$e=32,Ie=9,Vt=123,rt=125,ot=40,Tt=41,qr=91,Gr=93,St=45,it=64,Jr=33;function de(r){r[0]==="\uFEFF"&&(r=r.slice(1)),r=r.replaceAll(`\r
|
||||
`,`
|
||||
`);let t=[],i=[],e=[],o=null,s=null,l="",d="",u;for(let f=0;f<r.length;f++){let g=r.charCodeAt(f);if(g===Ce)l+=r.slice(f,f+2),f+=1;else if(g===_e&&r.charCodeAt(f+1)===De){let m=f;for(let v=f+2;v<r.length;v++)if(u=r.charCodeAt(v),u===Ce)v+=1;else if(u===De&&r.charCodeAt(v+1)===_e){f=v+1;break}let h=r.slice(m,f+1);h.charCodeAt(2)===Jr&&i.push(Fe(h.slice(2,-2)))}else if(g===Wr||g===Mr){let m=f;for(let h=f+1;h<r.length;h++)if(u=r.charCodeAt(h),u===Ce)h+=1;else if(u===g){f=h;break}else{if(u===Ue&&r.charCodeAt(h+1)===ce)throw new Error(`Unterminated string: ${r.slice(m,h+1)+String.fromCharCode(g)}`);if(u===ce)throw new Error(`Unterminated string: ${r.slice(m,h)+String.fromCharCode(g)}`)}l+=r.slice(m,f+1)}else{if((g===$e||g===ce||g===Ie)&&(u=r.charCodeAt(f+1))&&(u===$e||u===ce||u===Ie))continue;if(g===ce){if(l.length===0)continue;u=l.charCodeAt(l.length-1),u!==$e&&u!==ce&&u!==Ie&&(l+=" ")}else if(g===St&&r.charCodeAt(f+1)===St&&l.length===0){let m="",h=f,v=-1;for(let A=f+2;A<r.length;A++)if(u=r.charCodeAt(A),u===Ce)A+=1;else if(u===_e&&r.charCodeAt(A+1)===De){for(let b=A+2;b<r.length;b++)if(u=r.charCodeAt(b),u===Ce)b+=1;else if(u===De&&r.charCodeAt(b+1)===_e){A=b+1;break}}else if(v===-1&&u===Br)v=l.length+A-h;else if(u===Ue&&m.length===0){l+=r.slice(h,A),f=A;break}else if(u===ot)m+=")";else if(u===qr)m+="]";else if(u===Vt)m+="}";else if((u===rt||r.length-1===A)&&m.length===0){f=A-1,l+=r.slice(h,A);break}else(u===Tt||u===Gr||u===rt)&&m.length>0&&r[A]===m[m.length-1]&&(m=m.slice(0,-1));let w=nt(l,v);if(!w)throw new Error("Invalid custom property, expected a value");o?o.nodes.push(w):t.push(w),l=""}else if(g===Ue&&l.charCodeAt(0)===it)s=Ne(l),o?o.nodes.push(s):t.push(s),l="",s=null;else if(g===Ue&&d[d.length-1]!==")"){let m=nt(l);if(!m)throw l.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${l.trim()}\``);o?o.nodes.push(m):t.push(m),l=""}else if(g===Vt&&d[d.length-1]!==")")d+="}",s=W(l.trim()),o&&o.nodes.push(s),e.push(o),o=s,l="",s=null;else if(g===rt&&d[d.length-1]!==")"){if(d==="")throw new Error("Missing opening {");if(d=d.slice(0,-1),l.length>0)if(l.charCodeAt(0)===it)s=Ne(l),o?o.nodes.push(s):t.push(s),l="",s=null;else{let h=l.indexOf(":");if(o){let v=nt(l,h);if(!v)throw new Error(`Invalid declaration: \`${l.trim()}\``);o.nodes.push(v)}}let m=e.pop()??null;m===null&&o&&t.push(o),o=m,l="",s=null}else if(g===ot)d+=")",l+="(";else if(g===Tt){if(d[d.length-1]!==")")throw new Error("Missing opening (");d=d.slice(0,-1),l+=")"}else{if(l.length===0&&(g===$e||g===ce||g===Ie))continue;l+=String.fromCharCode(g)}}}if(l.charCodeAt(0)===it&&t.push(Ne(l)),d.length>0&&o){if(o.kind==="rule")throw new Error(`Missing closing } at ${o.selector}`);if(o.kind==="at-rule")throw new Error(`Missing closing } at ${o.name} ${o.params}`)}return i.length>0?i.concat(t):t}function Ne(r,t=[]){for(let i=5;i<r.length;i++){let e=r.charCodeAt(i);if(e===$e||e===ot){let o=r.slice(0,i).trim(),s=r.slice(i).trim();return U(o,s,t)}}return U(r.trim(),"",t)}function nt(r,t=r.indexOf(":")){if(t===-1)return null;let i=r.indexOf("!important",t+1);return a(r.slice(0,t).trim(),r.slice(t+1,i===-1?r.length:i).trim(),i!==-1)}function ae(r){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(r),i=t.length,e=-1,o,s="",l=t.charCodeAt(0);if(i===1&&l===45)return"\\"+t;for(;++e<i;){if(o=t.charCodeAt(e),o===0){s+="\uFFFD";continue}if(o>=1&&o<=31||o===127||e===0&&o>=48&&o<=57||e===1&&o>=48&&o<=57&&l===45){s+="\\"+o.toString(16)+" ";continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){s+=t.charAt(e);continue}s+="\\"+t.charAt(e)}return s}function pe(r){return r.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}var Rt=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function Et(r,t){return(Rt.get(t)??[]).some(i=>r===i||r.startsWith(`${i}-`))}var ze=class{constructor(t=new Map,i=new Set([])){this.values=t;this.keyframes=i}prefix=null;add(t,i,e=0){if(t.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${t}\``);t==="--*"?this.values.clear():this.clearNamespace(t.slice(0,-2),0)}if(e&4){let o=this.values.get(t);if(o&&!(o.options&4))return}i==="initial"?this.values.delete(t):this.values.set(t,{value:i,options:e})}keysInNamespaces(t){let i=[];for(let e of t){let o=`${e}-`;for(let s of this.values.keys())s.startsWith(o)&&s.indexOf("--",2)===-1&&(Et(s,e)||i.push(s.slice(o.length)))}return i}get(t){for(let i of t){let e=this.values.get(i);if(e)return e.value}return null}hasDefault(t){return(this.getOptions(t)&4)===4}getOptions(t){return t=pe(this.#r(t)),this.values.get(t)?.options??0}entries(){return this.prefix?Array.from(this.values,t=>(t[0]=this.prefixKey(t[0]),t)):thiLine truncated
|
||||
`,`
|
||||
`);let t=[],i=[],e=null,o="",s;for(let l=0;l<r.length;l++){let d=r.charCodeAt(l);switch(d){case Kt:{o+=r[l]+r[l+1],l++;break}case Ot:case Pt:case jt:case _t:case Dt:case Ut:case It:case Ft:case zt:{if(o.length>0){let m=lt(o);e?e.nodes.push(m):t.push(m),o=""}let u=l,f=l+1;for(;f<r.length&&(s=r.charCodeAt(f),!(s!==Ot&&s!==Pt&&s!==jt&&s!==_t&&s!==Dt&&s!==Ut&&s!==It&&s!==Ft&&s!==zt));f++);l=f-1;let g=Hr(r.slice(u,f));e?e.nodes.push(g):t.push(g);break}case ei:case Qr:{let u=l;for(let f=l+1;f<r.length;f++)if(s=r.charCodeAt(f),s===Kt)f+=1;else if(s===d){l=f;break}o+=r.slice(u,l+1);break}case Xr:{let u=Yr(o,[]);o="",e?e.nodes.push(u):t.push(u),i.push(u),e=u;break}case Zr:{let u=i.pop();if(o.length>0){let f=lt(o);u.nodes.push(f),o=""}i.length>0?e=i[i.length-1]:e=null;break}default:o+=String.fromCharCode(d)}}return o.length>0&&t.push(lt(o)),t}function Le(r){let t=[];return X(G(r),i=>{if(!(i.kind!=="function"||i.value!=="var"))return X(i.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||t.push(e.value)}),1}),t}var ri=64;function F(r,t=[]){return{kind:"rule",selector:r,nodes:t}}function U(r,t="",i=[]){return{kind:"at-rule",name:r,params:t,nodes:i}}function W(r,t=[]){return r.charCodeAt(0)===ri?Ne(r,t):F(r,t)}function a(r,t,i=!1){return{kind:"declaration",property:r,value:t,important:i}}function Fe(r){return{kind:"comment",value:r}}function re(r,t){return{kind:"context",context:r,nodes:t}}function D(r){return{kind:"at-root",nodes:r}}function I(r,t,i=[],e={}){for(let o=0;o<r.length;o++){let s=r[o],l=i[i.length-1]??null;if(s.kind==="context"){if(I(s.nodes,t,i,{...e,...s.context})===2)return 2;continue}i.push(s);let d=!1,u=0,f=t(s,{parent:l,context:e,path:i,replaceWith(g){d||(d=!0,Array.isArray(g)?g.length===0?(r.splice(o,1),u=0):g.length===1?(r[o]=g[0],u=1):(r.splice(o,1,...g),u=g.length):(r[o]=g,u=1))}})??0;if(i.pop(),d){f===0?o--:o+=u-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in s){i.push(s);let g=I(s.nodes,t,i,e);if(i.pop(),g===2)return 2}}}function Me(r,t,i=[],e={}){for(let o=0;o<r.length;o++){let s=r[o],l=i[i.length-1]??null;if(s.kind==="rule"||s.kind==="at-rule")i.push(s),Me(s.nodes,t,i,e),i.pop();else if(s.kind==="context"){Me(s.nodes,t,i,{...e,...s.context});continue}i.push(s),t(s,{parent:l,context:e,path:i,replaceWith(d){Array.isArray(d)?d.length===0?r.splice(o,1):d.length===1?r[o]=d[0]:r.splice(o,1,...d):r[o]=d,o+=d.length-1}}),i.pop()}}function me(r,t,i=3){let e=[],o=new Set,s=new q(()=>new Set),l=new Set,d=new Set,u=[],f=[],g=new q(()=>new Set);function m(v,w,A={},b=0){if(v.kind==="declaration"){if(v.property==="--tw-sort"||v.value===void 0||v.value===null)return;if(A.theme&&v.property[0]==="-"&&v.property[1]==="-"){if(v.value==="initial"){v.value=void 0;return}A.keyframes||s.get(w).add(v)}if(v.value.includes("var("))if(A.theme&&v.property[0]==="-"&&v.property[1]==="-")for(let k of Le(v.value))g.get(k).add(v.property);else t.trackUsedVariables(v.value);if(v.property==="animation")for(let k of Lt(v.value))d.add(k);if(i&2&&v.value.includes("color-mix(")){let k=G(v.value),T=!1;if(X(k,(S,{replaceWith:O})=>{if(S.kind!=="function"||S.value!=="color-mix")return;let P=!1,L=!1;if(X(S.nodes,(R,{replaceWith:J})=>{if(R.kind=="word"&&R.value.toLowerCase()==="currentcolor"){L=!0,T=!0;return}if(R.kind!=="function"||R.value!=="var")return;let z=R.nodes[0];if(!z||z.kind!=="word")return;T=!0;let B=t.theme.resolveValue(null,[z.value]);if(!B){P=!0;return}J({kind:"word",value:B})}),P||L){let R=S.nodes.findIndex(z=>z.kind==="separator"&&z.value.trim().includes(","));if(R===-1)return;let J=S.nodes.length>R?S.nodes[R+1]:null;if(!J)return;O(J)}else if(T){let R=S.nodes[2];R.kind==="word"&&(R.value==="oklab"||R.value==="oklch"||R.value==="lab"||R.value==="lch")&&(R.value="srgb")}}),T){let S={...v,value:H(k)},O=W("@supports (color: color-mix(in lab, red, red))",[v]);w.push(S,O);return}}w.push(v)}else if(v.kind==="rule")if(v.selector==="&")for(let k of v.nodes){let T=[];m(k,T,A,b+1),T.length>0&&w.push(...T)}else{let k={...v,nodes:[]};for(let T of v.nodes)m(T,k.nodes,A,b+1);k.nodes.length>0&&w.push(k)}else if(v.kind==="at-rule"&&v.name==="@property"&&b===0){if(o.has(v.params))return;if(i&1){let T=v.params,S=null,O=!1;for(let P of v.nodes)P.kind==="declaration"&&(P.property==="initial-value"?S=P.value:P.property==="inherits"&&(O=P.value==="true"));O?u.push(a(T,S??"initial")):f.push(a(T,S??"initial"))}o.add(v.params);let k={...v,nodes:[]};for(let T of v.nodes)m(T,k.nodes,A,b+1);w.push(k)}else if(v.kind==="at-rule"){v.name==="@keyframes"&&(A={...A,keyframes:!0});let k={...v,nodes:[]};for(let T of v.nodes)m(T,k.nodes,A,b+1);v.name==="@keyframes"&&A.theme&&l.add(k),(k.nodes.length>0||k.name==="@layer"||k.name==="@charset"||k.name==="@custom-media"||k.name==="@namespace"||k.name==="@import")&&w.push(k)}else if(v.kind==="at-root")for(let k of v.nodes){let T=[];m(k,T,A,0);for(let S of T)e.push(S)}else if(v.kind==="context"){if(v.context.reference)return;for(let k of v.nodes)m(k,w,{...A,...v.context},b)}else v.kind==="comment"&&w.
Line truncated
|
||||
`;else if(e.kind==="rule"){s+=`${l}${e.selector} {
|
||||
`;for(let d of e.nodes)s+=t(d,o+1);s+=`${l}}
|
||||
`}else if(e.kind==="at-rule"){if(e.nodes.length===0)return`${l}${e.name} ${e.params};
|
||||
`;s+=`${l}${e.name}${e.params?` ${e.params} `:" "}{
|
||||
`;for(let d of e.nodes)s+=t(d,o+1);s+=`${l}}
|
||||
`}else if(e.kind==="comment")s+=`${l}/*${e.value}*/
|
||||
`;else if(e.kind==="context"||e.kind==="at-root")return"";return s}let i="";for(let e of r){let o=t(e);o!==""&&(i+=o)}return i}function ii(r,t){let i=[];return I(r,(e,{path:o})=>{if(t(e))return i=[...o],2}),i}function Mt(r,t,i,e=new Set){if(e.has(r)||(e.add(r),t.getOptions(r)&24))return!0;{let s=i.get(r)??[];for(let l of s)if(Mt(l,t,i,e))return!0}return!1}function Lt(r){return r.split(/[\s,]+/)}function le(r){if(r.indexOf("(")===-1)return ye(r);let t=G(r);return ut(t),r=H(t),r=At(r),r}function ye(r,t=!1){let i="";for(let e=0;e<r.length;e++){let o=r[e];o==="\\"&&r[e+1]==="_"?(i+="_",e+=1):o==="_"&&!t?i+=" ":i+=o}return i}function ut(r){for(let t of r)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=ye(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=ye(t.value);for(let i=0;i<t.nodes.length;i++){if(i==0&&t.nodes[i].kind==="word"){t.nodes[i].value=ye(t.nodes[i].value,!0);continue}ut([t.nodes[i]])}break}t.value=ye(t.value),ut(t.nodes);break}case"separator":case"word":{t.value=ye(t.value);break}default:ni(t)}}function ni(r){throw new Error(`Unexpected value: ${r}`)}var ft=new Uint8Array(256);function se(r){let t=0,i=r.length;for(let e=0;e<i;e++){let o=r.charCodeAt(e);switch(o){case 92:e+=1;break;case 39:case 34:for(;++e<i;){let s=r.charCodeAt(e);if(s===92){e+=1;continue}if(s===o)break}break;case 40:ft[t]=41,t++;break;case 91:ft[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&o===ft[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var oi=58,Wt=45,Bt=97,qt=122;function*Gt(r,t){let i=_(r,":");if(t.theme.prefix){if(i.length===1||i[0]!==t.theme.prefix)return null;i.shift()}let e=i.pop(),o=[];for(let m=i.length-1;m>=0;--m){let h=t.parseVariant(i[m]);if(h===null)return;o.push(h)}let s=!1;e[e.length-1]==="!"?(s=!0,e=e.slice(0,-1)):e[0]==="!"&&(s=!0,e=e.slice(1)),t.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:o,important:s,raw:r});let[l,d=null,u]=_(e,"/");if(u)return;let f=d===null?null:ct(d);if(d!==null&&f===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let m=l.charCodeAt(1);if(m!==Wt&&!(m>=Bt&&m<=qt))return;l=l.slice(1,-1);let h=l.indexOf(":");if(h===-1||h===0||h===l.length-1)return;let v=l.slice(0,h),w=le(l.slice(h+1));if(!se(w))return;yield{kind:"arbitrary",property:v,value:w,modifier:f,variants:o,important:s,raw:r};return}let g;if(l[l.length-1]==="]"){let m=l.indexOf("-[");if(m===-1)return;let h=l.slice(0,m);if(!t.utilities.has(h,"functional"))return;let v=l.slice(m+1);g=[[h,v]]}else if(l[l.length-1]===")"){let m=l.indexOf("-(");if(m===-1)return;let h=l.slice(0,m);if(!t.utilities.has(h,"functional"))return;let v=l.slice(m+2,-1),w=_(v,":"),A=null;if(w.length===2&&(A=w[0],v=w[1]),v[0]!=="-"&&v[1]!=="-")return;g=[[h,A===null?`[var(${v})]`:`[${A}:var(${v})]`]]}else g=Yt(l,m=>t.utilities.has(m,"functional"));for(let[m,h]of g){let v={kind:"functional",root:m,modifier:f,value:null,variants:o,important:s,raw:r};if(h===null){yield v;continue}{let w=h.indexOf("[");if(w!==-1){if(h[h.length-1]!=="]")return;let b=le(h.slice(w+1,-1));if(!se(b))continue;let k="";for(let T=0;T<b.length;T++){let S=b.charCodeAt(T);if(S===oi){k=b.slice(0,T),b=b.slice(T+1);break}if(!(S===Wt||S>=Bt&&S<=qt))break}if(b.length===0||b.trim().length===0)continue;v.value={kind:"arbitrary",dataType:k||null,value:b}}else{let b=d===null||v.modifier?.kind==="arbitrary"?null:`${h}/${d}`;v.value={kind:"named",value:h,fraction:b}}}yield v}}function ct(r){if(r[0]==="["&&r[r.length-1]==="]"){let t=le(r.slice(1,-1));return!se(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(r[0]==="("&&r[r.length-1]===")"){let t=le(r.slice(1,-1));return!se(t)||t.length===0||t.trim().length===0||t[0]!=="-"&&t[1]!=="-"?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:r}}function Jt(r,t){if(r[0]==="["&&r[r.length-1]==="]"){if(r[1]==="@"&&r.includes("&"))return null;let i=le(r.slice(1,-1));if(!se(i)||i.length===0||i.trim().length===0)return null;let e=i[0]===">"||i[0]==="+"||i[0]==="~";return!e&&i[0]!=="@"&&!i.includes("&")&&(i=`&:is(${i})`),{kind:"arbitrary",selector:i,relative:e}}{let[i,e=null,o]=_(r,"/");if(o)return null;let s=Yt(i,l=>t.variants.has(l));for(let[l,d]of s)switch(t.variants.kind(l)){case"static":return d!==null||e!==null?null:{kind:"static",root:l};case"functional":{let u=e===null?null:ct(e);if(e!==null&&u===null)return null;if(d===null)return{kind:"functional",root:l,modifier:u,value:null};if(d[d.length-1]==="]"){if(d[0]!=="[")continue;let f=le(d.slice(1,-1));return!se(f)||f.length===0||f.trim().length===0?null:{kind:"functional",root:l,modifier:u,value:{kind:"arbitrary",value:f}}}if(d[d.length-1]===")"){if(d[0]!=="(")continue;let f=le(d.slice(1,-1));return!se(f)||f.length===0||f.trim().length===0||f[0]!=="-"&&f[1]!=="-"?null:{kind:"functional",root:l,modifier:u,value:{kind:"arbitrary",value:`var(${f})`}}}return{kind:"functional",root:l,modi
Line truncated
|
||||
Only valid data types are: ${pt.map(A=>`"${A}"`).join(", ")}.
|
||||
`);let f=u.value,g=structuredClone(l),m="\xB6";X(g.nodes,(A,{replaceWith:b})=>{A.kind==="word"&&A.value===f&&b({kind:"word",value:m})});let h="^".repeat(H([u]).length),v=H([g]).indexOf(m),w=["```css",H([l])," ".repeat(v)+h,"```"].join(`
|
||||
`);console.warn(w)}}),o.value=H(s)}),i.utilities.functional(t.slice(0,-2),o=>{let s=structuredClone(r),l=o.value,d=o.modifier;if(l===null)return;let u=!1,f=!1,g=!1,m=!1,h=new Map,v=!1;if(I([s],(w,{parent:A,replaceWith:b})=>{if(A?.kind!=="rule"&&A?.kind!=="at-rule"||w.kind!=="declaration"||!w.value)return;let k=G(w.value);(X(k,(S,{replaceWith:O})=>{if(S.kind==="function"){if(S.value==="--value"){u=!0;let P=Zt(l,S,i);return P?(f=!0,P.ratio?v=!0:h.set(w,A),O(P.nodes),1):(u||=!1,b([]),2)}else if(S.value==="--modifier"){if(d===null)return b([]),2;g=!0;let P=Zt(d,S,i);return P?(m=!0,O(P.nodes),1):(g||=!1,b([]),2)}}})??0)===0&&(w.value=H(k))}),u&&!f||g&&!m||v&&m||d&&!v&&!m)return null;if(v)for(let[w,A]of h){let b=A.nodes.indexOf(w);b!==-1&&A.nodes.splice(b,1)}return s.nodes}),i.utilities.suggest(t.slice(0,-2),()=>{let o=[],s=[];for(let[l,{literals:d,usedSpacingNumber:u,usedSpacingInteger:f,themeKeys:g}]of[[o,e["--value"]],[s,e["--modifier"]]]){for(let m of d)l.push(m);if(u)l.push(...qe);else if(f)for(let m of qe)E(m)&&l.push(m);for(let m of i.theme.keysInNamespaces(g))l.push(m)}return[{values:o,modifiers:s}]})}:li.test(t)?i=>{i.utilities.static(t,()=>structuredClone(r.nodes))}:null}function Zt(r,t,i){for(let e of t.nodes){if(r.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)===r.value)return{nodes:G(r.value)};if(r.kind==="named"&&e.kind==="word"&&e.value[0]==="-"&&e.value[1]==="-"){let o=e.value;if(o.endsWith("-*")){o=o.slice(0,-2);let s=i.theme.resolve(r.value,[o]);if(s)return{nodes:G(s)}}else{let s=o.split("-*");if(s.length<=1)continue;let l=[s.shift()],d=i.theme.resolveWith(r.value,l,s);if(d){let[,u={}]=d;{let f=u[s.pop()];if(f)return{nodes:G(f)}}}}}else if(r.kind==="named"&&e.kind==="word"){if(!pt.includes(e.value))continue;let o=e.value==="ratio"&&"fraction"in r?r.fraction:r.value;if(!o)continue;let s=M(o,[e.value]);if(s===null)continue;if(s==="ratio"){let[l,d]=_(o,"/");if(!E(l)||!E(d))continue}else{if(s==="number"&&!fe(o))continue;if(s==="percentage"&&!E(o.slice(0,-1)))continue}return{nodes:G(o),ratio:s==="ratio"}}else if(r.kind==="arbitrary"&&e.kind==="word"&&e.value[0]==="["&&e.value[e.value.length-1]==="]"){let o=e.value.slice(1,-1);if(o==="*")return{nodes:G(r.value)};if("dataType"in r&&r.dataType&&r.dataType!==o)continue;if("dataType"in r&&r.dataType)return{nodes:G(r.value)};if(M(r.value,[o])!==null)return{nodes:G(r.value)}}}}function ne(r,t,i,e,o=""){let s=!1,l=Ve(t,u=>i==null?e(u):u.startsWith("current")?e(Y(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(Qt(u,i))));function d(u){return o?_(u,",").map(f=>o+f).join(","):u}return s?[a(r,d(Ve(t,e))),W("@supports (color: lab(from red l a b))",[a(r,d(l))])]:[a(r,d(l))]}function Be(r,t,i,e,o=""){let s=!1,l=_(t,",").map(d=>Ve(d,u=>i==null?e(u):u.startsWith("current")?e(Y(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(Qt(u,i))))).map(d=>`drop-shadow(${d})`).join(" ");return s?[a(r,o+_(t,",").map(d=>`drop-shadow(${Ve(d,e)})`).join(" ")),W("@supports (color: lab(from red l a b))",[a(r,o+l)])]:[a(r,o+l)]}var mt={"--alpha":ui,"--spacing":fi,"--theme":ci,theme:di};function ui(r,t,i,...e){let[o,s]=_(i,"/").map(l=>l.trim());if(!o||!s)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${o||"var(--my-color)"} / ${s||"50%"})\``);if(e.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${o||"var(--my-color)"} / ${s||"50%"})\``);return Y(o,s)}function fi(r,t,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 o=r.theme.resolve(null,["--spacing"]);if(!o)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${o} * ${i})`}function ci(r,t,i,...e){if(!i.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let o=!1;i.endsWith(" inline")&&(o=!0,i=i.slice(0,-7)),t.kind==="at-rule"&&(o=!0);let s=r.resolveThemeValue(i,o);if(!s){if(e.length>0)return e.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${i})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(e.length===0)return s;let l=e.join(", ");if(l==="initial")return s;if(s==="initial")return l;if(s.startsWith("var(")||s.startsWith("theme(")||s.startsWith("--theme(")){let d=G(s);return mi(d,l),H(d)}return s}function di(r,t,i,...e){i=pi(i);let o=r.resolveThemeValue(i);if(!o&&e.length>0)return e.join(", ");if(!o)throw new Error(`Could not resolve value for theme function: \`theme(${i})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return o}var tr=new RegExp(Object.keys(mLine truncated
|
||||
|
||||
${ee([m])}
|
||||
Relies on:
|
||||
|
||||
${ee([v])}`)}f.add(m);for(let v of s.get(m))for(let w of l.get(v))h.push(m),g(w,h),h.pop();d.add(m),f.delete(m),u.push(m)}}for(let m of o)g(m);for(let m of u)if("nodes"in m)for(let h=0;h<m.nodes.length;h++){let v=m.nodes[h];if(v.kind!=="at-rule"||v.name!=="@apply")continue;let w=v.params.split(/\s+/g);{let A=ue(w,t,{onInvalidCandidate:k=>{throw new Error(`Cannot apply unknown utility class: ${k}`)}}).astNodes,b=[];for(let k of A)if(k.kind==="rule")for(let T of k.nodes)b.push(T);else b.push(k);m.nodes.splice(h,1,...b)}}return i}function*dr(r,t){for(let i of r.params.split(/\s+/g))for(let e of t.parseCandidate(i))switch(e.kind){case"arbitrary":break;case"static":case"functional":yield e.root;break;default:}}async function wt(r,t,i,e=0){let o=0,s=[];return I(r,(l,{replaceWith:d})=>{if(l.kind==="at-rule"&&(l.name==="@import"||l.name==="@reference")){let u=yi(G(l.params));if(u===null)return;l.name==="@reference"&&(u.media="reference"),o|=2;let{uri:f,layer:g,media:m,supports:h}=u;if(f.startsWith("data:")||f.startsWith("http://")||f.startsWith("https://"))return;let v=re({},[]);return s.push((async()=>{if(e>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${f}\` in \`${t}\`)`);let w=await i(f,t),A=de(w.content);await wt(A,w.base,i,e+1),v.nodes=ki([re({base:w.base},A)],g,m,h)})()),d(v),1}}),s.length>0&&await Promise.all(s),o}function yi(r){let t,i=null,e=null,o=null;for(let s=0;s<r.length;s++){let l=r[s];if(l.kind!=="separator"){if(l.kind==="word"&&!t){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;t=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!t)return null;if((l.kind==="word"||l.kind==="function")&&l.value.toLowerCase()==="layer"){if(i)return null;if(o)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in l?i=H(l.nodes):i="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(o)return null;o=H(l.nodes);continue}e=H(r.slice(s));break}}return t?{uri:t,layer:i,media:e,supports:o}:null}function ki(r,t,i,e){let o=r;return t!==null&&(o=[U("@layer",t,o)]),i!==null&&(o=[U("@media",i,o)]),e!==null&&(o=[U("@supports",e[0]==="("?e:`(${e})`,o)]),o}function xe(r,t=null){return Array.isArray(r)&&r.length===2&&typeof r[1]=="object"&&typeof r[1]!==null?t?r[1][t]??null:r[0]:Array.isArray(r)&&t===null?r.join(", "):typeof r=="string"&&t===null?r:null}function pr(r,{theme:t},i){for(let e of i){let o=Ye([e]);o&&r.theme.clearNamespace(`--${o}`,4)}for(let[e,o]of bi(t)){if(typeof o!="string"&&typeof o!="number")continue;if(typeof o=="string"&&(o=o.replace(/<alpha-value>/g,"1")),e[0]==="opacity"&&(typeof o=="number"||typeof o=="string")){let l=typeof o=="string"?parseFloat(o):o;l>=0&&l<=1&&(o=l*100+"%")}let s=Ye(e);s&&r.theme.add(`--${s}`,""+o,7)}if(Object.hasOwn(t,"fontFamily")){let e=5;{let o=xe(t.fontFamily.sans);o&&r.theme.hasDefault("--font-sans")&&(r.theme.add("--default-font-family",o,e),r.theme.add("--default-font-feature-settings",xe(t.fontFamily.sans,"fontFeatureSettings")??"normal",e),r.theme.add("--default-font-variation-settings",xe(t.fontFamily.sans,"fontVariationSettings")??"normal",e))}{let o=xe(t.fontFamily.mono);o&&r.theme.hasDefault("--font-mono")&&(r.theme.add("--default-mono-font-family",o,e),r.theme.add("--default-mono-font-feature-settings",xe(t.fontFamily.mono,"fontFeatureSettings")??"normal",e),r.theme.add("--default-mono-font-variation-settings",xe(t.fontFamily.mono,"fontVariationSettings")??"normal",e))}}return t}function bi(r){let t=[];return mr(r,[],(i,e)=>{if(Ai(i))return t.push([e,i]),1;if(Ci(i)){t.push([e,i[0]]);for(let o of Reflect.ownKeys(i[1]))t.push([[...e,`-${o}`],i[1][o]]);return 1}if(Array.isArray(i)&&i.every(o=>typeof o=="string"))return t.push([e,i.join(", ")]),1}),t}var xi=/^[a-zA-Z0-9-_%/\.]+$/;function Ye(r){if(r[0]==="container")return null;r=structuredClone(r),r[0]==="animation"&&(r[0]="animate"),r[0]==="aspectRatio"&&(r[0]="aspect"),r[0]==="borderRadius"&&(r[0]="radius"),r[0]==="boxShadow"&&(r[0]="shadow"),r[0]==="colors"&&(r[0]="color"),r[0]==="containers"&&(r[0]="container"),r[0]==="fontFamily"&&(r[0]="font"),r[0]==="fontSize"&&(r[0]="text"),r[0]==="letterSpacing"&&(r[0]="tracking"),r[0]==="lineHeight"&&(r[0]="leading"),r[0]==="maxWidth"&&(r[0]="container"),r[0]==="screens"&&(r[0]="breakpoint"),r[0]==="transitionTimingFunction"&&(r[0]="ease");for(let t of r)if(!xi.test(t))return null;return r.map((t,i,e)=>t==="1"&&i!==e.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(i,e,o)=>`${e}-${o.toLowerCase()}`)).filter((t,i)=>t!=="DEFAULT"||i!==r.length-1).join("-")}function Ai(r){return typeof r=="number"||typeof r=="string"}function Ci(r){if(!Array.isArray(r)||r.length!==2||typeof r[0]!="string"&&typeof r[0]!="number"||r[1]===void 0||r[1]===null||typeof r[1]!="object")return!1;for(let t of Reflect.ownKeys(r[1]))if(typeof t!="string"||typeof r[1][t]!="string"&&typeof r[1][t]!="number")return!1;return!0}function mr(r,t=[],Line truncated
|
||||
`,`
|
||||
`);let t=[],i=[],e=null,o="",s;for(let l=0;l<r.length;l++){let d=r.charCodeAt(l);switch(d){case yr:case kr:case br:case $r:case Cr:case Nr:case Vr:{if(o.length>0){let h=Ke(o);e?e.nodes.push(h):t.push(h),o=""}let u=l,f=l+1;for(;f<r.length&&(s=r.charCodeAt(f),!(s!==yr&&s!==kr&&s!==br&&s!==$r&&s!==Cr&&s!==Nr&&s!==Vr));f++);l=f-1;let g=r.slice(u,f),m=g.trim()===","?Ti(g):Ni(g);e?e.nodes.push(m):t.push(m);break}case Ar:{let u=Vi(o,[]);if(o="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let f=l+1,g=0;for(let h=l+1;h<r.length;h++){if(s=r.charCodeAt(h),s===Ar){g++;continue}if(s===wr){if(g===0){l=h;break}g--}}let m=l;u.nodes.push(Si(r.slice(f,m))),o="",l=m,e?e.nodes.push(u):t.push(u);break}e?e.nodes.push(u):t.push(u),i.push(u),e=u;break}case wr:{let u=i.pop();if(o.length>0){let f=Ke(o);u.nodes.push(f),o=""}i.length>0?e=i[i.length-1]:e=null;break}case Oi:case Ri:case Pi:{if(o.length>0){let u=Ke(o);e?e.nodes.push(u):t.push(u)}o=String.fromCharCode(d);break}case xr:{if(o.length>0){let g=Ke(o);e?e.nodes.push(g):t.push(g)}o="";let u=l,f=0;for(let g=l+1;g<r.length;g++){if(s=r.charCodeAt(g),s===xr){f++;continue}if(s===Ei){if(f===0){l=g;break}f--}}o+=r.slice(u,l+1);break}case ji:case Ki:{let u=l;for(let f=l+1;f<r.length;f++)if(s=r.charCodeAt(f),s===vr)f+=1;else if(s===d){l=f;break}o+=r.slice(u,l+1);break}case vr:{let u=r.charCodeAt(l+1);o+=String.fromCharCode(d)+String.fromCharCode(u),l+=1;break}default:o+=String.fromCharCode(d)}}return o.length>0&&t.push(Ke(o)),t}var Tr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function yt({designSystem:r,ast:t,resolvedConfig:i,featuresRef:e,referenceMode:o}){let s={addBase(l){if(o)return;let d=ie(l);e.current|=ke(d,r),t.push(U("@layer","base",d))},addVariant(l,d){if(!Je.test(l))throw new Error(`\`addVariant('${l}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);typeof d=="string"||Array.isArray(d)?r.variants.static(l,u=>{u.nodes=Sr(d,u.nodes)},{compounds:he(typeof d=="string"?[d]:d)}):typeof d=="object"&&r.variants.fromAst(l,ie(d))},matchVariant(l,d,u){function f(m,h,v){let w=d(m,{modifier:h?.value??null});return Sr(w,v)}let g=Object.keys(u?.values??{});r.variants.group(()=>{r.variants.functional(l,(m,h)=>{if(!h.value){if(u?.values&&"DEFAULT"in u.values){m.nodes=f(u.values.DEFAULT,h.modifier,m.nodes);return}return null}if(h.value.kind==="arbitrary")m.nodes=f(h.value.value,h.modifier,m.nodes);else if(h.value.kind==="named"&&u?.values){let v=u.values[h.value.value];if(typeof v!="string")return;m.nodes=f(v,h.modifier,m.nodes)}})},(m,h)=>{if(m.kind!=="functional"||h.kind!=="functional")return 0;let v=m.value?m.value.value:"DEFAULT",w=h.value?h.value.value:"DEFAULT",A=u?.values?.[v]??v,b=u?.values?.[w]??w;if(u&&typeof u.sort=="function")return u.sort({value:A,modifier:m.modifier?.value??null},{value:b,modifier:h.modifier?.value??null});let k=g.indexOf(v),T=g.indexOf(w);return k=k===-1?g.length:k,T=T===-1?g.length:T,k!==T?k-T:A<b?-1:1})},addUtilities(l){l=Array.isArray(l)?l:[l];let d=l.flatMap(f=>Object.entries(f));d=d.flatMap(([f,g])=>_(f,",").map(m=>[m.trim(),g]));let u=new q(()=>[]);for(let[f,g]of d){if(f.startsWith("@keyframes ")){o||t.push(W(f,ie(g)));continue}let m=Qe(f),h=!1;if(Oe(m,v=>{if(v.kind==="selector"&&v.value[0]==="."&&Tr.test(v.value.slice(1))){let w=v.value;v.value="&";let A=Pe(m),b=w.slice(1),k=A==="&"?ie(g):[W(A,ie(g))];u.get(b).push(...k),h=!0,v.value=w;return}if(v.kind==="function"&&v.value===":not")return 1}),!h)throw new Error(`\`addUtilities({ '${f}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[f,g]of u)r.theme.prefix&&I(g,m=>{if(m.kind==="rule"){let h=Qe(m.selector);Oe(h,v=>{v.kind==="selector"&&v.value[0]==="."&&(v.value=`.${r.theme.prefix}\\:${v.value.slice(1)}`)}),m.selector=Pe(h)}}),r.utilities.static(f,m=>{let h=structuredClone(g);return Er(h,f,m.raw),e.current|=Ee(h,r),h})},matchUtilities(l,d){let u=d?.type?Array.isArray(d?.type)?d.type:[d.type]:["any"];for(let[g,m]of Object.entries(l)){let h=function({negative:v}){return w=>{if(w.value?.kind==="arbitrary"&&u.length>0&&!u.includes("any")&&(w.value.dataType&&!u.includes(w.value.dataType)||!w.value.dataType&&!M(w.value.value,u)))return;let A=u.includes("color"),b=null,k=!1;{let O=d?.values??{};A&&(O=Object.assign({inherit:"inherit",transparent:"transparent",current:"currentcolor"},O)),w.value?w.value.kind==="arbitrary"?b=w.value.value:w.value.fraction&&O[w.value.fraction]?(b=O[w.value.fraction],k=!0):O[w.value.value]?b=O[w.value.value]:O.__BARE_VALUE__&&(b=O.__BARE_VALUE__(w.value)??null,k=(w.value.fraction!==null&&b?.includes("/"))??!1):b=O.DEFAULT??null}if(b===null)return;let T;{let O=d?.modifiers??null;w.modifier?O==="any"||w.modifier.kind==="arbitrary"?T=w.modifier.value:O?.[w.modifier.value]?T=O[w.modifier.value]:A&&!Number.isNaN(Number(w.modifier.value))?T=`${w.modifier.value}%`:T=null:T=null}if(w.modifier&&T===null&Line truncated
|
||||
|
||||
${ee([k])}
|
||||
|
||||
\`@plugin\` options must be a flat list of declarations.`);if(k.value===void 0)continue;let T=k.value,S=_(T,",").map(O=>{if(O=O.trim(),O==="null")return null;if(O==="true")return!0;if(O==="false")return!1;if(Number.isNaN(Number(O))){if(O[0]==='"'&&O[O.length-1]==='"'||O[0]==="'"&&O[O.length-1]==="'")return O.slice(1,-1);if(O[0]==="{"&&O[O.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${ee([k]).trim()}\` is not supported.
|
||||
|
||||
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(O);return O});b[k.property]=S.length===1?S[0]:S}l.push([{id:A,base:w.base,reference:!!w.reference},Object.keys(b).length>0?b:null]),v([]),s|=4;return}if(m.name==="@config"){if(m.nodes.length>0)throw new Error("`@config` cannot have a body.");if(h!==null)throw new Error("`@config` cannot be nested.");d.push({id:m.params.slice(1,-1),base:w.base,reference:!!w.reference}),v([]),s|=4;return}}}),jr(r);let u=r.resolveThemeValue;if(r.resolveThemeValue=function(h,v){return h.startsWith("--")?u(h,v):(s|=Ur({designSystem:r,base:t,ast:i,sources:o,configs:[],pluginDetails:[]}),r.resolveThemeValue(h,v))},!l.length&&!d.length)return 0;let[f,g]=await Promise.all([Promise.all(d.map(async({id:m,base:h,reference:v})=>{let w=await e(m,h,"config");return{path:m,base:w.base,config:w.module,reference:v}})),Promise.all(l.map(async([{id:m,base:h,reference:v},w])=>{let A=await e(m,h,"plugin");return{path:m,base:A.base,plugin:A.module,options:w,reference:v}}))]);return s|=Ur({designSystem:r,base:t,ast:i,sources:o,configs:f,pluginDetails:g}),s}function Ur({designSystem:r,base:t,ast:i,sources:e,configs:o,pluginDetails:s}){let l=0,u=[...s.map(b=>{if(!b.options)return{config:{plugins:[b.plugin]},base:b.base,reference:b.reference};if("__isOptionsFunction"in b.plugin)return{config:{plugins:[b.plugin(b.options)]},base:b.base,reference:b.reference};throw new Error(`The plugin "${b.path}" does not accept options`)}),...o],{resolvedConfig:f}=bt(r,[{config:Kr(r.theme),base:t,reference:!0},...u,{config:{plugins:[Pr]},base:t,reference:!0}]),{resolvedConfig:g,replacedThemeKeys:m}=bt(r,u),h=r.resolveThemeValue;r.resolveThemeValue=function(k,T){if(k[0]==="-"&&k[1]==="-")return h(k,T);let S=w.theme(k,void 0);if(Array.isArray(S)&&S.length===2)return S[0];if(Array.isArray(S))return S.join(", ");if(typeof S=="string")return S};let v={designSystem:r,ast:i,resolvedConfig:f,featuresRef:{set current(b){l|=b}}},w=yt({...v,referenceMode:!1}),A;for(let{handler:b,reference:k}of f.plugins)k?(A||=yt({...v,referenceMode:!0}),b(A)):b(w);if(pr(r,g,m),Rr(r,g,m),Dr(g,r),_r(g,r),Or(g,r),!r.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.`)),!Mi.test(f.prefix))throw new Error(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);r.theme.prefix=f.prefix}if(!r.important&&f.important===!0&&(r.important=!0),typeof f.important=="string"){let b=f.important;I(i,(k,{replaceWith:T,parent:S})=>{if(k.kind==="at-rule"&&!(k.name!=="@tailwind"||k.params!=="utilities"))return S?.kind==="rule"&&S.selector===b?2:(T(F(b,[k])),2)})}for(let b of f.blocklist)r.invalidCandidates.add(b);for(let b of f.content.files){if("raw"in b)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
|
||||
|
||||
${JSON.stringify(b,null,2)}
|
||||
|
||||
This feature is not currently supported.`);let k=!1;b.pattern[0]=="!"&&(k=!0,b.pattern=b.pattern.slice(1)),e.push({...b,negated:k})}return l}var Fr=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Xe(r){let t=r.indexOf("{");if(t===-1)return[r];let i=[],e=r.slice(0,t),o=r.slice(t),s=0,l=o.lastIndexOf("}");for(let m=0;m<o.length;m++){let h=o[m];if(h==="{")s++;else if(h==="}"&&(s--,s===0)){l=m;break}}if(l===-1)throw new Error(`The pattern \`${r}\` is not balanced.`);let d=o.slice(1,l),u=o.slice(l+1),f;Wi(d)?f=Bi(d):f=_(d,","),f=f.flatMap(m=>Xe(m));let g=Xe(u);for(let m of g)for(let h of f)i.push(e+h+m);return i}function Wi(r){return Fr.test(r)}function Bi(r){let t=r.match(Fr);if(!t)return[r];let[,i,e,o]=t,s=o?parseInt(o,10):void 0,l=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(e)){let d=parseInt(i,10),u=parseInt(e,10);if(s===void 0&&(s=d<=u?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");if(s>0)for(let f=d;f<=u;f+=s){let g=f.toString();l.push(g)}else for(let f=d;f>=u;f+=s){let g=f.toString();l.push(g)}}return l}var qi=/^[a-z]+$/,st=(o=>(o[o.None=0]="None",o[o.AtProperty=1]="AtProperty",o[o.ColorMix=2]="ColorMix",o[o.All=3]="All",o))(st||{});function Gi(){throw new Error("No `loadModule` function provided to `compile`")}function Ji(){throw new Error("No `loadStylesheet` function provided to `compile`")}function Yi(r){let t=0,i=null;for(let e of _(r," "))e==="reference"?t|=2:e==="inline"?t|=1:e==="default"?t|=4:e==="static"?t|=8:e.startsWith("prefix(")&&e.endsWith(")")&&(i=e.slice(7,-1));return[t,i]}var Te=(d=>(d[d.None=0]="None",d[d.AtApply=1]="AtApply",d[d.AtImport=2]="AtImport",d[d.JsPluginCompat=4]="JsPluginCompat",d[d.ThemeFunction=8]="ThemeFunction",d[d.Utilities=16]="Utilities",d[d.Variants=32]="Variants",d))(Te||{});async function zr(r,{base:t="",loadModule:i=Gi,loadStylesheet:e=Ji}={}){let o=0;r=[re({base:t},r)],o|=await wt(r,t,e);let s=null,l=new ze,d=[],u=[],f=null,g=null,m=[],h=[],v=[],w=[],A=null;I(r,(k,{parent:T,replaceWith:S,context:O})=>{if(k.kind==="at-rule"){if(k.name==="@tailwind"&&(k.params==="utilities"||k.params.startsWith("utilities"))){if(g!==null){S([]);return}let P=_(k.params," ");for(let L of P)if(L.startsWith("source(")){let R=L.slice(7,-1);if(R==="none"){A=R;continue}if(R[0]==='"'&&R[R.length-1]!=='"'||R[0]==="'"&&R[R.length-1]!=="'"||R[0]!=="'"&&R[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");A={base:O.sourceBase??O.base,pattern:R.slice(1,-1)}}g=k,o|=16}if(k.name==="@utility"){if(T!==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 P=er(k);if(P===null)throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`);u.push(P)}if(k.name==="@source"){if(k.nodes.length>0)throw new Error("`@source` cannot have a body.");if(T!==null)throw new Error("`@source` cannot be nested.");let P=!1,L=!1,R=k.params;if(R[0]==="n"&&R.startsWith("not ")&&(P=!0,R=R.slice(4)),R[0]==="i"&&R.startsWith("inline(")&&(L=!0,R=R.slice(7,-1)),R[0]==='"'&&R[R.length-1]!=='"'||R[0]==="'"&&R[R.length-1]!=="'"||R[0]!=="'"&&R[0]!=='"')throw new Error("`@source` paths must be quoted.");let J=R.slice(1,-1);if(L){let z=P?w:v,B=_(J," ");for(let oe of B)for(let ve of Xe(oe))z.push(ve)}else h.push({base:O.base,pattern:J,negated:P});S([]);return}if(k.name==="@variant"&&(T===null?k.nodes.length===0?k.name="@custom-variant":(I(k.nodes,P=>{if(P.kind==="at-rule"&&P.name==="@slot")return k.name="@custom-variant",2}),k.name==="@variant"&&m.push(k)):m.push(k)),k.name==="@custom-variant"){if(T!==null)throw new Error("`@custom-variant` cannot be nested.");S([]);let[P,L]=_(k.params," ");if(!Je.test(P))throw new Error(`\`@custom-variant ${P}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);if(k.nodes.length>0&&L)throw new Error(`\`@custom-variant ${P}\` cannot have both a selector and a body.`);if(k.nodes.length===0){if(!L)throw new Error(`\`@custom-variant ${P}\` has no selector or body.`);let R=_(L.slice(1,-1),",");if(R.length===0||R.some(B=>B.trim()===""))throw new Error(`\`@custom-variant ${P} (${R.join(",")})\` selector is invalid.`);let J=[],z=[];for(let B of R)B=B.trim(),B[0]==="@"?J.push(B):z.push(B);d.push(B=>{B.variants.static(P,oe=>{let ve=[];z.length>0&&ve.push(F(z.join(", "),oe.nodes));for(let xt of J)ve.push(W(xt,oe.nodes));oe.nodes=ve},{compounds:he([...z,...J])})});return}else{d.push(R=>{R.variants.fromAst(P,k.nodes)});return}}if(k.name==="@media"){let P=_(k.params," "),L=[];for(let R of P)if(R.startsWith("source(")){let J=R.slice(7,-1);I(k.nodes,(z,{replaceWith:B})=>{if(z.kind==="at-rule"&&z.name==="@tailwind"&&z.params==="utilities")return z.params+=` source(${J})`,B([re({sourceBase:O.base},[z])]),2})}else if(R.startsWith("theme(")){let J=R.slice(6,-1),z=J.includes("reference");I(k.nodes,B=>{if(B.kind!=="aLine truncated
|
||||
`).map((z,B,oe)=>`${B===0||B>=oe.length-2?" ":">"} ${z}`).join(`
|
||||
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
||||
|
||||
${J}`)}),f?S([]):(f=F(":root, :host",[]),S([f])),1}}});let b=sr(l);if(s&&(b.important=s),w.length>0)for(let k of w)b.invalidCandidates.add(k);o|=await Ir({designSystem:b,base:t,ast:r,loadModule:i,sources:h});for(let k of d)k(b);for(let k of u)k(b);if(f){let k=[];for(let[S,O]of b.theme.entries())O.options&2||k.push(a(ae(S),O.value));let T=b.theme.getKeyframes();for(let S of T)r.push(re({theme:!0},[D([S])]));f.nodes=[re({theme:!0},k)]}if(g){let k=g;k.kind="context",k.context={}}if(m.length>0){for(let k of m){let T=F("&",k.nodes),S=k.params,O=b.parseVariant(S);if(O===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${S}`);if(be(T,O,b.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${S}`);Object.assign(k,T)}o|=32}return o|=ke(r,b),o|=Ee(r,b),I(r,(k,{replaceWith:T})=>{if(k.kind==="at-rule")return k.name==="@utility"&&T([]),1}),{designSystem:b,ast:r,sources:h,root:A,utilitiesNode:g,features:o,inlineCandidates:v}}async function Hi(r,t={}){let{designSystem:i,ast:e,sources:o,root:s,utilitiesNode:l,features:d,inlineCandidates:u}=await zr(r,t);e.unshift(Fe(`! tailwindcss v${Nt} | MIT License | https://tailwindcss.com `));function f(w){i.invalidCandidates.add(w)}let g=new Set,m=null,h=0,v=!1;for(let w of u)i.invalidCandidates.has(w)||(g.add(w),v=!0);return{sources:o,root:s,features:d,build(w){if(d===0)return r;if(!l)return m??=me(e,i,t.polyfills),m;let A=v,b=!1;v=!1;let k=g.size;for(let S of w)if(!i.invalidCandidates.has(S))if(S[0]==="-"&&S[1]==="-"){let O=i.theme.markUsedVariable(S);A||=O,b||=O}else g.add(S),A||=g.size!==k;if(!A)return m??=me(e,i,t.polyfills),m;let T=ue(g,i,{onInvalidCandidate:f}).astNodes;return!b&&h===T.length?(m??=me(e,i,t.polyfills),m):(h=T.length,l.nodes=T,m=me(e,i,t.polyfills),m)}}}async function Xa(r,t={}){let i=de(r),e=await Hi(i,t),o=i,s=r;return{...e,build(l){let d=e.build(l);return d===o||(s=ee(d),o=d),s}}}async function el(r,t={}){return(await zr(de(r),t)).designSystem}function Zi(){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{st as a,Te as b,Hi as c,Xa as d,el as e,Zi as f};
|
||||
+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)"},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:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a as S}from"./chunk-HTB5LLOP.mjs";var O=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"]),R=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;function v(e){return e.charCodeAt(0)===35||R.test(e)||O.has(e.toLowerCase())}var E=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],h=["anchor-size"],A=new RegExp(`(${h.join("|")})\\(`,"g");function b(e){return e.indexOf("(")!==-1&&E.some(r=>e.includes(`${r}(`))}function ie(e){if(!E.some(n=>e.includes(n)))return e;let r=!1;h.some(n=>e.includes(n))&&(A.lastIndex=0,e=e.replace(A,(n,o)=>(r=!0,`$${h.indexOf(o)}$(`)));let t="",i=[];for(let n=0;n<e.length;n++){let o=e[n];if(o==="("){t+=o;let m=n;for(let c=n-1;c>=0;c--){let x=e.charCodeAt(c);if(x>=48&&x<=57)m=c;else if(x>=97&&x<=122)m=c;else break}let a=e.slice(m,n);if(E.includes(a)){i.unshift(!0);continue}else if(i[0]&&a===""){i.unshift(!0);continue}i.unshift(!1);continue}else if(o===")")t+=o,i.shift();else if(o===","&&i[0]){t+=", ";continue}else{if(o===" "&&i[0]&&t[t.length-1]===" ")continue;if((o==="+"||o==="*"||o==="/"||o==="-")&&i[0]){let m=t.trimEnd(),a=m[m.length-1];if(a==="+"||a==="*"||a==="/"||a==="-"){t+=o;continue}else if(a==="("||a===","){t+=o;continue}else e[n-1]===" "?t+=`${o} `:t+=` ${o} `}else if(i[0]&&e.startsWith("to-zero",n)){let m=n;n+=7,t+=e.slice(m,n+1)}else t+=o}}return r?t.replace(/\$(\d+)\$/g,(n,o)=>h[o]??n):t}var y=new Uint8Array(256);function g(e,r){let t=0,i=[],n=0,o=e.length,m=r.charCodeAt(0);for(let a=0;a<o;a++){let c=e.charCodeAt(a);if(t===0&&c===m){i.push(e.slice(n,a)),n=a+1;continue}switch(c){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let x=e.charCodeAt(a);if(x===92){a+=1;continue}if(x===c)break}break;case 40:y[t]=41,t++;break;case 91:y[t]=93,t++;break;case 123:y[t]=125,t++;break;case 93:case 125:case 41:t>0&&c===y[t-1]&&t--;break}}return i.push(e.slice(n)),i}var _={color:v,length:w,percentage:C,ratio:j,number:N,integer:p,url:z,position:Q,"bg-size":X,"line-width":I,image:H,"family-name":q,"generic-name":P,"absolute-size":B,"relative-size":W,angle:ee,vector:re};function pe(e,r){if(e.startsWith("var("))return null;for(let t of r)if(_[t]?.(e))return t;return null}var D=/^url\(.*\)$/;function z(e){return D.test(e)}function I(e){return g(e," ").every(r=>w(r)||N(r)||r==="thin"||r==="medium"||r==="thick")}var F=/^(?:element|image|cross-fade|image-set)\(/,$=/^(repeating-)?(conic|linear|radial)-gradient\(/;function H(e){let r=0;for(let t of g(e,","))if(!t.startsWith("var(")){if(z(t)){r+=1;continue}if($.test(t)){r+=1;continue}if(F.test(t)){r+=1;continue}return!1}return r>0}function P(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-monospace"||e==="ui-rounded"||e==="math"||e==="emoji"||e==="fangsong"}function q(Line truncated
|
||||
+295
@@ -0,0 +1,295 @@
|
||||
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;
|
||||
};
|
||||
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 _ };
|
||||
+295
@@ -0,0 +1,295 @@
|
||||
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;
|
||||
};
|
||||
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-b_6i0Oi7.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)"},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:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",9Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a}from"./chunk-HTB5LLOP.mjs";export{a as default};
|
||||
+1147
File diff suppressed because it is too large.
Load diff
+1147
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
"use strict";var v=["anchor-size"],N=new RegExp(`(${v.join("|")})\\(`,"g");var m=new Uint8Array(256);function k(e,c){let t=0,g=[],u=0,d=e.length,E=c.charCodeAt(0);for(let n=0;n<d;n++){let h=e.charCodeAt(n);if(t===0&&h===E){g.push(e.slice(u,n)),u=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(u)),g}var i=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,I=new RegExp(`^${i.source}$`);var F=new RegExp(`^${i.source}%$`);var $=new RegExp(`^${i.source}s*/s*${i.source}$`);var C=["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"],H=new RegExp(`^${i.source}(${C.join("|")})$`);var S=["deg","rad","grad","turn"],P=new RegExp(`^${i.source}(${S.join("|")})$`);var q=new RegExp(`^${i.source} +${i.source} +${i.source}$`);function l(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)"},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:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{h as a}from"./chunk-P5FH2LZE.mjs";import"./chunk-HTB5LLOP.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){return{kind:"word",value:e}}function le(e,i){return{kind:"function",value:e,nodes:i}}function ae(e){return{kind:"separator",value:e}}function A(e,i,t=null){for(let r=0;r<e.length;r++){let n=e[r],o=!1,l=0,s=i(n,{parent:t,replaceWith(a){o||(o=!0,Array.isArray(a)?a.length===0?(e.splice(r,1),l=0):a.length===1?(e[r]=a[0],l=1):(e.splice(r,1,...a),l=a.length):e[r]=a)}})??0;if(o){s===0?r--:r+=l-1;continue}if(s===2)return 2;if(s!==1&&n.kind==="function"&&A(n.nodes,i,n)===2)return 2}}function w(e){let i="";for(let t of e)switch(t.kind){case"word":case"separator":{i+=t.value;break}case"function":i+=t.value+"("+w(t.nodes)+")"}return i}var j=92,se=41,M=58,W=44,ue=34,B=61,H=62,q=60,G=10,fe=40,ce=39,Y=47,J=32,Q=9;function k(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let i=[],t=[],r=null,n="",o;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case j:{n+=e[l]+e[l+1],l++;break}case M:case W:case B:case H:case q:case G:case Y:case J:case Q:{if(n.length>0){let L=_(n);r?r.nodes.push(L):i.push(L),n=""}let a=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==M&&o!==W&&o!==B&&o!==H&&o!==q&&o!==G&&o!==Y&&o!==J&&o!==Q));u++);l=u-1;let z=ae(e.slice(a,u));r?r.nodes.push(z):i.push(z);break}case ce:case ue:{let a=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===j)u+=1;else if(o===s){l=u;break}n+=e.slice(a,l+1);break}case fe:{let a=le(n,[]);n="",r?r.nodes.push(a):i.push(a),t.push(a),r=a;break}case se:{let a=t.pop();if(n.length>0){let u=_(n);a.nodes.push(u),n=""}t.length>0?r=t[t.length-1]:r=null;break}default:n+=String.fromCharCode(s)}}return n.length>0&&i.push(_(n)),i}var pe=["anchor-size"],Ie=new RegExp(`(${pe.join("|")})\\(`,"g");var We=new Uint8Array(256);var T=new Uint8Array(256);function c(e,i){let t=0,r=[],n=0,o=e.length,l=i.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(t===0&&a===l){r.push(e.slice(n,s)),n=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:T[t]=41,t++;break;case 91:T[t]=93,t++;break;case 123:T[t]=125,t++;break;case 93:case 125:case 41:t>0&&a===T[t-1]&&t--;break}}return r.push(e.slice(n)),r}var m=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,at=new RegExp(`^${m.source}$`);var st=new RegExp(`^${m.source}%$`);var ut=new RegExp(`^${m.source}s*/s*${m.source}$`);var de=["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"],ft=new RegExp(`^${m.source}(${de.join("|")})$`);var me=["deg","rad","grad","turn"],ct=new RegExp(`^${m.source}(${me.join("|")})$`);var pt=new RegExp(`^${m.source} +${m.source} +${m.source}$`);function p(e){let i=Number(e);return Number.isInteger(i)&&i>=0&&String(i)===String(e)}function N(e,i){if(i===null)return e;let t=Number(i);return Number.isNaN(t)||(i=`${t*100}%`),`color-mix(in oklab, ${e} ${i}, transparent)`}var ve={"--alpha":we,"--spacing":ke,"--theme":ye,theme:be};function we(e,i,t,...r){let[n,o]=c(t,"/").map(l=>l.trim());if(!n||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);if(r.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);return N(n,o)}function ke(e,i,t,...r){if(!t)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(r.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${r.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(${n} * ${t})`}function ye(e,i,t,...r){if(!t.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;t.endsWith(" inline")&&(n=!0,t=t.slice(0,-7)),i.kind==="at-rule"&&(n=!0);let o=e.resolveThemeValue(t,n);if(!o){if(r.length>0)return r.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(r.length===0)return o;let l=r.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=k(o);return Ae(s,l),w(s)}return o}function be(e,i,t,...r){t=xe(t);let n=e.resolveThemeValue(t);if(!n&&r.length>0)return r.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var Rt=new RegExp(Object.keys(ve).map(e=>`${e}\\(`).join("|"));function xe(e){if(e[0]!=="'"&&e[0]!=='"')return e;let i="",t=e[0];for(let r=1;r<e.length-1;r++){let n=e[r],o=e[r+1];n==="\\"&&(o===t||o==="\\")?(i+=o,r++):i+=n}return i}function Ae(e,i){A(e,t=>{if(t.kind==="function"&&!(t.value!=="var"&&t.value!=="theme"&&t.value!=="--theme"))if(t.nodes.length===1)t.nodes.push({kind:"word",value:`, ${i}`});else{let r=t.nodes[t.nodes.length-1];r.kind==="word"&&r.value==="initial"&&(r.value=i)}})}var I={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)Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import"./chunk-3NGYYP5F.mjs";import"./chunk-P5FH2LZE.mjs";import"./chunk-HTB5LLOP.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};
|
||||
+273
@@ -0,0 +1,273 @@
|
||||
import { U as UserConfig, P as Plugin } from './types-B254mqw1.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;
|
||||
}>, keyframes?: Set<AtRule>);
|
||||
add(key: string, value: string, options?: ThemeOptions): 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;
|
||||
}]> | [string, {
|
||||
value: string;
|
||||
options: ThemeOptions;
|
||||
}][];
|
||||
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[]): 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): "static" | "arbitrary" | "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): {
|
||||
node: AstNode;
|
||||
propertySort: {
|
||||
order: number[];
|
||||
count: number;
|
||||
};
|
||||
}[];
|
||||
|
||||
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[];
|
||||
}
|
||||
|
||||
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): ReturnType<typeof compileAstNodes>;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
};
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type Rule = StyleRule | AtRule;
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
type Config = UserConfig;
|
||||
declare const enum Polyfills {
|
||||
None = 0,
|
||||
AtProperty = 1,
|
||||
ColorMix = 2,
|
||||
All = 3
|
||||
}
|
||||
type CompileOptions = {
|
||||
base?: string;
|
||||
polyfills?: Polyfills;
|
||||
loadModule?: (id: string, base: string, resourceHint: 'plugin' | 'config') => Promise<{
|
||||
module: Plugin | Config;
|
||||
base: string;
|
||||
}>;
|
||||
loadStylesheet?: (id: string, base: string) => Promise<{
|
||||
content: string;
|
||||
base: 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
|
||||
}
|
||||
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;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>;
|
||||
declare function postcssPluginWarning(): void;
|
||||
|
||||
export { type Config, Features, Polyfills, __unstable__loadDesignSystem, compile, compileAst, postcssPluginWarning as default };
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
declare function postcssPluginWarning(): void;
|
||||
|
||||
export { postcssPluginWarning as default };
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
"use strict";var ci=Object.defineProperty;var fi=(t,r)=>{for(var i in r)ci(t,i,{get:r[i],enumerable:!0})};var dt={};fi(dt,{Features:()=>$e,Polyfills:()=>Qe,__unstable__loadDesignSystem:()=>Gn,compile:()=>Hn,compileAst:()=>ui,default:()=>ze});var jt="4.1.3";var Ee=92,Le=47,Me=42,di=34,mi=39,gi=58,We=59,me=10,Re=32,Be=9,It=123,gt=125,wt=40,Ft=41,hi=91,vi=93,zt=45,ht=64,wi=33;function ge(t){t[0]==="\uFEFF"&&(t=t.slice(1)),t=t.replaceAll(`\r
|
||||
`,`
|
||||
`);let r=[],i=[],e=[],n=null,s=null,a="",f="",u;for(let c=0;c<t.length;c++){let g=t.charCodeAt(c);if(g===Ee)a+=t.slice(c,c+2),c+=1;else if(g===Le&&t.charCodeAt(c+1)===Me){let m=c;for(let v=c+2;v<t.length;v++)if(u=t.charCodeAt(v),u===Ee)v+=1;else if(u===Me&&t.charCodeAt(v+1)===Le){c=v+1;break}let h=t.slice(m,c+1);h.charCodeAt(2)===wi&&i.push(qe(h.slice(2,-2)))}else if(g===mi||g===di){let m=c;for(let h=c+1;h<t.length;h++)if(u=t.charCodeAt(h),u===Ee)h+=1;else if(u===g){c=h;break}else{if(u===We&&t.charCodeAt(h+1)===me)throw new Error(`Unterminated string: ${t.slice(m,h+1)+String.fromCharCode(g)}`);if(u===me)throw new Error(`Unterminated string: ${t.slice(m,h)+String.fromCharCode(g)}`)}a+=t.slice(m,c+1)}else{if((g===Re||g===me||g===Be)&&(u=t.charCodeAt(c+1))&&(u===Re||u===me||u===Be))continue;if(g===me){if(a.length===0)continue;u=a.charCodeAt(a.length-1),u!==Re&&u!==me&&u!==Be&&(a+=" ")}else if(g===zt&&t.charCodeAt(c+1)===zt&&a.length===0){let m="",h=c,v=-1;for(let A=c+2;A<t.length;A++)if(u=t.charCodeAt(A),u===Ee)A+=1;else if(u===Le&&t.charCodeAt(A+1)===Me){for(let b=A+2;b<t.length;b++)if(u=t.charCodeAt(b),u===Ee)b+=1;else if(u===Me&&t.charCodeAt(b+1)===Le){A=b+1;break}}else if(v===-1&&u===gi)v=a.length+A-h;else if(u===We&&m.length===0){a+=t.slice(h,A),c=A;break}else if(u===wt)m+=")";else if(u===hi)m+="]";else if(u===It)m+="}";else if((u===gt||t.length-1===A)&&m.length===0){c=A-1,a+=t.slice(h,A);break}else(u===Ft||u===vi||u===gt)&&m.length>0&&t[A]===m[m.length-1]&&(m=m.slice(0,-1));let w=vt(a,v);if(!w)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(w):r.push(w),a=""}else if(g===We&&a.charCodeAt(0)===ht)s=Oe(a),n?n.nodes.push(s):r.push(s),a="",s=null;else if(g===We&&f[f.length-1]!==")"){let m=vt(a);if(!m)throw a.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${a.trim()}\``);n?n.nodes.push(m):r.push(m),a=""}else if(g===It&&f[f.length-1]!==")")f+="}",s=M(a.trim()),n&&n.nodes.push(s),e.push(n),n=s,a="",s=null;else if(g===gt&&f[f.length-1]!==")"){if(f==="")throw new Error("Missing opening {");if(f=f.slice(0,-1),a.length>0)if(a.charCodeAt(0)===ht)s=Oe(a),n?n.nodes.push(s):r.push(s),a="",s=null;else{let h=a.indexOf(":");if(n){let v=vt(a,h);if(!v)throw new Error(`Invalid declaration: \`${a.trim()}\``);n.nodes.push(v)}}let m=e.pop()??null;m===null&&n&&r.push(n),n=m,a="",s=null}else if(g===wt)f+=")",a+="(";else if(g===Ft){if(f[f.length-1]!==")")throw new Error("Missing opening (");f=f.slice(0,-1),a+=")"}else{if(a.length===0&&(g===Re||g===me||g===Be))continue;a+=String.fromCharCode(g)}}}if(a.charCodeAt(0)===ht&&r.push(Oe(a)),f.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return i.length>0?i.concat(r):r}function Oe(t,r=[]){for(let i=5;i<t.length;i++){let e=t.charCodeAt(i);if(e===Re||e===wt){let n=t.slice(0,i).trim(),s=t.slice(i).trim();return j(n,s,r)}}return j(t.trim(),"",r)}function vt(t,r=t.indexOf(":")){if(r===-1)return null;let i=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,i===-1?t.length:i).trim(),i!==-1)}function ue(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),i=r.length,e=-1,n,s="",a=r.charCodeAt(0);if(i===1&&a===45)return"\\"+r;for(;++e<i;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&a===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+="\\"+r.charAt(e)}return s}function he(t){return t.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Mt=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function Lt(t,r){return(Mt.get(r)??[]).some(i=>t===i||t.startsWith(`${i}-`))}var He=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;add(r,i,e=0){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let n=this.values.get(r);if(n&&!(n.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:e})}keysInNamespaces(r){let i=[];for(let e of r){let n=`${e}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(Lt(s,e)||i.push(s.slice(n.length)))}return i}get(r){for(let i of r){let e=this.values.get(i);if(e)return e.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=he(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):thiLine truncated
|
||||
`,`
|
||||
`);let r=[],i=[],e=null,n="",s;for(let a=0;a<t.length;a++){let f=t.charCodeAt(a);switch(f){case Wt:{n+=t[a]+t[a+1],a++;break}case Bt:case qt:case Ht:case Gt:case Yt:case Jt:case Qt:case Zt:case Xt:{if(n.length>0){let m=yt(n);e?e.nodes.push(m):r.push(m),n=""}let u=a,c=a+1;for(;c<t.length&&(s=t.charCodeAt(c),!(s!==Bt&&s!==qt&&s!==Ht&&s!==Gt&&s!==Yt&&s!==Jt&&s!==Qt&&s!==Zt&&s!==Xt));c++);a=c-1;let g=yi(t.slice(u,c));e?e.nodes.push(g):r.push(g);break}case Ci:case xi:{let u=a;for(let c=a+1;c<t.length;c++)if(s=t.charCodeAt(c),s===Wt)c+=1;else if(s===f){a=c;break}n+=t.slice(u,a+1);break}case Ai:{let u=ki(n,[]);n="",e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case bi:{let u=i.pop();if(n.length>0){let c=yt(n);u.nodes.push(c),n=""}i.length>0?e=i[i.length-1]:e=null;break}default:n+=String.fromCharCode(f)}}return n.length>0&&r.push(yt(n)),r}function Ge(t){let r=[];return ee(H(t),i=>{if(!(i.kind!=="function"||i.value!=="var"))return ee(i.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||r.push(e.value)}),1}),r}var $i=64;function F(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function j(t,r="",i=[]){return{kind:"at-rule",name:t,params:r,nodes:i}}function M(t,r=[]){return t.charCodeAt(0)===$i?Oe(t,r):F(t,r)}function l(t,r,i=!1){return{kind:"declaration",property:t,value:r,important:i}}function qe(t){return{kind:"comment",value:t}}function ne(t,r){return{kind:"context",context:t,nodes:r}}function D(t){return{kind:"at-root",nodes:t}}function I(t,r,i=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],a=i[i.length-1]??null;if(s.kind==="context"){if(I(s.nodes,r,i,{...e,...s.context})===2)return 2;continue}i.push(s);let f=!1,u=0,c=r(s,{parent:a,context:e,path:i,replaceWith(g){f||(f=!0,Array.isArray(g)?g.length===0?(t.splice(n,1),u=0):g.length===1?(t[n]=g[0],u=1):(t.splice(n,1,...g),u=g.length):(t[n]=g,u=1))}})??0;if(i.pop(),f){c===0?n--:n+=u-1;continue}if(c===2)return 2;if(c!==1&&"nodes"in s){i.push(s);let g=I(s.nodes,r,i,e);if(i.pop(),g===2)return 2}}}function Ye(t,r,i=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],a=i[i.length-1]??null;if(s.kind==="rule"||s.kind==="at-rule")i.push(s),Ye(s.nodes,r,i,e),i.pop();else if(s.kind==="context"){Ye(s.nodes,r,i,{...e,...s.context});continue}i.push(s),r(s,{parent:a,context:e,path:i,replaceWith(f){Array.isArray(f)?f.length===0?t.splice(n,1):f.length===1?t[n]=f[0]:t.splice(n,1,...f):t[n]=f,n+=f.length-1}}),i.pop()}}function ve(t,r,i=3){let e=[],n=new Set,s=new q(()=>new Set),a=new Set,f=new Set,u=[],c=[],g=new q(()=>new Set);function m(v,w,A={},b=0){if(v.kind==="declaration"){if(v.property==="--tw-sort"||v.value===void 0||v.value===null)return;if(A.theme&&v.property[0]==="-"&&v.property[1]==="-"){if(v.value==="initial"){v.value=void 0;return}A.keyframes||s.get(w).add(v)}if(v.value.includes("var("))if(A.theme&&v.property[0]==="-"&&v.property[1]==="-")for(let y of Ge(v.value))g.get(y).add(v.property);else r.trackUsedVariables(v.value);if(v.property==="animation")for(let y of er(v.value))f.add(y);if(i&2&&v.value.includes("color-mix(")){let y=H(v.value),S=!1;if(ee(y,(E,{replaceWith:P})=>{if(E.kind!=="function"||E.value!=="color-mix")return;let _=!1,L=!1;if(ee(E.nodes,(R,{replaceWith:G})=>{if(R.kind=="word"&&R.value.toLowerCase()==="currentcolor"){L=!0,S=!0;return}if(R.kind!=="function"||R.value!=="var")return;let z=R.nodes[0];if(!z||z.kind!=="word")return;S=!0;let B=r.theme.resolveValue(null,[z.value]);if(!B){_=!0;return}G({kind:"word",value:B})}),_||L){let R=E.nodes.findIndex(z=>z.kind==="separator"&&z.value.trim().includes(","));if(R===-1)return;let G=E.nodes.length>R?E.nodes[R+1]:null;if(!G)return;P(G)}else if(S){let R=E.nodes[2];R.kind==="word"&&(R.value==="oklab"||R.value==="oklch"||R.value==="lab"||R.value==="lch")&&(R.value="srgb")}}),S){let E={...v,value:J(y)},P=M("@supports (color: color-mix(in lab, red, red))",[v]);w.push(E,P);return}}w.push(v)}else if(v.kind==="rule")if(v.selector==="&")for(let y of v.nodes){let S=[];m(y,S,A,b+1),S.length>0&&w.push(...S)}else{let y={...v,nodes:[]};for(let S of v.nodes)m(S,y.nodes,A,b+1);y.nodes.length>0&&w.push(y)}else if(v.kind==="at-rule"&&v.name==="@property"&&b===0){if(n.has(v.params))return;if(i&1){let S=v.params,E=null,P=!1;for(let _ of v.nodes)_.kind==="declaration"&&(_.property==="initial-value"?E=_.value:_.property==="inherits"&&(P=_.value==="true"));P?u.push(l(S,E??"initial")):c.push(l(S,E??"initial"))}n.add(v.params);let y={...v,nodes:[]};for(let S of v.nodes)m(S,y.nodes,A,b+1);w.push(y)}else if(v.kind==="at-rule"){v.name==="@keyframes"&&(A={...A,keyframes:!0});let y={...v,nodes:[]};for(let S of v.nodes)m(S,y.nodes,A,b+1);v.name==="@keyframes"&&A.theme&&a.add(y),(y.nodes.length>0||y.name==="@layer"||y.name==="@charset"||y.name==="@custom-media"||y.name==="@namespace"||y.name==="@import")&&w.push(y)}else if(v.kind==="at-root")for(let y of v.nodes){let S=[];m(y,S,A,0);for(let E of S)e.push(E)}else if(v.kind==="context"){if(v.context.reference)return;for(let y of v.nodes)m(y,w,{...A,...v.context},b)}else v.kind==="comment"
Line truncated
|
||||
`;else if(e.kind==="rule"){s+=`${a}${e.selector} {
|
||||
`;for(let f of e.nodes)s+=r(f,n+1);s+=`${a}}
|
||||
`}else if(e.kind==="at-rule"){if(e.nodes.length===0)return`${a}${e.name} ${e.params};
|
||||
`;s+=`${a}${e.name}${e.params?` ${e.params} `:" "}{
|
||||
`;for(let f of e.nodes)s+=r(f,n+1);s+=`${a}}
|
||||
`}else if(e.kind==="comment")s+=`${a}/*${e.value}*/
|
||||
`;else if(e.kind==="context"||e.kind==="at-root")return"";return s}let i="";for(let e of t){let n=r(e);n!==""&&(i+=n)}return i}function Vi(t,r){let i=[];return I(t,(e,{path:n})=>{if(r(e))return i=[...n],2}),i}function tr(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 a of s)if(tr(a,r,i,e))return!0}return!1}function er(t){return t.split(/[\s,]+/)}var bt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Ze=["anchor-size"],rr=new RegExp(`(${Ze.join("|")})\\(`,"g");function Pe(t){return t.indexOf("(")!==-1&&bt.some(r=>t.includes(`${r}(`))}function ir(t){if(!bt.some(n=>t.includes(n)))return t;let r=!1;Ze.some(n=>t.includes(n))&&(rr.lastIndex=0,t=t.replace(rr,(n,s)=>(r=!0,`$${Ze.indexOf(s)}$(`)));let i="",e=[];for(let n=0;n<t.length;n++){let s=t[n];if(s==="("){i+=s;let a=n;for(let u=n-1;u>=0;u--){let c=t.charCodeAt(u);if(c>=48&&c<=57)a=u;else if(c>=97&&c<=122)a=u;else break}let f=t.slice(a,n);if(bt.includes(f)){e.unshift(!0);continue}else if(e[0]&&f===""){e.unshift(!0);continue}e.unshift(!1);continue}else if(s===")")i+=s,e.shift();else if(s===","&&e[0]){i+=", ";continue}else{if(s===" "&&e[0]&&i[i.length-1]===" ")continue;if((s==="+"||s==="*"||s==="/"||s==="-")&&e[0]){let a=i.trimEnd(),f=a[a.length-1];if(f==="+"||f==="*"||f==="/"||f==="-"){i+=s;continue}else if(f==="("||f===","){i+=s;continue}else t[n-1]===" "?i+=`${s} `:i+=` ${s} `}else if(e[0]&&t.startsWith("to-zero",n)){let a=n;n+=7,i+=t.slice(a,n+1)}else i+=s}}return r?i.replace(/\$(\d+)\$/g,(n,s)=>Ze[s]??n):i}function ce(t){if(t.indexOf("(")===-1)return Ce(t);let r=H(t);return xt(r),t=J(r),t=ir(t),t}function Ce(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 xt(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Ce(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Ce(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=Ce(r.nodes[i].value,!0);continue}xt([r.nodes[i]])}break}r.value=Ce(r.value),xt(r.nodes);break}case"separator":case"word":{r.value=Ce(r.value);break}default:Si(r)}}function Si(t){throw new Error(`Unexpected value: ${t}`)}var At=new Uint8Array(256);function fe(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:At[r]=41,r++;break;case 91:At[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===At[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var Xe=new Uint8Array(256);function K(t,r){let i=0,e=[],n=0,s=t.length,a=r.charCodeAt(0);for(let f=0;f<s;f++){let u=t.charCodeAt(f);if(i===0&&u===a){e.push(t.slice(n,f)),n=f+1;continue}switch(u){case 92:f+=1;break;case 39:case 34:for(;++f<s;){let c=t.charCodeAt(f);if(c===92){f+=1;continue}if(c===u)break}break;case 40:Xe[i]=41,i++;break;case 91:Xe[i]=93,i++;break;case 123:Xe[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===Xe[i-1]&&i--;break}}return e.push(t.slice(n)),e}var Ti=58,nr=45,or=97,lr=122;function*ar(t,r){let i=K(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 m=i.length-1;m>=0;--m){let h=r.parseVariant(i[m]);if(h===null)return;n.push(h)}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[a,f=null,u]=K(e,"/");if(u)return;let c=f===null?null:Ct(f);if(f!==null&&c===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let m=a.charCodeAt(1);if(m!==nr&&!(m>=or&&m<=lr))return;a=a.slice(1,-1);let h=a.indexOf(":");if(h===-1||h===0||h===a.length-1)return;let v=a.slice(0,h),w=ce(a.slice(h+1));if(!fe(w))return;yield{kind:"arbitrary",property:v,value:w,modifier:c,variants:n,important:s,raw:t};return}let g;if(a[a.length-1]==="]"){let m=a.indexOf("-[");if(m===-1)return;let h=a.slice(0,m);if(!r.utilities.has(h,"functional"))return;let v=a.slice(m+1);g=[[h,v]]}else if(a[a.length-1]===")"){let m=a.indexOf("-(");if(m===-1)return;let h=a.slice(0,m);if(!r.utilities.has(h,"functional"))return;let v=a.slice(m+2,-1),w=K(v,":"),A=null;if(w.length===2&&(A=w[0],v=w[1]),v[0]!=="-"&&v[1]!=="-")return;g=[[h,A===null?`[var(${v})]`:`[${A}:var(${v})]`]]}else g=ur(a,m=>r.utilities.has(m,"functional"));for(let[m,h]of g){let v={kind:"functional",root:m,modifier:c,value:null,variants:n,important:s,raw:t};if(h===null){yield v;continue}{let w=h.indexOf("[");if(w!==-1){if(h[h.length-1]!=="]")return;let b=ce(h.slice(w+1,-1));if(!fe(b))continue;let y="";for(let S=0;S<b.length;S++){let E=b.charCodeAt(S);if(E===Ti){y=b.slice(0,S),b=b.slice(S+1);break}if(!(E===nr||E>=or&&E<=lr))br
Line truncated
|
||||
Only valid data types are: ${St.map(A=>`"${A}"`).join(", ")}.
|
||||
`);let c=u.value,g=structuredClone(a),m="\xB6";ee(g.nodes,(A,{replaceWith:b})=>{A.kind==="word"&&A.value===c&&b({kind:"word",value:m})});let h="^".repeat(J([u]).length),v=J([g]).indexOf(m),w=["```css",J([a])," ".repeat(v)+h,"```"].join(`
|
||||
`);console.warn(w)}}),n.value=J(s)}),i.utilities.functional(r.slice(0,-2),n=>{let s=structuredClone(t),a=n.value,f=n.modifier;if(a===null)return;let u=!1,c=!1,g=!1,m=!1,h=new Map,v=!1;if(I([s],(w,{parent:A,replaceWith:b})=>{if(A?.kind!=="rule"&&A?.kind!=="at-rule"||w.kind!=="declaration"||!w.value)return;let y=H(w.value);(ee(y,(E,{replaceWith:P})=>{if(E.kind==="function"){if(E.value==="--value"){u=!0;let _=gr(a,E,i);return _?(c=!0,_.ratio?v=!0:h.set(w,A),P(_.nodes),1):(u||=!1,b([]),2)}else if(E.value==="--modifier"){if(f===null)return b([]),2;g=!0;let _=gr(f,E,i);return _?(m=!0,P(_.nodes),1):(g||=!1,b([]),2)}}})??0)===0&&(w.value=J(y))}),u&&!c||g&&!m||v&&m||f&&!v&&!m)return null;if(v)for(let[w,A]of h){let b=A.nodes.indexOf(w);b!==-1&&A.nodes.splice(b,1)}return s.nodes}),i.utilities.suggest(r.slice(0,-2),()=>{let n=[],s=[];for(let[a,{literals:f,usedSpacingNumber:u,usedSpacingInteger:c,themeKeys:g}]of[[n,e["--value"]],[s,e["--modifier"]]]){for(let m of f)a.push(m);if(u)a.push(...it);else if(c)for(let m of it)T(m)&&a.push(m);for(let m of i.theme.keysInNamespaces(g))a.push(m)}return[{values:n,modifiers:s}]})}:rn.test(r)?i=>{i.utilities.static(r,()=>structuredClone(t.nodes))}:null}function gr(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:H(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:H(s)}}else{let s=n.split("-*");if(s.length<=1)continue;let a=[s.shift()],f=i.theme.resolveWith(t.value,a,s);if(f){let[,u={}]=f;{let c=u[s.pop()];if(c)return{nodes:H(c)}}}}}else if(t.kind==="named"&&e.kind==="word"){if(!St.includes(e.value))continue;let n=e.value==="ratio"&&"fraction"in t?t.fraction:t.value;if(!n)continue;let s=W(n,[e.value]);if(s===null)continue;if(s==="ratio"){let[a,f]=K(n,"/");if(!T(a)||!T(f))continue}else{if(s==="number"&&!ke(n))continue;if(s==="percentage"&&!T(n.slice(0,-1)))continue}return{nodes:H(n),ratio:s==="ratio"}}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:H(t.value)};if("dataType"in t&&t.dataType&&t.dataType!==n)continue;if("dataType"in t&&t.dataType)return{nodes:H(t.value)};if(W(t.value,[n])!==null)return{nodes:H(t.value)}}}}function ae(t,r,i,e,n=""){let s=!1,a=_e(r,u=>i==null?e(u):u.startsWith("current")?e(Y(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(hr(u,i))));function f(u){return n?K(u,",").map(c=>n+c).join(","):u}return s?[l(t,f(_e(r,e))),M("@supports (color: lab(from red l a b))",[l(t,f(a))])]:[l(t,f(a))]}function rt(t,r,i,e,n=""){let s=!1,a=K(r,",").map(f=>_e(f,u=>i==null?e(u):u.startsWith("current")?e(Y(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(hr(u,i))))).map(f=>`drop-shadow(${f})`).join(" ");return s?[l(t,n+K(r,",").map(f=>`drop-shadow(${_e(f,e)})`).join(" ")),M("@supports (color: lab(from red l a b))",[l(t,n+a)])]:[l(t,n+a)]}var Tt={"--alpha":on,"--spacing":ln,"--theme":an,theme:sn};function on(t,r,i,...e){let[n,s]=K(i,"/").map(a=>a.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 Y(n,s)}function ln(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(${n} * ${i})`}function an(t,r,i,...e){if(!i.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;i.endsWith(" inline")&&(n=!0,i=i.slice(0,-7)),r.kind==="at-rule"&&(n=!0);let s=t.resolveThemeValue(i,n);if(!s){if(e.length>0)return e.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${i})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(e.length===0)return s;let a=e.join(", ");if(a==="initial")return s;if(s==="initial")return a;if(s.startsWith("var(")||s.startsWith("theme(")||s.startsWith("--theme(")){let f=H(s);return cn(f,a),J(f)}return s}function sn(t,r,i,...e){i=un(i);let n=t.resolveThemeValue(i);if(!n&&e.length>0)return e.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${i})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var kr=new RegExp(Object.keys(Line truncated
|
||||
|
||||
${te([m])}
|
||||
Relies on:
|
||||
|
||||
${te([v])}`)}c.add(m);for(let v of s.get(m))for(let w of a.get(v))h.push(m),g(w,h),h.pop();f.add(m),c.delete(m),u.push(m)}}for(let m of n)g(m);for(let m of u)if("nodes"in m)for(let h=0;h<m.nodes.length;h++){let v=m.nodes[h];if(v.kind!=="at-rule"||v.name!=="@apply")continue;let w=v.params.split(/\s+/g);{let A=pe(w,r,{onInvalidCandidate:y=>{throw new Error(`Cannot apply unknown utility class: ${y}`)}}).astNodes,b=[];for(let y of A)if(y.kind==="rule")for(let S of y.nodes)b.push(S);else b.push(y);m.nodes.splice(h,1,...b)}}return i}function*Er(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 Pt(t,r,i,e=0){let n=0,s=[];return I(t,(a,{replaceWith:f})=>{if(a.kind==="at-rule"&&(a.name==="@import"||a.name==="@reference")){let u=gn(H(a.params));if(u===null)return;a.name==="@reference"&&(u.media="reference"),n|=2;let{uri:c,layer:g,media:m,supports:h}=u;if(c.startsWith("data:")||c.startsWith("http://")||c.startsWith("https://"))return;let v=ne({},[]);return s.push((async()=>{if(e>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${r}\`)`);let w=await i(c,r),A=ge(w.content);await Pt(A,w.base,i,e+1),v.nodes=hn([ne({base:w.base},A)],g,m,h)})()),f(v),1}}),s.length>0&&await Promise.all(s),n}function gn(t){let r,i=null,e=null,n=null;for(let s=0;s<t.length;s++){let a=t[s];if(a.kind!=="separator"){if(a.kind==="word"&&!r){if(!a.value||a.value[0]!=='"'&&a.value[0]!=="'")return null;r=a.value.slice(1,-1);continue}if(a.kind==="function"&&a.value.toLowerCase()==="url"||!r)return null;if((a.kind==="word"||a.kind==="function")&&a.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 a?i=J(a.nodes):i="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(n)return null;n=J(a.nodes);continue}e=J(t.slice(s));break}}return r?{uri:r,layer:i,media:e,supports:n}:null}function hn(t,r,i,e){let n=t;return r!==null&&(n=[j("@layer",r,n)]),i!==null&&(n=[j("@media",i,n)]),e!==null&&(n=[j("@supports",e[0]==="("?e:`(${e})`,n)]),n}function Se(t,r=null){return Array.isArray(t)&&t.length===2&&typeof t[1]=="object"&&typeof t[1]!==null?r?t[1][r]??null:t[0]:Array.isArray(t)&&r===null?t.join(", "):typeof t=="string"&&r===null?t:null}function Rr(t,{theme:r},i){for(let e of i){let n=lt([e]);n&&t.theme.clearNamespace(`--${n}`,4)}for(let[e,n]of vn(r)){if(typeof n!="string"&&typeof n!="number")continue;if(typeof n=="string"&&(n=n.replace(/<alpha-value>/g,"1")),e[0]==="opacity"&&(typeof n=="number"||typeof n=="string")){let a=typeof n=="string"?parseFloat(n):n;a>=0&&a<=1&&(n=a*100+"%")}let s=lt(e);s&&t.theme.add(`--${s}`,""+n,7)}if(Object.hasOwn(r,"fontFamily")){let e=5;{let n=Se(r.fontFamily.sans);n&&t.theme.hasDefault("--font-sans")&&(t.theme.add("--default-font-family",n,e),t.theme.add("--default-font-feature-settings",Se(r.fontFamily.sans,"fontFeatureSettings")??"normal",e),t.theme.add("--default-font-variation-settings",Se(r.fontFamily.sans,"fontVariationSettings")??"normal",e))}{let n=Se(r.fontFamily.mono);n&&t.theme.hasDefault("--font-mono")&&(t.theme.add("--default-mono-font-family",n,e),t.theme.add("--default-mono-font-feature-settings",Se(r.fontFamily.mono,"fontFeatureSettings")??"normal",e),t.theme.add("--default-mono-font-variation-settings",Se(r.fontFamily.mono,"fontVariationSettings")??"normal",e))}}return r}function vn(t){let r=[];return Or(t,[],(i,e)=>{if(kn(i))return r.push([e,i]),1;if(yn(i)){r.push([e,i[0]]);for(let n of Reflect.ownKeys(i[1]))r.push([[...e,`-${n}`],i[1][n]]);return 1}if(Array.isArray(i)&&i.every(n=>typeof n=="string"))return r.push([e,i.join(", ")]),1}),r}var wn=/^[a-zA-Z0-9-_%/\.]+$/;function lt(t){if(t[0]==="container")return null;t=structuredClone(t),t[0]==="animation"&&(t[0]="animate"),t[0]==="aspectRatio"&&(t[0]="aspect"),t[0]==="borderRadius"&&(t[0]="radius"),t[0]==="boxShadow"&&(t[0]="shadow"),t[0]==="colors"&&(t[0]="color"),t[0]==="containers"&&(t[0]="container"),t[0]==="fontFamily"&&(t[0]="font"),t[0]==="fontSize"&&(t[0]="text"),t[0]==="letterSpacing"&&(t[0]="tracking"),t[0]==="lineHeight"&&(t[0]="leading"),t[0]==="maxWidth"&&(t[0]="container"),t[0]==="screens"&&(t[0]="breakpoint"),t[0]==="transitionTimingFunction"&&(t[0]="ease");for(let r of t)if(!wn.test(r))return null;return t.map((r,i,e)=>r==="1"&&i!==e.length-1?"":r).map(r=>r.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(i,e,n)=>`${e}-${n.toLowerCase()}`)).filter((r,i)=>r!=="DEFAULT"||i!==t.length-1).join("-")}function kn(t){return typeof t=="number"||typeof t=="string"}function yn(t){if(!Array.isArray(t)||t.length!==2||typeof t[0]!="string"&&typeof t[0]!="number"||t[1]===void 0||t[1]===null||typeof t[1]!="object")return!1;for(let r of Reflect.ownKeys(t[1]))if(typeof r!="string"||typeof t[1][r]!="string"&&typeof t[1][r]!="number")return!1;return!0}function Or(t,r=[],Line truncated
|
||||
`,`
|
||||
`);let r=[],i=[],e=null,n="",s;for(let a=0;a<t.length;a++){let f=t.charCodeAt(a);switch(f){case Dr:case jr:case Ir:case Mr:case Lr:case Wr:case Br:{if(n.length>0){let h=je(n);e?e.nodes.push(h):r.push(h),n=""}let u=a,c=a+1;for(;c<t.length&&(s=t.charCodeAt(c),!(s!==Dr&&s!==jr&&s!==Ir&&s!==Mr&&s!==Lr&&s!==Wr&&s!==Br));c++);a=c-1;let g=t.slice(u,c),m=g.trim()===","?Cn(g):xn(g);e?e.nodes.push(m):r.push(m);break}case zr:{let u=An(n,[]);if(n="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let c=a+1,g=0;for(let h=a+1;h<t.length;h++){if(s=t.charCodeAt(h),s===zr){g++;continue}if(s===Ur){if(g===0){a=h;break}g--}}let m=a;u.nodes.push(Nn(t.slice(c,m))),n="",a=m,e?e.nodes.push(u):r.push(u);break}e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case Ur:{let u=i.pop();if(n.length>0){let c=je(n);u.nodes.push(c),n=""}i.length>0?e=i[i.length-1]:e=null;break}case Tn:case Vn:case En:{if(n.length>0){let u=je(n);e?e.nodes.push(u):r.push(u)}n=String.fromCharCode(f);break}case Fr:{if(n.length>0){let g=je(n);e?e.nodes.push(g):r.push(g)}n="";let u=a,c=0;for(let g=a+1;g<t.length;g++){if(s=t.charCodeAt(g),s===Fr){c++;continue}if(s===$n){if(c===0){a=g;break}c--}}n+=t.slice(u,a+1);break}case Rn:case Sn:{let u=a;for(let c=a+1;c<t.length;c++)if(s=t.charCodeAt(c),s===Kr)c+=1;else if(s===f){a=c;break}n+=t.slice(u,a+1);break}case Kr:{let u=t.charCodeAt(a+1);n+=String.fromCharCode(f)+String.fromCharCode(u),a+=1;break}default:n+=String.fromCharCode(f)}}return n.length>0&&r.push(je(n)),r}var qr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function _t({designSystem:t,ast:r,resolvedConfig:i,featuresRef:e,referenceMode:n}){let s={addBase(a){if(n)return;let f=oe(a);e.current|=Ne(f,t),r.push(j("@layer","base",f))},addVariant(a,f){if(!ot.test(a))throw new Error(`\`addVariant('${a}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);typeof f=="string"||Array.isArray(f)?t.variants.static(a,u=>{u.nodes=Hr(f,u.nodes)},{compounds:ye(typeof f=="string"?[f]:f)}):typeof f=="object"&&t.variants.fromAst(a,oe(f))},matchVariant(a,f,u){function c(m,h,v){let w=f(m,{modifier:h?.value??null});return Hr(w,v)}let g=Object.keys(u?.values??{});t.variants.group(()=>{t.variants.functional(a,(m,h)=>{if(!h.value){if(u?.values&&"DEFAULT"in u.values){m.nodes=c(u.values.DEFAULT,h.modifier,m.nodes);return}return null}if(h.value.kind==="arbitrary")m.nodes=c(h.value.value,h.modifier,m.nodes);else if(h.value.kind==="named"&&u?.values){let v=u.values[h.value.value];if(typeof v!="string")return;m.nodes=c(v,h.modifier,m.nodes)}})},(m,h)=>{if(m.kind!=="functional"||h.kind!=="functional")return 0;let v=m.value?m.value.value:"DEFAULT",w=h.value?h.value.value:"DEFAULT",A=u?.values?.[v]??v,b=u?.values?.[w]??w;if(u&&typeof u.sort=="function")return u.sort({value:A,modifier:m.modifier?.value??null},{value:b,modifier:h.modifier?.value??null});let y=g.indexOf(v),S=g.indexOf(w);return y=y===-1?g.length:y,S=S===-1?g.length:S,y!==S?y-S:A<b?-1:1})},addUtilities(a){a=Array.isArray(a)?a:[a];let f=a.flatMap(c=>Object.entries(c));f=f.flatMap(([c,g])=>K(c,",").map(m=>[m.trim(),g]));let u=new q(()=>[]);for(let[c,g]of f){if(c.startsWith("@keyframes ")){n||r.push(M(c,oe(g)));continue}let m=ut(c),h=!1;if(Ie(m,v=>{if(v.kind==="selector"&&v.value[0]==="."&&qr.test(v.value.slice(1))){let w=v.value;v.value="&";let A=Fe(m),b=w.slice(1),y=A==="&"?oe(g):[M(A,oe(g))];u.get(b).push(...y),h=!0,v.value=w;return}if(v.kind==="function"&&v.value===":not")return 1}),!h)throw new Error(`\`addUtilities({ '${c}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[c,g]of u)t.theme.prefix&&I(g,m=>{if(m.kind==="rule"){let h=ut(m.selector);Ie(h,v=>{v.kind==="selector"&&v.value[0]==="."&&(v.value=`.${t.theme.prefix}\\:${v.value.slice(1)}`)}),m.selector=Fe(h)}}),t.utilities.static(c,m=>{let h=structuredClone(g);return Gr(h,c,m.raw),e.current|=Ue(h,t),h})},matchUtilities(a,f){let u=f?.type?Array.isArray(f?.type)?f.type:[f.type]:["any"];for(let[g,m]of Object.entries(a)){let h=function({negative:v}){return w=>{if(w.value?.kind==="arbitrary"&&u.length>0&&!u.includes("any")&&(w.value.dataType&&!u.includes(w.value.dataType)||!w.value.dataType&&!W(w.value.value,u)))return;let A=u.includes("color"),b=null,y=!1;{let P=f?.values??{};A&&(P=Object.assign({inherit:"inherit",transparent:"transparent",current:"currentcolor"},P)),w.value?w.value.kind==="arbitrary"?b=w.value.value:w.value.fraction&&P[w.value.fraction]?(b=P[w.value.fraction],y=!0):P[w.value.value]?b=P[w.value.value]:P.__BARE_VALUE__&&(b=P.__BARE_VALUE__(w.value)??null,y=(w.value.fraction!==null&&b?.includes("/"))??!1):b=P.DEFAULT??null}if(b===null)return;let S;{let P=f?.modifiers??null;w.modifier?P==="any"||w.modifier.kind==="arbitrary"?S=w.modifier.value:P?.[w.modifier.value]?S=P[w.modifier.value]:A&&!Number.isNaN(Number(w.modifier.value))?S=`${w.modifier.value}%`:S=null:S=null}if(w.modifier&&S===null&Line truncated
|
||||
|
||||
${te([y])}
|
||||
|
||||
\`@plugin\` options must be a flat list of declarations.`);if(y.value===void 0)continue;let S=y.value,E=K(S,",").map(P=>{if(P=P.trim(),P==="null")return null;if(P==="true")return!0;if(P==="false")return!1;if(Number.isNaN(Number(P))){if(P[0]==='"'&&P[P.length-1]==='"'||P[0]==="'"&&P[P.length-1]==="'")return P.slice(1,-1);if(P[0]==="{"&&P[P.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${te([y]).trim()}\` is not supported.
|
||||
|
||||
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(P);return P});b[y.property]=E.length===1?E[0]:E}a.push([{id:A,base:w.base,reference:!!w.reference},Object.keys(b).length>0?b:null]),v([]),s|=4;return}if(m.name==="@config"){if(m.nodes.length>0)throw new Error("`@config` cannot have a body.");if(h!==null)throw new Error("`@config` cannot be nested.");f.push({id:m.params.slice(1,-1),base:w.base,reference:!!w.reference}),v([]),s|=4;return}}}),ri(t);let u=t.resolveThemeValue;if(t.resolveThemeValue=function(h,v){return h.startsWith("--")?u(h,v):(s|=oi({designSystem:t,base:r,ast:i,sources:n,configs:[],pluginDetails:[]}),t.resolveThemeValue(h,v))},!a.length&&!f.length)return 0;let[c,g]=await Promise.all([Promise.all(f.map(async({id:m,base:h,reference:v})=>{let w=await e(m,h,"config");return{path:m,base:w.base,config:w.module,reference:v}})),Promise.all(a.map(async([{id:m,base:h,reference:v},w])=>{let A=await e(m,h,"plugin");return{path:m,base:A.base,plugin:A.module,options:w,reference:v}}))]);return s|=oi({designSystem:t,base:r,ast:i,sources:n,configs:c,pluginDetails:g}),s}function oi({designSystem:t,base:r,ast:i,sources:e,configs:n,pluginDetails:s}){let a=0,u=[...s.map(b=>{if(!b.options)return{config:{plugins:[b.plugin]},base:b.base,reference:b.reference};if("__isOptionsFunction"in b.plugin)return{config:{plugins:[b.plugin(b.options)]},base:b.base,reference:b.reference};throw new Error(`The plugin "${b.path}" does not accept options`)}),...n],{resolvedConfig:c}=Ut(t,[{config:Xr(t.theme),base:r,reference:!0},...u,{config:{plugins:[ti]},base:r,reference:!0}]),{resolvedConfig:g,replacedThemeKeys:m}=Ut(t,u),h=t.resolveThemeValue;t.resolveThemeValue=function(y,S){if(y[0]==="-"&&y[1]==="-")return h(y,S);let E=w.theme(y,void 0);if(Array.isArray(E)&&E.length===2)return E[0];if(Array.isArray(E))return E.join(", ");if(typeof E=="string")return E};let v={designSystem:t,ast:i,resolvedConfig:c,featuresRef:{set current(b){a|=b}}},w=_t({...v,referenceMode:!1}),A;for(let{handler:b,reference:y}of c.plugins)y?(A||=_t({...v,referenceMode:!0}),b(A)):b(w);if(Rr(t,g,m),Yr(t,g,m),ni(g,t),ii(g,t),ei(g,t),!t.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.`)),!Fn.test(c.prefix))throw new Error(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);t.theme.prefix=c.prefix}if(!t.important&&c.important===!0&&(t.important=!0),typeof c.important=="string"){let b=c.important;I(i,(y,{replaceWith:S,parent:E})=>{if(y.kind==="at-rule"&&!(y.name!=="@tailwind"||y.params!=="utilities"))return E?.kind==="rule"&&E.selector===b?2:(S(F(b,[y])),2)})}for(let b of c.blocklist)t.invalidCandidates.add(b);for(let b of c.content.files){if("raw"in b)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
|
||||
|
||||
${JSON.stringify(b,null,2)}
|
||||
|
||||
This feature is not currently supported.`);let y=!1;b.pattern[0]=="!"&&(y=!0,b.pattern=b.pattern.slice(1)),e.push({...b,negated:y})}return a}var ai=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function pt(t){let r=t.indexOf("{");if(r===-1)return[t];let i=[],e=t.slice(0,r),n=t.slice(r),s=0,a=n.lastIndexOf("}");for(let m=0;m<n.length;m++){let h=n[m];if(h==="{")s++;else if(h==="}"&&(s--,s===0)){a=m;break}}if(a===-1)throw new Error(`The pattern \`${t}\` is not balanced.`);let f=n.slice(1,a),u=n.slice(a+1),c;zn(f)?c=Ln(f):c=K(f,","),c=c.flatMap(m=>pt(m));let g=pt(u);for(let m of g)for(let h of c)i.push(e+h+m);return i}function zn(t){return ai.test(t)}function Ln(t){let r=t.match(ai);if(!r)return[t];let[,i,e,n]=r,s=n?parseInt(n,10):void 0,a=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(e)){let f=parseInt(i,10),u=parseInt(e,10);if(s===void 0&&(s=f<=u?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");if(s>0)for(let c=f;c<=u;c+=s){let g=c.toString();a.push(g)}else for(let c=f;c>=u;c+=s){let g=c.toString();a.push(g)}}return a}var Mn=/^[a-z]+$/,Qe=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(Qe||{});function Wn(){throw new Error("No `loadModule` function provided to `compile`")}function Bn(){throw new Error("No `loadStylesheet` function provided to `compile`")}function qn(t){let r=0,i=null;for(let e of K(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 $e=(f=>(f[f.None=0]="None",f[f.AtApply=1]="AtApply",f[f.AtImport=2]="AtImport",f[f.JsPluginCompat=4]="JsPluginCompat",f[f.ThemeFunction=8]="ThemeFunction",f[f.Utilities=16]="Utilities",f[f.Variants=32]="Variants",f))($e||{});async function si(t,{base:r="",loadModule:i=Wn,loadStylesheet:e=Bn}={}){let n=0;t=[ne({base:r},t)],n|=await Pt(t,r,e);let s=null,a=new He,f=[],u=[],c=null,g=null,m=[],h=[],v=[],w=[],A=null;I(t,(y,{parent:S,replaceWith:E,context:P})=>{if(y.kind==="at-rule"){if(y.name==="@tailwind"&&(y.params==="utilities"||y.params.startsWith("utilities"))){if(g!==null){E([]);return}let _=K(y.params," ");for(let L of _)if(L.startsWith("source(")){let R=L.slice(7,-1);if(R==="none"){A=R;continue}if(R[0]==='"'&&R[R.length-1]!=='"'||R[0]==="'"&&R[R.length-1]!=="'"||R[0]!=="'"&&R[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");A={base:P.sourceBase??P.base,pattern:R.slice(1,-1)}}g=y,n|=16}if(y.name==="@utility"){if(S!==null)throw new Error("`@utility` cannot be nested.");if(y.nodes.length===0)throw new Error(`\`@utility ${y.params}\` is empty. Utilities should include at least one property.`);let _=wr(y);if(_===null)throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`);u.push(_)}if(y.name==="@source"){if(y.nodes.length>0)throw new Error("`@source` cannot have a body.");if(S!==null)throw new Error("`@source` cannot be nested.");let _=!1,L=!1,R=y.params;if(R[0]==="n"&&R.startsWith("not ")&&(_=!0,R=R.slice(4)),R[0]==="i"&&R.startsWith("inline(")&&(L=!0,R=R.slice(7,-1)),R[0]==='"'&&R[R.length-1]!=='"'||R[0]==="'"&&R[R.length-1]!=="'"||R[0]!=="'"&&R[0]!=='"')throw new Error("`@source` paths must be quoted.");let G=R.slice(1,-1);if(L){let z=_?w:v,B=K(G," ");for(let se of B)for(let xe of pt(se))z.push(xe)}else h.push({base:P.base,pattern:G,negated:_});E([]);return}if(y.name==="@variant"&&(S===null?y.nodes.length===0?y.name="@custom-variant":(I(y.nodes,_=>{if(_.kind==="at-rule"&&_.name==="@slot")return y.name="@custom-variant",2}),y.name==="@variant"&&m.push(y)):m.push(y)),y.name==="@custom-variant"){if(S!==null)throw new Error("`@custom-variant` cannot be nested.");E([]);let[_,L]=K(y.params," ");if(!ot.test(_))throw new Error(`\`@custom-variant ${_}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.`);if(y.nodes.length>0&&L)throw new Error(`\`@custom-variant ${_}\` cannot have both a selector and a body.`);if(y.nodes.length===0){if(!L)throw new Error(`\`@custom-variant ${_}\` has no selector or body.`);let R=K(L.slice(1,-1),",");if(R.length===0||R.some(B=>B.trim()===""))throw new Error(`\`@custom-variant ${_} (${R.join(",")})\` selector is invalid.`);let G=[],z=[];for(let B of R)B=B.trim(),B[0]==="@"?G.push(B):z.push(B);f.push(B=>{B.variants.static(_,se=>{let xe=[];z.length>0&&xe.push(F(z.join(", "),se.nodes));for(let Dt of G)xe.push(M(Dt,se.nodes));se.nodes=xe},{compounds:ye([...z,...G])})});return}else{f.push(R=>{R.variants.fromAst(_,y.nodes)});return}}if(y.name==="@media"){let _=K(y.params," "),L=[];for(let R of _)if(R.startsWith("source(")){let G=R.slice(7,-1);I(y.nodes,(z,{replaceWith:B})=>{if(z.kind==="at-rule"&&z.name==="@tailwind"&&z.params==="utilities")return z.params+=` source(${G})`,B([ne({sourceBase:P.base},[z])]),2})}else if(R.startsWith("theme(")){let G=R.slice(6,-1),z=G.includes("reference");I(y.nodes,B=>{if(B.kind!=="aLine truncated
|
||||
`).map((z,B,se)=>`${B===0||B>=se.length-2?" ":">"} ${z}`).join(`
|
||||
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
||||
|
||||
${G}`)}),c?E([]):(c=F(":root, :host",[]),E([c])),1}}});let b=$r(a);if(s&&(b.important=s),w.length>0)for(let y of w)b.invalidCandidates.add(y);n|=await li({designSystem:b,base:r,ast:t,loadModule:i,sources:h});for(let y of f)y(b);for(let y of u)y(b);if(c){let y=[];for(let[E,P]of b.theme.entries())P.options&2||y.push(l(ue(E),P.value));let S=b.theme.getKeyframes();for(let E of S)t.push(ne({theme:!0},[D([E])]));c.nodes=[ne({theme:!0},y)]}if(g){let y=g;y.kind="context",y.context={}}if(m.length>0){for(let y of m){let S=F("&",y.nodes),E=y.params,P=b.parseVariant(E);if(P===null)throw new Error(`Cannot use \`@variant\` with unknown variant: ${E}`);if(Ve(S,P,b.variants)===null)throw new Error(`Cannot use \`@variant\` with variant: ${E}`);Object.assign(y,S)}n|=32}return n|=Ne(t,b),n|=Ue(t,b),I(t,(y,{replaceWith:S})=>{if(y.kind==="at-rule")return y.name==="@utility"&&S([]),1}),{designSystem:b,ast:t,sources:h,root:A,utilitiesNode:g,features:n,inlineCandidates:v}}async function ui(t,r={}){let{designSystem:i,ast:e,sources:n,root:s,utilitiesNode:a,features:f,inlineCandidates:u}=await si(t,r);e.unshift(qe(`! tailwindcss v${jt} | MIT License | https://tailwindcss.com `));function c(w){i.invalidCandidates.add(w)}let g=new Set,m=null,h=0,v=!1;for(let w of u)i.invalidCandidates.has(w)||(g.add(w),v=!0);return{sources:n,root:s,features:f,build(w){if(f===0)return t;if(!a)return m??=ve(e,i,r.polyfills),m;let A=v,b=!1;v=!1;let y=g.size;for(let E of w)if(!i.invalidCandidates.has(E))if(E[0]==="-"&&E[1]==="-"){let P=i.theme.markUsedVariable(E);A||=P,b||=P}else g.add(E),A||=g.size!==y;if(!A)return m??=ve(e,i,r.polyfills),m;let S=pe(g,i,{onInvalidCandidate:c}).astNodes;return!b&&h===S.length?(m??=ve(e,i,r.polyfills),m):(h=S.length,a.nodes=S,m=ve(e,i,r.polyfills),m)}}}async function Hn(t,r={}){let i=ge(t),e=await ui(i,r),n=i,s=t;return{...e,build(a){let f=e.build(a);return f===n||(s=te(f),n=f),s}}}async function Gn(t,r={}){return(await si(ge(t),r)).designSystem}function ze(){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 t in dt)t!=="default"&&(ze[t]=dt[t]);module.exports=ze;
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a,b,c,d,e,f}from"./chunk-3NGYYP5F.mjs";import"./chunk-P5FH2LZE.mjs";import"./chunk-HTB5LLOP.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-B254mqw1.mjs';
|
||||
export { d as PluginAPI, P as PluginsConfig, T as ThemeConfig } from './types-B254mqw1.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 };
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-BIFUA2FY.js';
|
||||
import './colors-b_6i0Oi7.js';
|
||||
|
||||
type Config = UserConfig;
|
||||
type PluginFn = (api: PluginAPI) => void;
|
||||
type PluginWithConfig = {
|
||||
handler: PluginFn;
|
||||
config?: UserConfig;
|
||||
/** @internal */
|
||||
reference?: boolean;
|
||||
};
|
||||
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>;
|
||||
}
|
||||
|
||||
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-b_6i0Oi7.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 };
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
|
||||
|
||||
type Config = UserConfig;
|
||||
type PluginFn = (api: PluginAPI) => void;
|
||||
type PluginWithConfig = {
|
||||
handler: PluginFn;
|
||||
config?: UserConfig;
|
||||
/** @internal */
|
||||
reference?: boolean;
|
||||
};
|
||||
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>;
|
||||
}
|
||||
|
||||
export type { Config as C, Plugin as P, ThemeConfig as T, UserConfig as U, PluginFn as a, PluginWithConfig as b, PluginWithOptions as c, PluginAPI as d };
|
||||
+888
@@ -0,0 +1,888 @@
|
||||
@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-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;
|
||||
}
|
||||
|
||||
/*
|
||||
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;
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"name": "tailwindcss",
|
||||
"version": "4.1.3",
|
||||
"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": {
|
||||
"@types/node": "^20.14.8",
|
||||
"lightningcss": "1.29.2",
|
||||
"dedent": "1.5.3",
|
||||
"@tailwindcss/oxide": "^4.1.3"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "tsc --noEmit",
|
||||
"build": "tsup-node --env.NODE_ENV production",
|
||||
"dev": "tsup-node --env.NODE_ENV development --watch",
|
||||
"test:ui": "playwright test"
|
||||
}
|
||||
}
|
||||
+385
@@ -0,0 +1,385 @@
|
||||
/*
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
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;
|
||||
}
|
||||
+462
@@ -0,0 +1,462 @@
|
||||
@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-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