@@ -4280,7 +4280,7 @@ export function createUtilities(theme: Theme) {
4280
4280
let textShadowProperties = () => {
4281
4281
return atRoot([
4282
4282
property('--tw-text-shadow-color'),
4283
- property('--tw-text-shadow-intensity ', '100%', '<percentage>'),
4283
+ property('--tw-text-shadow-alpha ', '100%', '<percentage>'),
4284
4284
])
4285
4285
}
4286
4286
@@ -4290,14 +4290,14 @@ export function createUtilities(theme: Theme) {
4290
4290
])
4291
4291
4292
4292
utilities.functional('text-shadow', (candidate) => {
4293
- let intensity : string | undefined
4293
+ let alpha : string | undefined
4294
4294
4295
4295
if (candidate.modifier) {
4296
4296
if (candidate.modifier.kind === 'arbitrary') {
4297
- intensity = candidate.modifier.value
4297
+ alpha = candidate.modifier.value
4298
4298
} else {
4299
4299
if (isPositiveInteger(candidate.modifier.value)) {
4300
- intensity = `${candidate.modifier.value}%`
4300
+ alpha = `${candidate.modifier.value}%`
4301
4301
}
4302
4302
}
4303
4303
}
@@ -4308,14 +4308,10 @@ export function createUtilities(theme: Theme) {
4308
4308
4309
4309
return [
4310
4310
textShadowProperties(),
4311
- decl('--tw-text-shadow-intensity ', intensity ),
4311
+ decl('--tw-text-shadow-alpha ', alpha ),
4312
4312
decl(
4313
4313
'text-shadow',
4314
- replaceShadowColors(
4315
- value,
4316
- intensity,
4317
- (color) => `var(--tw-text-shadow-color, ${color})`,
4318
- ),
4314
+ replaceShadowColors(value, alpha, (color) => `var(--tw-text-shadow-color, ${color})`),
4319
4315
),
4320
4316
]
4321
4317
}
@@ -4330,18 +4326,18 @@ export function createUtilities(theme: Theme) {
4330
4326
if (value === null) return
4331
4327
return [
4332
4328
textShadowProperties(),
4333
- decl('--tw-text-shadow-color', withAlpha(value, 'var(--tw-text-shadow-intensity )')),
4329
+ decl('--tw-text-shadow-color', withAlpha(value, 'var(--tw-text-shadow-alpha )')),
4334
4330
]
4335
4331
}
4336
4332
default: {
4337
4333
return [
4338
4334
textShadowProperties(),
4339
- decl('--tw-text-shadow-intensity ', intensity ),
4335
+ decl('--tw-text-shadow-alpha ', alpha ),
4340
4336
decl(
4341
4337
'text-shadow',
4342
4338
replaceShadowColors(
4343
4339
value,
4344
- intensity ,
4340
+ alpha ,
4345
4341
(color) => `var(--tw-text-shadow-color, ${color})`,
4346
4342
),
4347
4343
),
@@ -4362,14 +4358,10 @@ export function createUtilities(theme: Theme) {
4362
4358
if (value) {
4363
4359
return [
4364
4360
textShadowProperties(),
4365
- decl('--tw-text-shadow-intensity ', intensity ),
4361
+ decl('--tw-text-shadow-alpha ', alpha ),
4366
4362
decl(
4367
4363
'text-shadow',
4368
- replaceShadowColors(
4369
- value,
4370
- intensity,
4371
- (color) => `var(--tw-text-shadow-color, ${color})`,
4372
- ),
4364
+ replaceShadowColors(value, alpha, (color) => `var(--tw-text-shadow-color, ${color})`),
4373
4365
),
4374
4366
]
4375
4367
}
@@ -4381,7 +4373,7 @@ export function createUtilities(theme: Theme) {
4381
4373
if (value) {
4382
4374
return [
4383
4375
textShadowProperties(),
4384
- decl('--tw-text-shadow-color', withAlpha(value, 'var(--tw-text-shadow-intensity )')),
4376
+ decl('--tw-text-shadow-color', withAlpha(value, 'var(--tw-text-shadow-alpha )')),
4385
4377
]
4386
4378
}
4387
4379
}
@@ -4418,10 +4410,10 @@ export function createUtilities(theme: Theme) {
4418
4410
return atRoot([
4419
4411
property('--tw-shadow', nullShadow),
4420
4412
property('--tw-shadow-color'),
4421
- property('--tw-shadow-intensity ', '100%', '<percentage>'),
4413
+ property('--tw-shadow-alpha ', '100%', '<percentage>'),
4422
4414
property('--tw-inset-shadow', nullShadow),
4423
4415
property('--tw-inset-shadow-color'),
4424
- property('--tw-inset-shadow-intensity ', '100%', '<percentage>'),
4416
+ property('--tw-inset-shadow-alpha ', '100%', '<percentage>'),
4425
4417
property('--tw-ring-color'),
4426
4418
property('--tw-ring-shadow', nullShadow),
4427
4419
property('--tw-inset-ring-color'),
@@ -4438,14 +4430,14 @@ export function createUtilities(theme: Theme) {
4438
4430
staticUtility('shadow-initial', [boxShadowProperties, ['--tw-shadow-color', 'initial']])
4439
4431
4440
4432
utilities.functional('shadow', (candidate) => {
4441
- let intensity : string | undefined
4433
+ let alpha : string | undefined
4442
4434
4443
4435
if (candidate.modifier) {
4444
4436
if (candidate.modifier.kind === 'arbitrary') {
4445
- intensity = candidate.modifier.value
4437
+ alpha = candidate.modifier.value
4446
4438
} else {
4447
4439
if (isPositiveInteger(candidate.modifier.value)) {
4448
- intensity = `${candidate.modifier.value}%`
4440
+ alpha = `${candidate.modifier.value}%`
4449
4441
}
4450
4442
}
4451
4443
}
@@ -4456,10 +4448,10 @@ export function createUtilities(theme: Theme) {
4456
4448
4457
4449
return [
4458
4450
boxShadowProperties(),
4459
- decl('--tw-shadow-intensity ', intensity ),
4451
+ decl('--tw-shadow-alpha ', alpha ),
4460
4452
decl(
4461
4453
'--tw-shadow',
4462
- replaceShadowColors(value, intensity , (color) => `var(--tw-shadow-color, ${color})`),
4454
+ replaceShadowColors(value, alpha , (color) => `var(--tw-shadow-color, ${color})`),
4463
4455
),
4464
4456
decl('box-shadow', cssBoxShadowValue),
4465
4457
]
@@ -4476,20 +4468,16 @@ export function createUtilities(theme: Theme) {
4476
4468
4477
4469
return [
4478
4470
boxShadowProperties(),
4479
- decl('--tw-shadow-color', withAlpha(value, 'var(--tw-shadow-intensity )')),
4471
+ decl('--tw-shadow-color', withAlpha(value, 'var(--tw-shadow-alpha )')),
4480
4472
]
4481
4473
}
4482
4474
default: {
4483
4475
return [
4484
4476
boxShadowProperties(),
4485
- decl('--tw-shadow-intensity ', intensity ),
4477
+ decl('--tw-shadow-alpha ', alpha ),
4486
4478
decl(
4487
4479
'--tw-shadow',
4488
- replaceShadowColors(
4489
- value,
4490
- intensity,
4491
- (color) => `var(--tw-shadow-color, ${color})`,
4492
- ),
4480
+ replaceShadowColors(value, alpha, (color) => `var(--tw-shadow-color, ${color})`),
4493
4481
),
4494
4482
decl('box-shadow', cssBoxShadowValue),
4495
4483
]
@@ -4513,10 +4501,10 @@ export function createUtilities(theme: Theme) {
4513
4501
if (value) {
4514
4502
return [
4515
4503
boxShadowProperties(),
4516
- decl('--tw-shadow-intensity ', intensity ),
4504
+ decl('--tw-shadow-alpha ', alpha ),
4517
4505
decl(
4518
4506
'--tw-shadow',
4519
- replaceShadowColors(value, intensity , (color) => `var(--tw-shadow-color, ${color})`),
4507
+ replaceShadowColors(value, alpha , (color) => `var(--tw-shadow-color, ${color})`),
4520
4508
),
4521
4509
decl('box-shadow', cssBoxShadowValue),
4522
4510
]
@@ -4529,7 +4517,7 @@ export function createUtilities(theme: Theme) {
4529
4517
if (value) {
4530
4518
return [
4531
4519
boxShadowProperties(),
4532
- decl('--tw-shadow-color', withAlpha(value, 'var(--tw-shadow-intensity )')),
4520
+ decl('--tw-shadow-color', withAlpha(value, 'var(--tw-shadow-alpha )')),
4533
4521
]
4534
4522
}
4535
4523
}
@@ -4557,14 +4545,14 @@ export function createUtilities(theme: Theme) {
4557
4545
])
4558
4546
4559
4547
utilities.functional('inset-shadow', (candidate) => {
4560
- let intensity : string | undefined
4548
+ let alpha : string | undefined
4561
4549
4562
4550
if (candidate.modifier) {
4563
4551
if (candidate.modifier.kind === 'arbitrary') {
4564
- intensity = candidate.modifier.value
4552
+ alpha = candidate.modifier.value
4565
4553
} else {
4566
4554
if (isPositiveInteger(candidate.modifier.value)) {
4567
- intensity = `${candidate.modifier.value}%`
4555
+ alpha = `${candidate.modifier.value}%`
4568
4556
}
4569
4557
}
4570
4558
}
@@ -4575,14 +4563,10 @@ export function createUtilities(theme: Theme) {
4575
4563
4576
4564
return [
4577
4565
boxShadowProperties(),
4578
- decl('--tw-inset-shadow-intensity ', intensity ),
4566
+ decl('--tw-inset-shadow-alpha ', alpha ),
4579
4567
decl(
4580
4568
'--tw-inset-shadow',
4581
- replaceShadowColors(
4582
- value,
4583
- intensity,
4584
- (color) => `var(--tw-inset-shadow-color, ${color})`,
4585
- ),
4569
+ replaceShadowColors(value, alpha, (color) => `var(--tw-inset-shadow-color, ${color})`),
4586
4570
),
4587
4571
decl('box-shadow', cssBoxShadowValue),
4588
4572
]
@@ -4599,18 +4583,18 @@ export function createUtilities(theme: Theme) {
4599
4583
4600
4584
return [
4601
4585
boxShadowProperties(),
4602
- decl('--tw-inset-shadow-color', withAlpha(value, 'var(--tw-inset-shadow-intensity )')),
4586
+ decl('--tw-inset-shadow-color', withAlpha(value, 'var(--tw-inset-shadow-alpha )')),
4603
4587
]
4604
4588
}
4605
4589
default: {
4606
4590
return [
4607
4591
boxShadowProperties(),
4608
- decl('--tw-inset-shadow-intensity ', intensity ),
4592
+ decl('--tw-inset-shadow-alpha ', alpha ),
4609
4593
decl(
4610
4594
'--tw-inset-shadow',
4611
4595
`inset ${replaceShadowColors(
4612
4596
value,
4613
- intensity ,
4597
+ alpha ,
4614
4598
(color) => `var(--tw-inset-shadow-color, ${color})`,
4615
4599
)}`,
4616
4600
),
@@ -4637,12 +4621,12 @@ export function createUtilities(theme: Theme) {
4637
4621
if (value) {
4638
4622
return [
4639
4623
boxShadowProperties(),
4640
- decl('--tw-inset-shadow-intensity ', intensity ),
4624
+ decl('--tw-inset-shadow-alpha ', alpha ),
4641
4625
decl(
4642
4626
'--tw-inset-shadow',
4643
4627
replaceShadowColors(
4644
4628
value,
4645
- intensity ,
4629
+ alpha ,
4646
4630
(color) => `var(--tw-inset-shadow-color, ${color})`,
4647
4631
),
4648
4632
),
@@ -4657,7 +4641,7 @@ export function createUtilities(theme: Theme) {
4657
4641
if (value) {
4658
4642
return [
4659
4643
boxShadowProperties(),
4660
- decl('--tw-inset-shadow-color', withAlpha(value, 'var(--tw-inset-shadow-intensity )')),
4644
+ decl('--tw-inset-shadow-color', withAlpha(value, 'var(--tw-inset-shadow-alpha )')),
4661
4645
]
4662
4646
}
4663
4647
}
0 commit comments