Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Add bold (700) weight for Roboto Condensed (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Dhruv Bhanushali <[email protected]>
  • Loading branch information
kushaggarwal and dhruvkb authored Apr 3, 2020
1 parent 2ac8e53 commit 4a01eaa
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Binary file added src/fonts/RobotoCondensed-Bold.otf
Binary file not shown.
Binary file added src/fonts/RobotoCondensed-Bold.woff
Binary file not shown.
Binary file added src/fonts/RobotoCondensed-Bold.woff2
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 44 additions & 2 deletions src/stories/roboto_condensed.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ import { alphabetTable, numberTable, sampleTexts } from './helpers'
.roboto-condensed {
font-family: 'Roboto Condensed';
}
.bold {
font-weight: 700;
}
</style>
<div class="roboto-condensed has-text-black">
<div class="roboto-condensed has-text-black has-bottom-margin">
${storyFn()}
</div>
<div class="roboto-condensed bold has-text-black ">
${storyFn()}
</div>`
]
Expand All @@ -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

Expand Down Expand Up @@ -56,6 +62,42 @@ It is used in Vocabulary in only one font weight: regular (400).
fontWeight={400}
sampleText=". ? ! ' & : ; @ # < > ( ) { } [ ]" />


## Bold

<Typeset
fontSizes={[
'2rem',
'1rem'
]}
fontFamily="Roboto Condensed"
fontWeight={700}
sampleText={sampleTexts[2]} />

<Typeset
fontSizes={['2rem']}
fontFamily="Roboto Condensed"
fontWeight={700}
sampleText="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" />

<Typeset
fontSizes={['2rem']}
fontFamily="Roboto Condensed"
fontWeight={700}
sampleText="a b c d e f g h i j k l m n o p q r s t u v w x y z" />

<Typeset
fontSizes={['2rem']}
fontFamily="Roboto Condensed"
fontWeight={700}
sampleText="0 1 2 3 4 5 6 7 8 9 + - * / % $" />

<Typeset
fontSizes={['2rem']}
fontFamily="Roboto Condensed"
fontWeight={700}
sampleText=". ? ! ' & : ; @ # < > ( ) { } [ ]" />

<Story name="Uppercase letters" parameters={{
docs: { disable: true }
}}>{
Expand Down
6 changes: 5 additions & 1 deletion src/styles/roboto_condensed.scss
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 4a01eaa

Please sign in to comment.