初始化了 Vue3 脚手架,开始了初步的 WWW 迁移(未完成)
This commit is contained in:
commit
eb53370c43
8714 files changed
+1751206
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Tailwind Labs, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
<p align="center">
|
||||
<a href="https://tailwindcss.com" target="_blank">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-dark.svg">
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg">
|
||||
<img alt="Tailwind CSS" src="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg" width="350" height="70" style="max-width: 100%;">
|
||||
</picture>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
A utility-first CSS framework for rapidly building custom user interfaces.
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci.yml?branch=main" alt="Build Status"></a>
|
||||
<a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
For full documentation, visit [tailwindcss.com](https://tailwindcss.com).
|
||||
|
||||
## Community
|
||||
|
||||
For help, discussion about best practices, or feature ideas:
|
||||
|
||||
[Discuss Tailwind CSS on GitHub](https://github.com/tailwindlabs/tailwindcss/discussions)
|
||||
|
||||
## Contributing
|
||||
|
||||
If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindlabs/tailwindcss/blob/main/.github/CONTRIBUTING.md) **before submitting a pull request**.
|
||||
+1
@@ -0,0 +1 @@
|
||||
function h(n){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(n),i=e.length,r=-1,t,s="",l=e.charCodeAt(0);if(i===1&&l===45)return"\\"+e;for(;++r<i;){if(t=e.charCodeAt(r),t===0){s+="\uFFFD";continue}if(t>=1&&t<=31||t===127||r===0&&t>=48&&t<=57||r===1&&t>=48&&t<=57&&l===45){s+="\\"+t.toString(16)+" ";continue}if(t>=128||t===45||t===95||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){s+=e.charAt(r);continue}s+="\\"+e.charAt(r)}return s}function a(n){return n.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>{if(e.length<=2)return e[1];let i=Number.parseInt(e.slice(1).trim(),16);return i===0||i>1114111||i>=55296&&i<=57343?"\uFFFD":String.fromCodePoint(i)})}var c=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"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function g(n,e){return(c.get(e)??[]).some(i=>n===i||n.startsWith(`${i}-`))}var p=class{constructor(e=new Map,i=new Set([])){this.values=e;this.keyframes=i}values;keyframes;prefix=null;get size(){return this.values.size}add(e,i,r=0,t){if(e.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(r&4){let s=this.values.get(e);if(s&&!(s.options&4))return}i==="initial"?this.values.delete(e):this.values.set(e,{value:i,options:r,src:t})}keysInNamespaces(e){let i=[];for(let r of e){let t=`${r}-`;for(let s of this.values.keys())s.startsWith(t)&&s.indexOf("--",2)===-1&&(g(s,r)||i.push(s.slice(t.length)))}return i}get(e){for(let i of e){let r=this.values.get(i);if(r)return r.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return e=a(this.#i(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#i(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,i){let r=c.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(i!==0&&(this.getOptions(t)&i)!==i)continue;for(let s of r)if(t.startsWith(s))continue e;this.values.delete(t)}}#e(e,i){for(let r of i){let t=e!==null?`${r}-${e}`:r;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${r}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!g(t,r))return t}return null}#t(e){let i=this.values.get(e);if(!i)return null;let r=null;return i.options&2&&(r=i.value),`var(${h(this.prefixKey(e))}${r?`, ${r}`:""})`}markUsedVariable(e){let i=a(this.#i(e)),r=this.values.get(i);if(!r)return!1;let t=r.options&16;return r.options|=16,!t}resolve(e,i,r=0){let t=this.#e(e,i);if(!t)return null;let s=this.values.get(t);return(r|s.options)&1?s.value:this.#t(t)}resolveValue(e,i){let r=this.#e(e,i);return r?this.values.get(r).value:null}resolveWith(e,i,r=[]){let t=this.#e(e,i);if(!t)return null;let s={};for(let u of r){let f=`${t}${u}`,o=this.values.get(f);o&&(o.options&1?s[u]=o.value:s[u]=this.#t(f))}let l=this.values.get(t);return l.options&1?[l.value,s]:[this.#t(t),s]}namespace(e){let i=new Map,r=`${e}-`;for(let[t,s]of this.values)t===e?i.set(null,s.value):t.startsWith(`${r}-`)?i.set(t.slice(e.length),s.value):t.startsWith(r)&&i.set(t.slice(r.length),s.value);return i}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}};export{h as a,a as b,p as c};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a as k}from"./chunk-DCG7AFIE.mjs";var S=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent","currentcolor","canvas","canvastext","linktext","visitedtext","activetext","buttonface","buttontext","buttonborder","field","fieldtext","highlight","highlighttext","selecteditem","selecteditemtext","mark","marktext","graytext","accentcolor","accentcolortext"]),U=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function N(e){return e.charCodeAt(0)===35||U.test(e)||S.has(e.toLowerCase())}function oe(e){return S.has(e.toLowerCase())}var A=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function b(e){return e.indexOf("(")!==-1&&A.some(t=>e.includes(`${t}(`))}function ae(e){if(!A.some(n=>e.includes(n)))return e;let t="",r=[],s=null,m=null;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=48&&a<=57||s!==null&&(a===37||a>=97&&a<=122||a>=65&&a<=90)?s=n:(m=s,s=null),a===40){t+=e[n];let i=n;for(let p=n-1;p>=0;p--){let c=e.charCodeAt(p);if(c>=48&&c<=57)i=p;else if(c>=97&&c<=122)i=p;else break}let o=e.slice(i,n);if(A.includes(o)){r.unshift(!0);continue}else if(r[0]&&o===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(a===41)t+=e[n],r.shift();else if(a===44&&r[0]){t+=", ";continue}else{if(a===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((a===43||a===42||a===47||a===45)&&r[0]){let i=t.trimEnd(),o=i.charCodeAt(i.length-1),p=i.charCodeAt(i.length-2),c=e.charCodeAt(n+1);if((o===101||o===69)&&p>=48&&p<=57){t+=e[n];continue}else if(o===43||o===42||o===47||o===45){t+=e[n];continue}else if(o===40||o===44){t+=e[n];continue}else e.charCodeAt(n-1)===32?t+=`${e[n]} `:o>=48&&o<=57||c>=48&&c<=57||o===41||c===40||c===43||c===42||c===47||c===45||m!==null&&m===n-1?t+=` ${e[n]} `:t+=e[n]}else t+=e[n]}}return t}var E=new Uint8Array(256);function d(e,t){let r=0,s=[],m=0,n=e.length,a=t.charCodeAt(0);for(let i=0;i<n;i++){let o=e.charCodeAt(i);if(r===0&&o===a){s.push(e.slice(m,i)),m=i+1;continue}switch(o){case 92:i+=1;break;case 39:case 34:for(;++i<n;){let p=e.charCodeAt(i);if(p===92){i+=1;continue}if(p===o)break}break;case 40:E[r]=41,r++;break;case 91:E[r]=93,r++;break;case 123:E[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===E[r-1]&&r--;break}}return s.push(e.slice(m)),s}var P={color:N,length:y,percentage:C,ratio:G,number:v,integer:u,url:R,position:Y,"bg-size":Q,"line-width":T,image:F,"family-name":M,"generic-name":H,"absolute-size":$,"relative-size":B,angle:ee,vector:re};function ge(e,t){if(e.startsWith("var("))return null;for(let r of t)if(P[r]?.(e))return r;return null}var z=/^url\(.*\)$/;function R(e){return z.test(e)}function T(e){return d(e," ").every(t=>y(t)||v(t)||t==="thin"||t==="medium"||t==="thick")}var I=/^(?:element|image|cross-fade|image-set)\(/,D=/^(repeating-)?(conic|linear|radial)-gradient\(/;function F(e){let t=0;for(let r of d(e,","))if(!r.startsWith("var(")){if(R(r)){t+=1;continue}if(D.test(r)){t+=1;continue}if(I.test(r)){t+=1;continue}return!1}return t>0}function H(e){return e==="serif"||e==="sans-serif"||e==="monospace"||e==="cursive"||e==="fantasy"||e==="system-uLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
var o={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 none)",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 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{5Line truncated
|
||||
+347
@@ -0,0 +1,347 @@
|
||||
declare const _default: {
|
||||
inherit: string;
|
||||
current: string;
|
||||
transparent: string;
|
||||
black: string;
|
||||
white: string;
|
||||
slate: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
gray: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
zinc: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
neutral: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
stone: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mauve: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
olive: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mist: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
taupe: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
red: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
orange: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
amber: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
yellow: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
lime: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
green: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
emerald: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
teal: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
cyan: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
sky: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
blue: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
indigo: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
violet: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
purple: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
fuchsia: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
pink: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
rose: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
};
|
||||
|
||||
export { _default as _ };
|
||||
+347
@@ -0,0 +1,347 @@
|
||||
declare const _default: {
|
||||
inherit: string;
|
||||
current: string;
|
||||
transparent: string;
|
||||
black: string;
|
||||
white: string;
|
||||
slate: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
gray: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
zinc: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
neutral: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
stone: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mauve: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
olive: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
mist: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
taupe: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
red: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
orange: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
amber: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
yellow: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
lime: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
green: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
emerald: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
teal: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
cyan: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
sky: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
blue: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
indigo: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
violet: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
purple: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
fuchsia: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
pink: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
rose: {
|
||||
'50': string;
|
||||
'100': string;
|
||||
'200': string;
|
||||
'300': string;
|
||||
'400': string;
|
||||
'500': string;
|
||||
'600': string;
|
||||
'700': string;
|
||||
'800': string;
|
||||
'900': string;
|
||||
'950': string;
|
||||
};
|
||||
};
|
||||
|
||||
export { _default as default };
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import { _ as _default } from './colors-C__qRT83.js';
|
||||
|
||||
|
||||
|
||||
export { _default as default };
|
||||
+1
@@ -0,0 +1 @@
|
||||
"use strict";var o={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 none)",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 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.10Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a}from"./chunk-DCG7AFIE.mjs";export{a as default};
|
||||
+1199
File diff suppressed because it is too large.
Load diff
+1199
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
"use strict";var m=new Uint8Array(256);function u(e,c){let t=0,g=[],k=0,d=e.length,w=c.charCodeAt(0);for(let n=0;n<d;n++){let h=e.charCodeAt(n);if(t===0&&h===w){g.push(e.slice(k,n)),k=n+1;continue}switch(h){case 92:n+=1;break;case 39:case 34:for(;++n<d;){let x=e.charCodeAt(n);if(x===92){n+=1;continue}if(x===h)break}break;case 40:m[t]=41,t++;break;case 91:m[t]=93,t++;break;case 123:m[t]=125,t++;break;case 93:case 125:case 41:t>0&&h===m[t-1]&&t--;break}}return g.push(e.slice(k)),g}var l=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,z=new RegExp(`^${l.source}$`);var T=new RegExp(`^${l.source}%$`);var I=new RegExp(`^${l.source}\\s*/\\s*${l.source}$`);var A=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],D=new RegExp(`^${l.source}(${A.join("|")})$`);var C=["deg","rad","grad","turn"],F=new RegExp(`^${l.source}(${C.join("|")})$`);var H=new RegExp(`^${l.source} +${l.source} +${l.source}$`);function i(e){let c=Number(e);return Number.isInteger(c)&&c>=0&&String(c)===String(e)}var f={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 none)",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 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{j as a}from"./chunk-C2OYBFIH.mjs";import"./chunk-DCG7AFIE.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 };
|
||||
+1
@@ -0,0 +1 @@
|
||||
"use strict";function n(r){let i={};for(let[e,t]of Object.entries(r??{}))if(e!=="__CSS_VALUES__")if(typeof t=="object"&&t!==null)for(let[s,l]of Object.entries(n(t)))i[`${e}${s==="DEFAULT"?"":`-${s}`}`]=l;else i[e]=t;if("__CSS_VALUES__"in r)for(let[e,t]of Object.entries(r.__CSS_VALUES__))(Number(t)&4)===0&&(i[e]=r[e]);return i}module.exports=n;
|
||||
+1
@@ -0,0 +1 @@
|
||||
import"./chunk-5JIJA4QV.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};
|
||||
+379
@@ -0,0 +1,379 @@
|
||||
import { S as SourceLocation, U as UserConfig, P as Plugin } from './types-DWdTiksJ.mjs';
|
||||
import { V as Variant, C as Candidate } from './resolve-config-QUZ9b-Gn.mjs';
|
||||
import './colors.mjs';
|
||||
|
||||
declare const enum ThemeOptions {
|
||||
NONE = 0,
|
||||
INLINE = 1,
|
||||
REFERENCE = 2,
|
||||
DEFAULT = 4,
|
||||
STATIC = 8,
|
||||
USED = 16
|
||||
}
|
||||
declare class Theme {
|
||||
#private;
|
||||
private values;
|
||||
private keyframes;
|
||||
prefix: string | null;
|
||||
constructor(values?: Map<string, {
|
||||
value: string;
|
||||
options: ThemeOptions;
|
||||
src: Declaration["src"];
|
||||
}>, keyframes?: Set<AtRule>);
|
||||
get size(): number;
|
||||
add(key: string, value: string, options?: ThemeOptions, src?: Declaration['src']): void;
|
||||
keysInNamespaces(themeKeys: Iterable<ThemeKey>): string[];
|
||||
get(themeKeys: ThemeKey[]): string | null;
|
||||
hasDefault(key: string): boolean;
|
||||
getOptions(key: string): ThemeOptions;
|
||||
entries(): MapIterator<[string, {
|
||||
value: string;
|
||||
options: ThemeOptions;
|
||||
src: Declaration["src"];
|
||||
}]> | [string, {
|
||||
value: string;
|
||||
options: ThemeOptions;
|
||||
src: Declaration["src"];
|
||||
}][];
|
||||
prefixKey(key: string): string;
|
||||
clearNamespace(namespace: string, clearOptions: ThemeOptions): void;
|
||||
markUsedVariable(themeKey: string): boolean;
|
||||
resolve(candidateValue: string | null, themeKeys: ThemeKey[], options?: ThemeOptions): string | null;
|
||||
resolveValue(candidateValue: string | null, themeKeys: ThemeKey[]): string | null;
|
||||
resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
|
||||
namespace(namespace: string): Map<string | null, string>;
|
||||
addKeyframes(value: AtRule): void;
|
||||
getKeyframes(): AtRule[];
|
||||
}
|
||||
type ThemeKey = `--${string}`;
|
||||
|
||||
type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
|
||||
kind: T;
|
||||
}>) => null | void;
|
||||
type CompareFn = (a: Variant, z: Variant) => number;
|
||||
declare const enum Compounds {
|
||||
Never = 0,
|
||||
AtRules = 1,
|
||||
StyleRules = 2
|
||||
}
|
||||
declare class Variants {
|
||||
compareFns: Map<number, CompareFn>;
|
||||
variants: Map<string, {
|
||||
kind: Variant["kind"];
|
||||
order: number;
|
||||
applyFn: VariantFn<any>;
|
||||
compoundsWith: Compounds;
|
||||
compounds: Compounds;
|
||||
}>;
|
||||
private completions;
|
||||
/**
|
||||
* Registering a group of variants should result in the same sort number for
|
||||
* all the variants. This is to ensure that the variants are applied in the
|
||||
* correct order.
|
||||
*/
|
||||
private groupOrder;
|
||||
/**
|
||||
* Keep track of the last sort order instead of using the size of the map to
|
||||
* avoid unnecessarily skipping order numbers.
|
||||
*/
|
||||
private lastOrder;
|
||||
static(name: string, applyFn: VariantFn<'static'>, { compounds, order }?: {
|
||||
compounds?: Compounds;
|
||||
order?: number;
|
||||
}): void;
|
||||
fromAst(name: string, ast: AstNode[], designSystem: DesignSystem): void;
|
||||
functional(name: string, applyFn: VariantFn<'functional'>, { compounds, order }?: {
|
||||
compounds?: Compounds;
|
||||
order?: number;
|
||||
}): void;
|
||||
compound(name: string, compoundsWith: Compounds, applyFn: VariantFn<'compound'>, { compounds, order }?: {
|
||||
compounds?: Compounds;
|
||||
order?: number;
|
||||
}): void;
|
||||
group(fn: () => void, compareFn?: CompareFn): void;
|
||||
has(name: string): boolean;
|
||||
get(name: string): {
|
||||
kind: Variant["kind"];
|
||||
order: number;
|
||||
applyFn: VariantFn<any>;
|
||||
compoundsWith: Compounds;
|
||||
compounds: Compounds;
|
||||
} | undefined;
|
||||
kind(name: string): "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(): MapIterator<string>;
|
||||
entries(): MapIterator<[string, {
|
||||
kind: Variant["kind"];
|
||||
order: number;
|
||||
applyFn: VariantFn<any>;
|
||||
compoundsWith: Compounds;
|
||||
compounds: Compounds;
|
||||
}]>;
|
||||
private set;
|
||||
private nextOrder;
|
||||
}
|
||||
|
||||
declare function compileAstNodes(candidate: Candidate, designSystem: DesignSystem, flags: CompileAstFlags): {
|
||||
node: AstNode;
|
||||
propertySort: {
|
||||
order: number[];
|
||||
count: number;
|
||||
};
|
||||
}[];
|
||||
|
||||
interface CanonicalizeOptions {
|
||||
/**
|
||||
* The root font size in pixels. If provided, `rem` values will be normalized
|
||||
* to `px` values.
|
||||
*
|
||||
* E.g.: `mt-[16px]` with `rem: 16` will become `mt-4` (assuming `--spacing: 0.25rem`).
|
||||
*/
|
||||
rem?: number;
|
||||
/**
|
||||
* Whether to collapse multiple utilities into a single utility if possible.
|
||||
*
|
||||
* E.g.: `mt-2 mr-2 mb-2 ml-2` → `m-2`
|
||||
*/
|
||||
collapse?: boolean;
|
||||
/**
|
||||
* Whether to convert between logical and physical properties when collapsing
|
||||
* utilities.
|
||||
*
|
||||
* E.g.: `mr-2 ml-2` → `mx-2`
|
||||
*/
|
||||
logicalToPhysical?: boolean;
|
||||
}
|
||||
|
||||
interface ClassMetadata {
|
||||
modifiers: string[];
|
||||
}
|
||||
type ClassEntry = [string, ClassMetadata];
|
||||
interface SelectorOptions {
|
||||
modifier?: string;
|
||||
value?: string;
|
||||
}
|
||||
interface VariantEntry {
|
||||
name: string;
|
||||
isArbitrary: boolean;
|
||||
values: string[];
|
||||
hasDash: boolean;
|
||||
selectors: (options: SelectorOptions) => string[];
|
||||
}
|
||||
|
||||
type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
|
||||
kind: T;
|
||||
}>) => AstNode[] | undefined | null;
|
||||
interface SuggestionGroup {
|
||||
supportsNegative?: boolean;
|
||||
values: (string | null)[];
|
||||
modifiers: string[];
|
||||
}
|
||||
type UtilityOptions = {
|
||||
types: string[];
|
||||
};
|
||||
type Utility = {
|
||||
kind: 'static' | 'functional';
|
||||
compileFn: CompileFn<any>;
|
||||
options?: UtilityOptions;
|
||||
};
|
||||
declare class Utilities {
|
||||
private utilities;
|
||||
private completions;
|
||||
static(name: string, compileFn: CompileFn<'static'>): void;
|
||||
functional(name: string, compileFn: CompileFn<'functional'>, options?: UtilityOptions): void;
|
||||
has(name: string, kind: 'static' | 'functional'): boolean;
|
||||
get(name: string): Utility[];
|
||||
getCompletions(name: string): SuggestionGroup[];
|
||||
suggest(name: string, groups: () => SuggestionGroup[]): void;
|
||||
keys(kind: 'static' | 'functional'): string[];
|
||||
}
|
||||
|
||||
declare const enum CompileAstFlags {
|
||||
None = 0,
|
||||
RespectImportant = 1
|
||||
}
|
||||
type DesignSystem = {
|
||||
theme: Theme;
|
||||
utilities: Utilities;
|
||||
variants: Variants;
|
||||
invalidCandidates: Set<string>;
|
||||
important: boolean;
|
||||
getClassOrder(classes: string[]): [string, bigint | null][];
|
||||
getClassList(): ClassEntry[];
|
||||
getVariants(): VariantEntry[];
|
||||
parseCandidate(candidate: string): Readonly<Candidate>[];
|
||||
parseVariant(variant: string): Readonly<Variant> | null;
|
||||
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
||||
printCandidate(candidate: Candidate): string;
|
||||
printVariant(variant: Variant): string;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
candidatesToAst(classes: string[]): AstNode[][];
|
||||
storage: Record<symbol, unknown>;
|
||||
};
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type Rule = StyleRule | AtRule;
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
/**
|
||||
* Line offset tables are the key to generating our source maps. They allow us
|
||||
* to store indexes with our AST nodes and later convert them into positions as
|
||||
* when given the source that the indexes refer to.
|
||||
*/
|
||||
/**
|
||||
* A position in source code
|
||||
*
|
||||
* https://tc39.es/ecma426/#sec-position-record-type
|
||||
*/
|
||||
interface Position {
|
||||
/** The line number, one-based */
|
||||
line: number;
|
||||
/** The column/character number, one-based */
|
||||
column: number;
|
||||
}
|
||||
|
||||
interface OriginalPosition extends Position {
|
||||
source: DecodedSource;
|
||||
}
|
||||
/**
|
||||
* A "decoded" sourcemap
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
||||
*/
|
||||
interface DecodedSourceMap {
|
||||
file: string | null;
|
||||
sources: DecodedSource[];
|
||||
mappings: DecodedMapping[];
|
||||
}
|
||||
/**
|
||||
* A "decoded" source
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-record
|
||||
*/
|
||||
interface DecodedSource {
|
||||
url: string | null;
|
||||
content: string | null;
|
||||
ignore: boolean;
|
||||
}
|
||||
/**
|
||||
* A "decoded" mapping
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
||||
*/
|
||||
interface DecodedMapping {
|
||||
originalPosition: OriginalPosition | null;
|
||||
generatedPosition: Position;
|
||||
name: string | null;
|
||||
}
|
||||
|
||||
interface Config extends UserConfig {
|
||||
}
|
||||
declare const enum Polyfills {
|
||||
None = 0,
|
||||
AtProperty = 1,
|
||||
ColorMix = 2,
|
||||
All = 3
|
||||
}
|
||||
type CompileOptions = {
|
||||
base?: string;
|
||||
from?: string;
|
||||
polyfills?: Polyfills;
|
||||
loadModule?: (id: string, base: string, resourceHint: 'plugin' | 'config') => Promise<{
|
||||
path: string;
|
||||
base: string;
|
||||
module: Plugin | Config;
|
||||
}>;
|
||||
loadStylesheet?: (id: string, base: string) => Promise<{
|
||||
path: string;
|
||||
base: string;
|
||||
content: string;
|
||||
}>;
|
||||
};
|
||||
type Root = null | 'none' | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
};
|
||||
declare const enum Features {
|
||||
None = 0,
|
||||
AtApply = 1,
|
||||
AtImport = 2,
|
||||
JsPluginCompat = 4,
|
||||
ThemeFunction = 8,
|
||||
Utilities = 16,
|
||||
Variants = 32,
|
||||
AtTheme = 64
|
||||
}
|
||||
declare function compileAst(input: AstNode[], opts?: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: Root;
|
||||
features: Features;
|
||||
build(candidates: string[]): AstNode[];
|
||||
}>;
|
||||
|
||||
declare function compile(css: string, opts?: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: Root;
|
||||
features: Features;
|
||||
build(candidates: string[]): string;
|
||||
buildSourceMap(): DecodedSourceMap;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>;
|
||||
declare function postcssPluginWarning(): void;
|
||||
|
||||
export { type Config, type DecodedSourceMap, Features, Polyfills, __unstable__loadDesignSystem, compile, compileAst, postcssPluginWarning as default };
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
declare function postcssPluginWarning(): void;
|
||||
|
||||
export { postcssPluginWarning as default };
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
"use strict";var In=Object.defineProperty;var Dn=(e,i)=>{for(var r in i)In(e,r,{get:i[r],enumerable:!0})};var Bt={};Dn(Bt,{Features:()=>Le,Polyfills:()=>St,__unstable__loadDesignSystem:()=>Va,compile:()=>Ta,compileAst:()=>_n,default:()=>mt});var Rr="4.3.3";function Ln(e){return{kind:"combinator",value:e}}function qt(e){return{kind:"complex",nodes:e}}function Pr(e){return{kind:"compound",nodes:e}}function Kn(e,i){return{kind:"function",value:e,nodes:i}}function zn(e){return{kind:"list",nodes:e}}function xe(e){return{kind:"selector",value:e}}function Or(e){return{kind:"value",value:e}}function Xe(e){return e.kind==="selector"&&e.value.charCodeAt(0)===Xt}function gt(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case Xt:case Fr:case Mr:case jr:case Qt:case Jt:return!1;default:return!0}}function ae(e,i=!1){let r="";for(let t of e)switch(t.kind){case"selector":case"value":{r+=t.value;break}case"combinator":{i||t.value===" "?r+=t.value:r+=` ${t.value} `;break}case"function":{r+=`${t.value}(${ae(t.nodes,i)})`;break}case"complex":case"compound":{r+=ae(t.nodes,i);break}case"list":{r+=t.nodes.map(n=>ae([n],i)).join(i?",":", ");break}}return r}var _r=92,Mn=93,Ir=41,Qt=58,Dr=44,jn=34,Mr=46,Ur=62,Gt=10,jr=35,Jt=91,Lr=40,Kr=43,Fn=39,Ht=32,Zt=9,zr=126,Fr=38,Xt=42;function fe(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let i=[],r=i,t=!1,n=[],s=null,l="",f;function u(d=r){return d.length===1?d[0]:t?qt(d):Pr(d)}function p(d){let m=r[r.length-1];m?.kind==="compound"?m.nodes.push(d):m&&m.kind!=="list"&&m.kind!=="combinator"?r[r.length-1]=Pr([m,d]):r.push(d)}for(let d=0;d<e.length;d++){let m=e.charCodeAt(d);switch(m){case Dr:{for(l.length>0&&(p(xe(l)),l="");d+1<e.length&&(f=e.charCodeAt(d+1),!(f!==Gt&&f!==Ht&&f!==Zt));d++);if(s)s.nodes.push(u()),r=[],t=!1;else{let c=r.splice(0),v=u(c),h=zn([v]);r.push(h),s=h,r=[],t=!1}break}case Ur:case Gt:case Ht:case Kr:case Zt:case zr:{l.length>0&&(p(xe(l)),l="");let c=d,v=d+1;for(;v<e.length&&(f=e.charCodeAt(v),!(f!==Ur&&f!==Gt&&f!==Ht&&f!==Kr&&f!==Zt&&f!==zr));v++);d=v-1;let h=e.slice(c,v).trim();if(h===""&&(r.length===0||v>=e.length||e.charCodeAt(v)===Dr))break;r.push(Ln(h===""?" ":h)),t=!0;break}case Lr:{let c=Kn(l,[]);if(l="",c.value!==":not"&&c.value!==":where"&&c.value!==":has"&&c.value!==":is"){let v=d+1,h=0;for(let S=d+1;S<e.length;S++){if(f=e.charCodeAt(S),f===Lr){h++;continue}if(f===Ir){if(h===0){d=S;break}h--}}let b=d,y=e.slice(v,b);if(c.value===":nth-child"||c.value===":nth-last-child"){let S=y.indexOf("of ");if(S!==-1){c.nodes.push(Or(y.slice(0,S+3)),...fe(y.slice(S+3))),l="",d=b,p(c);break}}c.nodes.push(Or(y)),l="",d=b,p(c);break}p(c),n.push({target:r,currentList:s,containsCombinator:t}),r=c.nodes,t=!1,s=null;break}case Ir:{l.length>0&&(p(xe(l)),l=""),s?s.nodes.push(u()):t&&r.splice(0,r.length,qt(r.splice(0)));let c=n.pop();r=c?.target??i,s=c?.currentList??null,t=c?.containsCombinator??!1;break}case Mr:case Qt:case jr:{if(m===Qt&&l===":"){l+=e[d];break}l.length>0&&p(xe(l)),l=e[d];break}case Jt:{l.length>0&&(p(xe(l)),l="");let c=d,v=0;for(let h=d+1;h<e.length;h++){if(f=e.charCodeAt(h),f===Jt){v++;continue}if(f===Mn){if(v===0){d=h;break}v--}}p(xe(e.slice(c,d+1)));break}case Fn:case jn:{let c=d;for(let v=d+1;v<e.length;v++)if(f=e.charCodeAt(v),f===_r)v+=1;else if(f===m){d=v;break}l+=e.slice(c,d+1);break}case Fr:case Xt:{l.length>0&&(p(xe(l)),l=""),p(xe(e[d]));break}case _r:{l+=e[d]+e[d+1],d+=1;break}default:l+=e[d]}}return l.length>0&&p(xe(l)),s?s.nodes.push(u()):t&&r.splice(0,r.length,qt(r.splice(0))),i}function ht(e){let i=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&i.push(n+1);function r(n){let s=0,l=i.length;for(;l>0;){let u=(l|0)>>1,p=s+u;i[p]<=n?(s=p+1,l=l-u-1):l=u}s-=1;let f=n-i[s];return{line:s+1,column:f}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),i.length-1);let l=i[n],f=i[n+1]??l;return Math.min(Math.max(l+s,0),f)}return{find:r,findOffset:t}}var et=92,vt=47,kt=42,Wr=34,Br=39,Wn=58,bt=59,ge=10,wt=13,tt=32,rt=9,Yr=123,tr=125,nr=40,qr=41,Bn=91,Yn=93,Gr=45,rr=64,qn=33,he=class e extends Error{loc;constructor(i,r){if(r){let t=r[0],n=ht(t.code).find(r[1]);i=`${t.file}:${n.line}:${n.column+1}: ${i}`}super(i),this.name="CssSyntaxError",this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Ie(e,i){let r=i?.from?{file:i.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],l=null,f=null,u="",p="",d=0,m;for(let c=0;c<e.length;c++){let v=e.charCodeAt(c);if(!(v===wt&&(m=e.charCodeAt(c+1),m===ge)))if(v===et)u===""&&(d=c),u+=e.slice(c,c+2),c+=1;else if(v===vt&&e.charCodeAt(c+1)===kt){let h=c;for(let y=c+2;y<e.length;y++)if(m=e.charCodeAt(y),m===et)y+=1;else if(m===kt&&e.charCodeAt(y+1)===vt){c=y+1;break}let b=e.slice(h,c+1);if(b.charCodeAt(2)===qn){let y=yt(b.slice(2,-2));n.push(y),r&&(y.src=[r,h,c+1],y.dst=[r,h,c+1])}}else if(v===Br||v===Wr){let h=Hr(e,c,v,r);u+=e.slice(c,h+1),c=h}else{if((v===tt||v===ge||v===rt)&&(m=e.charCodeAt(c+1))&&(m===tt||m===ge||m===rt||m===wt&&(m=e.charCodeAt(c+2))&&m==ge))continue;if(v===ge){if(u.length===0)continue;m=u.charCodeAt(u.length-1),m!==tt&&m!==ge&&m!==rt&&(u+=" ")}else if(v===Gr&&e.charCodeAt(c+1)===Gr&&u.length===0){let h="",b=c,y=-1;for(let x=c+2;x<e.length;x++)if(m=e.charCodeAt(x),m===et)x+=1;else if(m===Br||m===Wr)x=Hr(e,x,m,r);else if(m===vt&&e.charCodeAt(x+1)===kt){for(let w=x+2;w<e.length;w++)if(m=e.charCodeAt(w),m===et)w+=1;else if(m===kt&&e.charCodeAt(w+1)===vt){x=w+1;break}}else if(y===-1&&m===Wn)y=u.length+x-b;else if(m===bt&&h.length===0){u+=e.slice(b,x),c=x;break}else if(m===nr)h+=")";else if(m===Bn)h+="]";else if(m===Yr)h+="}";else if((m===tr||e.length-1===x)&&h.length===0){c=x-1,u+=e.slice(b,x);break}else(m===qr||m===Yn||m===tr)&&h.length>0&&e[x]===h[h.length-1]&&(h=h.slice(0,-1));let S=ir(u,y);if(!S)throw new he("Invalid custom property, expected a value",r?[r,b,c]:null);r&&(S.src=[r,b,c],S.dst=[r,b,c]),l?l.nodes.push(S):t.push(S),u=""}else if(v===bt&&u.charCodeAt(0)===rr)f=it(u),r&&(f.src=[r,d,c],f.dst=[r,d,c]),l?l.nodes.push(f):t.push(f),u="",f=null;else if(v===bt&&p[p.length-1]!==")"){let h=ir(u);if(!h){if(u.length===0)continue;throw new he(`Invalid declaration: \`${u.trim()}\``,r?[r,d,c]:null)}r&&(h.src=[r,d,c],h.dst=[r,d,c]),l?l.nodes.push(h):t.push(h),u=""}else if(v===Yr&&p[p.length-1]!==")")p+="}",f=Z(u.trim()),r&&(f.src=[r,d,c],f.dst=[r,d,c]),l&&l.Line truncated
|
||||
`,`
|
||||
`);let i=[],r=[],t=null,n="",s;for(let l=0;l<e.length;l++){let f=e.charCodeAt(l);switch(f){case Jr:{n+=e[l]+e[l+1],l++;break}case el:{if(n.length>0){let p=ne(n);t?t.nodes.push(p):i.push(p),n=""}let u=ne(e[l]);t?t.nodes.push(u):i.push(u);break}case Xr:case ei:case ti:case ri:case ii:case ni:case li:case oi:{if(n.length>0){let m=ne(n);t?t.nodes.push(m):i.push(m),n=""}let u=l,p=l+1;for(;p<e.length&&(s=e.charCodeAt(p),!(s!==Xr&&s!==ei&&s!==ti&&s!==ri&&s!==ii&&s!==ni&&s!==li&&s!==oi));p++);l=p-1;let d=Hn(e.slice(u,p));t?t.nodes.push(d):i.push(d);break}case Xn:case Qn:{let u=l;for(let p=l+1;p<e.length;p++)if(s=e.charCodeAt(p),s===Jr)p+=1;else if(s===f){l=p;break}n+=e.slice(u,l+1);break}case Jn:{let u=Gn(n,[]);n="",t?t.nodes.push(u):i.push(u),r.push(u),t=u;break}case Zn:{let u=r.pop();if(n.length>0){let p=ne(n);u?.nodes.push(p),n=""}r.length>0?t=r[r.length-1]:t=null;break}default:n+=String.fromCharCode(f)}}return n.length>0&&i.push(ne(n)),i}var or=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(or||{}),$={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function O(e,i){typeof i=="function"?ai(e,i):ai(e,i.enter,i.exit)}function ai(e,i=()=>$.Continue,r=()=>$.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,index:0,siblings:e,path(){let s=[],l=t;for(;l;){let f=l.value[2];f&&s.push(f),l=l.prev}return s.reverse(),s}};for(;t!==null;){let s=t.value,l=s[0],f=s[1],u=s[2];if(f>=l.length){t=t.prev,n.depth-=1;continue}if(n.parent=u,n.siblings=l,f>=0){n.index=f;let c=l[f],v=i(c,n)??$.Continue;switch(v.kind){case 0:{c.nodes&&c.nodes.length>0&&(n.depth+=1,t={value:[c.nodes,0,c],prev:t}),s[1]=~f;continue}case 2:return;case 1:{s[1]=~f;continue}case 3:{l.splice(f,1,...v.nodes);continue}case 5:{l.splice(f,1,...v.nodes);return}case 4:{l.splice(f,1,...v.nodes),s[1]+=v.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${or[v.kind]??`Unknown(${v.kind})`}\` in enter.`)}}let p=~f;n.index=p;let d=l[p],m=r(d,n)??$.Continue;switch(m.kind){case 0:s[1]=p+1;continue;case 2:return;case 3:{l.splice(p,1,...m.nodes),s[1]=p+m.nodes.length;continue}case 5:{l.splice(p,1,...m.nodes);return}case 4:{l.splice(p,1,...m.nodes),s[1]=p+m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${or[m.kind]??`Unknown(${m.kind})`}\` in exit.`)}}}var tl=new L(e=>{let i=[];return O(j(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return O(r.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||i.push(t.value)}),$.Skip}),i});function Ct(e){return tl.get(e)}var rl=64,il=124;function H(e,i=[]){return{kind:"rule",selector:e,nodes:i}}function B(e,i="",r=[]){return{kind:"at-rule",name:e,params:i,nodes:r}}function Z(e,i=[]){return e.charCodeAt(0)===rl?it(e,i):H(e,i)}function o(e,i,r=!1){return{kind:"declaration",property:e,value:i,important:r}}function yt(e){return{kind:"comment",value:e}}function be(e,i){return{kind:"context",context:e,nodes:i}}function Y(e){return{kind:"at-root",nodes:e}}function re(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function lt(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let i={};for(let r of e.path())r.kind==="context"&&Object.assign(i,r.context);return Object.defineProperty(this,"context",{value:i}),i},get parent(){let i=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:i}),i},path(){return e.path().filter(i=>i.kind!=="context")}}}function De(e,i,r=3){let t=[],n=new Set,s=new L(()=>new Set),l=new L(()=>new Set),f=new Set,u=new Set,p=[],d=[],m=new L(()=>new Set);function c(h,b,y={},S=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(y.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}y.keyframes||s.get(b).add(h)}if(h.value.includes("var("))if(y.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let x of Ct(h.value))m.get(x).add(h.property);else i.trackUsedVariables(h.value);if(h.property==="animation")for(let x of si(h.value))u.add(x);r&2&&!y.supportsColorMix&&!y.keyframes&&h.value.includes("color-mix(")&&l.get(b).add(h),b.push(h)}else if(h.kind==="rule"){let x=[];for(let w of h.nodes)c(w,Line truncated
|
||||
`,i){r+=p.length;let d=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let m=r;r+=2,l.dst=[t,d,m]}}else if(l.kind==="rule"){if(u+=`${p}${l.selector} {
|
||||
`,i){r+=p.length;let d=r;r+=l.selector.length,r+=1;let m=r;l.dst=[t,d,m],r+=2}for(let d of l.nodes)u+=n(d,f+1);u+=`${p}}
|
||||
`,i&&(r+=p.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let d=`${p}${l.name} ${l.params};
|
||||
`;if(i){r+=p.length;let m=r;r+=l.name.length,r+=1,r+=l.params.length;let c=r;r+=2,l.dst=[t,m,c]}return d}if(u+=`${p}${l.name}${l.params?` ${l.params} `:" "}{
|
||||
`,i){r+=p.length;let d=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let m=r;l.dst=[t,d,m],r+=2}for(let d of l.nodes)u+=n(d,f+1);u+=`${p}}
|
||||
`,i&&(r+=p.length,r+=2)}else if(l.kind==="comment"){if(u+=`${p}/*${l.value}*/
|
||||
`,i){r+=p.length;let d=r;r+=2+l.value.length+2;let m=r;l.dst=[t,d,m],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return u}let s="";for(let l of e)s+=n(l,0);return t.code=s,s}function al(e,i){let r=[];return O(e,(t,n)=>{if(i(t))return r=n.path(),r.push(t),$.Stop}),r}function ui(e,i,r,t=new Set){if(t.has(e)||(t.add(e),i.getOptions(e)&24))return!0;{let s=r.get(e)??[];for(let l of s)if(ui(l,i,r,t))return!0}return!1}function si(e){return e.split(/[\s,]+/)}var ar=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function ot(e){return e.indexOf("(")!==-1&&ar.some(i=>e.includes(`${i}(`))}function $t(e){if(!ar.some(s=>e.includes(s)))return e;let i="",r=[],t=null,n=null;for(let s=0;s<e.length;s++){let l=e.charCodeAt(s);if(l>=48&&l<=57||t!==null&&(l===37||l>=97&&l<=122||l>=65&&l<=90)?t=s:(n=t,t=null),l===40){i+=e[s];let f=s;for(let p=s-1;p>=0;p--){let d=e.charCodeAt(p);if(d>=48&&d<=57)f=p;else if(d>=97&&d<=122)f=p;else break}let u=e.slice(f,s);if(ar.includes(u)){r.unshift(!0);continue}else if(r[0]&&u===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(l===41)i+=e[s],r.shift();else if(l===44&&r[0]){i+=", ";continue}else{if(l===32&&r[0]&&i.charCodeAt(i.length-1)===32)continue;if((l===43||l===42||l===47||l===45)&&r[0]){let f=i.trimEnd(),u=f.charCodeAt(f.length-1),p=f.charCodeAt(f.length-2),d=e.charCodeAt(s+1);if((u===101||u===69)&&p>=48&&p<=57){i+=e[s];continue}else if(u===43||u===42||u===47||u===45){i+=e[s];continue}else if(u===40||u===44){i+=e[s];continue}else e.charCodeAt(s-1)===32?i+=`${e[s]} `:u>=48&&u<=57||d>=48&&d<=57||u===41||d===40||d===43||d===42||d===47||d===45||n!==null&&n===s-1?i+=` ${e[s]} `:i+=e[s]}else i+=e[s]}}return i}function Ne(e){if(e.indexOf("(")===-1)return Fe(e);let i=j(e);return sr(i),e=F(i),e=$t(e),e}function Fe(e,i=!1){let r="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(r+="_",t+=1):n==="_"&&!i?r+=" ":r+=n}return r}function sr(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=Fe(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=Fe(i.value);for(let r=0;r<i.nodes.length;r++){if(r==0&&i.nodes[r].kind==="word"){i.nodes[r].value=Fe(i.nodes[r].value,!0);continue}sr([i.nodes[r]])}break}i.value=Fe(i.value),sr(i.nodes);break}case"separator":case"word":{i.value=Fe(i.value);break}default:sl(i)}}function sl(e){throw new Error(`Unexpected value: ${e}`)}var ur=new Uint8Array(256);function Ce(e){let i=0,r=e.length;for(let t=0;t<r;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<r;){let s=e.charCodeAt(t);if(s===92){t+=1;continue}if(s===n)break}break;case 40:ur[i]=41,i++;break;case 91:ur[i]=93,i++;break;case 123:break;case 93:case 125:case 41:if(i===0)return!1;i>0&&n===ur[i-1]&&i--;break;case 59:if(i===0)return!1;break}}return!0}var ul=58,ci=45,fi=97,pi=122,pr=/^[a-zA-Z0-9_.%-]+$/;function Be(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(We),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(We),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(We),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function We(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:We(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*di(e,i){let r=K(e,":");if(i.theme.prefix){if(r.length===1||r[0]!==i.theme.prefix)return null;r.shift()}let t=r.pop(),n=[];for(let m=r.length-1;m>=0;--m){let c=i.parseVariant(r[m]);if(c===null)return;n.push(c)}let s=!1;t[t.length-1]==="!"?(s=!0,t=t.slice(0,-1)):t[0]==="!"&&(s=!0,t=t.slice(1)),i.utilities.has(t,"static")&&!t.includes("[")&&(yield{kind:"static",root:t,variants:n,important:s,raw:e});let[l,f=null,u]=K(t,"/");if(u)return;let p=f===null?null:cr(f);if(f!==null&&p===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let m=l.charCodeAt(1);if(m!==ci&&!(m>=fi&&m<=pi))return;l=l.slice(1,-1);let c=l.indexOf(":");if(c===-1||c===0||c===l.length-1)return;let v=l.slice(0,c),h=Ne(l.slice(c+1));if(!Ce(h))return;
Line truncated
|
||||
Only valid data types are: ${vr.map(b=>`"${b}"`).join(", ")}.
|
||||
`);let p=u.value,d=structuredClone(l),m="\xB6";O(d.nodes,b=>{if(b.kind==="word"&&b.value===p)return $.ReplaceSkip({kind:"word",value:m})});let c="^".repeat(F([u]).length),v=F([d]).indexOf(m),h=["```css",F([l])," ".repeat(v)+c,"```"].join(`
|
||||
`);console.warn(h)}}),n.value=F(s)}),r.utilities.functional(i.slice(0,-2),n=>{let s=re(e),l=n.value,f=n.modifier,u=!1,p=!1,d=!1,m=!1,c=new Map,v=!1;if(O([s],(h,b)=>{let y=b.parent;if(y?.kind!=="rule"&&y?.kind!=="at-rule"||h.kind!=="declaration"||!h.value)return;let S=!1,x=j(h.value);if(O(x,w=>{if(w.kind==="function"){if(w.value==="--value"){u=!0;let I=Ai(l,w,r);return I?(p=!0,I.ratio?v=!0:c.set(h,y),$.ReplaceSkip(I.nodes)):(S=!0,$.Stop)}else if(w.value==="--modifier"){d=!0;let I=Ai(f,w,r);return I?(m=!0,$.ReplaceSkip(I.nodes)):(S=!0,$.Stop)}}}),S)return $.ReplaceSkip([]);h.value=F(x)}),!u||!p||d&&!m&&f!==null||v&&m||f&&!v&&!m)return null;if(v)for(let[h,b]of c){let y=b.nodes.indexOf(h);y!==-1&&b.nodes.splice(y,1)}return s.nodes}),r.utilities.suggest(i.slice(0,-2),()=>{let n=[],s=[];for(let[l,{literals:f,usedSpacingNumber:u,usedSpacingInteger:p,themeKeys:d}]of[[n,t["--value"]],[s,t["--modifier"]]]){for(let m of f)l.push(m);if(u)l.push(...Rt);else if(p)for(let m of Rt)P(m)&&l.push(m);for(let m of r.theme.keysInNamespaces(d))l.push(m.replace(Si,(c,v,h)=>`${v}.${h}`))}return[{values:n,modifiers:s}]})}:eo(i)?r=>{r.utilities.static(i,()=>e.nodes.map(re))}:null}function Ai(e,i,r){if(e===null){for(let t of i.nodes)if(t.kind==="function"&&t.value==="--default")return{nodes:t.nodes};return}for(let t of i.nodes){if(e.kind==="named"&&t.kind==="word"&&(t.value[0]==="'"||t.value[0]==='"')&&t.value[t.value.length-1]===t.value[0]&&t.value.slice(1,-1)===e.value)return{nodes:j(e.value)};if(e.kind==="named"&&t.kind==="word"&&t.value[0]==="-"&&t.value[1]==="-"){let n=t.value;if(n.endsWith("-*")){n=n.slice(0,-2);let s=r.theme.resolve(e.value,[n]);if(s)return{nodes:j(s)}}else{let s=n.split("-*");if(s.length<=1)continue;let l=[s.shift()],f=r.theme.resolveWith(e.value,l,s);if(f){let[,u={}]=f;{let p=u[s.pop()];if(p)return{nodes:j(p)}}}}}else if(e.kind==="named"&&t.kind==="word"){if(!vr.includes(t.value))continue;let n=t.value==="ratio"&&"fraction"in e?e.fraction:e.value;if(!n)continue;let s=Q(n,[t.value]);if(s===null)continue;if(s==="ratio"){let[l,f]=K(n,"/").map(Number);if(!P(l)||!P(f))continue}else{if(s==="number"&&!J(n))continue;if(s==="percentage"&&!P(n.slice(0,-1)))continue}if(s==="ratio"){let[l,f]=K(n,"/");return{nodes:j(`${l.trim()} / ${f.trim()}`),ratio:!0}}return{nodes:j(n),ratio:!1}}else if(e.kind==="arbitrary"&&t.kind==="word"&&t.value[0]==="["&&t.value[t.value.length-1]==="]"){let n=t.value.slice(1,-1);if(n==="*")return{nodes:j(e.value)};if("dataType"in e&&e.dataType&&e.dataType!==n)continue;if("dataType"in e&&e.dataType)return{nodes:j(e.value)};if(Q(e.value,[n])!==null)return{nodes:j(e.value)}}}}function Te(e,i,r,t,n=""){let s=!1,l=ut(i,u=>r==null?t(u):u.startsWith("current")?t(X(u,r)):((u.startsWith("var(")||r.startsWith("var("))&&(s=!0),t(Ci(u,r))));function f(u){return n?K(u,",").map(p=>n.trim()+" "+p.trim()).join(", "):u}return s?[o(e,f(ut(i,t))),Z("@supports (color: lab(from red l a b))",[o(e,f(l))])]:[o(e,f(l))]}function Vt(e,i,r,t,n=""){let s=!1,l=K(i,",").map(f=>ut(f,u=>r==null?t(u):u.startsWith("current")?t(X(u,r)):((u.startsWith("var(")||r.startsWith("var("))&&(s=!0),t(Ci(u,r))))).map(f=>`drop-shadow(${f})`).join(" ");return s?[o(e,n+K(i,",").map(f=>`drop-shadow(${ut(f,t)})`).join(" ")),Z("@supports (color: lab(from red l a b))",[o(e,n+l)])]:[o(e,n+l)]}var Vi=/^-?[a-z][a-zA-Z0-9_-]*/,Bl=37,Yl=47,ql=46,Gl=97,Hl=122,Zl=65,Ql=90,Nt=48,Et=57,Jl=95,Xl=45;function eo(e){let i=Vi.exec(e);if(i===null)return!1;let r=i[0],t=e.slice(r.length);if(t.length===0&&r.endsWith("-"))return!1;if(t.length===0)return!0;let n=!1;for(let s=0;s<t.length;s++){let l=t.charCodeAt(s);switch(l){case Bl:{if(s!==t.length-1)return!1;let u=(t[s-1]||r[r.length-1]||"").charCodeAt(0);if(u<Nt||u>Et)return!1;break}case Yl:{if(s===t.length-1||n)return!1;n=!0;break}case ql:{let u=(t[s-1]||r[r.length-1]||"").charCodeAt(0);if(u<Nt||u>Et)return!1;let d=(t[s+1]||"").charCodeAt(0);if(d<Nt||d>Et)return!1;break}case Jl:case Xl:continue;default:{if(l>=Gl&&l<=Hl||l>=Zl&&l<=Ql||l>=Nt&&l<=Et)continue;return!1}}}return!0}function to(e){if(!e.endsWith("-*"))return!1;e=e.slice(0,-2);let i=Vi.exec(e);if(i===null)return!1;let r=i[0];return e.slice(r.length).length===0}var kr={"--alpha":ro,"--spacing":io,"--theme":no,theme:lo};function ro(e,i,r,...t){let[n,s]=K(r,"/").map(l=>l.trim());if(!n||!s)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);if(t.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);return X(n,s)}function io(e,i,r,...t){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(t.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${t.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variaLine truncated
|
||||
`),s=!0;return O(j(t),l=>{if(l.kind==="function"&&l.value==="var"){let f=l.nodes[0].value;if(!new RegExp(`var\\(${f}[,)]\\s*`,"g").test(n)||n.includes(`${f}:`))return s=!1,$.Stop}}),s}function Lo(e,i){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=i.designSystem,t=r.storage[Ar].get(i.signatureOptions),n=r.storage[we].get(i.signatureOptions),s=r.storage[ft].get(i.signatureOptions),l=r.printCandidate(e),f=n.get(l);if(typeof f!="string")return e;for(let p of u(f,e))if(s(e,p))return p;return e;function*u(p,d){let m=t.get(p);if(m.length>1){let c;for(let v of m)if(v[0]!=="-"){if(c)return;c=v}if(c)for(let v of me(r,c))yield v;return}if(m.length===0&&d.modifier){let c={...d,modifier:null},v=n.get(r.printCandidate(c));if(typeof v=="string")for(let h of u(v,c))yield Object.assign({},h,{modifier:d.modifier})}if(m.length===1)for(let c of me(r,m[0]))yield c}}var Ko=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),zo=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Mo(e){let i=Ko.get(e);i&&(yield i);for(let[r,t]of zo){let n=e.replace(r,t);n!==e&&(yield n)}}function jo(e,i){let r=i.designSystem,t=r.storage[ft].get(i.signatureOptions),n=Qi(r,e);for(let s of Mo(n)){if(!t(e,s))continue;let[l]=me(r,s);return l}return e}function Fo(e,i){let r=i.designSystem,t=r.storage[Kt],n=r.storage[tn],s=Lt(e);for(let[l]of s){if(l.kind==="compound")continue;let f=r.printVariant(l),u=t.get(f);if(typeof u!="string")continue;let p=n.get(u);if(p.length!==1)continue;let d=p[0],m=r.parseVariant(d);m!==null&&de(l,m)}return e}function Wo(e,i){let r=i.designSystem,t=r.storage[we].get(i.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=r.printCandidate({...e,value:{...e.value,dataType:null}});t.get(r.printCandidate(e))===t.get(n)&&(e.value.dataType=null)}return e}function Bo(e,i){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=i.designSystem,t=r.storage[we].get(i.signatureOptions),n=t.get(r.printCandidate(e));if(n===null)return e;for(let s of Xi(e))if(t.get(r.printCandidate({...e,value:s}))===n)return e.value=s,e;return e}function Yo(e){let i=Lt(e);for(let[r]of i)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[t,n]=K(r.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*Xi(e,i=e.value?.value??"",r=new Set){if(r.has(i))return;if(r.add(i),yield{kind:"named",value:i,fraction:null},i.endsWith("%")&&J(i.slice(0,-1))&&(yield{kind:"named",value:i.slice(0,-1),fraction:null}),i.includes("/")){let[s,l]=i.split("/");P(s)&&P(l)&&(yield{kind:"named",value:s,fraction:`${s}/${l}`})}let t=new Set;for(let s of i.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(s[0].trim());let n=Array.from(t).sort((s,l)=>s.length-l.length);for(let s of n)yield*Xi(e,s,r)}function Fi(e){return!(e.length===1&&e[0].kind==="list")}function It(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function qo(e,i){let r=[e],t=i.designSystem,n=t.storage[Kt],s=Lt(e);for(let[l,f]of s)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let u=fe(l.selector);if(!Fi(u))continue;if(u.length===1&&u[0].kind==="complex"&&(u=u[0].nodes),f===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value===">"&&u[2].kind==="selector"&&u[2].value==="*"){de(l,t.parseVariant("*"));continue}if(f===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value===" "&&u[2].kind==="selector"&&u[2].value==="*"){de(l,t.parseVariant("**"));continue}if(f===null&&u.length===1&&u[0].kind==="compound"&&u[0].nodes.length===2&&u[0].nodes[0].kind==="selector"&&u[0].nodes[0].value==="&"&&u[0].nodes[1].kind==="function"&&u[0].nodes[1].value===":has"&&u[0].nodes[1].nodes.length===1&&u[0].nodes[1].nodes[0].kind==="selector"){de(l,t.parseVariant(`has-[${ae(u[0].nodes[1].nodes,!0)}]`));continue}if(f===null&&u.length===3&&u[0].kind==="selector"&&u[1].kind==="combinator"&&u[1].value===" "&&u[2].kind==="selector"&&u[2].value==="&"){u.pop(),u.pop(),de(l,t.parseVariant(`in-[${ae(u,!0)}]`));continue}if(f===null&&u[0].kind==="selector"&&(u[0].value==="@media"||u[0].value==="@supports")){let c=n.get(t.pri
Line truncated
|
||||
|
||||
${ue([m])}
|
||||
Relies on:
|
||||
|
||||
${ue([v])}`)}p.add(m);for(let v of s.get(m))for(let h of l.get(v))c.push(m),d(h,c),c.pop();f.add(m),p.delete(m),u.push(m)}}for(let m of n)d(m);for(let m of u)"nodes"in m&&O(m.nodes,c=>{if(c.kind!=="at-rule"||c.name!=="@apply")return;let v=c.params.split(/(\s+)/g),h={},b=[],y=[],S=0;for(let[w,I]of v.entries())w%2===0&&(I[0]==="-"&&I[1]==="-"?y.push(I):b.push(I),h[I]=S),S+=I.length;if(y.length){if(b.length===0)return $.Skip;let w=y.join(" ");throw new Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${w}\` into a separate rule.`)}if(c.nodes.length>0&&b.length){let w=b.join(" ");throw new Error(`The rule \`@apply ${w}\` must not have a body.`)}{let w=Object.keys(h),I=Oe(w,i,{respectImportant:!1,onInvalidCandidate:E=>{if(i.theme.prefix&&!E.startsWith(i.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${E}\`. Did you mean \`${i.theme.prefix}:${E}\`?`);if(i.invalidCandidates.has(E))throw new Error(`Cannot apply utility class \`${E}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let M=K(E,":");if(M.length>1){let G=M.pop();if(i.candidatesToCss([G])[0]){let q=i.candidatesToCss(M.map(ie=>`${ie}:[--tw-variant-check:1]`)),ee=M.filter((ie,a)=>q[a]===null);if(ee.length>0){if(ee.length===1)throw new Error(`Cannot apply utility class \`${E}\` because the ${ee.map(ie=>`\`${ie}\``)} variant does not exist.`);{let ie=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${E}\` because the ${ie.format(ee.map(a=>`\`${a}\``))} variants do not exist.`)}}}}throw i.theme.size===0?new Error(`Cannot apply unknown utility class \`${E}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${E}\``)}}),D=c.src,_=I.astNodes.map(E=>{let M=I.nodeSorting.get(E)?.candidate,G=M?h[M]:void 0;if(E=re(E),!D||!M||G===void 0)return O([E],ee=>{ee.src=D}),E;let q=[D[0],D[1],D[2]];return q[1]+=7+G,q[2]=q[1]+M.length,O([E],ee=>{ee.src=q}),E}),z=[];for(let E of _)if(E.kind==="rule")for(let M of E.nodes)z.push(M);else z.push(E);return $.Replace(z)}});return r}function*pn(e,i){for(let r of e.params.split(/\s+/g))for(let t of i.parseCandidate(r))switch(t.kind){case"arbitrary":break;case"static":case"functional":yield t.root;break;default:}}async function Tr(e,i,r,t=0,n=!1){let s=0,l=[];return O(e,f=>{if(f.kind==="at-rule"&&(f.name==="@import"||f.name==="@reference")){let u=ca(j(f.params));if(u===null)return;f.name==="@reference"&&(u.media="reference"),s|=2;let{uri:p,layer:d,media:m,supports:c}=u;if(p.startsWith("data:")||p.startsWith("http://")||p.startsWith("https://"))return;let v=be({},[]);return l.push((async()=>{if(t>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${p}\` in \`${i}\`)`);let h=await r(p,i),b=Ie(h.content,{from:n?h.path:void 0});await Tr(b,h.base,r,t+1,n),v.nodes=fa(f,[be({base:h.base},b)],d,m,c)})()),$.ReplaceSkip(v)}}),l.length>0&&await Promise.all(l),s}function ca(e){let i,r=null,t=null,n=null;for(let s=0;s<e.length;s++){let l=e[s];if(l.kind!=="separator"){if(l.kind==="word"&&!i){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;i=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!i)return null;if((l.kind==="word"||l.kind==="function")&&l.value.toLowerCase()==="layer"){if(r)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in l?r=F(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(n)return null;n=F(l.nodes);continue}t=F(e.slice(s));break}}return i?{uri:i,layer:r,media:t,supports:n}:null}function fa(e,i,r,t,n){let s=i;if(r!==null){let l=B("@layer",r,s);l.src=e.src,s=[l]}if(t!==null){let l=B("@media",t,s);l.src=e.src,s=[l]}if(n!==null){let l=B("@supports",n[0]==="("?n:`(${n})`,s);l.src=e.src,s=[l]}return s}function Je(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let i=Object.getPrototypeOf(e);return i===null||Object.getPrototypeOf(i)===null}function dt(e,i,r,t=[]){for(let n of i)if(n!=null)for(let s of Reflect.ownKeys(n)){t.push(s);let l=r(e[s],n[s],t);l!==void 0?e[s]=l:!Je(e[s])||!Je(n[s])?e[s]=n[s]:e[s]=dt({},[e[s],n[s]],r,t),t.pop()}return e}function Mt(e,i,r){return function(n,s){let l=n.lastIndexOf("/"),f=null;l!==-1&&(f=n.slice(l+1).trim(),n=n.slice(0,l).trim());let u=(()=>{let p=ze(n),[d,m]=pa(e.theme,p),c=r(dn(i()??{},p)??null);if(typeof c=="string"&&(c=c.replace("<alpha-value>","1")),typeof d!="object")return typeof m!="object"&&m&4?c??d:d;if(c!==null&&typeof c=="object"&&!Array.isArray(c)){let v=dt({},[c],(h,b)=>b);if(d===null&&Object.hasOwn(c,"__CSS_VALUES__")){let h={};for(let b in c.__CSS_VALUES__)h[b]=c[b],delete v[b];d=h}for(let h in d)h!=="__CSS_VALUES__"&&(c?.__CSS_VALUES__?.[h]&4&&dn(Line truncated
|
||||
|
||||
${ue([y])}
|
||||
|
||||
\`@plugin\` options must be a flat list of declarations.`);if(y.value===void 0)continue;let S=y.value,x=K(S,",").map(w=>{if(w=w.trim(),w==="null")return null;if(w==="true")return!0;if(w==="false")return!1;if(Number.isNaN(Number(w))){if(w[0]==='"'&&w[w.length-1]==='"'||w[0]==="'"&&w[w.length-1]==="'")return w.slice(1,-1);if(w[0]==="{"&&w[w.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${ue([y]).trim()}\` is not supported.
|
||||
|
||||
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(w);return w});b[y.property]=x.length===1?x[0]:x}return l.push([{id:h,base:v.context.base,reference:!!v.context.reference,src:m.src},Object.keys(b).length>0?b:null]),s|=4,$.Replace([])}if(m.name==="@config"){if(m.nodes.length>0)throw new Error("`@config` cannot have a body.");if(v.parent!==null)throw new Error("`@config` cannot be nested.");return f.push({id:m.params.slice(1,-1),base:v.context.base,reference:!!v.context.reference,src:m.src}),s|=4,$.Replace([])}}),Sn(e);let u=e.resolveThemeValue;if(e.resolveThemeValue=function(c,v){return c.startsWith("--")?u(c,v):(s|=Vn({designSystem:e,base:i,ast:r,sources:n,configs:[],pluginDetails:[]}),e.resolveThemeValue(c,v))},!l.length&&!f.length)return 0;let[p,d]=await Promise.all([Promise.all(f.map(async({id:m,base:c,reference:v,src:h})=>{let b=await t(m,c,"config");return{path:m,base:b.base,config:b.module,reference:v,src:h}})),Promise.all(l.map(async([{id:m,base:c,reference:v,src:h},b])=>{let y=await t(m,c,"plugin");return{path:m,base:y.base,plugin:y.module,options:b,reference:v,src:h}}))]);return s|=Vn({designSystem:e,base:i,ast:r,sources:n,configs:p,pluginDetails:d}),s}function Vn({designSystem:e,base:i,ast:r,sources:t,configs:n,pluginDetails:s}){let l=0,u=[...s.map(b=>{if(!b.options)return{config:{plugins:[b.plugin]},base:b.base,reference:b.reference,src:b.src};if("__isOptionsFunction"in b.plugin)return{config:{plugins:[b.plugin(b.options)]},base:b.base,reference:b.reference,src:b.src};throw new Error(`The plugin "${b.path}" does not accept options`)}),...n],{resolvedConfig:p}=Er(e,[{config:xn(e.theme),base:i,reference:!0,src:void 0},...u,{config:{plugins:[Cn]},base:i,reference:!0,src:void 0}]),{resolvedConfig:d,replacedThemeKeys:m}=Er(e,u),c={designSystem:e,ast:r,resolvedConfig:p,featuresRef:{set current(b){l|=b}}},v=Vr({...c,referenceMode:!1,src:void 0}),h=e.resolveThemeValue;e.resolveThemeValue=function(y,S){if(y[0]==="-"&&y[1]==="-")return h(y,S);let x=v.theme(y,void 0);if(Array.isArray(x)&&x.length===2)return x[0];if(Array.isArray(x))return x.join(", ");if(typeof x=="object"&&x!==null&&"DEFAULT"in x)return x.DEFAULT;if(typeof x=="string")return x};for(let{handler:b,reference:y,src:S}of p.plugins){let x=Vr({...c,referenceMode:y??!1,src:S});b(x)}if(Oi(e,d,m),kn(e,d),Tn(d,e),$n(d,e),An(d,e),!e.theme.prefix&&p.prefix){if(p.prefix.endsWith("-")&&(p.prefix=p.prefix.slice(0,-1),console.warn(`The prefix "${p.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.`)),!wa.test(p.prefix))throw new Error(`The prefix "${p.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=p.prefix}if(!e.important&&p.important===!0&&(e.important=!0),typeof p.important=="string"){let b=p.important;O(r,(y,S)=>{if(y.kind!=="at-rule"||y.name!=="@tailwind"||y.params!=="utilities")return;let x=lt(S);return x.parent?.kind==="rule"&&x.parent.selector===b?$.Stop:$.ReplaceStop(H(b,[y]))})}for(let b of p.blocklist)e.invalidCandidates.add(b);for(let b of p.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)),t.push({...b,negated:y})}return l}function En({ast:e}){let i=new L(n=>ht(n.code)),r=new L(n=>({url:n.file,content:n.code,ignore:!1})),t={file:null,sources:[],mappings:[]};O(e,n=>{if(!n.src||!n.dst)return;let s=r.get(n.src[0]);if(!s.content)return;let l=i.get(n.src[0]),f=i.get(n.dst[0]),u=s.content.slice(n.src[1],n.src[2]),p=0;for(let c of u.split(`
|
||||
`)){if(c.trim()!==""){let v=l.find(n.src[1]+p),h=f.find(n.dst[1]);t.mappings.push({name:null,originalPosition:{source:s,...v},generatedPosition:h})}p+=c.length,p+=1}let d=l.find(n.src[2]),m=f.find(n.dst[2]);t.mappings.push({name:null,originalPosition:{source:s,...d},generatedPosition:m})});for(let n of i.keys())t.sources.push(r.get(n));return t.mappings.sort((n,s)=>n.generatedPosition.line-s.generatedPosition.line||n.generatedPosition.column-s.generatedPosition.column||(n.originalPosition?.line??0)-(s.originalPosition?.line??0)||(n.originalPosition?.column??0)-(s.originalPosition?.column??0)),t}var Rn=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Wt(e){let i=e.indexOf("{");if(i===-1)return[e];let r=[],t=e.slice(0,i),n=e.slice(i),s=0,l=n.lastIndexOf("}");for(let m=0;m<n.length;m++){let c=n[m];if(c==="{")s++;else if(c==="}"&&(s--,s===0)){l=m;break}}if(l===-1)throw new Error(`The pattern \`${e}\` is not balanced.`);let f=n.slice(1,l),u=n.slice(l+1),p;ya(f)?p=xa(f):p=K(f,","),p=p.flatMap(m=>Wt(m));let d=Wt(u);for(let m of d)for(let c of p)r.push(t+c+m);return r}function ya(e){return Rn.test(e)}function xa(e){let i=e.match(Rn);if(!i)return[e];let[,r,t,n]=i,s=n?parseInt(n,10):void 0,l=[];if(/^-?\d+$/.test(r)&&/^-?\d+$/.test(t)){let f=parseInt(r,10),u=parseInt(t,10);if(s===void 0&&(s=f<=u?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");let p=f<u;p&&s<0&&(s=-s),!p&&s>0&&(s=-s);for(let d=f;p?d<=u:d>=u;d+=s)l.push(d.toString())}return l}function Pn(e,i){let r=new Set,t=new Set,n=[];function s(l,f=[]){if(e.has(l)&&!r.has(l)){t.has(l)&&i.onCircularDependency?.(f,l),t.add(l);for(let u of e.get(l)??[])f.push(l),s(u,f),f.pop();r.add(l),t.delete(l),n.push(l)}}for(let l of e.keys())s(l);return n}var Aa=/^[a-z]+$/,St=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(St||{});function Ca(){throw new Error("No `loadModule` function provided to `compile`")}function Sa(){throw new Error("No `loadStylesheet` function provided to `compile`")}function $a(e){let i=0,r=null;for(let t of K(e," "))t==="reference"?i|=2:t==="inline"?i|=1:t==="default"?i|=4:t==="static"?i|=8:t.startsWith("prefix(")&&t.endsWith(")")&&(r=t.slice(7,-1));return[i,r]}var Le=(u=>(u[u.None=0]="None",u[u.AtApply=1]="AtApply",u[u.AtImport=2]="AtImport",u[u.JsPluginCompat=4]="JsPluginCompat",u[u.ThemeFunction=8]="ThemeFunction",u[u.Utilities=16]="Utilities",u[u.Variants=32]="Variants",u[u.AtTheme=64]="AtTheme",u))(Le||{});async function On(e,{base:i="",from:r,loadModule:t=Ca,loadStylesheet:n=Sa}={}){let s=0;e=[be({base:i},e)],s|=await Tr(e,i,n,0,r!==void 0);let l=null,f=new xt,u=new Map,p=new Map,d=[],m=null,c=null,v=[],h=[],b=[],y=[],S=null;O(e,(w,I)=>{if(w.kind!=="at-rule")return;let D=lt(I);if(w.name==="@tailwind"&&(w.params==="utilities"||w.params.startsWith("utilities"))){if(c!==null)return $.Replace([]);if(D.context.reference)return $.Replace([]);let _=K(w.params," ");for(let z of _)if(z.startsWith("source(")){let E=z.slice(7,-1);if(E==="none"){S=E;continue}if(E[0]==='"'&&E[E.length-1]!=='"'||E[0]==="'"&&E[E.length-1]!=="'"||E[0]!=="'"&&E[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");S={base:D.context.sourceBase??D.context.base,pattern:E.slice(1,-1)}}c=w,s|=16}if(w.name==="@utility"){if(D.parent!==null)throw new Error("`@utility` cannot be nested.");if(w.nodes.length===0)throw new Error(`\`@utility ${w.params}\` is empty. Utilities should include at least one property.`);let _=Ti(w);if(_===null){if(!w.params.endsWith("-*")){if(w.params.endsWith("*"))throw new Error(`\`@utility ${w.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(w.params.includes("*"))throw new Error(`\`@utility ${w.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${w.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}d.push(_)}if(w.name==="@source"){if(w.nodes.length>0)throw new Error("`@source` cannot have a body.");if(D.parent!==null)throw new Error("`@source` cannot be nested.");let _=!1,z=!1,E=w.params;if(E[0]==="n"&&E.startsWith("not ")&&(_=!0,E=E.slice(4)),E[0]==="i"&&E.startsWith("inline(")&&(z=!0,E=E.slice(7,-1).trim()),E[0]==='"'&&E[E.length-1]!=='"'||E[0]==="'"&&E[E.length-1]!=="'"||E[0]!=="'"&&E[0]!=='"')throw new Error("`@source` paths must be quoted.");let M=E.slice(1,-1);if(z){let G=_?y:b,q=K(M," ");for(let ee of q)for(let ie of Wt(ee))G.push(ie)}else h.push({base:D.context.base,pattern:M,negated:_});return $.ReplaceSkip([])}if(w.name==="@variant"&&(D.parent===null?w.nodes.length===0?w.name="@custom-variant":(O(w.nodes,_=>{if(_.kind==="at-rule"&&_.name==="@slot")return w.name="@custom-variant",$.Stop}),w.name==="@variant"&&v.push(w)):v.push(w)),w.name==="@custom-variant"){if(D.parent!==null)throw new Error("`@custom-variant` cannot be nested.");let[_,z]=K(w.params," ");if(!zt.test(_))throwLine truncated
|
||||
`).map((G,q,ee)=>`${q===0||q>=ee.length-2?" ":">"} ${G}`).join(`
|
||||
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
||||
|
||||
${M}`)}),m?$.ReplaceSkip([]):(m=H(":root, :host",[]),m.src=w.src,$.ReplaceSkip(m))}});let x=sn(f,c?.src);if(l&&(x.important=l),y.length>0)for(let w of y)x.invalidCandidates.add(w);s|=await Nn({designSystem:x,base:i,ast:e,loadModule:t,sources:h});for(let w of u.keys())x.variants.static(w,()=>{});for(let w of Pn(p,{onCircularDependency(I,D){let _=ue(I.map((z,E)=>B("@custom-variant",z,[B("@variant",I[E+1]??D,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${D} {`,`@custom-variant ${D} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
|
||||
|
||||
${_}`)}}))u.get(w)?.(x);for(let w of d)w(x);if(m){let w=[];for(let[D,_]of x.theme.entries()){if(_.options&2)continue;let z=o(Ve(D),_.value);z.src=_.src,w.push(z)}let I=x.theme.getKeyframes();for(let D of I)e.push(be({theme:!0},[Y([D])]));m.nodes=[be({theme:!0},w)]}if(s|=pt(e,x),s|=Ye(e,x),s|=Pe(e,x),c){let w=c;w.kind="context",w.context={}}return O(e,w=>{if(w.kind==="at-rule")return w.name==="@utility"?$.Replace([]):$.Skip}),{designSystem:x,ast:e,sources:h,root:S,utilitiesNode:c,features:s,inlineCandidates:b}}async function _n(e,i={}){let{designSystem:r,ast:t,sources:n,root:s,utilitiesNode:l,features:f,inlineCandidates:u}=await On(e,i);t.unshift(yt(`! tailwindcss v${Rr} | MIT License | https://tailwindcss.com `));function p(h){r.invalidCandidates.add(h)}let d=new Set,m=null,c=0,v=!1;for(let h of u)r.invalidCandidates.has(h)||(d.add(h),v=!0);return{sources:n,root:s,features:f,build(h){if(f===0)return e;if(!l)return m??=De(t,r,i.polyfills),m;let b=v,y=!1;v=!1;let S=d.size;for(let w of h)if(!r.invalidCandidates.has(w))if(w[0]==="-"&&w[1]==="-"){let I=r.theme.markUsedVariable(w);b||=I,y||=I}else d.add(w),b||=d.size!==S;if(!b)return m??=De(t,r,i.polyfills),m;let x=Oe(d,r,{onInvalidCandidate:p}).astNodes;return i.from&&O(x,w=>{w.src??=l.src}),!y&&c===x.length?(m??=De(t,r,i.polyfills),m):(c=x.length,l.nodes=x,m=De(t,r,i.polyfills),m)}}}async function Ta(e,i={}){let r=Ie(e,{from:i.from}),t=await _n(r,i),n=r,s=e;return{...t,build(l){let f=t.build(l);return f===n||(s=ue(f,!!i.from),n=f),s},buildSourceMap(){return En({ast:n})}}}async function Va(e,i={}){return(await On(Ie(e,{from:i.from}),i)).designSystem}function mt(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}for(let e in Bt)e!=="default"&&(mt[e]=Bt[e]);module.exports=mt;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
import{a as z,b as st,c as wr,d as J,e as Ge,f as _,g as _t,h as Q,i as Ae,j as br}from"./chunk-C2OYBFIH.mjs";import{a as kr}from"./chunk-DCG7AFIE.mjs";import{a as _e,b as Ie,c as vr}from"./chunk-5JIJA4QV.mjs";var yr="4.3.3";function mn(e){return{kind:"combinator",value:e}}function It(e){return{kind:"complex",nodes:e}}function xr(e){return{kind:"compound",nodes:e}}function gn(e,i){return{kind:"function",value:e,nodes:i}}function hn(e){return{kind:"list",nodes:e}}function be(e){return{kind:"selector",value:e}}function Ar(e){return{kind:"value",value:e}}function qe(e){return e.kind==="selector"&&e.value.charCodeAt(0)===jt}function ut(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case jt:case Or:case Rr:case Pr:case Lt:case zt:return!1;default:return!0}}function oe(e,i=!1){let r="";for(let t of e)switch(t.kind){case"selector":case"value":{r+=t.value;break}case"combinator":{i||t.value===" "?r+=t.value:r+=` ${t.value} `;break}case"function":{r+=`${t.value}(${oe(t.nodes,i)})`;break}case"complex":case"compound":{r+=oe(t.nodes,i);break}case"list":{r+=t.nodes.map(n=>oe([n],i)).join(i?",":", ");break}}return r}var Cr=92,vn=93,Sr=41,Lt=58,Vr=44,wn=34,Rr=46,$r=62,Dt=10,Pr=35,zt=91,Tr=40,Nr=43,kn=39,Kt=32,Ut=9,Er=126,Or=38,jt=42;function fe(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let i=[],r=i,t=!1,n=[],s=null,l="",d;function f(p=r){return p.length===1?p[0]:t?It(p):xr(p)}function c(p){let m=r[r.length-1];m?.kind==="compound"?m.nodes.push(p):m&&m.kind!=="list"&&m.kind!=="combinator"?r[r.length-1]=xr([m,p]):r.push(p)}for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);switch(m){case Vr:{for(l.length>0&&(c(be(l)),l="");p+1<e.length&&(d=e.charCodeAt(p+1),!(d!==Dt&&d!==Kt&&d!==Ut));p++);if(s)s.nodes.push(f()),r=[],t=!1;else{let u=r.splice(0),v=f(u),h=hn([v]);r.push(h),s=h,r=[],t=!1}break}case $r:case Dt:case Kt:case Nr:case Ut:case Er:{l.length>0&&(c(be(l)),l="");let u=p,v=p+1;for(;v<e.length&&(d=e.charCodeAt(v),!(d!==$r&&d!==Dt&&d!==Kt&&d!==Nr&&d!==Ut&&d!==Er));v++);p=v-1;let h=e.slice(u,v).trim();if(h===""&&(r.length===0||v>=e.length||e.charCodeAt(v)===Vr))break;r.push(mn(h===""?" ":h)),t=!0;break}case Tr:{let u=gn(l,[]);if(l="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let v=p+1,h=0;for(let S=p+1;S<e.length;S++){if(d=e.charCodeAt(S),d===Tr){h++;continue}if(d===Sr){if(h===0){p=S;break}h--}}let k=p,y=e.slice(v,k);if(u.value===":nth-child"||u.value===":nth-last-child"){let S=y.indexOf("of ");if(S!==-1){u.nodes.push(Ar(y.slice(0,S+3)),...fe(y.slice(S+3))),l="",p=k,c(u);break}}u.nodes.push(Ar(y)),l="",p=k,c(u);break}c(u),n.push({target:r,currentList:s,containsCombinator:t}),r=u.nodes,t=!1,s=null;break}case Sr:{l.length>0&&(c(be(l)),l=""),s?s.nodes.push(f()):t&&r.splice(0,r.length,It(r.splice(0)));let u=n.pop();r=u?.target??i,s=u?.currentList??null,t=u?.containsCombinator??!1;break}case Rr:case Lt:case Pr:{if(m===Lt&&l===":"){l+=e[p];break}l.length>0&&c(be(l)),l=e[p];break}case zt:{l.length>0&&(c(be(l)),l="");let u=p,v=0;for(let h=p+1;h<e.length;h++){if(d=e.charCodeAt(h),d===zt){v++;continue}if(d===vn){if(v===0){p=h;break}v--}}c(be(e.slice(u,p+1)));break}case kn:case wn:{let u=p;for(let v=p+1;v<e.length;v++)if(d=e.charCodeAt(v),d===Cr)v+=1;else if(d===m){p=v;break}l+=e.slice(u,p+1);break}case Or:case jt:{l.length>0&&(c(be(l)),l=""),c(be(e[p]));break}case Cr:{l+=e[p]+e[p+1],p+=1;break}default:l+=e[p]}}return l.length>0&&c(be(l)),s?s.nodes.push(f()):t&&r.splice(0,r.length,It(r.splice(0))),i}function ft(e){let i=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&i.push(n+1);function r(n){let s=0,l=i.length;for(;l>0;){let f=(l|0)>>1,c=s+f;i[c]<=n?(s=c+1,l=l-f-1):l=f}s-=1;let d=n-i[s];return{line:s+1,column:d}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),i.length-1);let l=i[n],d=i[n+1]??l;return Math.min(Math.max(l+s,0),d)}return{find:r,findOffset:t}}var He=92,ct=47,pt=42,_r=34,Ir=39,bn=58,dt=59,me=10,mt=13,Ze=32,Je=9,Dr=123,Ft=125,Yt=40,Kr=41,yn=91,xn=93,Ur=45,Wt=64,An=33,ge=class e extends Error{loc;constructor(i,r){if(r){let t=r[0],n=ft(t.code).find(r[1]);i=`${t.file}:${n.line}:${n.column+1}: ${i}`}super(i),this.name="CssSyntaxError",this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Te(e,i){let r=i?.from?{file:i.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],l=null,d=null,f="",c="",p=0,m;for(let u=0;u<e.length;u++){let v=e.charCodeAt(u);if(!(v===mt&&(m=e.charCodeAt(u+1),m===me)))if(v===He)f===""&&(p=u),f+=e.slice(u,u+2),u+=1;else if(v===ct&&e.charCodeAt(u+1)===pt){let h=u;for(let y=u+2;y<e.length;y++)if(m=e.charCodeAt(y),m===He)y+=1;else if(m===pt&&e.charCodeAt(y+1)===ct){u=y+1;break}let k=e.slice(h,u+1);if(k.charCodeAt(2)===An){let y=gt(k.slice(2,-2));n.push(y),r&&(y.src=[r,h,u+1],y.dst=[r,h,u+1])}}else if(v===Ir||v===_r){let h=Lr(e,u,v,r);f+=e.slice(u,h+1),u=h}else{if((v===Ze||v===me||v===Je)&&(m=e.charCodeAt(u+1))&&(m===Ze||m===me||m===Je||m===mt&&(m=e.charCodeAt(u+2))&&m==me))continue;if(v===me){if(f.length===0)continue;m=f.charCodeAt(f.length-1),m!==Ze&&m!==me&&m!==Je&&(f+=" ")}else if(v===Ur&&e.charCodeAt(u+1)===Ur&&f.length===0){let h="",k=u,y=-1;for(let x=u+2;x<e.length;x++)if(m=e.charCodeAt(x),m===He)x+=1;else if(m===Ir||m===_r)x=Lr(e,x,m,r);else if(m===ct&&e.charCodeAt(x+1)===pt){for(let b=x+2;b<e.length;b++)if(m=e.charCodeAt(b),m===He)b+=1;else if(m===pt&&e.charCodeAt(b+1)===ct){x=b+1;break}}else if(y===-1&&m===bn)y=f.length+x-k;else if(m===dt&&h.length===0){f+=e.slice(k,x),u=x;break}else if(m===Yt)h+=")";else if(m===yn)h+="]";else if(m===Dr)h+="}";else if((m===Ft||e.length-1===x)&&h.length===0){u=x-1,f+=e.slice(k,x);break}else(m===Kr||m===xn||m===Ft)&&h.length>0&&e[x]===h[h.length-1]&&(h=h.slice(0,-1));let S=Bt(f,y);if(!S)throw new ge("Invalid custom property, expected a value",r?[r,k,u]:null);r&&(S.src=[r,k,u],S.dst=[r,k,u]),l?l.nodes.push(S):t.push(S),f=""}else if(v===dt&&f.charCodeAt(0)===Wt)d=Qe(f),r&&(d.src=[r,p,u],d.dst=[r,p,u]),l?l.nodes.push(d):t.push(d),f="",d=null;else if(v===dt&&c[c.length-1]!==")"){let h=Bt(f);if(!h){if(f.length===0)continue;throw new ge(`Invalid declaration: \`${f.trim()}\``,r?[r,p,u]:null)}r&&(h.src=[r,p,u],h.dst=[r,p,u]),l?l.nodes.push(h):t.push(h),f=""}else if(v===Dr&&c[c.length-1]!==")")c+="}",d=Z(f.trim()),r&&(d.src=[r,p,u],d.dst=[r,p,u]),l&&l.Line truncated
|
||||
`,`
|
||||
`);let i=[],r=[],t=null,n="",s;for(let l=0;l<e.length;l++){let d=e.charCodeAt(l);switch(d){case zr:{n+=e[l]+e[l+1],l++;break}case En:{if(n.length>0){let c=ne(n);t?t.nodes.push(c):i.push(c),n=""}let f=ne(e[l]);t?t.nodes.push(f):i.push(f);break}case jr:case Mr:case Fr:case Wr:case Br:case Yr:case Gr:case qr:{if(n.length>0){let m=ne(n);t?t.nodes.push(m):i.push(m),n=""}let f=l,c=l+1;for(;c<e.length&&(s=e.charCodeAt(c),!(s!==jr&&s!==Mr&&s!==Fr&&s!==Wr&&s!==Br&&s!==Yr&&s!==Gr&&s!==qr));c++);l=c-1;let p=Sn(e.slice(f,c));t?t.nodes.push(p):i.push(p);break}case Nn:case $n:{let f=l;for(let c=l+1;c<e.length;c++)if(s=e.charCodeAt(c),s===zr)c+=1;else if(s===d){l=c;break}n+=e.slice(f,l+1);break}case Tn:{let f=Cn(n,[]);n="",t?t.nodes.push(f):i.push(f),r.push(f),t=f;break}case Vn:{let f=r.pop();if(n.length>0){let c=ne(n);f?.nodes.push(c),n=""}r.length>0?t=r[r.length-1]:t=null;break}default:n+=String.fromCharCode(d)}}return n.length>0&&i.push(ne(n)),i}var qt=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(qt||{}),V={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function P(e,i){typeof i=="function"?Hr(e,i):Hr(e,i.enter,i.exit)}function Hr(e,i=()=>V.Continue,r=()=>V.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,index:0,siblings:e,path(){let s=[],l=t;for(;l;){let d=l.value[2];d&&s.push(d),l=l.prev}return s.reverse(),s}};for(;t!==null;){let s=t.value,l=s[0],d=s[1],f=s[2];if(d>=l.length){t=t.prev,n.depth-=1;continue}if(n.parent=f,n.siblings=l,d>=0){n.index=d;let u=l[d],v=i(u,n)??V.Continue;switch(v.kind){case 0:{u.nodes&&u.nodes.length>0&&(n.depth+=1,t={value:[u.nodes,0,u],prev:t}),s[1]=~d;continue}case 2:return;case 1:{s[1]=~d;continue}case 3:{l.splice(d,1,...v.nodes);continue}case 5:{l.splice(d,1,...v.nodes);return}case 4:{l.splice(d,1,...v.nodes),s[1]+=v.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${qt[v.kind]??`Unknown(${v.kind})`}\` in enter.`)}}let c=~d;n.index=c;let p=l[c],m=r(p,n)??V.Continue;switch(m.kind){case 0:s[1]=c+1;continue;case 2:return;case 3:{l.splice(c,1,...m.nodes),s[1]=c+m.nodes.length;continue}case 5:{l.splice(c,1,...m.nodes);return}case 4:{l.splice(c,1,...m.nodes),s[1]=c+m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${qt[m.kind]??`Unknown(${m.kind})`}\` in exit.`)}}}var Rn=new U(e=>{let i=[];return P(M(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return P(r.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||i.push(t.value)}),V.Skip}),i});function ht(e){return Rn.get(e)}var Pn=64,On=124;function H(e,i=[]){return{kind:"rule",selector:e,nodes:i}}function B(e,i="",r=[]){return{kind:"at-rule",name:e,params:i,nodes:r}}function Z(e,i=[]){return e.charCodeAt(0)===Pn?Qe(e,i):H(e,i)}function a(e,i,r=!1){return{kind:"declaration",property:e,value:i,important:r}}function gt(e){return{kind:"comment",value:e}}function ve(e,i){return{kind:"context",context:e,nodes:i}}function Y(e){return{kind:"at-root",nodes:e}}function re(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function et(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let i={};for(let r of e.path())r.kind==="context"&&Object.assign(i,r.context);return Object.defineProperty(this,"context",{value:i}),i},get parent(){let i=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:i}),i},path(){return e.path().filter(i=>i.kind!=="context")}}}function Ne(e,i,r=3){let t=[],n=new Set,s=new U(()=>new Set),l=new U(()=>new Set),d=new Set,f=new Set,c=[],p=[],m=new U(()=>new Set);function u(h,k,y={},S=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(y.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}y.keyframes||s.get(k).add(h)}if(h.value.includes("var("))if(y.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let x of ht(h.value))m.get(x).add(h.property);else i.trackUsedVariables(h.value);if(h.property==="animation")for(let x of Zr(h.value))f.add(x);r&2&&!y.supportsColorMix&&!y.keyframes&&h.value.includes("color-mix(")&&l.get(k).add(h),k.push(h)}else if(h.kind==="rule"){let x=[];for(let b of h.nodes)u(b,Line truncated
|
||||
`,i){r+=c.length;let p=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let m=r;r+=2,l.dst=[t,p,m]}}else if(l.kind==="rule"){if(f+=`${c}${l.selector} {
|
||||
`,i){r+=c.length;let p=r;r+=l.selector.length,r+=1;let m=r;l.dst=[t,p,m],r+=2}for(let p of l.nodes)f+=n(p,d+1);f+=`${c}}
|
||||
`,i&&(r+=c.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let p=`${c}${l.name} ${l.params};
|
||||
`;if(i){r+=c.length;let m=r;r+=l.name.length,r+=1,r+=l.params.length;let u=r;r+=2,l.dst=[t,m,u]}return p}if(f+=`${c}${l.name}${l.params?` ${l.params} `:" "}{
|
||||
`,i){r+=c.length;let p=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let m=r;l.dst=[t,p,m],r+=2}for(let p of l.nodes)f+=n(p,d+1);f+=`${c}}
|
||||
`,i&&(r+=c.length,r+=2)}else if(l.kind==="comment"){if(f+=`${c}/*${l.value}*/
|
||||
`,i){r+=c.length;let p=r;r+=2+l.value.length+2;let m=r;l.dst=[t,p,m],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return f}let s="";for(let l of e)s+=n(l,0);return t.code=s,s}function Kn(e,i){let r=[];return P(e,(t,n)=>{if(i(t))return r=n.path(),r.push(t),V.Stop}),r}function Jr(e,i,r,t=new Set){if(t.has(e)||(t.add(e),i.getOptions(e)&24))return!0;{let s=r.get(e)??[];for(let l of s)if(Jr(l,i,r,t))return!0}return!1}function Zr(e){return e.split(/[\s,]+/)}function Ce(e){if(e.indexOf("(")===-1)return De(e);let i=M(e);return Zt(i),e=F(i),e=st(e),e}function De(e,i=!1){let r="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(r+="_",t+=1):n==="_"&&!i?r+=" ":r+=n}return r}function Zt(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=De(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=De(i.value);for(let r=0;r<i.nodes.length;r++){if(r==0&&i.nodes[r].kind==="word"){i.nodes[r].value=De(i.nodes[r].value,!0);continue}Zt([i.nodes[r]])}break}i.value=De(i.value),Zt(i.nodes);break}case"separator":case"word":{i.value=De(i.value);break}default:Un(i)}}function Un(e){throw new Error(`Unexpected value: ${e}`)}var Jt=new Uint8Array(256);function ye(e){let i=0,r=e.length;for(let t=0;t<r;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<r;){let s=e.charCodeAt(t);if(s===92){t+=1;continue}if(s===n)break}break;case 40:Jt[i]=41,i++;break;case 91:Jt[i]=93,i++;break;case 123:break;case 93:case 125:case 41:if(i===0)return!1;i>0&&n===Jt[i-1]&&i--;break;case 59:if(i===0)return!1;break}}return!0}var Ln=58,Qr=45,Xr=97,ei=122,er=/^[a-zA-Z0-9_.%-]+$/;function Ue(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Ke),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Ke),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Ke),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Ke(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:Ke(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*ti(e,i){let r=z(e,":");if(i.theme.prefix){if(r.length===1||r[0]!==i.theme.prefix)return null;r.shift()}let t=r.pop(),n=[];for(let m=r.length-1;m>=0;--m){let u=i.parseVariant(r[m]);if(u===null)return;n.push(u)}let s=!1;t[t.length-1]==="!"?(s=!0,t=t.slice(0,-1)):t[0]==="!"&&(s=!0,t=t.slice(1)),i.utilities.has(t,"static")&&!t.includes("[")&&(yield{kind:"static",root:t,variants:n,important:s,raw:e});let[l,d=null,f]=z(t,"/");if(f)return;let c=d===null?null:Qt(d);if(d!==null&&c===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let m=l.charCodeAt(1);if(m!==Qr&&!(m>=Xr&&m<=ei))return;l=l.slice(1,-1);let u=l.indexOf(":");if(u===-1||u===0||u===l.length-1)return;let v=l.slice(0,u),h=Ce(l.slice(u+1));if(!ye(h))return;yield{kind:"arbitrary",property:v,value:h,modifier:c,variants:n,important:s,raw:e};return}let p;if(l[l.length-1]==="]"){let m=l.indexOf("-[");if(m===-1)return;let u=l.slice(0,m);if(!i.utilities.has(u,"functional"))return;let v=l.slice(m+1);p=[[u,v]]}else if(l[l.length-1]===")"){let m=l.indexOf("-(");if(m===-1)return;let u=l.slice(0,m);if(!i.utilities.has(u,"functional"))return;let v=l.slice(m+2,-1),h=z(v,":"),k=null;if(h.length===2&&(k=h[0],v=h[1]),v[0]!=="-"||v[1]!=="-"||!ye(v))return;p=[[u,k===null?`[var(${v})]`:`[${k}:var(${v})]`]]}else p=ii(l,m=>i.utilities.has(m,"functional"));for(let[m,u]of p){let v={kind:"functional",root:m,modifier:c,value:null,variants:n,important:s,raw:e};if(u===null){yield v;continue}{let h=u.indexOf("[");if(h!==-1){if(u[u.length-1]!=="]")return;let y=Ce(u.slice(h+1,-1));if(!ye(y))continue;let S=null;for(let x=0;x<y.length;x++){let b=y.charCodeAt(x);if(b===Ln){S=y.slice(0,x),y=y.slice(x+1);break}if(!(b===Qr||b>=Xr&&b<=ei))break}if(y.length===0||y.trim().length===0||S==="")continue;v.value={kind:"arbitrary",dataType:S||null,value:y}}else{let y=d===null||v.modifier?.kind==="arbitrary"?null:`${u}/${d}`;if(!er.test(u))continue;v.value={kind:"named",value:u,fraction:y}}}yield v}}function Qt(e){if(e[0]==="["&&e[e.length-1]==="]"){let i=Ce(e
Line truncated
|
||||
Only valid data types are: ${ir.map(k=>`"${k}"`).join(", ")}.
|
||||
`);let c=f.value,p=structuredClone(l),m="\xB6";P(p.nodes,k=>{if(k.kind==="word"&&k.value===c)return V.ReplaceSkip({kind:"word",value:m})});let u="^".repeat(F([f]).length),v=F([p]).indexOf(m),h=["```css",F([l])," ".repeat(v)+u,"```"].join(`
|
||||
`);console.warn(h)}}),n.value=F(s)}),r.utilities.functional(i.slice(0,-2),n=>{let s=re(e),l=n.value,d=n.modifier,f=!1,c=!1,p=!1,m=!1,u=new Map,v=!1;if(P([s],(h,k)=>{let y=k.parent;if(y?.kind!=="rule"&&y?.kind!=="at-rule"||h.kind!=="declaration"||!h.value)return;let S=!1,x=M(h.value);if(P(x,b=>{if(b.kind==="function"){if(b.value==="--value"){f=!0;let I=li(l,b,r);return I?(c=!0,I.ratio?v=!0:u.set(h,y),V.ReplaceSkip(I.nodes)):(S=!0,V.Stop)}else if(b.value==="--modifier"){p=!0;let I=li(d,b,r);return I?(m=!0,V.ReplaceSkip(I.nodes)):(S=!0,V.Stop)}}}),S)return V.ReplaceSkip([]);h.value=F(x)}),!f||!c||p&&!m&&d!==null||v&&m||d&&!v&&!m)return null;if(v)for(let[h,k]of u){let y=k.nodes.indexOf(h);y!==-1&&k.nodes.splice(y,1)}return s.nodes}),r.utilities.suggest(i.slice(0,-2),()=>{let n=[],s=[];for(let[l,{literals:d,usedSpacingNumber:f,usedSpacingInteger:c,themeKeys:p}]of[[n,t["--value"]],[s,t["--modifier"]]]){for(let m of d)l.push(m);if(f)l.push(...yt);else if(c)for(let m of yt)_(m)&&l.push(m);for(let m of r.theme.keysInNamespaces(p))l.push(m.replace(oi,(u,v,h)=>`${v}.${h}`))}return[{values:n,modifiers:s}]})}:ll(i)?r=>{r.utilities.static(i,()=>e.nodes.map(re))}:null}function li(e,i,r){if(e===null){for(let t of i.nodes)if(t.kind==="function"&&t.value==="--default")return{nodes:t.nodes};return}for(let t of i.nodes){if(e.kind==="named"&&t.kind==="word"&&(t.value[0]==="'"||t.value[0]==='"')&&t.value[t.value.length-1]===t.value[0]&&t.value.slice(1,-1)===e.value)return{nodes:M(e.value)};if(e.kind==="named"&&t.kind==="word"&&t.value[0]==="-"&&t.value[1]==="-"){let n=t.value;if(n.endsWith("-*")){n=n.slice(0,-2);let s=r.theme.resolve(e.value,[n]);if(s)return{nodes:M(s)}}else{let s=n.split("-*");if(s.length<=1)continue;let l=[s.shift()],d=r.theme.resolveWith(e.value,l,s);if(d){let[,f={}]=d;{let c=f[s.pop()];if(c)return{nodes:M(c)}}}}}else if(e.kind==="named"&&t.kind==="word"){if(!ir.includes(t.value))continue;let n=t.value==="ratio"&&"fraction"in e?e.fraction:e.value;if(!n)continue;let s=J(n,[t.value]);if(s===null)continue;if(s==="ratio"){let[l,d]=z(n,"/").map(Number);if(!_(l)||!_(d))continue}else{if(s==="number"&&!Q(n))continue;if(s==="percentage"&&!_(n.slice(0,-1)))continue}if(s==="ratio"){let[l,d]=z(n,"/");return{nodes:M(`${l.trim()} / ${d.trim()}`),ratio:!0}}return{nodes:M(n),ratio:!1}}else if(e.kind==="arbitrary"&&t.kind==="word"&&t.value[0]==="["&&t.value[t.value.length-1]==="]"){let n=t.value.slice(1,-1);if(n==="*")return{nodes:M(e.value)};if("dataType"in e&&e.dataType&&e.dataType!==n)continue;if("dataType"in e&&e.dataType)return{nodes:M(e.value)};if(J(e.value,[n])!==null)return{nodes:M(e.value)}}}}function xe(e,i,r,t,n=""){let s=!1,l=it(i,f=>r==null?t(f):f.startsWith("current")?t(X(f,r)):((f.startsWith("var(")||r.startsWith("var("))&&(s=!0),t(ai(f,r))));function d(f){return n?z(f,",").map(c=>n.trim()+" "+c.trim()).join(", "):f}return s?[a(e,d(it(i,t))),Z("@supports (color: lab(from red l a b))",[a(e,d(l))])]:[a(e,d(l))]}function wt(e,i,r,t,n=""){let s=!1,l=z(i,",").map(d=>it(d,f=>r==null?t(f):f.startsWith("current")?t(X(f,r)):((f.startsWith("var(")||r.startsWith("var("))&&(s=!0),t(ai(f,r))))).map(d=>`drop-shadow(${d})`).join(" ");return s?[a(e,n+z(i,",").map(d=>`drop-shadow(${it(d,t)})`).join(" ")),Z("@supports (color: lab(from red l a b))",[a(e,n+l)])]:[a(e,n+l)]}var fi=/^-?[a-z][a-zA-Z0-9_-]*/,Zn=37,Jn=47,Qn=46,Xn=97,el=122,tl=65,rl=90,kt=48,bt=57,il=95,nl=45;function ll(e){let i=fi.exec(e);if(i===null)return!1;let r=i[0],t=e.slice(r.length);if(t.length===0&&r.endsWith("-"))return!1;if(t.length===0)return!0;let n=!1;for(let s=0;s<t.length;s++){let l=t.charCodeAt(s);switch(l){case Zn:{if(s!==t.length-1)return!1;let f=(t[s-1]||r[r.length-1]||"").charCodeAt(0);if(f<kt||f>bt)return!1;break}case Jn:{if(s===t.length-1||n)return!1;n=!0;break}case Qn:{let f=(t[s-1]||r[r.length-1]||"").charCodeAt(0);if(f<kt||f>bt)return!1;let p=(t[s+1]||"").charCodeAt(0);if(p<kt||p>bt)return!1;break}case il:case nl:continue;default:{if(l>=Xn&&l<=el||l>=tl&&l<=rl||l>=kt&&l<=bt)continue;return!1}}}return!0}function al(e){if(!e.endsWith("-*"))return!1;e=e.slice(0,-2);let i=fi.exec(e);if(i===null)return!1;let r=i[0];return e.slice(r.length).length===0}var nr={"--alpha":ol,"--spacing":sl,"--theme":ul,theme:fl};function ol(e,i,r,...t){let[n,s]=z(r,"/").map(l=>l.trim());if(!n||!s)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);if(t.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);return X(n,s)}function sl(e,i,r,...t){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(t.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${t.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variaLine truncated
|
||||
`),s=!0;return P(M(t),l=>{if(l.kind==="function"&&l.value==="var"){let d=l.nodes[0].value;if(!new RegExp(`var\\(${d}[,)]\\s*`,"g").test(n)||n.includes(`${d}:`))return s=!1,V.Stop}}),s}function Ml(e,i){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=i.designSystem,t=r.storage[ur].get(i.signatureOptions),n=r.storage[we].get(i.signatureOptions),s=r.storage[lt].get(i.signatureOptions),l=r.printCandidate(e),d=n.get(l);if(typeof d!="string")return e;for(let c of f(d,e))if(s(e,c))return c;return e;function*f(c,p){let m=t.get(c);if(m.length>1){let u;for(let v of m)if(v[0]!=="-"){if(u)return;u=v}if(u)for(let v of de(r,u))yield v;return}if(m.length===0&&p.modifier){let u={...p,modifier:null},v=n.get(r.printCandidate(u));if(typeof v=="string")for(let h of f(v,u))yield Object.assign({},h,{modifier:p.modifier})}if(m.length===1)for(let u of de(r,m[0]))yield u}}var Fl=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),Wl=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Bl(e){let i=Fl.get(e);i&&(yield i);for(let[r,t]of Wl){let n=e.replace(r,t);n!==e&&(yield n)}}function Yl(e,i){let r=i.designSystem,t=r.storage[lt].get(i.signatureOptions),n=Oi(r,e);for(let s of Bl(n)){if(!t(e,s))continue;let[l]=de(r,s);return l}return e}function Gl(e,i){let r=i.designSystem,t=r.storage[Nt],n=r.storage[Ki],s=Tt(e);for(let[l]of s){if(l.kind==="compound")continue;let d=r.printVariant(l),f=t.get(d);if(typeof f!="string")continue;let c=n.get(f);if(c.length!==1)continue;let p=c[0],m=r.parseVariant(p);m!==null&&pe(l,m)}return e}function ql(e,i){let r=i.designSystem,t=r.storage[we].get(i.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=r.printCandidate({...e,value:{...e.value,dataType:null}});t.get(r.printCandidate(e))===t.get(n)&&(e.value.dataType=null)}return e}function Hl(e,i){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=i.designSystem,t=r.storage[we].get(i.signatureOptions),n=t.get(r.printCandidate(e));if(n===null)return e;for(let s of Ii(e))if(t.get(r.printCandidate({...e,value:s}))===n)return e.value=s,e;return e}function Zl(e){let i=Tt(e);for(let[r]of i)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[t,n]=z(r.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*Ii(e,i=e.value?.value??"",r=new Set){if(r.has(i))return;if(r.add(i),yield{kind:"named",value:i,fraction:null},i.endsWith("%")&&Q(i.slice(0,-1))&&(yield{kind:"named",value:i.slice(0,-1),fraction:null}),i.includes("/")){let[s,l]=i.split("/");_(s)&&_(l)&&(yield{kind:"named",value:s,fraction:`${s}/${l}`})}let t=new Set;for(let s of i.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(s[0].trim());let n=Array.from(t).sort((s,l)=>s.length-l.length);for(let s of n)yield*Ii(e,s,r)}function Si(e){return!(e.length===1&&e[0].kind==="list")}function St(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function Jl(e,i){let r=[e],t=i.designSystem,n=t.storage[Nt],s=Tt(e);for(let[l,d]of s)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let f=fe(l.selector);if(!Si(f))continue;if(f.length===1&&f[0].kind==="complex"&&(f=f[0].nodes),d===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===">"&&f[2].kind==="selector"&&f[2].value==="*"){pe(l,t.parseVariant("*"));continue}if(d===null&&f.length===3&&f[0].kind==="selector"&&f[0].value==="&"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&f[2].value==="*"){pe(l,t.parseVariant("**"));continue}if(d===null&&f.length===1&&f[0].kind==="compound"&&f[0].nodes.length===2&&f[0].nodes[0].kind==="selector"&&f[0].nodes[0].value==="&"&&f[0].nodes[1].kind==="function"&&f[0].nodes[1].value===":has"&&f[0].nodes[1].nodes.length===1&&f[0].nodes[1].nodes[0].kind==="selector"){pe(l,t.parseVariant(`has-[${oe(f[0].nodes[1].nodes,!0)}]`));continue}if(d===null&&f.length===3&&f[0].kind==="selector"&&f[1].kind==="combinator"&&f[1].value===" "&&f[2].kind==="selector"&&f[2].value==="&"){f.pop(),f.pop(),pe(l,t.parseVariant(`in-[${oe(f,!0)}]`));continue}if(d===null&&f[0].kind==="selector"&&(f[0].value==="@media"||f[0].value==="@supports")){let u=n.get(t.pri
Line truncated
|
||||
|
||||
${se([m])}
|
||||
Relies on:
|
||||
|
||||
${se([v])}`)}c.add(m);for(let v of s.get(m))for(let h of l.get(v))u.push(m),p(h,u),u.pop();d.add(m),c.delete(m),f.push(m)}}for(let m of n)p(m);for(let m of f)"nodes"in m&&P(m.nodes,u=>{if(u.kind!=="at-rule"||u.name!=="@apply")return;let v=u.params.split(/(\s+)/g),h={},k=[],y=[],S=0;for(let[b,I]of v.entries())b%2===0&&(I[0]==="-"&&I[1]==="-"?y.push(I):k.push(I),h[I]=S),S+=I.length;if(y.length){if(k.length===0)return V.Skip;let b=y.join(" ");throw new Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${b}\` into a separate rule.`)}if(u.nodes.length>0&&k.length){let b=k.join(" ");throw new Error(`The rule \`@apply ${b}\` must not have a body.`)}{let b=Object.keys(h),I=$e(b,i,{respectImportant:!1,onInvalidCandidate:E=>{if(i.theme.prefix&&!E.startsWith(i.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${E}\`. Did you mean \`${i.theme.prefix}:${E}\`?`);if(i.invalidCandidates.has(E))throw new Error(`Cannot apply utility class \`${E}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let j=z(E,":");if(j.length>1){let q=j.pop();if(i.candidatesToCss([q])[0]){let G=i.candidatesToCss(j.map(ie=>`${ie}:[--tw-variant-check:1]`)),ee=j.filter((ie,o)=>G[o]===null);if(ee.length>0){if(ee.length===1)throw new Error(`Cannot apply utility class \`${E}\` because the ${ee.map(ie=>`\`${ie}\``)} variant does not exist.`);{let ie=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${E}\` because the ${ie.format(ee.map(o=>`\`${o}\``))} variants do not exist.`)}}}}throw i.theme.size===0?new Error(`Cannot apply unknown utility class \`${E}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${E}\``)}}),D=u.src,O=I.astNodes.map(E=>{let j=I.nodeSorting.get(E)?.candidate,q=j?h[j]:void 0;if(E=re(E),!D||!j||q===void 0)return P([E],ee=>{ee.src=D}),E;let G=[D[0],D[1],D[2]];return G[1]+=7+q,G[2]=G[1]+j.length,P([E],ee=>{ee.src=G}),E}),L=[];for(let E of O)if(E.kind==="rule")for(let j of E.nodes)L.push(j);else L.push(E);return V.Replace(L)}});return r}function*Gi(e,i){for(let r of e.params.split(/\s+/g))for(let t of i.parseCandidate(r))switch(t.kind){case"arbitrary":break;case"static":case"functional":yield t.root;break;default:}}async function dr(e,i,r,t=0,n=!1){let s=0,l=[];return P(e,d=>{if(d.kind==="at-rule"&&(d.name==="@import"||d.name==="@reference")){let f=ma(M(d.params));if(f===null)return;d.name==="@reference"&&(f.media="reference"),s|=2;let{uri:c,layer:p,media:m,supports:u}=f;if(c.startsWith("data:")||c.startsWith("http://")||c.startsWith("https://"))return;let v=ve({},[]);return l.push((async()=>{if(t>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${i}\`)`);let h=await r(c,i),k=Te(h.content,{from:n?h.path:void 0});await dr(k,h.base,r,t+1,n),v.nodes=ga(d,[ve({base:h.base},k)],p,m,u)})()),V.ReplaceSkip(v)}}),l.length>0&&await Promise.all(l),s}function ma(e){let i,r=null,t=null,n=null;for(let s=0;s<e.length;s++){let l=e[s];if(l.kind!=="separator"){if(l.kind==="word"&&!i){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;i=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!i)return null;if((l.kind==="word"||l.kind==="function")&&l.value.toLowerCase()==="layer"){if(r)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in l?r=F(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(n)return null;n=F(l.nodes);continue}t=F(e.slice(s));break}}return i?{uri:i,layer:r,media:t,supports:n}:null}function ga(e,i,r,t,n){let s=i;if(r!==null){let l=B("@layer",r,s);l.src=e.src,s=[l]}if(t!==null){let l=B("@media",t,s);l.src=e.src,s=[l]}if(n!==null){let l=B("@supports",n[0]==="("?n:`(${n})`,s);l.src=e.src,s=[l]}return s}function Ye(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let i=Object.getPrototypeOf(e);return i===null||Object.getPrototypeOf(i)===null}function ot(e,i,r,t=[]){for(let n of i)if(n!=null)for(let s of Reflect.ownKeys(n)){t.push(s);let l=r(e[s],n[s],t);l!==void 0?e[s]=l:!Ye(e[s])||!Ye(n[s])?e[s]=n[s]:e[s]=ot({},[e[s],n[s]],r,t),t.pop()}return e}function Rt(e,i,r){return function(n,s){let l=n.lastIndexOf("/"),d=null;l!==-1&&(d=n.slice(l+1).trim(),n=n.slice(0,l).trim());let f=(()=>{let c=Pe(n),[p,m]=ha(e.theme,c),u=r(qi(i()??{},c)??null);if(typeof u=="string"&&(u=u.replace("<alpha-value>","1")),typeof p!="object")return typeof m!="object"&&m&4?u??p:p;if(u!==null&&typeof u=="object"&&!Array.isArray(u)){let v=ot({},[u],(h,k)=>k);if(p===null&&Object.hasOwn(u,"__CSS_VALUES__")){let h={};for(let k in u.__CSS_VALUES__)h[k]=u[k],delete v[k];p=h}for(let h in p)h!=="__CSS_VALUES__"&&(u?.__CSS_VALUES__?.[h]&4&&qi(Line truncated
|
||||
|
||||
${se([y])}
|
||||
|
||||
\`@plugin\` options must be a flat list of declarations.`);if(y.value===void 0)continue;let S=y.value,x=z(S,",").map(b=>{if(b=b.trim(),b==="null")return null;if(b==="true")return!0;if(b==="false")return!1;if(Number.isNaN(Number(b))){if(b[0]==='"'&&b[b.length-1]==='"'||b[0]==="'"&&b[b.length-1]==="'")return b.slice(1,-1);if(b[0]==="{"&&b[b.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${se([y]).trim()}\` is not supported.
|
||||
|
||||
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(b);return b});k[y.property]=x.length===1?x[0]:x}return l.push([{id:h,base:v.context.base,reference:!!v.context.reference,src:m.src},Object.keys(k).length>0?k:null]),s|=4,V.Replace([])}if(m.name==="@config"){if(m.nodes.length>0)throw new Error("`@config` cannot have a body.");if(v.parent!==null)throw new Error("`@config` cannot be nested.");return d.push({id:m.params.slice(1,-1),base:v.context.base,reference:!!v.context.reference,src:m.src}),s|=4,V.Replace([])}}),nn(e);let f=e.resolveThemeValue;if(e.resolveThemeValue=function(u,v){return u.startsWith("--")?f(u,v):(s|=on({designSystem:e,base:i,ast:r,sources:n,configs:[],pluginDetails:[]}),e.resolveThemeValue(u,v))},!l.length&&!d.length)return 0;let[c,p]=await Promise.all([Promise.all(d.map(async({id:m,base:u,reference:v,src:h})=>{let k=await t(m,u,"config");return{path:m,base:k.base,config:k.module,reference:v,src:h}})),Promise.all(l.map(async([{id:m,base:u,reference:v,src:h},k])=>{let y=await t(m,u,"plugin");return{path:m,base:y.base,plugin:y.module,options:k,reference:v,src:h}}))]);return s|=on({designSystem:e,base:i,ast:r,sources:n,configs:c,pluginDetails:p}),s}function on({designSystem:e,base:i,ast:r,sources:t,configs:n,pluginDetails:s}){let l=0,f=[...s.map(k=>{if(!k.options)return{config:{plugins:[k.plugin]},base:k.base,reference:k.reference,src:k.src};if("__isOptionsFunction"in k.plugin)return{config:{plugins:[k.plugin(k.options)]},base:k.base,reference:k.reference,src:k.src};throw new Error(`The plugin "${k.path}" does not accept options`)}),...n],{resolvedConfig:c}=hr(e,[{config:en(e.theme),base:i,reference:!0,src:void 0},...f,{config:{plugins:[rn]},base:i,reference:!0,src:void 0}]),{resolvedConfig:p,replacedThemeKeys:m}=hr(e,f),u={designSystem:e,ast:r,resolvedConfig:c,featuresRef:{set current(k){l|=k}}},v=mr({...u,referenceMode:!1,src:void 0}),h=e.resolveThemeValue;e.resolveThemeValue=function(y,S){if(y[0]==="-"&&y[1]==="-")return h(y,S);let x=v.theme(y,void 0);if(Array.isArray(x)&&x.length===2)return x[0];if(Array.isArray(x))return x.join(", ");if(typeof x=="object"&&x!==null&&"DEFAULT"in x)return x.DEFAULT;if(typeof x=="string")return x};for(let{handler:k,reference:y,src:S}of c.plugins){let x=mr({...u,referenceMode:y??!1,src:S});k(x)}if(gi(e,p,m),Xi(e,p),an(p,e),ln(p,e),tn(p,e),!e.theme.prefix&&c.prefix){if(c.prefix.endsWith("-")&&(c.prefix=c.prefix.slice(0,-1),console.warn(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!Aa.test(c.prefix))throw new Error(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=c.prefix}if(!e.important&&c.important===!0&&(e.important=!0),typeof c.important=="string"){let k=c.important;P(r,(y,S)=>{if(y.kind!=="at-rule"||y.name!=="@tailwind"||y.params!=="utilities")return;let x=et(S);return x.parent?.kind==="rule"&&x.parent.selector===k?V.Stop:V.ReplaceStop(H(k,[y]))})}for(let k of c.blocklist)e.invalidCandidates.add(k);for(let k of c.content.files){if("raw"in k)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
|
||||
|
||||
${JSON.stringify(k,null,2)}
|
||||
|
||||
This feature is not currently supported.`);let y=!1;k.pattern[0]=="!"&&(y=!0,k.pattern=k.pattern.slice(1)),t.push({...k,negated:y})}return l}function un({ast:e}){let i=new U(n=>ft(n.code)),r=new U(n=>({url:n.file,content:n.code,ignore:!1})),t={file:null,sources:[],mappings:[]};P(e,n=>{if(!n.src||!n.dst)return;let s=r.get(n.src[0]);if(!s.content)return;let l=i.get(n.src[0]),d=i.get(n.dst[0]),f=s.content.slice(n.src[1],n.src[2]),c=0;for(let u of f.split(`
|
||||
`)){if(u.trim()!==""){let v=l.find(n.src[1]+c),h=d.find(n.dst[1]);t.mappings.push({name:null,originalPosition:{source:s,...v},generatedPosition:h})}c+=u.length,c+=1}let p=l.find(n.src[2]),m=d.find(n.dst[2]);t.mappings.push({name:null,originalPosition:{source:s,...p},generatedPosition:m})});for(let n of i.keys())t.sources.push(r.get(n));return t.mappings.sort((n,s)=>n.generatedPosition.line-s.generatedPosition.line||n.generatedPosition.column-s.generatedPosition.column||(n.originalPosition?.line??0)-(s.originalPosition?.line??0)||(n.originalPosition?.column??0)-(s.originalPosition?.column??0)),t}var fn=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Pt(e){let i=e.indexOf("{");if(i===-1)return[e];let r=[],t=e.slice(0,i),n=e.slice(i),s=0,l=n.lastIndexOf("}");for(let m=0;m<n.length;m++){let u=n[m];if(u==="{")s++;else if(u==="}"&&(s--,s===0)){l=m;break}}if(l===-1)throw new Error(`The pattern \`${e}\` is not balanced.`);let d=n.slice(1,l),f=n.slice(l+1),c;Ca(d)?c=Sa(d):c=z(d,","),c=c.flatMap(m=>Pt(m));let p=Pt(f);for(let m of p)for(let u of c)r.push(t+u+m);return r}function Ca(e){return fn.test(e)}function Sa(e){let i=e.match(fn);if(!i)return[e];let[,r,t,n]=i,s=n?parseInt(n,10):void 0,l=[];if(/^-?\d+$/.test(r)&&/^-?\d+$/.test(t)){let d=parseInt(r,10),f=parseInt(t,10);if(s===void 0&&(s=d<=f?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");let c=d<f;c&&s<0&&(s=-s),!c&&s>0&&(s=-s);for(let p=d;c?p<=f:p>=f;p+=s)l.push(p.toString())}return l}function cn(e,i){let r=new Set,t=new Set,n=[];function s(l,d=[]){if(e.has(l)&&!r.has(l)){t.has(l)&&i.onCircularDependency?.(d,l),t.add(l);for(let f of e.get(l)??[])d.push(l),s(f,d),d.pop();r.add(l),t.delete(l),n.push(l)}}for(let l of e.keys())s(l);return n}var Va=/^[a-z]+$/,Ht=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(Ht||{});function $a(){throw new Error("No `loadModule` function provided to `compile`")}function Ta(){throw new Error("No `loadStylesheet` function provided to `compile`")}function Na(e){let i=0,r=null;for(let t of z(e," "))t==="reference"?i|=2:t==="inline"?i|=1:t==="default"?i|=4:t==="static"?i|=8:t.startsWith("prefix(")&&t.endsWith(")")&&(r=t.slice(7,-1));return[i,r]}var ze=(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[f.AtTheme=64]="AtTheme",f))(ze||{});async function pn(e,{base:i="",from:r,loadModule:t=$a,loadStylesheet:n=Ta}={}){let s=0;e=[ve({base:i},e)],s|=await dr(e,i,n,0,r!==void 0);let l=null,d=new vr,f=new Map,c=new Map,p=[],m=null,u=null,v=[],h=[],k=[],y=[],S=null;P(e,(b,I)=>{if(b.kind!=="at-rule")return;let D=et(I);if(b.name==="@tailwind"&&(b.params==="utilities"||b.params.startsWith("utilities"))){if(u!==null)return V.Replace([]);if(D.context.reference)return V.Replace([]);let O=z(b.params," ");for(let L of O)if(L.startsWith("source(")){let E=L.slice(7,-1);if(E==="none"){S=E;continue}if(E[0]==='"'&&E[E.length-1]!=='"'||E[0]==="'"&&E[E.length-1]!=="'"||E[0]!=="'"&&E[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");S={base:D.context.sourceBase??D.context.base,pattern:E.slice(1,-1)}}u=b,s|=16}if(b.name==="@utility"){if(D.parent!==null)throw new Error("`@utility` cannot be nested.");if(b.nodes.length===0)throw new Error(`\`@utility ${b.params}\` is empty. Utilities should include at least one property.`);let O=ui(b);if(O===null){if(!b.params.endsWith("-*")){if(b.params.endsWith("*"))throw new Error(`\`@utility ${b.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(b.params.includes("*"))throw new Error(`\`@utility ${b.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${b.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}p.push(O)}if(b.name==="@source"){if(b.nodes.length>0)throw new Error("`@source` cannot have a body.");if(D.parent!==null)throw new Error("`@source` cannot be nested.");let O=!1,L=!1,E=b.params;if(E[0]==="n"&&E.startsWith("not ")&&(O=!0,E=E.slice(4)),E[0]==="i"&&E.startsWith("inline(")&&(L=!0,E=E.slice(7,-1).trim()),E[0]==='"'&&E[E.length-1]!=='"'||E[0]==="'"&&E[E.length-1]!=="'"||E[0]!=="'"&&E[0]!=='"')throw new Error("`@source` paths must be quoted.");let j=E.slice(1,-1);if(L){let q=O?y:k,G=z(j," ");for(let ee of G)for(let ie of Pt(ee))q.push(ie)}else h.push({base:D.context.base,pattern:j,negated:O});return V.ReplaceSkip([])}if(b.name==="@variant"&&(D.parent===null?b.nodes.length===0?b.name="@custom-variant":(P(b.nodes,O=>{if(O.kind==="at-rule"&&O.name==="@slot")return b.name="@custom-variant",V.Stop}),b.name==="@variant"&&v.push(b)):v.push(b)),b.name==="@custom-variant"){if(D.parent!==null)throw new Error("`@custom-variant` cannot be nested.");let[O,L]=z(b.params," ");if(!Et.test(O))throwLine truncated
|
||||
`).map((q,G,ee)=>`${G===0||G>=ee.length-2?" ":">"} ${q}`).join(`
|
||||
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
||||
|
||||
${j}`)}),m?V.ReplaceSkip([]):(m=H(":root, :host",[]),m.src=b.src,V.ReplaceSkip(m))}});let x=Fi(d,u?.src);if(l&&(x.important=l),y.length>0)for(let b of y)x.invalidCandidates.add(b);s|=await sn({designSystem:x,base:i,ast:e,loadModule:t,sources:h});for(let b of f.keys())x.variants.static(b,()=>{});for(let b of cn(c,{onCircularDependency(I,D){let O=se(I.map((L,E)=>B("@custom-variant",L,[B("@variant",I[E+1]??D,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${D} {`,`@custom-variant ${D} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
|
||||
|
||||
${O}`)}}))f.get(b)?.(x);for(let b of p)b(x);if(m){let b=[];for(let[D,O]of x.theme.entries()){if(O.options&2)continue;let L=a(_e(D),O.value);L.src=O.src,b.push(L)}let I=x.theme.getKeyframes();for(let D of I)e.push(ve({theme:!0},[Y([D])]));m.nodes=[ve({theme:!0},b)]}if(s|=at(e,x),s|=Le(e,x),s|=Ve(e,x),u){let b=u;b.kind="context",b.context={}}return P(e,b=>{if(b.kind==="at-rule")return b.name==="@utility"?V.Replace([]):V.Skip}),{designSystem:x,ast:e,sources:h,root:S,utilitiesNode:u,features:s,inlineCandidates:k}}async function Ea(e,i={}){let{designSystem:r,ast:t,sources:n,root:s,utilitiesNode:l,features:d,inlineCandidates:f}=await pn(e,i);t.unshift(gt(`! tailwindcss v${yr} | MIT License | https://tailwindcss.com `));function c(h){r.invalidCandidates.add(h)}let p=new Set,m=null,u=0,v=!1;for(let h of f)r.invalidCandidates.has(h)||(p.add(h),v=!0);return{sources:n,root:s,features:d,build(h){if(d===0)return e;if(!l)return m??=Ne(t,r,i.polyfills),m;let k=v,y=!1;v=!1;let S=p.size;for(let b of h)if(!r.invalidCandidates.has(b))if(b[0]==="-"&&b[1]==="-"){let I=r.theme.markUsedVariable(b);k||=I,y||=I}else p.add(b),k||=p.size!==S;if(!k)return m??=Ne(t,r,i.polyfills),m;let x=$e(p,r,{onInvalidCandidate:c}).astNodes;return i.from&&P(x,b=>{b.src??=l.src}),!y&&u===x.length?(m??=Ne(t,r,i.polyfills),m):(u=x.length,l.nodes=x,m=Ne(t,r,i.polyfills),m)}}}async function zf(e,i={}){let r=Te(e,{from:i.from}),t=await Ea(r,i),n=r,s=e;return{...t,build(l){let d=t.build(l);return d===n||(s=se(d,!!i.from),n=d),s},buildSourceMap(){return un({ast:n})}}}async function jf(e,i={}){return(await pn(Te(e,{from:i.from}),i)).designSystem}function Ra(){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{ze as Features,Ht as Polyfills,jf as __unstable__loadDesignSystem,zf as compile,Ea as compileAst,Ra as default};
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
export { P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
|
||||
import { b as PluginFn, C as Config, c as PluginWithConfig, d as PluginWithOptions } from './types-DWdTiksJ.mjs';
|
||||
export { a as PluginAPI, P as PluginsConfig, T as ThemeConfig } from './types-DWdTiksJ.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, PluginWithConfig, createPlugin as default };
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-B4yBzhca.js';
|
||||
import './colors-C__qRT83.js';
|
||||
|
||||
/**
|
||||
* The source code for one or more nodes in the AST
|
||||
*
|
||||
* This generally corresponds to a stylesheet
|
||||
*/
|
||||
interface Source {
|
||||
/**
|
||||
* The path to the file that contains the referenced source code
|
||||
*
|
||||
* If this references the *output* source code, this is `null`.
|
||||
*/
|
||||
file: string | null;
|
||||
/**
|
||||
* The referenced source code
|
||||
*/
|
||||
code: string;
|
||||
}
|
||||
/**
|
||||
* The file and offsets within it that this node covers
|
||||
*
|
||||
* This can represent either:
|
||||
* - A location in the original CSS which caused this node to be created
|
||||
* - A location in the output CSS where this node resides
|
||||
*/
|
||||
type SourceLocation = [source: Source, start: number, end: number];
|
||||
|
||||
type Config = UserConfig;
|
||||
type PluginFn = (api: PluginAPI) => void;
|
||||
type PluginWithConfig = {
|
||||
handler: PluginFn;
|
||||
config?: UserConfig;
|
||||
/** @internal */
|
||||
reference?: boolean;
|
||||
src?: SourceLocation | undefined;
|
||||
};
|
||||
type PluginWithOptions<T> = {
|
||||
(options?: T): PluginWithConfig;
|
||||
__isOptionsFunction: true;
|
||||
};
|
||||
type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
|
||||
type PluginAPI = {
|
||||
addBase(base: CssInJs): void;
|
||||
addVariant(name: string, variant: string | string[] | CssInJs): void;
|
||||
matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
|
||||
modifier: string | null;
|
||||
}) => string | string[], options?: {
|
||||
values?: Record<string, T>;
|
||||
sort?(a: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}, b: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}): number;
|
||||
}): void;
|
||||
addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
|
||||
matchUtilities(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs | CssInJs[]>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
|
||||
matchComponents(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
theme(path: string, defaultValue?: any): any;
|
||||
config(path?: string, defaultValue?: any): any;
|
||||
prefix(className: string): string;
|
||||
};
|
||||
type CssInJs = {
|
||||
[key: string]: string | string[] | CssInJs | CssInJs[];
|
||||
};
|
||||
|
||||
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
|
||||
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
|
||||
type ThemeConfig = Record<string, ThemeValue> & {
|
||||
extend?: Record<string, ThemeValue>;
|
||||
};
|
||||
type ContentFile = string | {
|
||||
raw: string;
|
||||
extension?: string;
|
||||
};
|
||||
type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
|
||||
interface UserConfig {
|
||||
presets?: UserConfig[];
|
||||
theme?: ThemeConfig;
|
||||
plugins?: Plugin[];
|
||||
}
|
||||
interface UserConfig {
|
||||
content?: ContentFile[] | {
|
||||
relative?: boolean;
|
||||
files: ContentFile[];
|
||||
};
|
||||
}
|
||||
interface UserConfig {
|
||||
darkMode?: DarkModeStrategy;
|
||||
}
|
||||
interface UserConfig {
|
||||
prefix?: string;
|
||||
}
|
||||
interface UserConfig {
|
||||
blocklist?: string[];
|
||||
}
|
||||
interface UserConfig {
|
||||
important?: boolean | string;
|
||||
}
|
||||
interface UserConfig {
|
||||
future?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
interface UserConfig {
|
||||
experimental?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
|
||||
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
|
||||
declare namespace createPlugin {
|
||||
var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
|
||||
}
|
||||
|
||||
export { createPlugin as default };
|
||||
+1
@@ -0,0 +1 @@
|
||||
"use strict";function g(i,n){return{handler:i,config:n}}g.withOptions=function(i,n=()=>({})){function t(o){return{handler:i(o),config:n(o)}}return t.__isOptionsFunction=!0,t};var u=g;module.exports=u;
|
||||
+1
@@ -0,0 +1 @@
|
||||
function g(i,n){return{handler:i,config:n}}g.withOptions=function(i,n=()=>({})){function t(o){return{handler:i(o),config:n(o)}}return t.__isOptionsFunction=!0,t};var u=g;export{u as default};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
import { _ as _default } from './colors-C__qRT83.js';
|
||||
|
||||
type NamedUtilityValue = {
|
||||
kind: 'named';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500
|
||||
* ^^^^^^^
|
||||
*
|
||||
* w-1/2
|
||||
* ^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* ```
|
||||
* w-1/2
|
||||
* ^^^
|
||||
* ```
|
||||
*/
|
||||
fraction: string | null;
|
||||
};
|
||||
|
||||
type PluginUtils = {
|
||||
theme: (keypath: string, defaultValue?: any) => any;
|
||||
colors: typeof _default;
|
||||
};
|
||||
|
||||
export type { NamedUtilityValue as N, PluginUtils as P };
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
import _default from './colors.mjs';
|
||||
|
||||
type ArbitraryUtilityValue = {
|
||||
kind: 'arbitrary';
|
||||
/**
|
||||
* ```
|
||||
* bg-[color:var(--my-color)]
|
||||
* ^^^^^
|
||||
*
|
||||
* bg-(color:--my-color)
|
||||
* ^^^^^
|
||||
* ```
|
||||
*/
|
||||
dataType: string | null;
|
||||
/**
|
||||
* ```
|
||||
* bg-[#0088cc]
|
||||
* ^^^^^^^
|
||||
*
|
||||
* bg-[var(--my_variable)]
|
||||
* ^^^^^^^^^^^^^^^^^^
|
||||
*
|
||||
* bg-(--my_variable)
|
||||
* ^^^^^^^^^^^^^^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
type NamedUtilityValue = {
|
||||
kind: 'named';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500
|
||||
* ^^^^^^^
|
||||
*
|
||||
* w-1/2
|
||||
* ^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* ```
|
||||
* w-1/2
|
||||
* ^^^
|
||||
* ```
|
||||
*/
|
||||
fraction: string | null;
|
||||
};
|
||||
type ArbitraryModifier = {
|
||||
kind: 'arbitrary';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500/[50%]
|
||||
* ^^^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
type NamedModifier = {
|
||||
kind: 'named';
|
||||
/**
|
||||
* ```
|
||||
* bg-red-500/50
|
||||
* ^^
|
||||
* ```
|
||||
*/
|
||||
value: string;
|
||||
};
|
||||
type ArbitraryVariantValue = {
|
||||
kind: 'arbitrary';
|
||||
value: string;
|
||||
};
|
||||
type NamedVariantValue = {
|
||||
kind: 'named';
|
||||
value: string;
|
||||
};
|
||||
type Variant =
|
||||
/**
|
||||
* Arbitrary variants are variants that take a selector and generate a variant
|
||||
* on the fly.
|
||||
*
|
||||
* E.g.: `[&_p]`
|
||||
*/
|
||||
{
|
||||
kind: 'arbitrary';
|
||||
selector: string;
|
||||
relative: boolean;
|
||||
}
|
||||
/**
|
||||
* Static variants are variants that don't take any arguments.
|
||||
*
|
||||
* E.g.: `hover`
|
||||
*/
|
||||
| {
|
||||
kind: 'static';
|
||||
root: string;
|
||||
}
|
||||
/**
|
||||
* Functional variants are variants that can take an argument. The argument is
|
||||
* either a named variant value or an arbitrary variant value.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `aria-disabled`
|
||||
* - `aria-[disabled]`
|
||||
* - `@container-size` -> @container, with named value `size`
|
||||
* - `@container-[inline-size]` -> @container, with arbitrary variant value `inline-size`
|
||||
* - `@container` -> @container, with no value
|
||||
*/
|
||||
| {
|
||||
kind: 'functional';
|
||||
root: string;
|
||||
value: ArbitraryVariantValue | NamedVariantValue | null;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
}
|
||||
/**
|
||||
* Compound variants are variants that take another variant as an argument.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `has-[&_p]`
|
||||
* - `group-*`
|
||||
* - `peer-*`
|
||||
*/
|
||||
| {
|
||||
kind: 'compound';
|
||||
root: string;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
variant: Variant;
|
||||
};
|
||||
type Candidate =
|
||||
/**
|
||||
* Arbitrary candidates are candidates that register utilities on the fly with
|
||||
* a property and a value.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `[color:red]`
|
||||
* - `[color:red]/50`
|
||||
* - `[color:red]/50!`
|
||||
*/
|
||||
{
|
||||
kind: 'arbitrary';
|
||||
property: string;
|
||||
value: string;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
variants: Variant[];
|
||||
important: boolean;
|
||||
raw: string;
|
||||
}
|
||||
/**
|
||||
* Static candidates are candidates that don't take any arguments.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `underline`
|
||||
* - `box-border`
|
||||
*/
|
||||
| {
|
||||
kind: 'static';
|
||||
root: string;
|
||||
variants: Variant[];
|
||||
important: boolean;
|
||||
raw: string;
|
||||
}
|
||||
/**
|
||||
* Functional candidates are candidates that can take an argument.
|
||||
*
|
||||
* E.g.:
|
||||
*
|
||||
* - `bg-red-500`
|
||||
* - `bg-[#0088cc]`
|
||||
* - `w-1/2`
|
||||
*/
|
||||
| {
|
||||
kind: 'functional';
|
||||
root: string;
|
||||
value: ArbitraryUtilityValue | NamedUtilityValue | null;
|
||||
modifier: ArbitraryModifier | NamedModifier | null;
|
||||
variants: Variant[];
|
||||
important: boolean;
|
||||
raw: string;
|
||||
};
|
||||
|
||||
type PluginUtils = {
|
||||
theme: (keypath: string, defaultValue?: any) => any;
|
||||
colors: typeof _default;
|
||||
};
|
||||
|
||||
export type { Candidate as C, NamedUtilityValue as N, PluginUtils as P, Variant as V };
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
|
||||
|
||||
/**
|
||||
* The source code for one or more nodes in the AST
|
||||
*
|
||||
* This generally corresponds to a stylesheet
|
||||
*/
|
||||
interface Source {
|
||||
/**
|
||||
* The path to the file that contains the referenced source code
|
||||
*
|
||||
* If this references the *output* source code, this is `null`.
|
||||
*/
|
||||
file: string | null;
|
||||
/**
|
||||
* The referenced source code
|
||||
*/
|
||||
code: string;
|
||||
}
|
||||
/**
|
||||
* The file and offsets within it that this node covers
|
||||
*
|
||||
* This can represent either:
|
||||
* - A location in the original CSS which caused this node to be created
|
||||
* - A location in the output CSS where this node resides
|
||||
*/
|
||||
type SourceLocation = [source: Source, start: number, end: number];
|
||||
|
||||
type Config = UserConfig;
|
||||
type PluginFn = (api: PluginAPI) => void;
|
||||
type PluginWithConfig = {
|
||||
handler: PluginFn;
|
||||
config?: UserConfig;
|
||||
/** @internal */
|
||||
reference?: boolean;
|
||||
src?: SourceLocation | undefined;
|
||||
};
|
||||
type PluginWithOptions<T> = {
|
||||
(options?: T): PluginWithConfig;
|
||||
__isOptionsFunction: true;
|
||||
};
|
||||
type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
|
||||
type PluginAPI = {
|
||||
addBase(base: CssInJs): void;
|
||||
addVariant(name: string, variant: string | string[] | CssInJs): void;
|
||||
matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
|
||||
modifier: string | null;
|
||||
}) => string | string[], options?: {
|
||||
values?: Record<string, T>;
|
||||
sort?(a: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}, b: {
|
||||
value: T | string;
|
||||
modifier: string | null;
|
||||
}): number;
|
||||
}): void;
|
||||
addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
|
||||
matchUtilities(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs | CssInJs[]>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
|
||||
matchComponents(utilities: Record<string, (value: string, extra: {
|
||||
modifier: string | null;
|
||||
}) => CssInJs>, options?: Partial<{
|
||||
type: string | string[];
|
||||
supportsNegativeValues: boolean;
|
||||
values: Record<string, string> & {
|
||||
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
||||
};
|
||||
modifiers: 'any' | Record<string, string>;
|
||||
}>): void;
|
||||
theme(path: string, defaultValue?: any): any;
|
||||
config(path?: string, defaultValue?: any): any;
|
||||
prefix(className: string): string;
|
||||
};
|
||||
type CssInJs = {
|
||||
[key: string]: string | string[] | CssInJs | CssInJs[];
|
||||
};
|
||||
|
||||
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
|
||||
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
|
||||
type ThemeConfig = Record<string, ThemeValue> & {
|
||||
extend?: Record<string, ThemeValue>;
|
||||
};
|
||||
type ContentFile = string | {
|
||||
raw: string;
|
||||
extension?: string;
|
||||
};
|
||||
type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
|
||||
interface UserConfig {
|
||||
presets?: UserConfig[];
|
||||
theme?: ThemeConfig;
|
||||
plugins?: Plugin[];
|
||||
}
|
||||
interface UserConfig {
|
||||
content?: ContentFile[] | {
|
||||
relative?: boolean;
|
||||
files: ContentFile[];
|
||||
};
|
||||
}
|
||||
interface UserConfig {
|
||||
darkMode?: DarkModeStrategy;
|
||||
}
|
||||
interface UserConfig {
|
||||
prefix?: string;
|
||||
}
|
||||
interface UserConfig {
|
||||
blocklist?: string[];
|
||||
}
|
||||
interface UserConfig {
|
||||
important?: boolean | string;
|
||||
}
|
||||
interface UserConfig {
|
||||
future?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
interface UserConfig {
|
||||
experimental?: 'all' | Record<string, boolean>;
|
||||
}
|
||||
|
||||
export type { Config as C, Plugin as P, SourceLocation as S, ThemeConfig as T, UserConfig as U, PluginAPI as a, PluginFn as b, PluginWithConfig as c, PluginWithOptions as d };
|
||||
+950
@@ -0,0 +1,950 @@
|
||||
@layer theme, base, components, utilities;
|
||||
|
||||
@layer theme {
|
||||
@theme default {
|
||||
--font-sans:
|
||||
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
|
||||
"Noto Sans", Arial, 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 none);
|
||||
--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 none);
|
||||
--color-neutral-100: oklch(97% 0 none);
|
||||
--color-neutral-200: oklch(92.2% 0 none);
|
||||
--color-neutral-300: oklch(87% 0 none);
|
||||
--color-neutral-400: oklch(70.8% 0 none);
|
||||
--color-neutral-500: oklch(55.6% 0 none);
|
||||
--color-neutral-600: oklch(43.9% 0 none);
|
||||
--color-neutral-700: oklch(37.1% 0 none);
|
||||
--color-neutral-800: oklch(26.9% 0 none);
|
||||
--color-neutral-900: oklch(20.5% 0 none);
|
||||
--color-neutral-950: oklch(14.5% 0 none);
|
||||
|
||||
--color-stone-50: oklch(98.5% 0.001 106.423);
|
||||
--color-stone-100: oklch(97% 0.001 106.424);
|
||||
--color-stone-200: oklch(92.3% 0.003 48.717);
|
||||
--color-stone-300: oklch(86.9% 0.005 56.366);
|
||||
--color-stone-400: oklch(70.9% 0.01 56.259);
|
||||
--color-stone-500: oklch(55.3% 0.013 58.071);
|
||||
--color-stone-600: oklch(44.4% 0.011 73.639);
|
||||
--color-stone-700: oklch(37.4% 0.01 67.558);
|
||||
--color-stone-800: oklch(26.8% 0.007 34.298);
|
||||
--color-stone-900: oklch(21.6% 0.006 56.043);
|
||||
--color-stone-950: oklch(14.7% 0.004 49.25);
|
||||
|
||||
--color-mauve-50: oklch(98.5% 0 none);
|
||||
--color-mauve-100: oklch(96% 0.003 325.6);
|
||||
--color-mauve-200: oklch(92.2% 0.005 325.62);
|
||||
--color-mauve-300: oklch(86.5% 0.012 325.68);
|
||||
--color-mauve-400: oklch(71.1% 0.019 323.02);
|
||||
--color-mauve-500: oklch(54.2% 0.034 322.5);
|
||||
--color-mauve-600: oklch(43.5% 0.029 321.78);
|
||||
--color-mauve-700: oklch(36.4% 0.029 323.89);
|
||||
--color-mauve-800: oklch(26.3% 0.024 320.12);
|
||||
--color-mauve-900: oklch(21.2% 0.019 322.12);
|
||||
--color-mauve-950: oklch(14.5% 0.008 326);
|
||||
|
||||
--color-olive-50: oklch(98.8% 0.003 106.5);
|
||||
--color-olive-100: oklch(96.6% 0.005 106.5);
|
||||
--color-olive-200: oklch(93% 0.007 106.5);
|
||||
--color-olive-300: oklch(88% 0.011 106.6);
|
||||
--color-olive-400: oklch(73.7% 0.021 106.9);
|
||||
--color-olive-500: oklch(58% 0.031 107.3);
|
||||
--color-olive-600: oklch(46.6% 0.025 107.3);
|
||||
--color-olive-700: oklch(39.4% 0.023 107.4);
|
||||
--color-olive-800: oklch(28.6% 0.016 107.4);
|
||||
--color-olive-900: oklch(22.8% 0.013 107.4);
|
||||
--color-olive-950: oklch(15.3% 0.006 107.1);
|
||||
|
||||
--color-mist-50: oklch(98.7% 0.002 197.1);
|
||||
--color-mist-100: oklch(96.3% 0.002 197.1);
|
||||
--color-mist-200: oklch(92.5% 0.005 214.3);
|
||||
--color-mist-300: oklch(87.2% 0.007 219.6);
|
||||
--color-mist-400: oklch(72.3% 0.014 214.4);
|
||||
--color-mist-500: oklch(56% 0.021 213.5);
|
||||
--color-mist-600: oklch(45% 0.017 213.2);
|
||||
--color-mist-700: oklch(37.8% 0.015 216);
|
||||
--color-mist-800: oklch(27.5% 0.011 216.9);
|
||||
--color-mist-900: oklch(21.8% 0.008 223.9);
|
||||
--color-mist-950: oklch(14.8% 0.004 228.8);
|
||||
|
||||
--color-taupe-50: oklch(98.6% 0.002 67.8);
|
||||
--color-taupe-100: oklch(96% 0.002 17.2);
|
||||
--color-taupe-200: oklch(92.2% 0.005 34.3);
|
||||
--color-taupe-300: oklch(86.8% 0.007 39.5);
|
||||
--color-taupe-400: oklch(71.4% 0.014 41.2);
|
||||
--color-taupe-500: oklch(54.7% 0.021 43.1);
|
||||
--color-taupe-600: oklch(43.8% 0.017 39.3);
|
||||
--color-taupe-700: oklch(36.7% 0.016 35.7);
|
||||
--color-taupe-800: oklch(26.8% 0.011 36.5);
|
||||
--color-taupe-900: oklch(21.4% 0.009 43.1);
|
||||
--color-taupe-950: oklch(14.7% 0.004 49.3);
|
||||
|
||||
--color-black: #000;
|
||||
--color-white: #fff;
|
||||
|
||||
--spacing: 0.25rem;
|
||||
|
||||
--breakpoint-sm: 40rem;
|
||||
--breakpoint-md: 48rem;
|
||||
--breakpoint-lg: 64rem;
|
||||
--breakpoint-xl: 80rem;
|
||||
--breakpoint-2xl: 96rem;
|
||||
|
||||
--container-3xs: 16rem;
|
||||
--container-2xs: 18rem;
|
||||
--container-xs: 20rem;
|
||||
--container-sm: 24rem;
|
||||
--container-md: 28rem;
|
||||
--container-lg: 32rem;
|
||||
--container-xl: 36rem;
|
||||
--container-2xl: 42rem;
|
||||
--container-3xl: 48rem;
|
||||
--container-4xl: 56rem;
|
||||
--container-5xl: 64rem;
|
||||
--container-6xl: 72rem;
|
||||
--container-7xl: 80rem;
|
||||
|
||||
--text-xs: 0.75rem;
|
||||
--text-xs--line-height: calc(1 / 0.75);
|
||||
--text-sm: 0.875rem;
|
||||
--text-sm--line-height: calc(1.25 / 0.875);
|
||||
--text-base: 1rem;
|
||||
--text-base--line-height: calc(1.5 / 1);
|
||||
--text-lg: 1.125rem;
|
||||
--text-lg--line-height: calc(1.75 / 1.125);
|
||||
--text-xl: 1.25rem;
|
||||
--text-xl--line-height: calc(1.75 / 1.25);
|
||||
--text-2xl: 1.5rem;
|
||||
--text-2xl--line-height: calc(2 / 1.5);
|
||||
--text-3xl: 1.875rem;
|
||||
--text-3xl--line-height: calc(2.25 / 1.875);
|
||||
--text-4xl: 2.25rem;
|
||||
--text-4xl--line-height: calc(2.5 / 2.25);
|
||||
--text-5xl: 3rem;
|
||||
--text-5xl--line-height: 1;
|
||||
--text-6xl: 3.75rem;
|
||||
--text-6xl--line-height: 1;
|
||||
--text-7xl: 4.5rem;
|
||||
--text-7xl--line-height: 1;
|
||||
--text-8xl: 6rem;
|
||||
--text-8xl--line-height: 1;
|
||||
--text-9xl: 8rem;
|
||||
--text-9xl--line-height: 1;
|
||||
|
||||
--font-weight-thin: 100;
|
||||
--font-weight-extralight: 200;
|
||||
--font-weight-light: 300;
|
||||
--font-weight-normal: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-semibold: 600;
|
||||
--font-weight-bold: 700;
|
||||
--font-weight-extrabold: 800;
|
||||
--font-weight-black: 900;
|
||||
|
||||
--tracking-tighter: -0.05em;
|
||||
--tracking-tight: -0.025em;
|
||||
--tracking-normal: 0em;
|
||||
--tracking-wide: 0.025em;
|
||||
--tracking-wider: 0.05em;
|
||||
--tracking-widest: 0.1em;
|
||||
|
||||
--leading-tight: 1.25;
|
||||
--leading-snug: 1.375;
|
||||
--leading-normal: 1.5;
|
||||
--leading-relaxed: 1.625;
|
||||
--leading-loose: 2;
|
||||
|
||||
--radius-xs: 0.125rem;
|
||||
--radius-sm: 0.25rem;
|
||||
--radius-md: 0.375rem;
|
||||
--radius-lg: 0.5rem;
|
||||
--radius-xl: 0.75rem;
|
||||
--radius-2xl: 1rem;
|
||||
--radius-3xl: 1.5rem;
|
||||
--radius-4xl: 2rem;
|
||||
|
||||
--shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
||||
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
||||
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-md:
|
||||
0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
--shadow-lg:
|
||||
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
||||
--shadow-xl:
|
||||
0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
||||
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
||||
|
||||
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
||||
|
||||
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
||||
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
||||
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
||||
|
||||
--text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
|
||||
--text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
|
||||
--text-shadow-sm:
|
||||
0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075),
|
||||
0px 2px 2px rgb(0 0 0 / 0.075);
|
||||
--text-shadow-md:
|
||||
0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1),
|
||||
0px 2px 4px rgb(0 0 0 / 0.1);
|
||||
--text-shadow-lg:
|
||||
0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1),
|
||||
0px 4px 8px rgb(0 0 0 / 0.1);
|
||||
|
||||
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
||||
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
||||
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
--animate-spin: spin 1s linear infinite;
|
||||
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
||||
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
--animate-bounce: bounce 1s infinite;
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes ping {
|
||||
75%,
|
||||
100% {
|
||||
transform: scale(2);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(-25%);
|
||||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: none;
|
||||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||||
}
|
||||
}
|
||||
|
||||
--blur-xs: 4px;
|
||||
--blur-sm: 8px;
|
||||
--blur-md: 12px;
|
||||
--blur-lg: 16px;
|
||||
--blur-xl: 24px;
|
||||
--blur-2xl: 40px;
|
||||
--blur-3xl: 64px;
|
||||
|
||||
--perspective-dramatic: 100px;
|
||||
--perspective-near: 300px;
|
||||
--perspective-normal: 500px;
|
||||
--perspective-midrange: 800px;
|
||||
--perspective-distant: 1200px;
|
||||
|
||||
--aspect-video: 16 / 9;
|
||||
|
||||
--default-transition-duration: 150ms;
|
||||
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--default-font-family: --theme(--font-sans, initial);
|
||||
--default-font-feature-settings: --theme(
|
||||
--font-sans--font-feature-settings,
|
||||
initial
|
||||
);
|
||||
--default-font-variation-settings: --theme(
|
||||
--font-sans--font-variation-settings,
|
||||
initial
|
||||
);
|
||||
--default-mono-font-family: --theme(--font-mono, initial);
|
||||
--default-mono-font-feature-settings: --theme(
|
||||
--font-mono--font-feature-settings,
|
||||
initial
|
||||
);
|
||||
--default-mono-font-variation-settings: --theme(
|
||||
--font-mono--font-variation-settings,
|
||||
initial
|
||||
);
|
||||
}
|
||||
|
||||
/* Deprecated */
|
||||
@theme default inline reference {
|
||||
--blur: 8px;
|
||||
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
||||
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
|
||||
--radius: 0.25rem;
|
||||
--max-width-prose: 65ch;
|
||||
}
|
||||
}
|
||||
|
||||
@layer base {
|
||||
/*
|
||||
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
||||
2. Remove default margins and padding
|
||||
3. Reset all borders.
|
||||
*/
|
||||
|
||||
*,
|
||||
::after,
|
||||
::before,
|
||||
::backdrop,
|
||||
::file-selector-button {
|
||||
box-sizing: border-box; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
padding: 0; /* 2 */
|
||||
border: 0 solid; /* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Use a consistent sensible line-height in all browsers.
|
||||
2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
3. Use a more readable tab size.
|
||||
4. Use the user's configured `sans` font-family by default.
|
||||
5. Use the user's configured `sans` font-feature-settings by default.
|
||||
6. Use the user's configured `sans` font-variation-settings by default.
|
||||
7. Disable tap highlights on iOS.
|
||||
*/
|
||||
|
||||
html,
|
||||
:host {
|
||||
line-height: 1.5; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
tab-size: 4; /* 3 */
|
||||
font-family: --theme(
|
||||
--default-font-family,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
"Helvetica Neue",
|
||||
"Noto Sans",
|
||||
Arial,
|
||||
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:where(:not(iframe)) {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct vertical alignment in Chrome and Firefox.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct display in Chrome and Safari.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/*
|
||||
Make lists unstyled by default.
|
||||
*/
|
||||
|
||||
ol,
|
||||
ul,
|
||||
menu {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
||||
This can trigger a poorly considered lint error in some tools but is included by design.
|
||||
*/
|
||||
|
||||
img,
|
||||
svg,
|
||||
video,
|
||||
canvas,
|
||||
audio,
|
||||
iframe,
|
||||
embed,
|
||||
object {
|
||||
display: block; /* 1 */
|
||||
vertical-align: middle; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
*/
|
||||
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Inherit font styles in all browsers.
|
||||
2. Remove border radius in all browsers.
|
||||
3. Remove background color in all browsers.
|
||||
4. Ensure consistent opacity for disabled states in all browsers.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
optgroup,
|
||||
textarea,
|
||||
::file-selector-button {
|
||||
font: inherit; /* 1 */
|
||||
font-feature-settings: inherit; /* 1 */
|
||||
font-variation-settings: inherit; /* 1 */
|
||||
letter-spacing: inherit; /* 1 */
|
||||
color: inherit; /* 1 */
|
||||
border-radius: 0; /* 2 */
|
||||
background-color: transparent; /* 3 */
|
||||
opacity: 1; /* 4 */
|
||||
}
|
||||
|
||||
/*
|
||||
Restore default font weight.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore indentation.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup option {
|
||||
padding-inline-start: 20px;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore space after button.
|
||||
*/
|
||||
|
||||
::file-selector-button {
|
||||
margin-inline-end: 4px;
|
||||
}
|
||||
|
||||
/*
|
||||
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
||||
*/
|
||||
|
||||
::placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
||||
crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
||||
*/
|
||||
|
||||
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
||||
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
||||
::placeholder {
|
||||
color: color-mix(in oklab, currentcolor 50%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent resizing textareas horizontally by default.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
||||
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
||||
*/
|
||||
|
||||
::-webkit-date-and-time-value {
|
||||
min-height: 1lh; /* 1 */
|
||||
text-align: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit,
|
||||
::-webkit-datetime-edit-year-field,
|
||||
::-webkit-datetime-edit-month-field,
|
||||
::-webkit-datetime-edit-day-field,
|
||||
::-webkit-datetime-edit-hour-field,
|
||||
::-webkit-datetime-edit-minute-field,
|
||||
::-webkit-datetime-edit-second-field,
|
||||
::-webkit-datetime-edit-millisecond-field,
|
||||
::-webkit-datetime-edit-meridiem-field {
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
|
||||
*/
|
||||
|
||||
::-webkit-calendar-picker-indicator {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
||||
*/
|
||||
|
||||
:-moz-ui-invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the inability to style the border radius in iOS Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input:where([type="button"], [type="reset"], [type="submit"]),
|
||||
::file-selector-button {
|
||||
appearance: button;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the cursor style of increment and decrement buttons in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-inner-spin-button,
|
||||
::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Make elements with the HTML hidden attribute stay hidden by default.
|
||||
*/
|
||||
|
||||
[hidden]:where(:not([hidden="until-found"])) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
@tailwind utilities;
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"name": "tailwindcss",
|
||||
"version": "4.3.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": {
|
||||
"@jridgewell/remapping": "^2.3.5",
|
||||
"@types/node": "22.19.21",
|
||||
"dedent": "1.7.2",
|
||||
"lightningcss": "1.32.0",
|
||||
"magic-string": "^0.30.21",
|
||||
"source-map-js": "^1.2.1",
|
||||
"@tailwindcss/oxide": "^4.3.3"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "tsc --noEmit",
|
||||
"build": "tsup-node --env.NODE_ENV production",
|
||||
"dev": "tsup-node --env.NODE_ENV development --watch",
|
||||
"test:ui": "playwright test"
|
||||
}
|
||||
}
|
||||
+398
@@ -0,0 +1,398 @@
|
||||
/*
|
||||
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,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
'Segoe UI',
|
||||
Roboto,
|
||||
'Helvetica Neue',
|
||||
'Noto Sans',
|
||||
Arial,
|
||||
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:where(:not(iframe)) {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct vertical alignment in Chrome and Firefox.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct display in Chrome and Safari.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/*
|
||||
Make lists unstyled by default.
|
||||
*/
|
||||
|
||||
ol,
|
||||
ul,
|
||||
menu {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
||||
This can trigger a poorly considered lint error in some tools but is included by design.
|
||||
*/
|
||||
|
||||
img,
|
||||
svg,
|
||||
video,
|
||||
canvas,
|
||||
audio,
|
||||
iframe,
|
||||
embed,
|
||||
object {
|
||||
display: block; /* 1 */
|
||||
vertical-align: middle; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
*/
|
||||
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Inherit font styles in all browsers.
|
||||
2. Remove border radius in all browsers.
|
||||
3. Remove background color in all browsers.
|
||||
4. Ensure consistent opacity for disabled states in all browsers.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
optgroup,
|
||||
textarea,
|
||||
::file-selector-button {
|
||||
font: inherit; /* 1 */
|
||||
font-feature-settings: inherit; /* 1 */
|
||||
font-variation-settings: inherit; /* 1 */
|
||||
letter-spacing: inherit; /* 1 */
|
||||
color: inherit; /* 1 */
|
||||
border-radius: 0; /* 2 */
|
||||
background-color: transparent; /* 3 */
|
||||
opacity: 1; /* 4 */
|
||||
}
|
||||
|
||||
/*
|
||||
Restore default font weight.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore indentation.
|
||||
*/
|
||||
|
||||
:where(select:is([multiple], [size])) optgroup option {
|
||||
padding-inline-start: 20px;
|
||||
}
|
||||
|
||||
/*
|
||||
Restore space after button.
|
||||
*/
|
||||
|
||||
::file-selector-button {
|
||||
margin-inline-end: 4px;
|
||||
}
|
||||
|
||||
/*
|
||||
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
||||
*/
|
||||
|
||||
::placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
||||
crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
||||
*/
|
||||
|
||||
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
||||
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
||||
::placeholder {
|
||||
color: color-mix(in oklab, currentcolor 50%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent resizing textareas horizontally by default.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
||||
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
||||
*/
|
||||
|
||||
::-webkit-date-and-time-value {
|
||||
min-height: 1lh; /* 1 */
|
||||
text-align: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
||||
*/
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit,
|
||||
::-webkit-datetime-edit-year-field,
|
||||
::-webkit-datetime-edit-month-field,
|
||||
::-webkit-datetime-edit-day-field,
|
||||
::-webkit-datetime-edit-hour-field,
|
||||
::-webkit-datetime-edit-minute-field,
|
||||
::-webkit-datetime-edit-second-field,
|
||||
::-webkit-datetime-edit-millisecond-field,
|
||||
::-webkit-datetime-edit-meridiem-field {
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
|
||||
*/
|
||||
|
||||
::-webkit-calendar-picker-indicator {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
||||
*/
|
||||
|
||||
:-moz-ui-invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the inability to style the border radius in iOS Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input:where([type='button'], [type='reset'], [type='submit']),
|
||||
::file-selector-button {
|
||||
appearance: button;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the cursor style of increment and decrement buttons in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-inner-spin-button,
|
||||
::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Make elements with the HTML hidden attribute stay hidden by default.
|
||||
*/
|
||||
|
||||
[hidden]:where(:not([hidden='until-found'])) {
|
||||
display: none !important;
|
||||
}
|
||||
+510
@@ -0,0 +1,510 @@
|
||||
@theme default {
|
||||
--font-sans:
|
||||
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial,
|
||||
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 none);
|
||||
--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 none);
|
||||
--color-neutral-100: oklch(97% 0 none);
|
||||
--color-neutral-200: oklch(92.2% 0 none);
|
||||
--color-neutral-300: oklch(87% 0 none);
|
||||
--color-neutral-400: oklch(70.8% 0 none);
|
||||
--color-neutral-500: oklch(55.6% 0 none);
|
||||
--color-neutral-600: oklch(43.9% 0 none);
|
||||
--color-neutral-700: oklch(37.1% 0 none);
|
||||
--color-neutral-800: oklch(26.9% 0 none);
|
||||
--color-neutral-900: oklch(20.5% 0 none);
|
||||
--color-neutral-950: oklch(14.5% 0 none);
|
||||
|
||||
--color-stone-50: oklch(98.5% 0.001 106.423);
|
||||
--color-stone-100: oklch(97% 0.001 106.424);
|
||||
--color-stone-200: oklch(92.3% 0.003 48.717);
|
||||
--color-stone-300: oklch(86.9% 0.005 56.366);
|
||||
--color-stone-400: oklch(70.9% 0.01 56.259);
|
||||
--color-stone-500: oklch(55.3% 0.013 58.071);
|
||||
--color-stone-600: oklch(44.4% 0.011 73.639);
|
||||
--color-stone-700: oklch(37.4% 0.01 67.558);
|
||||
--color-stone-800: oklch(26.8% 0.007 34.298);
|
||||
--color-stone-900: oklch(21.6% 0.006 56.043);
|
||||
--color-stone-950: oklch(14.7% 0.004 49.25);
|
||||
|
||||
--color-mauve-50: oklch(98.5% 0 none);
|
||||
--color-mauve-100: oklch(96% 0.003 325.6);
|
||||
--color-mauve-200: oklch(92.2% 0.005 325.62);
|
||||
--color-mauve-300: oklch(86.5% 0.012 325.68);
|
||||
--color-mauve-400: oklch(71.1% 0.019 323.02);
|
||||
--color-mauve-500: oklch(54.2% 0.034 322.5);
|
||||
--color-mauve-600: oklch(43.5% 0.029 321.78);
|
||||
--color-mauve-700: oklch(36.4% 0.029 323.89);
|
||||
--color-mauve-800: oklch(26.3% 0.024 320.12);
|
||||
--color-mauve-900: oklch(21.2% 0.019 322.12);
|
||||
--color-mauve-950: oklch(14.5% 0.008 326);
|
||||
|
||||
--color-olive-50: oklch(98.8% 0.003 106.5);
|
||||
--color-olive-100: oklch(96.6% 0.005 106.5);
|
||||
--color-olive-200: oklch(93% 0.007 106.5);
|
||||
--color-olive-300: oklch(88% 0.011 106.6);
|
||||
--color-olive-400: oklch(73.7% 0.021 106.9);
|
||||
--color-olive-500: oklch(58% 0.031 107.3);
|
||||
--color-olive-600: oklch(46.6% 0.025 107.3);
|
||||
--color-olive-700: oklch(39.4% 0.023 107.4);
|
||||
--color-olive-800: oklch(28.6% 0.016 107.4);
|
||||
--color-olive-900: oklch(22.8% 0.013 107.4);
|
||||
--color-olive-950: oklch(15.3% 0.006 107.1);
|
||||
|
||||
--color-mist-50: oklch(98.7% 0.002 197.1);
|
||||
--color-mist-100: oklch(96.3% 0.002 197.1);
|
||||
--color-mist-200: oklch(92.5% 0.005 214.3);
|
||||
--color-mist-300: oklch(87.2% 0.007 219.6);
|
||||
--color-mist-400: oklch(72.3% 0.014 214.4);
|
||||
--color-mist-500: oklch(56% 0.021 213.5);
|
||||
--color-mist-600: oklch(45% 0.017 213.2);
|
||||
--color-mist-700: oklch(37.8% 0.015 216);
|
||||
--color-mist-800: oklch(27.5% 0.011 216.9);
|
||||
--color-mist-900: oklch(21.8% 0.008 223.9);
|
||||
--color-mist-950: oklch(14.8% 0.004 228.8);
|
||||
|
||||
--color-taupe-50: oklch(98.6% 0.002 67.8);
|
||||
--color-taupe-100: oklch(96% 0.002 17.2);
|
||||
--color-taupe-200: oklch(92.2% 0.005 34.3);
|
||||
--color-taupe-300: oklch(86.8% 0.007 39.5);
|
||||
--color-taupe-400: oklch(71.4% 0.014 41.2);
|
||||
--color-taupe-500: oklch(54.7% 0.021 43.1);
|
||||
--color-taupe-600: oklch(43.8% 0.017 39.3);
|
||||
--color-taupe-700: oklch(36.7% 0.016 35.7);
|
||||
--color-taupe-800: oklch(26.8% 0.011 36.5);
|
||||
--color-taupe-900: oklch(21.4% 0.009 43.1);
|
||||
--color-taupe-950: oklch(14.7% 0.004 49.3);
|
||||
|
||||
--color-black: #000;
|
||||
--color-white: #fff;
|
||||
|
||||
--spacing: 0.25rem;
|
||||
|
||||
--breakpoint-sm: 40rem;
|
||||
--breakpoint-md: 48rem;
|
||||
--breakpoint-lg: 64rem;
|
||||
--breakpoint-xl: 80rem;
|
||||
--breakpoint-2xl: 96rem;
|
||||
|
||||
--container-3xs: 16rem;
|
||||
--container-2xs: 18rem;
|
||||
--container-xs: 20rem;
|
||||
--container-sm: 24rem;
|
||||
--container-md: 28rem;
|
||||
--container-lg: 32rem;
|
||||
--container-xl: 36rem;
|
||||
--container-2xl: 42rem;
|
||||
--container-3xl: 48rem;
|
||||
--container-4xl: 56rem;
|
||||
--container-5xl: 64rem;
|
||||
--container-6xl: 72rem;
|
||||
--container-7xl: 80rem;
|
||||
|
||||
--text-xs: 0.75rem;
|
||||
--text-xs--line-height: calc(1 / 0.75);
|
||||
--text-sm: 0.875rem;
|
||||
--text-sm--line-height: calc(1.25 / 0.875);
|
||||
--text-base: 1rem;
|
||||
--text-base--line-height: calc(1.5 / 1);
|
||||
--text-lg: 1.125rem;
|
||||
--text-lg--line-height: calc(1.75 / 1.125);
|
||||
--text-xl: 1.25rem;
|
||||
--text-xl--line-height: calc(1.75 / 1.25);
|
||||
--text-2xl: 1.5rem;
|
||||
--text-2xl--line-height: calc(2 / 1.5);
|
||||
--text-3xl: 1.875rem;
|
||||
--text-3xl--line-height: calc(2.25 / 1.875);
|
||||
--text-4xl: 2.25rem;
|
||||
--text-4xl--line-height: calc(2.5 / 2.25);
|
||||
--text-5xl: 3rem;
|
||||
--text-5xl--line-height: 1;
|
||||
--text-6xl: 3.75rem;
|
||||
--text-6xl--line-height: 1;
|
||||
--text-7xl: 4.5rem;
|
||||
--text-7xl--line-height: 1;
|
||||
--text-8xl: 6rem;
|
||||
--text-8xl--line-height: 1;
|
||||
--text-9xl: 8rem;
|
||||
--text-9xl--line-height: 1;
|
||||
|
||||
--font-weight-thin: 100;
|
||||
--font-weight-extralight: 200;
|
||||
--font-weight-light: 300;
|
||||
--font-weight-normal: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-semibold: 600;
|
||||
--font-weight-bold: 700;
|
||||
--font-weight-extrabold: 800;
|
||||
--font-weight-black: 900;
|
||||
|
||||
--tracking-tighter: -0.05em;
|
||||
--tracking-tight: -0.025em;
|
||||
--tracking-normal: 0em;
|
||||
--tracking-wide: 0.025em;
|
||||
--tracking-wider: 0.05em;
|
||||
--tracking-widest: 0.1em;
|
||||
|
||||
--leading-tight: 1.25;
|
||||
--leading-snug: 1.375;
|
||||
--leading-normal: 1.5;
|
||||
--leading-relaxed: 1.625;
|
||||
--leading-loose: 2;
|
||||
|
||||
--radius-xs: 0.125rem;
|
||||
--radius-sm: 0.25rem;
|
||||
--radius-md: 0.375rem;
|
||||
--radius-lg: 0.5rem;
|
||||
--radius-xl: 0.75rem;
|
||||
--radius-2xl: 1rem;
|
||||
--radius-3xl: 1.5rem;
|
||||
--radius-4xl: 2rem;
|
||||
|
||||
--shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
||||
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
||||
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
||||
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
||||
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
||||
|
||||
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
||||
|
||||
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
||||
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
||||
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
||||
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
||||
|
||||
--text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
|
||||
--text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
|
||||
--text-shadow-sm:
|
||||
0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075);
|
||||
--text-shadow-md:
|
||||
0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1);
|
||||
--text-shadow-lg:
|
||||
0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1);
|
||||
|
||||
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
||||
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
||||
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
--animate-spin: spin 1s linear infinite;
|
||||
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
||||
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
--animate-bounce: bounce 1s infinite;
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes ping {
|
||||
75%,
|
||||
100% {
|
||||
transform: scale(2);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(-25%);
|
||||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: none;
|
||||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||||
}
|
||||
}
|
||||
|
||||
--blur-xs: 4px;
|
||||
--blur-sm: 8px;
|
||||
--blur-md: 12px;
|
||||
--blur-lg: 16px;
|
||||
--blur-xl: 24px;
|
||||
--blur-2xl: 40px;
|
||||
--blur-3xl: 64px;
|
||||
|
||||
--perspective-dramatic: 100px;
|
||||
--perspective-near: 300px;
|
||||
--perspective-normal: 500px;
|
||||
--perspective-midrange: 800px;
|
||||
--perspective-distant: 1200px;
|
||||
|
||||
--aspect-video: 16 / 9;
|
||||
|
||||
--default-transition-duration: 150ms;
|
||||
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--default-font-family: --theme(--font-sans, initial);
|
||||
--default-font-feature-settings: --theme(--font-sans--font-feature-settings, initial);
|
||||
--default-font-variation-settings: --theme(--font-sans--font-variation-settings, initial);
|
||||
--default-mono-font-family: --theme(--font-mono, initial);
|
||||
--default-mono-font-feature-settings: --theme(--font-mono--font-feature-settings, initial);
|
||||
--default-mono-font-variation-settings: --theme(--font-mono--font-variation-settings, initial);
|
||||
}
|
||||
|
||||
/* Deprecated */
|
||||
@theme default inline reference {
|
||||
--blur: 8px;
|
||||
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
||||
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
|
||||
--radius: 0.25rem;
|
||||
--max-width-prose: 65ch;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
@tailwind utilities;
|
||||
Reference in new issue
Block a user