How to use the tailwindcss/stubs/defaultConfig.stub.theme function in tailwindcss

To help you get started, we’ve selected a few tailwindcss 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 pradel / sigle / tailwind.config.js View on Github external
const defaultConfig = require('tailwindcss/stubs/defaultConfig.stub');

module.exports = {
  ...defaultConfig,
  theme: {
    ...defaultConfig.theme,
    fontFamily: {
      ...defaultConfig.theme.fontFamily,
      roboto: "'Roboto', sans-serif",
      baskerville: "'Libre Baskerville', serif",
    },
    colors: {
      ...defaultConfig.theme.colors,
      primary: {
        default: '#ff576a',
      },
      grey: {
        darker: '#494949',
        dark: '#cccccc',
        default: '#e8e8e8',
        light: '#f9f9f9',
      },
github pradel / sigle / tailwind.config.js View on Github external
const defaultConfig = require('tailwindcss/stubs/defaultConfig.stub');

module.exports = {
  ...defaultConfig,
  theme: {
    ...defaultConfig.theme,
    fontFamily: {
      ...defaultConfig.theme.fontFamily,
      roboto: "'Roboto', sans-serif",
      baskerville: "'Libre Baskerville', serif",
    },
    colors: {
      ...defaultConfig.theme.colors,
      primary: {
        default: '#ff576a',
      },
      grey: {
        darker: '#494949',
        dark: '#cccccc',
        default: '#e8e8e8',
        light: '#f9f9f9',
      },
    },
  },
};