@@ -15432,6 +15432,160 @@ test('text', async () => {
15432
15432
) . toEqual ( '' )
15433
15433
} )
15434
15434
15435
+ test ( 'text-shadow' , async ( ) => {
15436
+ expect (
15437
+ await compileCss (
15438
+ css `
15439
+ @theme {
15440
+ --color-red-500 : # ef4444 ;
15441
+ --text-shadow-2xs : 0px 1px 0px rgb (0 0 0 / 0.1 );
15442
+ --text-shadow-sm : 0px 1px 2px rgb (0 0 0 / 0.06 ), 0px 2px 2px rgb (0 0 0 / 0.06 );
15443
+ }
15444
+ @tailwind utilities;
15445
+ ` ,
15446
+ [
15447
+ // Shadows
15448
+ 'text-shadow-2xs' ,
15449
+ 'text-shadow-sm' ,
15450
+ 'text-shadow-none' ,
15451
+ 'text-shadow-[12px_12px_#0088cc]' ,
15452
+ 'text-shadow-[10px_10px]' ,
15453
+ 'text-shadow-[var(--value)]' ,
15454
+ 'text-shadow-[shadow:var(--value)]' ,
15455
+
15456
+ // Colors
15457
+ 'text-shadow-red-500' ,
15458
+ 'text-shadow-red-500/50' ,
15459
+ 'text-shadow-red-500/2.25' ,
15460
+ 'text-shadow-red-500/2.5' ,
15461
+ 'text-shadow-red-500/2.75' ,
15462
+ 'text-shadow-red-500/[0.5]' ,
15463
+ 'text-shadow-red-500/[50%]' ,
15464
+ 'text-shadow-current' ,
15465
+ 'text-shadow-current/50' ,
15466
+ 'text-shadow-current/[0.5]' ,
15467
+ 'text-shadow-current/[50%]' ,
15468
+ 'text-shadow-inherit' ,
15469
+ 'text-shadow-transparent' ,
15470
+ 'text-shadow-[#0088cc]' ,
15471
+ 'text-shadow-[#0088cc]/50' ,
15472
+ 'text-shadow-[#0088cc]/[0.5]' ,
15473
+ 'text-shadow-[#0088cc]/[50%]' ,
15474
+ 'text-shadow-[color:var(--value)]' ,
15475
+ 'text-shadow-[color:var(--value)]/50' ,
15476
+ 'text-shadow-[color:var(--value)]/[0.5]' ,
15477
+ 'text-shadow-[color:var(--value)]/[50%]' ,
15478
+ ] ,
15479
+ ) ,
15480
+ ) . toMatchInlineSnapshot ( `
15481
+ ":root, :host {
15482
+ --color-red-500: #ef4444;
15483
+ }
15484
+
15485
+ .text-shadow-2xs {
15486
+ text-shadow: 0px 1px 0px var(--tw-text-shadow-color, #0000001a);
15487
+ }
15488
+
15489
+ .text-shadow-\\[\\#0088cc\\] {
15490
+ --tw-text-shadow-color: #08c;
15491
+ }
15492
+
15493
+ .text-shadow-\\[\\#0088cc\\]\\/50, .text-shadow-\\[\\#0088cc\\]\\/\\[0\\.5\\], .text-shadow-\\[\\#0088cc\\]\\/\\[50\\%\\] {
15494
+ --tw-text-shadow-color: oklab(59.9824% -.06725 -.12414 / .5);
15495
+ }
15496
+
15497
+ .text-shadow-\\[10px_10px\\] {
15498
+ text-shadow: 10px 10px var(--tw-text-shadow-color, currentcolor);
15499
+ }
15500
+
15501
+ .text-shadow-\\[12px_12px_\\#0088cc\\] {
15502
+ text-shadow: 12px 12px var(--tw-text-shadow-color, #08c);
15503
+ }
15504
+
15505
+ .text-shadow-\\[color\\:var\\(--value\\)\\] {
15506
+ --tw-text-shadow-color: var(--value);
15507
+ }
15508
+
15509
+ .text-shadow-\\[color\\:var\\(--value\\)\\]\\/50, .text-shadow-\\[color\\:var\\(--value\\)\\]\\/\\[0\\.5\\], .text-shadow-\\[color\\:var\\(--value\\)\\]\\/\\[50\\%\\] {
15510
+ --tw-text-shadow-color: color-mix(in oklab, var(--value) 50%, transparent);
15511
+ }
15512
+
15513
+ .text-shadow-\\[shadow\\:var\\(--value\\)\\], .text-shadow-\\[var\\(--value\\)\\] {
15514
+ text-shadow: var(--value);
15515
+ }
15516
+
15517
+ .text-shadow-current {
15518
+ --tw-text-shadow-color: currentColor;
15519
+ }
15520
+
15521
+ .text-shadow-current\\/50, .text-shadow-current\\/\\[0\\.5\\], .text-shadow-current\\/\\[50\\%\\] {
15522
+ --tw-text-shadow-color: color-mix(in oklab, currentColor 50%, transparent);
15523
+ }
15524
+
15525
+ .text-shadow-inherit {
15526
+ --tw-text-shadow-color: inherit;
15527
+ }
15528
+
15529
+ .text-shadow-none {
15530
+ text-shadow: none;
15531
+ }
15532
+
15533
+ .text-shadow-red-500 {
15534
+ --tw-text-shadow-color: var(--color-red-500);
15535
+ }
15536
+
15537
+ .text-shadow-red-500\\/2\\.5 {
15538
+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 2.5%, transparent);
15539
+ }
15540
+
15541
+ .text-shadow-red-500\\/2\\.25 {
15542
+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 2.25%, transparent);
15543
+ }
15544
+
15545
+ .text-shadow-red-500\\/2\\.75 {
15546
+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 2.75%, transparent);
15547
+ }
15548
+
15549
+ .text-shadow-red-500\\/50, .text-shadow-red-500\\/\\[0\\.5\\], .text-shadow-red-500\\/\\[50\\%\\] {
15550
+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 50%, transparent);
15551
+ }
15552
+
15553
+ .text-shadow-sm {
15554
+ text-shadow: 0px 1px 2px var(--tw-text-shadow-color, #0000000f), 0px 2px 2px var(--tw-text-shadow-color, #0000000f);
15555
+ }
15556
+
15557
+ .text-shadow-transparent {
15558
+ --tw-text-shadow-color: transparent;
15559
+ }
15560
+
15561
+ @property --tw-text-shadow-color {
15562
+ syntax: "*";
15563
+ inherits: false
15564
+ }"
15565
+ ` )
15566
+ expect (
15567
+ await run ( [
15568
+ '-shadow-xl' ,
15569
+ '-shadow-none' ,
15570
+ '-shadow-red-500' ,
15571
+ '-shadow-red-500/50' ,
15572
+ '-shadow-red-500/[0.5]' ,
15573
+ '-shadow-red-500/[50%]' ,
15574
+ '-shadow-current' ,
15575
+ '-shadow-current/50' ,
15576
+ '-shadow-current/[0.5]' ,
15577
+ '-shadow-current/[50%]' ,
15578
+ '-shadow-inherit' ,
15579
+ '-shadow-transparent' ,
15580
+ '-shadow-[#0088cc]' ,
15581
+ '-shadow-[#0088cc]/50' ,
15582
+ '-shadow-[#0088cc]/[0.5]' ,
15583
+ '-shadow-[#0088cc]/[50%]' ,
15584
+ '-shadow-[var(--value)]' ,
15585
+ ] ) ,
15586
+ ) . toEqual ( '' )
15587
+ } )
15588
+
15435
15589
test ( 'shadow' , async ( ) => {
15436
15590
expect (
15437
15591
await compileCss (
0 commit comments