|
| 1 | +/** @type {import('tailwindcss').Config} */ |
| 2 | +const colors = require('@sb1/ffe-core/lib/colors'); |
| 3 | +const { greyCharcoalDarkmode } = require('@sb1/ffe-core/lib/colors-deprecated'); |
| 4 | +const spacing = require('@sb1/ffe-core/lib/spacing'); |
| 5 | +const breakpoints = require('@sb1/ffe-core/lib/breakpoints'); |
| 6 | + |
| 7 | +module.exports = { |
| 8 | + content: ['./src/**/*.{tsx,ts}'], |
| 9 | + darkMode: [ |
| 10 | + 'variant', |
| 11 | + [ |
| 12 | + '@media (prefers-color-scheme: dark) { body.regard-color-scheme-preference & }', |
| 13 | + ], |
| 14 | + ], |
| 15 | + theme: { |
| 16 | + colors: { |
| 17 | + ...colors, |
| 18 | + inherit: 'inherit', |
| 19 | + transparent: 'transparent', |
| 20 | + fargeBeksvart: greyCharcoalDarkmode, |
| 21 | + }, |
| 22 | + screens: { |
| 23 | + sm: breakpoints.breakpointSm, |
| 24 | + md: breakpoints.breakpointMd, |
| 25 | + lg: breakpoints.breakpointLg, |
| 26 | + xl: breakpoints.breakpointXl, |
| 27 | + }, |
| 28 | + spacing: { |
| 29 | + 0: 0, |
| 30 | + 0.5: spacing.spacing2xs, |
| 31 | + 1: spacing.spacing, |
| 32 | + 2: spacing.spacingSm, |
| 33 | + 3: spacing.spacingMd, |
| 34 | + 4: spacing.spacingLg, |
| 35 | + 5: spacing.spacingXl, |
| 36 | + 6: spacing.spacing2xl, |
| 37 | + 8: spacing.spacing3xl, |
| 38 | + 10: spacing.spacing4xl, |
| 39 | + 20: spacing.spacing5xl, |
| 40 | + '2xs': spacing.spacing2xs, |
| 41 | + xs: spacing.spacingXs, |
| 42 | + sm: spacing.spacingSm, |
| 43 | + md: spacing.spacingMd, |
| 44 | + lg: spacing.spacingLg, |
| 45 | + xl: spacing.spacingXl, |
| 46 | + '2xl': spacing.spacing2xl, |
| 47 | + '3xl': spacing.spacing3xl, |
| 48 | + '4xl': spacing.spacing4xl, |
| 49 | + '5xl': spacing.spacing5xl, |
| 50 | + '1/2': '50%', |
| 51 | + }, |
| 52 | + animation: { |
| 53 | + slide: 'slide 1.8s infinite', |
| 54 | + }, |
| 55 | + keyframes: { |
| 56 | + slide: { |
| 57 | + '0%': { transform: 'translateX(-100%)' }, |
| 58 | + '100%': { transform: 'translateX(100%)' }, |
| 59 | + }, |
| 60 | + }, |
| 61 | + extend: { |
| 62 | + borderRadius: { |
| 63 | + DEFAULT: '8px', |
| 64 | + lg: '32px', |
| 65 | + }, |
| 66 | + }, |
| 67 | + }, |
| 68 | + plugins: [], |
| 69 | + corePlugins: { |
| 70 | + preflight: false, |
| 71 | + }, |
| 72 | +}; |
0 commit comments