Skip to content

Get Started

Introduction

A component library, a design token system and an agent guide for building Discord-inspired interfaces in React, Vue and plain HTML.

newt/ui is a component library for building Discord-inspired interfaces — bots, dashboards and docs that look like they belong next to the client. Every component ships three times over: as plain HTML and CSS, as a React file, and as a Vue single file component, all reading one set of --newt-* design tokens.

There is no package to install and no runtime to depend on. The CLI copies component source into your project, the same way shadcn/ui does, and stops there.

Root class newt-message-group
import { Avatar } from "@/registry/bases/newt/ui/avatar"
import {
  MessageGroup,
  MessageGroupAuthor,
  MessageGroupAvatar,
  MessageGroupBody,
  MessageGroupBotTag,
  MessageGroupContent,
  MessageGroupEphemeralAction,
  MessageGroupEphemeralNotice,
  MessageGroupHeader,
  MessageGroupReactions,
  MessageGroupReply,
  MessageGroupTime,
} from "@/registry/bases/newt/ui/message-group"
import { Reaction } from "@/registry/bases/newt/ui/reaction"
import {
  ReplyPreview,
  ReplyPreviewAuthor,
  ReplyPreviewText,
} from "@/registry/bases/newt/ui/reply-preview"
import {
  StatusDot,
  StatusIndicator,
} from "@/registry/bases/newt/ui/status-indicator"

export default function MessageGroupDemo() {
  return (
    <div className="flex w-full max-w-md flex-col gap-2">
      <MessageGroup withReply>
        <MessageGroupReply>
          <ReplyPreview>
            <ReplyPreviewAuthor>@someone</ReplyPreviewAuthor>
            <ReplyPreviewText>original message text</ReplyPreviewText>
          </ReplyPreview>
        </MessageGroupReply>
        <MessageGroupAvatar>
          <StatusIndicator>
            <Avatar>U</Avatar>
            <StatusDot status="online" label="Online" />
          </StatusIndicator>
        </MessageGroupAvatar>
        <MessageGroupBody>
          <MessageGroupHeader>
            <MessageGroupAuthor>username</MessageGroupAuthor>
            <MessageGroupBotTag verified />
            <MessageGroupTime dateTime="2026-09-04T14:23:00.000Z">
              Today at 14:23
            </MessageGroupTime>
          </MessageGroupHeader>
          <MessageGroupContent>Message content goes here.</MessageGroupContent>
          <MessageGroupReactions>
            <Reaction emoji="👍" count={1} />
          </MessageGroupReactions>
        </MessageGroupBody>
      </MessageGroup>
      <MessageGroup ephemeral>
        <MessageGroupAvatar>
          <Avatar>B</Avatar>
        </MessageGroupAvatar>
        <MessageGroupBody>
          <MessageGroupHeader>
            <MessageGroupAuthor>botname</MessageGroupAuthor>
            <MessageGroupBotTag>APP</MessageGroupBotTag>
          </MessageGroupHeader>
          <MessageGroupContent>Command ran successfully.</MessageGroupContent>
          <MessageGroupEphemeralNotice>
            Only you can see this •
            <MessageGroupEphemeralAction>
              Dismiss message
            </MessageGroupEphemeralAction>
          </MessageGroupEphemeralNotice>
        </MessageGroupBody>
      </MessageGroup>
    </div>
  )
}
<script setup lang="ts">
import { Avatar } from "~~/registry/bases/newt/ui/avatar"
import {
  MessageGroup,
  MessageGroupAuthor,
  MessageGroupAvatar,
  MessageGroupBody,
  MessageGroupBotTag,
  MessageGroupContent,
  MessageGroupEphemeralAction,
  MessageGroupEphemeralNotice,
  MessageGroupHeader,
  MessageGroupReactions,
  MessageGroupReply,
  MessageGroupTime,
} from "~~/registry/bases/newt/ui/message-group"
import { Reaction } from "~~/registry/bases/newt/ui/reaction"
import {
  ReplyPreview,
  ReplyPreviewAuthor,
  ReplyPreviewText,
} from "~~/registry/bases/newt/ui/reply-preview"
import {
  StatusDot,
  StatusIndicator,
} from "~~/registry/bases/newt/ui/status-indicator"
</script>

