@@ -382,7 +382,6 @@ test(
382382 If we ever want to remove these styles, we need to add an explicit border
383383 color utility to any element that depends on these defaults.
384384 */
385-
386385 @layer base {
387386 *,
388387 ::after,
@@ -986,6 +985,7 @@ test(
986985 border-color: var(--color-gray-200, currentColor);
987986 }
988987 }
988+
989989 /*
990990 Form elements have a 1px border by default in Tailwind CSS v4, so we've
991991 added these compatibility styles to make sure everything still looks the
@@ -1177,6 +1177,7 @@ test(
11771177
11781178 --- ./src/a.1.utilities.1.css ---
11791179 @import './a.1.utilities.utilities.css';
1180+
11801181 @utility foo-from-a {
11811182 color: red;
11821183 }
@@ -1198,12 +1199,14 @@ test(
11981199
11991200 --- ./src/b.1.css ---
12001201 @import './b.1.components.css';
1202+
12011203 @utility bar-from-b {
12021204 color: red;
12031205 }
12041206
12051207 --- ./src/c.1.css ---
12061208 @import './c.2.css' layer(utilities);
1209+
12071210 .baz-from-c {
12081211 color: green;
12091212 }
@@ -1213,12 +1216,14 @@ test(
12131216
12141217 --- ./src/c.2.css ---
12151218 @import './c.3.css';
1219+
12161220 #baz {
12171221 --keep: me;
12181222 }
12191223
12201224 --- ./src/c.2.utilities.css ---
12211225 @import './c.3.utilities.css';
1226+
12221227 @utility baz-from-import {
12231228 color: yellow;
12241229 }
@@ -1401,6 +1406,8 @@ test(
14011406 /* Inject missing @config */
14021407 @import 'tailwindcss';
14031408
1409+ @config '../tailwind.config.ts';
1410+
14041411 /*
14051412 The default border color has changed to \`currentColor\` in Tailwind CSS v4,
14061413 so we've added these compatibility styles to make sure everything still
@@ -1418,6 +1425,7 @@ test(
14181425 border-color: var(--color-gray-200, currentColor);
14191426 }
14201427 }
1428+
14211429 /*
14221430 Form elements have a 1px border by default in Tailwind CSS v4, so we've
14231431 added these compatibility styles to make sure everything still looks the
@@ -1433,12 +1441,13 @@ test(
14331441 border-width: 0;
14341442 }
14351443 }
1436- @config '../tailwind.config.ts';
14371444
14381445 --- ./src/root.2.css ---
14391446 /* Already contains @config */
14401447 @import 'tailwindcss';
14411448
1449+ @config "../tailwind.config.ts";
1450+
14421451 /*
14431452 The default border color has changed to \`currentColor\` in Tailwind CSS v4,
14441453 so we've added these compatibility styles to make sure everything still
@@ -1456,6 +1465,7 @@ test(
14561465 border-color: var(--color-gray-200, currentColor);
14571466 }
14581467 }
1468+
14591469 /*
14601470 Form elements have a 1px border by default in Tailwind CSS v4, so we've
14611471 added these compatibility styles to make sure everything still looks the
@@ -1471,12 +1481,23 @@ test(
14711481 border-width: 0;
14721482 }
14731483 }
1474- @config "../tailwind.config.ts";
14751484
14761485 --- ./src/root.3.css ---
14771486 /* Inject missing @config above first @theme */
14781487 @import 'tailwindcss';
14791488
1489+ @config '../tailwind.config.ts';
1490+
1491+ @variant hocus (&:hover, &:focus);
1492+
1493+ @theme {
1494+ --color-red-500: #f00;
1495+ }
1496+
1497+ @theme {
1498+ --color-blue-500: #00f;
1499+ }
1500+
14801501 /*
14811502 The default border color has changed to \`currentColor\` in Tailwind CSS v4,
14821503 so we've added these compatibility styles to make sure everything still
@@ -1494,6 +1515,7 @@ test(
14941515 border-color: var(--color-gray-200, currentColor);
14951516 }
14961517 }
1518+
14971519 /*
14981520 Form elements have a 1px border by default in Tailwind CSS v4, so we've
14991521 added these compatibility styles to make sure everything still looks the
@@ -1509,22 +1531,12 @@ test(
15091531 border-width: 0;
15101532 }
15111533 }
1512- @config '../tailwind.config.ts';
1513-
1514- @variant hocus (&:hover, &:focus);
1515-
1516- @theme {
1517- --color-red-500: #f00;
1518- }
1519-
1520- @theme {
1521- --color-blue-500: #00f;
1522- }
15231534
15241535 --- ./src/root.4.css ---
15251536 /* Inject missing @config due to nested imports with tailwind imports */
15261537 @import './root.4/base.css';
15271538 @import './root.4/utilities.css';
1539+
15281540 @config '../tailwind.config.ts';
15291541
15301542 --- ./src/root.5.css ---
@@ -1575,6 +1587,8 @@ test(
15751587 /* Inject missing @config in this file, due to full import */
15761588 @import 'tailwindcss';
15771589
1590+ @config '../../tailwind.config.ts';
1591+
15781592 /*
15791593 The default border color has changed to \`currentColor\` in Tailwind CSS v4,
15801594 so we've added these compatibility styles to make sure everything still
@@ -1592,6 +1606,7 @@ test(
15921606 border-color: var(--color-gray-200, currentColor);
15931607 }
15941608 }
1609+
15951610 /*
15961611 Form elements have a 1px border by default in Tailwind CSS v4, so we've
15971612 added these compatibility styles to make sure everything still looks the
@@ -1607,7 +1622,6 @@ test(
16071622 border-width: 0;
16081623 }
16091624 }
1610- @config '../../tailwind.config.ts';
16111625 "
16121626 ` )
16131627 } ,
@@ -1665,6 +1679,7 @@ test(
16651679 border-color: var(--color-gray-200, currentColor);
16661680 }
16671681 }
1682+
16681683 /*
16691684 Form elements have a 1px border by default in Tailwind CSS v4, so we've
16701685 added these compatibility styles to make sure everything still looks the
0 commit comments