go-fonts.css

1.0.2 • Public • Published

go-fonts.css

Golang fonts as a node packaged module.

latest version build status stability downloads

Install

# npm package
$ npm install go-fonts.css

The css is exported from the package.json main field and can be imported using a css bundler or copied out of node_modules as part of a larger build process.

Usage

@import 'go-fonts.css';

body { font-family: Go, sans-serif; }

pre, code { font-family: "Go Mono", monospace; }

PostCSS

You can use PostCSS to inline and import this css module using the following postcss.config.js:

module.exports = (ctx) => ({
  plugins: {
    'postcss-import': { root: ctx.file.dirname }, // Inline module css
    'postcss-url': { // Copy assets from node_modules
      url: 'copy',
      useHash: true,
      assetsPath: 'assets'
    }
  }
})
$ postcss styles.css -o dist/bundle.css

Credits

See also

Package Sidebar

Install

npm i go-fonts.css

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

414 kB

Total Files

20

Last publish

Collaborators

  • bret