Skip to content

Commit

Permalink
docs: add Remix integration page (#1281)
Browse files Browse the repository at this point in the history
Co-authored-by: Remus Mate <3297808+mrm007@users.noreply.github.com>
  • Loading branch information
JoshuaKGoldberg and mrm007 authored Jan 25, 2024
1 parent 837774c commit 49d60bd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
11 changes: 10 additions & 1 deletion site/contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,16 @@ const contents = [
{
group: 'integrations',
label: 'Integrations',
pages: ['vite', 'esbuild', 'webpack', 'next', 'parcel', 'rollup', 'gatsby'],
pages: [
'esbuild',
'gatsby',
'next',
'parcel',
'remix',
'rollup',
'vite',
'webpack',
],
},
];

Expand Down
24 changes: 24 additions & 0 deletions site/docs/integrations/remix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Remix
parent: integrations
---

# Remix

[Remix](https://remix.run) provides support for Vanilla Extract out of the box. See [Vanilla Extract | Remix](https://remix.run/docs/en/main/styling/vanilla-extract) for details.

Remix's (unstable) Vite compiler works with the [Vite integration]. It's as simple as adding the `@vanilla-extract/vite-plugin` to your Vite config:

```js
import { unstable_vitePlugin as remix } from '@remix-run/dev';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [remix(), vanillaExtractPlugin()]
});
```

See [Vite (Unstable) | Remix](https://remix.run/docs/en/main/future/vite#add-vanilla-extract-plugin) for more details.

[vite integration]: /documentation/integrations/vite

0 comments on commit 49d60bd

Please sign in to comment.