UNPKG

flowbite-typography

Version:

Flowbite Typography is a plugin that lets you apply styles to all inline typography styles forked from the official Tailwind CSS plugin.

102 lines (66 loc) • 3.63 kB
<p> <a href="https://flowbite.com" > <img alt="Flowbite - Tailwind CSS components" width="350" src="https://flowbite.s3.amazonaws.com/github/logo-github.png"> </a><br> Flowbite Typography - automatically apply styles for inline elements using a single class name </p> <p> <a href="https://discord.com/invite/4eeurUVvTy"><img src="https://img.shields.io/discord/902911619032576090?color=%237289da&label=Discord" alt="Discord"></a> <a href="https://www.npmjs.com/package/flowbite"><img src="https://img.shields.io/npm/dt/flowbite.svg" alt="Total Downloads"></a> <a href="https://github.com/themesberg/flowbite/releases"><img src="https://img.shields.io/npm/v/flowbite.svg" alt="Latest Release"></a> <a href="https://flowbite.com/docs/getting-started/license/"><img src="https://img.shields.io/badge/license-MIT-blue" alt="Licenese"></a> </p> ------ _Disclaimer: this plugin is a fork from the official [Tailwind CSS Typography Plugin](https://tailwindcss.com/docs/typography-plugin) with different styles and settings_ ## Documentation For full documentation, visit [flowbite.com](https://flowbite.com/docs/components/typography/). ## Getting started Flowbite Typography can be included as a plugin into an existing Tailwind CSS project and it is supposed to help you build websites faster by having a set of web components to work with built with the utility classes from Tailwind CSS. ### Require via NPM Make sure that you have <a href="https://nodejs.org/en/" rel="nofollow" >Node.js</a> and <a href="https://tailwindcss.com/" rel="nofollow" >Tailwind CSS</a> installed. 1. Install the Flowbite Typography plugin via NPM: ```bash npm install -D flowbite-typography ``` 2. Require Flowbite Typography as a plugin inside the `tailwind.config.js` file: ```javascript module.exports = { plugins: [ require('flowbite-typography') ] } ``` ### Basic usage Use the `format` class to apply the typography classes to all inline elements: ```html <article class="format lg:format-lg"> <h1>Garlic bread with cheese: What the science tells us</h1> <p> For years parents have espoused the health benefits of eating garlic bread with cheese to their children, with the food earning such an iconic status in our culture that kids will often dress up as warm, cheesy loaf for Halloween. </p> <p> But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases springing up around the country. </p> <!-- ... --> </article> ``` ## Community If you need help or just want to discuss about the library join the community on Github: āŒØļø [Discuss about Flowbite on GitHub](https://github.com/themesberg/flowbite/discussions) For casual chatting with others using the library: šŸ’¬ [Join the Flowbite Discord Server](https://discord.gg/4eeurUVvTy) ## Figma If you need the Figma files for the components you can check out our website for more information: šŸŽØ [Get access to the Figma design files](https://flowbite.com/figma/) ## Blocks Check out Flowbite Blocks to get access to over 140+ website sections coded in Tailwind CSS and Flowbite: šŸ“¦ [Check out Flowbite Blocks](https://flowbite.com/blocks/) ## Pro version Get access to all premium features including the Figma design system, access to all Flowbite Block sections and a dashboard UI interface: šŸ’Ž [Check out Flowbite Pro](https://flowbite.com/pro/) ## Copyright and license The Flowbite name and logos are trademarks of Crafty Dwarf Inc. šŸ“ [Read about the licensing terms](https://flowbite.com/docs/getting-started/license/)