Command Palette

Search for a command...

Building Blocks for the Web

Clean, modern building blocks. Copy and paste into your apps. Works with all React frameworks. Open Source. Free forever.

A simple signup form
Open in New Tab
signup-01
app/signup/page.tsx
import { styled } from "styled-system/jsx";
import { SignupForm } from "@/components/signup-form";

export default function Page() {
  return (
    <styled.div
      css={{
        display: "flex",
        minH: "svh",
        w: "full",
        alignItems: "center",
        justifyContent: "center",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm" }}>
        <SignupForm />
      </styled.div>
    </styled.div>
  );
}
A simple signup form.
signup-01
signup-01signup-01
app/signup/page.tsx
import { LuGalleryVerticalEnd } from "react-icons/lu";
import { css } from "styled-system/css";
import { styled } from "styled-system/jsx";
import { SignupForm } from "@/components/signup-form";

export default function SignupPage() {
  return (
    <styled.div
      css={{ display: "grid", minH: "svh", lg: { gridTemplateColumns: "repeat(2, 1fr)" } }}
    >
      <styled.div css={{ display: "flex", flexDir: "column", gap: "4", p: "6", md: { p: "10" } }}>
        <styled.div
          css={{
            display: "flex",
            justifyContent: "center",
            gap: "2",
            md: { justifyContent: "flex-start" },
          }}
        >
          <styled.a
            href="#"
            css={{ display: "flex", alignItems: "center", gap: "2", fontWeight: "medium" }}
          >
            <styled.div
              css={{
                bg: "primary",
                color: "primary.fg",
                display: "flex",
                w: "6",
                h: "6",
                alignItems: "center",
                justifyContent: "center",
                rounded: "md",
              }}
            >
              <LuGalleryVerticalEnd className={css({ w: "4", h: "4" })} />
            </styled.div>
            Acme Inc.
          </styled.a>
        </styled.div>
        <styled.div
          css={{ display: "flex", flex: "1", alignItems: "center", justifyContent: "center" }}
        >
          <styled.div css={{ w: "full", maxW: "xs" }}>
            <SignupForm />
          </styled.div>
        </styled.div>
      </styled.div>
      <styled.div css={{ bg: "muted", pos: "relative", display: "none", lg: { display: "block" } }}>
        <styled.img
          src="/placeholder.svg"
          alt="Image"
          css={{
            pos: "absolute",
            inset: "0",
            w: "full",
            h: "full",
            objectFit: "cover",
            _dark: {
              filter: "brightness(0.2) grayscale(1)",
            },
          }}
        />
      </styled.div>
    </styled.div>
  );
}
A two column signup page with a cover image.
signup-02
signup-02signup-02
app/signup/page.tsx
import { LuGalleryVerticalEnd } from "react-icons/lu";
import { css } from "styled-system/css";
import { styled } from "styled-system/jsx";
import { SignupForm } from "@/components/signup-form";

export default function SignupPage() {
  return (
    <styled.div
      css={{
        bg: "muted",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        gap: "6",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ display: "flex", w: "full", maxW: "sm", flexDir: "column", gap: "6" }}>
        <styled.a
          href="#"
          css={{
            display: "flex",
            alignItems: "center",
            gap: "2",
            alignSelf: "center",
            fontWeight: "medium",
          }}
        >
          <styled.div
            css={{
              bg: "primary",
              color: "primary.fg",
              display: "flex",
              w: "6",
              h: "6",
              alignItems: "center",
              justifyContent: "center",
              rounded: "md",
            }}
          >
            <LuGalleryVerticalEnd className={css({ w: "4", h: "4" })} />
          </styled.div>
          Acme Inc.
        </styled.a>
        <SignupForm />
      </styled.div>
    </styled.div>
  );
}
A signup page with a muted background color.
signup-03
signup-03signup-03
A signup page with form and image
Open in New Tab
signup-04
app/signup/page.tsx
import { styled } from "styled-system/jsx";
import { SignupForm } from "@/components/signup-form";

export default function SignupPage() {
  return (
    <styled.div
      css={{
        bg: "muted",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm", md: { maxW: "4xl" } }}>
        <SignupForm />
      </styled.div>
    </styled.div>
  );
}
A signup page with form and image.
signup-04
signup-04signup-04
app/signup/page.tsx
import { styled } from "styled-system/jsx";
import { SignupForm } from "@/components/signup-form";

export default function SignupPage() {
  return (
    <styled.div
      css={{
        bg: "bg",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        gap: "6",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm" }}>
        <SignupForm />
      </styled.div>
    </styled.div>
  );
}
A simple signup form with social providers.
signup-05
signup-05signup-05