Skip to content

Commit

Permalink
Merge pull request #713 from jay-hodgson/PORTALS-2943
Browse files Browse the repository at this point in the history
PORTALS-2943: Sage branding update
  • Loading branch information
jay-hodgson authored Feb 23, 2024
2 parents 94e7402 + e29f1dc commit 094e65b
Show file tree
Hide file tree
Showing 18 changed files with 100 additions and 110 deletions.
2 changes: 1 addition & 1 deletion apps/SageAccountWeb/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@use './style/all';

.App {
font-family: 'Lato', sans-serif;
font-family: 'DM Sans', sans-serif;
overflow: hidden;
}

Expand Down
8 changes: 5 additions & 3 deletions apps/SageAccountWeb/src/style/theme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ThemeOptions } from '@mui/material'
import { PartialDeep } from 'type-fest'
export const latoFont = ['Lato', 'Roboto', 'Helvetica', 'Arial'].join(',')
export const fontDefinition = ['DM Sans', 'Roboto', 'Helvetica', 'Arial'].join(
',',
)

// Merge the default theme (defined in synapse-react-client) with the SageAccountWeb overrides defined here.
export const sageAccountWebThemeOverrides: PartialDeep<ThemeOptions> = {
Expand Down Expand Up @@ -52,7 +54,7 @@ export const sageAccountWebThemeOverrides: PartialDeep<ThemeOptions> = {
root: {
width: '100%',
'&.MuiInputLabel-root': {
fontFamily: latoFont,
fontFamily: fontDefinition,
fontWeight: 700,
},
},
Expand All @@ -69,7 +71,7 @@ export const sageAccountWebThemeOverrides: PartialDeep<ThemeOptions> = {
},
typography: {
allVariants: {
fontFamily: latoFont,
fontFamily: fontDefinition,
fontSize: '14px',
},
button: {
Expand Down
4 changes: 2 additions & 2 deletions apps/portals/src/_Core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
}

body {
font-family: 'Lato', sans-serif;
font-family: 'DM Sans', sans-serif;
button:focus {
// bootstrap override
outline: Portal.$primary-action-color;
Expand Down Expand Up @@ -584,7 +584,7 @@ button.dropdown-toggle.nav-button:hover {
margin-bottom: 0px;
}
#sage-logo {
margin-top: 10px;
width: 250px;
}
.logos {
margin-top: 15px;
Expand Down
85 changes: 60 additions & 25 deletions apps/portals/src/configurations/challengeportal/style/SageLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions apps/synapse-oauth-signin/src/App.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@use "./style/variables" as Portal;
@use './style/variables' as Portal;

@use "synapse-react-client/dist/style/main.scss" with (
@use 'synapse-react-client/dist/style/main.scss' with (
$primary-action-color: Portal.$primary-action-color,
$secondary-action-color: Portal.$secondary-action-color,
$primary-bgcolor-rgba: unset
);

.App {
font-family: "Lato", sans-serif;
font-family: 'DM Sans', sans-serif;
overflow: hidden;
}

Expand All @@ -16,7 +16,7 @@
align-items: center;
justify-content: center;
background: transparent
url("https://s3.amazonaws.com/static.synapse.org/images/SynapseLoginPageBackground.svg")
url('https://s3.amazonaws.com/static.synapse.org/images/SynapseLoginPageBackground.svg')
no-repeat;
background-size: cover;
margin: 0;
Expand Down
8 changes: 5 additions & 3 deletions apps/synapse-oauth-signin/src/style/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import 'synapse-react-client'
import { ThemeOptions } from '@mui/material'
import { Palettes } from 'synapse-react-client'

export const latoFont = ['Lato', 'Roboto', 'Helvetica', 'Arial'].join(',')
export const fontDefinition = ['DM Sans', 'Roboto', 'Helvetica', 'Arial'].join(
',',
)

const themeOptions: ThemeOptions = {
palette: Palettes.palette,
Expand Down Expand Up @@ -53,7 +55,7 @@ const themeOptions: ThemeOptions = {
root: {
width: '100%',
'&.MuiInputLabel-root': {
fontFamily: latoFont,
fontFamily: fontDefinition,
fontWeight: 700,
},
},
Expand Down Expand Up @@ -104,7 +106,7 @@ const themeOptions: ThemeOptions = {
},
typography: {
allVariants: {
fontFamily: latoFont,
fontFamily: fontDefinition,
fontSize: '14px',
},
headline1: {},
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-react-client/.storybook/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { palette } from '../src/theme/palette/Palettes'
addons.setConfig({
theme: create({
base: 'light',
fontBase: '"Lato", sans-serif',
fontBase: '"DM Sans", sans-serif',
brandImage:
'https://s3.amazonaws.com/static.synapse.org/images/synapse-logo-blue.svg',
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-react-client/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ initialize({
})

const fontLoader = async () => ({
fonts: await Promise.all([document.fonts.load('700 1em Lato')]),
fonts: await Promise.all([document.fonts.load('700 1em "DM Sans"')]),
})

export const loaders = [mswLoader]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Tagline: StyledComponent<TypographyProps> = styled(Typography, {
label: 'Tagline',
})(({ theme }) => ({
marginBottom: theme.spacing(2),
font: '300 24px/34px Lato, sans-serif',
font: '300 24px/34px DM Sans, sans-serif',
}))

function BackupCodeInstructions(props: TypographyProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const UpsetPlot: React.FunctionComponent<UpsetPlotProps> = ({
// alternatingBackgroundColor={false}
setName={setName?.toUpperCase()}
combinationName={combinationName?.toUpperCase()}
fontFamily="Lato, sans-serif"
fontFamily="'DM Sans', sans-serif"
fontSizes={updateFontSizes}
exportButtons={false}
notMemberColor="transparent"
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-react-client/src/style/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ html {

body {
color: SRC.$gray-regular;
font-family: 'Lato';
font-family: 'DM Sans';
}

strong {
Expand Down
28 changes: 2 additions & 26 deletions packages/synapse-react-client/src/style/base/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,6 @@
// -----------------------------------------------------------------------------

//////////////////////////////////////////////////////////////
// Google Lato Font //
// Google DM Sans Font //
//////////////////////////////////////////////////////////////
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,900');

/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'),
url(https://fonts.gstatic.com/s/lato/v14/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2)
format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'),
url(https://fonts.gstatic.com/s/lato/v14/S6uyw4BMUTPHjx4wXiWtFCc.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $text-color-lighter: #898989;

.SRC-portalCard {
display: block;
font-family: 'Lato', sans-serif;
font-family: 'DM Sans', sans-serif;
font-size: $text-size-base;
line-height: $baseline-grid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.LoginComponent {
max-width: 350px;
background: white;
font-family: Lato, sans-serif;
font-family: 'DM Sans', sans-serif;

.hide-component {
visibility: hidden;
Expand Down Expand Up @@ -102,7 +102,7 @@ $login-wrapper-height: 560px;
}
.panel-tagline {
color: #1e4964;
font: 300 24px/34px Lato, sans-serif;
font: 300 24px/34px 'DM Sans', sans-serif;
}
.panel-left {
.panel-tagline {
Expand Down Expand Up @@ -148,7 +148,7 @@ $login-wrapper-height: 560px;
.panel-tagline {
display: block;
margin: 6px 0 0;
font: normal 16px/26px Lato, sans-serif;
font: normal 16px/26px 'DM Sans', sans-serif;
}
}
.panel-right {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@
}

.Headline-Strong {
font-family: Lato;
font-family: 'DM Sans';
font-weight: 700;
font-size: 24px;
line-height: 34px;
}

.Headline-Light {
font-family: Lato;
font-family: 'DM Sans';
font-weight: 300;
font-size: 24px;
line-height: 34px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TypographyOptions } from '@mui/material/styles/createTypography'
import { Palette } from '@mui/material/styles/createPalette'

export const defaultFontFamily = ['Lato', 'sans-serif'].join(',')
export const defaultFontFamily = ['DM Sans', 'sans-serif'].join(',')
export const monospaceFontFamily = [
'Menlo',
'Courier New',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ exports[`MarkdownSynapse tests Snapshot tests works with a br statement and loos
class="markdown"
>
<span
class="MuiTypography-root MuiTypography-body1 css-1kkok3b-MuiTypography-root"
class="MuiTypography-root MuiTypography-body1 css-4ozm06-MuiTypography-root"
>
<p
class="MuiTypography-root MuiTypography-body1 css-1kkok3b-MuiTypography-root"
class="MuiTypography-root MuiTypography-body1 css-4ozm06-MuiTypography-root"
>
some more free
</p>
Expand All @@ -25,7 +25,7 @@ exports[`MarkdownSynapse tests Snapshot tests works with a br statement and loos
<p
class="MuiTypography-root MuiTypography-body1 css-1kkok3b-MuiTypography-root"
class="MuiTypography-root MuiTypography-body1 css-4ozm06-MuiTypography-root"
>
loose text
</p>
Expand All @@ -42,7 +42,7 @@ exports[`MarkdownSynapse tests Snapshot tests works with header and a link 1`] =
class="markdown"
>
<span
class="MuiTypography-root MuiTypography-body1 css-1kkok3b-MuiTypography-root"
class="MuiTypography-root MuiTypography-body1 css-4ozm06-MuiTypography-root"
>
<h1
class="MuiTypography-root MuiTypography-headline1 css-1ix3kim-MuiTypography-root"
Expand Down Expand Up @@ -71,14 +71,14 @@ exports[`MarkdownSynapse tests Snapshot tests works with two inline widgets 1`]
class="markdown"
>
<span
class="MuiTypography-root MuiTypography-body1 css-1kkok3b-MuiTypography-root"
class="MuiTypography-root MuiTypography-body1 css-4ozm06-MuiTypography-root"
>
<p
class="MuiTypography-root MuiTypography-body1 css-1kkok3b-MuiTypography-root"
class="MuiTypography-root MuiTypography-body1 css-4ozm06-MuiTypography-root"
>
<span>
<a
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1bhx6gc-MuiButtonBase-root-MuiButton-root-WideButton"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1xe62cs-MuiButtonBase-root-MuiButton-root-WideButton"
href="#/Help/How It Works"
tabindex="0"
>
Expand All @@ -87,7 +87,7 @@ exports[`MarkdownSynapse tests Snapshot tests works with two inline widgets 1`]
</span>
<span>
<a
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1bhx6gc-MuiButtonBase-root-MuiButton-root-WideButton"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1xe62cs-MuiButtonBase-root-MuiButton-root-WideButton"
href="#/Apply"
tabindex="0"
>
Expand Down

0 comments on commit 094e65b

Please sign in to comment.