Skip to content

Commit 02c413b

Browse files
committed
[Shadows] Fix leftover in variables files _sigh_
1 parent ff07815 commit 02c413b

File tree

2 files changed

+15
-60
lines changed
  • packages

2 files changed

+15
-60
lines changed

packages/eui-theme-borealis/src/variables/_shadows.ts

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -354,110 +354,89 @@ export const shadows: _EuiThemeShadows = {
354354
xs: {
355355
down: {
356356
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xs.light),
357-
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark, {
358-
colorMode: 'DARK',
359-
}),
357+
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark),
360358
},
361359
up: {
362360
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xs.light, { up: true }),
363361
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark, {
364362
up: true,
365-
colorMode: 'DARK',
366363
}),
367364
},
368365
},
369366
s: {
370367
down: {
371368
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light),
372-
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark, {
373-
colorMode: 'DARK',
374-
}),
369+
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark),
375370
},
376371
up: {
377372
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light, { up: true }),
378373
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark, {
379374
up: true,
380-
colorMode: 'DARK',
381375
}),
382376
},
383377
},
384378
m: {
385379
down: {
386380
LIGHT: formatMultipleBoxShadow(shadowPrimitives.m.light),
387-
DARK: formatMultipleBoxShadow(shadowPrimitives.m.dark, {
388-
colorMode: 'DARK',
389-
}),
381+
DARK: formatMultipleBoxShadow(shadowPrimitives.m.dark),
390382
},
391383
up: {
392384
LIGHT: formatMultipleBoxShadow(shadowPrimitives.m.light, { up: true }),
393385
DARK: formatMultipleBoxShadow(shadowPrimitives.m.dark, {
394386
up: true,
395-
colorMode: 'DARK',
396387
}),
397388
},
398389
},
399390
l: {
400391
down: {
401392
LIGHT: formatMultipleBoxShadow(shadowPrimitives.l.light),
402-
DARK: formatMultipleBoxShadow(shadowPrimitives.l.dark, {
403-
colorMode: 'DARK',
404-
}),
393+
DARK: formatMultipleBoxShadow(shadowPrimitives.l.dark),
405394
},
406395
up: {
407396
LIGHT: formatMultipleBoxShadow(shadowPrimitives.l.light, { up: true }),
408397
DARK: formatMultipleBoxShadow(shadowPrimitives.l.dark, {
409398
up: true,
410-
colorMode: 'DARK',
411399
}),
412400
},
413401
},
414402
xl: {
415403
down: {
416404
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xl.light),
417-
DARK: formatMultipleBoxShadow(shadowPrimitives.xl.dark, {
418-
colorMode: 'DARK',
419-
}),
405+
DARK: formatMultipleBoxShadow(shadowPrimitives.xl.dark),
420406
},
421407
up: {
422408
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xl.light, { up: true }),
423409
DARK: formatMultipleBoxShadow(shadowPrimitives.xl.dark, {
424410
up: true,
425-
colorMode: 'DARK',
426411
}),
427412
},
428413
},
429414
hover: {
430415
base: {
431416
down: {
432417
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light.slice(1)),
433-
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark.slice(1), {
434-
colorMode: 'DARK',
435-
}),
418+
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark.slice(1)),
436419
},
437420
up: {
438421
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light.slice(1), {
439422
up: true,
440423
}),
441424
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark.slice(1), {
442425
up: true,
443-
colorMode: 'DARK',
444426
}),
445427
},
446428
},
447429
xl: {
448430
down: {
449431
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xxl.light),
450-
DARK: formatMultipleBoxShadow(shadowPrimitives.xxl.dark, {
451-
colorMode: 'DARK',
452-
}),
432+
DARK: formatMultipleBoxShadow(shadowPrimitives.xxl.dark),
453433
},
454434
up: {
455435
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xxl.light, {
456436
up: true,
457437
}),
458438
DARK: formatMultipleBoxShadow(shadowPrimitives.xxl.dark, {
459439
up: true,
460-
colorMode: 'DARK',
461440
}),
462441
},
463442
},
@@ -466,15 +445,12 @@ export const shadows: _EuiThemeShadows = {
466445
flat: {
467446
down: {
468447
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xs.light),
469-
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark, {
470-
colorMode: 'DARK',
471-
}),
448+
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark),
472449
},
473450
up: {
474451
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xs.light, { up: true }),
475452
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark, {
476453
up: true,
477-
colorMode: 'DARK',
478454
}),
479455
},
480456
},

