Adds example on using the Local API (both fetching data and modifying
data) with Remix.
https://github.com/user-attachments/assets/fe215e4e-e446-4f92-b0ac-acbf3d0a225b
This is achieved through the monorepo:
```
website/
payload/
```
You can import the Payload config and types like this:
86d83216d7/examples/remix/website/app/routes/_index.tsx (L1-L16)
23 lines
465 B
TypeScript
23 lines
465 B
TypeScript
import type { Config } from 'tailwindcss'
|
|
|
|
export default {
|
|
content: ['./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}'],
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
sans: [
|
|
'Inter',
|
|
'ui-sans-serif',
|
|
'system-ui',
|
|
'sans-serif',
|
|
'Apple Color Emoji',
|
|
'Segoe UI Emoji',
|
|
'Segoe UI Symbol',
|
|
'Noto Color Emoji',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
} satisfies Config
|