How to use the tailwindcss/defaultConfig.js.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 metaspace2020 / metaspace / metaspace / webapp / tailwind.config.js View on Github external
blue: { // experimental, could merge with brand
          '100': 'hsl(208, 79%, 92%)',
          '200': 'hsl(208, 97%, 85%)',
          '300': 'hsl(208, 84%, 74%)',
          '400': 'hsl(208, 74%, 65%)',
          '500': 'hsl(208, 65%, 55%)',
          '600': 'hsl(208, 67%, 45%)',
          '700': 'hsl(208, 76%, 39%)',
          '800': 'hsl(208, 82%, 33%)',
          '900': 'hsl(208, 87%, 29%)',
          '999': 'hsl(208, 100%, 21%)',
        }
      },
      textColor: {
        primary: 'hsl(208, 93%, 44%)',
        danger: defaults.theme.colors.red[700],
      },
      borderColor: {
        danger: defaults.theme.colors.red[700],
      },
      backgroundColor: {
        'primary-alpha': 'hsla(208, 87%, 50%, 87%)',
        'blue-700-alpha': 'hsla(208, 76%, 39%, 75%)',
      },
      inset: {
        '1/2': '50%',
      },
      opacity: {
        '1': '0.01',
      },
      spacing: {
        auto: 'auto',
github metaspace2020 / metaspace / metaspace / webapp / tailwind.config.js View on Github external
'300': 'hsl(208, 84%, 74%)',
          '400': 'hsl(208, 74%, 65%)',
          '500': 'hsl(208, 65%, 55%)',
          '600': 'hsl(208, 67%, 45%)',
          '700': 'hsl(208, 76%, 39%)',
          '800': 'hsl(208, 82%, 33%)',
          '900': 'hsl(208, 87%, 29%)',
          '999': 'hsl(208, 100%, 21%)',
        }
      },
      textColor: {
        primary: 'hsl(208, 93%, 44%)',
        danger: defaults.theme.colors.red[700],
      },
      borderColor: {
        danger: defaults.theme.colors.red[700],
      },
      backgroundColor: {
        'primary-alpha': 'hsla(208, 87%, 50%, 87%)',
        'blue-700-alpha': 'hsla(208, 76%, 39%, 75%)',
      },
      inset: {
        '1/2': '50%',
      },
      opacity: {
        '1': '0.01',
      },
      spacing: {
        auto: 'auto',
        '9': '2.25rem', // 1.5 * 24px/1.5rem
        '18': '4.5rem', // 3 * 24px/1.5rem
        '66': '16.5rem', // 11 * 24px/1.5rem