Skip to content

Commit 9daab59

Browse files
committed
some fixes
1 parent 2185f85 commit 9daab59

4 files changed

Lines changed: 21 additions & 19 deletions

File tree

.storybook/preview.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const getSkin = (searchParams: URLSearchParams) => {
4444
BLAU_SKIN,
4545
TU_SKIN,
4646
ESIMFLAG_SKIN,
47-
UNBRANDED_SKIN,
4847
].find((skin) => skin === qsSkin);
4948
};
5049

@@ -134,7 +133,7 @@ const MisticaThemeProvider = ({
134133
<ThemeContextProvider theme={getTheme(skin as string, platform, colorScheme)}>
135134
<OverscrollColorProvider>
136135
{skin === VIVO_NEW_SKIN && <style>{`body {font-family: "Vivo Type"}`}</style>}
137-
{(skin === TELEFONICA_SKIN || skin === TU_SKIN) && (
136+
{(skin === TELEFONICA_SKIN || skin === TU_SKIN || skin === UNBRANDED_SKIN) && (
138137
<style>{`body {font-family: "Telefonica Sans"}`}</style>
139138
)}
140139
{(skin === MOVISTAR_SKIN ||

playroom/frame-component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
ESIMFLAG_SKIN,
2222
VIVO_SKIN,
2323
BLAU_SKIN,
24+
UNBRANDED_SKIN,
2425
} from '../src';
2526
import {Movistar_New as defaultThemeConfig} from './themes';
2627

@@ -90,7 +91,7 @@ const App = ({children, skinName}: {children: React.ReactNode; skinName: string}
9091
body {background: ${skinVars.colors.background}}
9192
9293
${skinName === VIVO_NEW_SKIN ? 'body {font-family: "Vivo Type"}' : ''}
93-
${skinName === TELEFONICA_SKIN || skinName === TU_SKIN ? 'body {font-family: "Telefonica Sans"}' : ''}
94+
${skinName === TELEFONICA_SKIN || skinName === TU_SKIN || skinName === UNBRANDED_SKIN ? 'body {font-family: "Telefonica Sans"}' : ''}
9495
${
9596
skinName === MOVISTAR_SKIN ||
9697
skinName === O2_SKIN ||

playroom/themes.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ export const O2_New: ThemeConfig = {...themes.O2_New, ...common};
1616
export const Telefonica: ThemeConfig = {...themes.Telefonica, ...common};
1717
export const Blau: ThemeConfig = {...themes.Blau, ...common};
1818
export const Esimflag: ThemeConfig = {...themes.Esimflag, ...common};
19+
export const Unbranded: ThemeConfig = {...themes.Unbranded, ...common};
1920

2021
export const Movistar_New_iOS: ThemeConfig = {...Movistar_New, platformOverrides: {platform: 'ios'}};
2122
export const Vivo_New_iOS: ThemeConfig = {...Vivo_New, platformOverrides: {platform: 'ios'}};
2223
export const O2_New_iOS: ThemeConfig = {...O2_New, platformOverrides: {platform: 'ios'}};
2324
export const Telefonica_iOS: ThemeConfig = {...Telefonica, platformOverrides: {platform: 'ios'}};
2425
export const Blau_iOS: ThemeConfig = {...Blau, platformOverrides: {platform: 'ios'}};
2526
export const Esimflag_iOS: ThemeConfig = {...Esimflag, platformOverrides: {platform: 'ios'}};
27+
export const Unbranded_iOS: ThemeConfig = {...Unbranded, platformOverrides: {platform: 'ios'}};

src/skins/unbranded.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,11 @@ export const getUnbrandedSkin: GetKnownSkin = () => {
325325
cardFooterOverlay: applyAlpha(palette.black, 0.7),
326326
},
327327
darkModeColors: {
328-
background: palette.neutral900,
329-
backgroundAlternative: palette.neutral900,
330-
backgroundBrand: palette.neutral900,
331-
backgroundNegative: palette.neutral900,
332-
backgroundBrandSecondary: palette.neutral900,
328+
background: palette.black,
329+
backgroundAlternative: palette.black,
330+
backgroundBrand: palette.black,
331+
backgroundNegative: palette.black,
332+
backgroundBrandSecondary: palette.black,
333333
backgroundContainer: palette.neutral850,
334334
backgroundContainerError: palette.neutral850,
335335
backgroundContainerHover: applyAlpha(palette.white, 0.05),
@@ -346,10 +346,10 @@ export const getUnbrandedSkin: GetKnownSkin = () => {
346346
backgroundSkeletonInverse: palette.neutral800,
347347
backgroundSkeletonNegative: palette.neutral800,
348348
backgroundSkeletonBrand: palette.neutral800,
349-
backgroundBrandTop: palette.neutral900,
350-
backgroundBrandBottom: palette.neutral900,
349+
backgroundBrandTop: palette.black,
350+
backgroundBrandBottom: palette.black,
351351
appBarBackground: palette.neutral850,
352-
navigationBarBackground: palette.neutral900,
352+
navigationBarBackground: palette.black,
353353
backgroundDropZoneHover: applyAlpha(palette.white, 0.05),
354354
backgroundDropZoneDragover: applyAlpha(palette.white, 0.08),
355355
backgroundDropZoneBrandHover: applyAlpha(palette.white, 0.03),
@@ -614,16 +614,16 @@ export const getUnbrandedSkin: GetKnownSkin = () => {
614614
avatar: '50%',
615615
bar: '999px',
616616
button: '32px',
617-
checkbox: '4px',
618-
container: '24px',
617+
checkbox: '2px',
618+
container: '16px',
619619
indicator: '24px',
620620
chip: '24px',
621-
tag: '10px',
622-
input: '16px',
623-
legacyDisplay: '24px',
624-
popup: '16px',
625-
sheet: '24px',
626-
mediaSmall: '12px',
621+
tag: '24px',
622+
input: '12px',
623+
legacyDisplay: '16px',
624+
popup: '8px',
625+
sheet: '16px',
626+
mediaSmall: '8px',
627627
},
628628
textPresets: {
629629
button: {weight: 'medium'},

0 commit comments

Comments
 (0)