@@ -398,7 +398,6 @@ test(
398
398
If we ever want to remove these styles, we need to add an explicit border
399
399
color utility to any element that depends on these defaults.
400
400
*/
401
-
402
401
@layer base {
403
402
*,
404
403
::after,
@@ -1002,6 +1001,7 @@ test(
1002
1001
border-color: var(--color-gray-200, currentColor);
1003
1002
}
1004
1003
}
1004
+
1005
1005
/*
1006
1006
Form elements have a 1px border by default in Tailwind CSS v4, so we've
1007
1007
added these compatibility styles to make sure everything still looks the
@@ -1193,6 +1193,7 @@ test(
1193
1193
1194
1194
--- ./src/a.1.utilities.1.css ---
1195
1195
@import './a.1.utilities.utilities.css';
1196
+
1196
1197
@utility foo-from-a {
1197
1198
color: red;
1198
1199
}
@@ -1214,12 +1215,14 @@ test(
1214
1215
1215
1216
--- ./src/b.1.css ---
1216
1217
@import './b.1.components.css';
1218
+
1217
1219
@utility bar-from-b {
1218
1220
color: red;
1219
1221
}
1220
1222
1221
1223
--- ./src/c.1.css ---
1222
1224
@import './c.2.css' layer(utilities);
1225
+
1223
1226
.baz-from-c {
1224
1227
color: green;
1225
1228
}
@@ -1229,12 +1232,14 @@ test(
1229
1232
1230
1233
--- ./src/c.2.css ---
1231
1234
@import './c.3.css';
1235
+
1232
1236
#baz {
1233
1237
--keep: me;
1234
1238
}
1235
1239
1236
1240
--- ./src/c.2.utilities.css ---
1237
1241
@import './c.3.utilities.css';
1242
+
1238
1243
@utility baz-from-import {
1239
1244
color: yellow;
1240
1245
}
@@ -1417,6 +1422,8 @@ test(
1417
1422
/* Inject missing @config */
1418
1423
@import 'tailwindcss';
1419
1424
1425
+ @config '../tailwind.config.ts';
1426
+
1420
1427
/*
1421
1428
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
1422
1429
so we've added these compatibility styles to make sure everything still
@@ -1434,6 +1441,7 @@ test(
1434
1441
border-color: var(--color-gray-200, currentColor);
1435
1442
}
1436
1443
}
1444
+
1437
1445
/*
1438
1446
Form elements have a 1px border by default in Tailwind CSS v4, so we've
1439
1447
added these compatibility styles to make sure everything still looks the
@@ -1449,12 +1457,13 @@ test(
1449
1457
border-width: 0;
1450
1458
}
1451
1459
}
1452
- @config '../tailwind.config.ts';
1453
1460
1454
1461
--- ./src/root.2.css ---
1455
1462
/* Already contains @config */
1456
1463
@import 'tailwindcss';
1457
1464
1465
+ @config "../tailwind.config.ts";
1466
+
1458
1467
/*
1459
1468
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
1460
1469
so we've added these compatibility styles to make sure everything still
@@ -1472,6 +1481,7 @@ test(
1472
1481
border-color: var(--color-gray-200, currentColor);
1473
1482
}
1474
1483
}
1484
+
1475
1485
/*
1476
1486
Form elements have a 1px border by default in Tailwind CSS v4, so we've
1477
1487
added these compatibility styles to make sure everything still looks the
@@ -1487,12 +1497,23 @@ test(
1487
1497
border-width: 0;
1488
1498
}
1489
1499
}
1490
- @config "../tailwind.config.ts";
1491
1500
1492
1501
--- ./src/root.3.css ---
1493
1502
/* Inject missing @config above first @theme */
1494
1503
@import 'tailwindcss';
1495
1504
1505
+ @config '../tailwind.config.ts';
1506
+
1507
+ @variant hocus (&:hover, &:focus);
1508
+
1509
+ @theme {
1510
+ --color-red-500: #f00;
1511
+ }
1512
+
1513
+ @theme {
1514
+ --color-blue-500: #00f;
1515
+ }
1516
+
1496
1517
/*
1497
1518
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
1498
1519
so we've added these compatibility styles to make sure everything still
@@ -1510,6 +1531,7 @@ test(
1510
1531
border-color: var(--color-gray-200, currentColor);
1511
1532
}
1512
1533
}
1534
+
1513
1535
/*
1514
1536
Form elements have a 1px border by default in Tailwind CSS v4, so we've
1515
1537
added these compatibility styles to make sure everything still looks the
@@ -1525,22 +1547,12 @@ test(
1525
1547
border-width: 0;
1526
1548
}
1527
1549
}
1528
- @config '../tailwind.config.ts';
1529
-
1530
- @variant hocus (&:hover, &:focus);
1531
-
1532
- @theme {
1533
- --color-red-500: #f00;
1534
- }
1535
-
1536
- @theme {
1537
- --color-blue-500: #00f;
1538
- }
1539
1550
1540
1551
--- ./src/root.4.css ---
1541
1552
/* Inject missing @config due to nested imports with tailwind imports */
1542
1553
@import './root.4/base.css';
1543
1554
@import './root.4/utilities.css';
1555
+
1544
1556
@config '../tailwind.config.ts';
1545
1557
1546
1558
--- ./src/root.5.css ---
@@ -1591,6 +1603,8 @@ test(
1591
1603
/* Inject missing @config in this file, due to full import */
1592
1604
@import 'tailwindcss';
1593
1605
1606
+ @config '../../tailwind.config.ts';
1607
+
1594
1608
/*
1595
1609
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
1596
1610
so we've added these compatibility styles to make sure everything still
@@ -1608,6 +1622,7 @@ test(
1608
1622
border-color: var(--color-gray-200, currentColor);
1609
1623
}
1610
1624
}
1625
+
1611
1626
/*
1612
1627
Form elements have a 1px border by default in Tailwind CSS v4, so we've
1613
1628
added these compatibility styles to make sure everything still looks the
@@ -1623,7 +1638,6 @@ test(
1623
1638
border-width: 0;
1624
1639
}
1625
1640
}
1626
- @config '../../tailwind.config.ts';
1627
1641
"
1628
1642
` )
1629
1643
} ,
@@ -1681,6 +1695,7 @@ test(
1681
1695
border-color: var(--color-gray-200, currentColor);
1682
1696
}
1683
1697
}
1698
+
1684
1699
/*
1685
1700
Form elements have a 1px border by default in Tailwind CSS v4, so we've
1686
1701
added these compatibility styles to make sure everything still looks the
0 commit comments