Overview
styled-typography is a set of typographic components for React and styled-components. It is designed to help manage typographic styles within your app and has been developed with accessibility in mind. The library aims to be lightweight with no dependencies, requiring only styled-components v4 or above. It provides a range of components such as Text, Heading, Span, and Link which can be customized and extended as needed.
Features
- Flexible and customizable: The API allows you to use and customize the typographic components in a way that suits your needs.
- Accessibility-focused: Care has been taken to ensure that the components are accessible when added to your apps.
- No dependencies: styled-typography is designed to be as lightweight as possible, with no external dependencies required.
- ThemeProvider integration: The library requires a ThemeProvider to be added to your React tree for configuration.
Installation
To install styled-typography, you need to have styled-components v4 or above. Once you have that installed, you can install styled-typography using npm or yarn:
npm install styled-typography
or
yarn add styled-typography
After installation, make sure to import the necessary components and add a ThemeProvider component to your React tree. You can then begin using the typographic components within your app.
Summary
styled-typography is a lightweight library that provides typographic components for React and styled-components. It offers flexibility and customization options while maintaining accessibility. The library has no external dependencies and requires styled-components v4 or above. By following the installation guide, you can quickly integrate the typographic components into your app for better management of typographic styles.