mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
upgrade to native wind v4
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import { useMemo } from 'react';
|
||||
import resolveConfig from 'tailwindcss/resolveConfig';
|
||||
|
||||
import tailwindConfig from '../../tailwind.config.js';
|
||||
import tailwindConfig from '../../tailwind.config';
|
||||
|
||||
const useTailwind = () => {
|
||||
const tailwind = useMemo(() => resolveConfig(tailwindConfig), []);
|
||||
console.log(tailwind);
|
||||
return {
|
||||
colors: tailwind.theme.colors,
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
colors: tailwind.theme.colors as typeof tailwindConfig.theme.extend.colors,
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user