diff --git a/.changeset/metal-cars-promise.md b/.changeset/metal-cars-promise.md new file mode 100644 index 000000000..14f58871f --- /dev/null +++ b/.changeset/metal-cars-promise.md @@ -0,0 +1,5 @@ +--- +"@ebay/skin": minor +--- + +skeleton: added on-secondary color and changed elevated to use on-secondary diff --git a/dist/skeleton/skeleton.css b/dist/skeleton/skeleton.css index d51861e24..ad637ddb3 100644 --- a/dist/skeleton/skeleton.css +++ b/dist/skeleton/skeleton.css @@ -103,6 +103,9 @@ div.skeleton__textbox:not(:last-child) { .skeleton--elevated { --skeleton-background: var(--color-loading-fill-elevated); } +.skeleton--on-secondary { + --skeleton-background: var(--color-loading-fill-on-secondary); +} @media screen and (max-width: 512px) { .skeleton { --skeleton-background: var(--color-loading-shimmer); @@ -110,6 +113,9 @@ div.skeleton__textbox:not(:last-child) { .skeleton--elevated { --skeleton-background: var(--color-loading-shimmer-elevated); } + .skeleton--on-secondary { + --skeleton-background: var(--color-loading-shimmer-on-secondary); + } } .skeleton--purple { --skeleton-background: var(--color-loading-ai-gradient-purple-subtle); diff --git a/dist/tokens/evo-dark.css b/dist/tokens/evo-dark.css index aa14fa46f..966b81dcc 100644 --- a/dist/tokens/evo-dark.css +++ b/dist/tokens/evo-dark.css @@ -137,24 +137,27 @@ var(--color-ai-solid-green-subtle) 0%, var(--color-ai-solid-blue-subtle) 154.5% ); - --color-loading-fill: #1b1b1b; + --color-loading-fill: #2d2d2d; --color-loading-shimmer: linear-gradient( 270deg, var(--color-loading-fill) 0%, var(--color-loading-fill) 34%, - #0e0e0e 50%, + #1b1b1b 50%, var(--color-loading-fill) 66%, var(--color-loading-fill) 100% ); - --color-loading-fill-elevated: #222; - --color-loading-shimmer-elevated: linear-gradient( + --color-loading-fill-on-secondary: #353535; + --color-loading-shimmer-on-secondary: linear-gradient( 270deg, - var(--color-loading-fill-elevated) 0%, - var(--color-loading-fill-elevated) 34%, - #1c1c1c 50%, - var(--color-loading-fill-elevated) 66%, - var(--color-loading-fill-elevated) 100% - ); + var(--color-loading-fill-on-secondary) 0%, + var(--color-loading-fill-on-secondary) 34%, + #232323 50%, + var(--color-loading-fill-on-secondary) 66%, + var(--color-loading-fill-on-secondary) 100% + ); + /* deprecated, remove next major both fill-elevated and shimmer-elevated */ + --color-loading-fill-elevated: var(--color-loading-fill-on-secondary); + --color-loading-shimmer-elevated: var(--color-loading-shimmer-on-secondary); --color-loading-ai-gradient-purple-subtle: linear-gradient( 270deg, var(--color-ai-solid-red-subtle-dark) 0%, diff --git a/dist/tokens/evo-light.css b/dist/tokens/evo-light.css index 16b8a0f69..ec3134640 100644 --- a/dist/tokens/evo-light.css +++ b/dist/tokens/evo-light.css @@ -138,7 +138,7 @@ --shadow-subtle: 0px 4px 12px 0px rgba(0, 0, 0, 0.07); --shadow-strong: 0px 5px 17px 0px rgba(0, 0, 0, 0.2), 0px 2px 7px 0px rgba(0, 0, 0, 0.15); - --color-loading-fill: #f2f2f2; + --color-loading-fill: #ededed; --color-loading-shimmer: linear-gradient( 270deg, var(--color-loading-fill) 0%, @@ -147,8 +147,18 @@ var(--color-loading-fill) 66%, var(--color-loading-fill) 100% ); - --color-loading-fill-elevated: var(--color-loading-fill); - --color-loading-shimmer-elevated: var(--color-loading-shimmer); + --color-loading-fill-on-secondary: #e4e4e4; + --color-loading-shimmer-on-secondary: linear-gradient( + 270deg, + var(--color-loading-fill-on-secondary) 0%, + var(--color-loading-fill-on-secondary) 34%, + #ededed 50%, + var(--color-loading-fill-on-secondary) 66%, + var(--color-loading-fill-on-secondary) 100% + ); + /* deprecated, remove next major both fill-elevated and shimmer-elevated */ + --color-loading-fill-elevated: var(--color-loading-fill-on-secondary); + --color-loading-shimmer-elevated: var(--color-loading-shimmer-on-secondary); --color-loading-ai-gradient-purple-subtle: linear-gradient( 270deg, var(--color-ai-solid-red-subtle) 0%, diff --git a/docs/_includes/skeleton.html b/docs/_includes/skeleton.html index 9a1dda804..b42232102 100644 --- a/docs/_includes/skeleton.html +++ b/docs/_includes/skeleton.html @@ -26,7 +26,7 @@

Skeleton Types

Skeleton Default - + On-Secondary Purple Green Blue @@ -40,13 +40,13 @@

Skeleton Types

- + - + - - - `; export const blockSkeletons = () => - `