Skip to content

Commit

Permalink
docs(plugins): remove redundant text for unocss
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelrk committed Aug 8, 2023
1 parent 2a64f85 commit 86c8227
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions docs/latest/examples/using-unocss.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,8 @@ description: |
One can use UnoCSS, an instant on-demand atomic CSS engine
---

When you initialize a project with `deno run -A -r https://fresh.deno.dev`,
you'll end up with a `main.ts` like the following:

```ts
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />

import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";

import unocssPlugin from "$fresh/plugins/unocss.ts";
import unocssConfig from "./uno.config.ts";

await start(manifest, { plugins: [unocssPlugin(unocssConfig)] });
```

The template generates a Twind v0 project by default. If you want to use UnoCSS
you can follow this guide. First of all, change the import path to use the
`unocss` plugin:
you can update the `main.ts` as follows:

```ts
/// <reference no-default-lib="true" />
Expand Down

0 comments on commit 86c8227

Please sign in to comment.