gitbutler/tailwind.config.cjs

112 lines
2.1 KiB
JavaScript
Raw Normal View History

2023-04-03 14:54:38 +03:00
const plugin = require('tailwindcss/plugin');
2023-01-31 17:55:57 +03:00
const config = {
2023-02-24 12:46:41 +03:00
content: ['./src/**/*.{html,js,svelte,ts}'],
darkMode: 'class',
theme: {
fontFamily: {
sans: ['Inter', 'SF Pro', '-apple-system', 'system-ui'],
mono: ['SF Mono', 'Consolas', 'Liberation Mono', 'monospace']
2023-02-24 12:46:41 +03:00
},
fontSize: {
xs: '10px',
sm: '12px',
base: '13px',
lg: '15px',
xl: '22px',
'2xl': '26px',
2023-03-16 17:52:57 +03:00
'3xl': '30px'
2023-02-24 12:46:41 +03:00
},
2023-03-29 18:00:54 +03:00
colors: {
gb: {
700: '#52525B'
},
interactive: '#2563EB',
divider: '#3f3f46',
card: {
active: '#3B3B3F',
default: '#2F2F33'
},
app: {
gradient: '#27272A'
},
overlay: {
default: '#18181B'
},
icon: {
default: '#A1A1AA'
},
white: '#FFFFFF',
transparent: 'transparent',
gray: {
400: '#9ca3af',
500: '#6B7280'
},
blue: {
200: '#bfdbfe',
400: '#60a5fa',
500: '#3b82f6',
600: '#2563eb',
700: '#1d4ed8',
900: '#1e3a8a'
},
yellow: {
400: '#facc15',
500: '#eab308',
900: '#713f12'
},
red: {
500: '#ef4444',
2023-04-03 09:44:22 +03:00
600: '#dc2626',
2023-03-29 18:00:54 +03:00
700: '#b91c1c',
900: '#7c2d12'
},
green: {
400: '#4ade80',
500: '#22c55e',
2023-03-29 18:00:54 +03:00
600: '#16a34a',
700: '#15803d',
900: '#14532d'
},
orange: {
200: '#fed7aa'
},
zinc: {
50: '#fafafa',
100: '#f4f4f5',
200: '#e5e5e5',
300: '#d4d4d8',
400: '#a1a1aa',
500: '#71717a',
600: '#52525b',
700: '#3f3f46',
800: '#27272a',
900: '#18181b'
2023-03-16 17:52:57 +03:00
}
}
2023-02-24 12:46:41 +03:00
},
2023-04-03 14:54:38 +03:00
plugins: [
// Expose color palette as CSS variables (--color-xxx-yyy)
// https://gist.github.com/Merott/d2a19b32db07565e94f10d13d11a8574
plugin(function ({ addBase, theme }) {
function extractColorVars(colorObj, colorGroup = '') {
return Object.keys(colorObj).reduce((vars, colorKey) => {
const value = colorObj[colorKey];
const newVars =
typeof value === 'string'
? { [`--color${colorGroup}-${colorKey}`]: value }
: extractColorVars(value, `-${colorKey}`);
return { ...vars, ...newVars };
}, {});
}
addBase({
':root': extractColorVars(theme('colors'))
});
})
]
2023-01-31 17:55:57 +03:00
};
module.exports = config;