Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,47 +124,47 @@
--sidebar-ring: oklch(0.556 0 0);
}

.discord-light {
--discord-background: oklch(0.99 0 0);
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}

--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.88 0.0574 270.02);
}
.discord-light {
--discord-background: oklch(0.99 0 0);

.discord-classic {
--discord-background: oklch(0.145 0 0);
--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.88 0.0574 270.02);
}

--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.88 0.0574 270.02);
}
.discord-classic {
--discord-background: oklch(0.145 0 0);

.discord-ash {
--discord-background: oklch(0.32 0.0107 278.25);
--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.88 0.0574 270.02);
}

--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.88 0.0574 270.02);
}
.discord-ash {
--discord-background: oklch(0.32 0.0107 278.25);

.discord-dark {
--discord-background: oklch(0.22 0.0077 285.74);
--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.88 0.0574 270.02);
}

--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.8 0.0969 270.5);
}
.discord-dark {
--discord-background: oklch(0.22 0.0077 285.74);

.discord-onyx {
--discord-background: oklch(0.13 0.005 285.67);
--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.8 0.0969 270.5);
}

--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.39 0.1288 271.41);
}
.discord-onyx {
--discord-background: oklch(0.13 0.005 285.67);

@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
--discord-mention: oklch(0.58 0.2091 273.85 / 23.92%);
--discord-mention-foreground: oklch(0.39 0.1288 271.41);
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "biome lint",
"format": "biome format ./ --write",
"prepare": "husky",
"registry:build": "shadcn build"
"reg:build": "shadcn build"
},
"dependencies": {
"@radix-ui/react-avatar": "^1.1.4",
Expand All @@ -23,7 +23,7 @@
"next-themes": "^0.4.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"shadcn": "2.4.0-canary.12",
"shadcn": "^2.9.0",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"tw-animate-css": "^1.2.5",
Expand Down
1,129 changes: 883 additions & 246 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

36 changes: 0 additions & 36 deletions public/r/complex-component.json

This file was deleted.

64 changes: 64 additions & 0 deletions public/r/discord-base.json

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions public/r/example-form.json

This file was deleted.

15 changes: 0 additions & 15 deletions public/r/hello-world.json

This file was deleted.

91 changes: 47 additions & 44 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,64 @@
"homepage": "https://acme.com",
"items": [
{
"name": "hello-world",
"name": "discord-base",
"type": "registry:component",
"title": "Hello World",
"description": "A simple hello world component",
"registryDependencies": ["button"],
"title": "Discord Base",
"description": "The base components for all Discord components",
"registryDependencies": ["avatar"],
"dependencies": ["class-variance-authority"],
"files": [
{
"path": "registry/new-york/hello-world/hello-world.tsx",
"type": "registry:component"
}
]
},
{
"name": "example-form",
"type": "registry:component",
"title": "Example Form",
"description": "A contact form with Zod validation.",
"dependencies": ["zod"],
"registryDependencies": ["button", "input", "label", "textarea", "card"],
"files": [
{
"path": "registry/new-york/example-form/example-form.tsx",
"type": "registry:component"
}
]
},
{
"name": "complex-component",
"type": "registry:component",
"title": "Complex Component",
"description": "A complex component showing hooks, libs and components.",
"registryDependencies": ["card"],
"files": [
{
"path": "registry/new-york/complex-component/page.tsx",
"type": "registry:page",
"target": "app/pokemon/page.tsx"
},
{
"path": "registry/new-york/complex-component/components/pokemon-card.tsx",
"path": "registry/discord-base/discord-base.tsx",
"type": "registry:component"
},
{
"path": "registry/new-york/complex-component/components/pokemon-image.tsx",
"path": "registry/discord-base/discord-icons.tsx",
"type": "registry:component"
},
{
"path": "registry/new-york/complex-component/lib/pokemon.ts",
"path": "registry/discord-base/lib/date-fns.ts",
"type": "registry:lib"
},
{
"path": "registry/new-york/complex-component/hooks/use-pokemon.ts",
"type": "registry:hook"
}
]
],
"cssVars": {
"light": {
"discord-background": "oklch(0.32 0.0107 278.25)",
"discord-mention": "oklch(0.58 0.2091 273.85 / 23.92%)",
"discord-mention-foreground": "oklch(0.88 0.0574 270.02)",
"discord-mention-hover": "oklch(0.58 0.2093 273.55)",
"discord-mention-foreground-hover": "oklch(1 0 0)"
}
},
"css": {
"@layer base": {
".discord-light": {
"--discord-background": "oklch(0.99 0 0)",
"--discord-mention": "oklch(0.58 0.2091 273.85 / 23.92%)",
"--discord-mention-foreground": "oklch(0.88 0.0574 270.02)"
},
".discord-classic": {
"--discord-background": "oklch(0.145 0 0)",
"--discord-mention": "oklch(0.58 0.2091 273.85 / 23.92%)",
"--discord-mention-foreground": "oklch(0.88 0.0574 270.02)"
},
".discord-ash": {
"--discord-background": "oklch(0.32 0.0107 278.25)",
"--discord-mention": "oklch(0.58 0.2091 273.85 / 23.92%)",
"--discord-mention-foreground": "oklch(0.88 0.0574 270.02)"
},
".discord-dark": {
"--discord-background": "oklch(0.22 0.0077 285.74)",
"--discord-mention": "oklch(0.58 0.2091 273.85 / 23.92%)",
"--discord-mention-foreground": "oklch(0.8 0.0969 270.5)"
},
".discord-onyx": {
"--discord-background": "oklch(0.13 0.005 285.67)",
"--discord-mention": "oklch(0.58 0.2091 273.85 / 23.92%)",
"--discord-mention-foreground": "oklch(0.39 0.1288 271.41)"
}
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Avatar, AvatarFallback } from "@/components/ui/avatar";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { cn } from "@/lib/utils";
import { AvatarImage } from "@radix-ui/react-avatar";
import { cva, type VariantProps } from "class-variance-authority";
import type * as React from "react";
import { formatDate } from "./lib/utils";
import { formatDate } from "./lib/date-fns";
import Icons from "./discord-icons";

const chatVariants = cva(
Expand Down