Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Create Optimo Base service #3771

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@ const TEXT_VARIANTS = {
timezone: 'Europe/London',
articlePath: '/news/articles/cn7k01xp8kxo',
},
optimobase: {
text: 'Could a computer ever create better art than a human?',
longText:
'The critic, author, poet and TV host was known for his witty commentary on international television.',
script: 'latin',
locale: 'en',
timezone: 'Europe/London',
articlePath: '/optimobase/articles/cn7k01xp8kxo',
},
pashto: {
text:
'د ملګرو ملتونو د ماشومانو ادارې یونیسف افغان کرېکټ لوبغاړی راشد خانه.',
Expand Down
18 changes: 15 additions & 3 deletions packages/utilities/psammead-styles/src/font-families.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const getFontStyleAndWeight = (style, weight) =>
const latinReithFontStyles = {
sansRegular: `
${reithSans}
${getFontStyleAndWeight('normal', 400)}
${getFontStyleAndWeight('normal', 400)}
`,
sansRegularItalic: `
${reithSans}
${getFontStyleAndWeight('italic', 400)}
${getFontStyleAndWeight('italic', 400)}
`,
sansBold: `
${reithSans}
Expand All @@ -37,7 +37,7 @@ const latinReithFontStyles = {
`,
serifMedium: `
${reithSerif}
${getFontStyleAndWeight('normal', 500)}
${getFontStyleAndWeight('normal', 500)}
`,
serifMediumItalic: `
${reithSerif}
Expand Down Expand Up @@ -355,6 +355,17 @@ const tigrinyaStyles = {
`,
};

/*
* OPTIMO BASE
*/
const optimoBaseFontStyles = {
sansRegular: latinReithFontStyles.sansRegular,
sansRegularItalic: latinReithFontStyles.sansRegularItalic,
sansBold: latinReithFontStyles.sansBold,
sansBoldItalic: latinReithFontStyles.sansBoldItalic,
sansLight: latinReithFontStyles.sansLight,
};

export const afaanoromoo = helmetFontStyles;
export const afrique = helmetFontStyles;
export const amharic = amharicStyles;
Expand All @@ -379,6 +390,7 @@ export const mundo = latinReithFontStyles;
export const naidheachdan = latinReithFontStyles;
export const nepali = nepaliStyles;
export const news = latinReithFontStyles;
export const optimobase = optimoBaseFontStyles;
export const pashto = nassimFontStyles(nassimPashtoFontFamily);
export const persian = nassimFontStyles(nassimPersianFontFamily);
export const pidgin = helmetFontStyles;
Expand Down