diff --git a/package-lock.json b/package-lock.json index efa7f1f..9c5b52f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@creativecommons/fonts", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 46a5c93..c3d935d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@creativecommons/fonts", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "description": "Typefaces that lend personality to the web facing Creative Commons", "author": "Creative Commons (https://creativecommons.org)", "scripts": { diff --git a/src/fonts/RobotoCondensed-Bold.otf b/src/fonts/RobotoCondensed-Bold.otf new file mode 100644 index 0000000..640045c Binary files /dev/null and b/src/fonts/RobotoCondensed-Bold.otf differ diff --git a/src/fonts/RobotoCondensed-Bold.woff b/src/fonts/RobotoCondensed-Bold.woff new file mode 100644 index 0000000..235c963 Binary files /dev/null and b/src/fonts/RobotoCondensed-Bold.woff differ diff --git a/src/fonts/RobotoCondensed-Bold.woff2 b/src/fonts/RobotoCondensed-Bold.woff2 new file mode 100644 index 0000000..dd0eb2b Binary files /dev/null and b/src/fonts/RobotoCondensed-Bold.woff2 differ diff --git a/src/fonts/Roboto-Condensed.otf b/src/fonts/RobotoCondensed-Regular.otf similarity index 100% rename from src/fonts/Roboto-Condensed.otf rename to src/fonts/RobotoCondensed-Regular.otf diff --git a/src/fonts/Roboto-Condensed.woff b/src/fonts/RobotoCondensed-Regular.woff similarity index 100% rename from src/fonts/Roboto-Condensed.woff rename to src/fonts/RobotoCondensed-Regular.woff diff --git a/src/fonts/Roboto-Condensed.woff2 b/src/fonts/RobotoCondensed-Regular.woff2 similarity index 100% rename from src/fonts/Roboto-Condensed.woff2 rename to src/fonts/RobotoCondensed-Regular.woff2 diff --git a/src/stories/roboto_condensed.stories.mdx b/src/stories/roboto_condensed.stories.mdx index 4e1a27f..fa228e2 100644 --- a/src/stories/roboto_condensed.stories.mdx +++ b/src/stories/roboto_condensed.stories.mdx @@ -7,8 +7,14 @@ import { alphabetTable, numberTable, sampleTexts } from './helpers' .roboto-condensed { font-family: 'Roboto Condensed'; } + .bold { + font-weight: 700; + } -
+
+ ${storyFn()} +
+
${storyFn()}
` ] @@ -19,7 +25,7 @@ import { alphabetTable, numberTable, sampleTexts } from './helpers' Roboto is a neo-grotesque sans-serif typeface family developed by Google as the system font for its mobile operating system Android. The entire font family has been licensed under the Apache license. -It is used in Vocabulary in only one font weight: regular (400). +It is used in Vocabulary in 2 font weight: regular (400) and bold (700). ## Regular @@ -56,6 +62,42 @@ It is used in Vocabulary in only one font weight: regular (400). fontWeight={400} sampleText=". ? ! ' & : ; @ # < > ( ) { } [ ]" /> + +## Bold + + + + + + + + + + + { diff --git a/src/styles/roboto_condensed.scss b/src/styles/roboto_condensed.scss index 6f112ae..8929646 100644 --- a/src/styles/roboto_condensed.scss +++ b/src/styles/roboto_condensed.scss @@ -1,5 +1,9 @@ @import "./font_face.scss"; @each $unicode in $unicodes { - @include fontface('Roboto Condensed', 'Roboto-Condensed', 400, $unicode); + @include fontface('Roboto Condensed', 'RobotoCondensed-Regular', 400, $unicode); +} + +@each $unicode in $unicodes { + @include fontface('Roboto Condensed', 'RobotoCondensed-Bold', 700, $unicode); }