packages/eui/src/themes/amsterdam/global_styling/variables/_shadows.ts

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -382,93 +382,75 @@ export const shadows: _EuiThemeShadows = {
382382
xs: {
383383
down: {
384384
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xs.light),
385-
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark, {
386-
colorMode: 'DARK',
387-
}),
385+
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark),
388386
},
389387
up: {
390388
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xs.light, { up: true }),
391389
DARK: formatMultipleBoxShadow(shadowPrimitives.xs.dark, {
392390
up: true,
393-
colorMode: 'DARK',
394391
}),
395392
},
396393
},
397394
s: {
398395
down: {
399396
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light),
400-
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark, {
401-
colorMode: 'DARK',
402-
}),
397+
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark),
403398
},
404399
up: {
405400
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light, { up: true }),
406401
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark, {
407402
up: true,
408-
colorMode: 'DARK',
409403
}),
410404
},
411405
},
412406
m: {
413407
down: {
414408
LIGHT: formatMultipleBoxShadow(shadowPrimitives.m.light),
415-
DARK: formatMultipleBoxShadow(shadowPrimitives.m.dark, {
416-
colorMode: 'DARK',
417-
}),
409+
DARK: formatMultipleBoxShadow(shadowPrimitives.m.dark),
418410
},
419411
up: {
420412
LIGHT: formatMultipleBoxShadow(shadowPrimitives.m.light, { up: true }),
421413
DARK: formatMultipleBoxShadow(shadowPrimitives.m.dark, {
422414
up: true,
423-
colorMode: 'DARK',
424415
}),
425416
},
426417
},
427418
l: {
428419
down: {
429420
LIGHT: formatMultipleBoxShadow(shadowPrimitives.l.light),
430-
DARK: formatMultipleBoxShadow(shadowPrimitives.l.dark, {
431-
colorMode: 'DARK',
432-
}),
421+
DARK: formatMultipleBoxShadow(shadowPrimitives.l.dark),
433422
},
434423
up: {
435424
LIGHT: formatMultipleBoxShadow(shadowPrimitives.l.light, { up: true }),
436425
DARK: formatMultipleBoxShadow(shadowPrimitives.l.dark, {
437426
up: true,
438-
colorMode: 'DARK',
439427
}),
440428
},
441429
},
442430
xl: {
443431
down: {
444432
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xl.light),
445-
DARK: formatMultipleBoxShadow(shadowPrimitives.xl.dark, {
446-
colorMode: 'DARK',
447-
}),
433+
DARK: formatMultipleBoxShadow(shadowPrimitives.xl.dark),
448434
},
449435
up: {
450436
LIGHT: formatMultipleBoxShadow(shadowPrimitives.xl.light, { up: true }),
451437
DARK: formatMultipleBoxShadow(shadowPrimitives.xl.dark, {
452438
up: true,
453-
colorMode: 'DARK',
454439
}),
455440
},
456441
},
457442
hover: {
458443
base: {
459444
down: {
460445
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light.slice(1)),
461-
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark.slice(1), {
462-
colorMode: 'DARK',
463-
}),
446+
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark.slice(1)),
464447
},
465448
up: {
466449
LIGHT: formatMultipleBoxShadow(shadowPrimitives.s.light.slice(1), {
467450
up: true,
468451
}),
469452
DARK: formatMultipleBoxShadow(shadowPrimitives.s.dark.slice(1), {
470453
up: true,
471-
colorMode: 'DARK',
472454
}),
473455
},
474456
},
@@ -486,17 +468,14 @@ export const shadows: _EuiThemeShadows = {
486468
flat: {
487469
down: {
488470
LIGHT: formatMultipleBoxShadow(shadowPrimitives.flat.light),
489-
DARK: formatMultipleBoxShadow(shadowPrimitives.flat.dark, {
490-
colorMode: 'DARK',
491-
}),
471+
DARK: formatMultipleBoxShadow(shadowPrimitives.flat.dark),
492472
},
493473
up: {
494474
LIGHT: formatMultipleBoxShadow(shadowPrimitives.flat.light, {
495475
up: true,
496476
}),
497477
DARK: formatMultipleBoxShadow(shadowPrimitives.flat.dark, {
498478
up: true,
499-
colorMode: 'DARK',
500479
}),
501480
},
502481
},

0 commit comments

Comments
 (0)