@twind/typography
v0.0.2
Published
A Tailwind JS plugin for automatically styling plain HTML content with beautiful typographic defaults.
Downloads
514
Maintainers
Readme
@twind/typography
A plugin that provides a set of
prose
classes you can use to add beautiful typographic defaults to any vanilla HTML you don't control (like HTML rendered from Markdown, or pulled from a CMS).
Installation
npm install @twind/typography
Usage
import typography from '@twind/typography'
import { setup } from 'twind'
setup({
plugins: {
...typography({
className: 'my-prose', // Defaults to 'prose'
}),
},
})
Contribute
Thanks for being willing to contribute!
This project is free and open-source, so if you think this project can help you or anyone else, you may star it on GitHub. Feel free to open an issue if you have any idea, question, or you've found a bug.
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub
We are following the Conventional Commits convention.
Develop
Ensure you run at least Node v14.
Clone the repository and cd into the project directory.
Run yarn install && yarn build
.
yarn format
: Ensure consistent code styleyarn build
: Build the packageyarn start
: Start example using snowpackyarn release
: To publish the package