graphql-engine/console/tailwind.config.js
Nicolas Inchauspe bc2480fb98 console: add horizontal variants for form fields wrapper CON-403
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5147
GitOrigin-RevId: 83b13be7fc969687e5d7ea2f0ad9f56b0ca9947b
2022-07-29 18:12:59 +00:00

81 lines
2.0 KiB
JavaScript

const colors = require('tailwindcss/colors');
module.exports = {
purge: {
content: ['./src/**/*.{js,jsx,ts,tsx,html,md,mdx}'],
options: {
safelist: {
standard: [/background$/],
},
},
},
darkMode: 'class',
// jit: true,
mode: 'jit',
theme: {
fontFamily: {
sans: ['Gudea', 'ui-sans-serif', 'system-ui'],
},
flex: {
grow220px: '1 0 220px',
grow320px: '1 0 320px',
},
extend: {
colors: {
current: 'currentColor',
yellow: colors.amber,
gray: colors.blueGray,
primary: {
light: '#fad170',
DEFAULT: '#f9c548',
dark: '#d5ae52',
darker: '#ae8e3e',
},
// added this new colour from tailwindv3, can be removed on tailwind upgrade
slate: {
700: '#334155',
},
cloud: {
DEFAULT: '#1eb4d4',
dark: '#197b98',
darker: '#074c4c',
},
secondary: {
light: '#eef4f7',
DEFAULT: '#297393',
dark: '#14394a',
},
legacybg: {
DEFAULT: '#f8fafb',
},
muted: {
DEFAULT: '#475569',
},
},
spacing: {
xs: '0.571rem', // ~9.5 px
sm: '0.857rem', // ~14 px
md: '1.429rem', // ~23 px
lg: '2.286rem', // 36.5px
xl: '2.857rem', // 45.7px
input: '2.5rem', // 41.5px
btn: '2.5rem', // 41.5px
btnsm: '2rem', // 32px
formlabel: '0.571rem', // ~9.5 px
},
fontSize: {
sm: ['0.875rem', { lineHeight: '1.25rem' }],
base: ['1rem', { lineHeight: '1.5rem' }],
lg: ['1.143rem', { lineHeight: '1.429rem' }],
xl: ['1.714rem', { lineHeight: '2.143rem' }],
subtitle: ['1.300rem', { lineHeight: '2.143rem' }], // ~20 px
title: ['1.5rem', { lineHeight: '2.143rem' }], // ~24 px
},
width: {
inherit: 'inherit',
},
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};