www: new fenced code block design (#1629)

This commit is contained in:
Marvin Hagemeister
2023-08-13 10:52:41 +02:00
committed by GitHub
parent 7679e278cc
commit 6a599dbed5
43 changed files with 363 additions and 342 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ description: |
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
```ts main.ts
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
@@ -26,7 +26,7 @@ The template generates a Twind v0 project by default. If you want to use Twind
v1 you can follow this guide. First of all, change the import path to use the
`twindv1` plugin:
```ts
```ts main.ts
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
@@ -45,7 +45,7 @@ await start(manifest, { plugins: [twindPlugin(twindConfig)] });
The twind config object has changed significantly in v1, so we must also go
change `twind.config.ts`. A good base looks like this:
```ts
```ts twind.config.ts
import { defineConfig, Preset } from "https://esm.sh/@twind/core@1.1.3";
import presetTailwind from "https://esm.sh/@twind/preset-tailwind@1.1.4";
import presetAutoprefix from "https://esm.sh/@twind/preset-autoprefix@1.0.7";