mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:03:26 +00:00
replace all stylesheets with tailwind classes
This commit is contained in:
13
apps/mobile/app/hooks/useTailwind.ts
Normal file
13
apps/mobile/app/hooks/useTailwind.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useMemo } from 'react';
|
||||
import resolveConfig from 'tailwindcss/resolveConfig';
|
||||
|
||||
import tailwindConfig from '../../tailwind.config.js';
|
||||
|
||||
const useTailwind = () => {
|
||||
const tailwind = useMemo(() => resolveConfig(tailwindConfig), []);
|
||||
return {
|
||||
colors: tailwind.theme.colors,
|
||||
};
|
||||
};
|
||||
|
||||
export default useTailwind;
|
Reference in New Issue
Block a user