2.0.1 • Published 3 years ago
@exotelis-labs/tailwindcss-font-faces v2.0.1
@exotelis-labs/tailwindcss-font-faces
A plugin that provides base styles for font faces used by exotelis-labs.
Installation
Install the plugin from npm:
npm install -D @exotelis-labs/tailwindcss-font-faces
Then add the plugin to your tailwind.config.js
file, and adapt the paths to the fonts if needed.
// tailwind.config.js
module.exports = {
theme: {
// ...
extend: {
fontSrc: {
Raleway: 'url("./assets/fonts/Raleway-VariableFont.woff2") format("woff2 supports variations")',
},
},
},
plugins: [
require('@exotelis-labs/tailwindcss-font-faces'),
// ...
],
}