2022-02-23 14:49:24 +00:00
|
|
|
const { join } = require('path');
|
2023-07-04 11:01:25 +00:00
|
|
|
const { createGlobPatternsForDependencies } = require('@nx/next/tailwind');
|
2022-02-23 17:57:44 +00:00
|
|
|
const theme = require('../../libs/tailwindcss-config/src/theme');
|
2022-03-30 15:56:48 +00:00
|
|
|
const vegaCustomClasses = require('../../libs/tailwindcss-config/src/vega-custom-classes');
|
2022-02-23 14:49:24 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
content: [
|
2022-02-28 22:29:05 +00:00
|
|
|
join(__dirname, 'pages/**/*.{js,ts,jsx,tsx}'),
|
2022-11-08 07:23:38 +00:00
|
|
|
join(__dirname, 'client-pages/**/*.{js,ts,jsx,tsx}'),
|
2022-02-28 22:29:05 +00:00
|
|
|
join(__dirname, 'components/**/*.{js,ts,jsx,tsx}'),
|
2022-06-10 23:12:51 +00:00
|
|
|
'libs/ui-toolkit/src/utils/shared.ts',
|
2022-02-23 17:57:44 +00:00
|
|
|
...createGlobPatternsForDependencies(__dirname),
|
2022-02-23 14:49:24 +00:00
|
|
|
],
|
2022-02-23 17:57:44 +00:00
|
|
|
darkMode: 'class',
|
2022-08-31 04:35:46 +00:00
|
|
|
theme: {
|
2023-09-21 13:25:19 +00:00
|
|
|
extend: {
|
|
|
|
...theme,
|
|
|
|
colors: {
|
|
|
|
transparent: 'transparent',
|
|
|
|
current: 'currentColor',
|
|
|
|
...theme.colors,
|
|
|
|
},
|
|
|
|
backgroundImage: {
|
|
|
|
...theme.backgroundImage,
|
|
|
|
rainbow:
|
|
|
|
'linear-gradient(103.47deg, #FF077F 1.68%, #8028FF 47.49%, #0075FF 100%)',
|
|
|
|
'rainbow-shifted':
|
|
|
|
'linear-gradient(103.47deg, #0075FF 1.68%, #8028FF 47.49%, #FF077F 100%)',
|
|
|
|
highlight:
|
|
|
|
'linear-gradient(170deg, var(--tw-gradient-from), transparent var(--tw-gradient-to-position))',
|
|
|
|
},
|
|
|
|
keyframes: {
|
|
|
|
...theme.keyframes,
|
|
|
|
shake: {
|
|
|
|
'0%': { transform: 'translateX(0)' },
|
|
|
|
'25%': { transform: 'translateX(5px)' },
|
|
|
|
'50%': { transform: 'translateX(-5px)' },
|
|
|
|
'75%': { transform: 'translateX(5px)' },
|
|
|
|
'100%': { transform: 'translateX(0)' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
animation: {
|
|
|
|
...theme.animation,
|
|
|
|
shake: 'shake 200ms linear',
|
|
|
|
},
|
|
|
|
},
|
2022-08-31 04:35:46 +00:00
|
|
|
},
|
2022-03-30 15:56:48 +00:00
|
|
|
plugins: [vegaCustomClasses],
|
2022-02-23 14:49:24 +00:00
|
|
|
};
|