import plugin from 'tailwindcss/plugin'; /** @type {import('tailwindcss').Config} */ export default { content: ['./src/**/*.{html,js,svelte,ts}'], darkMode: 'class', theme: { extend: { colors: { // Light Theme 'immich-primary': 'rgb(var(--immich-primary) / )', 'immich-bg': 'rgb(var(--immich-bg) / )', 'immich-fg': 'rgb(var(--immich-fg) / )', 'immich-gray': 'rgb(var(--immich-gray) / )', 'immich-error': 'rgb(var(--immich-error) / )', 'immich-success': 'rgb(var(--immich-success) / )', 'immich-warning': 'rgb(var(--immich-warning) / )', // Dark Theme 'immich-dark-primary': 'rgb(var(--immich-dark-primary) / )', 'immich-dark-bg': 'rgb(var(--immich-dark-bg) / )', 'immich-dark-fg': 'rgb(var(--immich-dark-fg) / )', 'immich-dark-gray': 'rgb(var(--immich-dark-gray) / )', 'immich-dark-error': 'rgb(var(--immich-dark-error) / )', 'immich-dark-success': 'rgb(var(--immich-dark-success) / )', 'immich-dark-warning': 'rgb(var(--immich-dark-warning) / )', }, fontFamily: { 'immich-mono': ['Overpass Mono', 'monospace'], }, spacing: { 18: '4.5rem', }, screens: { tall: { raw: '(min-height: 800px)' }, }, }, }, plugins: [ plugin(({ matchUtilities, theme }) => { matchUtilities( { 'grid-auto-fit': (value) => ({ gridTemplateColumns: `repeat(auto-fit, minmax(min(${value}, 100%), 1fr))`, }), 'grid-auto-fill': (value) => ({ gridTemplateColumns: `repeat(auto-fill, minmax(min(${value}, 100%), 1fr))`, }), }, { values: theme('width') }, ); }), ], };