feat: twind plugin (#513)
This adds a first-party twind plugin to use twind for styling.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
/** @jsxFrag Fragment */
|
||||
import { Fragment, h } from "preact";
|
||||
import { useEffect, useRef, useState } from "preact/hooks";
|
||||
import { tw } from "@twind";
|
||||
import { Spring, WaveTank } from "../components/WaveTank.ts";
|
||||
|
||||
function easeInCirc(x: number) {
|
||||
@@ -102,7 +101,7 @@ function LemonDrop() {
|
||||
viewBox="0 0 100 300"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class={tw`mt-36`}
|
||||
class="mt-36"
|
||||
role="img"
|
||||
aria-label="Fresh logo"
|
||||
>
|
||||
@@ -130,7 +129,7 @@ function LemonDrop() {
|
||||
height="100px"
|
||||
viewBox="0 0 100 100"
|
||||
preserveAspectRatio="none"
|
||||
class={tw`-mt-5`}
|
||||
class="-mt-5"
|
||||
>
|
||||
<polygon
|
||||
points={springsPath}
|
||||
|
||||
Reference in New Issue
Block a user