<template>
  <div class="flex w-full max-w-md flex-col gap-2">
    <MessageGroup with-reply>
      <MessageGroupReply>
        <ReplyPreview>
          <ReplyPreviewAuthor>@someone</ReplyPreviewAuthor>
          <ReplyPreviewText>original message text</ReplyPreviewText>
        </ReplyPreview>
      </MessageGroupReply>
      <MessageGroupAvatar>
        <StatusIndicator>
          <Avatar>U</Avatar>
          <StatusDot status="online" label="Online" />
        </StatusIndicator>
      </MessageGroupAvatar>
      <MessageGroupBody>
        <MessageGroupHeader>
          <MessageGroupAuthor>username</MessageGroupAuthor>
          <MessageGroupBotTag verified />
          <MessageGroupTime datetime="2026-09-04T14:23:00.000Z">
            Today at 14:23
          </MessageGroupTime>
        </MessageGroupHeader>
        <MessageGroupContent>Message content goes here.</MessageGroupContent>
        <MessageGroupReactions>
          <Reaction emoji="👍" :count="1" />
        </MessageGroupReactions>
      </MessageGroupBody>
    </MessageGroup>
    <MessageGroup ephemeral>
      <MessageGroupAvatar>
        <Avatar>B</Avatar>
      </MessageGroupAvatar>
      <MessageGroupBody>
        <MessageGroupHeader>
          <MessageGroupAuthor>botname</MessageGroupAuthor>
          <MessageGroupBotTag>APP</MessageGroupBotTag>
        </MessageGroupHeader>
        <MessageGroupContent>Command ran successfully.</MessageGroupContent>
        <MessageGroupEphemeralNotice>
          Only you can see this •
          <MessageGroupEphemeralAction>
            Dismiss message
          </MessageGroupEphemeralAction>
        </MessageGroupEphemeralNotice>
      </MessageGroupBody>
    </MessageGroup>
  </div>
</template>

What it is

Four decisions the whole registry is built on. They are why a component here is short enough to read before you paste it.

One token system, three targets

The tokens are declared once and every surface reads them: the plain HTML and CSS build, the React wrappers, and the Vue single file components. Change a token and all three move together.

You own the code

The CLI writes component source into your project and stops there. A component you need to bend is a file you already have, under Apache-2.0.

Motion that can stop

Hover, focus, online, do-not-disturb and loading are carried by colour, border and shape. Transitions use the duration and easing tokens, and they stop when the system asks for reduced motion.

Accessible by construction

Body text meets WCAG AA contrast, every control is reachable by Tab with a visible focus ring, and presence is announced rather than left to colour alone.

Install

One CLI for both frameworks. It reads your project during init, then writes component source into it.

npx newtui@latest initpnpm dlx newtui@latest inityarn dlx newtui@latest initbunx newtui@latest initdeno run -A npm:newtui@latest initvlx newtui@latest initvp dlx newtui@latest initnubx newtui@latest initnlx newtui@latest initupx newtui@latest init

Then add what you need:

npx newtui@latest add button embed member-listnpx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listnpx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listpnpm dlx newtui@latest add button embed member-listpnpm dlx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listpnpm dlx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listyarn dlx newtui@latest add button embed member-listyarn dlx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listyarn dlx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listbunx newtui@latest add button embed member-listbunx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listbunx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listdeno run -A npm:newtui@latest add button embed member-listdeno run -A npm:shadcn@latest add @newtui/button @newtui/embed @newtui/member-listdeno run -A npm:shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listvlx newtui@latest add button embed member-listvlx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listvlx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listvp dlx newtui@latest add button embed member-listvp dlx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listvp dlx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listnubx newtui@latest add button embed member-listnubx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listnubx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listnlx newtui@latest add button embed member-listnlx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listnlx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-listupx newtui@latest add button embed member-listupx shadcn@latest add @newtui/button @newtui/embed @newtui/member-listupx shadcn-vue@latest add @newtui/button @newtui/embed @newtui/member-list

The shadcn CLI needs the @newtui registry in your components.json. Set it up.

Where to go next

Start with the installation guide, which covers both CLIs and the Nuxt module; browse the components, each with a live example, the files it writes and the dependencies it needs; or read how to drive the registry from an agent in Using with AI.

newt/ui is an independent project. It is visually inspired by Discord’s client design but is not affiliated with, endorsed by, or sponsored by Discord Inc.