Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • 2.0.0-alpha-11
  • 2.0.0-alpha-10
  • 2.0.0-alpha-9
  • 2.0.0-alpha-8
  • 2.0.0-alpha-7
  • 2.0.0-alpha-6
  • 2.0.0-alpha-5
  • 2.0.0-alpha-4
  • 2.0.0-alpha-3
  • 2.0.0-alpha-2
  • 2.0.0-alpha-1
  • 1.8.0
  • 1.7.0
  • 1.6.4
  • 1.6.3
  • 1.6.2
  • 1.6.1
  • 1.6.0
  • 1.5.5
  • 1.5.4
21 results

tailwind.config.js

Blame
  • Forked from TO / Weby / ui-styleguide
    205 commits behind the upstream repository.
    tailwind.config.js 5.02 KiB
    module.exports = {
      theme: {
        extend: {
          maxWidth: {
            'xxs': '16rem',
          },
          gridTemplateColumns: {
            'candidate-table-row': 'auto auto auto auto 1fr'
          },
          opacity: {
            '85': '0.85',
          },
          lineHeight: {
            'negative': '0.9',
          },
          spacing: {
            '0/5': '0.125rem',
            '28': '7rem',
            '36': '9rem',
            '44': '11rem',
            '52': '13rem',
            '80': '20rem'
          }
        },
        // Breakpoints
        screens: {
          'sm': '576px',
          'md': '768px',
          'lg': '992px',
          'xl': '1200px',
          '2xl': '1366px',
        },
        fontFamily: {
          alt: ['Bebas Neue', 'Helvetica', 'Arial', 'sans-serif'],
          body: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'],
          condensed: ['Roboto Condensed', 'Helvetica', 'Arial', 'sans-serif'],
        },
        fontSize: {
          'xs': '.75rem',
          'sm': '.875rem',
          'base': '1rem',
          'lg': '1.125rem',
          'xl': '1.3rem',
          '2xl': '1.6rem',
          '3xl': '1.875rem',
          '4xl': '2.45rem',
          '5xl': '3rem',
          '6xl': '4rem',
          '7xl': '5.6rem',
        },
        fontWeight: {
          light: 300,
          normal: 400,
          medium: 500,
          bold: 700,
        },
        colors: {
          'transparent': 'transparent',
          'black': '#000000',
          'white': '#ffffff',
          'grey': {
            '50': '#f7f7f7',
            '100': '#f3f3f3',
            '125': '#f0f0f0',
            '150': '#00000012',
            '200': '#adadad',
            '300': '#4c4c4c',
            '400': '#343434',
            '500': '#303132',
            '600': '#262626',
            '700': '#202020',
            '800': '#1f1f1f',
          },
          'red': {
            '100': '#d6151b',
          },
          'green': {
            '100': '#29bc51',
            '200': '#26b34b',
            '300': '#22a244',
          },
          'brands': {
            'facebook': '#067ceb',
            'twitter': '#00c9ff',
            'gmail': '#ec230e',
            'linkedin': '#0066a9',
          }
        },
        container: {
          center: true,
          padding: {
            default: '1rem',
            xl: '2rem',
          },
        },
        textDecorationColor: { // defaults to theme => theme('colors')
          'white': '#fff',
          'black': '#000',
        },
      },
      variants: {
        textDecorationColor: ['responsive', 'hover'],
      },
      // textStyles: theme => ({ // defaults to {}
      //   heading: {
      //     output: false, // this means there won't be a "heading" component in the CSS, but it can be extended
      //     fontWeight: theme('fontWeight.bold'),
      //     lineHeight: theme('lineHeight.tight'),
      //   },
      //   h1: {
      //     extends: 'heading', // this means all the styles in "heading" will be copied here; "extends" can also be an array to extend multiple text styles
      //     fontSize: theme('fontSize.5xl'),
      //     '@screen sm': {
      //       fontSize: theme('fontSize.6xl'),
      //     },
      //   },
      //   h2: {
      //     extends: 'heading',
      //     fontSize: theme('fontSize.4xl'),
      //     '@screen sm': {
      //       fontSize: theme('fontSize.5xl'),
      //     },
      //   },
      //   h3: {
      //     extends: 'heading',
      //     fontSize: theme('fontSize.4xl'),
      //   },
      //   h4: {
      //     extends: 'heading',
      //     fontSize: theme('fontSize.3xl'),
      //   },
      //   h5: {
      //     extends: 'heading',
      //     fontSize: theme('fontSize.2xl'),
      //   },
      //   h6: {
      //     extends: 'heading',
      //     fontSize: theme('fontSize.xl'),
      //   },
      //   link: {
      //     '&:hover': {
      //       textDecoration: 'underline',
      //     },
      //   },
      //   richText: {
      //     fontWeight: theme('fontWeight.normal'),
      //     fontSize: theme('fontSize.base'),
      //     lineHeight: theme('lineHeight.relaxed'),
      //     '> * + *': {
      //       marginTop: '1em',
      //     },
      //     'h1': {
      //       extends: 'h1',
      //     },
      //     'h2': {
      //       extends: 'h2',
      //     },
      //     'h3': {
      //       extends: 'h3',
      //     },
      //     'h4': {
      //       extends: 'h4',
      //     },
      //     'h5': {
      //       extends: 'h5',
      //     },
      //     'h6': {
      //       extends: 'h6',
      //     },
      //     'ul': {
      //       listStyleType: 'disc',
      //     },
      //     'ol': {
      //       listStyleType: 'decimal',
      //     },
      //     'a': {
      //       extends: 'link',
      //     },
      //     'b, strong': {
      //       fontWeight: theme('fontWeight.bold'),
      //     },
      //     'i, em': {
      //       fontStyle: 'italic',
      //     },
      //   },
      // }),
      plugins: [
        require('tailwind-css-variables')(
          {
            // modules
          },
          {
            // options
          }
        ),
        require('tailwindcss-typography')({
          // all these options default to the values specified here
          ellipsis: false,         // whether to generate ellipsis utilities
          hyphens: false,          // whether to generate hyphenation utilities
          kerning: false,          // whether to generate kerning utilities
          textUnset: false,        // whether to generate utilities to unset text properties
          componentPrefix: 'typeset-',  // the prefix to use for text style classes
        }),
        require('tailwindcss-elevation')(['responsive', 'hover'], {
          color: "#dddddd",
          opacityBoost: '0.23',
        }),
      ]
    }