tailwindcss 4.0.4 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.css CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  @layer theme {
4
4
  @theme default {
5
- --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
5
+ --font-sans:
6
+ ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
6
7
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
7
8
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
8
- --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
9
- "Liberation Mono", "Courier New", monospace;
9
+ --font-mono:
10
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
11
+ "Courier New", monospace;
10
12
 
11
13
  --color-red-50: oklch(0.971 0.013 17.38);
12
14
  --color-red-100: oklch(0.936 0.032 17.717);
@@ -359,12 +361,12 @@
359
361
  --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
360
362
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
361
363
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
362
- --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
363
- 0 2px 4px -2px rgb(0 0 0 / 0.1);
364
- --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
365
- 0 4px 6px -4px rgb(0 0 0 / 0.1);
366
- --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
367
- 0 8px 10px -6px rgb(0 0 0 / 0.1);
364
+ --shadow-md:
365
+ 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
366
+ --shadow-lg:
367
+ 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
368
+ --shadow-xl:
369
+ 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
368
370
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
369
371
 
370
372
  --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
@@ -597,15 +599,15 @@
597
599
  "Liberation Mono",
598
600
  "Courier New",
599
601
  monospace
600
- ); /* 4 */
602
+ ); /* 1 */
601
603
  font-feature-settings: var(
602
604
  --default-mono-font-feature-settings,
603
605
  normal
604
- ); /* 5 */
606
+ ); /* 2 */
605
607
  font-variation-settings: var(
606
608
  --default-mono-font-variation-settings,
607
609
  normal
608
- ); /* 6 */
610
+ ); /* 3 */
609
611
  font-size: 1em; /* 4 */
610
612
  }
611
613
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -71,7 +71,7 @@
71
71
  "@types/node": "^20.14.8",
72
72
  "lightningcss": "^1.29.1",
73
73
  "dedent": "1.5.3",
74
- "@tailwindcss/oxide": "^4.0.4"
74
+ "@tailwindcss/oxide": "^4.0.6"
75
75
  },
76
76
  "scripts": {
77
77
  "lint": "tsc --noEmit",
package/preflight.css CHANGED
@@ -128,9 +128,9 @@ pre {
128
128
  'Liberation Mono',
129
129
  'Courier New',
130
130
  monospace
131
- ); /* 4 */
132
- font-feature-settings: var(--default-mono-font-feature-settings, normal); /* 5 */
133
- font-variation-settings: var(--default-mono-font-variation-settings, normal); /* 6 */
131
+ ); /* 1 */
132
+ font-feature-settings: var(--default-mono-font-feature-settings, normal); /* 2 */
133
+ font-variation-settings: var(--default-mono-font-variation-settings, normal); /* 3 */
134
134
  font-size: 1em; /* 4 */
135
135
  }
136
136
 
package/theme.css CHANGED
@@ -1,9 +1,11 @@
1
1
  @theme default {
2
- --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
3
- 'Segoe UI Symbol', 'Noto Color Emoji';
2
+ --font-sans:
3
+ ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
4
+ 'Noto Color Emoji';
4
5
  --font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
5
- --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
6
- 'Courier New', monospace;
6
+ --font-mono:
7
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
8
+ monospace;
7
9
 
8
10
  --color-red-50: oklch(0.971 0.013 17.38);
9
11
  --color-red-100: oklch(0.936 0.032 17.717);
@@ -1 +0,0 @@
1
- function f(n){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var e=String(n),r=e.length,i=-1,t,s="",l=e.charCodeAt(0);if(r==1&&l==45)return"\\"+e;for(;++i<r;){if(t=e.charCodeAt(i),t==0){s+="\uFFFD";continue}if(t>=1&&t<=31||t==127||i==0&&t>=48&&t<=57||i==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(i);continue}s+="\\"+e.charAt(i)}return s}function v(n){return n.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var p=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-underline-offset","--text-indent","--text-decoration-thickness","--text-decoration-color"]]]);function h(n,e){return(p.get(e)??[]).some(r=>n===r||n.startsWith(`${r}-`))}var g=class{constructor(e=new Map,r=new Set([])){this.values=e;this.keyframes=r}prefix=null;add(e,r,i=0){if(e.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(i&4){let t=this.values.get(e);if(t&&!(t.options&4))return}r==="initial"?this.values.delete(e):this.values.set(e,{value:r,options:i})}keysInNamespaces(e){let r=[];for(let i of e){let t=`${i}-`;for(let s of this.values.keys())s.startsWith(t)&&s.indexOf("--",2)===-1&&(h(s,i)||r.push(s.slice(t.length)))}return r}get(e){for(let r of e){let i=this.values.get(r);if(i)return i.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.#i(e[0]),e)):this.values.entries()}#i(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}clearNamespace(e,r){let i=p.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(r!==0&&(this.getOptions(t)&r)!==r)continue;for(let s of i)if(t.startsWith(s))continue e;this.values.delete(t)}}#e(e,r){for(let i of r){let t=e!==null?`${i}-${e}`:i;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${i}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!h(t,i))return t}return null}#t(e){return this.values.has(e)?`var(${f(this.#i(e))})`:null}resolve(e,r){let i=this.#e(e,r);if(!i)return null;let t=this.values.get(i);return t.options&1?t.value:this.#t(i)}resolveValue(e,r){let i=this.#e(e,r);return i?this.values.get(i).value:null}resolveWith(e,r,i=[]){let t=this.#e(e,r);if(!t)return null;let s={};for(let u of i){let a=`${t}${u}`,o=this.values.get(a);o&&(o.options&1?s[u]=o.value:s[u]=this.#t(a))}let l=this.values.get(t);return l.options&1?[l.value,s]:[this.#t(t),s]}namespace(e){let r=new Map,i=`${e}-`;for(let[t,s]of this.values)t===e?r.set(null,s.value):t.startsWith(`${i}-`)?r.set(t.slice(e.length),s.value):t.startsWith(i)&&r.set(t.slice(i.length),s.value);return r}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}};export{f as a,v as b,g as c};