0.1.7 • Published 4 years ago

@manishrc/tailwindcss-typography-js v0.1.7

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

tailwindcss-typography-js Build Status

Tailwind CSS plugin to inject Typography.js styles

Install

$ npm install --save @manishrc/tailwindcss-typography-js

Usage

// tailwindcss.config.js
const typography = require("@manishrc/tailwindcss-typography-js");

// Option 1 - Using a configuration
const typographyTheme = typography({
  baseFontSize: "18px",
  baseLineHeight: 1.666,
  headerFontFamily: ["Helvetica Neue", "sans-serif"],
  bodyFontFamily: ["Georgia", "serif"],
});

// Option 2 - Using a theme
import funstonTheme from "typography-theme-funston";
const typographyTheme = typography(funstonTheme);

// Add to the plugin list.
module.exports = {
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [typographyTheme],
  corePlugins: {},
};
0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago