2024-01-08 13:26:12 +01:00
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
|
|
const config = {
|
|
|
|
content: ['./frontend/src/**/*.{ts,tsx}', './ee/frontend/**/*.{ts,tsx}', './frontend/src/index.html'],
|
2024-01-15 12:34:52 +01:00
|
|
|
important: true, // Basically this: https://sebastiandedeyne.com/why-we-use-important-with-tailwind
|
2022-08-01 16:09:44 +02:00
|
|
|
theme: {
|
|
|
|
colors: {
|
2024-01-08 13:26:12 +01:00
|
|
|
// TODO: Move all colors over to Tailwind
|
|
|
|
// Currently color utility classes are still generated with SCSS in colors.scss due to relying on our color
|
|
|
|
// CSS vars in lots of stylesheets
|
2024-03-18 17:14:44 +01:00
|
|
|
|
|
|
|
purple: '#B62AD9',
|
2024-01-08 13:26:12 +01:00
|
|
|
},
|
|
|
|
fontFamily: {
|
|
|
|
sans: [
|
|
|
|
'-apple-system',
|
|
|
|
'BlinkMacSystemFont',
|
|
|
|
'Inter',
|
|
|
|
'Segoe UI',
|
|
|
|
'Roboto',
|
|
|
|
'Helvetica Neue',
|
|
|
|
'Helvetica',
|
|
|
|
'Arial',
|
|
|
|
'sans-serif',
|
|
|
|
'Apple Color Emoji',
|
|
|
|
'Segoe UI Emoji',
|
|
|
|
'Segoe UI Symbol',
|
|
|
|
],
|
|
|
|
title: [
|
|
|
|
'MatterSQ',
|
|
|
|
'-apple-system',
|
|
|
|
'BlinkMacSystemFont',
|
|
|
|
'Inter',
|
|
|
|
'Segoe UI',
|
|
|
|
'Roboto',
|
|
|
|
'Helvetica Neue',
|
|
|
|
'Helvetica',
|
|
|
|
'Arial',
|
|
|
|
'sans-serif',
|
|
|
|
'Apple Color Emoji',
|
|
|
|
'Segoe UI Emoji',
|
|
|
|
'Segoe UI Symbol',
|
|
|
|
],
|
|
|
|
mono: ['ui-monospace', 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'monospace'],
|
2022-08-01 16:09:44 +02:00
|
|
|
},
|
2024-01-12 19:33:21 +01:00
|
|
|
screens: {
|
|
|
|
// Sync with vars.scss
|
|
|
|
sm: '576px',
|
|
|
|
md: '768px',
|
|
|
|
lg: '992px',
|
|
|
|
xl: '1200px',
|
|
|
|
'2xl': '1600px',
|
|
|
|
},
|
|
|
|
borderRadius: {
|
2024-01-17 20:06:24 +01:00
|
|
|
none: '0',
|
|
|
|
sm: '0.25rem', // Originally 0.125rem, but we're rounder
|
2024-01-12 19:33:21 +01:00
|
|
|
DEFAULT: '0.375rem', // Originally 0.25rem, but we're rounder - aligned with var(--radius)
|
2024-01-17 20:06:24 +01:00
|
|
|
lg: '0.5rem',
|
|
|
|
full: '9999px',
|
2024-01-12 19:33:21 +01:00
|
|
|
},
|
2022-08-01 16:09:44 +02:00
|
|
|
extend: {
|
2024-01-08 13:26:12 +01:00
|
|
|
fontSize: {
|
|
|
|
xxs: ['0.625rem', '0.75rem'], // 10px (12px of line height)
|
|
|
|
},
|
|
|
|
spacing: {
|
|
|
|
// Some additional larger widths for compatibility with our pre-Tailwind system
|
|
|
|
// Don't add new ones here, in new code just use the `w-[32rem]` style for arbitrary values
|
2024-01-08 19:30:09 +01:00
|
|
|
13: '3.25rem',
|
|
|
|
15: '3.75rem',
|
2024-01-08 13:26:12 +01:00
|
|
|
18: '4.5rem',
|
2024-01-08 19:30:09 +01:00
|
|
|
// All whole number values up to 18 ensured above
|
2024-01-08 13:26:12 +01:00
|
|
|
30: '7.5rem',
|
|
|
|
50: '12.5rem',
|
|
|
|
60: '15rem',
|
|
|
|
80: '20rem',
|
|
|
|
100: '25rem',
|
|
|
|
120: '30rem',
|
|
|
|
140: '35rem',
|
|
|
|
160: '40rem',
|
|
|
|
180: '45rem',
|
|
|
|
192: '48rem',
|
|
|
|
200: '50rem',
|
2024-01-08 19:30:09 +01:00
|
|
|
// All whole number values divisible by 20 up to 200 ensured above
|
2024-01-08 13:26:12 +01:00
|
|
|
248: '62rem',
|
|
|
|
300: '75rem',
|
|
|
|
},
|
2024-05-24 00:57:43 +02:00
|
|
|
rotate: {
|
|
|
|
270: '270deg',
|
|
|
|
},
|
2024-03-01 11:56:49 +01:00
|
|
|
minWidth: {
|
|
|
|
'1/3': '33.333333%',
|
|
|
|
},
|
2024-01-08 13:26:12 +01:00
|
|
|
maxWidth: {
|
2024-01-17 20:06:24 +01:00
|
|
|
'1/2': '50%',
|
2024-01-08 13:26:12 +01:00
|
|
|
},
|
|
|
|
boxShadow: {
|
2024-06-12 16:37:19 +02:00
|
|
|
DEFAULT: 'var(--shadow-elevation-3000)',
|
2024-01-08 13:26:12 +01:00
|
|
|
},
|
|
|
|
flex: {
|
|
|
|
2: '2 2 0%',
|
|
|
|
3: '3 3 0%',
|
2022-08-01 16:09:44 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-01-08 13:26:12 +01:00
|
|
|
plugins: [require('@tailwindcss/container-queries')],
|
2022-08-01 16:09:44 +02:00
|
|
|
}
|
2024-01-08 13:26:12 +01:00
|
|
|
|
|
|
|
module.exports = config
|