2024-09-06 16:07:54 +00:00
|
|
|
|
// @ts-check
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @type {typeof import("@theguild/tailwind-config").default}
|
|
|
|
|
|
*/
|
|
|
|
|
|
const config = /** @type {any} */ (require('@theguild/tailwind-config'));
|
|
|
|
|
|
const plugin = require('tailwindcss/plugin');
|
2023-08-17 19:26:36 +00:00
|
|
|
|
const { fontFamily } = require('tailwindcss/defaultTheme');
|
2024-09-06 16:07:54 +00:00
|
|
|
|
const { default: flattenColorPalette } = require('tailwindcss/lib/util/flattenColorPalette');
|
2023-08-17 19:26:36 +00:00
|
|
|
|
|
2024-09-06 16:07:54 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* @type {import("tailwindcss").Config}
|
|
|
|
|
|
*/
|
2023-08-17 19:26:36 +00:00
|
|
|
|
module.exports = {
|
|
|
|
|
|
...config,
|
|
|
|
|
|
theme: {
|
|
|
|
|
|
...config.theme,
|
|
|
|
|
|
extend: {
|
2024-07-30 14:43:11 +00:00
|
|
|
|
...config.theme.extend,
|
2023-08-17 19:26:36 +00:00
|
|
|
|
fontFamily: {
|
2024-09-06 16:07:54 +00:00
|
|
|
|
sans: ['var(--font-sans)', ...fontFamily.sans],
|
|
|
|
|
|
display: ['var(--font-sans)', ...fontFamily.sans],
|
|
|
|
|
|
},
|
|
|
|
|
|
colors: {
|
|
|
|
|
|
...config.theme.extend.colors,
|
|
|
|
|
|
primary: config.theme.extend.colors['hive-yellow'],
|
|
|
|
|
|
},
|
|
|
|
|
|
keyframes: {
|
|
|
|
|
|
'accordion-down': {
|
|
|
|
|
|
from: { height: 0, opacity: 0 },
|
|
|
|
|
|
to: { height: 'var(--radix-accordion-content-height)', opacity: 1 },
|
|
|
|
|
|
},
|
|
|
|
|
|
'accordion-up': {
|
|
|
|
|
|
from: { height: 'var(--radix-accordion-content-height)', opacity: 1 },
|
|
|
|
|
|
to: { height: 0, opacity: 0 },
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
animation: {
|
|
|
|
|
|
'accordion-down': 'accordion-down 0.5s ease',
|
|
|
|
|
|
'accordion-up': 'accordion-up 0.5s ease',
|
2023-08-17 19:26:36 +00:00
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
2024-09-06 16:07:54 +00:00
|
|
|
|
plugins: [
|
|
|
|
|
|
require('tailwindcss-radix')({ variantPrefix: 'rdx' }),
|
|
|
|
|
|
require('tailwindcss-animate'),
|
|
|
|
|
|
plugin(({ addUtilities, matchUtilities, theme }) => {
|
|
|
|
|
|
addUtilities({
|
|
|
|
|
|
'.mask-image-none': {
|
|
|
|
|
|
'mask-image': 'none',
|
|
|
|
|
|
},
|
|
|
|
|
|
});
|
|
|
|
|
|
matchUtilities(
|
|
|
|
|
|
{
|
|
|
|
|
|
blockquote: color => ({
|
|
|
|
|
|
position: 'relative',
|
|
|
|
|
|
quotes: '"“" "”" "‘" "’"',
|
|
|
|
|
|
'&:before, &:after': {
|
|
|
|
|
|
lineHeight: '0',
|
|
|
|
|
|
position: 'relative',
|
|
|
|
|
|
fontSize: '2.25em',
|
|
|
|
|
|
display: 'inline-block',
|
2024-09-08 10:52:46 +00:00
|
|
|
|
verticalAlign: 'middle',
|
|
|
|
|
|
width: '0',
|
2024-09-06 16:07:54 +00:00
|
|
|
|
color,
|
|
|
|
|
|
},
|
|
|
|
|
|
'&:before': {
|
|
|
|
|
|
content: 'open-quote',
|
2024-09-08 10:52:46 +00:00
|
|
|
|
left: '-0.375em',
|
2024-09-06 16:07:54 +00:00
|
|
|
|
},
|
|
|
|
|
|
'&:after': {
|
|
|
|
|
|
content: 'close-quote',
|
|
|
|
|
|
},
|
|
|
|
|
|
}),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
values: flattenColorPalette(theme('colors')),
|
|
|
|
|
|
type: 'color',
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
}),
|
|
|
|
|
|
],
|
|
|
|
|
|
darkMode: ['variant', '&:not(.light *)'],
|
2023-08-17 19:26:36 +00:00
|
|
|
|
};
|