@digitalrisks/tailwind

1.0.2 • Public • Published

DR Tailwind

Importable base tailwind.config for DR

npm version

Installation

$ yarn add -D @digitalrisks/tailwind

Usage

Global Tailwind config changes (colours being used across multiple projects, spacing, etc) will be made here. Per project changes extend this base config.

Example tailwind.config.js file

const baseConfig = require('@digitalrisks/tailwind')
const config = baseConfig

config.theme.extend = {
  ...baseConfig.theme.extend,
  // Extra per-project extensions, eg:
  fontFamily: {
    heading: [
      'Muli',
      ...baseConfig.theme.extend.fontFamily.sans,
    ],
    ...baseConfig.theme.extend.fontFamily,
  },
}

config.theme = {
  ...baseConfig.theme,
  // Extra per-project overrides
}

config.plugins = {
  ...baseConfig.plugins,
  // Extra per-project plugins
}

module.exports = config

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i @digitalrisks/tailwind

Weekly Downloads

0

Version

1.0.2

License

none

Unpacked Size

4.78 kB

Total Files

4

Last publish

Collaborators

  • sanscheese
  • shmarts