Skip to content

Commit

Permalink
feat(skin): update design tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost authored Sep 25, 2023
1 parent b760243 commit bfa1d36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
15 changes: 1 addition & 14 deletions src/skins/movistar-legacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ export const palette = {
darkModeGrey: '#242424',
};

/**
* @deprecated Use `getMovistarSkin` instead.
*/
export const getMovistarLegacySkin: GetKnownSkin = (variant) => {
export const getMovistarLegacySkin: GetKnownSkin = () => {
const skin: KnownSkin = {
name: MOVISTAR_LEGACY_SKIN,
colors: {
Expand Down Expand Up @@ -299,15 +296,5 @@ export const getMovistarLegacySkin: GetKnownSkin = (variant) => {
text10: {weight: 'bold'},
},
};

if (variant === 'prominent') {
skin.colors.brand = palette.movistarProminentBlue;
skin.colors.brandHigh = palette.movistarProminentBlueDark;
skin.colors.backgroundBrand = palette.movistarProminentBlue;
skin.colors.navigationBarBackground = palette.movistarProminentBlue;
skin.colors.backgroundFeedbackBottom = palette.movistarProminentBlue;
skin.colors.controlActivated = palette.movistarProminentBlue;
skin.colors.dividerInverse = palette.movistarProminentBlueDark;
}
return skin;
};
4 changes: 2 additions & 2 deletions src/skins/telefonica.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const getTelefonicaSkin: GetKnownSkin = () => {
warningLow: palette.ambar10,
errorLow: palette.coral10,
promoLow: palette.orchid10,
brandLow: palette.grey1,
brandLow: palette.telefonicaBlue10,
successHigh: palette.turquoise70,
warningHigh: palette.ambar70,
errorHigh: palette.coral70,
Expand Down Expand Up @@ -268,7 +268,7 @@ export const getTelefonicaSkin: GetKnownSkin = () => {
input: '0px',
legacyDisplay: '0px',
popup: '0px',
sheet: '8px',
sheet: '0px',
},
textPresets: {
cardTitle: {weight: 'regular'},
Expand Down
2 changes: 1 addition & 1 deletion src/skins/vivo-new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const getVivoNewSkin: GetKnownSkin = () => {
},
darkModeColors: {
background: palette.darkModeBlack,
backgroundAlternative: palette.darkModeGrey,
backgroundAlternative: palette.darkModeBlack,
backgroundBrand: palette.darkModeBlack,
backgroundBrandSecondary: palette.darkModeBlack,
backgroundContainer: palette.darkModeGrey,
Expand Down

0 comments on commit bfa1d36

Please sign in to comment.