React Variable Font
This is a port to React of a beautiful codepen by Juan Fuentes that I found when researching variable fonts.
Click here to try it out in codesandbox!
Built with
- React
- Styled Components
Installation
- Clone the repo
git clone https://github.com/filipeestacio/variable-font.git
- Install npm packages
npm install
- Start the app
npm run start
- Open App.js and change the values in the props. The prop "text" accepts a string, all others accept booleans.
<Text
text="Hello World"
isScale={true}
isFlex={true}
isAlpha={true}
isWidth={true}
isWeight={true}
isItalic={true}
/>
License
Distributed under the MIT License.
Contact
Filipe Estacio - @filipeestacio