How to use typography-plugin-code - 1 common examples

To help you get started, we’ve selected a few typography-plugin-code examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KyleAMathews / blog / src / utils / typography.js View on Github external
const Typography = require("typography")
const CodePlugin = require("typography-plugin-code").default

let theme = {
  baseFontSize: `18px`,
  headerFontFamily: [`Cooper Hewitt`, `sans-serif`],
  bodyFontFamily: [`Cooper Hewitt`, `sans-serif`],
  plugins: [new CodePlugin()],
  baseLineHeight: 1.45,
  blockMarginBottom: 0.85,
  overrideThemeStyles: ({ rhythm }) => ({
    body: {
      // border: `${rhythm(3 / 4)} solid #c5484d`,
    a: {
      color: `#3A69A8`,
    blockquote: {


A plugin for Typography.js that provides basic code styling both inline and block

Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis

Popular typography-plugin-code functions