2023-05-16 09:57:15 +00:00
|
|
|
// eslint-disable-next-line eslint-comments/disable-enable-pair
|
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
const { fontFamily } = require('tailwindcss/defaultTheme')
|
2023-05-03 12:25:17 +00:00
|
|
|
const colors = require('@status-im/colors')
|
2023-05-16 09:57:15 +00:00
|
|
|
const plugin = require('tailwindcss/plugin')
|
2023-05-03 12:25:17 +00:00
|
|
|
|
2023-04-26 10:06:18 +00:00
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
|
|
module.exports = {
|
|
|
|
content: [
|
2023-05-03 12:25:17 +00:00
|
|
|
'./src/**/*.{js,ts,jsx,tsx,mdx}',
|
2023-04-26 10:06:18 +00:00
|
|
|
// './app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
|
|
],
|
|
|
|
theme: {
|
2023-05-03 12:25:17 +00:00
|
|
|
fontFamily: {
|
2023-05-16 09:57:15 +00:00
|
|
|
sans: ['var(--font-inter)', ...fontFamily.sans],
|
2023-05-03 12:25:17 +00:00
|
|
|
},
|
2023-06-21 10:35:48 +00:00
|
|
|
colors: colors,
|
2023-05-03 12:25:17 +00:00
|
|
|
|
2023-05-16 09:57:15 +00:00
|
|
|
// use <Text /> from @status-im/components or arbitrary values
|
|
|
|
// fontSize: {},
|
2023-05-03 12:25:17 +00:00
|
|
|
fontWeight: {
|
2023-05-16 09:57:15 +00:00
|
|
|
regular: '400',
|
|
|
|
medium: '500',
|
|
|
|
semibold: '600',
|
|
|
|
bold: '700',
|
2023-05-03 12:25:17 +00:00
|
|
|
},
|
|
|
|
|
2023-05-16 09:57:15 +00:00
|
|
|
extend: {
|
|
|
|
transitionProperty: {
|
|
|
|
height: 'height',
|
|
|
|
},
|
|
|
|
|
2023-06-22 15:46:20 +00:00
|
|
|
screens: {
|
|
|
|
'md-lg': { raw: '(min-width: 868px)' },
|
|
|
|
},
|
|
|
|
|
2023-05-16 09:57:15 +00:00
|
|
|
keyframes: {
|
|
|
|
heightIn: {
|
|
|
|
from: { height: 0 },
|
|
|
|
// to: { height: 296 },
|
|
|
|
to: { height: 'var(--radix-navigation-menu-viewport-height)' },
|
|
|
|
},
|
|
|
|
heightOut: {
|
|
|
|
from: { height: 'var(--radix-navigation-menu-viewport-height)' },
|
|
|
|
// from: { height: 296 },
|
|
|
|
to: { height: 0 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-05-03 12:25:17 +00:00
|
|
|
|
2023-05-16 09:57:15 +00:00
|
|
|
animation: {
|
|
|
|
heightIn: 'heightIn 250ms ease',
|
|
|
|
heightOut: 'heightOut 250ms ease',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
require('tailwindcss-animate'),
|
|
|
|
plugin(({ matchUtilities }) => {
|
|
|
|
matchUtilities({
|
|
|
|
perspective: value => ({
|
|
|
|
perspective: value,
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
}),
|
|
|
|
],
|
2023-04-26 10:06:18 +00:00
|
|
|
}
|