Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

feat: Migrate to shadcn cli and update dependencies (#337)

Dillion Verma7b591e3ccc79
diff --git a/.eslintrc.json b/.eslintrc.json
index ad44f91a..570d3c6e 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -4,33 +4,18 @@
"extends": [
"next/core-web-vitals",
"prettier",
- "plugin:@next/next/recommended",
"plugin:tailwindcss/recommended"
],
"plugins": ["tailwindcss"],
"rules": {
- "tailwindcss/no-contradicting-classname":"off",
- "react/no-unescaped-entities": "off",
- "@next/next/no-page-custom-font": "off",
"@next/next/no-html-link-for-pages": "off",
"tailwindcss/no-custom-classname": "off",
- "tailwindcss/classnames-order": "off",
- "no-multiple-empty-lines": [
- "error",
- {
- "max": 1
- }
- ],
- "semi": "error",
- "no-var": "error"
- // "react/display-name": [false, {
- // "ignoreTranspilerName": false, "checkContextObjects": false
- // }]
+ "tailwindcss/classnames-order": "error"
},
"settings": {
"tailwindcss": {
"callees": ["cn", "cva"],
- "config": "tailwind.config.ts"
+ "config": "tailwind.config.cjs"
},
"next": {
"rootDir": ["app/*/"]
diff --git a/.gitignore b/.gitignore
index 87a28d11..04cd9496 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,5 +40,3 @@ yarn-error.log*
next-env.d.ts
.contentlayer
-.react-email
-.turbo
diff --git a/.prettier.config.cjs b/.prettier.config.cjs
new file mode 100644
index 00000000..e45cf24f
--- /dev/null
+++ b/.prettier.config.cjs
@@ -0,0 +1,33 @@
+/** @type {import('prettier').Config} */
+module.exports = {
+ endOfLine: "lf",
+ semi: false,
+ singleQuote: false,
+ tabWidth: 2,
+ trailingComma: "es5",
+ importOrder: [
+ "^(react/(.*)$)|^(react$)",
+ "^(next/(.*)$)|^(next$)",
+ "<THIRD_PARTY_MODULES>",
+ "",
+ "^types$",
+ "^@/types/(.*)$",
+ "^@/config/(.*)$",
+ "^@/lib/(.*)$",
+ "^@/hooks/(.*)$",
+ "^@/components/ui/(.*)$",
+ "^@/components/(.*)$",
+ "^@/registry/(.*)$",
+ "^@/styles/(.*)$",
+ "^@/app/(.*)$",
+ "",
+ "^[./]",
+ ],
+ importOrderSeparation: false,
+ importOrderSortSpecifiers: true,
+ importOrderBuiltinModulesToTop: true,
+ importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
+ importOrderMergeDuplicateImports: true,
+ importOrderCombineTypeAndValueImports: true,
+ plugins: ["@ianvs/prettier-plugin-sort-imports"],
+};
diff --git a/.prettierrc b/.prettierrc
deleted file mode 100644
index 48b1ca43..00000000
--- a/.prettierrc
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "bracketSpacing": true,
- "semi": true,
- "trailingComma": "all",
- "printWidth": 80,
- "tabWidth": 2,
- "endOfLine": "lf",
- "singleQuote": false,
- "importOrder": [
- "^(react/(.*)$)|^(react$)",
- "^(next/(.*)$)|^(next$)",
- "<THIRD_PARTY_MODULES>",
- "",
- "^types$",
- "^@/types/(.*)$",
- "^@/config/(.*)$",
- "^@/lib/(.*)$",
- "^@/hooks/(.*)$",
- "^@/components/ui/(.*)$",
- "^@/components/(.*)$",
- "^@/registry/(.*)$",
- "^@/styles/(.*)$",
- "^@/app/(.*)$",
- "",
- "^[./]"
- ],
- "plugins": [
- "prettier-plugin-tailwindcss",
- "@ianvs/prettier-plugin-sort-imports"
- ]
-}
\ No newline at end of file
diff --git a/__registry__/index.tsx b/__registry__/index.tsx
new file mode 100644
index 00000000..a5b6fe5f
--- /dev/null
+++ b/__registry__/index.tsx
@@ -0,0 +1,1828 @@
+// @ts-nocheck
+// This file is autogenerated by scripts/build-registry.ts
+// Do not edit this file directly.
+import * as React from "react";
+
+export const Index: Record<string, any> = {
+ default: {
+ "magic-card": {
+ name: "magic-card",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/magic-card.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/magic-card.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "neon-gradient-card": {
+ name: "neon-gradient-card",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/neon-gradient-card.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/neon-gradient-card.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ meteors: {
+ name: "meteors",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/meteors.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/meteors.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "grid-pattern": {
+ name: "grid-pattern",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/grid-pattern.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/grid-pattern.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "dot-pattern": {
+ name: "dot-pattern",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/dot-pattern.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/dot-pattern.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "flickering-grid": {
+ name: "flickering-grid",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/flickering-grid.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/flickering-grid.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "hero-video-dialog": {
+ name: "hero-video-dialog",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/hero-video-dialog.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/hero-video-dialog.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ marquee: {
+ name: "marquee",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/marquee.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/marquee.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ globe: {
+ name: "globe",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/globe.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/globe.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "shimmer-button": {
+ name: "shimmer-button",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/shimmer-button.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/shimmer-button.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "tweet-card": {
+ name: "tweet-card",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/tweet-card.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/tweet-card.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "client-tweet-card": {
+ name: "client-tweet-card",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/client-tweet-card.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/client-tweet-card.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "bento-grid": {
+ name: "bento-grid",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/bento-grid.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/bento-grid.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ particles: {
+ name: "particles",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/particles.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/particles.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "number-ticker": {
+ name: "number-ticker",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/number-ticker.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/number-ticker.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ ripple: {
+ name: "ripple",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/ripple.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/ripple.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "retro-grid": {
+ name: "retro-grid",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/retro-grid.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/retro-grid.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-list": {
+ name: "animated-list",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/animated-list.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/animated-list.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-shiny-text": {
+ name: "animated-shiny-text",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/animated-shiny-text.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/animated-shiny-text.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-grid-pattern": {
+ name: "animated-grid-pattern",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/animated-grid-pattern.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/animated-grid-pattern.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "border-beam": {
+ name: "border-beam",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/border-beam.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/border-beam.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-beam": {
+ name: "animated-beam",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/animated-beam.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/animated-beam.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "text-reveal": {
+ name: "text-reveal",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/text-reveal.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/text-reveal.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "hyper-text": {
+ name: "hyper-text",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/hyper-text.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/hyper-text.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-gradient-text": {
+ name: "animated-gradient-text",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/animated-gradient-text.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/animated-gradient-text.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "orbiting-circles": {
+ name: "orbiting-circles",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/orbiting-circles.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/orbiting-circles.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ dock: {
+ name: "dock",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/dock.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/dock.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "word-rotate": {
+ name: "word-rotate",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/word-rotate.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/word-rotate.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "avatar-circles": {
+ name: "avatar-circles",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/avatar-circles.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/avatar-circles.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "word-pull-up": {
+ name: "word-pull-up",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/word-pull-up.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/word-pull-up.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "typing-animation": {
+ name: "typing-animation",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/typing-animation.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/typing-animation.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "blur-in": {
+ name: "blur-in",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/blur-in.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/blur-in.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "letter-pullup": {
+ name: "letter-pullup",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/letter-pullup.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/letter-pullup.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "sparkles-text": {
+ name: "sparkles-text",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/sparkles-text.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/sparkles-text.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "flip-text": {
+ name: "flip-text",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/flip-text.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/flip-text.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "icon-cloud": {
+ name: "icon-cloud",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/icon-cloud.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/icon-cloud.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "gradual-spacing": {
+ name: "gradual-spacing",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/gradual-spacing.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/gradual-spacing.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "word-fade-in": {
+ name: "word-fade-in",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/word-fade-in.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/word-fade-in.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "scroll-based-velocity": {
+ name: "scroll-based-velocity",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/scroll-based-velocity.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/scroll-based-velocity.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "fade-text": {
+ name: "fade-text",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/fade-text.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/fade-text.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "shiny-button": {
+ name: "shiny-button",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/shiny-button.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/shiny-button.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "box-reveal": {
+ name: "box-reveal",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/box-reveal.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/box-reveal.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "shine-border": {
+ name: "shine-border",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/shine-border.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/shine-border.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-circular-progress-bar": {
+ name: "animated-circular-progress-bar",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/animated-circular-progress-bar.tsx"],
+ component: React.lazy(
+ () =>
+ import(
+ "@/registry/default/magicui/animated-circular-progress-bar.tsx"
+ ),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ confetti: {
+ name: "confetti",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/confetti.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/confetti.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-subscribe-button": {
+ name: "animated-subscribe-button",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/animated-subscribe-button.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/magicui/animated-subscribe-button.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "cool-mode": {
+ name: "cool-mode",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/cool-mode.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/cool-mode.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "pulsating-button": {
+ name: "pulsating-button",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/pulsating-button.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/pulsating-button.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "file-tree": {
+ name: "file-tree",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/file-tree.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/file-tree.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "blur-fade": {
+ name: "blur-fade",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/blur-fade.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/blur-fade.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ safari: {
+ name: "safari",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/safari.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/safari.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "iphone-15-pro": {
+ name: "iphone-15-pro",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/iphone-15-pro.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/iphone-15-pro.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "rainbow-button": {
+ name: "rainbow-button",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: ["registry/default/magicui/rainbow-button.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/magicui/rainbow-button.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "magic-card-demo": {
+ name: "magic-card-demo",
+ type: "registry:example",
+ registryDependencies: ["magic-card"],
+ files: ["registry/default/example/magic-card-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/magic-card-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "neon-gradient-card-demo": {
+ name: "neon-gradient-card-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/neon-gradient-card-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/neon-gradient-card-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "meteors-demo": {
+ name: "meteors-demo",
+ type: "registry:example",
+ registryDependencies: ["meteors"],
+ files: ["registry/default/example/meteors-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/meteors-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "grid-pattern-demo": {
+ name: "grid-pattern-demo",
+ type: "registry:example",
+ registryDependencies: ["grid-pattern"],
+ files: ["registry/default/example/grid-pattern-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/grid-pattern-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "grid-pattern-linear-gradient": {
+ name: "grid-pattern-linear-gradient",
+ type: "registry:example",
+ registryDependencies: ["grid-pattern"],
+ files: ["registry/default/example/grid-pattern-linear-gradient.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/grid-pattern-linear-gradient.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "grid-pattern-dashed": {
+ name: "grid-pattern-dashed",
+ type: "registry:example",
+ registryDependencies: ["grid-pattern"],
+ files: ["registry/default/example/grid-pattern-dashed.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/grid-pattern-dashed.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "dot-pattern-demo": {
+ name: "dot-pattern-demo",
+ type: "registry:example",
+ registryDependencies: ["dot-pattern"],
+ files: ["registry/default/example/dot-pattern-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/dot-pattern-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "dot-pattern-linear-gradient": {
+ name: "dot-pattern-linear-gradient",
+ type: "registry:example",
+ registryDependencies: ["dot-pattern"],
+ files: ["registry/default/example/dot-pattern-linear-gradient.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/dot-pattern-linear-gradient.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "flickering-grid-demo": {
+ name: "flickering-grid-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/flickering-grid-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/flickering-grid-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "flickering-grid-rounded-demo": {
+ name: "flickering-grid-rounded-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/flickering-grid-rounded-demo.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/flickering-grid-rounded-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "hero-video-dialog-demo": {
+ name: "hero-video-dialog-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/hero-video-dialog-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/hero-video-dialog-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "hero-video-dialog-demo-top-in-bottom-out": {
+ name: "hero-video-dialog-demo-top-in-bottom-out",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: [
+ "registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx",
+ ],
+ component: React.lazy(
+ () =>
+ import(
+ "@/registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx"
+ ),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "marquee-demo": {
+ name: "marquee-demo",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["registry/default/example/marquee-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/marquee-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "marquee-demo-vertical": {
+ name: "marquee-demo-vertical",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["registry/default/example/marquee-demo-vertical.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/marquee-demo-vertical.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "marquee-logos": {
+ name: "marquee-logos",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["registry/default/example/marquee-logos.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/marquee-logos.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "marquee-3d": {
+ name: "marquee-3d",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["registry/default/example/marquee-3d.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/marquee-3d.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "globe-demo": {
+ name: "globe-demo",
+ type: "registry:example",
+ registryDependencies: ["globe"],
+ files: ["registry/default/example/globe-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/globe-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "tweet-card-demo": {
+ name: "tweet-card-demo",
+ type: "registry:example",
+ registryDependencies: ["tweet-card"],
+ files: ["registry/default/example/tweet-card-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/tweet-card-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "tweet-card-images": {
+ name: "tweet-card-images",
+ type: "registry:example",
+ registryDependencies: ["tweet-card"],
+ files: ["registry/default/example/tweet-card-images.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/tweet-card-images.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "tweet-card-meta-preview": {
+ name: "tweet-card-meta-preview",
+ type: "registry:example",
+ registryDependencies: ["tweet-card"],
+ files: ["registry/default/example/tweet-card-meta-preview.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/tweet-card-meta-preview.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "shimmer-button-demo": {
+ name: "shimmer-button-demo",
+ type: "registry:example",
+ registryDependencies: ["shimmer-button"],
+ files: ["registry/default/example/shimmer-button-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/shimmer-button-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "bento-demo": {
+ name: "bento-demo",
+ type: "registry:example",
+ registryDependencies: [
+ "bento-grid",
+ "marquee",
+ "animated-list-demo",
+ "animated-beam-multiple-outputs",
+ "shadcn:command",
+ "shadcn:calendar",
+ ],
+ files: ["registry/default/example/bento-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/bento-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "bento-demo-vertical": {
+ name: "bento-demo-vertical",
+ type: "registry:example",
+ registryDependencies: ["bento-grid"],
+ files: ["registry/default/example/bento-demo-vertical.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/bento-demo-vertical.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "number-ticker-demo": {
+ name: "number-ticker-demo",
+ type: "registry:example",
+ registryDependencies: ["number-ticker"],
+ files: ["registry/default/example/number-ticker-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/number-ticker-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "number-ticker-decimal-demo": {
+ name: "number-ticker-decimal-demo",
+ type: "registry:example",
+ registryDependencies: ["number-ticker"],
+ files: ["registry/default/example/number-ticker-decimal-demo.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/number-ticker-decimal-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "ripple-demo": {
+ name: "ripple-demo",
+ type: "registry:example",
+ registryDependencies: ["ripple"],
+ files: ["registry/default/example/ripple-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/ripple-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "retro-grid-demo": {
+ name: "retro-grid-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/retro-grid-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/retro-grid-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-list-demo": {
+ name: "animated-list-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-list"],
+ files: ["registry/default/example/animated-list-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/animated-list-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-shiny-text-demo": {
+ name: "animated-shiny-text-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-shiny-text"],
+ files: ["registry/default/example/animated-shiny-text-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/animated-shiny-text-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "particles-demo": {
+ name: "particles-demo",
+ type: "registry:example",
+ registryDependencies: ["particles"],
+ files: ["registry/default/example/particles-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/particles-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-grid-pattern-demo": {
+ name: "animated-grid-pattern-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-grid-pattern"],
+ files: ["registry/default/example/animated-grid-pattern-demo.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/animated-grid-pattern-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "border-beam-demo": {
+ name: "border-beam-demo",
+ type: "registry:example",
+ registryDependencies: ["border-beam"],
+ files: ["registry/default/example/border-beam-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/border-beam-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-beam-demo": {
+ name: "animated-beam-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["registry/default/example/animated-beam-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/animated-beam-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-beam-unidirectional": {
+ name: "animated-beam-unidirectional",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["registry/default/example/animated-beam-unidirectional.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/animated-beam-unidirectional.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-beam-bidirectional": {
+ name: "animated-beam-bidirectional",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["registry/default/example/animated-beam-bidirectional.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/animated-beam-bidirectional.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-beam-multiple-inputs": {
+ name: "animated-beam-multiple-inputs",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["registry/default/example/animated-beam-multiple-inputs.tsx"],
+ component: React.lazy(
+ () =>
+ import(
+ "@/registry/default/example/animated-beam-multiple-inputs.tsx"
+ ),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-beam-multiple-outputs": {
+ name: "animated-beam-multiple-outputs",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["registry/default/example/animated-beam-multiple-outputs.tsx"],
+ component: React.lazy(
+ () =>
+ import(
+ "@/registry/default/example/animated-beam-multiple-outputs.tsx"
+ ),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "text-reveal-demo": {
+ name: "text-reveal-demo",
+ type: "registry:example",
+ registryDependencies: ["text-reveal"],
+ files: ["registry/default/example/text-reveal-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/text-reveal-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-gradient-text-demo": {
+ name: "animated-gradient-text-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-gradient-text"],
+ files: ["registry/default/example/animated-gradient-text-demo.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/animated-gradient-text-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "orbiting-circles-demo": {
+ name: "orbiting-circles-demo",
+ type: "registry:example",
+ registryDependencies: ["orbiting-circles"],
+ files: ["registry/default/example/orbiting-circles-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/orbiting-circles-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "dock-demo": {
+ name: "dock-demo",
+ type: "registry:example",
+ registryDependencies: ["dock"],
+ files: ["registry/default/example/dock-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/dock-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "dock-demo-2": {
+ name: "dock-demo-2",
+ type: "registry:example",
+ registryDependencies: ["dock"],
+ files: ["registry/default/example/dock-demo-2.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/dock-demo-2.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "dock-demo-3": {
+ name: "dock-demo-3",
+ type: "registry:example",
+ registryDependencies: ["dock"],
+ files: ["registry/default/example/dock-demo-3.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/dock-demo-3.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "word-rotate-demo": {
+ name: "word-rotate-demo",
+ type: "registry:example",
+ registryDependencies: ["word-rotate"],
+ files: ["registry/default/example/word-rotate-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/word-rotate-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "hyper-text-demo": {
+ name: "hyper-text-demo",
+ type: "registry:example",
+ registryDependencies: ["hyper-text"],
+ files: ["registry/default/example/hyper-text-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/hyper-text-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "avatar-circles-demo": {
+ name: "avatar-circles-demo",
+ type: "registry:example",
+ registryDependencies: ["avatar-circles"],
+ files: ["registry/default/example/avatar-circles-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/avatar-circles-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "word-pull-up-demo": {
+ name: "word-pull-up-demo",
+ type: "registry:example",
+ registryDependencies: ["word-pull-up"],
+ files: ["registry/default/example/word-pull-up-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/word-pull-up-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "typing-animation-demo": {
+ name: "typing-animation-demo",
+ type: "registry:example",
+ registryDependencies: ["typing-animation"],
+ files: ["registry/default/example/typing-animation-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/typing-animation-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "blur-in-demo": {
+ name: "blur-in-demo",
+ type: "registry:example",
+ registryDependencies: ["blur-in"],
+ files: ["registry/default/example/blur-in-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/blur-in-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "scroll-based-velocity-demo": {
+ name: "scroll-based-velocity-demo",
+ type: "registry:example",
+ registryDependencies: ["scroll-based-velocity"],
+ files: ["registry/default/example/scroll-based-velocity-demo.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/scroll-based-velocity-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "letter-pullup-demo": {
+ name: "letter-pullup-demo",
+ type: "registry:example",
+ registryDependencies: ["letter-pullup"],
+ files: ["registry/default/example/letter-pullup-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/letter-pullup-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "flip-text-demo": {
+ name: "flip-text-demo",
+ type: "registry:example",
+ registryDependencies: ["flip-text"],
+ files: ["registry/default/example/flip-text-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/flip-text-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "sparkles-text-demo": {
+ name: "sparkles-text-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/sparkles-text-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/sparkles-text-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "icon-cloud-demo": {
+ name: "icon-cloud-demo",
+ type: "registry:example",
+ registryDependencies: ["icon-cloud"],
+ files: ["registry/default/example/icon-cloud-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/icon-cloud-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "wavy-dot-pattern-demo": {
+ name: "wavy-dot-pattern-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/wavy-dot-pattern-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/wavy-dot-pattern-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "gradual-spacing-demo": {
+ name: "gradual-spacing-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/gradual-spacing-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/gradual-spacing-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "word-fade-in-demo": {
+ name: "word-fade-in-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/word-fade-in-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/word-fade-in-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "fade-text-demo": {
+ name: "fade-text-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/fade-text-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/fade-text-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "shiny-button-demo": {
+ name: "shiny-button-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/shiny-button-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/shiny-button-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "box-reveal-demo": {
+ name: "box-reveal-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/box-reveal-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/box-reveal-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-circular-progress-bar-demo": {
+ name: "animated-circular-progress-bar-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: [
+ "registry/default/example/animated-circular-progress-bar-demo.tsx",
+ ],
+ component: React.lazy(
+ () =>
+ import(
+ "@/registry/default/example/animated-circular-progress-bar-demo.tsx"
+ ),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "shine-border-demo": {
+ name: "shine-border-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/shine-border-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/shine-border-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "shine-border-demo-2": {
+ name: "shine-border-demo-2",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/shine-border-demo-2.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/shine-border-demo-2.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-demo": {
+ name: "confetti-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/confetti-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-basic-cannon": {
+ name: "confetti-basic-cannon",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-basic-cannon.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/confetti-basic-cannon.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-random-direction": {
+ name: "confetti-random-direction",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-random-direction.tsx"],
+ component: React.lazy(
+ () =>
+ import("@/registry/default/example/confetti-random-direction.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-fireworks": {
+ name: "confetti-fireworks",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-fireworks.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/confetti-fireworks.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-stars": {
+ name: "confetti-stars",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-stars.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/confetti-stars.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-side-cannons": {
+ name: "confetti-side-cannons",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-side-cannons.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/confetti-side-cannons.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-custom-shapes": {
+ name: "confetti-custom-shapes",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-custom-shapes.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/confetti-custom-shapes.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "confetti-emoji": {
+ name: "confetti-emoji",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/confetti-emoji.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/confetti-emoji.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "animated-subscribe-button-demo": {
+ name: "animated-subscribe-button-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/animated-subscribe-button-demo.tsx"],
+ component: React.lazy(
+ () =>
+ import(
+ "@/registry/default/example/animated-subscribe-button-demo.tsx"
+ ),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "cool-mode-demo": {
+ name: "cool-mode-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/cool-mode-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/cool-mode-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "cool-mode-custom": {
+ name: "cool-mode-custom",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/cool-mode-custom.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/cool-mode-custom.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "pulsating-button-demo": {
+ name: "pulsating-button-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/pulsating-button-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/pulsating-button-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "file-tree-demo": {
+ name: "file-tree-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/file-tree-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/file-tree-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "blur-fade-demo": {
+ name: "blur-fade-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/blur-fade-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/blur-fade-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "blur-fade-text-demo": {
+ name: "blur-fade-text-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/blur-fade-text-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/blur-fade-text-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "safari-demo": {
+ name: "safari-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/safari-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/safari-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "safari-demo-2": {
+ name: "safari-demo-2",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/safari-demo-2.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/safari-demo-2.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "iphone-15-pro-demo": {
+ name: "iphone-15-pro-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/iphone-15-pro-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/iphone-15-pro-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "iphone-15-pro-demo-2": {
+ name: "iphone-15-pro-demo-2",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/iphone-15-pro-demo-2.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/iphone-15-pro-demo-2.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ "rainbow-button-demo": {
+ name: "rainbow-button-demo",
+ type: "registry:example",
+ registryDependencies: undefined,
+ files: ["registry/default/example/rainbow-button-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/default/example/rainbow-button-demo.tsx"),
+ ),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ utils: {
+ name: "utils",
+ type: "registry:lib",
+ registryDependencies: undefined,
+ files: ["registry/default/lib/utils.ts"],
+ component: React.lazy(() => import("@/registry/default/lib/utils.ts")),
+ source: "",
+ category: "undefined",
+ subcategory: "undefined",
+ chunks: [],
+ },
+ },
+};
diff --git a/app/(docs)/docs/[[...slug]]/page.tsx b/app/(docs)/docs/[[...slug]]/page.tsx
index 6b4e54cc..5ec3fe87 100644
--- a/app/(docs)/docs/[[...slug]]/page.tsx
+++ b/app/(docs)/docs/[[...slug]]/page.tsx
@@ -144,7 +144,7 @@ export default async function DocPage({ params }: DocPageProps) {
<div className="hidden text-sm xl:block">
<div className="sticky top-16 -mt-10 pt-4">
<ScrollArea className="pb-10">
- <div className="space-y-4 sticky top-16 -mt-10 h-[calc(100vh-3.5rem)] py-12">
+ <div className="sticky top-16 -mt-10 h-[calc(100vh-3.5rem)] space-y-4 py-12">
<TableOfContents toc={toc} />
<Contribute doc={doc} />
</div>
diff --git a/app/(marketing)/showcase/[...slug]/page.tsx b/app/(marketing)/showcase/[...slug]/page.tsx
index 0cecc6d6..1dd97ca3 100644
--- a/app/(marketing)/showcase/[...slug]/page.tsx
+++ b/app/(marketing)/showcase/[...slug]/page.tsx
@@ -80,7 +80,7 @@ export default async function PagePage({ params }: PageProps) {
}
return (
- <article className="container py-14 max-w-2xl">
+ <article className="container max-w-2xl py-14">
<h2 className="mb-4 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">
{page.title}
</h2>
diff --git a/app/(marketing)/showcase/page.tsx b/app/(marketing)/showcase/page.tsx
index 6149af61..6438311e 100644
--- a/app/(marketing)/showcase/page.tsx
+++ b/app/(marketing)/showcase/page.tsx
@@ -1,11 +1,11 @@
import { allShowcases } from "contentlayer/generated";
import { ShowcaseCard } from "@/components/sections/showcase";
-import BlurFade from "@/registry/components/magicui/blur-fade";
+import BlurFade from "@/registry/default/magicui/blur-fade";
export default async function Page() {
return (
- <article className="container py-14 max-w-[120ch]">
+ <article className="container max-w-[120ch] py-14">
<h2 className="mb-2 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">
Showcase
</h2>
diff --git a/components/callout.tsx b/components/callout.tsx
new file mode 100644
index 00000000..8bb10752
--- /dev/null
+++ b/components/callout.tsx
@@ -0,0 +1,17 @@
+import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
+
+interface CalloutProps {
+ icon?: string;
+ title?: string;
+ children?: React.ReactNode;
+}
+
+export function Callout({ title, children, icon, ...props }: CalloutProps) {
+ return (
+ <Alert {...props}>
+ {icon && <span className="mr-4 text-2xl">{icon}</span>}
+ {title && <AlertTitle>{title}</AlertTitle>}
+ <AlertDescription>{children}</AlertDescription>
+ </Alert>
+ );
+}
diff --git a/components/component-installation.tsx b/components/component-installation.tsx
deleted file mode 100644
index d58f7a3b..00000000
--- a/components/component-installation.tsx
+++ /dev/null
@@ -1,113 +0,0 @@
-"use client";
-
-import * as React from "react";
-
-const frameworks = [
- {
- name: "Next.js",
- href: "/docs/installation/nextjs",
- icon: (
- <svg
- role="img"
- viewBox="0 0 256 256"
- xmlns="http://www.w3.org/2000/svg"
- className="size-10"
- fill="currentColor"
- >
- <title>NextJs</title>
- <path d="M119.616813,0.0688905149 C119.066276,0.118932037 117.314565,0.294077364 115.738025,0.419181169 C79.3775171,3.69690087 45.3192571,23.3131775 23.7481916,53.4631946 C11.7364614,70.2271045 4.05395894,89.2428829 1.15112414,109.384595 C0.12512219,116.415429 0,118.492153 0,128.025062 C0,137.557972 0.12512219,139.634696 1.15112414,146.665529 C8.10791789,194.730411 42.3163245,235.11392 88.7116325,250.076335 C97.0197458,252.753556 105.778299,254.580072 115.738025,255.680985 C119.616813,256.106338 136.383187,256.106338 140.261975,255.680985 C157.453763,253.779407 172.017986,249.525878 186.382014,242.194795 C188.584164,241.068861 189.00958,240.768612 188.709286,240.518404 C188.509091,240.36828 179.124927,227.782837 167.86393,212.570214 L147.393939,184.922273 L121.743891,146.965779 C107.630108,126.098464 96.0187683,109.034305 95.9186706,109.034305 C95.8185728,109.009284 95.7184751,125.873277 95.6684262,146.465363 C95.5933529,182.52028 95.5683284,183.971484 95.1178886,184.82219 C94.4672532,186.048207 93.9667644,186.548623 92.915738,187.099079 C92.114956,187.499411 91.4142717,187.574474 87.6355816,187.574474 L83.3063539,187.574474 L82.1552297,186.848872 C81.4044966,186.373477 80.8539589,185.747958 80.4785924,185.022356 L79.9530792,183.896422 L80.0031281,133.729796 L80.0782014,83.5381493 L80.8539589,82.5623397 C81.25435,82.0369037 82.1051808,81.3613431 82.7057674,81.0360732 C83.7317693,80.535658 84.1321603,80.4856165 88.4613881,80.4856165 C93.5663734,80.4856165 94.4172043,80.6857826 95.7434995,82.1369867 C96.1188661,82.5373189 110.007429,103.454675 126.623656,128.650581 C143.239883,153.846488 165.962072,188.250034 177.122972,205.139048 L197.392766,235.839522 L198.418768,235.163961 C207.502639,229.259062 217.112023,220.852086 224.719453,212.09482 C240.910264,193.504394 251.345455,170.835585 254.848876,146.665529 C255.874878,139.634696 256,137.557972 256,128.025062 C256,118.492153 255.874878,116.415429 254.848876,109.384595 C247.892082,61.3197135 213.683675,20.9362052 167.288368,5.97379012 C159.105376,3.32158945 150.396872,1.49507389 140.637341,0.394160408 C138.234995,0.143952798 121.693842,-0.131275573 119.616813,0.0688905149 L119.616813,0.0688905149 Z M172.017986,77.4831252 C173.219159,78.0836234 174.195112,79.2345784 174.545455,80.435575 C174.74565,81.0861148 174.795699,94.9976579 174.74565,126.348671 L174.670577,171.336 L166.73783,159.17591 L158.780059,147.01582 L158.780059,114.313685 C158.780059,93.1711423 158.880156,81.2862808 159.030303,80.7108033 C159.430694,79.3096407 160.306549,78.2087272 161.507722,77.5581875 C162.533724,77.0327515 162.909091,76.98271 166.837928,76.98271 C170.541544,76.98271 171.19218,77.0327515 172.017986,77.4831252 Z"></path>
- </svg>
- ),
- },
- {
- name: "React.js",
- href: "/docs/installation/react",
- icon: (
- <svg
- role="img"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- className="size-10"
- fill="currentColor"
- >
- <title>React.js</title>
- <path d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"></path>
- </svg>
- ),
- },
- {
- name: "Astro",
- href: "/docs/installation/astro",
- icon: (
- <svg
- role="img"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- className="size-10"
- fill="currentColor"
- >
- <title>Astro</title>
- <path
- d="M16.074 16.86C15.354 17.476 13.917 17.895 12.262 17.895C10.23 17.895 8.527 17.263 8.075 16.412C7.914 16.9 7.877 17.458 7.877 17.814C7.877 17.814 7.771 19.564 8.988 20.782C8.988 20.15 9.501 19.637 10.133 19.637C11.216 19.637 11.215 20.582 11.214 21.349V21.418C11.214 22.582 11.925 23.579 12.937 24C12.7812 23.6794 12.7005 23.3275 12.701 22.971C12.701 21.861 13.353 21.448 14.111 20.968C14.713 20.585 15.383 20.161 15.844 19.308C16.0926 18.8493 16.2225 18.3357 16.222 17.814C16.2221 17.4903 16.1722 17.1685 16.074 16.86ZM15.551 0.6C15.747 0.844 15.847 1.172 16.047 1.829L20.415 16.176C18.7743 15.3246 17.0134 14.7284 15.193 14.408L12.35 4.8C12.3273 4.72337 12.2803 4.65616 12.2162 4.60844C12.152 4.56072 12.0742 4.53505 11.9943 4.53528C11.9143 4.5355 11.8366 4.56161 11.7727 4.60969C11.7089 4.65777 11.6623 4.72524 11.64 4.802L8.83 14.405C7.00149 14.724 5.23264 15.3213 3.585 16.176L7.974 1.827C8.174 1.171 8.274 0.843 8.471 0.6C8.64406 0.385433 8.86922 0.218799 9.125 0.116C9.415 0 9.757 0 10.443 0H13.578C14.264 0 14.608 0 14.898 0.117C15.1529 0.219851 15.3783 0.386105 15.551 0.6Z"
- fill="currentColor"
- ></path>
- </svg>
- ),
- },
- {
- name: "Vite",
- href: "/docs/installation/vite",
- icon: (
- <svg
- role="img"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- className="size-10"
- fill="currentColor"
- >
- <title>Vite</title>
- <path d="m8.286 10.578.512-8.657a.306.306 0 0 1 .247-.282L17.377.006a.306.306 0 0 1 .353.385l-1.558 5.403a.306.306 0 0 0 .352.385l2.388-.46a.306.306 0 0 1 .332.438l-6.79 13.55-.123.19a.294.294 0 0 1-.252.14c-.177 0-.35-.152-.305-.369l1.095-5.301a.306.306 0 0 0-.388-.355l-1.433.435a.306.306 0 0 1-.389-.354l.69-3.375a.306.306 0 0 0-.37-.36l-2.32.536a.306.306 0 0 1-.374-.316zm14.976-7.926L17.284 3.74l-.544 1.887 2.077-.4a.8.8 0 0 1 .84.369.8.8 0 0 1 .034.783L12.9 19.93l-.013.025-.015.023-.122.19a.801.801 0 0 1-.672.37.826.826 0 0 1-.634-.302.8.8 0 0 1-.16-.67l1.029-4.981-1.12.34a.81.81 0 0 1-.86-.262.802.802 0 0 1-.165-.67l.63-3.08-2.027.468a.808.808 0 0 1-.768-.233.81.81 0 0 1-.217-.6l.389-6.57-7.44-1.33a.612.612 0 0 0-.64.906L11.58 23.691a.612.612 0 0 0 1.066-.004l11.26-20.135a.612.612 0 0 0-.644-.9z"></path>
- </svg>
- ),
- },
- {
- name: "Remix",
- href: "/docs/installation/remix",
- icon: (
- <svg
- role="img"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- className="size-10"
- fill="currentColor"
- >
- <title>Remix</title>
- <path d="M21.511 18.508c.216 2.773.216 4.073.216 5.492H15.31c0-.309.006-.592.011-.878.018-.892.036-1.821-.109-3.698-.19-2.747-1.374-3.358-3.55-3.358H1.574v-5h10.396c2.748 0 4.122-.835 4.122-3.049 0-1.946-1.374-3.125-4.122-3.125H1.573V0h11.541c6.221 0 9.313 2.938 9.313 7.632 0 3.511-2.176 5.8-5.114 6.182 2.48.497 3.93 1.909 4.198 4.694ZM1.573 24v-3.727h6.784c1.133 0 1.379.84 1.379 1.342V24Z"></path>
- </svg>
- ),
- },
-];
-
-interface ComponentInstallationProps
- extends React.HTMLAttributes<HTMLDivElement> {}
-
-export function ComponentInstallation({
- children,
- className,
- ...props
-}: ComponentInstallationProps) {
- return (
- <div className="mt-8 grid gap-4 sm:grid-cols-2 sm:gap-6" {...props}>
- {frameworks.map((framework) => (
- <a
- key={framework.name}
- className="flex w-full flex-col items-center rounded-xl border bg-card p-6 text-card-foreground shadow transition-colors hover:bg-muted/50 sm:p-10"
- href={framework.href}
- >
- {framework.icon}
- <p className="mt-2 font-medium">{framework.name}</p>
- </a>
- ))}
- </div>
- );
-}
diff --git a/components/component-preview.tsx b/components/component-preview.tsx
index 80bfa7c0..f3650aec 100644
--- a/components/component-preview.tsx
+++ b/components/component-preview.tsx
@@ -1,17 +1,19 @@
"use client";
import * as React from "react";
+import { Index } from "__registry__";
import { RotateCcw } from "lucide-react";
+import { useConfig } from "@/lib/use-config";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import ComponentWrapper from "@/components/component-wrapper";
import { Icons } from "@/components/icons";
-import { ComponentName, registry } from "@/registry/index";
+import { styles } from "@/registry/registry-styles";
interface ComponentPreviewProps extends React.HTMLAttributes<HTMLDivElement> {
- name: ComponentName;
+ name: string;
align?: "center" | "start" | "end";
preview?: boolean;
}
@@ -24,12 +26,15 @@ export function ComponentPreview({
preview = false,
...props
}: ComponentPreviewProps) {
- const [key, setKey] = React.useState(0); // State to trigger re-render of preview
+ const [key, setKey] = React.useState(0);
+ const [config] = useConfig();
+ const index = styles.findIndex((style) => style.name === config.style);
+
const Codes = React.Children.toArray(children) as React.ReactElement[];
- const Code = Codes[0]; // first child
+ const Code = Codes[index];
const Preview = React.useMemo(() => {
- const Component = registry[name]?.component;
+ const Component = Index[config.style][name]?.component;
if (!Component) {
console.error(`Component with name "${name}" not found in registry.`);
@@ -45,7 +50,7 @@ export function ComponentPreview({
}
return <Component />;
- }, [name, key]);
+ }, [name, config.style]);
return (
<div
diff --git a/components/contribute.tsx b/components/contribute.tsx
index 40f792e2..cc52ef66 100644
--- a/components/contribute.tsx
+++ b/components/contribute.tsx
@@ -45,7 +45,7 @@ export function Contribute({ doc }: { doc: Doc }) {
href={link.href}
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors"
+ className="inline-flex items-center text-sm text-muted-foreground transition-colors hover:text-foreground"
>
<link.icon className="mr-2 size-4" />
{link.text}
diff --git a/components/gradient-blur.tsx b/components/gradient-blur.tsx
index 3a230920..946fd3e9 100644
--- a/components/gradient-blur.tsx
+++ b/components/gradient-blur.tsx
@@ -40,7 +40,7 @@ const GradientBlur: React.FC<GradientBlurProps> = ({
};
return (
- <div className={cn(`z-5 inset-x-0 pointer-events-none h-full`, className)}>
+ <div className={cn(`z-5 pointer-events-none inset-x-0 h-full`, className)}>
<div
className="absolute inset-0"
style={{
diff --git a/components/mdx-components.tsx b/components/mdx-components.tsx
index 0c7aeb25..3f201a68 100644
--- a/components/mdx-components.tsx
+++ b/components/mdx-components.tsx
@@ -11,12 +11,12 @@ import {
AccordionTrigger,
} from "@/components/ui/accordion";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Callout } from "@/components/callout";
import RepoDownload from "@/components/repo-download";
import TechStack from "@/components/tech-stack";
import TemplatePreview from "@/components/template-preview";
-import TweetCard from "@/registry/components/magicui/tweet-card";
+import TweetCard from "@/registry/default/magicui/tweet-card";
-import { ComponentInstallation } from "./component-installation";
import { ComponentPreview } from "./component-preview";
import { ComponentSource } from "./component-source";
import { CopyButton, CopyNpmCommandButton } from "./copy-button";
@@ -44,6 +44,7 @@ const components = {
AccordionContent,
AccordionItem,
AccordionTrigger,
+ Callout,
TechStack,
RepoDownload,
TemplatePreview,
@@ -51,7 +52,6 @@ const components = {
Tweet: ({ id }: { id: string }) => <TweetCard id={id} className="mx-auto" />,
ComponentPreview,
ComponentSource: (props: any) => <ComponentSource {...props} />,
- ComponentInstallation: (props: any) => <ComponentInstallation {...props} />,
h1: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (
<h1
className={cn(
@@ -281,6 +281,15 @@ const components = {
{...props}
/>
),
+ LinkedCard: ({ className, ...props }: React.ComponentProps<typeof Link>) => (
+ <Link
+ className={cn(
+ "flex w-full flex-col items-center rounded-xl border bg-card p-6 text-card-foreground shadow transition-colors hover:bg-muted/50 sm:p-10",
+ className,
+ )}
+ {...props}
+ />
+ ),
};
interface MDXProps {
@@ -292,7 +301,7 @@ export function Mdx({ code, className }: MDXProps) {
const Component = useMDXComponent(code);
return (
- <article className={cn("max-w-[120ch] mx-auto", className)}>
+ <article className={cn("mx-auto max-w-[120ch]", className)}>
<Component components={components} />
</article>
);
diff --git a/components/sections/component-demos.tsx b/components/sections/component-demos.tsx
index 3f6a654f..c430a310 100644
--- a/components/sections/component-demos.tsx
+++ b/components/sections/component-demos.tsx
@@ -15,7 +15,7 @@ export default function ComponentDemos() {
}
return (
- <section id="component-demos" className="container py-14 max-w-5xl">
+ <section id="component-demos" className="container max-w-5xl py-14">
<h2 className="mb-2 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">
Component Demos
</h2>
diff --git a/components/sections/hero.tsx b/components/sections/hero.tsx
index a15e2d11..14742b21 100644
--- a/components/sections/hero.tsx
+++ b/components/sections/hero.tsx
@@ -1,13 +1,13 @@
-import Link from "next/link";
import { allDocs } from "@/.contentlayer/generated";
import { compareDesc } from "date-fns";
import { ChevronRight } from "lucide-react";
+import Link from "next/link";
-import { cn } from "@/lib/utils";
+import TechStack from "@/components/tech-stack";
import { buttonVariants } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
-import TechStack from "@/components/tech-stack";
-import AnimatedGradientText from "@/registry/components/magicui/animated-gradient-text";
+import { cn } from "@/lib/utils";
+import AnimatedGradientText from "@/registry/default/magicui/animated-gradient-text";
function HeroPill({ href, title }: { href: string; title: string }) {
return (
@@ -59,8 +59,8 @@ export default async function Hero() {
className={cn(
"text-black dark:text-white",
"relative mx-0 max-w-[43.5rem] pt-5 md:mx-auto md:px-4 md:py-2",
- "text-left tracking-tighter text-balance md:text-center font-semibold",
- "md:text-7xl lg:text-7xl sm:text-7xl text-5xl",
+ "text-balance text-left font-semibold tracking-tighter md:text-center",
+ "text-5xl sm:text-7xl md:text-7xl lg:text-7xl",
)}
>
UI library for Design Engineers
@@ -86,7 +86,7 @@ export default async function Hero() {
size: "lg",
}),
"gap-2 whitespace-pre md:flex",
- "group relative w-full gap-1 rounded-xl text-sm font-semibold tracking-tighter ring-offset-inherit transition-all duration-150 ease-in-out hover:ring-2 hover:ring-black hover:ring-offset-2 hover:ring-offset-current dark:hover:ring-neutral-50",
+ "group relative w-full rounded-xl text-sm font-semibold tracking-tighter ring-offset-inherit transition-all duration-150 ease-in-out hover:ring-2 hover:ring-black hover:ring-offset-2 hover:ring-offset-current dark:hover:ring-neutral-50",
)}
>
Browse Components
@@ -100,7 +100,7 @@ export default async function Hero() {
variant: "outline",
}),
"gap-2 whitespace-pre md:flex",
- "group relative w-full gap-1 overflow-hidden rounded-xl text-sm font-semibold tracking-tighter transition-all duration-150 ease-in-out hover:ring-2 hover:ring-neutral-300 hover:ring-offset-2 hover:ring-offset-inherit dark:hover:ring-black dark:hover:ring-offset-black ",
+ "group relative w-full overflow-hidden rounded-xl text-sm font-semibold tracking-tighter transition-all duration-150 ease-in-out hover:ring-2 hover:ring-neutral-300 hover:ring-offset-2 hover:ring-offset-inherit dark:hover:ring-black dark:hover:ring-offset-black ",
)}
>
Get Started
diff --git a/components/sections/showcase.tsx b/components/sections/showcase.tsx
index 8f2b0434..2ec7b145 100644
--- a/components/sections/showcase.tsx
+++ b/components/sections/showcase.tsx
@@ -2,7 +2,7 @@ import Link from "next/link";
import { allShowcases } from "@/.contentlayer/generated";
import { ChevronRightIcon } from "@radix-ui/react-icons";
-import Marquee from "@/registry/components/magicui/marquee";
+import Marquee from "@/registry/default/magicui/marquee";
export interface ShowcaseCardProps {
title: string;
@@ -19,22 +19,22 @@ export function ShowcaseCard({
return (
<Link
href={href}
- className="flex flex-col gap-2 group relative overflow-hidden cursor-pointer"
+ className="group relative flex cursor-pointer flex-col gap-2 overflow-hidden"
>
<img
src={image}
alt={title}
width={500}
height={300}
- className="size-full object-cover max-h-[300px] rounded-xl"
+ className="size-full max-h-[300px] rounded-xl object-cover"
/>
<div className="flex flex-col">
- <div className="group inline-flex cursor-pointer items-center justify-start gap-1 duration-200 hover:text-neutral-700 dark:hover:text-neutral-200 text-xl font-semibold text-neutral-700 dark:text-neutral-300">
+ <div className="group inline-flex cursor-pointer items-center justify-start gap-1 text-xl font-semibold text-neutral-700 duration-200 hover:text-neutral-700 dark:text-neutral-300 dark:hover:text-neutral-200">
{title}
<ChevronRightIcon className="size-4 translate-x-0 opacity-0 transition-all duration-300 ease-out group-hover:translate-x-1 group-hover:opacity-100" />
</div>
- <p className="text-neutral-400 text-sm">{affiliation}</p>
+ <p className="text-sm text-neutral-400">{affiliation}</p>
</div>
</Link>
);
diff --git a/components/sections/testimonials.tsx b/components/sections/testimonials.tsx
index 8dbc0cc5..9f8d38ab 100644
--- a/components/sections/testimonials.tsx
+++ b/components/sections/testimonials.tsx
@@ -1,5 +1,5 @@
-import Marquee from "@/registry/components/magicui/marquee";
-import TweetCard from "@/registry/components/magicui/tweet-card";
+import Marquee from "@/registry/default/magicui/marquee";
+import TweetCard from "@/registry/default/magicui/tweet-card";
const tweets = [
"https://x.com/chronark_/status/1754781648262967323",
@@ -37,7 +37,7 @@ export default async function Testimonials() {
What People Are Saying
</h2>
<h3 className="mx-auto mb-8 max-w-lg text-balance text-center text-lg font-medium tracking-tight text-foreground/80">
- Don't just take our word for it. Here's what{" "}
+ Don&apos;t just take our word for it. Here&apos;s what{" "}
<strong>real people</strong> are saying about Magic UI on Twitter.
</h3>
<div className="relative flex flex-col">
diff --git a/components/sidebar-cta.tsx b/components/sidebar-cta.tsx
index 30baa0ea..a842e170 100644
--- a/components/sidebar-cta.tsx
+++ b/components/sidebar-cta.tsx
@@ -4,8 +4,8 @@ import Link from "next/link";
import { ChevronRight } from "lucide-react";
import posthog from "posthog-js";
-import AnimatedShinyText from "@/registry/components/magicui/animated-shiny-text";
-import WordPullUp from "@/registry/components/magicui/word-pull-up";
+import AnimatedShinyText from "@/registry/default/magicui/animated-shiny-text";
+import WordPullUp from "@/registry/default/magicui/word-pull-up";
export default function SidebarCTA() {
return (
diff --git a/components/sidebar-nav.tsx b/components/sidebar-nav.tsx
index fde7fb0e..166ab1e0 100644
--- a/components/sidebar-nav.tsx
+++ b/components/sidebar-nav.tsx
@@ -48,7 +48,7 @@ export function DocsSidebarNavItems({
groupId,
}: DocsSidebarNavItemsProps) {
return items?.length ? (
- <div className="grid grid-flow-row auto-rows-max text-sm gap-0.5 relative">
+ <div className="relative grid grid-flow-row auto-rows-max gap-0.5 text-sm">
{items.map((item, index) =>
item.href && !item.disabled ? (
<Link
@@ -56,7 +56,7 @@ export function DocsSidebarNavItems({
href={item.href}
onClick={() => item.event && posthog.capture(item.event)}
className={cn(
- "group flex w-full items-center rounded-md border border-transparent px-2 py-1 relative",
+ "group relative flex w-full items-center rounded-md border border-transparent px-2 py-1",
item.disabled && "cursor-not-allowed opacity-60",
pathname === item.href
? "font-medium text-foreground"
@@ -68,7 +68,7 @@ export function DocsSidebarNavItems({
{pathname === item.href && (
<motion.div
layoutId={groupId}
- className="absolute border-l-2 border-neutral-300 dark:border-neutral-600 inset-0 rounded-r-md bg-neutral-100 dark:bg-neutral-800"
+ className="absolute inset-0 rounded-r-md border-l-2 border-neutral-300 bg-neutral-100 dark:border-neutral-600 dark:bg-neutral-800"
initial={false}
transition={{
type: "spring",
diff --git a/components/site-header.tsx b/components/site-header.tsx
index 08b2d0a9..60a0b8db 100644
--- a/components/site-header.tsx
+++ b/components/site-header.tsx
@@ -1,15 +1,15 @@
-import Link from "next/link";
import { StarIcon } from "@heroicons/react/24/solid";
+import Link from "next/link";
-import { siteConfig } from "@/config/site";
-import { cn } from "@/lib/utils";
-import { buttonVariants } from "@/components/ui/button";
import { CommandMenu } from "@/components/command-menu";
import { Icons } from "@/components/icons";
import { MainNav } from "@/components/main-nav";
import { MobileNav } from "@/components/mobile-nav";
import { ModeToggle } from "@/components/mode-toggle";
-import NumberTicker from "@/registry/components/magicui/number-ticker";
+import { buttonVariants } from "@/components/ui/button";
+import { siteConfig } from "@/config/site";
+import { cn } from "@/lib/utils";
+import NumberTicker from "@/registry/default/magicui/number-ticker";
export async function SiteHeader() {
let stars = 300; // Default value
@@ -51,7 +51,7 @@ export async function SiteHeader() {
<Link
className={cn(
buttonVariants(),
- "hidden max-w-52 gap-2 overflow-hidden whitespace-pre md:flex",
+ "hidden max-w-52 overflow-hidden whitespace-pre md:flex",
"group relative w-full justify-center gap-2 rounded-md transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",
)}
target="_blank"
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
index 400e6de9..b220c4cf 100644
--- a/components/ui/dialog.tsx
+++ b/components/ui/dialog.tsx
@@ -1,8 +1,8 @@
"use client";
-import * as React from "react";
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { Cross2Icon } from "@radix-ui/react-icons";
+import * as React from "react";
import { cn } from "@/lib/utils";
diff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsx
index 1779c6f0..e146ca12 100644
--- a/components/ui/sheet.tsx
+++ b/components/ui/sheet.tsx
@@ -31,7 +31,7 @@ const SheetOverlay = React.forwardRef<
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
const sheetVariants = cva(
- "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
{
variants: {
side: {
diff --git a/content/docs/components/animated-beam.mdx b/content/docs/components/animated-beam.mdx
index ea7627ab..bfd2c492 100644
--- a/content/docs/components/animated-beam.mdx
+++ b/content/docs/components/animated-beam.mdx
@@ -20,7 +20,7 @@ video: https://cdn.magicui.design/animated-beam.mp4
<TabsContent value="cli">
```bash
-npx magicui-cli add animated-beam
+npx shadcn@latest add "https://magicui.design/r/animated-beam"
```
</TabsContent>
diff --git a/content/docs/components/animated-circular-progress-bar.mdx b/content/docs/components/animated-circular-progress-bar.mdx
index 201f3659..3e8ba095 100644
--- a/content/docs/components/animated-circular-progress-bar.mdx
+++ b/content/docs/components/animated-circular-progress-bar.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add animated-circular-progress-bar
+npx shadcn@latest add "https://magicui.design/r/animated-circular-progress-bar"
```
</TabsContent>
diff --git a/content/docs/components/animated-gradient-text.mdx b/content/docs/components/animated-gradient-text.mdx
index b809285c..7b215c77 100644
--- a/content/docs/components/animated-gradient-text.mdx
+++ b/content/docs/components/animated-gradient-text.mdx
@@ -19,40 +19,10 @@ video: https://cdn.magicui.design/animated-gradient-text.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add animated-gradient-text
+npx shadcn@latest add "https://magicui.design/r/animated-gradient-text"
```
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-14}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- gradient: "gradient 8s linear infinite",
- },
- keyframes: {
- gradient: {
- to: {
- backgroundPosition: "var(--bg-size) 0",
- },
- },
- },
- },
- },
-};
-```
-
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/animated-grid-pattern.mdx b/content/docs/components/animated-grid-pattern.mdx
index e6af8547..7d18658c 100644
--- a/content/docs/components/animated-grid-pattern.mdx
+++ b/content/docs/components/animated-grid-pattern.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add animated-grid-pattern
+npx shadcn@latest add "https://magicui.design/r/animated-grid-pattern"
```
</TabsContent>
diff --git a/content/docs/components/animated-list.mdx b/content/docs/components/animated-list.mdx
index 0c4f0c5c..aec58af3 100644
--- a/content/docs/components/animated-list.mdx
+++ b/content/docs/components/animated-list.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add animated-list
+npx shadcn@latest add "https://magicui.design/r/animated-list"
```
</TabsContent>
diff --git a/content/docs/components/animated-shiny-text.mdx b/content/docs/components/animated-shiny-text.mdx
index fefbaf81..992ce241 100644
--- a/content/docs/components/animated-shiny-text.mdx
+++ b/content/docs/components/animated-shiny-text.mdx
@@ -19,43 +19,10 @@ video: https://cdn.magicui.design/animated-shiny-text.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add animated-shiny-text
-```
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-17}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- shimmer: "shimmer 8s infinite",
- },
- keyframes: {
- shimmer: {
- "0%, 90%, 100%": {
- "background-position": "calc(-100% - var(--shimmer-width)) 0",
- },
- "30%, 60%": {
- "background-position": "calc(100% + var(--shimmer-width)) 0",
- },
- },
- },
- },
- },
-};
+npx shadcn@latest add "https://magicui.design/r/animated-shiny-text"
```
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
@@ -78,10 +45,10 @@ module.exports = {
theme: {
extend: {
animation: {
- shimmer: "shimmer 8s infinite",
+ "shiny-text": "shiny-text 8s infinite",
},
keyframes: {
- shimmer: {
+ "shiny-text": {
"0%, 90%, 100%": {
"background-position": "calc(-100% - var(--shimmer-width)) 0",
},
diff --git a/content/docs/components/animated-subscribe-button.mdx b/content/docs/components/animated-subscribe-button.mdx
index 399fbd7c..a404f325 100644
--- a/content/docs/components/animated-subscribe-button.mdx
+++ b/content/docs/components/animated-subscribe-button.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add animated-subscribe-button
+npx shadcn@latest add "https://magicui.design/r/animated-subscribe-button"
```
</TabsContent>
diff --git a/content/docs/components/avatar-circles.mdx b/content/docs/components/avatar-circles.mdx
index 7eb9c8d3..4d679d14 100644
--- a/content/docs/components/avatar-circles.mdx
+++ b/content/docs/components/avatar-circles.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add avatar-circles
+npx shadcn@latest add "https://magicui.design/r/avatar-circles"
```
</TabsContent>
diff --git a/content/docs/components/bento-grid.mdx b/content/docs/components/bento-grid.mdx
index cebf34da..6048ef5d 100644
--- a/content/docs/components/bento-grid.mdx
+++ b/content/docs/components/bento-grid.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add bento-grid
+npx shadcn@latest add "https://magicui.design/r/bento-grid"
```
</TabsContent>
diff --git a/content/docs/components/blur-fade.mdx b/content/docs/components/blur-fade.mdx
index 77b3a5ed..6eb47135 100644
--- a/content/docs/components/blur-fade.mdx
+++ b/content/docs/components/blur-fade.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add blur-fade
+npx shadcn@latest add "https://magicui.design/r/blur-fade"
```
</TabsContent>
diff --git a/content/docs/components/blur-in.mdx b/content/docs/components/blur-in.mdx
index fd69066f..954b35a9 100644
--- a/content/docs/components/blur-in.mdx
+++ b/content/docs/components/blur-in.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add blur-in
+npx shadcn@latest add "https://magicui.design/r/blur-in"
```
</TabsContent>
diff --git a/content/docs/components/border-beam.mdx b/content/docs/components/border-beam.mdx
index 540548cd..257089c3 100644
--- a/content/docs/components/border-beam.mdx
+++ b/content/docs/components/border-beam.mdx
@@ -19,40 +19,10 @@ video: https://cdn.magicui.design/border-beam.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add border-beam
+npx shadcn@latest add "https://magicui.design/r/border-beam"
```
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-14}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- "border-beam": "border-beam calc(var(--duration)*1s) infinite linear",
- },
- keyframes: {
- "border-beam": {
- "100%": {
- "offset-distance": "100%",
- },
- },
- },
- },
- },
-};
-```
-
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/box-reveal.mdx b/content/docs/components/box-reveal.mdx
index 375625b8..d0329282 100644
--- a/content/docs/components/box-reveal.mdx
+++ b/content/docs/components/box-reveal.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add box-reveal
+npx shadcn@latest add "https://magicui.design/r/box-reveal"
```
</TabsContent>
diff --git a/content/docs/components/confetti.mdx b/content/docs/components/confetti.mdx
index 8e4e1397..c3594d24 100644
--- a/content/docs/components/confetti.mdx
+++ b/content/docs/components/confetti.mdx
@@ -18,16 +18,10 @@ published: true
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add confetti
+npx shadcn@latest add "https://magicui.design/r/confetti"
```
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/cool-mode.mdx b/content/docs/components/cool-mode.mdx
index 3012d382..e0ec185f 100644
--- a/content/docs/components/cool-mode.mdx
+++ b/content/docs/components/cool-mode.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add cool-mode
+npx shadcn@latest add "https://magicui.design/r/cool-mode"
```
</TabsContent>
diff --git a/content/docs/components/dock.mdx b/content/docs/components/dock.mdx
index 21e56f5d..5823df85 100644
--- a/content/docs/components/dock.mdx
+++ b/content/docs/components/dock.mdx
@@ -20,7 +20,7 @@ video: https://cdn.magicui.design/dock.mp4
<TabsContent value="cli">
```bash
-npx magicui-cli add dock
+npx shadcn@latest add "https://magicui.design/r/dock"
```
</TabsContent>
diff --git a/content/docs/components/dot-pattern.mdx b/content/docs/components/dot-pattern.mdx
index 06f026f7..7d1d9c24 100644
--- a/content/docs/components/dot-pattern.mdx
+++ b/content/docs/components/dot-pattern.mdx
@@ -20,7 +20,7 @@ video: https://cdn.magicui.design/dot-pattern.mp4
<TabsContent value="cli">
```bash
-npx magicui-cli add dot-pattern
+npx shadcn@latest add "https://magicui.design/r/dot-pattern"
```
</TabsContent>
diff --git a/content/docs/components/fade-text.mdx b/content/docs/components/fade-text.mdx
index f584a6b5..e27367d5 100644
--- a/content/docs/components/fade-text.mdx
+++ b/content/docs/components/fade-text.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add fade-text
+npx shadcn@latest add "https://magicui.design/r/fade-text"
```
</TabsContent>
diff --git a/content/docs/components/file-tree.mdx b/content/docs/components/file-tree.mdx
index 102849e0..f2a10f62 100644
--- a/content/docs/components/file-tree.mdx
+++ b/content/docs/components/file-tree.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add file-tree
+npx shadcn@latest add "https://magicui.design/r/file-tree"
```
</TabsContent>
diff --git a/content/docs/components/flickering-grid.mdx b/content/docs/components/flickering-grid.mdx
index 9a4f9e34..2bfca5ab 100644
--- a/content/docs/components/flickering-grid.mdx
+++ b/content/docs/components/flickering-grid.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add flickering-grid
+npx shadcn@latest add "https://magicui.design/r/flickering-grid"
```
</TabsContent>
diff --git a/content/docs/components/flip-text.mdx b/content/docs/components/flip-text.mdx
index 9edc50dd..87aa9456 100644
--- a/content/docs/components/flip-text.mdx
+++ b/content/docs/components/flip-text.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add flip-text
+npx shadcn@latest add "https://magicui.design/r/flip-text"
```
</TabsContent>
diff --git a/content/docs/components/globe.mdx b/content/docs/components/globe.mdx
index c058ddf5..ca51fcf5 100644
--- a/content/docs/components/globe.mdx
+++ b/content/docs/components/globe.mdx
@@ -25,7 +25,7 @@ video: https://cdn.magicui.design/globe.mp4
<TabsContent value="cli">
```bash
-npx magicui-cli add globe
+npx shadcn@latest add "https://magicui.design/r/globe"
```
</TabsContent>
diff --git a/content/docs/components/gradual-spacing.mdx b/content/docs/components/gradual-spacing.mdx
index 6a5156f6..2647f455 100644
--- a/content/docs/components/gradual-spacing.mdx
+++ b/content/docs/components/gradual-spacing.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add gradual-spacing
+npx shadcn@latest add "https://magicui.design/r/gradual-spacing"
```
</TabsContent>
diff --git a/content/docs/components/grid-pattern.mdx b/content/docs/components/grid-pattern.mdx
index f34e90bc..2e3fa0d6 100644
--- a/content/docs/components/grid-pattern.mdx
+++ b/content/docs/components/grid-pattern.mdx
@@ -20,7 +20,7 @@ video: https://cdn.magicui.design/grid-pattern.mp4
<TabsContent value="cli">
```bash
-npx magicui-cli add grid-pattern
+npx shadcn@latest add "https://magicui.design/r/grid-pattern"
```
</TabsContent>
diff --git a/content/docs/components/hero-video-dialog.mdx b/content/docs/components/hero-video-dialog.mdx
index ff3ed482..b969b204 100644
--- a/content/docs/components/hero-video-dialog.mdx
+++ b/content/docs/components/hero-video-dialog.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add hero-video-dialog
+npx shadcn@latest add "https://magicui.design/r/hero-video-dialog"
```
</TabsContent>
diff --git a/content/docs/components/hero-video.mdx b/content/docs/components/hero-video.mdx
deleted file mode 100644
index 95bdede5..00000000
--- a/content/docs/components/hero-video.mdx
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: Hero Video
-date: 2023-08-30
-description: A react component that renders a video in a modal with a play button.
-author: dillionverma
-published: false
-toc: true
-video: https://cdn.magicui.design/hero-video.mp4
----
-
-<ComponentPreview name="hero-video-demo" />
-
-<Steps>
-
-<Step>
-
-## Installation
-
-Copy and paste the following code into your project.
-
-```text
-components/magicui/hero-video.tsx
-```
-
-<ComponentSource name="hero-video" />
-
-</Step>
-
-</Steps>
-
-## Examples
-
-### Youtube
-
-For youtube videos, copy the embed iframe from youtube and pass as a child to the component.
-
-<ComponentPreview name="hero-video-youtube" />
-
-## Props
-
-### Hero Video
-
-| Prop | Type | Description | Default |
-| ---- | ---- | ----------- | ------- |
diff --git a/content/docs/components/hyper-text.mdx b/content/docs/components/hyper-text.mdx
index 68ceb837..876de791 100644
--- a/content/docs/components/hyper-text.mdx
+++ b/content/docs/components/hyper-text.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add hyper-text
+npx shadcn@latest add "https://magicui.design/r/hyper-text"
```
</TabsContent>
diff --git a/content/docs/components/icon-cloud.mdx b/content/docs/components/icon-cloud.mdx
index 25ae7671..1d9048f2 100644
--- a/content/docs/components/icon-cloud.mdx
+++ b/content/docs/components/icon-cloud.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add icon-cloud
+npx shadcn@latest add "https://magicui.design/r/icon-cloud"
```
</TabsContent>
diff --git a/content/docs/components/iphone-15-pro.mdx b/content/docs/components/iphone-15-pro.mdx
index 55ed08d1..5cb5f79a 100644
--- a/content/docs/components/iphone-15-pro.mdx
+++ b/content/docs/components/iphone-15-pro.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add iphone-15-pro
+npx shadcn@latest add "https://magicui.design/r/iphone-15-pro"
```
</TabsContent>
diff --git a/content/docs/components/letter-pullup.mdx b/content/docs/components/letter-pullup.mdx
index 726088d0..718d8139 100644
--- a/content/docs/components/letter-pullup.mdx
+++ b/content/docs/components/letter-pullup.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add letter-pullup
+npx shadcn@latest add "https://magicui.design/r/letter-pullup"
```
</TabsContent>
diff --git a/content/docs/components/magic-card.mdx b/content/docs/components/magic-card.mdx
index f92d6a13..c6afc5f9 100644
--- a/content/docs/components/magic-card.mdx
+++ b/content/docs/components/magic-card.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add magic-card
+npx shadcn@latest add "https://magicui.design/r/magic-card"
```
</TabsContent>
diff --git a/content/docs/components/marquee.mdx b/content/docs/components/marquee.mdx
index 39483a54..57e5fc2b 100644
--- a/content/docs/components/marquee.mdx
+++ b/content/docs/components/marquee.mdx
@@ -19,44 +19,10 @@ video: https://cdn.magicui.design/marquee.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add marquee
+npx shadcn@latest add "https://magicui.design/r/marquee"
```
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-18}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- marquee: "marquee var(--duration) linear infinite",
- "marquee-vertical": "marquee-vertical var(--duration) linear infinite",
- },
- keyframes: {
- marquee: {
- from: { transform: "translateX(0)" },
- to: { transform: "translateX(calc(-100% - var(--gap)))" },
- },
- "marquee-vertical": {
- from: { transform: "translateY(0)" },
- to: { transform: "translateY(calc(-100% - var(--gap)))" },
- },
- },
- },
- },
-};
-```
-
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/meteors.mdx b/content/docs/components/meteors.mdx
index d6328b34..6b31fec8 100644
--- a/content/docs/components/meteors.mdx
+++ b/content/docs/components/meteors.mdx
@@ -19,43 +19,10 @@ video: https://cdn.magicui.design/meteors.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add meteors
+npx shadcn@latest add "https://magicui.design/r/meteors"
```
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-17}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- meteor: "meteor 5s linear infinite",
- },
- keyframes: {
- meteor: {
- "0%": { transform: "rotate(215deg) translateX(0)", opacity: "1" },
- "70%": { opacity: "1" },
- "100%": {
- transform: "rotate(215deg) translateX(-500px)",
- opacity: "0",
- },
- },
- },
- },
- },
-};
-```
-
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/neon-gradient-card.mdx b/content/docs/components/neon-gradient-card.mdx
index 06a0d302..7af1a8f9 100644
--- a/content/docs/components/neon-gradient-card.mdx
+++ b/content/docs/components/neon-gradient-card.mdx
@@ -18,40 +18,10 @@ published: true
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add neon-gradient-card
-```
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-14}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- backgroundPositionSpin:
- "background-position-spin 3000ms infinite alternate",
- },
- keyframes: {
- "background-position-spin": {
- "0%": { backgroundPosition: "top center" },
- "100%": { backgroundPosition: "bottom center" },
- },
- },
- },
- },
-};
+npx shadcn@latest add "https://magicui.design/r/neon-gradient-card"
```
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
@@ -74,7 +44,7 @@ module.exports = {
theme: {
extend: {
animation: {
- backgroundPositionSpin:
+ "background-position-spin":
"background-position-spin 3000ms infinite alternate",
},
keyframes: {
diff --git a/content/docs/components/number-ticker.mdx b/content/docs/components/number-ticker.mdx
index 6064a529..90d6c4d8 100644
--- a/content/docs/components/number-ticker.mdx
+++ b/content/docs/components/number-ticker.mdx
@@ -20,7 +20,7 @@ video: https://cdn.magicui.design/number-ticker.mp4
<TabsContent value="cli">
```bash
-npx magicui-cli add number-ticker
+npx shadcn@latest add "https://magicui.design/r/number-ticker"
```
</TabsContent>
diff --git a/content/docs/components/orbiting-circles.mdx b/content/docs/components/orbiting-circles.mdx
index baf8e7a6..591afd43 100644
--- a/content/docs/components/orbiting-circles.mdx
+++ b/content/docs/components/orbiting-circles.mdx
@@ -19,45 +19,10 @@ video: https://cdn.magicui.design/orbiting-circles.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add orbiting-circles
-```
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-19}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- orbit: "orbit calc(var(--duration)*1s) linear infinite",
- },
- keyframes: {
- orbit: {
- "0%": {
- transform:
- "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)",
- },
- "100%": {
- transform:
- "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)",
- },
- },
- },
- },
- },
-};
+npx shadcn@latest add "https://magicui.design/r/orbiting-circles"
```
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/particles.mdx b/content/docs/components/particles.mdx
index b5792e01..7ff3bb43 100644
--- a/content/docs/components/particles.mdx
+++ b/content/docs/components/particles.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add particles
+npx shadcn@latest add "https://magicui.design/r/particles"
```
</TabsContent>
diff --git a/content/docs/components/pulsating-button.mdx b/content/docs/components/pulsating-button.mdx
index 46e2bb73..447c57e0 100644
--- a/content/docs/components/pulsating-button.mdx
+++ b/content/docs/components/pulsating-button.mdx
@@ -18,39 +18,10 @@ published: true
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add pulsating-button
-```
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-13}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- pulse: "pulse var(--duration) ease-out infinite",
- },
- keyframes: {
- pulse: {
- "0%, 100%": { boxShadow: "0 0 0 0 var(--pulse-color)" },
- "50%": { boxShadow: "0 0 0 8px var(--pulse-color)" },
- },
- },
- },
- },
-};
+npx shadcn@latest add "https://magicui.design/r/pulsating-button"
```
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/rainbow-button.mdx b/content/docs/components/rainbow-button.mdx
index 1d08fbca..336d87e2 100644
--- a/content/docs/components/rainbow-button.mdx
+++ b/content/docs/components/rainbow-button.mdx
@@ -18,60 +18,10 @@ published: true
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add rainbow-button
+npx shadcn@latest add "https://magicui.design/r/rainbow-button"
```
-<Step>Update `globals.css`</Step>
-
-Add the following to your `globals.css` file:
-
-```css
-:root {
- --color-1: 0 100% 63%;
- --color-2: 270 100% 63%;
- --color-3: 210 100% 63%;
- --color-4: 195 100% 63%;
- --color-5: 90 100% 63%;
-}
-```
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-20}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- colors: {
- "color-1": "hsl(var(--color-1))",
- "color-2": "hsl(var(--color-2))",
- "color-3": "hsl(var(--color-3))",
- "color-4": "hsl(var(--color-4))",
- "color-5": "hsl(var(--color-5))",
- },
- animation: {
- rainbow: "rainbow var(--speed, 2s) infinite linear",
- },
- keyframes: {
- rainbow: {
- "0%": { "background-position": "0%" },
- "100%": { "background-position": "200%" },
- },
- },
- },
- },
-};
-```
-
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/retro-grid.mdx b/content/docs/components/retro-grid.mdx
index eca4c098..90d7cdfb 100644
--- a/content/docs/components/retro-grid.mdx
+++ b/content/docs/components/retro-grid.mdx
@@ -19,39 +19,10 @@ video: https://cdn.magicui.design/retro-grid.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add retro-grid
-```
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-13}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- grid: "grid 15s linear infinite",
- },
- keyframes: {
- grid: {
- "0%": { transform: "translateY(-50%)" },
- "100%": { transform: "translateY(0)" },
- },
- },
- },
- },
-};
+npx shadcn@latest add "https://magicui.design/r/retro-grid"
```
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/ripple.mdx b/content/docs/components/ripple.mdx
index 6e3c58fe..966354de 100644
--- a/content/docs/components/ripple.mdx
+++ b/content/docs/components/ripple.mdx
@@ -19,43 +19,10 @@ video: https://cdn.magicui.design/ripple.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add ripple
-```
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-17}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- ripple: "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite",
- },
- keyframes: {
- ripple: {
- "0%, 100%": {
- transform: "translate(-50%, -50%) scale(1)",
- },
- "50%": {
- transform: "translate(-50%, -50%) scale(0.9)",
- },
- },
- },
- },
- },
-};
+npx shadcn@latest add "https://magicui.design/r/ripple"
```
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
diff --git a/content/docs/components/safari.mdx b/content/docs/components/safari.mdx
index fc69a5c4..ce744252 100644
--- a/content/docs/components/safari.mdx
+++ b/content/docs/components/safari.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add safari
+npx shadcn@latest add "https://magicui.design/r/safari"
```
</TabsContent>
diff --git a/content/docs/components/scroll-based-velocity.mdx b/content/docs/components/scroll-based-velocity.mdx
index 04b757d1..2b525f8b 100644
--- a/content/docs/components/scroll-based-velocity.mdx
+++ b/content/docs/components/scroll-based-velocity.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add scroll-based-velocity
+npx shadcn@latest add "https://magicui.design/r/scroll-based-velocity"
```
</TabsContent>
diff --git a/content/docs/components/shimmer-button.mdx b/content/docs/components/shimmer-button.mdx
index 3537d39e..81bb57fb 100644
--- a/content/docs/components/shimmer-button.mdx
+++ b/content/docs/components/shimmer-button.mdx
@@ -19,55 +19,10 @@ video: https://cdn.magicui.design/shimmer-button.mp4
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add shimmer-button
+npx shadcn@latest add "https://magicui.design/r/shimmer-button"
```
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-29}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- "spin-around": "spin-around calc(var(--speed) * 2) infinite linear",
- slide: "slide var(--speed) ease-in-out infinite alternate",
- },
- keyframes: {
- "spin-around": {
- "0%": {
- transform: "translateZ(0) rotate(0)",
- },
- "15%, 35%": {
- transform: "translateZ(0) rotate(90deg)",
- },
- "65%, 85%": {
- transform: "translateZ(0) rotate(270deg)",
- },
- "100%": {
- transform: "translateZ(0) rotate(360deg)",
- },
- },
- slide: {
- to: {
- transform: "translate(calc(100cqw - 100%), 0)",
- },
- },
- },
- },
- },
-};
-```
-
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
@@ -84,14 +39,15 @@ module.exports = {
Add the following animations to your `tailwind.config.js` file:
-```js title="tailwind.config.js" {5-29}
+```js title="tailwind.config.js" {5-30}
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
animation: {
+ "shimmer-slide":
+ "shimmer-slide var(--speed) ease-in-out infinite alternate",
"spin-around": "spin-around calc(var(--speed) * 2) infinite linear",
- slide: "slide var(--speed) ease-in-out infinite alternate",
},
keyframes: {
"spin-around": {
@@ -108,7 +64,7 @@ module.exports = {
transform: "translateZ(0) rotate(360deg)",
},
},
- slide: {
+ "shimmer-slide": {
to: {
transform: "translate(calc(100cqw - 100%), 0)",
},
diff --git a/content/docs/components/shine-border.mdx b/content/docs/components/shine-border.mdx
index 39b79f88..8b7affe1 100644
--- a/content/docs/components/shine-border.mdx
+++ b/content/docs/components/shine-border.mdx
@@ -18,43 +18,10 @@ published: true
</TabsList>
<TabsContent value="cli">
-<Steps>
-
-<Step>Run the following command:</Step>
-
```bash
-npx magicui-cli add shine-border
+npx shadcn@latest add "https://magicui.design/r/shine-border"
```
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-17}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- keyframes: {
- "shine-pulse": {
- "0%": {
- "background-position": "0% 0%",
- },
- "50%": {
- "background-position": "100% 100%",
- },
- to: {
- "background-position": "0% 0%",
- },
- },
- },
- },
- },
-};
-```
-
-</Steps>
-
</TabsContent>
<TabsContent value="manual">
@@ -76,8 +43,11 @@ Add the following animations to your `tailwind.config.js` file:
module.exports = {
theme: {
extend: {
+ animation: {
+ shine: "shine var(--duration) infinite linear",
+ },
keyframes: {
- "shine-pulse": {
+ shine: {
"0%": {
"background-position": "0% 0%",
},
diff --git a/content/docs/components/shiny-button.mdx b/content/docs/components/shiny-button.mdx
index 9c15ee11..b4ce7c05 100644
--- a/content/docs/components/shiny-button.mdx
+++ b/content/docs/components/shiny-button.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add shiny-button
+npx shadcn@latest add "https://magicui.design/r/shiny-button"
```
</TabsContent>
diff --git a/content/docs/components/sparkles-text.mdx b/content/docs/components/sparkles-text.mdx
index 57176b6a..94004118 100644
--- a/content/docs/components/sparkles-text.mdx
+++ b/content/docs/components/sparkles-text.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add sparkles-text
+npx shadcn@latest add "https://magicui.design/r/sparkles-text"
```
</TabsContent>
diff --git a/content/docs/components/text-reveal.mdx b/content/docs/components/text-reveal.mdx
index 2b0c63ae..5b1ab96c 100644
--- a/content/docs/components/text-reveal.mdx
+++ b/content/docs/components/text-reveal.mdx
@@ -20,7 +20,7 @@ video: https://cdn.magicui.design/text-reveal.mp4
<TabsContent value="cli">
```bash
-npx magicui-cli add text-reveal
+npx shadcn@latest add "https://magicui.design/r/text-reveal"
```
</TabsContent>
diff --git a/content/docs/components/typing-animation.mdx b/content/docs/components/typing-animation.mdx
index e2a874ac..360f418f 100644
--- a/content/docs/components/typing-animation.mdx
+++ b/content/docs/components/typing-animation.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add typing-animation
+npx shadcn@latest add "https://magicui.design/r/typing-animation"
```
</TabsContent>
diff --git a/content/docs/components/word-fade-in.mdx b/content/docs/components/word-fade-in.mdx
index cc953156..884ab6f0 100644
--- a/content/docs/components/word-fade-in.mdx
+++ b/content/docs/components/word-fade-in.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add word-fade-in
+npx shadcn@latest add "https://magicui.design/r/word-fade-in"
```
</TabsContent>
diff --git a/content/docs/components/word-pull-up.mdx b/content/docs/components/word-pull-up.mdx
index e15f97f3..12a981dc 100644
--- a/content/docs/components/word-pull-up.mdx
+++ b/content/docs/components/word-pull-up.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add word-pull-up
+npx shadcn@latest add "https://magicui.design/r/word-pull-up"
```
</TabsContent>
diff --git a/content/docs/components/word-rotate.mdx b/content/docs/components/word-rotate.mdx
index 2ef110e2..b00fd2f0 100644
--- a/content/docs/components/word-rotate.mdx
+++ b/content/docs/components/word-rotate.mdx
@@ -19,7 +19,7 @@ published: true
<TabsContent value="cli">
```bash
-npx magicui-cli add word-rotate
+npx shadcn@latest add "https://magicui.design/r/word-rotate"
```
</TabsContent>
diff --git a/content/docs/installation.mdx b/content/docs/installation.mdx
deleted file mode 100644
index 3e337cc4..00000000
--- a/content/docs/installation.mdx
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: Installation
-description: How to install dependencies and structure your app.
-published: true
----
-
-### Frameworks
-
-<ComponentInstallation />
diff --git a/content/docs/installation/astro.mdx b/content/docs/installation/astro.mdx
index 09538bf9..2f00984d 100644
--- a/content/docs/installation/astro.mdx
+++ b/content/docs/installation/astro.mdx
@@ -18,10 +18,8 @@ npm create astro@latest
You will be asked a few questions to configure your project:
```txt showLineNumbers
-- Where should we create our new project?
-./your-app-name
-- How would you like to start your new project?
-Choose a starter template (or Empty)
+- Where should we create your new project? ./your-app-name
+- How would you like to start your new project? Choose a template
- Do you plan to write TypeScript? Yes
- How strict should TypeScript be? Strict
- Install dependencies? Yes
@@ -36,77 +34,41 @@ Install React using the Astro CLI:
npx astro add react
```
+<Callout className="mt-4">
+
Answer `Yes` to all the question prompted by the CLI when installing React.
-### Add Tailwind CSS to your project
+</Callout>
-Install Tailwind CSS using the Astro CLI:
+### Add Tailwind CSS to your project
```bash
npx astro add tailwind
```
-Answer `Yes` to all the question prompted by the CLI when installing Tailwind CSS.
-
-### Edit tsconfig.json file
-
-Add the following code to the `tsconfig.json` file to resolve paths:
-
-```ts {4-9} showLineNumbers
-{
- "compilerOptions": {
- // ...
- "baseUrl": ".",
- "paths": {
- "@/*": [
- "./src/*"
- ]
- }
- // ...
- }
-}
-```
-
-### Run the CLI
-
-Run the `magicui-cli` init command to setup your project:
-
-```bash
-npx magicui-cli init
-```
-
-### Configure components.json
-
-You will be asked a few questions to configure `components.json`:
+<Step>Create a `styles/globals.css` file in the `src` folder.</Step>
-```txt showLineNumbers
-Would you like to use TypeScript (recommended)? no / yes
-Which style would you like to use? › Default
-Which color would you like to use as base color? › Slate
-Where is your global CSS file? › ./src/styles/globals.css
-Do you want to use CSS variables for colors? › no / yes
-Where is your tailwind.config.js located? › tailwind.config.mjs
-Configure the import alias for components: › @/components
-Configure the import alias for utils: › @/lib/utils
-Are you using React Server Components? › no
-Write configuration to components.json Proceed? › yes
+```css title="styles/globals.css" showLineNumbers
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
```
-### Import the globals.css file
+<Step>Import the `globals.css` file</Step>
-Import the `globals.css` file in the `src/pages/index.astro` file:
+Import the `styles/globals.css` file in the `src/pages/index.astro` file:
-```ts {2} showLineNumbers
+```ts title="src/pages/index.astro" showLineNumbers
---
import '@/styles/globals.css'
---
```
-### Update astro tailwind config
+<Step>Update `astro.config.mjs` and set `applyBaseStyles` to `false`</Step>
To prevent serving the Tailwind base styles twice, we need to tell Astro not to apply the base styles, since we already include them in our own `globals.css` file. To do this, set the `applyBaseStyles` config option for the tailwind plugin in `astro.config.mjs` to `false`.
-```ts {3-5} showLineNumbers
+```js title="astro.config.mjs" {3-5} showLineNumbers
export default defineConfig({
integrations: [
tailwind({
@@ -116,14 +78,31 @@ export default defineConfig({
});
```
-### Update tailwind.config.mjs
+### Edit tsconfig.json file
-When running `npx magicui-cli init`, your tailwind config for content will be overwritten. To fix this, change the `module.exports` to `export default` and the `content` section with the code below to your `tailwind.config.mjs` file:
+Add the following code to the `tsconfig.json` file to resolve paths:
-```js {1-4} showLineNumbers
-export default {
- content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
-};
+```ts title="tsconfig.json" {4-9} showLineNumbers
+{
+ "compilerOptions": {
+ // ...
+ "baseUrl": ".",
+ "paths": {
+ "@/*": [
+ "./src/*"
+ ]
+ }
+ // ...
+ }
+}
+```
+
+### Run the CLI
+
+Run the `shadcn` init command to setup your project:
+
+```bash
+npx shadcn@latest init
```
### That's it
@@ -131,23 +110,23 @@ export default {
You can now start adding components to your project.
```bash
-npx magicui-cli add blur-in
+npx shadcn@latest add button
```
-The command above will add the `BlurIn` component to your project. You can then import it like this:
+The command above will add the `Button` component to your project. You can then import it like this:
```astro {2,10} showLineNumbers
---
-import BlurIn from "@/components/magicui/blur-in";
+import { Button } from "@/components/ui/button"
---
<html lang="en">
- <head>
- <title>Astro</title>
- </head>
- <body>
- <BlurIn word={"Hello World"} client:load></BlurIn>
- </body>
+ <head>
+ <title>Astro</title>
+ </head>
+ <body>
+ <Button>Hello World</Button>
+ </body>
</html>
```
diff --git a/content/docs/installation/gatsby.mdx b/content/docs/installation/gatsby.mdx
new file mode 100644
index 00000000..dee7226f
--- /dev/null
+++ b/content/docs/installation/gatsby.mdx
@@ -0,0 +1,120 @@
+---
+title: Gatsby
+description: Install and configure Gatsby.
+---
+
+<Steps>
+
+### Create project
+
+Start by creating a new Gatsby project using `create-gatsby`:
+
+```bash
+npm init gatsby
+```
+
+### Configure your Gatsby project to use TypeScript and Tailwind CSS
+
+You will be asked a few questions to configure your project:
+
+```txt showLineNumbers
+✔ What would you like to call your site?
+· your-app-name
+✔ What would you like to name the folder where your site will be created?
+· your-app-name
+✔ Will you be using JavaScript or TypeScript?
+· TypeScript
+✔ Will you be using a CMS?
+· Choose whatever you want
+✔ Would you like to install a styling system?
+· Tailwind CSS
+✔ Would you like to install additional features with other plugins?
+· Choose whatever you want
+✔ Shall we do this? (Y/n) · Yes
+```
+
+### Edit tsconfig.json file
+
+Add the following code to the `tsconfig.json` file to resolve paths:
+
+```ts {4-9} showLineNumbers
+{
+ "compilerOptions": {
+ // ...
+ "baseUrl": ".",
+ "paths": {
+ "@/*": [
+ "./src/*"
+ ]
+ }
+ // ...
+ }
+}
+```
+
+### Create gatsby-node.ts file
+
+Create a `gatsby-node.ts` file at the root of your project if it doesn’t already exist, and add the code below to the `gatsby-node` file so your app can resolve paths:
+
+```ts
+import * as path from "path";
+
+export const onCreateWebpackConfig = ({ actions }) => {
+ actions.setWebpackConfig({
+ resolve: {
+ alias: {
+ "@/components": path.resolve(__dirname, "src/components"),
+ "@/lib/utils": path.resolve(__dirname, "src/lib/utils"),
+ },
+ },
+ });
+};
+```
+
+### Run the CLI
+
+Run the `shadcn-ui` init command to setup your project:
+
+```bash
+npx shadcn@latest init
+```
+
+### Configure components.json
+
+You will be asked a few questions to configure `components.json`:
+
+```txt showLineNumbers
+Would you like to use TypeScript (recommended)? no / yes
+Which style would you like to use? › Default
+Which color would you like to use as base color? › Slate
+Where is your global CSS file? › › ./src/styles/globals.css
+Do you want to use CSS variables for colors? › no / yes
+Where is your tailwind.config.js located? › tailwind.config.js
+Configure the import alias for components: › @/components
+Configure the import alias for utils: › @/lib/utils
+Are you using React Server Components? › no
+```
+
+### That's it
+
+You can now start adding components to your project.
+
+```bash
+npx shadcn@latest add button
+```
+
+The command above will add the `Button` component to your project. You can then import it like this:
+
+```tsx {1,6} showLineNumbers
+import { Button } from "@/components/ui/button";
+
+export default function Home() {
+ return (
+ <div>
+ <Button>Click me</Button>
+ </div>
+ );
+}
+```
+
+</Steps>
diff --git a/content/docs/installation/index.mdx b/content/docs/installation/index.mdx
new file mode 100644
index 00000000..e59dd1a6
--- /dev/null
+++ b/content/docs/installation/index.mdx
@@ -0,0 +1,140 @@
+---
+title: Installation
+description: How to install dependencies and structure your app.
+---
+
+## Frameworks
+
+<div className="mt-8 grid gap-4 sm:grid-cols-2 sm:gap-6">
+ <LinkedCard href="/docs/installation/next">
+ <svg
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ className="h-10 w-10"
+ fill="currentColor"
+ >
+ <title>Next.js</title>
+ <path d="M11.5725 0c-.1763 0-.3098.0013-.3584.0067-.0516.0053-.2159.021-.3636.0328-3.4088.3073-6.6017 2.1463-8.624 4.9728C1.1004 6.584.3802 8.3666.1082 10.255c-.0962.659-.108.8537-.108 1.7474s.012 1.0884.108 1.7476c.652 4.506 3.8591 8.2919 8.2087 9.6945.7789.2511 1.6.4223 2.5337.5255.3636.04 1.9354.04 2.299 0 1.6117-.1783 2.9772-.577 4.3237-1.2643.2065-.1056.2464-.1337.2183-.1573-.0188-.0139-.8987-1.1938-1.9543-2.62l-1.919-2.592-2.4047-3.5583c-1.3231-1.9564-2.4117-3.556-2.4211-3.556-.0094-.0026-.0187 1.5787-.0235 3.509-.0067 3.3802-.0093 3.5162-.0516 3.596-.061.115-.108.1618-.2064.2134-.075.0374-.1408.0445-.495.0445h-.406l-.1078-.068a.4383.4383 0 01-.1572-.1712l-.0493-.1056.0053-4.703.0067-4.7054.0726-.0915c.0376-.0493.1174-.1125.1736-.143.0962-.047.1338-.0517.5396-.0517.4787 0 .5584.0187.6827.1547.0353.0377 1.3373 1.9987 2.895 4.3608a10760.433 10760.433 0 004.7344 7.1706l1.9002 2.8782.096-.0633c.8518-.5536 1.7525-1.3418 2.4657-2.1627 1.5179-1.7429 2.4963-3.868 2.8247-6.134.0961-.6591.1078-.854.1078-1.7475 0-.8937-.012-1.0884-.1078-1.7476-.6522-4.506-3.8592-8.2919-8.2087-9.6945-.7672-.2487-1.5836-.42-2.4985-.5232-.169-.0176-1.0835-.0366-1.6123-.037zm4.0685 7.217c.3473 0 .4082.0053.4857.047.1127.0562.204.1642.237.2767.0186.061.0234 1.3653.0186 4.3044l-.0067 4.2175-.7436-1.14-.7461-1.14v-3.066c0-1.982.0093-3.0963.0234-3.1502.0375-.1313.1196-.2346.2323-.2955.0961-.0494.1313-.054.4997-.054z" />
+ </svg>
+ <p className="mt-2 font-medium">Next.js</p>
+ </LinkedCard>
+ <LinkedCard href="/docs/installation/vite">
+ <svg
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ className="h-10 w-10"
+ fill="currentColor"
+ >
+ <title>Vite</title>
+ <path d="m8.286 10.578.512-8.657a.306.306 0 0 1 .247-.282L17.377.006a.306.306 0 0 1 .353.385l-1.558 5.403a.306.306 0 0 0 .352.385l2.388-.46a.306.306 0 0 1 .332.438l-6.79 13.55-.123.19a.294.294 0 0 1-.252.14c-.177 0-.35-.152-.305-.369l1.095-5.301a.306.306 0 0 0-.388-.355l-1.433.435a.306.306 0 0 1-.389-.354l.69-3.375a.306.306 0 0 0-.37-.36l-2.32.536a.306.306 0 0 1-.374-.316zm14.976-7.926L17.284 3.74l-.544 1.887 2.077-.4a.8.8 0 0 1 .84.369.8.8 0 0 1 .034.783L12.9 19.93l-.013.025-.015.023-.122.19a.801.801 0 0 1-.672.37.826.826 0 0 1-.634-.302.8.8 0 0 1-.16-.67l1.029-4.981-1.12.34a.81.81 0 0 1-.86-.262.802.802 0 0 1-.165-.67l.63-3.08-2.027.468a.808.808 0 0 1-.768-.233.81.81 0 0 1-.217-.6l.389-6.57-7.44-1.33a.612.612 0 0 0-.64.906L11.58 23.691a.612.612 0 0 0 1.066-.004l11.26-20.135a.612.612 0 0 0-.644-.9z" />
+ </svg>
+ <p className="mt-2 font-medium">Vite</p>
+ </LinkedCard>
+ <LinkedCard href="/docs/installation/remix">
+ <svg
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ className="h-10 w-10"
+ fill="currentColor"
+ >
+ <title>Remix</title>
+ <path d="M21.511 18.508c.216 2.773.216 4.073.216 5.492H15.31c0-.309.006-.592.011-.878.018-.892.036-1.821-.109-3.698-.19-2.747-1.374-3.358-3.55-3.358H1.574v-5h10.396c2.748 0 4.122-.835 4.122-3.049 0-1.946-1.374-3.125-4.122-3.125H1.573V0h11.541c6.221 0 9.313 2.938 9.313 7.632 0 3.511-2.176 5.8-5.114 6.182 2.48.497 3.93 1.909 4.198 4.694ZM1.573 24v-3.727h6.784c1.133 0 1.379.84 1.379 1.342V24Z" />
+ </svg>
+ <p className="mt-2 font-medium">Remix</p>
+ </LinkedCard>
+ <LinkedCard href="/docs/installation/astro">
+ <svg
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ className="h-10 w-10"
+ fill="currentColor"
+ >
+ <title>Astro</title>
+ <path
+ d="M16.074 16.86C15.354 17.476 13.917 17.895 12.262 17.895C10.23 17.895 8.527 17.263 8.075 16.412C7.914 16.9 7.877 17.458 7.877 17.814C7.877 17.814 7.771 19.564 8.988 20.782C8.988 20.15 9.501 19.637 10.133 19.637C11.216 19.637 11.215 20.582 11.214 21.349V21.418C11.214 22.582 11.925 23.579 12.937 24C12.7812 23.6794 12.7005 23.3275 12.701 22.971C12.701 21.861 13.353 21.448 14.111 20.968C14.713 20.585 15.383 20.161 15.844 19.308C16.0926 18.8493 16.2225 18.3357 16.222 17.814C16.2221 17.4903 16.1722 17.1685 16.074 16.86ZM15.551 0.6C15.747 0.844 15.847 1.172 16.047 1.829L20.415 16.176C18.7743 15.3246 17.0134 14.7284 15.193 14.408L12.35 4.8C12.3273 4.72337 12.2803 4.65616 12.2162 4.60844C12.152 4.56072 12.0742 4.53505 11.9943 4.53528C11.9143 4.5355 11.8366 4.56161 11.7727 4.60969C11.7089 4.65777 11.6623 4.72524 11.64 4.802L8.83 14.405C7.00149 14.724 5.23264 15.3213 3.585 16.176L7.974 1.827C8.174 1.171 8.274 0.843 8.471 0.6C8.64406 0.385433 8.86922 0.218799 9.125 0.116C9.415 0 9.757 0 10.443 0H13.578C14.264 0 14.608 0 14.898 0.117C15.1529 0.219851 15.3783 0.386105 15.551 0.6Z"
+ fill="currentColor"
+ />
+ </svg>
+ <p className="mt-2 font-medium">Astro</p>
+ </LinkedCard>
+ <LinkedCard href="/docs/installation/laravel">
+ <svg
+ role="img"
+ viewBox="0 0 62 65"
+ fill="currentColor"
+ xmlns="http://www.w3.org/2000/svg"
+ className="h-10 w-10"
+ >
+ <path d="M61.8548 14.6253C61.8778 14.7102 61.8895 14.7978 61.8897 14.8858V28.5615C61.8898 28.737 61.8434 28.9095 61.7554 29.0614C61.6675 29.2132 61.5409 29.3392 61.3887 29.4265L49.9104 36.0351V49.1337C49.9104 49.4902 49.7209 49.8192 49.4118 49.9987L25.4519 63.7916C25.3971 63.8227 25.3372 63.8427 25.2774 63.8639C25.255 63.8714 25.2338 63.8851 25.2101 63.8913C25.0426 63.9354 24.8666 63.9354 24.6991 63.8913C24.6716 63.8838 24.6467 63.8689 24.6205 63.8589C24.5657 63.8389 24.5084 63.8215 24.456 63.7916L0.501061 49.9987C0.348882 49.9113 0.222437 49.7853 0.134469 49.6334C0.0465019 49.4816 0.000120578 49.3092 0 49.1337L0 8.10652C0 8.01678 0.0124642 7.92953 0.0348998 7.84477C0.0423783 7.8161 0.0598282 7.78993 0.0697995 7.76126C0.0884958 7.70891 0.105946 7.65531 0.133367 7.6067C0.152063 7.5743 0.179485 7.54812 0.20192 7.51821C0.230588 7.47832 0.256763 7.43719 0.290416 7.40229C0.319084 7.37362 0.356476 7.35243 0.388883 7.32751C0.425029 7.29759 0.457436 7.26518 0.498568 7.2415L12.4779 0.345059C12.6296 0.257786 12.8015 0.211853 12.9765 0.211853C13.1515 0.211853 13.3234 0.257786 13.475 0.345059L25.4531 7.2415H25.4556C25.4955 7.26643 25.5292 7.29759 25.5653 7.32626C25.5977 7.35119 25.6339 7.37362 25.6625 7.40104C25.6974 7.43719 25.7224 7.47832 25.7523 7.51821C25.7735 7.54812 25.8021 7.5743 25.8196 7.6067C25.8483 7.65656 25.8645 7.70891 25.8844 7.76126C25.8944 7.78993 25.9118 7.8161 25.9193 7.84602C25.9423 7.93096 25.954 8.01853 25.9542 8.10652V33.7317L35.9355 27.9844V14.8846C35.9355 14.7973 35.948 14.7088 35.9704 14.6253C35.9792 14.5954 35.9954 14.5692 36.0053 14.5405C36.0253 14.4882 36.0427 14.4346 36.0702 14.386C36.0888 14.3536 36.1163 14.3274 36.1375 14.2975C36.1674 14.2576 36.1923 14.2165 36.2272 14.1816C36.2559 14.1529 36.292 14.1317 36.3244 14.1068C36.3618 14.0769 36.3942 14.0445 36.4341 14.0208L48.4147 7.12434C48.5663 7.03694 48.7383 6.99094 48.9133 6.99094C49.0883 6.99094 49.2602 7.03694 49.4118 7.12434L61.3899 14.0208C61.4323 14.0457 61.4647 14.0769 61.5021 14.1055C61.5333 14.1305 61.5694 14.1529 61.5981 14.1803C61.633 14.2165 61.6579 14.2576 61.6878 14.2975C61.7103 14.3274 61.7377 14.3536 61.7551 14.386C61.7838 14.4346 61.8 14.4882 61.8199 14.5405C61.8312 14.5692 61.8474 14.5954 61.8548 14.6253ZM59.893 27.9844V16.6121L55.7013 19.0252L49.9104 22.3593V33.7317L59.8942 27.9844H59.893ZM47.9149 48.5566V37.1768L42.2187 40.4299L25.953 49.7133V61.2003L47.9149 48.5566ZM1.99677 9.83281V48.5566L23.9562 61.199V49.7145L12.4841 43.2219L12.4804 43.2194L12.4754 43.2169C12.4368 43.1945 12.4044 43.1621 12.3682 43.1347C12.3371 43.1097 12.3009 43.0898 12.2735 43.0624L12.271 43.0586C12.2386 43.0275 12.2162 42.9888 12.1887 42.9539C12.1638 42.9203 12.1339 42.8916 12.114 42.8567L12.1127 42.853C12.0903 42.8156 12.0766 42.7707 12.0604 42.7283C12.0442 42.6909 12.023 42.656 12.013 42.6161C12.0005 42.5688 11.998 42.5177 11.9931 42.4691C11.9881 42.4317 11.9781 42.3943 11.9781 42.3569V15.5801L6.18848 12.2446L1.99677 9.83281ZM12.9777 2.36177L2.99764 8.10652L12.9752 13.8513L22.9541 8.10527L12.9752 2.36177H12.9777ZM18.1678 38.2138L23.9574 34.8809V9.83281L19.7657 12.2459L13.9749 15.5801V40.6281L18.1678 38.2138ZM48.9133 9.14105L38.9344 14.8858L48.9133 20.6305L58.8909 14.8846L48.9133 9.14105ZM47.9149 22.3593L42.124 19.0252L37.9323 16.6121V27.9844L43.7219 31.3174L47.9149 33.7317V22.3593ZM24.9533 47.987L39.59 39.631L46.9065 35.4555L36.9352 29.7145L25.4544 36.3242L14.9907 42.3482L24.9533 47.987Z" />
+ </svg>
+ <p className="mt-2 font-medium">Laravel</p>
+ </LinkedCard>
+ <LinkedCard href="/docs/installation/gatsby">
+ <svg
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ className="h-10 w-10"
+ fill="currentColor"
+ >
+ <title>Gatsby</title>
+ <path d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.6 0 12 0zm0 2.571c3.171 0 5.915 1.543 7.629 3.858l-1.286 1.115C16.886 5.572 14.571 4.286 12 4.286c-3.343 0-6.171 2.143-7.286 5.143l9.857 9.857c2.486-.857 4.373-3 4.973-5.572h-4.115V12h6c0 4.457-3.172 8.228-7.372 9.17L2.83 9.944C3.772 5.743 7.543 2.57 12 2.57zm-9.429 9.6l9.344 9.258c-2.4-.086-4.801-.943-6.601-2.743-1.8-1.8-2.743-4.201-2.743-6.515z" />
+ </svg>
+ <p className="mt-2 font-medium">Gatsby</p>
+ </LinkedCard>
+ <LinkedCard href="/docs/installation/manual">
+ <svg
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ className="h-10 w-10"
+ fill="currentColor"
+ >
+ <title>React</title>
+ <path d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z" />
+ </svg>
+ <p className="mt-2 font-medium">Manual</p>
+ </LinkedCard>
+</div>
+
+## TypeScript
+
+This project and the components are written in TypeScript. We recommend using TypeScript for your project as well.
+
+However we provide a JavaScript version of the components as well. The JavaScript version is available via the [cli](/docs/cli).
+
+To opt-out of TypeScript, you can use the `tsx` flag in your `components.json` file.
+
+```json {10} title="components.json"
+{
+ "style": "default",
+ "tailwind": {
+ "config": "tailwind.config.js",
+ "css": "src/app/globals.css",
+ "baseColor": "zinc",
+ "cssVariables": true
+ },
+ "rsc": false,
+ "tsx": false,
+ "aliases": {
+ "utils": "~/lib/utils",
+ "components": "~/components"
+ }
+}
+```
+
+To configure import aliases, you can use the following `jsconfig.json`:
+
+```json {4} title="jsconfig.json"
+{
+ "compilerOptions": {
+ "paths": {
+ "@/*": ["./*"]
+ }
+ }
+}
+```
diff --git a/content/docs/installation/laravel.mdx b/content/docs/installation/laravel.mdx
new file mode 100644
index 00000000..d3178ae0
--- /dev/null
+++ b/content/docs/installation/laravel.mdx
@@ -0,0 +1,56 @@
+---
+title: Laravel
+description: Install and configure Laravel with Inertia
+---
+
+<Steps>
+
+### Create project
+
+Start by creating a new Laravel project with Inertia and React using the laravel installer `laravel new my-app`:
+
+```bash
+laravel new my-app --typescript --breeze --stack=react --git --no-interaction
+```
+
+### Run the CLI
+
+Run the `shadcn` init command to setup your project:
+
+```bash
+npx shadcn@latest init
+```
+
+### Configure components.json
+
+You will be asked a few questions to configure `components.json`:
+
+```txt showLineNumbers
+Which style would you like to use?
+Which color would you like to use as base color?
+Do you want to use CSS variables for colors? › yes
+```
+
+### That's it
+
+You can now start adding components to your project.
+
+```bash
+npx shadcn@latest add button
+```
+
+The command above will add the `Button` component to your project. You can then import it like this:
+
+```tsx {1,6} showLineNumbers
+import { Button } from "@/Components/ui/button";
+
+export default function Home() {
+ return (
+ <div>
+ <Button>Click me</Button>
+ </div>
+ );
+}
+```
+
+</Steps>
diff --git a/content/docs/installation/manual.mdx b/content/docs/installation/manual.mdx
new file mode 100644
index 00000000..24bb112d
--- /dev/null
+++ b/content/docs/installation/manual.mdx
@@ -0,0 +1,245 @@
+---
+title: Manual Installation
+description: Add dependencies to your project manually.
+---
+
+<Steps>
+
+### Add Tailwind CSS
+
+Components are styled using Tailwind CSS. You need to install Tailwind CSS in your project.
+
+[Follow the Tailwind CSS installation instructions to get started.](https://tailwindcss.com/docs/installation)
+
+### Add dependencies
+
+Add the following dependencies to your project:
+
+```bash
+npm install tailwindcss-animate class-variance-authority clsx tailwind-merge
+```
+
+### Add icon library
+
+If you're using the `default` style, install `lucide-react`:
+
+```bash
+npm install lucide-react
+```
+
+If you're using the `new-york` style, install `@radix-ui/react-icons`:
+
+```bash
+npm install @radix-ui/react-icons
+```
+
+### Configure path aliases
+
+I use the `@` alias. This is how I configure it in tsconfig.json:
+
+```json {3-6} title="tsconfig.json"
+{
+ "compilerOptions": {
+ "baseUrl": ".",
+ "paths": {
+ "@/*": ["./*"]
+ }
+ }
+}
+```
+
+The `@` alias is a preference. You can use other aliases if you want.
+
+**If you use a different alias such as ~, you'll need to update import statements when adding components.**
+
+### Configure tailwind.config.js
+
+Here's what my `tailwind.config.js` file looks like:
+
+```js title="tailwind.config.js"
+const { fontFamily } = require("tailwindcss/defaultTheme");
+
+/** @type {import('tailwindcss').Config} */
+module.exports = {
+ darkMode: ["class"],
+ content: ["app/**/*.{ts,tsx}", "components/**/*.{ts,tsx}"],
+ theme: {
+ container: {
+ center: true,
+ padding: "2rem",
+ screens: {
+ "2xl": "1400px",
+ },
+ },
+ extend: {
+ colors: {
+ border: "hsl(var(--border))",
+ input: "hsl(var(--input))",
+ ring: "hsl(var(--ring))",
+ background: "hsl(var(--background))",
+ foreground: "hsl(var(--foreground))",
+ primary: {
+ DEFAULT: "hsl(var(--primary))",
+ foreground: "hsl(var(--primary-foreground))",
+ },
+ secondary: {
+ DEFAULT: "hsl(var(--secondary))",
+ foreground: "hsl(var(--secondary-foreground))",
+ },
+ destructive: {
+ DEFAULT: "hsl(var(--destructive))",
+ foreground: "hsl(var(--destructive-foreground))",
+ },
+ muted: {
+ DEFAULT: "hsl(var(--muted))",
+ foreground: "hsl(var(--muted-foreground))",
+ },
+ accent: {
+ DEFAULT: "hsl(var(--accent))",
+ foreground: "hsl(var(--accent-foreground))",
+ },
+ popover: {
+ DEFAULT: "hsl(var(--popover))",
+ foreground: "hsl(var(--popover-foreground))",
+ },
+ card: {
+ DEFAULT: "hsl(var(--card))",
+ foreground: "hsl(var(--card-foreground))",
+ },
+ },
+ borderRadius: {
+ lg: `var(--radius)`,
+ md: `calc(var(--radius) - 2px)`,
+ sm: "calc(var(--radius) - 4px)",
+ },
+ fontFamily: {
+ sans: ["var(--font-sans)", ...fontFamily.sans],
+ },
+ keyframes: {
+ "accordion-down": {
+ from: { height: "0" },
+ to: { height: "var(--radix-accordion-content-height)" },
+ },
+ "accordion-up": {
+ from: { height: "var(--radix-accordion-content-height)" },
+ to: { height: "0" },
+ },
+ },
+ animation: {
+ "accordion-down": "accordion-down 0.2s ease-out",
+ "accordion-up": "accordion-up 0.2s ease-out",
+ },
+ },
+ },
+ plugins: [require("tailwindcss-animate")],
+};
+```
+
+### Configure styles
+
+Add the following to your styles/globals.css file. You can learn more about using CSS variables for theming in the [theming section](/docs/theming).
+
+```css title="globals.css"
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+ :root {
+ --background: 0 0% 100%;
+ --foreground: 222.2 47.4% 11.2%;
+
+ --muted: 210 40% 96.1%;
+ --muted-foreground: 215.4 16.3% 46.9%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 222.2 47.4% 11.2%;
+
+ --border: 214.3 31.8% 91.4%;
+ --input: 214.3 31.8% 91.4%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 222.2 47.4% 11.2%;
+
+ --primary: 222.2 47.4% 11.2%;
+ --primary-foreground: 210 40% 98%;
+
+ --secondary: 210 40% 96.1%;
+ --secondary-foreground: 222.2 47.4% 11.2%;
+
+ --accent: 210 40% 96.1%;
+ --accent-foreground: 222.2 47.4% 11.2%;
+
+ --destructive: 0 100% 50%;
+ --destructive-foreground: 210 40% 98%;
+
+ --ring: 215 20.2% 65.1%;
+
+ --radius: 0.5rem;
+ }
+
+ .dark {
+ --background: 224 71% 4%;
+ --foreground: 213 31% 91%;
+
+ --muted: 223 47% 11%;
+ --muted-foreground: 215.4 16.3% 56.9%;
+
+ --accent: 216 34% 17%;
+ --accent-foreground: 210 40% 98%;
+
+ --popover: 224 71% 4%;
+ --popover-foreground: 215 20.2% 65.1%;
+
+ --border: 216 34% 17%;
+ --input: 216 34% 17%;
+
+ --card: 224 71% 4%;
+ --card-foreground: 213 31% 91%;
+
+ --primary: 210 40% 98%;
+ --primary-foreground: 222.2 47.4% 1.2%;
+
+ --secondary: 222.2 47.4% 11.2%;
+ --secondary-foreground: 210 40% 98%;
+
+ --destructive: 0 63% 31%;
+ --destructive-foreground: 210 40% 98%;
+
+ --ring: 216 34% 17%;
+
+ --radius: 0.5rem;
+ }
+}
+
+@layer base {
+ * {
+ @apply border-border;
+ }
+ body {
+ @apply bg-background text-foreground;
+ font-feature-settings:
+ "rlig" 1,
+ "calt" 1;
+ }
+}
+```
+
+### Add a cn helper
+
+I use a `cn` helper to make it easier to conditionally add Tailwind CSS classes. Here's how I define it in `lib/utils.ts`:
+
+```ts title="lib/utils.ts"
+import { clsx, type ClassValue } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
+```
+
+### That's it
+
+You can now start adding components to your project.
+
+</Steps>
diff --git a/content/docs/installation/next.mdx b/content/docs/installation/next.mdx
new file mode 100644
index 00000000..57642f2e
--- /dev/null
+++ b/content/docs/installation/next.mdx
@@ -0,0 +1,58 @@
+---
+title: Next.js
+description: Install and configure Next.js.
+---
+
+<Steps>
+
+### Create project
+
+Run the `init` command to create a new Next.js project or to setup an existing one:
+
+```bash
+npx shadcn@latest init
+```
+
+<Callout className="mt-4">
+
+You can use the `-d` flag for defaults i.e `new-york`, `zinc` and `yes` for the css variables.
+
+```bash
+npx shadcn@latest init -d
+```
+
+</Callout>
+
+### Configure components.json
+
+You will be asked a few questions to configure `components.json`:
+
+```txt showLineNumbers
+Which style would you like to use? › New York
+Which color would you like to use as base color? › Zinc
+Do you want to use CSS variables for colors? › no / yes
+```
+
+### That's it
+
+You can now start adding components to your project.
+
+```bash
+npx shadcn@latest add button
+```
+
+The command above will add the `Button` component to your project. You can then import it like this:
+
+```tsx {1,6} showLineNumbers
+import { Button } from "@/components/ui/button";
+
+export default function Home() {
+ return (
+ <div>
+ <Button>Click me</Button>
+ </div>
+ );
+}
+```
+
+</Steps>
diff --git a/content/docs/installation/nextjs.mdx b/content/docs/installation/nextjs.mdx
deleted file mode 100644
index abde9b66..00000000
--- a/content/docs/installation/nextjs.mdx
+++ /dev/null
@@ -1,76 +0,0 @@
----
-title: Next.js
-description: Install and configure Magic UI for Next.js
-published: true
----
-
-<Steps>
-
-### Information
-
-This project and all components are written in **TypeScript**. We recommend using TypeScript for your project as well.
-
-### Create project
-
-Start by creating a new Next.js project using create-next-app:
-
-```bash
-npx create-next-app@latest
-```
-
-### Configure your project
-
-You will be asked a few questions to configure your project:
-
-```txt showLineNumbers
-What is your project named? my-app
-Would you like to use TypeScript? No / Yes
-Would you like to use ESLint? No / Yes
-Would you like to use Tailwind CSS? No / Yes
-Would you like to use `src/` directory? No / Yes
-Would you like to use App Router? (recommended) No / Yes
-Would you like to customize the default import alias (@/*)? No / Yes
-What import alias would you like configured? @/*
-```
-
-### Run the CLI
-
-Run the `magicui-cli` init command to setup your project:
-
-```bash
-npx magicui-cli init
-```
-
-### Configure components.json
-
-You will be asked a few questions to configure `components.json`:
-
-```txt showLineNumbers
-Which style would you like to use? » Default
-Which color would you like to use as base color? » Slate
-Would you like to use CSS variables for colors? ... no / yes
-```
-
-### That's it
-
-You can now start adding components to your project.
-
-```bash
-npx magicui-cli add blur-in
-```
-
-The command above will add the `Blur In` animation component to your project. You can then import it like this:
-
-```tsx {1,6} showLineNumbers
-import BlurIn from "@/components/magicui/blur-in";
-
-export default function Home() {
- return (
- <div>
- <BlurIn word={"Hello World"}></BlurIn>
- </div>
- );
-}
-```
-
-</Steps>
diff --git a/content/docs/installation/react.mdx b/content/docs/installation/react.mdx
deleted file mode 100644
index 97e89c64..00000000
--- a/content/docs/installation/react.mdx
+++ /dev/null
@@ -1,39 +0,0 @@
----
-title: React.js
-description: Install and configure Magic UI for React.js
-published: true
----
-
-<Steps>
-
-### Information
-
-This project and all components are written in **TypeScript**. We recommend using TypeScript for your project as well.
-
-### Prerequisites
-
-These are the main dependencies you will need to get started.
-
-```bash
-npm install tailwindcss@latest clsx tailwind-merge framer-motion
-```
-
-Copy and paste the following code into your project.
-
-```typescript
-// lib/utils.ts
-import clsx, { ClassValue } from "clsx";
-import { twMerge } from "tailwind-merge";
-
-export function cn(...inputs: ClassValue[]) {
- return twMerge(clsx(inputs));
-}
-```
-
-### Install components
-
-That's it! Now you can go to any [component](/components) page and follow the instructions there
-
-You only need to copy + paste the components you need! No bloat or third-party dependencies.
-
-</Steps>
diff --git a/content/docs/installation/remix.mdx b/content/docs/installation/remix.mdx
index 9a3b3fb1..cbca134c 100644
--- a/content/docs/installation/remix.mdx
+++ b/content/docs/installation/remix.mdx
@@ -1,7 +1,6 @@
---
title: Remix
description: Install and configure Remix.
-author: abdrahmanES1
---
<Steps>
@@ -16,10 +15,10 @@ npx create-remix@latest my-app
### Run the CLI
-Run the `magicui-cli` init command to setup your project:
+Run the `shadcn-ui` init command to setup your project:
```bash
-npx magicui-cli init
+npx shadcn@latest init
```
### Configure components.json
@@ -27,24 +26,20 @@ npx magicui-cli init
You will be asked a few questions to configure `components.json`:
```txt showLineNumbers
-✔ Would you like to use TypeScript (recommended)? … no / yes
-✔ Which style would you like to use? › Default
-✔ Which color would you like to use as base color? › Slate
-✔ Where is your global CSS file? … app/tailwind.css
-✔ Would you like to use CSS variables for colors? … no / yes
-✔ Are you using a custom tailwind prefix eg. tw-? (Leave blank if not) …
-✔ Where is your tailwind.config.js located? … tailwind.config.ts
-✔ Configure the import alias for components: … ~/components
-✔ Configure the import alias for utils: … ~/lib/utils
-✔ Are you using React Server Components? … no / yes
-✔ Write configuration to components.json. Proceed? … yes
+Which style would you like to use? › New York
+Which color would you like to use as base color? › Zinc
+Do you want to use CSS variables for colors? › no / yes
```
### App structure
+<Callout>
+
**Note**: This app structure is only a suggestion. You can place the files wherever you want.
-- Place the UI components in the `app/components/magic-ui` folder.
+</Callout>
+
+- Place the UI components in the `app/components/ui` folder.
- Your own components can be placed in the `app/components` folder.
- The `app/lib` folder contains all the utility functions. We have a `utils.ts` where we define the `cn` helper.
- The `app/tailwind.css` file contains the global CSS.
@@ -80,23 +75,15 @@ export default {
### Add `tailwind.css` to your app
-```bash
-npm install @remix-run/css-bundle
-```
-
In your `app/root.tsx` file, import the `tailwind.css` file:
```js {1, 4}
-import { cssBundleHref } from "@remix-run/css-bundle";
-import type { LinksFunction } from "@remix-run/node"; // or cloudflare/deno
-import styles from "./tailwind.css"
+import styles from "./tailwind.css?url"
export const links: LinksFunction = () => [
- ...(cssBundleHref
- ? [{ rel: "stylesheet", href: cssBundleHref }]
- : []),
- // ...
-];
+ { rel: "stylesheet", href: styles },
+ ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
+]
```
### That's it
@@ -104,18 +91,18 @@ export const links: LinksFunction = () => [
You can now start adding components to your project.
```bash
-npx magicui-cli add blur-in
+npx shadcn@latest add button
```
The command above will add the `Button` component to your project. You can then import it like this:
```tsx {1,6} showLineNumbers
-import BlurIn from "~/components/magicui/blur-in";
+import { Button } from "~/components/ui/button";
export default function Home() {
return (
<div>
- <BlurIn word={"Hello World"}></BlurIn>
+ <Button>Click me</Button>
</div>
);
}
diff --git a/content/docs/installation/svelte.mdx b/content/docs/installation/svelte.mdx
deleted file mode 100644
index 8783706a..00000000
--- a/content/docs/installation/svelte.mdx
+++ /dev/null
@@ -1,40 +0,0 @@
----
-title: Svelte
-description: Install and configure Magic UI for Svelte
-published: true
----
-
-<Steps>
-
-### Information
-
-This project and all components are written in **TypeScript**. We recommend using TypeScript for your project as well.
-
-### Prerequisites
-
-These are the main dependencies you will need to get started.
-
-```bash
-npx @svelte-add/tailwindcss@latest # add tailwindcss
-npm install tailwind-variants clsx tailwind-merge svelte-inview
-```
-
-Copy and paste the following code into your project.
-
-```typescript
-// lib/utils.ts
-import { clsx, type ClassValue } from "clsx";
-import { twMerge } from "tailwind-merge";
-
-export function cn(...inputs: ClassValue[]) {
- return twMerge(clsx(inputs));
-}
-```
-
-### Install components
-
-That's it! Now you can go to any [component](/components) page and follow the instructions there
-
-You only need to copy + paste the components you need! No bloat or third-party dependencies.
-
-</Steps>
diff --git a/content/docs/installation/vite.mdx b/content/docs/installation/vite.mdx
index e3d38fc6..6264f562 100644
--- a/content/docs/installation/vite.mdx
+++ b/content/docs/installation/vite.mdx
@@ -1,7 +1,6 @@
---
title: Vite
description: Install and configure Vite.
-author: abdrahmanES1
---
<Steps>
@@ -26,7 +25,33 @@ npx tailwindcss init -p
### Edit tsconfig.json file
-Add the following code to the `tsconfig.json` or `tsconfig.app.json` file to resolve paths:
+The current version of Vite splits TypeScript configuration into three files, two of which need to be edited.
+Add the `baseUrl` and `paths` properties to the `compilerOptions` section of the `tsconfig.json` and
+`tsconfig.app.json` files:
+
+```ts {11-16} showLineNumbers
+{
+ "files": [],
+ "references": [
+ {
+ "path": "./tsconfig.app.json"
+ },
+ {
+ "path": "./tsconfig.node.json"
+ }
+ ],
+ "compilerOptions": {
+ "baseUrl": ".",
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ }
+}
+```
+
+### Edit tsconfig.app.json file
+
+Add the following code to the `tsconfig.app.json` file to resolve paths, for your IDE:
```ts {4-9} showLineNumbers
{
@@ -69,10 +94,10 @@ export default defineConfig({
### Run the CLI
-Run the `magicui-cli` init command to setup your project:
+Run the `shadcn-ui` init command to setup your project:
```bash
-npx magicui-cli init
+npx shadcn@latest init
```
### Configure components.json
@@ -80,15 +105,9 @@ npx magicui-cli init
You will be asked a few questions to configure `components.json`:
```txt showLineNumbers
-Would you like to use TypeScript (recommended)? no / yes
-Which style would you like to use? › Default
-Which color would you like to use as base color? › Slate
-Where is your global CSS file? › › src/index.css
+Which style would you like to use? › New York
+Which color would you like to use as base color? › Zinc
Do you want to use CSS variables for colors? › no / yes
-Where is your tailwind.config.js located? › tailwind.config.js
-Configure the import alias for components: › @/components
-Configure the import alias for utils: › @/lib/utils
-Are you using React Server Components? › no / yes (no)
```
### That's it
@@ -96,18 +115,18 @@ Are you using React Server Components? › no / yes (no)
You can now start adding components to your project.
```bash
-npx magicui-cli add blur-in
+npx shadcn@latest add button
```
The command above will add the `Button` component to your project. You can then import it like this:
```tsx {1,6} showLineNumbers
-import BlurIn from "@/components/magicui/blur-in";
+import { Button } from "@/components/ui/button";
export default function Home() {
return (
<div>
- <BlurIn word={"Hello World"}></BlurIn>
+ <Button>Click me</Button>
</div>
);
}
diff --git a/content/docs/installation/vue.mdx b/content/docs/installation/vue.mdx
deleted file mode 100644
index 52df1e41..00000000
--- a/content/docs/installation/vue.mdx
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: Vue.js
-description: Install and configure Magic UI for Vue.js
-published: true
----
-
-<p>Documentation for Vue.js is coming soon.</p>
diff --git a/lib/rehype-component.ts b/lib/rehype-component.ts
index a3b3c87f..9ca00ee0 100644
--- a/lib/rehype-component.ts
+++ b/lib/rehype-component.ts
@@ -5,71 +5,89 @@ import { visit } from "unist-util-visit";
import { UnistNode, UnistTree } from "@/types/unist";
-import { registry } from "../registry";
-
-// import { styles } from "../registry/styles"
+import { Index } from "../__registry__";
+import { styles } from "../registry/registry-styles";
export function rehypeComponent() {
return async (tree: UnistTree) => {
visit(tree, (node: UnistNode) => {
- const { value: src } = getNodeAttributeByName(node, "src") || {};
+ const { value: srcPath } = getNodeAttributeByName(node, "src") || {};
if (node.name === "ComponentSource") {
const name = getNodeAttributeByName(node, "name")?.value as string;
+ const fileName = getNodeAttributeByName(node, "fileName")?.value as
+ | string
+ | undefined;
- if (!name) {
+ if (!name && !srcPath) {
return null;
}
try {
- // for (const style of styles) {
- const component = registry[name];
- const src = component.files[0];
-
- // Read the source file.
- const filePath = path.join(process.cwd(), src);
- let source = fs.readFileSync(filePath, "utf8");
-
- // Replace imports.
- // TODO: Use @swc/core and a visitor to replace this.
- // For now a simple regex should do.
- source = source.replaceAll(`@/registry/`, "@/");
- // source = source.replaceAll("export default", "export");
-
- // Add code as children so that rehype can take over at build time.
- node.children?.push(
- u("element", {
- tagName: "pre",
- properties: {
- __src__: src,
- },
- // attributes: [
- // {
- // name: "styleName",
- // type: "mdxJsxAttribute",
- // value: style.name,
- // },
- // ],
- children: [
- u("element", {
- tagName: "code",
- properties: {
- className: ["language-tsx"],
+ for (const style of styles) {
+ let src: string;
+
+ if (srcPath) {
+ src = srcPath as string;
+ } else {
+ const component = Index[style.name][name];
+ src = fileName
+ ? component.files.find((file: string) => {
+ return (
+ file.endsWith(`${fileName}.tsx`) ||
+ file.endsWith(`${fileName}.ts`)
+ );
+ }) || component.files[0]
+ : component.files[0];
+ }
+
+ // Read the source file.
+ const filePath = path.join(process.cwd(), src);
+ let source = fs.readFileSync(filePath, "utf8");
+
+ // Replace imports.
+ // TODO: Use @swc/core and a visitor to replace this.
+ // For now a simple regex should do.
+ source = source.replaceAll(
+ `@/registry/${style.name}/`,
+ "@/components/",
+ );
+ source = source.replaceAll("export default", "export");
+
+ // Add code as children so that rehype can take over at build time.
+ node.children?.push(
+ u("element", {
+ tagName: "pre",
+ properties: {
+ __src__: src,
+ },
+ attributes: [
+ {
+ name: "styleName",
+ type: "mdxJsxAttribute",
+ value: style.name,
},
- data: {
- meta: `event="copy_source_code"`,
- },
- children: [
- {
- type: "text",
- value: source,
+ ],
+ children: [
+ u("element", {
+ tagName: "code",
+ properties: {
+ className: ["language-tsx"],
+ },
+ data: {
+ meta: `event="copy_source_code"`,
},
- ],
- }),
- ],
- }),
- );
- // }
+ children: [
+ {
+ type: "text",
+ value: source,
+ },
+ ],
+ }),
+ ],
+ }),
+ );
+ }
} catch (error) {
console.error(error);
}
@@ -83,50 +101,50 @@ export function rehypeComponent() {
}
try {
- // for (const style of styles) {
- const component = registry[name];
- const src = component.files[0];
-
- // Read the source file.
- const filePath = path.join(process.cwd(), src);
- let source = fs.readFileSync(filePath, "utf8");
-
- // console.log("name ", name);
- // console.log("source ", source);
-
- // Replace imports.
- // TODO: Use @swc/core and a visitor to replace this.
- // For now a simple regex should do.
- source = source.replaceAll(`@/registry/`, "@/");
- source = source.replaceAll("export default", "export");
-
- // Add code as children so that rehype can take over at build time.
- node.children?.push(
- u("element", {
- tagName: "pre",
- properties: {
- __src__: src,
- },
- children: [
- u("element", {
- tagName: "code",
- properties: {
- className: ["language-tsx"],
- },
- data: {
- meta: `event="copy_usage_code"`,
- },
- children: [
- {
- type: "text",
- value: source,
+ for (const style of styles) {
+ const component = Index[style.name][name];
+ const src = component.files[0];
+
+ // Read the source file.
+ const filePath = path.join(process.cwd(), src);
+ let source = fs.readFileSync(filePath, "utf8");
+
+ // Replace imports.
+ // TODO: Use @swc/core and a visitor to replace this.
+ // For now a simple regex should do.
+ source = source.replaceAll(
+ `@/registry/${style.name}/`,
+ "@/components/",
+ );
+ source = source.replaceAll("export default", "export");
+
+ // Add code as children so that rehype can take over at build time.
+ node.children?.push(
+ u("element", {
+ tagName: "pre",
+ properties: {
+ __src__: src,
+ },
+ children: [
+ u("element", {
+ tagName: "code",
+ properties: {
+ className: ["language-tsx"],
},
- ],
- }),
- ],
- }),
- );
- // }
+ data: {
+ meta: `event="copy_usage_code"`,
+ },
+ children: [
+ {
+ type: "text",
+ value: source,
+ },
+ ],
+ }),
+ ],
+ }),
+ );
+ }
} catch (error) {
console.error(error);
}
@@ -139,16 +157,16 @@ function getNodeAttributeByName(node: UnistNode, name: string) {
return node.attributes?.find((attribute) => attribute.name === name);
}
-// function getComponentSourceFileContent(node: UnistNode) {
-// const src = getNodeAttributeByName(node, "src")?.value as string;
+function getComponentSourceFileContent(node: UnistNode) {
+ const src = getNodeAttributeByName(node, "src")?.value as string;
-// if (!src) {
-// return null;
-// }
+ if (!src) {
+ return null;
+ }
-// // Read the source file.
-// const filePath = path.join(process.cwd(), src);
-// const source = fs.readFileSync(filePath, "utf8");
+ // Read the source file.
+ const filePath = path.join(process.cwd(), src);
+ const source = fs.readFileSync(filePath, "utf8");
-// return source;
-// }
+ return source;
+}
diff --git a/lib/use-config.ts b/lib/use-config.ts
new file mode 100644
index 00000000..48c54adc
--- /dev/null
+++ b/lib/use-config.ts
@@ -0,0 +1,21 @@
+import { useAtom } from "jotai";
+import { atomWithStorage } from "jotai/utils";
+
+import { BaseColor } from "@/registry/registry-base-colors";
+import { Style } from "@/registry/registry-styles";
+
+type Config = {
+ style: Style["name"];
+ theme: BaseColor["name"];
+ radius: number;
+};
+
+const configAtom = atomWithStorage<Config>("config", {
+ style: "default",
+ theme: "zinc",
+ radius: 0.5,
+});
+
+export function useConfig() {
+ return useAtom(configAtom);
+}
diff --git a/next.config.mjs b/next.config.mjs
index 843b692b..f8b53d94 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -7,17 +7,6 @@ const nextConfig = {
swcMinify: true,
experimental: {
optimizeCss: true,
- turbo: {
- resolveExtensions: [
- ".mdx",
- ".tsx",
- ".ts",
- ".jsx",
- ".js",
- ".mjs",
- ".json",
- ],
- },
},
images: {
domains: ["localhost", "cdn.magicui.design"],
@@ -44,6 +33,11 @@ const nextConfig = {
destination: "/docs/components/marquee",
permanent: true,
},
+ {
+ source: "/r/:name",
+ destination: "/r/styles/default/:name.json",
+ permanent: true,
+ },
];
},
};
diff --git a/package.json b/package.json
index 4c4eb758..bce703ba 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,7 @@
"name": "magicui",
"version": "0.1.1",
"private": true,
+ "type": "module",
"scripts": {
"prefix:cli": "pnpm --prefix ./packages/cli/ -- ",
"install:cli": "pnpm prefix:cli install",
@@ -10,9 +11,10 @@
"release:cli": "pnpm prefix:cli release",
"preinstall": "npx only-allow pnpm",
"dev": "next dev",
- "prebuild": "pnpm build:registry",
+ "prebuild": "pnpm build:docs && pnpm build:registry",
"build": "next build",
- "build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.ts",
+ "build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && prettier --loglevel silent --write \"registry/**/*.{ts,tsx,mdx}\" --cache",
+ "build:docs": "contentlayer build",
"typecheck": "tsc --noEmit",
"start": "next start",
"lint": "next lint",
@@ -41,6 +43,7 @@
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-tooltip": "^1.1.2",
"@t3-oss/env-nextjs": "^0.7.1",
+ "@types/lodash.template": "^4.5.3",
"autoprefixer": "10.4.14",
"canvas-confetti": "^1.9.3",
"class-variance-authority": "^0.6.0",
@@ -51,11 +54,11 @@
"crisp-sdk-web": "^1.0.25",
"critters": "^0.0.24",
"date-fns": "^2.30.0",
- "eslint": "8.55.0",
- "eslint-config-next": "14.2.4",
"framer-motion": "^11.3.31",
"geist": "^1.2.2",
"gray-matter": "^4.0.3",
+ "jotai": "^2.10.0",
+ "lodash.template": "^4.5.0",
"lucide-react": "^0.401.0",
"next": "14.2.4",
"next-contentlayer": "^0.3.4",
@@ -70,32 +73,32 @@
"react-hook-form": "^7.45.0",
"react-icon-cloud": "^4.1.4",
"react-spring": "^9.7.3",
- "react-tweet": "^3.1.1",
+ "react-tweet": "^3.2.1",
"schema-dts": "^1.1.2",
"sonner": "^1.5.0",
"tailwind-merge": "^2.4.0",
- "turbo": "^2.0.6",
+ "ts-morph": "^23.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
- "@ianvs/prettier-plugin-sort-imports": "^4.2.1",
+ "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"@tailwindcss/typography": "^0.5.9",
"@types/canvas-confetti": "^1.6.4",
"@types/node": "^20.8.9",
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
"cssnano": "^6.0.3",
+ "eslint": "8.55.0",
+ "eslint-config-next": "14.2.4",
"eslint-config-prettier": "^9.1.0",
- "eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-tailwindcss": "^3.17.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"mdast-util-toc": "^6.1.1",
"npm-run-all": "^4.1.5",
- "prettier": "^3.0.0",
- "prettier-plugin-tailwindcss": "^0.4.1",
+ "prettier": "^3.3.3",
"rehype-autolink-headings": "^6.1.1",
"rehype-pretty-code": "^0.9.11",
"rehype-slug": "^5.1.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 85be91e5..f7f7d9c3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -65,6 +65,9 @@ importers:
'@t3-oss/env-nextjs':
specifier: ^0.7.1
+ '@types/lodash.template':
+ specifier: ^4.5.3
+ version: 4.5.3
autoprefixer:
specifier: 10.4.14
version: 10.4.14([email protected])
@@ -95,12 +98,6 @@ importers:
date-fns:
specifier: ^2.30.0
version: 2.30.0
- eslint:
- specifier: 8.55.0
- version: 8.55.0
- eslint-config-next:
- specifier: 14.2.4
framer-motion:
specifier: ^11.3.31
@@ -110,6 +107,12 @@ importers:
gray-matter:
specifier: ^4.0.3
version: 4.0.3
+ jotai:
+ specifier: ^2.10.0
+ version: 2.10.0(@types/[email protected])([email protected])
+ lodash.template:
+ specifier: ^4.5.0
+ version: 4.5.0
lucide-react:
specifier: ^0.401.0
version: 0.401.0([email protected])
@@ -153,8 +156,8 @@ importers:
specifier: ^9.7.3
react-tweet:
- specifier: ^3.1.1
+ specifier: ^3.2.1
schema-dts:
specifier: ^1.1.2
version: 1.1.2([email protected])
@@ -164,9 +167,9 @@ importers:
tailwind-merge:
specifier: ^2.4.0
version: 2.4.0
- turbo:
- specifier: ^2.0.6
- version: 2.0.6
+ ts-morph:
+ specifier: ^23.0.0
+ version: 23.0.0
zod:
specifier: ^3.23.8
version: 3.23.8
@@ -178,8 +181,8 @@ importers:
specifier: ^19.2.2
version: 19.2.2
'@ianvs/prettier-plugin-sort-imports':
- specifier: ^4.2.1
- version: 4.2.1([email protected])
+ specifier: ^4.3.1
+ version: 4.3.1([email protected])
'@tailwindcss/typography':
specifier: ^0.5.9
@@ -198,12 +201,15 @@ importers:
cssnano:
specifier: ^6.0.3
version: 6.0.5([email protected])
+ eslint:
+ specifier: 8.55.0
+ version: 8.55.0
+ eslint-config-next:
+ specifier: 14.2.4
eslint-config-prettier:
specifier: ^9.1.0
version: 9.1.0([email protected])
- eslint-plugin-prettier:
- specifier: ^5.1.3
eslint-plugin-tailwindcss:
specifier: ^3.17.0
@@ -220,11 +226,8 @@ importers:
specifier: ^4.1.5
version: 4.1.5
prettier:
- specifier: ^3.0.0
- version: 3.2.5
- prettier-plugin-tailwindcss:
- specifier: ^0.4.1
+ specifier: ^3.3.3
+ version: 3.3.3
rehype-autolink-headings:
specifier: ^6.1.1
version: 6.1.1
@@ -1346,8 +1349,8 @@ packages:
resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}
deprecated: Use @eslint/object-schema instead
- '@ianvs/[email protected]':
- resolution: {integrity: sha512-NKN1LVFWUDGDGr3vt+6Ey3qPeN/163uR1pOPAlkWpgvAqgxQ6kSdUf1F0it8aHUtKRUzEGcK38Wxd07O61d7+Q==}
+ '@ianvs/[email protected]':
+ resolution: {integrity: sha512-ZHwbyjkANZOjaBm3ZosADD2OUYGFzQGxfy67HmGZU94mHqe7g1LCMA7YYKB1Cq+UTPCBqlAYapY0KXAjKEw8Sg==}
peerDependencies:
'@vue/compiler-sfc': 2.7.x || 3.x
prettier: 2 || 3
@@ -1751,10 +1754,6 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
- resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==}
- engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
-
'@protobufjs/[email protected]':
resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
@@ -2712,6 +2711,9 @@ packages:
resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
engines: {node: '>=10.13.0'}
+ '@ts-morph/[email protected]':
+ resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==}
+
'@tsconfig/[email protected]':
resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==}
@@ -2763,6 +2765,12 @@ packages:
resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-Mo0UYKLu1oXgkV9TVoXZLlXXjyIXlW7ZQRxi/4gQJmzJr63dmicE8gG0OkPjYTKBrBic852q0JzqrtNUWLBIyA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-w9iWudx1XWOHW5lQRS9iKpK/XuRhnN+0T7HvdCCd802FYkT1AMTnxndJHGrNJwRoRHkslGr4S29tjm1cT7x/7w==}
+
resolution: {integrity: sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==}
@@ -3288,6 +3296,9 @@ packages:
resolution: {integrity: sha512-WHr7X4o1ym94GZ96h7b1pNemZJacbOzd02dZtnVwuC4oWBaLg96PBmp2rIS1SAhUDhhC/QyS9WEqkpZIs/ZBTg==}
+ resolution: {integrity: sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==}
+
resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}
@@ -3781,20 +3792,6 @@ packages:
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
- resolution: {integrity: sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==}
- engines: {node: ^14.18.0 || >=16.0.0}
- peerDependencies:
- '@types/eslint': '>=8.0.0'
- eslint: '>=8.0.0'
- eslint-config-prettier: '*'
- prettier: '>=3.0.0'
- peerDependenciesMeta:
- '@types/eslint':
- optional: true
- eslint-config-prettier:
- optional: true
-
resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==}
engines: {node: '>=10'}
@@ -3905,9 +3902,6 @@ packages:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
- resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
-
resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
engines: {node: '>=8.6.0'}
@@ -4581,6 +4575,18 @@ packages:
resolution: {integrity: sha512-RonXAIzCiHLc8ss3Ibuz45u28GOsWE1UpfDXLbN/9NKbL4tCJf8TWYVKsoYuuh+sAUt7fsSNpA+r2+TBA6Wjmw==}
+ resolution: {integrity: sha512-8W4u0aRlOIwGlLQ0sqfl/c6+eExl5D8lZgAUolirZLktyaj4WnxO/8a0HEPmtriQAB6X5LMhXzZVmw02X0P0qQ==}
+ engines: {node: '>=12.20.0'}
+ peerDependencies:
+ '@types/react': '>=17.0.0'
+ react: '>=17.0.0'
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ react:
+ optional: true
+
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -4733,6 +4739,9 @@ packages:
resolution: {integrity: sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ resolution: {integrity: sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==}
+
resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==}
@@ -4763,6 +4772,12 @@ packages:
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
+ resolution: {integrity: sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==}
+
+ resolution: {integrity: sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==}
+
resolution: {integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==}
@@ -5131,6 +5146,10 @@ packages:
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
engines: {node: '>=16 || 14 >=14.17'}
+ resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
@@ -5147,6 +5166,11 @@ packages:
engines: {node: '>=10'}
hasBin: true
+ resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==}
+ engines: {node: '>=10'}
+ hasBin: true
+
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
engines: {node: '>=4'}
@@ -5432,6 +5456,9 @@ packages:
resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==}
+ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
+
resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==}
engines: {node: '>=4'}
@@ -5749,64 +5776,8 @@ packages:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
- resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
- engines: {node: '>=6.0.0'}
-
- resolution: {integrity: sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==}
- engines: {node: '>=12.17.0'}
- peerDependencies:
- '@ianvs/prettier-plugin-sort-imports': '*'
- '@prettier/plugin-pug': '*'
- '@shopify/prettier-plugin-liquid': '*'
- '@shufo/prettier-plugin-blade': '*'
- '@trivago/prettier-plugin-sort-imports': '*'
- prettier: ^2.2 || ^3.0
- prettier-plugin-astro: '*'
- prettier-plugin-css-order: '*'
- prettier-plugin-import-sort: '*'
- prettier-plugin-jsdoc: '*'
- prettier-plugin-marko: '*'
- prettier-plugin-organize-attributes: '*'
- prettier-plugin-organize-imports: '*'
- prettier-plugin-style-order: '*'
- prettier-plugin-svelte: '*'
- prettier-plugin-twig-melody: '*'
- peerDependenciesMeta:
- '@ianvs/prettier-plugin-sort-imports':
- optional: true
- '@prettier/plugin-pug':
- optional: true
- '@shopify/prettier-plugin-liquid':
- optional: true
- '@shufo/prettier-plugin-blade':
- optional: true
- '@trivago/prettier-plugin-sort-imports':
- optional: true
- prettier-plugin-astro:
- optional: true
- prettier-plugin-css-order:
- optional: true
- prettier-plugin-import-sort:
- optional: true
- prettier-plugin-jsdoc:
- optional: true
- prettier-plugin-marko:
- optional: true
- prettier-plugin-organize-attributes:
- optional: true
- prettier-plugin-organize-imports:
- optional: true
- prettier-plugin-style-order:
- optional: true
- prettier-plugin-svelte:
- optional: true
- prettier-plugin-twig-melody:
- optional: true
-
- resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}
+ resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==}
engines: {node: '>=14'}
hasBin: true
@@ -5974,8 +5945,8 @@ packages:
'@types/react':
optional: true
- resolution: {integrity: sha512-eYLAX5ViOICQT/vkte/IzYZZDoBnl7hDO3Ns4++lKEFr/+BohPK5Rg+Lvbfx78Qtn3AjfDG5c6n+rOt7c2J6qg==}
+ resolution: {integrity: sha512-dktP3RMuwRB4pnSDocKpSsW5Hq1IXRW6fONkHhxT5EBIXsKZzdQuI70qtub1XN2dtZdkJWWxfBm/Q+kN+vRYFA==}
peerDependencies:
react: '>= 18.0.0'
react-dom: '>= 18.0.0'
@@ -6511,10 +6482,6 @@ packages:
peerDependencies:
react: ^16.11.0 || ^17.0.0 || ^18.0.0
- resolution: {integrity: sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==}
- engines: {node: ^14.18.0 || >=16.0.0}
-
resolution: {integrity: sha512-49AwoOQNKdqKPd9CViyH5wJoSKsCDjUlzL8DxuGp3P1FsGY36NJDAa18jLZcaHAUUuTj+JB8IAo8zWgBNvBF7A==}
@@ -6607,6 +6574,9 @@ packages:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
+ resolution: {integrity: sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==}
+
resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}
hasBin: true
@@ -6635,40 +6605,6 @@ packages:
engines: {node: '>=18.0.0'}
hasBin: true
- resolution: {integrity: sha512-XpgBwWj3Ggmz/gQVqXdMKXHC1iFPMDiuwugLwSzE7Ih0O13JuNtYZKhQnopvbDQnFQCeRq2Vsm5OTWabg/oB/g==}
- cpu: [x64]
- os: [darwin]
-
- resolution: {integrity: sha512-RfeZYXIAkiA21E8lsvfptGTqz/256YD+eI1x37fedfvnHFWuIMFZGAOwJxtZc6QasQunDZ9TRRREbJNI68tkIw==}
- cpu: [arm64]
- os: [darwin]
-
- resolution: {integrity: sha512-92UDa0xNQQbx0HdSp9ag3YSS3xPdavhc7q9q9mxIAcqyjjD6VElA4Y85m4F/DDGE5SolCrvBz2sQhVmkOd6Caw==}
- cpu: [x64]
- os: [linux]
-
- resolution: {integrity: sha512-eQKu6utCVUkIH2kqOzD8OS6E0ba6COjWm6PRDTNCHQRljZW503ycaTUIdMOiJrVg1MkEjDyOReUg8s8D18aJ4Q==}
- cpu: [arm64]
- os: [linux]
-
- resolution: {integrity: sha512-+9u4EPrpoeHYCQ46dRcou9kbkSoelhOelHNcbs2d86D6ruYD/oIAHK9qgYK8LeARRz0jxhZIA/dWYdYsxJJWkw==}
- cpu: [x64]
- os: [win32]
-
- resolution: {integrity: sha512-rdrKL+p+EjtdDVg0wQ/7yTbzkIYrnb0Pw4IKcjsy3M0RqUM9UcEi67b94XOAyTa5a0GqJL1+tUj2ebsFGPgZbg==}
- cpu: [arm64]
- os: [win32]
-
- resolution: {integrity: sha512-/Ftmxd5Mq//a9yMonvmwENNUN65jOVTwhhBPQjEtNZutYT9YKyzydFGLyVM1nzhpLWahQSMamRc/RDBv5EapzA==}
- hasBin: true
-
resolution: {integrity: sha512-ZW/lVMRabETuYCd9O9ZvMhAh8GslSqaUjxmK/JLPCh6l73CvLBiuXswj/+7LdnWOgYsQ130FqLzFz5aGT4I3Ug==}
@@ -8301,14 +8237,14 @@ snapshots:
'@humanwhocodes/[email protected]': {}
dependencies:
'@babel/core': 7.24.0
'@babel/generator': 7.23.6
'@babel/parser': 7.24.0
'@babel/traverse': 7.24.0
'@babel/types': 7.24.6
- prettier: 3.2.5
+ prettier: 3.3.3
semver: 7.6.0
transitivePeerDependencies:
- supports-color
@@ -8768,8 +8704,6 @@ snapshots:
optional: true
- '@pkgr/[email protected]': {}
-
'@protobufjs/[email protected]': {}
'@protobufjs/[email protected]': {}
@@ -9920,6 +9854,13 @@ snapshots:
'@trysound/[email protected]': {}
+ '@ts-morph/[email protected]':
+ dependencies:
+ fast-glob: 3.3.2
+ minimatch: 9.0.5
+ mkdirp: 3.0.1
+ path-browserify: 1.0.1
+
'@tsconfig/[email protected]':
optional: true
@@ -9972,6 +9913,12 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]':
+ dependencies:
+ '@types/lodash': 4.17.9
+
+ '@types/[email protected]': {}
+
dependencies:
'@types/unist': 2.0.10
@@ -10550,6 +10497,8 @@ snapshots:
dependencies:
phenomenon: 1.6.0
+
dependencies:
color-name: 1.1.3
@@ -11069,7 +11018,7 @@ snapshots:
eslint: 8.55.0
eslint-import-resolver-node: 0.3.9
eslint-plugin-jsx-a11y: 6.8.0([email protected])
eslint-plugin-react: 7.33.2([email protected])
eslint-plugin-react-hooks: 4.6.0([email protected])
@@ -11097,7 +11046,7 @@ snapshots:
enhanced-resolve: 5.15.1
eslint: 8.55.0
fast-glob: 3.3.2
get-tsconfig: 4.7.5
is-core-module: 2.13.1
@@ -11119,7 +11068,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
array-includes: 3.1.7
array.prototype.findlastindex: 1.2.4
@@ -11166,15 +11115,6 @@ snapshots:
object.entries: 1.1.7
object.fromentries: 2.0.7
- dependencies:
- eslint: 8.55.0
- prettier: 3.2.5
- prettier-linter-helpers: 1.0.0
- synckit: 0.8.8
- optionalDependencies:
- eslint-config-prettier: 9.1.0([email protected])
-
dependencies:
eslint: 8.55.0
@@ -11346,8 +11286,6 @@ snapshots:
-
dependencies:
'@nodelib/fs.stat': 2.0.5
@@ -12067,6 +12005,11 @@ snapshots:
'@sideway/formula': 3.0.1
'@sideway/pinpoint': 2.0.0
+ optionalDependencies:
+ '@types/react': 18.2.12
+ react: 18.3.1
+
@@ -12232,6 +12175,8 @@ snapshots:
dependencies:
p-locate: 6.0.0
+
@@ -12252,6 +12197,15 @@ snapshots:
+ dependencies:
+ lodash._reinterpolate: 3.0.0
+ lodash.templatesettings: 4.2.0
+
+ dependencies:
+ lodash._reinterpolate: 3.0.0
+
@@ -12992,6 +12946,10 @@ snapshots:
dependencies:
brace-expansion: 2.0.1
+ dependencies:
+ brace-expansion: 2.0.1
+
@@ -13002,6 +12960,8 @@ snapshots:
+
@@ -13322,6 +13282,8 @@ snapshots:
no-case: 3.0.4
tslib: 2.6.2
+
@@ -13589,17 +13551,7 @@ snapshots:
- dependencies:
- fast-diff: 1.3.0
-
- dependencies:
- prettier: 3.2.5
- optionalDependencies:
- '@ianvs/prettier-plugin-sort-imports': 4.2.1([email protected])
-
dependencies:
@@ -13835,11 +13787,10 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
dependencies:
'@swc/helpers': 0.5.6
clsx: 2.1.1
- date-fns: 2.30.0
react: 18.3.1
react-dom: 18.3.1([email protected])
swr: 2.2.5([email protected])
@@ -14467,11 +14418,6 @@ snapshots:
react: 18.3.1
use-sync-external-store: 1.2.0([email protected])
- dependencies:
- '@pkgr/core': 0.1.1
- tslib: 2.6.2
-
@@ -14567,6 +14513,11 @@ snapshots:
+ dependencies:
+ '@ts-morph/common': 0.24.0
+ code-block-writer: 13.0.2
+
dependencies:
'@cspotcode/source-map-support': 0.8.1
@@ -14604,33 +14555,6 @@ snapshots:
optionalDependencies:
fsevents: 2.3.3
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optionalDependencies:
- turbo-darwin-64: 2.0.6
- turbo-darwin-arm64: 2.0.6
- turbo-linux-64: 2.0.6
- turbo-linux-arm64: 2.0.6
- turbo-windows-64: 2.0.6
- turbo-windows-arm64: 2.0.6
-
diff --git a/postcss.config.js b/postcss.config.cjs
similarity index 100%
rename from postcss.config.js
rename to postcss.config.cjs
diff --git a/public/r/colors/gray.json b/public/r/colors/gray.json
new file mode 100644
index 00000000..9cba353e
--- /dev/null
+++ b/public/r/colors/gray.json
@@ -0,0 +1,102 @@
+{
+ "inlineColors": {
+ "light": {
+ "background": "white",
+ "foreground": "gray-950",
+ "card": "white",
+ "card-foreground": "gray-950",
+ "popover": "white",
+ "popover-foreground": "gray-950",
+ "primary": "gray-900",
+ "primary-foreground": "gray-50",
+ "secondary": "gray-100",
+ "secondary-foreground": "gray-900",
+ "muted": "gray-100",
+ "muted-foreground": "gray-500",
+ "accent": "gray-100",
+ "accent-foreground": "gray-900",
+ "destructive": "red-500",
+ "destructive-foreground": "gray-50",
+ "border": "gray-200",
+ "input": "gray-200",
+ "ring": "gray-950"
+ },
+ "dark": {
+ "background": "gray-950",
+ "foreground": "gray-50",
+ "card": "gray-950",
+ "card-foreground": "gray-50",
+ "popover": "gray-950",
+ "popover-foreground": "gray-50",
+ "primary": "gray-50",
+ "primary-foreground": "gray-900",
+ "secondary": "gray-800",
+ "secondary-foreground": "gray-50",
+ "muted": "gray-800",
+ "muted-foreground": "gray-400",
+ "accent": "gray-800",
+ "accent-foreground": "gray-50",
+ "destructive": "red-900",
+ "destructive-foreground": "gray-50",
+ "border": "gray-800",
+ "input": "gray-800",
+ "ring": "gray-300"
+ }
+ },
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "224 71.4% 4.1%",
+ "card": "0 0% 100%",
+ "card-foreground": "224 71.4% 4.1%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "224 71.4% 4.1%",
+ "primary": "220.9 39.3% 11%",
+ "primary-foreground": "210 20% 98%",
+ "secondary": "220 14.3% 95.9%",
+ "secondary-foreground": "220.9 39.3% 11%",
+ "muted": "220 14.3% 95.9%",
+ "muted-foreground": "220 8.9% 46.1%",
+ "accent": "220 14.3% 95.9%",
+ "accent-foreground": "220.9 39.3% 11%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "210 20% 98%",
+ "border": "220 13% 91%",
+ "input": "220 13% 91%",
+ "ring": "224 71.4% 4.1%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "224 71.4% 4.1%",
+ "foreground": "210 20% 98%",
+ "card": "224 71.4% 4.1%",
+ "card-foreground": "210 20% 98%",
+ "popover": "224 71.4% 4.1%",
+ "popover-foreground": "210 20% 98%",
+ "primary": "210 20% 98%",
+ "primary-foreground": "220.9 39.3% 11%",
+ "secondary": "215 27.9% 16.9%",
+ "secondary-foreground": "210 20% 98%",
+ "muted": "215 27.9% 16.9%",
+ "muted-foreground": "217.9 10.6% 64.9%",
+ "accent": "215 27.9% 16.9%",
+ "accent-foreground": "210 20% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "210 20% 98%",
+ "border": "215 27.9% 16.9%",
+ "input": "215 27.9% 16.9%",
+ "ring": "216 12.2% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ },
+ "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n ",
+ "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 224 71.4% 4.1%;\n --card: 0 0% 100%;\n --card-foreground: 224 71.4% 4.1%;\n --popover: 0 0% 100%;\n --popover-foreground: 224 71.4% 4.1%;\n --primary: 220.9 39.3% 11%;\n --primary-foreground: 210 20% 98%;\n --secondary: 220 14.3% 95.9%;\n --secondary-foreground: 220.9 39.3% 11%;\n --muted: 220 14.3% 95.9%;\n --muted-foreground: 220 8.9% 46.1%;\n --accent: 220 14.3% 95.9%;\n --accent-foreground: 220.9 39.3% 11%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 210 20% 98%;\n --border: 220 13% 91%;\n --input: 220 13% 91%;\n --ring: 224 71.4% 4.1%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n\n .dark {\n --background: 224 71.4% 4.1%;\n --foreground: 210 20% 98%;\n --card: 224 71.4% 4.1%;\n --card-foreground: 210 20% 98%;\n --popover: 224 71.4% 4.1%;\n --popover-foreground: 210 20% 98%;\n --primary: 210 20% 98%;\n --primary-foreground: 220.9 39.3% 11%;\n --secondary: 215 27.9% 16.9%;\n --secondary-foreground: 210 20% 98%;\n --muted: 215 27.9% 16.9%;\n --muted-foreground: 217.9 10.6% 64.9%;\n --accent: 215 27.9% 16.9%;\n --accent-foreground: 210 20% 98%;\n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 210 20% 98%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --ring: 216 12.2% 83.9%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}"
+}
\ No newline at end of file
diff --git a/public/r/colors/index.json b/public/r/colors/index.json
new file mode 100644
index 00000000..c25158ef
--- /dev/null
+++ b/public/r/colors/index.json
@@ -0,0 +1,1999 @@
+{
+ "inherit": "inherit",
+ "current": "currentColor",
+ "transparent": "transparent",
+ "black": {
+ "hex": "#000000",
+ "rgb": "rgb(0,0,0)",
+ "hsl": "hsl(0,0%,0%)",
+ "rgbChannel": "0 0 0",
+ "hslChannel": "0 0% 0%"
+ },
+ "white": {
+ "hex": "#ffffff",
+ "rgb": "rgb(255,255,255)",
+ "hsl": "hsl(0,0%,100%)",
+ "rgbChannel": "255 255 255",
+ "hslChannel": "0 0% 100%"
+ },
+ "slate": [
+ {
+ "scale": 50,
+ "hex": "#f8fafc",
+ "rgb": "rgb(248,250,252)",
+ "hsl": "hsl(210,40%,98%)",
+ "rgbChannel": "248 250 252",
+ "hslChannel": "210 40% 98%"
+ },
+ {
+ "scale": 100,
+ "hex": "#f1f5f9",
+ "rgb": "rgb(241,245,249)",
+ "hsl": "hsl(210,40%,96.1%)",
+ "rgbChannel": "241 245 249",
+ "hslChannel": "210 40% 96.1%"
+ },
+ {
+ "scale": 200,
+ "hex": "#e2e8f0",
+ "rgb": "rgb(226,232,240)",
+ "hsl": "hsl(214.3,31.8%,91.4%)",
+ "rgbChannel": "226 232 240",
+ "hslChannel": "214.3 31.8% 91.4%"
+ },
+ {
+ "scale": 300,
+ "hex": "#cbd5e1",
+ "rgb": "rgb(203,213,225)",
+ "hsl": "hsl(212.7,26.8%,83.9%)",
+ "rgbChannel": "203 213 225",
+ "hslChannel": "212.7 26.8% 83.9%"
+ },
+ {
+ "scale": 400,
+ "hex": "#94a3b8",
+ "rgb": "rgb(148,163,184)",
+ "hsl": "hsl(215,20.2%,65.1%)",
+ "rgbChannel": "148 163 184",
+ "hslChannel": "215 20.2% 65.1%"
+ },
+ {
+ "scale": 500,
+ "hex": "#64748b",
+ "rgb": "rgb(100,116,139)",
+ "hsl": "hsl(215.4,16.3%,46.9%)",
+ "rgbChannel": "100 116 139",
+ "hslChannel": "215.4 16.3% 46.9%"
+ },
+ {
+ "scale": 600,
+ "hex": "#475569",
+ "rgb": "rgb(71,85,105)",
+ "hsl": "hsl(215.3,19.3%,34.5%)",
+ "rgbChannel": "71 85 105",
+ "hslChannel": "215.3 19.3% 34.5%"
+ },
+ {
+ "scale": 700,
+ "hex": "#334155",
+ "rgb": "rgb(51,65,85)",
+ "hsl": "hsl(215.3,25%,26.7%)",
+ "rgbChannel": "51 65 85",
+ "hslChannel": "215.3 25% 26.7%"
+ },
+ {
+ "scale": 800,
+ "hex": "#1e293b",
+ "rgb": "rgb(30,41,59)",
+ "hsl": "hsl(217.2,32.6%,17.5%)",
+ "rgbChannel": "30 41 59",
+ "hslChannel": "217.2 32.6% 17.5%"
+ },
+ {
+ "scale": 900,
+ "hex": "#0f172a",
+ "rgb": "rgb(15,23,42)",
+ "hsl": "hsl(222.2,47.4%,11.2%)",
+ "rgbChannel": "15 23 42",
+ "hslChannel": "222.2 47.4% 11.2%"
+ },
+ {
+ "scale": 950,
+ "hex": "#020617",
+ "rgb": "rgb(2,6,23)",
+ "hsl": "hsl(222.2,84%,4.9%)",
+ "rgbChannel": "2 6 23",
+ "hslChannel": "222.2 84% 4.9%"
+ }
+ ],
+ "gray": [
+ {
+ "scale": 50,
+ "hex": "#f9fafb",
+ "rgb": "rgb(249,250,251)",
+ "hsl": "hsl(210,20%,98%)",
+ "rgbChannel": "249 250 251",
+ "hslChannel": "210 20% 98%"
+ },
+ {
+ "scale": 100,
+ "hex": "#f3f4f6",
+ "rgb": "rgb(243,244,246)",
+ "hsl": "hsl(220,14.3%,95.9%)",
+ "rgbChannel": "243 244 246",
+ "hslChannel": "220 14.3% 95.9%"
+ },
+ {
+ "scale": 200,
+ "hex": "#e5e7eb",
+ "rgb": "rgb(229,231,235)",
+ "hsl": "hsl(220,13%,91%)",
+ "rgbChannel": "229 231 235",
+ "hslChannel": "220 13% 91%"
+ },
+ {
+ "scale": 300,
+ "hex": "#d1d5db",
+ "rgb": "rgb(209,213,219)",
+ "hsl": "hsl(216,12.2%,83.9%)",
+ "rgbChannel": "209 213 219",
+ "hslChannel": "216 12.2% 83.9%"
+ },
+ {
+ "scale": 400,
+ "hex": "#9ca3af",
+ "rgb": "rgb(156,163,175)",
+ "hsl": "hsl(217.9,10.6%,64.9%)",
+ "rgbChannel": "156 163 175",
+ "hslChannel": "217.9 10.6% 64.9%"
+ },
+ {
+ "scale": 500,
+ "hex": "#6b7280",
+ "rgb": "rgb(107,114,128)",
+ "hsl": "hsl(220,8.9%,46.1%)",
+ "rgbChannel": "107 114 128",
+ "hslChannel": "220 8.9% 46.1%"
+ },
+ {
+ "scale": 600,
+ "hex": "#4b5563",
+ "rgb": "rgb(75,85,99)",
+ "hsl": "hsl(215,13.8%,34.1%)",
+ "rgbChannel": "75 85 99",
+ "hslChannel": "215 13.8% 34.1%"
+ },
+ {
+ "scale": 700,
+ "hex": "#374151",
+ "rgb": "rgb(55,65,81)",
+ "hsl": "hsl(216.9,19.1%,26.7%)",
+ "rgbChannel": "55 65 81",
+ "hslChannel": "216.9 19.1% 26.7%"
+ },
+ {
+ "scale": 800,
+ "hex": "#1f2937",
+ "rgb": "rgb(31,41,55)",
+ "hsl": "hsl(215,27.9%,16.9%)",
+ "rgbChannel": "31 41 55",
+ "hslChannel": "215 27.9% 16.9%"
+ },
+ {
+ "scale": 900,
+ "hex": "#111827",
+ "rgb": "rgb(17,24,39)",
+ "hsl": "hsl(220.9,39.3%,11%)",
+ "rgbChannel": "17 24 39",
+ "hslChannel": "220.9 39.3% 11%"
+ },
+ {
+ "scale": 950,
+ "hex": "#030712",
+ "rgb": "rgb(3,7,18)",
+ "hsl": "hsl(224,71.4%,4.1%)",
+ "rgbChannel": "3 7 18",
+ "hslChannel": "224 71.4% 4.1%"
+ }
+ ],
+ "zinc": [
+ {
+ "scale": 50,
+ "hex": "#fafafa",
+ "rgb": "rgb(250,250,250)",
+ "hsl": "hsl(0,0%,98%)",
+ "rgbChannel": "250 250 250",
+ "hslChannel": "0 0% 98%"
+ },
+ {
+ "scale": 100,
+ "hex": "#f4f4f5",
+ "rgb": "rgb(244,244,245)",
+ "hsl": "hsl(240,4.8%,95.9%)",
+ "rgbChannel": "244 244 245",
+ "hslChannel": "240 4.8% 95.9%"
+ },
+ {
+ "scale": 200,
+ "hex": "#e4e4e7",
+ "rgb": "rgb(228,228,231)",
+ "hsl": "hsl(240,5.9%,90%)",
+ "rgbChannel": "228 228 231",
+ "hslChannel": "240 5.9% 90%"
+ },
+ {
+ "scale": 300,
+ "hex": "#d4d4d8",
+ "rgb": "rgb(212,212,216)",
+ "hsl": "hsl(240,4.9%,83.9%)",
+ "rgbChannel": "212 212 216",
+ "hslChannel": "240 4.9% 83.9%"
+ },
+ {
+ "scale": 400,
+ "hex": "#a1a1aa",
+ "rgb": "rgb(161,161,170)",
+ "hsl": "hsl(240,5%,64.9%)",
+ "rgbChannel": "161 161 170",
+ "hslChannel": "240 5% 64.9%"
+ },
+ {
+ "scale": 500,
+ "hex": "#71717a",
+ "rgb": "rgb(113,113,122)",
+ "hsl": "hsl(240,3.8%,46.1%)",
+ "rgbChannel": "113 113 122",
+ "hslChannel": "240 3.8% 46.1%"
+ },
+ {
+ "scale": 600,
+ "hex": "#52525b",
+ "rgb": "rgb(82,82,91)",
+ "hsl": "hsl(240,5.2%,33.9%)",
+ "rgbChannel": "82 82 91",
+ "hslChannel": "240 5.2% 33.9%"
+ },
+ {
+ "scale": 700,
+ "hex": "#3f3f46",
+ "rgb": "rgb(63,63,70)",
+ "hsl": "hsl(240,5.3%,26.1%)",
+ "rgbChannel": "63 63 70",
+ "hslChannel": "240 5.3% 26.1%"
+ },
+ {
+ "scale": 800,
+ "hex": "#27272a",
+ "rgb": "rgb(39,39,42)",
+ "hsl": "hsl(240,3.7%,15.9%)",
+ "rgbChannel": "39 39 42",
+ "hslChannel": "240 3.7% 15.9%"
+ },
+ {
+ "scale": 900,
+ "hex": "#18181b",
+ "rgb": "rgb(24,24,27)",
+ "hsl": "hsl(240,5.9%,10%)",
+ "rgbChannel": "24 24 27",
+ "hslChannel": "240 5.9% 10%"
+ },
+ {
+ "scale": 950,
+ "hex": "#09090b",
+ "rgb": "rgb(9,9,11)",
+ "hsl": "hsl(240,10%,3.9%)",
+ "rgbChannel": "9 9 11",
+ "hslChannel": "240 10% 3.9%"
+ }
+ ],
+ "neutral": [
+ {
+ "scale": 50,
+ "hex": "#fafafa",
+ "rgb": "rgb(250,250,250)",
+ "hsl": "hsl(0,0%,98%)",
+ "rgbChannel": "250 250 250",
+ "hslChannel": "0 0% 98%"
+ },
+ {
+ "scale": 100,
+ "hex": "#f5f5f5",
+ "rgb": "rgb(245,245,245)",
+ "hsl": "hsl(0,0%,96.1%)",
+ "rgbChannel": "245 245 245",
+ "hslChannel": "0 0% 96.1%"
+ },
+ {
+ "scale": 200,
+ "hex": "#e5e5e5",
+ "rgb": "rgb(229,229,229)",
+ "hsl": "hsl(0,0%,89.8%)",
+ "rgbChannel": "229 229 229",
+ "hslChannel": "0 0% 89.8%"
+ },
+ {
+ "scale": 300,
+ "hex": "#d4d4d4",
+ "rgb": "rgb(212,212,212)",
+ "hsl": "hsl(0,0%,83.1%)",
+ "rgbChannel": "212 212 212",
+ "hslChannel": "0 0% 83.1%"
+ },
+ {
+ "scale": 400,
+ "hex": "#a3a3a3",
+ "rgb": "rgb(163,163,163)",
+ "hsl": "hsl(0,0%,63.9%)",
+ "rgbChannel": "163 163 163",
+ "hslChannel": "0 0% 63.9%"
+ },
+ {
+ "scale": 500,
+ "hex": "#737373",
+ "rgb": "rgb(115,115,115)",
+ "hsl": "hsl(0,0%,45.1%)",
+ "rgbChannel": "115 115 115",
+ "hslChannel": "0 0% 45.1%"
+ },
+ {
+ "scale": 600,
+ "hex": "#525252",
+ "rgb": "rgb(82,82,82)",
+ "hsl": "hsl(0,0%,32.2%)",
+ "rgbChannel": "82 82 82",
+ "hslChannel": "0 0% 32.2%"
+ },
+ {
+ "scale": 700,
+ "hex": "#404040",
+ "rgb": "rgb(64,64,64)",
+ "hsl": "hsl(0,0%,25.1%)",
+ "rgbChannel": "64 64 64",
+ "hslChannel": "0 0% 25.1%"
+ },
+ {
+ "scale": 800,
+ "hex": "#262626",
+ "rgb": "rgb(38,38,38)",
+ "hsl": "hsl(0,0%,14.9%)",
+ "rgbChannel": "38 38 38",
+ "hslChannel": "0 0% 14.9%"
+ },
+ {
+ "scale": 900,
+ "hex": "#171717",
+ "rgb": "rgb(23,23,23)",
+ "hsl": "hsl(0,0%,9%)",
+ "rgbChannel": "23 23 23",
+ "hslChannel": "0 0% 9%"
+ },
+ {
+ "scale": 950,
+ "hex": "#0a0a0a",
+ "rgb": "rgb(10,10,10)",
+ "hsl": "hsl(0,0%,3.9%)",
+ "rgbChannel": "10 10 10",
+ "hslChannel": "0 0% 3.9%"
+ }
+ ],
+ "stone": [
+ {
+ "scale": 50,
+ "hex": "#fafaf9",
+ "rgb": "rgb(250,250,249)",
+ "hsl": "hsl(60,9.1%,97.8%)",
+ "rgbChannel": "250 250 249",
+ "hslChannel": "60 9.1% 97.8%"
+ },
+ {
+ "scale": 100,
+ "hex": "#f5f5f4",
+ "rgb": "rgb(245,245,244)",
+ "hsl": "hsl(60,4.8%,95.9%)",
+ "rgbChannel": "245 245 244",
+ "hslChannel": "60 4.8% 95.9%"
+ },
+ {
+ "scale": 200,
+ "hex": "#e7e5e4",
+ "rgb": "rgb(231,229,228)",
+ "hsl": "hsl(20,5.9%,90%)",
+ "rgbChannel": "231 229 228",
+ "hslChannel": "20 5.9% 90%"
+ },
+ {
+ "scale": 300,
+ "hex": "#d6d3d1",
+ "rgb": "rgb(214,211,209)",
+ "hsl": "hsl(24,5.7%,82.9%)",
+ "rgbChannel": "214 211 209",
+ "hslChannel": "24 5.7% 82.9%"
+ },
+ {
+ "scale": 400,
+ "hex": "#a8a29e",
+ "rgb": "rgb(168,162,158)",
+ "hsl": "hsl(24,5.4%,63.9%)",
+ "rgbChannel": "168 162 158",
+ "hslChannel": "24 5.4% 63.9%"
+ },
+ {
+ "scale": 500,
+ "hex": "#78716c",
+ "rgb": "rgb(120,113,108)",
+ "hsl": "hsl(25,5.3%,44.7%)",
+ "rgbChannel": "120 113 108",
+ "hslChannel": "25 5.3% 44.7%"
+ },
+ {
+ "scale": 600,
+ "hex": "#57534e",
+ "rgb": "rgb(87,83,78)",
+ "hsl": "hsl(33.3,5.5%,32.4%)",
+ "rgbChannel": "87 83 78",
+ "hslChannel": "33.3 5.5% 32.4%"
+ },
+ {
+ "scale": 700,
+ "hex": "#44403c",
+ "rgb": "rgb(68,64,60)",
+ "hsl": "hsl(30,6.3%,25.1%)",
+ "rgbChannel": "68 64 60",
+ "hslChannel": "30 6.3% 25.1%"
+ },
+ {
+ "scale": 800,
+ "hex": "#292524",
+ "rgb": "rgb(41,37,36)",
+ "hsl": "hsl(12,6.5%,15.1%)",
+ "rgbChannel": "41 37 36",
+ "hslChannel": "12 6.5% 15.1%"
+ },
+ {
+ "scale": 900,
+ "hex": "#1c1917",
+ "rgb": "rgb(28,25,23)",
+ "hsl": "hsl(24,9.8%,10%)",
+ "rgbChannel": "28 25 23",
+ "hslChannel": "24 9.8% 10%"
+ },
+ {
+ "scale": 950,
+ "hex": "#0c0a09",
+ "rgb": "rgb(12,10,9)",
+ "hsl": "hsl(20,14.3%,4.1%)",
+ "rgbChannel": "12 10 9",
+ "hslChannel": "20 14.3% 4.1%"
+ }
+ ],
+ "red": [
+ {
+ "scale": 50,
+ "hex": "#fef2f2",
+ "rgb": "rgb(254,242,242)",
+ "hsl": "hsl(0,85.7%,97.3%)",
+ "rgbChannel": "254 242 242",
+ "hslChannel": "0 85.7% 97.3%"
+ },
+ {
+ "scale": 100,
+ "hex": "#fee2e2",
+ "rgb": "rgb(254,226,226)",
+ "hsl": "hsl(0,93.3%,94.1%)",
+ "rgbChannel": "254 226 226",
+ "hslChannel": "0 93.3% 94.1%"
+ },
+ {
+ "scale": 200,
+ "hex": "#fecaca",
+ "rgb": "rgb(254,202,202)",
+ "hsl": "hsl(0,96.3%,89.4%)",
+ "rgbChannel": "254 202 202",
+ "hslChannel": "0 96.3% 89.4%"
+ },
+ {
+ "scale": 300,
+ "hex": "#fca5a5",
+ "rgb": "rgb(252,165,165)",
+ "hsl": "hsl(0,93.5%,81.8%)",
+ "rgbChannel": "252 165 165",
+ "hslChannel": "0 93.5% 81.8%"
+ },
+ {
+ "scale": 400,
+ "hex": "#f87171",
+ "rgb": "rgb(248,113,113)",
+ "hsl": "hsl(0,90.6%,70.8%)",
+ "rgbChannel": "248 113 113",
+ "hslChannel": "0 90.6% 70.8%"
+ },
+ {
+ "scale": 500,
+ "hex": "#ef4444",
+ "rgb": "rgb(239,68,68)",
+ "hsl": "hsl(0,84.2%,60.2%)",
+ "rgbChannel": "239 68 68",
+ "hslChannel": "0 84.2% 60.2%"
+ },
+ {
+ "scale": 600,
+ "hex": "#dc2626",
+ "rgb": "rgb(220,38,38)",
+ "hsl": "hsl(0,72.2%,50.6%)",
+ "rgbChannel": "220 38 38",
+ "hslChannel": "0 72.2% 50.6%"
+ },
+ {
+ "scale": 700,
+ "hex": "#b91c1c",
+ "rgb": "rgb(185,28,28)",
+ "hsl": "hsl(0,73.7%,41.8%)",
+ "rgbChannel": "185 28 28",
+ "hslChannel": "0 73.7% 41.8%"
+ },
+ {
+ "scale": 800,
+ "hex": "#991b1b",
+ "rgb": "rgb(153,27,27)",
+ "hsl": "hsl(0,70%,35.3%)",
+ "rgbChannel": "153 27 27",
+ "hslChannel": "0 70% 35.3%"
+ },
+ {
+ "scale": 900,
+ "hex": "#7f1d1d",
+ "rgb": "rgb(127,29,29)",
+ "hsl": "hsl(0,62.8%,30.6%)",
+ "rgbChannel": "127 29 29",
+ "hslChannel": "0 62.8% 30.6%"
+ },
+ {
+ "scale": 950,
+ "hex": "#450a0a",
+ "rgb": "rgb(69,10,10)",
+ "hsl": "hsl(0,74.7%,15.5%)",
+ "rgbChannel": "69 10 10",
+ "hslChannel": "0 74.7% 15.5%"
+ }
+ ],
+ "orange": [
+ {
+ "scale": 50,
+ "hex": "#fff7ed",
+ "rgb": "rgb(255,247,237)",
+ "hsl": "hsl(33.3,100%,96.5%)",
+ "rgbChannel": "255 247 237",
+ "hslChannel": "33.3 100% 96.5%"
+ },
+ {
+ "scale": 100,
+ "hex": "#ffedd5",
+ "rgb": "rgb(255,237,213)",
+ "hsl": "hsl(34.3,100%,91.8%)",
+ "rgbChannel": "255 237 213",
+ "hslChannel": "34.3 100% 91.8%"
+ },
+ {
+ "scale": 200,
+ "hex": "#fed7aa",
+ "rgb": "rgb(254,215,170)",
+ "hsl": "hsl(32.1,97.7%,83.1%)",
+ "rgbChannel": "254 215 170",
+ "hslChannel": "32.1 97.7% 83.1%"
+ },
+ {
+ "scale": 300,
+ "hex": "#fdba74",
+ "rgb": "rgb(253,186,116)",
+ "hsl": "hsl(30.7,97.2%,72.4%)",
+ "rgbChannel": "253 186 116",
+ "hslChannel": "30.7 97.2% 72.4%"
+ },
+ {
+ "scale": 400,
+ "hex": "#fb923c",
+ "rgb": "rgb(251,146,60)",
+ "hsl": "hsl(27,96%,61%)",
+ "rgbChannel": "251 146 60",
+ "hslChannel": "27 96% 61%"
+ },
+ {
+ "scale": 500,
+ "hex": "#f97316",
+ "rgb": "rgb(249,115,22)",
+ "hsl": "hsl(24.6,95%,53.1%)",
+ "rgbChannel": "249 115 22",
+ "hslChannel": "24.6 95% 53.1%"
+ },
+ {
+ "scale": 600,
+ "hex": "#ea580c",
+ "rgb": "rgb(234,88,12)",
+ "hsl": "hsl(20.5,90.2%,48.2%)",
+ "rgbChannel": "234 88 12",
+ "hslChannel": "20.5 90.2% 48.2%"
+ },
+ {
+ "scale": 700,
+ "hex": "#c2410c",
+ "rgb": "rgb(194,65,12)",
+ "hsl": "hsl(17.5,88.3%,40.4%)",
+ "rgbChannel": "194 65 12",
+ "hslChannel": "17.5 88.3% 40.4%"
+ },
+ {
+ "scale": 800,
+ "hex": "#9a3412",
+ "rgb": "rgb(154,52,18)",
+ "hsl": "hsl(15,79.1%,33.7%)",
+ "rgbChannel": "154 52 18",
+ "hslChannel": "15 79.1% 33.7%"
+ },
+ {
+ "scale": 900,
+ "hex": "#7c2d12",
+ "rgb": "rgb(124,45,18)",
+ "hsl": "hsl(15.3,74.6%,27.8%)",
+ "rgbChannel": "124 45 18",
+ "hslChannel": "15.3 74.6% 27.8%"
+ },
+ {
+ "scale": 950,
+ "hex": "#431407",
+ "rgb": "rgb(67,20,7)",
+ "hsl": "hsl(13,81.1%,14.5%)",
+ "rgbChannel": "67 20 7",
+ "hslChannel": "13 81.1% 14.5%"
+ }
+ ],
+ "amber": [
+ {
+ "scale": 50,
+ "hex": "#fffbeb",
+ "rgb": "rgb(255,251,235)",
+ "hsl": "hsl(48,100%,96.1%)",
+ "rgbChannel": "255 251 235",
+ "hslChannel": "48 100% 96.1%"
+ },
+ {
+ "scale": 100,
+ "hex": "#fef3c7",
+ "rgb": "rgb(254,243,199)",
+ "hsl": "hsl(48,96.5%,88.8%)",
+ "rgbChannel": "254 243 199",
+ "hslChannel": "48 96.5% 88.8%"
+ },
+ {
+ "scale": 200,
+ "hex": "#fde68a",
+ "rgb": "rgb(253,230,138)",
+ "hsl": "hsl(48,96.6%,76.7%)",
+ "rgbChannel": "253 230 138",
+ "hslChannel": "48 96.6% 76.7%"
+ },
+ {
+ "scale": 300,
+ "hex": "#fcd34d",
+ "rgb": "rgb(252,211,77)",
+ "hsl": "hsl(45.9,96.7%,64.5%)",
+ "rgbChannel": "252 211 77",
+ "hslChannel": "45.9 96.7% 64.5%"
+ },
+ {
+ "scale": 400,
+ "hex": "#fbbf24",
+ "rgb": "rgb(251,191,36)",
+ "hsl": "hsl(43.3,96.4%,56.3%)",
+ "rgbChannel": "251 191 36",
+ "hslChannel": "43.3 96.4% 56.3%"
+ },
+ {
+ "scale": 500,
+ "hex": "#f59e0b",
+ "rgb": "rgb(245,158,11)",
+ "hsl": "hsl(37.7,92.1%,50.2%)",
+ "rgbChannel": "245 158 11",
+ "hslChannel": "37.7 92.1% 50.2%"
+ },
+ {
+ "scale": 600,
+ "hex": "#d97706",
+ "rgb": "rgb(217,119,6)",
+ "hsl": "hsl(32.1,94.6%,43.7%)",
+ "rgbChannel": "217 119 6",
+ "hslChannel": "32.1 94.6% 43.7%"
+ },
+ {
+ "scale": 700,
+ "hex": "#b45309",
+ "rgb": "rgb(180,83,9)",
+ "hsl": "hsl(26,90.5%,37.1%)",
+ "rgbChannel": "180 83 9",
+ "hslChannel": "26 90.5% 37.1%"
+ },
+ {
+ "scale": 800,
+ "hex": "#92400e",
+ "rgb": "rgb(146,64,14)",
+ "hsl": "hsl(22.7,82.5%,31.4%)",
+ "rgbChannel": "146 64 14",
+ "hslChannel": "22.7 82.5% 31.4%"
+ },
+ {
+ "scale": 900,
+ "hex": "#78350f",
+ "rgb": "rgb(120,53,15)",
+ "hsl": "hsl(21.7,77.8%,26.5%)",
+ "rgbChannel": "120 53 15",
+ "hslChannel": "21.7 77.8% 26.5%"
+ },
+ {
+ "scale": 950,
+ "hex": "#451a03",
+ "rgb": "rgb(69,26,3)",
+ "hsl": "hsl(20.9,91.7%,14.1%)",
+ "rgbChannel": "69 26 3",
+ "hslChannel": "20.9 91.7% 14.1%"
+ }
+ ],
+ "yellow": [
+ {
+ "scale": 50,
+ "hex": "#fefce8",
+ "rgb": "rgb(254,252,232)",
+ "hsl": "hsl(54.5,91.7%,95.3%)",
+ "rgbChannel": "254 252 232",
+ "hslChannel": "54.5 91.7% 95.3%"
+ },
+ {
+ "scale": 100,
+ "hex": "#fef9c3",
+ "rgb": "rgb(254,249,195)",
+ "hsl": "hsl(54.9,96.7%,88%)",
+ "rgbChannel": "254 249 195",
+ "hslChannel": "54.9 96.7% 88%"
+ },
+ {
+ "scale": 200,
+ "hex": "#fef08a",
+ "rgb": "rgb(254,240,138)",
+ "hsl": "hsl(52.8,98.3%,76.9%)",
+ "rgbChannel": "254 240 138",
+ "hslChannel": "52.8 98.3% 76.9%"
+ },
+ {
+ "scale": 300,
+ "hex": "#fde047",
+ "rgb": "rgb(253,224,71)",
+ "hsl": "hsl(50.4,97.8%,63.5%)",
+ "rgbChannel": "253 224 71",
+ "hslChannel": "50.4 97.8% 63.5%"
+ },
+ {
+ "scale": 400,
+ "hex": "#facc15",
+ "rgb": "rgb(250,204,21)",
+ "hsl": "hsl(47.9,95.8%,53.1%)",
+ "rgbChannel": "250 204 21",
+ "hslChannel": "47.9 95.8% 53.1%"
+ },
+ {
+ "scale": 500,
+ "hex": "#eab308",
+ "rgb": "rgb(234,179,8)",
+ "hsl": "hsl(45.4,93.4%,47.5%)",
+ "rgbChannel": "234 179 8",
+ "hslChannel": "45.4 93.4% 47.5%"
+ },
+ {
+ "scale": 600,
+ "hex": "#ca8a04",
+ "rgb": "rgb(202,138,4)",
+ "hsl": "hsl(40.6,96.1%,40.4%)",
+ "rgbChannel": "202 138 4",
+ "hslChannel": "40.6 96.1% 40.4%"
+ },
+ {
+ "scale": 700,
+ "hex": "#a16207",
+ "rgb": "rgb(161,98,7)",
+ "hsl": "hsl(35.5,91.7%,32.9%)",
+ "rgbChannel": "161 98 7",
+ "hslChannel": "35.5 91.7% 32.9%"
+ },
+ {
+ "scale": 800,
+ "hex": "#854d0e",
+ "rgb": "rgb(133,77,14)",
+ "hsl": "hsl(31.8,81%,28.8%)",
+ "rgbChannel": "133 77 14",
+ "hslChannel": "31.8 81% 28.8%"
+ },
+ {
+ "scale": 900,
+ "hex": "#713f12",
+ "rgb": "rgb(113,63,18)",
+ "hsl": "hsl(28.4,72.5%,25.7%)",
+ "rgbChannel": "113 63 18",
+ "hslChannel": "28.4 72.5% 25.7%"
+ },
+ {
+ "scale": 950,
+ "hex": "#422006",
+ "rgb": "rgb(66,32,6)",
+ "hsl": "hsl(26,83.3%,14.1%)",
+ "rgbChannel": "66 32 6",
+ "hslChannel": "26 83.3% 14.1%"
+ }
+ ],
+ "lime": [
+ {
+ "scale": 50,
+ "hex": "#f7fee7",
+ "rgb": "rgb(247,254,231)",
+ "hsl": "hsl(78.3,92%,95.1%)",
+ "rgbChannel": "247 254 231",
+ "hslChannel": "78.3 92% 95.1%"
+ },
+ {
+ "scale": 100,
+ "hex": "#ecfccb",
+ "rgb": "rgb(236,252,203)",
+ "hsl": "hsl(79.6,89.1%,89.2%)",
+ "rgbChannel": "236 252 203",
+ "hslChannel": "79.6 89.1% 89.2%"
+ },
+ {
+ "scale": 200,
+ "hex": "#d9f99d",
+ "rgb": "rgb(217,249,157)",
+ "hsl": "hsl(80.9,88.5%,79.6%)",
+ "rgbChannel": "217 249 157",
+ "hslChannel": "80.9 88.5% 79.6%"
+ },
+ {
+ "scale": 300,
+ "hex": "#bef264",
+ "rgb": "rgb(190,242,100)",
+ "hsl": "hsl(82,84.5%,67.1%)",
+ "rgbChannel": "190 242 100",
+ "hslChannel": "82 84.5% 67.1%"
+ },
+ {
+ "scale": 400,
+ "hex": "#a3e635",
+ "rgb": "rgb(163,230,53)",
+ "hsl": "hsl(82.7,78%,55.5%)",
+ "rgbChannel": "163 230 53",
+ "hslChannel": "82.7 78% 55.5%"
+ },
+ {
+ "scale": 500,
+ "hex": "#84cc16",
+ "rgb": "rgb(132,204,22)",
+ "hsl": "hsl(83.7,80.5%,44.3%)",
+ "rgbChannel": "132 204 22",
+ "hslChannel": "83.7 80.5% 44.3%"
+ },
+ {
+ "scale": 600,
+ "hex": "#65a30d",
+ "rgb": "rgb(101,163,13)",
+ "hsl": "hsl(84.8,85.2%,34.5%)",
+ "rgbChannel": "101 163 13",
+ "hslChannel": "84.8 85.2% 34.5%"
+ },
+ {
+ "scale": 700,
+ "hex": "#4d7c0f",
+ "rgb": "rgb(77,124,15)",
+ "hsl": "hsl(85.9,78.4%,27.3%)",
+ "rgbChannel": "77 124 15",
+ "hslChannel": "85.9 78.4% 27.3%"
+ },
+ {
+ "scale": 800,
+ "hex": "#3f6212",
+ "rgb": "rgb(63,98,18)",
+ "hsl": "hsl(86.3,69%,22.7%)",
+ "rgbChannel": "63 98 18",
+ "hslChannel": "86.3 69% 22.7%"
+ },
+ {
+ "scale": 900,
+ "hex": "#365314",
+ "rgb": "rgb(54,83,20)",
+ "hsl": "hsl(87.6,61.2%,20.2%)",
+ "rgbChannel": "54 83 20",
+ "hslChannel": "87.6 61.2% 20.2%"
+ },
+ {
+ "scale": 950,
+ "hex": "#1a2e05",
+ "rgb": "rgb(26,46,5)",
+ "hsl": "hsl(89.3,80.4%,10%)",
+ "rgbChannel": "26 46 5",
+ "hslChannel": "89.3 80.4% 10%"
+ }
+ ],
+ "green": [
+ {
+ "scale": 50,
+ "hex": "#f0fdf4",
+ "rgb": "rgb(240,253,244)",
+ "hsl": "hsl(138.5,76.5%,96.7%)",
+ "rgbChannel": "240 253 244",
+ "hslChannel": "138.5 76.5% 96.7%"
+ },
+ {
+ "scale": 100,
+ "hex": "#dcfce7",
+ "rgb": "rgb(220,252,231)",
+ "hsl": "hsl(140.6,84.2%,92.5%)",
+ "rgbChannel": "220 252 231",
+ "hslChannel": "140.6 84.2% 92.5%"
+ },
+ {
+ "scale": 200,
+ "hex": "#bbf7d0",
+ "rgb": "rgb(187,247,208)",
+ "hsl": "hsl(141,78.9%,85.1%)",
+ "rgbChannel": "187 247 208",
+ "hslChannel": "141 78.9% 85.1%"
+ },
+ {
+ "scale": 300,
+ "hex": "#86efac",
+ "rgb": "rgb(134,239,172)",
+ "hsl": "hsl(141.7,76.6%,73.1%)",
+ "rgbChannel": "134 239 172",
+ "hslChannel": "141.7 76.6% 73.1%"
+ },
+ {
+ "scale": 400,
+ "hex": "#4ade80",
+ "rgb": "rgb(74,222,128)",
+ "hsl": "hsl(141.9,69.2%,58%)",
+ "rgbChannel": "74 222 128",
+ "hslChannel": "141.9 69.2% 58%"
+ },
+ {
+ "scale": 500,
+ "hex": "#22c55e",
+ "rgb": "rgb(34,197,94)",
+ "hsl": "hsl(142.1,70.6%,45.3%)",
+ "rgbChannel": "34 197 94",
+ "hslChannel": "142.1 70.6% 45.3%"
+ },
+ {
+ "scale": 600,
+ "hex": "#16a34a",
+ "rgb": "rgb(22,163,74)",
+ "hsl": "hsl(142.1,76.2%,36.3%)",
+ "rgbChannel": "22 163 74",
+ "hslChannel": "142.1 76.2% 36.3%"
+ },
+ {
+ "scale": 700,
+ "hex": "#15803d",
+ "rgb": "rgb(21,128,61)",
+ "hsl": "hsl(142.4,71.8%,29.2%)",
+ "rgbChannel": "21 128 61",
+ "hslChannel": "142.4 71.8% 29.2%"
+ },
+ {
+ "scale": 800,
+ "hex": "#166534",
+ "rgb": "rgb(22,101,52)",
+ "hsl": "hsl(142.8,64.2%,24.1%)",
+ "rgbChannel": "22 101 52",
+ "hslChannel": "142.8 64.2% 24.1%"
+ },
+ {
+ "scale": 900,
+ "hex": "#14532d",
+ "rgb": "rgb(20,83,45)",
+ "hsl": "hsl(143.8,61.2%,20.2%)",
+ "rgbChannel": "20 83 45",
+ "hslChannel": "143.8 61.2% 20.2%"
+ },
+ {
+ "scale": 950,
+ "hex": "#052e16",
+ "rgb": "rgb(5,46,22)",
+ "hsl": "hsl(144.9,80.4%,10%)",
+ "rgbChannel": "5 46 22",
+ "hslChannel": "144.9 80.4% 10%"
+ }
+ ],
+ "emerald": [
+ {
+ "scale": 50,
+ "hex": "#ecfdf5",
+ "rgb": "rgb(236,253,245)",
+ "hsl": "hsl(151.8,81%,95.9%)",
+ "rgbChannel": "236 253 245",
+ "hslChannel": "151.8 81% 95.9%"
+ },
+ {
+ "scale": 100,
+ "hex": "#d1fae5",
+ "rgb": "rgb(209,250,229)",
+ "hsl": "hsl(149.3,80.4%,90%)",
+ "rgbChannel": "209 250 229",
+ "hslChannel": "149.3 80.4% 90%"
+ },
+ {
+ "scale": 200,
+ "hex": "#a7f3d0",
+ "rgb": "rgb(167,243,208)",
+ "hsl": "hsl(152.4,76%,80.4%)",
+ "rgbChannel": "167 243 208",
+ "hslChannel": "152.4 76% 80.4%"
+ },
+ {
+ "scale": 300,
+ "hex": "#6ee7b7",
+ "rgb": "rgb(110,231,183)",
+ "hsl": "hsl(156.2,71.6%,66.9%)",
+ "rgbChannel": "110 231 183",
+ "hslChannel": "156.2 71.6% 66.9%"
+ },
+ {
+ "scale": 400,
+ "hex": "#34d399",
+ "rgb": "rgb(52,211,153)",
+ "hsl": "hsl(158.1,64.4%,51.6%)",
+ "rgbChannel": "52 211 153",
+ "hslChannel": "158.1 64.4% 51.6%"
+ },
+ {
+ "scale": 500,
+ "hex": "#10b981",
+ "rgb": "rgb(16,185,129)",
+ "hsl": "hsl(160.1,84.1%,39.4%)",
+ "rgbChannel": "16 185 129",
+ "hslChannel": "160.1 84.1% 39.4%"
+ },
+ {
+ "scale": 600,
+ "hex": "#059669",
+ "rgb": "rgb(5,150,105)",
+ "hsl": "hsl(161.4,93.5%,30.4%)",
+ "rgbChannel": "5 150 105",
+ "hslChannel": "161.4 93.5% 30.4%"
+ },
+ {
+ "scale": 700,
+ "hex": "#047857",
+ "rgb": "rgb(4,120,87)",
+ "hsl": "hsl(162.9,93.5%,24.3%)",
+ "rgbChannel": "4 120 87",
+ "hslChannel": "162.9 93.5% 24.3%"
+ },
+ {
+ "scale": 800,
+ "hex": "#065f46",
+ "rgb": "rgb(6,95,70)",
+ "hsl": "hsl(163.1,88.1%,19.8%)",
+ "rgbChannel": "6 95 70",
+ "hslChannel": "163.1 88.1% 19.8%"
+ },
+ {
+ "scale": 900,
+ "hex": "#064e3b",
+ "rgb": "rgb(6,78,59)",
+ "hsl": "hsl(164.2,85.7%,16.5%)",
+ "rgbChannel": "6 78 59",
+ "hslChannel": "164.2 85.7% 16.5%"
+ },
+ {
+ "scale": 950,
+ "hex": "#022c22",
+ "rgb": "rgb(2,44,34)",
+ "hsl": "hsl(165.7,91.3%,9%)",
+ "rgbChannel": "2 44 34",
+ "hslChannel": "165.7 91.3% 9%"
+ }
+ ],
+ "teal": [
+ {
+ "scale": 50,
+ "hex": "#f0fdfa",
+ "rgb": "rgb(240,253,250)",
+ "hsl": "hsl(166.2,76.5%,96.7%)",
+ "rgbChannel": "240 253 250",
+ "hslChannel": "166.2 76.5% 96.7%"
+ },
+ {
+ "scale": 100,
+ "hex": "#ccfbf1",
+ "rgb": "rgb(204,251,241)",
+ "hsl": "hsl(167.2,85.5%,89.2%)",
+ "rgbChannel": "204 251 241",
+ "hslChannel": "167.2 85.5% 89.2%"
+ },
+ {
+ "scale": 200,
+ "hex": "#99f6e4",
+ "rgb": "rgb(153,246,228)",
+ "hsl": "hsl(168.4,83.8%,78.2%)",
+ "rgbChannel": "153 246 228",
+ "hslChannel": "168.4 83.8% 78.2%"
+ },
+ {
+ "scale": 300,
+ "hex": "#5eead4",
+ "rgb": "rgb(94,234,212)",
+ "hsl": "hsl(170.6,76.9%,64.3%)",
+ "rgbChannel": "94 234 212",
+ "hslChannel": "170.6 76.9% 64.3%"
+ },
+ {
+ "scale": 400,
+ "hex": "#2dd4bf",
+ "rgb": "rgb(45,212,191)",
+ "hsl": "hsl(172.5,66%,50.4%)",
+ "rgbChannel": "45 212 191",
+ "hslChannel": "172.5 66% 50.4%"
+ },
+ {
+ "scale": 500,
+ "hex": "#14b8a6",
+ "rgb": "rgb(20,184,166)",
+ "hsl": "hsl(173.4,80.4%,40%)",
+ "rgbChannel": "20 184 166",
+ "hslChannel": "173.4 80.4% 40%"
+ },
+ {
+ "scale": 600,
+ "hex": "#0d9488",
+ "rgb": "rgb(13,148,136)",
+ "hsl": "hsl(174.7,83.9%,31.6%)",
+ "rgbChannel": "13 148 136",
+ "hslChannel": "174.7 83.9% 31.6%"
+ },
+ {
+ "scale": 700,
+ "hex": "#0f766e",
+ "rgb": "rgb(15,118,110)",
+ "hsl": "hsl(175.3,77.4%,26.1%)",
+ "rgbChannel": "15 118 110",
+ "hslChannel": "175.3 77.4% 26.1%"
+ },
+ {
+ "scale": 800,
+ "hex": "#115e59",
+ "rgb": "rgb(17,94,89)",
+ "hsl": "hsl(176.1,69.4%,21.8%)",
+ "rgbChannel": "17 94 89",
+ "hslChannel": "176.1 69.4% 21.8%"
+ },
+ {
+ "scale": 900,
+ "hex": "#134e4a",
+ "rgb": "rgb(19,78,74)",
+ "hsl": "hsl(175.9,60.8%,19%)",
+ "rgbChannel": "19 78 74",
+ "hslChannel": "175.9 60.8% 19%"
+ },
+ {
+ "scale": 950,
+ "hex": "#042f2e",
+ "rgb": "rgb(4,47,46)",
+ "hsl": "hsl(178.6,84.3%,10%)",
+ "rgbChannel": "4 47 46",
+ "hslChannel": "178.6 84.3% 10%"
+ }
+ ],
+ "cyan": [
+ {
+ "scale": 50,
+ "hex": "#ecfeff",
+ "rgb": "rgb(236,254,255)",
+ "hsl": "hsl(183.2,100%,96.3%)",
+ "rgbChannel": "236 254 255",
+ "hslChannel": "183.2 100% 96.3%"
+ },
+ {
+ "scale": 100,
+ "hex": "#cffafe",
+ "rgb": "rgb(207,250,254)",
+ "hsl": "hsl(185.1,95.9%,90.4%)",
+ "rgbChannel": "207 250 254",
+ "hslChannel": "185.1 95.9% 90.4%"
+ },
+ {
+ "scale": 200,
+ "hex": "#a5f3fc",
+ "rgb": "rgb(165,243,252)",
+ "hsl": "hsl(186.2,93.5%,81.8%)",
+ "rgbChannel": "165 243 252",
+ "hslChannel": "186.2 93.5% 81.8%"
+ },
+ {
+ "scale": 300,
+ "hex": "#67e8f9",
+ "rgb": "rgb(103,232,249)",
+ "hsl": "hsl(187,92.4%,69%)",
+ "rgbChannel": "103 232 249",
+ "hslChannel": "187 92.4% 69%"
+ },
+ {
+ "scale": 400,
+ "hex": "#22d3ee",
+ "rgb": "rgb(34,211,238)",
+ "hsl": "hsl(187.9,85.7%,53.3%)",
+ "rgbChannel": "34 211 238",
+ "hslChannel": "187.9 85.7% 53.3%"
+ },
+ {
+ "scale": 500,
+ "hex": "#06b6d4",
+ "rgb": "rgb(6,182,212)",
+ "hsl": "hsl(188.7,94.5%,42.7%)",
+ "rgbChannel": "6 182 212",
+ "hslChannel": "188.7 94.5% 42.7%"
+ },
+ {
+ "scale": 600,
+ "hex": "#0891b2",
+ "rgb": "rgb(8,145,178)",
+ "hsl": "hsl(191.6,91.4%,36.5%)",
+ "rgbChannel": "8 145 178",
+ "hslChannel": "191.6 91.4% 36.5%"
+ },
+ {
+ "scale": 700,
+ "hex": "#0e7490",
+ "rgb": "rgb(14,116,144)",
+ "hsl": "hsl(192.9,82.3%,31%)",
+ "rgbChannel": "14 116 144",
+ "hslChannel": "192.9 82.3% 31%"
+ },
+ {
+ "scale": 800,
+ "hex": "#155e75",
+ "rgb": "rgb(21,94,117)",
+ "hsl": "hsl(194.4,69.6%,27.1%)",
+ "rgbChannel": "21 94 117",
+ "hslChannel": "194.4 69.6% 27.1%"
+ },
+ {
+ "scale": 900,
+ "hex": "#164e63",
+ "rgb": "rgb(22,78,99)",
+ "hsl": "hsl(196.4,63.6%,23.7%)",
+ "rgbChannel": "22 78 99",
+ "hslChannel": "196.4 63.6% 23.7%"
+ },
+ {
+ "scale": 950,
+ "hex": "#083344",
+ "rgb": "rgb(8,51,68)",
+ "hsl": "hsl(197,78.9%,14.9%)",
+ "rgbChannel": "8 51 68",
+ "hslChannel": "197 78.9% 14.9%"
+ }
+ ],
+ "sky": [
+ {
+ "scale": 50,
+ "hex": "#f0f9ff",
+ "rgb": "rgb(240,249,255)",
+ "hsl": "hsl(204,100%,97.1%)",
+ "rgbChannel": "240 249 255",
+ "hslChannel": "204 100% 97.1%"
+ },
+ {
+ "scale": 100,
+ "hex": "#e0f2fe",
+ "rgb": "rgb(224,242,254)",
+ "hsl": "hsl(204,93.8%,93.7%)",
+ "rgbChannel": "224 242 254",
+ "hslChannel": "204 93.8% 93.7%"
+ },
+ {
+ "scale": 200,
+ "hex": "#bae6fd",
+ "rgb": "rgb(186,230,253)",
+ "hsl": "hsl(200.6,94.4%,86.1%)",
+ "rgbChannel": "186 230 253",
+ "hslChannel": "200.6 94.4% 86.1%"
+ },
+ {
+ "scale": 300,
+ "hex": "#7dd3fc",
+ "rgb": "rgb(125,211,252)",
+ "hsl": "hsl(199.4,95.5%,73.9%)",
+ "rgbChannel": "125 211 252",
+ "hslChannel": "199.4 95.5% 73.9%"
+ },
+ {
+ "scale": 400,
+ "hex": "#38bdf8",
+ "rgb": "rgb(56,189,248)",
+ "hsl": "hsl(198.4,93.2%,59.6%)",
+ "rgbChannel": "56 189 248",
+ "hslChannel": "198.4 93.2% 59.6%"
+ },
+ {
+ "scale": 500,
+ "hex": "#0ea5e9",
+ "rgb": "rgb(14,165,233)",
+ "hsl": "hsl(198.6,88.7%,48.4%)",
+ "rgbChannel": "14 165 233",
+ "hslChannel": "198.6 88.7% 48.4%"
+ },
+ {
+ "scale": 600,
+ "hex": "#0284c7",
+ "rgb": "rgb(2,132,199)",
+ "hsl": "hsl(200.4,98%,39.4%)",
+ "rgbChannel": "2 132 199",
+ "hslChannel": "200.4 98% 39.4%"
+ },
+ {
+ "scale": 700,
+ "hex": "#0369a1",
+ "rgb": "rgb(3,105,161)",
+ "hsl": "hsl(201.3,96.3%,32.2%)",
+ "rgbChannel": "3 105 161",
+ "hslChannel": "201.3 96.3% 32.2%"
+ },
+ {
+ "scale": 800,
+ "hex": "#075985",
+ "rgb": "rgb(7,89,133)",
+ "hsl": "hsl(201,90%,27.5%)",
+ "rgbChannel": "7 89 133",
+ "hslChannel": "201 90% 27.5%"
+ },
+ {
+ "scale": 900,
+ "hex": "#0c4a6e",
+ "rgb": "rgb(12,74,110)",
+ "hsl": "hsl(202,80.3%,23.9%)",
+ "rgbChannel": "12 74 110",
+ "hslChannel": "202 80.3% 23.9%"
+ },
+ {
+ "scale": 950,
+ "hex": "#082f49",
+ "rgb": "rgb(8,47,73)",
+ "hsl": "hsl(204,80.2%,15.9%)",
+ "rgbChannel": "8 47 73",
+ "hslChannel": "204 80.2% 15.9%"
+ }
+ ],
+ "blue": [
+ {
+ "scale": 50,
+ "hex": "#eff6ff",
+ "rgb": "rgb(239,246,255)",
+ "hsl": "hsl(213.8,100%,96.9%)",
+ "rgbChannel": "239 246 255",
+ "hslChannel": "213.8 100% 96.9%"
+ },
+ {
+ "scale": 100,
+ "hex": "#dbeafe",
+ "rgb": "rgb(219,234,254)",
+ "hsl": "hsl(214.3,94.6%,92.7%)",
+ "rgbChannel": "219 234 254",
+ "hslChannel": "214.3 94.6% 92.7%"
+ },
+ {
+ "scale": 200,
+ "hex": "#bfdbfe",
+ "rgb": "rgb(191,219,254)",
+ "hsl": "hsl(213.3,96.9%,87.3%)",
+ "rgbChannel": "191 219 254",
+ "hslChannel": "213.3 96.9% 87.3%"
+ },
+ {
+ "scale": 300,
+ "hex": "#93c5fd",
+ "rgb": "rgb(147,197,253)",
+ "hsl": "hsl(211.7,96.4%,78.4%)",
+ "rgbChannel": "147 197 253",
+ "hslChannel": "211.7 96.4% 78.4%"
+ },
+ {
+ "scale": 400,
+ "hex": "#60a5fa",
+ "rgb": "rgb(96,165,250)",
+ "hsl": "hsl(213.1,93.9%,67.8%)",
+ "rgbChannel": "96 165 250",
+ "hslChannel": "213.1 93.9% 67.8%"
+ },
+ {
+ "scale": 500,
+ "hex": "#3b82f6",
+ "rgb": "rgb(59,130,246)",
+ "hsl": "hsl(217.2,91.2%,59.8%)",
+ "rgbChannel": "59 130 246",
+ "hslChannel": "217.2 91.2% 59.8%"
+ },
+ {
+ "scale": 600,
+ "hex": "#2563eb",
+ "rgb": "rgb(37,99,235)",
+ "hsl": "hsl(221.2,83.2%,53.3%)",
+ "rgbChannel": "37 99 235",
+ "hslChannel": "221.2 83.2% 53.3%"
+ },
+ {
+ "scale": 700,
+ "hex": "#1d4ed8",
+ "rgb": "rgb(29,78,216)",
+ "hsl": "hsl(224.3,76.3%,48%)",
+ "rgbChannel": "29 78 216",
+ "hslChannel": "224.3 76.3% 48%"
+ },
+ {
+ "scale": 800,
+ "hex": "#1e40af",
+ "rgb": "rgb(30,64,175)",
+ "hsl": "hsl(225.9,70.7%,40.2%)",
+ "rgbChannel": "30 64 175",
+ "hslChannel": "225.9 70.7% 40.2%"
+ },
+ {
+ "scale": 900,
+ "hex": "#1e3a8a",
+ "rgb": "rgb(30,58,138)",
+ "hsl": "hsl(224.4,64.3%,32.9%)",
+ "rgbChannel": "30 58 138",
+ "hslChannel": "224.4 64.3% 32.9%"
+ },
+ {
+ "scale": 950,
+ "hex": "#172554",
+ "rgb": "rgb(23,37,84)",
+ "hsl": "hsl(226.2,57%,21%)",
+ "rgbChannel": "23 37 84",
+ "hslChannel": "226.2 57% 21%"
+ }
+ ],
+ "indigo": [
+ {
+ "scale": 50,
+ "hex": "#eef2ff",
+ "rgb": "rgb(238,242,255)",
+ "hsl": "hsl(225.9,100%,96.7%)",
+ "rgbChannel": "238 242 255",
+ "hslChannel": "225.9 100% 96.7%"
+ },
+ {
+ "scale": 100,
+ "hex": "#e0e7ff",
+ "rgb": "rgb(224,231,255)",
+ "hsl": "hsl(226.5,100%,93.9%)",
+ "rgbChannel": "224 231 255",
+ "hslChannel": "226.5 100% 93.9%"
+ },
+ {
+ "scale": 200,
+ "hex": "#c7d2fe",
+ "rgb": "rgb(199,210,254)",
+ "hsl": "hsl(228,96.5%,88.8%)",
+ "rgbChannel": "199 210 254",
+ "hslChannel": "228 96.5% 88.8%"
+ },
+ {
+ "scale": 300,
+ "hex": "#a5b4fc",
+ "rgb": "rgb(165,180,252)",
+ "hsl": "hsl(229.7,93.5%,81.8%)",
+ "rgbChannel": "165 180 252",
+ "hslChannel": "229.7 93.5% 81.8%"
+ },
+ {
+ "scale": 400,
+ "hex": "#818cf8",
+ "rgb": "rgb(129,140,248)",
+ "hsl": "hsl(234.5,89.5%,73.9%)",
+ "rgbChannel": "129 140 248",
+ "hslChannel": "234.5 89.5% 73.9%"
+ },
+ {
+ "scale": 500,
+ "hex": "#6366f1",
+ "rgb": "rgb(99,102,241)",
+ "hsl": "hsl(238.7,83.5%,66.7%)",
+ "rgbChannel": "99 102 241",
+ "hslChannel": "238.7 83.5% 66.7%"
+ },
+ {
+ "scale": 600,
+ "hex": "#4f46e5",
+ "rgb": "rgb(79,70,229)",
+ "hsl": "hsl(243.4,75.4%,58.6%)",
+ "rgbChannel": "79 70 229",
+ "hslChannel": "243.4 75.4% 58.6%"
+ },
+ {
+ "scale": 700,
+ "hex": "#4338ca",
+ "rgb": "rgb(67,56,202)",
+ "hsl": "hsl(244.5,57.9%,50.6%)",
+ "rgbChannel": "67 56 202",
+ "hslChannel": "244.5 57.9% 50.6%"
+ },
+ {
+ "scale": 800,
+ "hex": "#3730a3",
+ "rgb": "rgb(55,48,163)",
+ "hsl": "hsl(243.7,54.5%,41.4%)",
+ "rgbChannel": "55 48 163",
+ "hslChannel": "243.7 54.5% 41.4%"
+ },
+ {
+ "scale": 900,
+ "hex": "#312e81",
+ "rgb": "rgb(49,46,129)",
+ "hsl": "hsl(242.2,47.4%,34.3%)",
+ "rgbChannel": "49 46 129",
+ "hslChannel": "242.2 47.4% 34.3%"
+ },
+ {
+ "scale": 950,
+ "hex": "#1e1b4b",
+ "rgb": "rgb(30,27,75)",
+ "hsl": "hsl(243.8,47.1%,20%)",
+ "rgbChannel": "30 27 75",
+ "hslChannel": "243.8 47.1% 20%"
+ }
+ ],
+ "violet": [
+ {
+ "scale": 50,
+ "hex": "#f5f3ff",
+ "rgb": "rgb(245,243,255)",
+ "hsl": "hsl(250,100%,97.6%)",
+ "rgbChannel": "245 243 255",
+ "hslChannel": "250 100% 97.6%"
+ },
+ {
+ "scale": 100,
+ "hex": "#ede9fe",
+ "rgb": "rgb(237,233,254)",
+ "hsl": "hsl(251.4,91.3%,95.5%)",
+ "rgbChannel": "237 233 254",
+ "hslChannel": "251.4 91.3% 95.5%"
+ },
+ {
+ "scale": 200,
+ "hex": "#ddd6fe",
+ "rgb": "rgb(221,214,254)",
+ "hsl": "hsl(250.5,95.2%,91.8%)",
+ "rgbChannel": "221 214 254",
+ "hslChannel": "250.5 95.2% 91.8%"
+ },
+ {
+ "scale": 300,
+ "hex": "#c4b5fd",
+ "rgb": "rgb(196,181,253)",
+ "hsl": "hsl(252.5,94.7%,85.1%)",
+ "rgbChannel": "196 181 253",
+ "hslChannel": "252.5 94.7% 85.1%"
+ },
+ {
+ "scale": 400,
+ "hex": "#a78bfa",
+ "rgb": "rgb(167,139,250)",
+ "hsl": "hsl(255.1,91.7%,76.3%)",
+ "rgbChannel": "167 139 250",
+ "hslChannel": "255.1 91.7% 76.3%"
+ },
+ {
+ "scale": 500,
+ "hex": "#8b5cf6",
+ "rgb": "rgb(139,92,246)",
+ "hsl": "hsl(258.3,89.5%,66.3%)",
+ "rgbChannel": "139 92 246",
+ "hslChannel": "258.3 89.5% 66.3%"
+ },
+ {
+ "scale": 600,
+ "hex": "#7c3aed",
+ "rgb": "rgb(124,58,237)",
+ "hsl": "hsl(262.1,83.3%,57.8%)",
+ "rgbChannel": "124 58 237",
+ "hslChannel": "262.1 83.3% 57.8%"
+ },
+ {
+ "scale": 700,
+ "hex": "#6d28d9",
+ "rgb": "rgb(109,40,217)",
+ "hsl": "hsl(263.4,70%,50.4%)",
+ "rgbChannel": "109 40 217",
+ "hslChannel": "263.4 70% 50.4%"
+ },
+ {
+ "scale": 800,
+ "hex": "#5b21b6",
+ "rgb": "rgb(91,33,182)",
+ "hsl": "hsl(263.4,69.3%,42.2%)",
+ "rgbChannel": "91 33 182",
+ "hslChannel": "263.4 69.3% 42.2%"
+ },
+ {
+ "scale": 900,
+ "hex": "#4c1d95",
+ "rgb": "rgb(76,29,149)",
+ "hsl": "hsl(263.5,67.4%,34.9%)",
+ "rgbChannel": "76 29 149",
+ "hslChannel": "263.5 67.4% 34.9%"
+ },
+ {
+ "scale": 950,
+ "hex": "#1e1b4b",
+ "rgb": "rgb(46,16,101)",
+ "hsl": "hsl(261.2,72.6%,22.9%)",
+ "rgbChannel": "46 16 101",
+ "hslChannel": "261.2 72.6% 22.9%"
+ }
+ ],
+ "purple": [
+ {
+ "scale": 50,
+ "hex": "#faf5ff",
+ "rgb": "rgb(250,245,255)",
+ "hsl": "hsl(270,100%,98%)",
+ "rgbChannel": "250 245 255",
+ "hslChannel": "270 100% 98%"
+ },
+ {
+ "scale": 100,
+ "hex": "#f3e8ff",
+ "rgb": "rgb(243,232,255)",
+ "hsl": "hsl(268.7,100%,95.5%)",
+ "rgbChannel": "243 232 255",
+ "hslChannel": "268.7 100% 95.5%"
+ },
+ {
+ "scale": 200,
+ "hex": "#e9d5ff",
+ "rgb": "rgb(233,213,255)",
+ "hsl": "hsl(268.6,100%,91.8%)",
+ "rgbChannel": "233 213 255",
+ "hslChannel": "268.6 100% 91.8%"
+ },
+ {
+ "scale": 300,
+ "hex": "#d8b4fe",
+ "rgb": "rgb(216,180,254)",
+ "hsl": "hsl(269.2,97.4%,85.1%)",
+ "rgbChannel": "216 180 254",
+ "hslChannel": "269.2 97.4% 85.1%"
+ },
+ {
+ "scale": 400,
+ "hex": "#c084fc",
+ "rgb": "rgb(192,132,252)",
+ "hsl": "hsl(270,95.2%,75.3%)",
+ "rgbChannel": "192 132 252",
+ "hslChannel": "270 95.2% 75.3%"
+ },
+ {
+ "scale": 500,
+ "hex": "#a855f7",
+ "rgb": "rgb(168,85,247)",
+ "hsl": "hsl(270.7,91%,65.1%)",
+ "rgbChannel": "168 85 247",
+ "hslChannel": "270.7 91% 65.1%"
+ },
+ {
+ "scale": 600,
+ "hex": "#9333ea",
+ "rgb": "rgb(147,51,234)",
+ "hsl": "hsl(271.5,81.3%,55.9%)",
+ "rgbChannel": "147 51 234",
+ "hslChannel": "271.5 81.3% 55.9%"
+ },
+ {
+ "scale": 700,
+ "hex": "#7e22ce",
+ "rgb": "rgb(126,34,206)",
+ "hsl": "hsl(272.1,71.7%,47.1%)",
+ "rgbChannel": "126 34 206",
+ "hslChannel": "272.1 71.7% 47.1%"
+ },
+ {
+ "scale": 800,
+ "hex": "#6b21a8",
+ "rgb": "rgb(107,33,168)",
+ "hsl": "hsl(272.9,67.2%,39.4%)",
+ "rgbChannel": "107 33 168",
+ "hslChannel": "272.9 67.2% 39.4%"
+ },
+ {
+ "scale": 900,
+ "hex": "#581c87",
+ "rgb": "rgb(88,28,135)",
+ "hsl": "hsl(273.6,65.6%,32%)",
+ "rgbChannel": "88 28 135",
+ "hslChannel": "273.6 65.6% 32%"
+ },
+ {
+ "scale": 950,
+ "hex": "#3b0764",
+ "rgb": "rgb(59,7,100)",
+ "hsl": "hsl(273.5,86.9%,21%)",
+ "rgbChannel": "59 7 100",
+ "hslChannel": "273.5 86.9% 21%"
+ }
+ ],
+ "fuchsia": [
+ {
+ "scale": 50,
+ "hex": "#fdf4ff",
+ "rgb": "rgb(253,244,255)",
+ "hsl": "hsl(289.1,100%,97.8%)",
+ "rgbChannel": "253 244 255",
+ "hslChannel": "289.1 100% 97.8%"
+ },
+ {
+ "scale": 100,
+ "hex": "#fae8ff",
+ "rgb": "rgb(250,232,255)",
+ "hsl": "hsl(287,100%,95.5%)",
+ "rgbChannel": "250 232 255",
+ "hslChannel": "287 100% 95.5%"
+ },
+ {
+ "scale": 200,
+ "hex": "#f5d0fe",
+ "rgb": "rgb(245,208,254)",
+ "hsl": "hsl(288.3,95.8%,90.6%)",
+ "rgbChannel": "245 208 254",
+ "hslChannel": "288.3 95.8% 90.6%"
+ },
+ {
+ "scale": 300,
+ "hex": "#f0abfc",
+ "rgb": "rgb(240,171,252)",
+ "hsl": "hsl(291.1,93.1%,82.9%)",
+ "rgbChannel": "240 171 252",
+ "hslChannel": "291.1 93.1% 82.9%"
+ },
+ {
+ "scale": 400,
+ "hex": "#e879f9",
+ "rgb": "rgb(232,121,249)",
+ "hsl": "hsl(292,91.4%,72.5%)",
+ "rgbChannel": "232 121 249",
+ "hslChannel": "292 91.4% 72.5%"
+ },
+ {
+ "scale": 500,
+ "hex": "#d946ef",
+ "rgb": "rgb(217,70,239)",
+ "hsl": "hsl(292.2,84.1%,60.6%)",
+ "rgbChannel": "217 70 239",
+ "hslChannel": "292.2 84.1% 60.6%"
+ },
+ {
+ "scale": 600,
+ "hex": "#c026d3",
+ "rgb": "rgb(192,38,211)",
+ "hsl": "hsl(293.4,69.5%,48.8%)",
+ "rgbChannel": "192 38 211",
+ "hslChannel": "293.4 69.5% 48.8%"
+ },
+ {
+ "scale": 700,
+ "hex": "#a21caf",
+ "rgb": "rgb(162,28,175)",
+ "hsl": "hsl(294.7,72.4%,39.8%)",
+ "rgbChannel": "162 28 175",
+ "hslChannel": "294.7 72.4% 39.8%"
+ },
+ {
+ "scale": 800,
+ "hex": "#86198f",
+ "rgb": "rgb(134,25,143)",
+ "hsl": "hsl(295.4,70.2%,32.9%)",
+ "rgbChannel": "134 25 143",
+ "hslChannel": "295.4 70.2% 32.9%"
+ },
+ {
+ "scale": 900,
+ "hex": "#701a75",
+ "rgb": "rgb(112,26,117)",
+ "hsl": "hsl(296.7,63.6%,28%)",
+ "rgbChannel": "112 26 117",
+ "hslChannel": "296.7 63.6% 28%"
+ },
+ {
+ "scale": 950,
+ "hex": "#4a044e",
+ "rgb": "rgb(74,4,78)",
+ "hsl": "hsl(296.8,90.2%,16.1%)",
+ "rgbChannel": "74 4 78",
+ "hslChannel": "296.8 90.2% 16.1%"
+ }
+ ],
+ "pink": [
+ {
+ "scale": 50,
+ "hex": "#fdf2f8",
+ "rgb": "rgb(253,242,248)",
+ "hsl": "hsl(327.3,73.3%,97.1%)",
+ "rgbChannel": "253 242 248",
+ "hslChannel": "327.3 73.3% 97.1%"
+ },
+ {
+ "scale": 100,
+ "hex": "#fce7f3",
+ "rgb": "rgb(252,231,243)",
+ "hsl": "hsl(325.7,77.8%,94.7%)",
+ "rgbChannel": "252 231 243",
+ "hslChannel": "325.7 77.8% 94.7%"
+ },
+ {
+ "scale": 200,
+ "hex": "#fbcfe8",
+ "rgb": "rgb(251,207,232)",
+ "hsl": "hsl(325.9,84.6%,89.8%)",
+ "rgbChannel": "251 207 232",
+ "hslChannel": "325.9 84.6% 89.8%"
+ },
+ {
+ "scale": 300,
+ "hex": "#f9a8d4",
+ "rgb": "rgb(249,168,212)",
+ "hsl": "hsl(327.4,87.1%,81.8%)",
+ "rgbChannel": "249 168 212",
+ "hslChannel": "327.4 87.1% 81.8%"
+ },
+ {
+ "scale": 400,
+ "hex": "#f472b6",
+ "rgb": "rgb(244,114,182)",
+ "hsl": "hsl(328.6,85.5%,70.2%)",
+ "rgbChannel": "244 114 182",
+ "hslChannel": "328.6 85.5% 70.2%"
+ },
+ {
+ "scale": 500,
+ "hex": "#ec4899",
+ "rgb": "rgb(236,72,153)",
+ "hsl": "hsl(330.4,81.2%,60.4%)",
+ "rgbChannel": "236 72 153",
+ "hslChannel": "330.4 81.2% 60.4%"
+ },
+ {
+ "scale": 600,
+ "hex": "#db2777",
+ "rgb": "rgb(219,39,119)",
+ "hsl": "hsl(333.3,71.4%,50.6%)",
+ "rgbChannel": "219 39 119",
+ "hslChannel": "333.3 71.4% 50.6%"
+ },
+ {
+ "scale": 700,
+ "hex": "#be185d",
+ "rgb": "rgb(190,24,93)",
+ "hsl": "hsl(335.1,77.6%,42%)",
+ "rgbChannel": "190 24 93",
+ "hslChannel": "335.1 77.6% 42%"
+ },
+ {
+ "scale": 800,
+ "hex": "#9d174d",
+ "rgb": "rgb(157,23,77)",
+ "hsl": "hsl(335.8,74.4%,35.3%)",
+ "rgbChannel": "157 23 77",
+ "hslChannel": "335.8 74.4% 35.3%"
+ },
+ {
+ "scale": 900,
+ "hex": "#831843",
+ "rgb": "rgb(131,24,67)",
+ "hsl": "hsl(335.9,69%,30.4%)",
+ "rgbChannel": "131 24 67",
+ "hslChannel": "335.9 69% 30.4%"
+ },
+ {
+ "scale": 950,
+ "hex": "#500724",
+ "rgb": "rgb(80,7,36)",
+ "hsl": "hsl(336.2,83.9%,17.1%)",
+ "rgbChannel": "80 7 36",
+ "hslChannel": "336.2 83.9% 17.1%"
+ }
+ ],
+ "rose": [
+ {
+ "scale": 50,
+ "hex": "#fff1f2",
+ "rgb": "rgb(255,241,242)",
+ "hsl": "hsl(355.7,100%,97.3%)",
+ "rgbChannel": "255 241 242",
+ "hslChannel": "355.7 100% 97.3%"
+ },
+ {
+ "scale": 100,
+ "hex": "#ffe4e6",
+ "rgb": "rgb(255,228,230)",
+ "hsl": "hsl(355.6,100%,94.7%)",
+ "rgbChannel": "255 228 230",
+ "hslChannel": "355.6 100% 94.7%"
+ },
+ {
+ "scale": 200,
+ "hex": "#fecdd3",
+ "rgb": "rgb(254,205,211)",
+ "hsl": "hsl(352.7,96.1%,90%)",
+ "rgbChannel": "254 205 211",
+ "hslChannel": "352.7 96.1% 90%"
+ },
+ {
+ "scale": 300,
+ "hex": "#fda4af",
+ "rgb": "rgb(253,164,175)",
+ "hsl": "hsl(352.6,95.7%,81.8%)",
+ "rgbChannel": "253 164 175",
+ "hslChannel": "352.6 95.7% 81.8%"
+ },
+ {
+ "scale": 400,
+ "hex": "#fb7185",
+ "rgb": "rgb(251,113,133)",
+ "hsl": "hsl(351.3,94.5%,71.4%)",
+ "rgbChannel": "251 113 133",
+ "hslChannel": "351.3 94.5% 71.4%"
+ },
+ {
+ "scale": 500,
+ "hex": "#f43f5e",
+ "rgb": "rgb(244,63,94)",
+ "hsl": "hsl(349.7,89.2%,60.2%)",
+ "rgbChannel": "244 63 94",
+ "hslChannel": "349.7 89.2% 60.2%"
+ },
+ {
+ "scale": 600,
+ "hex": "#e11d48",
+ "rgb": "rgb(225,29,72)",
+ "hsl": "hsl(346.8,77.2%,49.8%)",
+ "rgbChannel": "225 29 72",
+ "hslChannel": "346.8 77.2% 49.8%"
+ },
+ {
+ "scale": 700,
+ "hex": "#be123c",
+ "rgb": "rgb(190,18,60)",
+ "hsl": "hsl(345.3,82.7%,40.8%)",
+ "rgbChannel": "190 18 60",
+ "hslChannel": "345.3 82.7% 40.8%"
+ },
+ {
+ "scale": 800,
+ "hex": "#9f1239",
+ "rgb": "rgb(159,18,57)",
+ "hsl": "hsl(343.4,79.7%,34.7%)",
+ "rgbChannel": "159 18 57",
+ "hslChannel": "343.4 79.7% 34.7%"
+ },
+ {
+ "scale": 900,
+ "hex": "#881337",
+ "rgb": "rgb(136,19,55)",
+ "hsl": "hsl(341.5,75.5%,30.4%)",
+ "rgbChannel": "136 19 55",
+ "hslChannel": "341.5 75.5% 30.4%"
+ },
+ {
+ "scale": 950,
+ "hex": "#4c0519",
+ "rgb": "rgb(76,5,25)",
+ "hsl": "hsl(343.1,87.7%,15.9%)",
+ "rgbChannel": "76 5 25",
+ "hslChannel": "343.1 87.7% 15.9%"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/colors/neutral.json b/public/r/colors/neutral.json
new file mode 100644
index 00000000..71688eaf
--- /dev/null
+++ b/public/r/colors/neutral.json
@@ -0,0 +1,102 @@
+{
+ "inlineColors": {
+ "light": {
+ "background": "white",
+ "foreground": "neutral-950",
+ "card": "white",
+ "card-foreground": "neutral-950",
+ "popover": "white",
+ "popover-foreground": "neutral-950",
+ "primary": "neutral-900",
+ "primary-foreground": "neutral-50",
+ "secondary": "neutral-100",
+ "secondary-foreground": "neutral-900",
+ "muted": "neutral-100",
+ "muted-foreground": "neutral-500",
+ "accent": "neutral-100",
+ "accent-foreground": "neutral-900",
+ "destructive": "red-500",
+ "destructive-foreground": "neutral-50",
+ "border": "neutral-200",
+ "input": "neutral-200",
+ "ring": "neutral-950"
+ },
+ "dark": {
+ "background": "neutral-950",
+ "foreground": "neutral-50",
+ "card": "neutral-950",
+ "card-foreground": "neutral-50",
+ "popover": "neutral-950",
+ "popover-foreground": "neutral-50",
+ "primary": "neutral-50",
+ "primary-foreground": "neutral-900",
+ "secondary": "neutral-800",
+ "secondary-foreground": "neutral-50",
+ "muted": "neutral-800",
+ "muted-foreground": "neutral-400",
+ "accent": "neutral-800",
+ "accent-foreground": "neutral-50",
+ "destructive": "red-900",
+ "destructive-foreground": "neutral-50",
+ "border": "neutral-800",
+ "input": "neutral-800",
+ "ring": "neutral-300"
+ }
+ },
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "0 0% 3.9%",
+ "card": "0 0% 100%",
+ "card-foreground": "0 0% 3.9%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "0 0% 3.9%",
+ "primary": "0 0% 9%",
+ "primary-foreground": "0 0% 98%",
+ "secondary": "0 0% 96.1%",
+ "secondary-foreground": "0 0% 9%",
+ "muted": "0 0% 96.1%",
+ "muted-foreground": "0 0% 45.1%",
+ "accent": "0 0% 96.1%",
+ "accent-foreground": "0 0% 9%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "0 0% 89.8%",
+ "input": "0 0% 89.8%",
+ "ring": "0 0% 3.9%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "0 0% 3.9%",
+ "foreground": "0 0% 98%",
+ "card": "0 0% 3.9%",
+ "card-foreground": "0 0% 98%",
+ "popover": "0 0% 3.9%",
+ "popover-foreground": "0 0% 98%",
+ "primary": "0 0% 98%",
+ "primary-foreground": "0 0% 9%",
+ "secondary": "0 0% 14.9%",
+ "secondary-foreground": "0 0% 98%",
+ "muted": "0 0% 14.9%",
+ "muted-foreground": "0 0% 63.9%",
+ "accent": "0 0% 14.9%",
+ "accent-foreground": "0 0% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "0 0% 14.9%",
+ "input": "0 0% 14.9%",
+ "ring": "0 0% 83.1%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ },
+ "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n ",
+ "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n --popover: 0 0% 100%;\n --popover-foreground: 0 0% 3.9%;\n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n --ring: 0 0% 3.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n\n .dark {\n --background: 0 0% 3.9%;\n --foreground: 0 0% 98%;\n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n --popover: 0 0% 3.9%;\n --popover-foreground: 0 0% 98%;\n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n --ring: 0 0% 83.1%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}"
+}
\ No newline at end of file
diff --git a/public/r/colors/slate.json b/public/r/colors/slate.json
new file mode 100644
index 00000000..cb5f964c
--- /dev/null
+++ b/public/r/colors/slate.json
@@ -0,0 +1,102 @@
+{
+ "inlineColors": {
+ "light": {
+ "background": "white",
+ "foreground": "slate-950",
+ "card": "white",
+ "card-foreground": "slate-950",
+ "popover": "white",
+ "popover-foreground": "slate-950",
+ "primary": "slate-900",
+ "primary-foreground": "slate-50",
+ "secondary": "slate-100",
+ "secondary-foreground": "slate-900",
+ "muted": "slate-100",
+ "muted-foreground": "slate-500",
+ "accent": "slate-100",
+ "accent-foreground": "slate-900",
+ "destructive": "red-500",
+ "destructive-foreground": "slate-50",
+ "border": "slate-200",
+ "input": "slate-200",
+ "ring": "slate-950"
+ },
+ "dark": {
+ "background": "slate-950",
+ "foreground": "slate-50",
+ "card": "slate-950",
+ "card-foreground": "slate-50",
+ "popover": "slate-950",
+ "popover-foreground": "slate-50",
+ "primary": "slate-50",
+ "primary-foreground": "slate-900",
+ "secondary": "slate-800",
+ "secondary-foreground": "slate-50",
+ "muted": "slate-800",
+ "muted-foreground": "slate-400",
+ "accent": "slate-800",
+ "accent-foreground": "slate-50",
+ "destructive": "red-900",
+ "destructive-foreground": "slate-50",
+ "border": "slate-800",
+ "input": "slate-800",
+ "ring": "slate-300"
+ }
+ },
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "222.2 84% 4.9%",
+ "card": "0 0% 100%",
+ "card-foreground": "222.2 84% 4.9%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "222.2 84% 4.9%",
+ "primary": "222.2 47.4% 11.2%",
+ "primary-foreground": "210 40% 98%",
+ "secondary": "210 40% 96.1%",
+ "secondary-foreground": "222.2 47.4% 11.2%",
+ "muted": "210 40% 96.1%",
+ "muted-foreground": "215.4 16.3% 46.9%",
+ "accent": "210 40% 96.1%",
+ "accent-foreground": "222.2 47.4% 11.2%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "210 40% 98%",
+ "border": "214.3 31.8% 91.4%",
+ "input": "214.3 31.8% 91.4%",
+ "ring": "222.2 84% 4.9%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "222.2 84% 4.9%",
+ "foreground": "210 40% 98%",
+ "card": "222.2 84% 4.9%",
+ "card-foreground": "210 40% 98%",
+ "popover": "222.2 84% 4.9%",
+ "popover-foreground": "210 40% 98%",
+ "primary": "210 40% 98%",
+ "primary-foreground": "222.2 47.4% 11.2%",
+ "secondary": "217.2 32.6% 17.5%",
+ "secondary-foreground": "210 40% 98%",
+ "muted": "217.2 32.6% 17.5%",
+ "muted-foreground": "215 20.2% 65.1%",
+ "accent": "217.2 32.6% 17.5%",
+ "accent-foreground": "210 40% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "210 40% 98%",
+ "border": "217.2 32.6% 17.5%",
+ "input": "217.2 32.6% 17.5%",
+ "ring": "212.7 26.8% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ },
+ "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n ",
+ "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 222.2 84% 4.9%;\n --card: 0 0% 100%;\n --card-foreground: 222.2 84% 4.9%;\n --popover: 0 0% 100%;\n --popover-foreground: 222.2 84% 4.9%;\n --primary: 222.2 47.4% 11.2%;\n --primary-foreground: 210 40% 98%;\n --secondary: 210 40% 96.1%;\n --secondary-foreground: 222.2 47.4% 11.2%;\n --muted: 210 40% 96.1%;\n --muted-foreground: 215.4 16.3% 46.9%;\n --accent: 210 40% 96.1%;\n --accent-foreground: 222.2 47.4% 11.2%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 210 40% 98%;\n --border: 214.3 31.8% 91.4%;\n --input: 214.3 31.8% 91.4%;\n --ring: 222.2 84% 4.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n\n .dark {\n --background: 222.2 84% 4.9%;\n --foreground: 210 40% 98%;\n --card: 222.2 84% 4.9%;\n --card-foreground: 210 40% 98%;\n --popover: 222.2 84% 4.9%;\n --popover-foreground: 210 40% 98%;\n --primary: 210 40% 98%;\n --primary-foreground: 222.2 47.4% 11.2%;\n --secondary: 217.2 32.6% 17.5%;\n --secondary-foreground: 210 40% 98%;\n --muted: 217.2 32.6% 17.5%;\n --muted-foreground: 215 20.2% 65.1%;\n --accent: 217.2 32.6% 17.5%;\n --accent-foreground: 210 40% 98%;\n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 210 40% 98%;\n --border: 217.2 32.6% 17.5%;\n --input: 217.2 32.6% 17.5%;\n --ring: 212.7 26.8% 83.9%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}"
+}
\ No newline at end of file
diff --git a/public/r/colors/stone.json b/public/r/colors/stone.json
new file mode 100644
index 00000000..4a793b87
--- /dev/null
+++ b/public/r/colors/stone.json
@@ -0,0 +1,102 @@
+{
+ "inlineColors": {
+ "light": {
+ "background": "white",
+ "foreground": "stone-950",
+ "card": "white",
+ "card-foreground": "stone-950",
+ "popover": "white",
+ "popover-foreground": "stone-950",
+ "primary": "stone-900",
+ "primary-foreground": "stone-50",
+ "secondary": "stone-100",
+ "secondary-foreground": "stone-900",
+ "muted": "stone-100",
+ "muted-foreground": "stone-500",
+ "accent": "stone-100",
+ "accent-foreground": "stone-900",
+ "destructive": "red-500",
+ "destructive-foreground": "stone-50",
+ "border": "stone-200",
+ "input": "stone-200",
+ "ring": "stone-950"
+ },
+ "dark": {
+ "background": "stone-950",
+ "foreground": "stone-50",
+ "card": "stone-950",
+ "card-foreground": "stone-50",
+ "popover": "stone-950",
+ "popover-foreground": "stone-50",
+ "primary": "stone-50",
+ "primary-foreground": "stone-900",
+ "secondary": "stone-800",
+ "secondary-foreground": "stone-50",
+ "muted": "stone-800",
+ "muted-foreground": "stone-400",
+ "accent": "stone-800",
+ "accent-foreground": "stone-50",
+ "destructive": "red-900",
+ "destructive-foreground": "stone-50",
+ "border": "stone-800",
+ "input": "stone-800",
+ "ring": "stone-300"
+ }
+ },
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "20 14.3% 4.1%",
+ "card": "0 0% 100%",
+ "card-foreground": "20 14.3% 4.1%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "20 14.3% 4.1%",
+ "primary": "24 9.8% 10%",
+ "primary-foreground": "60 9.1% 97.8%",
+ "secondary": "60 4.8% 95.9%",
+ "secondary-foreground": "24 9.8% 10%",
+ "muted": "60 4.8% 95.9%",
+ "muted-foreground": "25 5.3% 44.7%",
+ "accent": "60 4.8% 95.9%",
+ "accent-foreground": "24 9.8% 10%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ "border": "20 5.9% 90%",
+ "input": "20 5.9% 90%",
+ "ring": "20 14.3% 4.1%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "20 14.3% 4.1%",
+ "foreground": "60 9.1% 97.8%",
+ "card": "20 14.3% 4.1%",
+ "card-foreground": "60 9.1% 97.8%",
+ "popover": "20 14.3% 4.1%",
+ "popover-foreground": "60 9.1% 97.8%",
+ "primary": "60 9.1% 97.8%",
+ "primary-foreground": "24 9.8% 10%",
+ "secondary": "12 6.5% 15.1%",
+ "secondary-foreground": "60 9.1% 97.8%",
+ "muted": "12 6.5% 15.1%",
+ "muted-foreground": "24 5.4% 63.9%",
+ "accent": "12 6.5% 15.1%",
+ "accent-foreground": "60 9.1% 97.8%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ "border": "12 6.5% 15.1%",
+ "input": "12 6.5% 15.1%",
+ "ring": "24 5.7% 82.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ },
+ "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n ",
+ "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 20 14.3% 4.1%;\n --card: 0 0% 100%;\n --card-foreground: 20 14.3% 4.1%;\n --popover: 0 0% 100%;\n --popover-foreground: 20 14.3% 4.1%;\n --primary: 24 9.8% 10%;\n --primary-foreground: 60 9.1% 97.8%;\n --secondary: 60 4.8% 95.9%;\n --secondary-foreground: 24 9.8% 10%;\n --muted: 60 4.8% 95.9%;\n --muted-foreground: 25 5.3% 44.7%;\n --accent: 60 4.8% 95.9%;\n --accent-foreground: 24 9.8% 10%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 60 9.1% 97.8%;\n --border: 20 5.9% 90%;\n --input: 20 5.9% 90%;\n --ring: 20 14.3% 4.1%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n\n .dark {\n --background: 20 14.3% 4.1%;\n --foreground: 60 9.1% 97.8%;\n --card: 20 14.3% 4.1%;\n --card-foreground: 60 9.1% 97.8%;\n --popover: 20 14.3% 4.1%;\n --popover-foreground: 60 9.1% 97.8%;\n --primary: 60 9.1% 97.8%;\n --primary-foreground: 24 9.8% 10%;\n --secondary: 12 6.5% 15.1%;\n --secondary-foreground: 60 9.1% 97.8%;\n --muted: 12 6.5% 15.1%;\n --muted-foreground: 24 5.4% 63.9%;\n --accent: 12 6.5% 15.1%;\n --accent-foreground: 60 9.1% 97.8%;\n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 60 9.1% 97.8%;\n --border: 12 6.5% 15.1%;\n --input: 12 6.5% 15.1%;\n --ring: 24 5.7% 82.9%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}"
+}
\ No newline at end of file
diff --git a/public/r/colors/zinc.json b/public/r/colors/zinc.json
new file mode 100644
index 00000000..c2f6a18e
--- /dev/null
+++ b/public/r/colors/zinc.json
@@ -0,0 +1,102 @@
+{
+ "inlineColors": {
+ "light": {
+ "background": "white",
+ "foreground": "zinc-950",
+ "card": "white",
+ "card-foreground": "zinc-950",
+ "popover": "white",
+ "popover-foreground": "zinc-950",
+ "primary": "zinc-900",
+ "primary-foreground": "zinc-50",
+ "secondary": "zinc-100",
+ "secondary-foreground": "zinc-900",
+ "muted": "zinc-100",
+ "muted-foreground": "zinc-500",
+ "accent": "zinc-100",
+ "accent-foreground": "zinc-900",
+ "destructive": "red-500",
+ "destructive-foreground": "zinc-50",
+ "border": "zinc-200",
+ "input": "zinc-200",
+ "ring": "zinc-950"
+ },
+ "dark": {
+ "background": "zinc-950",
+ "foreground": "zinc-50",
+ "card": "zinc-950",
+ "card-foreground": "zinc-50",
+ "popover": "zinc-950",
+ "popover-foreground": "zinc-50",
+ "primary": "zinc-50",
+ "primary-foreground": "zinc-900",
+ "secondary": "zinc-800",
+ "secondary-foreground": "zinc-50",
+ "muted": "zinc-800",
+ "muted-foreground": "zinc-400",
+ "accent": "zinc-800",
+ "accent-foreground": "zinc-50",
+ "destructive": "red-900",
+ "destructive-foreground": "zinc-50",
+ "border": "zinc-800",
+ "input": "zinc-800",
+ "ring": "zinc-300"
+ }
+ },
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "240 10% 3.9%",
+ "card": "0 0% 100%",
+ "card-foreground": "240 10% 3.9%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "240 10% 3.9%",
+ "primary": "240 5.9% 10%",
+ "primary-foreground": "0 0% 98%",
+ "secondary": "240 4.8% 95.9%",
+ "secondary-foreground": "240 5.9% 10%",
+ "muted": "240 4.8% 95.9%",
+ "muted-foreground": "240 3.8% 46.1%",
+ "accent": "240 4.8% 95.9%",
+ "accent-foreground": "240 5.9% 10%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "240 5.9% 90%",
+ "input": "240 5.9% 90%",
+ "ring": "240 10% 3.9%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "240 10% 3.9%",
+ "foreground": "0 0% 98%",
+ "card": "240 10% 3.9%",
+ "card-foreground": "0 0% 98%",
+ "popover": "240 10% 3.9%",
+ "popover-foreground": "0 0% 98%",
+ "primary": "0 0% 98%",
+ "primary-foreground": "240 5.9% 10%",
+ "secondary": "240 3.7% 15.9%",
+ "secondary-foreground": "0 0% 98%",
+ "muted": "240 3.7% 15.9%",
+ "muted-foreground": "240 5% 64.9%",
+ "accent": "240 3.7% 15.9%",
+ "accent-foreground": "0 0% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "240 3.7% 15.9%",
+ "input": "240 3.7% 15.9%",
+ "ring": "240 4.9% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ },
+ "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n ",
+ "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 240 10% 3.9%;\n --card: 0 0% 100%;\n --card-foreground: 240 10% 3.9%;\n --popover: 0 0% 100%;\n --popover-foreground: 240 10% 3.9%;\n --primary: 240 5.9% 10%;\n --primary-foreground: 0 0% 98%;\n --secondary: 240 4.8% 95.9%;\n --secondary-foreground: 240 5.9% 10%;\n --muted: 240 4.8% 95.9%;\n --muted-foreground: 240 3.8% 46.1%;\n --accent: 240 4.8% 95.9%;\n --accent-foreground: 240 5.9% 10%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n --border: 240 5.9% 90%;\n --input: 240 5.9% 90%;\n --ring: 240 10% 3.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n\n .dark {\n --background: 240 10% 3.9%;\n --foreground: 0 0% 98%;\n --card: 240 10% 3.9%;\n --card-foreground: 0 0% 98%;\n --popover: 240 10% 3.9%;\n --popover-foreground: 0 0% 98%;\n --primary: 0 0% 98%;\n --primary-foreground: 240 5.9% 10%;\n --secondary: 240 3.7% 15.9%;\n --secondary-foreground: 0 0% 98%;\n --muted: 240 3.7% 15.9%;\n --muted-foreground: 240 5% 64.9%;\n --accent: 240 3.7% 15.9%;\n --accent-foreground: 0 0% 98%;\n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 0 0% 98%;\n --border: 240 3.7% 15.9%;\n --input: 240 3.7% 15.9%;\n --ring: 240 4.9% 83.9%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}"
+}
\ No newline at end of file
diff --git a/public/r/index.json b/public/r/index.json
new file mode 100644
index 00000000..b17d8bff
--- /dev/null
+++ b/public/r/index.json
@@ -0,0 +1,918 @@
+[
+ {
+ "name": "magic-card",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/magic-card.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "neon-gradient-card",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/neon-gradient-card.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "background-position-spin": "background-position-spin 3000ms infinite alternate"
+ },
+ "keyframes": {
+ "background-position-spin": {
+ "0%": {
+ "backgroundPosition": "top center"
+ },
+ "100%": {
+ "backgroundPosition": "bottom center"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "meteors",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/meteors.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "grid-pattern",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/grid-pattern.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "dot-pattern",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/dot-pattern.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "flickering-grid",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/flickering-grid.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "hero-video-dialog",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/hero-video-dialog.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "marquee",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/marquee.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "keyframes": {
+ "marquee": {
+ "from": {
+ "transform": "translateX(0)"
+ },
+ "to": {
+ "transform": "translateX(calc(-100% - var(--gap)))"
+ }
+ },
+ "marquee-vertical": {
+ "from": {
+ "transform": "translateY(0)"
+ },
+ "to": {
+ "transform": "translateY(calc(-100% - var(--gap)))"
+ }
+ }
+ },
+ "animation": {
+ "marquee": "marquee var(--duration) infinite linear",
+ "marquee-vertical": "marquee-vertical var(--duration) linear infinite"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "globe",
+ "type": "registry:ui",
+ "dependencies": [
+ "cobe",
+ "react-spring"
+ ],
+ "files": [
+ {
+ "path": "magicui/globe.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "shimmer-button",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/shimmer-button.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "shimmer-slide": "shimmer-slide var(--speed) ease-in-out infinite alternate",
+ "spin-around": "spin-around calc(var(--speed) * 2) infinite linear"
+ },
+ "keyframes": {
+ "shimmer-slide": {
+ "to": {
+ "transform": "translate(calc(100cqw - 100%), 0)"
+ }
+ },
+ "spin-around": {
+ "0%": {
+ "transform": "translateZ(0) rotate(0)"
+ },
+ "15%, 35%": {
+ "transform": "translateZ(0) rotate(90deg)"
+ },
+ "65%, 85%": {
+ "transform": "translateZ(0) rotate(270deg)"
+ },
+ "100%": {
+ "transform": "translateZ(0) rotate(360deg)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "tweet-card",
+ "type": "registry:ui",
+ "dependencies": [
+ "react-tweet"
+ ],
+ "files": [
+ {
+ "path": "magicui/tweet-card.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "client-tweet-card",
+ "type": "registry:ui",
+ "dependencies": [
+ "react-tweet"
+ ],
+ "files": [
+ {
+ "path": "magicui/client-tweet-card.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "bento-grid",
+ "type": "registry:ui",
+ "dependencies": [
+ "@radix-ui/react-icons"
+ ],
+ "files": [
+ {
+ "path": "magicui/bento-grid.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "particles",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/particles.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "number-ticker",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/number-ticker.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "ripple",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/ripple.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "ripple": "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite"
+ },
+ "keyframes": {
+ "ripple": {
+ "0%, 100%": {
+ "transform": "translate(-50%, -50%) scale(1)"
+ },
+ "50%": {
+ "transform": "translate(-50%, -50%) scale(0.9)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "retro-grid",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/retro-grid.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "grid": "grid 15s linear infinite"
+ },
+ "keyframes": {
+ "grid": {
+ "0%": {
+ "transform": "translateY(-50%)"
+ },
+ "100%": {
+ "transform": "translateY(0)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "animated-list",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-list.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "animated-shiny-text",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/animated-shiny-text.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "shiny-text": "shiny-text 8s infinite"
+ },
+ "keyframes": {
+ "shiny-text": {
+ "0%, 90%, 100%": {
+ "background-position": "calc(-100% - var(--shiny-width)) 0"
+ },
+ "30%, 60%": {
+ "background-position": "calc(100% + var(--shiny-width)) 0"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "animated-grid-pattern",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-grid-pattern.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "border-beam",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/border-beam.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "border-beam": "border-beam calc(var(--duration)*1s) infinite linear"
+ },
+ "keyframes": {
+ "border-beam": {
+ "100%": {
+ "offset-distance": "100%"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "animated-beam",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-beam.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "text-reveal",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/text-reveal.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "hyper-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/hyper-text.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "animated-gradient-text",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/animated-gradient-text.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "gradient": "gradient 8s linear infinite"
+ },
+ "keyframes": {
+ "gradient": {
+ "to": {
+ "backgroundPosition": "var(--bg-size) 0"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "orbiting-circles",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/orbiting-circles.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "orbit": "orbit calc(var(--duration)*1s) linear infinite"
+ },
+ "keyframes": {
+ "orbit": {
+ "0%": {
+ "transform": "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)"
+ },
+ "100%": {
+ "transform": "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "dock",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/dock.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "word-rotate",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/word-rotate.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "avatar-circles",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/avatar-circles.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "word-pull-up",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/word-pull-up.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "typing-animation",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/typing-animation.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "blur-in",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/blur-in.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "letter-pullup",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/letter-pullup.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "sparkles-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/sparkles-text.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "flip-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/flip-text.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "icon-cloud",
+ "type": "registry:ui",
+ "dependencies": [
+ "next-themes",
+ "react-icon-cloud"
+ ],
+ "files": [
+ {
+ "path": "magicui/icon-cloud.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "gradual-spacing",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/gradual-spacing.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "word-fade-in",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/word-fade-in.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "scroll-based-velocity",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/scroll-based-velocity.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "fade-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/fade-text.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "shiny-button",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/shiny-button.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "box-reveal",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/box-reveal.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "shine-border",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/shine-border.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "shine": "shine var(--duration) infinite linear"
+ },
+ "keyframes": {
+ "shine": {
+ "0%": {
+ "background-position": "0% 0%"
+ },
+ "50%": {
+ "background-position": "100% 100%"
+ },
+ "to": {
+ "background-position": "0% 0%"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "animated-circular-progress-bar",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/animated-circular-progress-bar.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "confetti",
+ "type": "registry:ui",
+ "dependencies": [
+ "canvas-confetti",
+ "@types/canvas-confetti"
+ ],
+ "files": [
+ {
+ "path": "magicui/confetti.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "animated-subscribe-button",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-subscribe-button.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "cool-mode",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/cool-mode.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "pulsating-button",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/pulsating-button.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "pulse": "pulse var(--duration) ease-out infinite"
+ },
+ "keyframes": {
+ "pulse": {
+ "0%, 100%": {
+ "boxShadow": "0 0 0 0 var(--pulse-color)"
+ },
+ "50%": {
+ "boxShadow": "0 0 0 8px var(--pulse-color)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "name": "file-tree",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/file-tree.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "blur-fade",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/blur-fade.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "safari",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/safari.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "iphone-15-pro",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/iphone-15-pro.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
+ {
+ "name": "rainbow-button",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/rainbow-button.tsx",
+ "type": "registry:ui"
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "colors": {
+ "color-1": "hsl(var(--color-1))",
+ "color-2": "hsl(var(--color-2))",
+ "color-3": "hsl(var(--color-3))",
+ "color-4": "hsl(var(--color-4))",
+ "color-5": "hsl(var(--color-5))"
+ },
+ "animation": {
+ "rainbow": "rainbow var(--speed, 2s) infinite linear"
+ },
+ "keyframes": {
+ "rainbow": {
+ "0%": {
+ "background-position": "0%"
+ },
+ "100%": {
+ "background-position": "200%"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "cssVars": {
+ "light": {
+ "--color-1": "0 100% 63%",
+ "--color-2": "270 100% 63%",
+ "--color-3": "210 100% 63%",
+ "--color-4": "195 100% 63%",
+ "--color-5": "90 100% 63%"
+ },
+ "dark": {
+ "--color-1": "0 100% 63%",
+ "--color-2": "270 100% 63%",
+ "--color-3": "210 100% 63%",
+ "--color-4": "195 100% 63%",
+ "--color-5": "90 100% 63%"
+ }
+ }
+ }
+]
\ No newline at end of file
diff --git a/public/r/styles/default/animated-beam.json b/public/r/styles/default/animated-beam.json
new file mode 100644
index 00000000..3aaf681e
--- /dev/null
+++ b/public/r/styles/default/animated-beam.json
@@ -0,0 +1,15 @@
+{
+ "name": "animated-beam",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-beam.tsx",
+ "content": "\"use client\"\n\nimport { RefObject, useEffect, useId, useState } from \"react\"\nimport { motion } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface AnimatedBeamProps {\n className?: string\n containerRef: RefObject<HTMLElement> // Container ref\n fromRef: RefObject<HTMLElement>\n toRef: RefObject<HTMLElement>\n curvature?: number\n reverse?: boolean\n pathColor?: string\n pathWidth?: number\n pathOpacity?: number\n gradientStartColor?: string\n gradientStopColor?: string\n delay?: number\n duration?: number\n startXOffset?: number\n startYOffset?: number\n endXOffset?: number\n endYOffset?: number\n}\n\nexport const AnimatedBeam: React.FC<AnimatedBeamProps> = ({\n className,\n containerRef,\n fromRef,\n toRef,\n curvature = 0,\n reverse = false, // Include the reverse prop\n duration = Math.random() * 3 + 4,\n delay = 0,\n pathColor = \"gray\",\n pathWidth = 2,\n pathOpacity = 0.2,\n gradientStartColor = \"#ffaa40\",\n gradientStopColor = \"#9c40ff\",\n startXOffset = 0,\n startYOffset = 0,\n endXOffset = 0,\n endYOffset = 0,\n}) => {\n const id = useId()\n const [pathD, setPathD] = useState(\"\")\n const [svgDimensions, setSvgDimensions] = useState({ width: 0, height: 0 })\n\n // Calculate the gradient coordinates based on the reverse prop\n const gradientCoordinates = reverse\n ? {\n x1: [\"90%\", \"-10%\"],\n x2: [\"100%\", \"0%\"],\n y1: [\"0%\", \"0%\"],\n y2: [\"0%\", \"0%\"],\n }\n : {\n x1: [\"10%\", \"110%\"],\n x2: [\"0%\", \"100%\"],\n y1: [\"0%\", \"0%\"],\n y2: [\"0%\", \"0%\"],\n }\n\n useEffect(() => {\n const updatePath = () => {\n if (containerRef.current && fromRef.current && toRef.current) {\n const containerRect = containerRef.current.getBoundingClientRect()\n const rectA = fromRef.current.getBoundingClientRect()\n const rectB = toRef.current.getBoundingClientRect()\n\n const svgWidth = containerRect.width\n const svgHeight = containerRect.height\n setSvgDimensions({ width: svgWidth, height: svgHeight })\n\n const startX =\n rectA.left - containerRect.left + rectA.width / 2 + startXOffset\n const startY =\n rectA.top - containerRect.top + rectA.height / 2 + startYOffset\n const endX =\n rectB.left - containerRect.left + rectB.width / 2 + endXOffset\n const endY =\n rectB.top - containerRect.top + rectB.height / 2 + endYOffset\n\n const controlY = startY - curvature\n const d = `M ${startX},${startY} Q ${\n (startX + endX) / 2\n },${controlY} ${endX},${endY}`\n setPathD(d)\n }\n }\n\n // Initialize ResizeObserver\n const resizeObserver = new ResizeObserver((entries) => {\n // For all entries, recalculate the path\n for (let entry of entries) {\n updatePath()\n }\n })\n\n // Observe the container element\n if (containerRef.current) {\n resizeObserver.observe(containerRef.current)\n }\n\n // Call the updatePath initially to set the initial path\n updatePath()\n\n // Clean up the observer on component unmount\n return () => {\n resizeObserver.disconnect()\n }\n }, [\n containerRef,\n fromRef,\n toRef,\n curvature,\n startXOffset,\n startYOffset,\n endXOffset,\n endYOffset,\n ])\n\n return (\n <svg\n fill=\"none\"\n width={svgDimensions.width}\n height={svgDimensions.height}\n xmlns=\"http://www.w3.org/2000/svg\"\n className={cn(\n \"pointer-events-none absolute left-0 top-0 transform-gpu stroke-2\",\n className\n )}\n viewBox={`0 0 ${svgDimensions.width} ${svgDimensions.height}`}\n >\n <path\n d={pathD}\n stroke={pathColor}\n strokeWidth={pathWidth}\n strokeOpacity={pathOpacity}\n strokeLinecap=\"round\"\n />\n <path\n d={pathD}\n strokeWidth={pathWidth}\n stroke={`url(#${id})`}\n strokeOpacity=\"1\"\n strokeLinecap=\"round\"\n />\n <defs>\n <motion.linearGradient\n className=\"transform-gpu\"\n id={id}\n gradientUnits={\"userSpaceOnUse\"}\n initial={{\n x1: \"0%\",\n x2: \"0%\",\n y1: \"0%\",\n y2: \"0%\",\n }}\n animate={{\n x1: gradientCoordinates.x1,\n x2: gradientCoordinates.x2,\n y1: gradientCoordinates.y1,\n y2: gradientCoordinates.y2,\n }}\n transition={{\n delay,\n duration,\n ease: [0.16, 1, 0.3, 1], // https://easings.net/#easeOutExpo\n repeat: Infinity,\n repeatDelay: 0,\n }}\n >\n <stop stopColor={gradientStartColor} stopOpacity=\"0\"></stop>\n <stop stopColor={gradientStartColor}></stop>\n <stop offset=\"32.5%\" stopColor={gradientStopColor}></stop>\n <stop\n offset=\"100%\"\n stopColor={gradientStopColor}\n stopOpacity=\"0\"\n ></stop>\n </motion.linearGradient>\n </defs>\n </svg>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/animated-circular-progress-bar.json b/public/r/styles/default/animated-circular-progress-bar.json
new file mode 100644
index 00000000..1d87c2e8
--- /dev/null
+++ b/public/r/styles/default/animated-circular-progress-bar.json
@@ -0,0 +1,12 @@
+{
+ "name": "animated-circular-progress-bar",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/animated-circular-progress-bar.tsx",
+ "content": "import { cn } from \"@/lib/utils\"\n\ninterface Props {\n max: number\n value: number\n min: number\n gaugePrimaryColor: string\n gaugeSecondaryColor: string\n className?: string\n}\n\nexport default function AnimatedCircularProgressBar({\n max = 100,\n min = 0,\n value = 0,\n gaugePrimaryColor,\n gaugeSecondaryColor,\n className,\n}: Props) {\n const circumference = 2 * Math.PI * 45\n const percentPx = circumference / 100\n const currentPercent = ((value - min) / (max - min)) * 100\n\n return (\n <div\n className={cn(\"relative size-40 text-2xl font-semibold\", className)}\n style={\n {\n \"--circle-size\": \"100px\",\n \"--circumference\": circumference,\n \"--percent-to-px\": `${percentPx}px`,\n \"--gap-percent\": \"5\",\n \"--offset-factor\": \"0\",\n \"--transition-length\": \"1s\",\n \"--transition-step\": \"200ms\",\n \"--delay\": \"0s\",\n \"--percent-to-deg\": \"3.6deg\",\n transform: \"translateZ(0)\",\n } as React.CSSProperties\n }\n >\n <svg\n fill=\"none\"\n className=\"size-full\"\n strokeWidth=\"2\"\n viewBox=\"0 0 100 100\"\n >\n {currentPercent <= 90 && currentPercent >= 0 && (\n <circle\n cx=\"50\"\n cy=\"50\"\n r=\"45\"\n strokeWidth=\"10\"\n strokeDashoffset=\"0\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\" opacity-100\"\n style={\n {\n stroke: gaugeSecondaryColor,\n \"--stroke-percent\": 90 - currentPercent,\n \"--offset-factor-secondary\": \"calc(1 - var(--offset-factor))\",\n strokeDasharray:\n \"calc(var(--stroke-percent) * var(--percent-to-px)) var(--circumference)\",\n transform:\n \"rotate(calc(1turn - 90deg - (var(--gap-percent) * var(--percent-to-deg) * var(--offset-factor-secondary)))) scaleY(-1)\",\n transition: \"all var(--transition-length) ease var(--delay)\",\n transformOrigin:\n \"calc(var(--circle-size) / 2) calc(var(--circle-size) / 2)\",\n } as React.CSSProperties\n }\n />\n )}\n <circle\n cx=\"50\"\n cy=\"50\"\n r=\"45\"\n strokeWidth=\"10\"\n strokeDashoffset=\"0\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"opacity-100\"\n style={\n {\n stroke: gaugePrimaryColor,\n \"--stroke-percent\": currentPercent,\n strokeDasharray:\n \"calc(var(--stroke-percent) * var(--percent-to-px)) var(--circumference)\",\n transition:\n \"var(--transition-length) ease var(--delay),stroke var(--transition-length) ease var(--delay)\",\n transitionProperty: \"stroke-dasharray,transform\",\n transform:\n \"rotate(calc(-90deg + var(--gap-percent) * var(--offset-factor) * var(--percent-to-deg)))\",\n transformOrigin:\n \"calc(var(--circle-size) / 2) calc(var(--circle-size) / 2)\",\n } as React.CSSProperties\n }\n />\n </svg>\n <span\n data-current-value={currentPercent}\n className=\"duration-[var(--transition-length)] delay-[var(--delay)] absolute inset-0 m-auto size-fit ease-linear animate-in fade-in\"\n >\n {currentPercent}\n </span>\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/animated-gradient-text.json b/public/r/styles/default/animated-gradient-text.json
new file mode 100644
index 00000000..6a903842
--- /dev/null
+++ b/public/r/styles/default/animated-gradient-text.json
@@ -0,0 +1,30 @@
+{
+ "name": "animated-gradient-text",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/animated-gradient-text.tsx",
+ "content": "import { ReactNode } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport default function AnimatedGradientText({\n children,\n className,\n}: {\n children: ReactNode\n className?: string\n}) {\n return (\n <div\n className={cn(\n \"group relative mx-auto flex max-w-fit flex-row items-center justify-center rounded-2xl bg-white/40 px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#8fdfff1f] backdrop-blur-sm transition-shadow duration-500 ease-out [--bg-size:300%] hover:shadow-[inset_0_-5px_10px_#8fdfff3f] dark:bg-black/40\",\n className\n )}\n >\n <div\n className={`absolute inset-0 block h-full w-full animate-gradient bg-gradient-to-r from-[#ffaa40]/50 via-[#9c40ff]/50 to-[#ffaa40]/50 bg-[length:var(--bg-size)_100%] p-[1px] ![mask-composite:subtract] [border-radius:inherit] [mask:linear-gradient(#fff_0_0)_content-box,linear-gradient(#fff_0_0)]`}\n />\n\n {children}\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "gradient": "gradient 8s linear infinite"
+ },
+ "keyframes": {
+ "gradient": {
+ "to": {
+ "backgroundPosition": "var(--bg-size) 0"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/animated-grid-pattern.json b/public/r/styles/default/animated-grid-pattern.json
new file mode 100644
index 00000000..a29f7696
--- /dev/null
+++ b/public/r/styles/default/animated-grid-pattern.json
@@ -0,0 +1,15 @@
+{
+ "name": "animated-grid-pattern",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-grid-pattern.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useId, useRef, useState } from \"react\"\nimport { motion } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface GridPatternProps {\n width?: number\n height?: number\n x?: number\n y?: number\n strokeDasharray?: any\n numSquares?: number\n className?: string\n maxOpacity?: number\n duration?: number\n repeatDelay?: number\n}\n\nexport function GridPattern({\n width = 40,\n height = 40,\n x = -1,\n y = -1,\n strokeDasharray = 0,\n numSquares = 50,\n className,\n maxOpacity = 0.5,\n duration = 4,\n repeatDelay = 0.5,\n ...props\n}: GridPatternProps) {\n const id = useId()\n const containerRef = useRef(null)\n const [dimensions, setDimensions] = useState({ width: 0, height: 0 })\n const [squares, setSquares] = useState(() => generateSquares(numSquares))\n\n function getPos() {\n return [\n Math.floor((Math.random() * dimensions.width) / width),\n Math.floor((Math.random() * dimensions.height) / height),\n ]\n }\n\n // Adjust the generateSquares function to return objects with an id, x, and y\n function generateSquares(count: number) {\n return Array.from({ length: count }, (_, i) => ({\n id: i,\n pos: getPos(),\n }))\n }\n\n // Function to update a single square's position\n const updateSquarePosition = (id: number) => {\n setSquares((currentSquares) =>\n currentSquares.map((sq) =>\n sq.id === id\n ? {\n ...sq,\n pos: getPos(),\n }\n : sq\n )\n )\n }\n\n // Update squares to animate in\n useEffect(() => {\n if (dimensions.width && dimensions.height) {\n setSquares(generateSquares(numSquares))\n }\n }, [dimensions, numSquares])\n\n // Resize observer to update container dimensions\n useEffect(() => {\n const resizeObserver = new ResizeObserver((entries) => {\n for (let entry of entries) {\n setDimensions({\n width: entry.contentRect.width,\n height: entry.contentRect.height,\n })\n }\n })\n\n if (containerRef.current) {\n resizeObserver.observe(containerRef.current)\n }\n\n return () => {\n if (containerRef.current) {\n resizeObserver.unobserve(containerRef.current)\n }\n }\n }, [containerRef])\n\n return (\n <svg\n ref={containerRef}\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30\",\n className\n )}\n {...props}\n >\n <defs>\n <pattern\n id={id}\n width={width}\n height={height}\n patternUnits=\"userSpaceOnUse\"\n x={x}\n y={y}\n >\n <path\n d={`M.5 ${height}V.5H${width}`}\n fill=\"none\"\n strokeDasharray={strokeDasharray}\n />\n </pattern>\n </defs>\n <rect width=\"100%\" height=\"100%\" fill={`url(#${id})`} />\n <svg x={x} y={y} className=\"overflow-visible\">\n {squares.map(({ pos: [x, y], id }, index) => (\n <motion.rect\n initial={{ opacity: 0 }}\n animate={{ opacity: maxOpacity }}\n transition={{\n duration,\n repeat: 1,\n delay: index * 0.1,\n repeatType: \"reverse\",\n }}\n onAnimationComplete={() => updateSquarePosition(id)}\n key={`${x}-${y}-${index}`}\n width={width - 1}\n height={height - 1}\n x={x * width + 1}\n y={y * height + 1}\n fill=\"currentColor\"\n strokeWidth=\"0\"\n />\n ))}\n </svg>\n </svg>\n )\n}\n\nexport default GridPattern\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/animated-list.json b/public/r/styles/default/animated-list.json
new file mode 100644
index 00000000..8c2cef23
--- /dev/null
+++ b/public/r/styles/default/animated-list.json
@@ -0,0 +1,15 @@
+{
+ "name": "animated-list",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-list.tsx",
+ "content": "\"use client\"\n\nimport React, { ReactElement, useEffect, useMemo, useState } from \"react\"\nimport { AnimatePresence, motion } from \"framer-motion\"\n\nexport interface AnimatedListProps {\n className?: string\n children: React.ReactNode\n delay?: number\n}\n\nexport const AnimatedList = React.memo(\n ({ className, children, delay = 1000 }: AnimatedListProps) => {\n const [index, setIndex] = useState(0)\n const childrenArray = React.Children.toArray(children)\n\n useEffect(() => {\n const interval = setInterval(() => {\n setIndex((prevIndex) => (prevIndex + 1) % childrenArray.length)\n }, delay)\n\n return () => clearInterval(interval)\n }, [childrenArray.length, delay])\n\n const itemsToShow = useMemo(\n () => childrenArray.slice(0, index + 1).reverse(),\n [index, childrenArray]\n )\n\n return (\n <div className={`flex flex-col items-center gap-4 ${className}`}>\n <AnimatePresence>\n {itemsToShow.map((item) => (\n <AnimatedListItem key={(item as ReactElement).key}>\n {item}\n </AnimatedListItem>\n ))}\n </AnimatePresence>\n </div>\n )\n }\n)\n\nAnimatedList.displayName = \"AnimatedList\"\n\nexport function AnimatedListItem({ children }: { children: React.ReactNode }) {\n const animations = {\n initial: { scale: 0, opacity: 0 },\n animate: { scale: 1, opacity: 1, originY: 0 },\n exit: { scale: 0, opacity: 0 },\n transition: { type: \"spring\", stiffness: 350, damping: 40 },\n }\n\n return (\n <motion.div {...animations} layout className=\"mx-auto w-full\">\n {children}\n </motion.div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/animated-shiny-text.json b/public/r/styles/default/animated-shiny-text.json
new file mode 100644
index 00000000..fe0efd7a
--- /dev/null
+++ b/public/r/styles/default/animated-shiny-text.json
@@ -0,0 +1,33 @@
+{
+ "name": "animated-shiny-text",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/animated-shiny-text.tsx",
+ "content": "import { CSSProperties, FC, ReactNode } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface AnimatedShinyTextProps {\n children: ReactNode\n className?: string\n shimmerWidth?: number\n}\n\nconst AnimatedShinyText: FC<AnimatedShinyTextProps> = ({\n children,\n className,\n shimmerWidth = 100,\n}) => {\n return (\n <p\n style={\n {\n \"--shiny-width\": `${shimmerWidth}px`,\n } as CSSProperties\n }\n className={cn(\n \"mx-auto max-w-md text-neutral-600/70 dark:text-neutral-400/70\",\n\n // Shine effect\n \"animate-shiny-text bg-clip-text bg-no-repeat [background-position:0_0] [background-size:var(--shiny-width)_100%] [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]\",\n\n // Shine gradient\n \"bg-gradient-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80\",\n\n className\n )}\n >\n {children}\n </p>\n )\n}\n\nexport default AnimatedShinyText\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "shiny-text": "shiny-text 8s infinite"
+ },
+ "keyframes": {
+ "shiny-text": {
+ "0%, 90%, 100%": {
+ "background-position": "calc(-100% - var(--shiny-width)) 0"
+ },
+ "30%, 60%": {
+ "background-position": "calc(100% + var(--shiny-width)) 0"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/animated-subscribe-button.json b/public/r/styles/default/animated-subscribe-button.json
new file mode 100644
index 00000000..db879b26
--- /dev/null
+++ b/public/r/styles/default/animated-subscribe-button.json
@@ -0,0 +1,15 @@
+{
+ "name": "animated-subscribe-button",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/animated-subscribe-button.tsx",
+ "content": "\"use client\"\n\nimport React, { useState } from \"react\"\nimport { AnimatePresence, motion } from \"framer-motion\"\n\ninterface AnimatedSubscribeButtonProps {\n buttonColor: string\n buttonTextColor?: string\n subscribeStatus: boolean\n initialText: React.ReactElement | string\n changeText: React.ReactElement | string\n}\n\nexport const AnimatedSubscribeButton: React.FC<\n AnimatedSubscribeButtonProps\n> = ({\n buttonColor,\n subscribeStatus,\n buttonTextColor,\n changeText,\n initialText,\n}) => {\n const [isSubscribed, setIsSubscribed] = useState<boolean>(subscribeStatus)\n\n return (\n <AnimatePresence mode=\"wait\">\n {isSubscribed ? (\n <motion.button\n className=\"relative flex w-[200px] items-center justify-center overflow-hidden rounded-md bg-white p-[10px] outline outline-1 outline-black\"\n onClick={() => setIsSubscribed(false)}\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n >\n <motion.span\n key=\"action\"\n className=\"relative block h-full w-full font-semibold\"\n initial={{ y: -50 }}\n animate={{ y: 0 }}\n style={{ color: buttonColor }}\n >\n {changeText}\n </motion.span>\n </motion.button>\n ) : (\n <motion.button\n className=\"relative flex w-[200px] cursor-pointer items-center justify-center rounded-md border-none p-[10px]\"\n style={{ backgroundColor: buttonColor, color: buttonTextColor }}\n onClick={() => setIsSubscribed(true)}\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n >\n <motion.span\n key=\"reaction\"\n className=\"relative block font-semibold\"\n initial={{ x: 0 }}\n exit={{ x: 50, transition: { duration: 0.1 } }}\n >\n {initialText}\n </motion.span>\n </motion.button>\n )}\n </AnimatePresence>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/avatar-circles.json b/public/r/styles/default/avatar-circles.json
new file mode 100644
index 00000000..5aad60e5
--- /dev/null
+++ b/public/r/styles/default/avatar-circles.json
@@ -0,0 +1,12 @@
+{
+ "name": "avatar-circles",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/avatar-circles.tsx",
+ "content": "\"use client\"\n\nimport React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface AvatarCirclesProps {\n className?: string\n numPeople?: number\n avatarUrls: string[]\n}\n\nconst AvatarCircles = ({\n numPeople,\n className,\n avatarUrls,\n}: AvatarCirclesProps) => {\n return (\n <div className={cn(\"z-10 flex -space-x-4 rtl:space-x-reverse\", className)}>\n {avatarUrls.map((url, index) => (\n <img\n key={index}\n className=\"h-10 w-10 rounded-full border-2 border-white dark:border-gray-800\"\n src={url}\n width={40}\n height={40}\n alt={`Avatar ${index + 1}`}\n />\n ))}\n <a\n className=\"flex h-10 w-10 items-center justify-center rounded-full border-2 border-white bg-black text-center text-xs font-medium text-white hover:bg-gray-600 dark:border-gray-800 dark:bg-white dark:text-black\"\n href=\"\"\n >\n +{numPeople}\n </a>\n </div>\n )\n}\n\nexport default AvatarCircles\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/bento-grid.json b/public/r/styles/default/bento-grid.json
new file mode 100644
index 00000000..3016805d
--- /dev/null
+++ b/public/r/styles/default/bento-grid.json
@@ -0,0 +1,15 @@
+{
+ "name": "bento-grid",
+ "type": "registry:ui",
+ "dependencies": [
+ "@radix-ui/react-icons"
+ ],
+ "files": [
+ {
+ "path": "magicui/bento-grid.tsx",
+ "content": "import { ReactNode } from \"react\"\nimport { ArrowRightIcon } from \"@radix-ui/react-icons\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\n\nconst BentoGrid = ({\n children,\n className,\n}: {\n children: ReactNode\n className?: string\n}) => {\n return (\n <div\n className={cn(\n \"grid w-full auto-rows-[22rem] grid-cols-3 gap-4\",\n className\n )}\n >\n {children}\n </div>\n )\n}\n\nconst BentoCard = ({\n name,\n className,\n background,\n Icon,\n description,\n href,\n cta,\n}: {\n name: string\n className: string\n background: ReactNode\n Icon: any\n description: string\n href: string\n cta: string\n}) => (\n <div\n key={name}\n className={cn(\n \"group relative col-span-3 flex flex-col justify-between overflow-hidden rounded-xl\",\n // light styles\n \"bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]\",\n // dark styles\n \"transform-gpu dark:bg-black dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]\",\n className\n )}\n >\n <div>{background}</div>\n <div className=\"pointer-events-none z-10 flex transform-gpu flex-col gap-1 p-6 transition-all duration-300 group-hover:-translate-y-10\">\n <Icon className=\"h-12 w-12 origin-left transform-gpu text-neutral-700 transition-all duration-300 ease-in-out group-hover:scale-75\" />\n <h3 className=\"text-xl font-semibold text-neutral-700 dark:text-neutral-300\">\n {name}\n </h3>\n <p className=\"max-w-lg text-neutral-400\">{description}</p>\n </div>\n\n <div\n className={cn(\n \"pointer-events-none absolute bottom-0 flex w-full translate-y-10 transform-gpu flex-row items-center p-4 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100\"\n )}\n >\n <Button variant=\"ghost\" asChild size=\"sm\" className=\"pointer-events-auto\">\n <a href={href}>\n {cta}\n <ArrowRightIcon className=\"ml-2 h-4 w-4\" />\n </a>\n </Button>\n </div>\n <div className=\"pointer-events-none absolute inset-0 transform-gpu transition-all duration-300 group-hover:bg-black/[.03] group-hover:dark:bg-neutral-800/10\" />\n </div>\n)\n\nexport { BentoCard, BentoGrid }\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/blur-fade.json b/public/r/styles/default/blur-fade.json
new file mode 100644
index 00000000..09cbc035
--- /dev/null
+++ b/public/r/styles/default/blur-fade.json
@@ -0,0 +1,15 @@
+{
+ "name": "blur-fade",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/blur-fade.tsx",
+ "content": "\"use client\"\n\nimport { useRef } from \"react\"\nimport {\n AnimatePresence,\n motion,\n useInView,\n UseInViewOptions,\n Variants,\n} from \"framer-motion\"\n\ntype MarginType = UseInViewOptions[\"margin\"]\n\ninterface BlurFadeProps {\n children: React.ReactNode\n className?: string\n variant?: {\n hidden: { y: number }\n visible: { y: number }\n }\n duration?: number\n delay?: number\n yOffset?: number\n inView?: boolean\n inViewMargin?: MarginType\n blur?: string\n}\n\nexport default function BlurFade({\n children,\n className,\n variant,\n duration = 0.4,\n delay = 0,\n yOffset = 6,\n inView = false,\n inViewMargin = \"-50px\",\n blur = \"6px\",\n}: BlurFadeProps) {\n const ref = useRef(null)\n const inViewResult = useInView(ref, { once: true, margin: inViewMargin })\n const isInView = !inView || inViewResult\n const defaultVariants: Variants = {\n hidden: { y: yOffset, opacity: 0, filter: `blur(${blur})` },\n visible: { y: -yOffset, opacity: 1, filter: `blur(0px)` },\n }\n const combinedVariants = variant || defaultVariants\n return (\n <AnimatePresence>\n <motion.div\n ref={ref}\n initial=\"hidden\"\n animate={isInView ? \"visible\" : \"hidden\"}\n exit=\"hidden\"\n variants={combinedVariants}\n transition={{\n delay: 0.04 + delay,\n duration,\n ease: \"easeOut\",\n }}\n className={className}\n >\n {children}\n </motion.div>\n </AnimatePresence>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/blur-in.json b/public/r/styles/default/blur-in.json
new file mode 100644
index 00000000..639a99ac
--- /dev/null
+++ b/public/r/styles/default/blur-in.json
@@ -0,0 +1,15 @@
+{
+ "name": "blur-in",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/blur-in.tsx",
+ "content": "\"use client\"\n\nimport { motion } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface BlurIntProps {\n word: string\n className?: string\n variant?: {\n hidden: { filter: string; opacity: number }\n visible: { filter: string; opacity: number }\n }\n duration?: number\n}\nconst BlurIn = ({ word, className, variant, duration = 1 }: BlurIntProps) => {\n const defaultVariants = {\n hidden: { filter: \"blur(10px)\", opacity: 0 },\n visible: { filter: \"blur(0px)\", opacity: 1 },\n }\n const combinedVariants = variant || defaultVariants\n\n return (\n <motion.h1\n initial=\"hidden\"\n animate=\"visible\"\n transition={{ duration }}\n variants={combinedVariants}\n className={cn(\n \"font-display text-center text-4xl font-bold tracking-[-0.02em] drop-shadow-sm md:text-7xl md:leading-[5rem]\",\n className\n )}\n >\n {word}\n </motion.h1>\n )\n}\n\nexport default BlurIn\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/border-beam.json b/public/r/styles/default/border-beam.json
new file mode 100644
index 00000000..b8f5bb50
--- /dev/null
+++ b/public/r/styles/default/border-beam.json
@@ -0,0 +1,30 @@
+{
+ "name": "border-beam",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/border-beam.tsx",
+ "content": "import { cn } from \"@/lib/utils\"\n\ninterface BorderBeamProps {\n className?: string\n size?: number\n duration?: number\n borderWidth?: number\n anchor?: number\n colorFrom?: string\n colorTo?: string\n delay?: number\n}\n\nexport const BorderBeam = ({\n className,\n size = 200,\n duration = 15,\n anchor = 90,\n borderWidth = 1.5,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n delay = 0,\n}: BorderBeamProps) => {\n return (\n <div\n style={\n {\n \"--size\": size,\n \"--duration\": duration,\n \"--anchor\": anchor,\n \"--border-width\": borderWidth,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n \"--delay\": `-${delay}s`,\n } as React.CSSProperties\n }\n className={cn(\n \"pointer-events-none absolute inset-0 rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]\",\n\n // mask styles\n \"![mask-clip:padding-box,border-box] ![mask-composite:intersect] [mask:linear-gradient(transparent,transparent),linear-gradient(white,white)]\",\n\n // pseudo styles\n \"after:absolute after:aspect-square after:w-[calc(var(--size)*1px)] after:animate-border-beam after:[animation-delay:var(--delay)] after:[background:linear-gradient(to_left,var(--color-from),var(--color-to),transparent)] after:[offset-anchor:calc(var(--anchor)*1%)_50%] after:[offset-path:rect(0_auto_auto_0_round_calc(var(--size)*1px))]\",\n className\n )}\n />\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "border-beam": "border-beam calc(var(--duration)*1s) infinite linear"
+ },
+ "keyframes": {
+ "border-beam": {
+ "100%": {
+ "offset-distance": "100%"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/box-reveal.json b/public/r/styles/default/box-reveal.json
new file mode 100644
index 00000000..4e0423c4
--- /dev/null
+++ b/public/r/styles/default/box-reveal.json
@@ -0,0 +1,15 @@
+{
+ "name": "box-reveal",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/box-reveal.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useRef } from \"react\"\nimport { motion, useAnimation, useInView } from \"framer-motion\"\n\ninterface BoxRevealProps {\n children: JSX.Element\n width?: \"fit-content\" | \"100%\"\n boxColor?: string\n duration?: number\n}\n\nexport const BoxReveal = ({\n children,\n width = \"fit-content\",\n boxColor,\n duration,\n}: BoxRevealProps) => {\n const mainControls = useAnimation()\n const slideControls = useAnimation()\n\n const ref = useRef(null)\n const isInView = useInView(ref, { once: true })\n\n useEffect(() => {\n if (isInView) {\n slideControls.start(\"visible\")\n mainControls.start(\"visible\")\n } else {\n slideControls.start(\"hidden\")\n mainControls.start(\"hidden\")\n }\n }, [isInView, mainControls, slideControls])\n\n return (\n <div ref={ref} style={{ position: \"relative\", width, overflow: \"hidden\" }}>\n <motion.div\n variants={{\n hidden: { opacity: 0, y: 75 },\n visible: { opacity: 1, y: 0 },\n }}\n initial=\"hidden\"\n animate={mainControls}\n transition={{ duration: duration ? duration : 0.5, delay: 0.25 }}\n >\n {children}\n </motion.div>\n\n <motion.div\n variants={{\n hidden: { left: 0 },\n visible: { left: \"100%\" },\n }}\n initial=\"hidden\"\n animate={slideControls}\n transition={{ duration: duration ? duration : 0.5, ease: \"easeIn\" }}\n style={{\n position: \"absolute\",\n top: 4,\n bottom: 4,\n left: 0,\n right: 0,\n zIndex: 20,\n background: boxColor ? boxColor : \"#5046e6\",\n }}\n />\n </div>\n )\n}\n\nexport default BoxReveal\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/client-tweet-card.json b/public/r/styles/default/client-tweet-card.json
new file mode 100644
index 00000000..934eb9d1
--- /dev/null
+++ b/public/r/styles/default/client-tweet-card.json
@@ -0,0 +1,15 @@
+{
+ "name": "client-tweet-card",
+ "type": "registry:ui",
+ "dependencies": [
+ "react-tweet"
+ ],
+ "files": [
+ {
+ "path": "magicui/client-tweet-card.tsx",
+ "content": "\"use client\"\n\nimport { TweetProps, useTweet } from \"react-tweet\"\n\nimport {\n MagicTweet,\n TweetNotFound,\n TweetSkeleton,\n} from \"@/registry/default/magicui/tweet-card\"\n\nconst ClientTweetCard = ({\n id,\n apiUrl,\n fallback = <TweetSkeleton />,\n components,\n fetchOptions,\n onError,\n ...props\n}: TweetProps & { className?: string }) => {\n const { data, error, isLoading } = useTweet(id, apiUrl, fetchOptions)\n\n if (isLoading) return fallback\n if (error || !data) {\n const NotFound = components?.TweetNotFound || TweetNotFound\n return <NotFound error={onError ? onError(error) : error} />\n }\n\n return <MagicTweet tweet={data} components={components} {...props} />\n}\n\nexport default ClientTweetCard\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/confetti.json b/public/r/styles/default/confetti.json
new file mode 100644
index 00000000..3310ed56
--- /dev/null
+++ b/public/r/styles/default/confetti.json
@@ -0,0 +1,16 @@
+{
+ "name": "confetti",
+ "type": "registry:ui",
+ "dependencies": [
+ "canvas-confetti",
+ "@types/canvas-confetti"
+ ],
+ "files": [
+ {
+ "path": "magicui/confetti.tsx",
+ "content": "import type { ReactNode } from \"react\"\nimport React, {\n createContext,\n forwardRef,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n} from \"react\"\nimport type {\n GlobalOptions as ConfettiGlobalOptions,\n CreateTypes as ConfettiInstance,\n Options as ConfettiOptions,\n} from \"canvas-confetti\"\nimport confetti from \"canvas-confetti\"\n\nimport { Button, ButtonProps } from \"@/components/ui/button\"\n\ntype Api = {\n fire: (options?: ConfettiOptions) => void\n}\n\ntype Props = React.ComponentPropsWithRef<\"canvas\"> & {\n options?: ConfettiOptions\n globalOptions?: ConfettiGlobalOptions\n manualstart?: boolean\n children?: ReactNode\n}\n\nexport type ConfettiRef = Api | null\n\nconst ConfettiContext = createContext<Api>({} as Api)\n\nconst Confetti = forwardRef<ConfettiRef, Props>((props, ref) => {\n const {\n options,\n globalOptions = { resize: true, useWorker: true },\n manualstart = false,\n children,\n ...rest\n } = props\n const instanceRef = useRef<ConfettiInstance | null>(null) // confetti instance\n\n const canvasRef = useCallback(\n // https://react.dev/reference/react-dom/components/common#ref-callback\n // https://reactjs.org/docs/refs-and-the-dom.html#callback-refs\n (node: HTMLCanvasElement) => {\n if (node !== null) {\n // <canvas> is mounted => create the confetti instance\n if (instanceRef.current) return // if not already created\n instanceRef.current = confetti.create(node, {\n ...globalOptions,\n resize: true,\n })\n } else {\n // <canvas> is unmounted => reset and destroy instanceRef\n if (instanceRef.current) {\n instanceRef.current.reset()\n instanceRef.current = null\n }\n }\n },\n [globalOptions]\n )\n\n // `fire` is a function that calls the instance() with `opts` merged with `options`\n const fire = useCallback(\n (opts = {}) => instanceRef.current?.({ ...options, ...opts }),\n [options]\n )\n\n const api = useMemo(\n () => ({\n fire,\n }),\n [fire]\n )\n\n useImperativeHandle(ref, () => api, [api])\n\n useEffect(() => {\n if (!manualstart) {\n fire()\n }\n }, [manualstart, fire])\n\n return (\n <ConfettiContext.Provider value={api}>\n <canvas ref={canvasRef} {...rest} />\n {children}\n </ConfettiContext.Provider>\n )\n})\n\ninterface ConfettiButtonProps extends ButtonProps {\n options?: ConfettiOptions &\n ConfettiGlobalOptions & { canvas?: HTMLCanvasElement }\n children?: React.ReactNode\n}\n\nfunction ConfettiButton({ options, children, ...props }: ConfettiButtonProps) {\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n const rect = event.currentTarget.getBoundingClientRect()\n const x = rect.left + rect.width / 2\n const y = rect.top + rect.height / 2\n confetti({\n ...options,\n origin: {\n x: x / window.innerWidth,\n y: y / window.innerHeight,\n },\n })\n }\n\n return (\n <Button onClick={handleClick} {...props}>\n {children}\n </Button>\n )\n}\n\nConfetti.displayName = \"Confetti\"\n\nexport { Confetti, ConfettiButton }\n\nexport default Confetti\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/cool-mode.json b/public/r/styles/default/cool-mode.json
new file mode 100644
index 00000000..c2e1225f
--- /dev/null
+++ b/public/r/styles/default/cool-mode.json
@@ -0,0 +1,12 @@
+{
+ "name": "cool-mode",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/cool-mode.tsx",
+ "content": "import React, { ReactNode, RefObject, useEffect, useRef } from \"react\"\n\nexport interface BaseParticle {\n element: HTMLElement | SVGSVGElement\n left: number\n size: number\n top: number\n}\n\nexport interface BaseParticleOptions {\n particle?: string\n size?: number\n}\n\nexport interface CoolParticle extends BaseParticle {\n direction: number\n speedHorz: number\n speedUp: number\n spinSpeed: number\n spinVal: number\n}\n\nexport interface CoolParticleOptions extends BaseParticleOptions {\n particleCount?: number\n speedHorz?: number\n speedUp?: number\n}\n\nconst getContainer = () => {\n const id = \"_coolMode_effect\"\n let existingContainer = document.getElementById(id)\n\n if (existingContainer) {\n return existingContainer\n }\n\n const container = document.createElement(\"div\")\n container.setAttribute(\"id\", id)\n container.setAttribute(\n \"style\",\n \"overflow:hidden; position:fixed; height:100%; top:0; left:0; right:0; bottom:0; pointer-events:none; z-index:2147483647\"\n )\n\n document.body.appendChild(container)\n\n return container\n}\n\nlet instanceCounter = 0\n\nconst applyParticleEffect = (\n element: HTMLElement,\n options?: CoolParticleOptions\n): (() => void) => {\n instanceCounter++\n\n const defaultParticle = \"circle\"\n const particleType = options?.particle || defaultParticle\n const sizes = [15, 20, 25, 35, 45]\n const limit = 45\n\n let particles: CoolParticle[] = []\n let autoAddParticle = false\n let mouseX = 0\n let mouseY = 0\n\n const container = getContainer()\n\n function generateParticle() {\n const size =\n options?.size || sizes[Math.floor(Math.random() * sizes.length)]\n const speedHorz = options?.speedHorz || Math.random() * 10\n const speedUp = options?.speedUp || Math.random() * 25\n const spinVal = Math.random() * 360\n const spinSpeed = Math.random() * 35 * (Math.random() <= 0.5 ? -1 : 1)\n const top = mouseY - size / 2\n const left = mouseX - size / 2\n const direction = Math.random() <= 0.5 ? -1 : 1\n\n const particle = document.createElement(\"div\")\n\n if (particleType === \"circle\") {\n const svgNS = \"http://www.w3.org/2000/svg\"\n const circleSVG = document.createElementNS(svgNS, \"svg\")\n const circle = document.createElementNS(svgNS, \"circle\")\n circle.setAttributeNS(null, \"cx\", (size / 2).toString())\n circle.setAttributeNS(null, \"cy\", (size / 2).toString())\n circle.setAttributeNS(null, \"r\", (size / 2).toString())\n circle.setAttributeNS(\n null,\n \"fill\",\n `hsl(${Math.random() * 360}, 70%, 50%)`\n )\n\n circleSVG.appendChild(circle)\n circleSVG.setAttribute(\"width\", size.toString())\n circleSVG.setAttribute(\"height\", size.toString())\n\n particle.appendChild(circleSVG)\n } else {\n particle.innerHTML = `<img src=\"${particleType}\" width=\"${size}\" height=\"${size}\" style=\"border-radius: 50%\">`\n }\n\n particle.style.position = \"absolute\"\n particle.style.transform = `translate3d(${left}px, ${top}px, 0px) rotate(${spinVal}deg)`\n\n container.appendChild(particle)\n\n particles.push({\n direction,\n element: particle,\n left,\n size,\n speedHorz,\n speedUp,\n spinSpeed,\n spinVal,\n top,\n })\n }\n\n function refreshParticles() {\n particles.forEach((p) => {\n p.left = p.left - p.speedHorz * p.direction\n p.top = p.top - p.speedUp\n p.speedUp = Math.min(p.size, p.speedUp - 1)\n p.spinVal = p.spinVal + p.spinSpeed\n\n if (\n p.top >=\n Math.max(window.innerHeight, document.body.clientHeight) + p.size\n ) {\n particles = particles.filter((o) => o !== p)\n p.element.remove()\n }\n\n p.element.setAttribute(\n \"style\",\n [\n \"position:absolute\",\n \"will-change:transform\",\n `top:${p.top}px`,\n `left:${p.left}px`,\n `transform:rotate(${p.spinVal}deg)`,\n ].join(\";\")\n )\n })\n }\n\n let animationFrame: number | undefined\n\n let lastParticleTimestamp = 0\n const particleGenerationDelay = 30\n\n function loop() {\n const currentTime = performance.now()\n if (\n autoAddParticle &&\n particles.length < limit &&\n currentTime - lastParticleTimestamp > particleGenerationDelay\n ) {\n generateParticle()\n lastParticleTimestamp = currentTime\n }\n\n refreshParticles()\n animationFrame = requestAnimationFrame(loop)\n }\n\n loop()\n\n const isTouchInteraction = \"ontouchstart\" in window\n\n const tap = isTouchInteraction ? \"touchstart\" : \"mousedown\"\n const tapEnd = isTouchInteraction ? \"touchend\" : \"mouseup\"\n const move = isTouchInteraction ? \"touchmove\" : \"mousemove\"\n\n const updateMousePosition = (e: MouseEvent | TouchEvent) => {\n if (\"touches\" in e) {\n mouseX = e.touches?.[0].clientX\n mouseY = e.touches?.[0].clientY\n } else {\n mouseX = e.clientX\n mouseY = e.clientY\n }\n }\n\n const tapHandler = (e: MouseEvent | TouchEvent) => {\n updateMousePosition(e)\n autoAddParticle = true\n }\n\n const disableAutoAddParticle = () => {\n autoAddParticle = false\n }\n\n element.addEventListener(move, updateMousePosition, { passive: true })\n element.addEventListener(tap, tapHandler, { passive: true })\n element.addEventListener(tapEnd, disableAutoAddParticle, { passive: true })\n element.addEventListener(\"mouseleave\", disableAutoAddParticle, {\n passive: true,\n })\n\n return () => {\n element.removeEventListener(move, updateMousePosition)\n element.removeEventListener(tap, tapHandler)\n element.removeEventListener(tapEnd, disableAutoAddParticle)\n element.removeEventListener(\"mouseleave\", disableAutoAddParticle)\n\n const interval = setInterval(() => {\n if (animationFrame && particles.length === 0) {\n cancelAnimationFrame(animationFrame)\n clearInterval(interval)\n\n if (--instanceCounter === 0) {\n container.remove()\n }\n }\n }, 500)\n }\n}\n\ninterface CoolModeProps {\n children: ReactNode\n options?: CoolParticleOptions\n}\n\nexport const CoolMode: React.FC<CoolModeProps> = ({ children, options }) => {\n const ref = useRef<HTMLElement>(null)\n\n useEffect(() => {\n if (ref.current) {\n return applyParticleEffect(ref.current, options)\n }\n }, [options])\n\n return React.cloneElement(children as React.ReactElement, { ref })\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/dock.json b/public/r/styles/default/dock.json
new file mode 100644
index 00000000..3a2d662c
--- /dev/null
+++ b/public/r/styles/default/dock.json
@@ -0,0 +1,15 @@
+{
+ "name": "dock",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/dock.tsx",
+ "content": "\"use client\"\n\nimport React, { PropsWithChildren, useRef } from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { motion, useMotionValue, useSpring, useTransform } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface DockProps extends VariantProps<typeof dockVariants> {\n className?: string\n magnification?: number\n distance?: number\n direction?: \"top\" | \"middle\" | \"bottom\"\n children: React.ReactNode\n}\n\nconst DEFAULT_MAGNIFICATION = 60\nconst DEFAULT_DISTANCE = 140\n\nconst dockVariants = cva(\n \"mx-auto w-max mt-8 h-[58px] p-2 flex gap-2 rounded-2xl border supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 backdrop-blur-md\"\n)\n\nconst Dock = React.forwardRef<HTMLDivElement, DockProps>(\n (\n {\n className,\n children,\n magnification = DEFAULT_MAGNIFICATION,\n distance = DEFAULT_DISTANCE,\n direction = \"bottom\",\n ...props\n },\n ref\n ) => {\n const mouseX = useMotionValue(Infinity)\n\n const renderChildren = () => {\n return React.Children.map(children, (child: any) => {\n return React.cloneElement(child, {\n mouseX: mouseX,\n magnification: magnification,\n distance: distance,\n })\n })\n }\n\n return (\n <motion.div\n ref={ref}\n onMouseMove={(e) => mouseX.set(e.pageX)}\n onMouseLeave={() => mouseX.set(Infinity)}\n {...props}\n className={cn(dockVariants({ className }), {\n \"items-start\": direction === \"top\",\n \"items-center\": direction === \"middle\",\n \"items-end\": direction === \"bottom\",\n })}\n >\n {renderChildren()}\n </motion.div>\n )\n }\n)\n\nDock.displayName = \"Dock\"\n\nexport interface DockIconProps {\n size?: number\n magnification?: number\n distance?: number\n mouseX?: any\n className?: string\n children?: React.ReactNode\n props?: PropsWithChildren\n}\n\nconst DockIcon = ({\n size,\n magnification = DEFAULT_MAGNIFICATION,\n distance = DEFAULT_DISTANCE,\n mouseX,\n className,\n children,\n ...props\n}: DockIconProps) => {\n const ref = useRef<HTMLDivElement>(null)\n\n const distanceCalc = useTransform(mouseX, (val: number) => {\n const bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 }\n\n return val - bounds.x - bounds.width / 2\n })\n\n let widthSync = useTransform(\n distanceCalc,\n [-distance, 0, distance],\n [40, magnification, 40]\n )\n\n let width = useSpring(widthSync, {\n mass: 0.1,\n stiffness: 150,\n damping: 12,\n })\n\n return (\n <motion.div\n ref={ref}\n style={{ width }}\n className={cn(\n \"flex aspect-square cursor-pointer items-center justify-center rounded-full\",\n className\n )}\n {...props}\n >\n {children}\n </motion.div>\n )\n}\n\nDockIcon.displayName = \"DockIcon\"\n\nexport { Dock, DockIcon, dockVariants }\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/dot-pattern.json b/public/r/styles/default/dot-pattern.json
new file mode 100644
index 00000000..7ccf9336
--- /dev/null
+++ b/public/r/styles/default/dot-pattern.json
@@ -0,0 +1,12 @@
+{
+ "name": "dot-pattern",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/dot-pattern.tsx",
+ "content": "import { useId } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface DotPatternProps {\n width?: any\n height?: any\n x?: any\n y?: any\n cx?: any\n cy?: any\n cr?: any\n className?: string\n [key: string]: any\n}\nexport function DotPattern({\n width = 16,\n height = 16,\n x = 0,\n y = 0,\n cx = 1,\n cy = 1,\n cr = 1,\n className,\n ...props\n}: DotPatternProps) {\n const id = useId()\n\n return (\n <svg\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none absolute inset-0 h-full w-full fill-neutral-400/80\",\n className\n )}\n {...props}\n >\n <defs>\n <pattern\n id={id}\n width={width}\n height={height}\n patternUnits=\"userSpaceOnUse\"\n patternContentUnits=\"userSpaceOnUse\"\n x={x}\n y={y}\n >\n <circle id=\"pattern-circle\" cx={cx} cy={cy} r={cr} />\n </pattern>\n </defs>\n <rect width=\"100%\" height=\"100%\" strokeWidth={0} fill={`url(#${id})`} />\n </svg>\n )\n}\n\nexport default DotPattern\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/fade-text.json b/public/r/styles/default/fade-text.json
new file mode 100644
index 00000000..2d687d04
--- /dev/null
+++ b/public/r/styles/default/fade-text.json
@@ -0,0 +1,15 @@
+{
+ "name": "fade-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/fade-text.tsx",
+ "content": "\"use client\"\n\nimport { useMemo } from \"react\"\nimport { motion, Variants } from \"framer-motion\"\n\ntype FadeTextProps = {\n className?: string\n direction?: \"up\" | \"down\" | \"left\" | \"right\"\n framerProps?: Variants\n text: string\n}\n\nexport function FadeText({\n direction = \"up\",\n className,\n framerProps = {\n hidden: { opacity: 0 },\n show: { opacity: 1, transition: { type: \"spring\" } },\n },\n text,\n}: FadeTextProps) {\n const directionOffset = useMemo(() => {\n const map = { up: 10, down: -10, left: -10, right: 10 }\n return map[direction]\n }, [direction])\n\n const axis = direction === \"up\" || direction === \"down\" ? \"y\" : \"x\"\n\n const FADE_ANIMATION_VARIANTS = useMemo(() => {\n const { hidden, show, ...rest } = framerProps as {\n [name: string]: { [name: string]: number; opacity: number }\n }\n\n return {\n ...rest,\n hidden: {\n ...(hidden ?? {}),\n opacity: hidden?.opacity ?? 0,\n [axis]: hidden?.[axis] ?? directionOffset,\n },\n show: {\n ...(show ?? {}),\n opacity: show?.opacity ?? 1,\n [axis]: show?.[axis] ?? 0,\n },\n }\n }, [directionOffset, axis, framerProps])\n\n return (\n <motion.div\n initial=\"hidden\"\n animate=\"show\"\n viewport={{ once: true }}\n variants={FADE_ANIMATION_VARIANTS}\n >\n <motion.span className={className}>{text}</motion.span>\n </motion.div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/file-tree.json b/public/r/styles/default/file-tree.json
new file mode 100644
index 00000000..a17acb70
--- /dev/null
+++ b/public/r/styles/default/file-tree.json
@@ -0,0 +1,12 @@
+{
+ "name": "file-tree",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/file-tree.tsx",
+ "content": "\"use client\"\n\nimport React, {\n createContext,\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useState,\n} from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { FileIcon, FolderIcon, FolderOpenIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { ScrollArea } from \"@/components/ui/scroll-area\"\n\ntype TreeViewElement = {\n id: string\n name: string\n isSelectable?: boolean\n children?: TreeViewElement[]\n}\n\ntype TreeContextProps = {\n selectedId: string | undefined\n expandedItems: string[] | undefined\n indicator: boolean\n handleExpand: (id: string) => void\n selectItem: (id: string) => void\n setExpandedItems?: React.Dispatch<React.SetStateAction<string[] | undefined>>\n openIcon?: React.ReactNode\n closeIcon?: React.ReactNode\n direction: \"rtl\" | \"ltr\"\n}\n\nconst TreeContext = createContext<TreeContextProps | null>(null)\n\nconst useTree = () => {\n const context = useContext(TreeContext)\n if (!context) {\n throw new Error(\"useTree must be used within a TreeProvider\")\n }\n return context\n}\n\ninterface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {}\n\ntype Direction = \"rtl\" | \"ltr\" | undefined\n\ntype TreeViewProps = {\n initialSelectedId?: string\n indicator?: boolean\n elements?: TreeViewElement[]\n initialExpandedItems?: string[]\n openIcon?: React.ReactNode\n closeIcon?: React.ReactNode\n} & TreeViewComponentProps\n\nconst Tree = forwardRef<HTMLDivElement, TreeViewProps>(\n (\n {\n className,\n elements,\n initialSelectedId,\n initialExpandedItems,\n children,\n indicator = true,\n openIcon,\n closeIcon,\n dir,\n ...props\n },\n ref\n ) => {\n const [selectedId, setSelectedId] = useState<string | undefined>(\n initialSelectedId\n )\n const [expandedItems, setExpandedItems] = useState<string[] | undefined>(\n initialExpandedItems\n )\n\n const selectItem = useCallback((id: string) => {\n setSelectedId(id)\n }, [])\n\n const handleExpand = useCallback((id: string) => {\n setExpandedItems((prev) => {\n if (prev?.includes(id)) {\n return prev.filter((item) => item !== id)\n }\n return [...(prev ?? []), id]\n })\n }, [])\n\n const expandSpecificTargetedElements = useCallback(\n (elements?: TreeViewElement[], selectId?: string) => {\n if (!elements || !selectId) return\n const findParent = (\n currentElement: TreeViewElement,\n currentPath: string[] = []\n ) => {\n const isSelectable = currentElement.isSelectable ?? true\n const newPath = [...currentPath, currentElement.id]\n if (currentElement.id === selectId) {\n if (isSelectable) {\n setExpandedItems((prev) => [...(prev ?? []), ...newPath])\n } else {\n if (newPath.includes(currentElement.id)) {\n newPath.pop()\n setExpandedItems((prev) => [...(prev ?? []), ...newPath])\n }\n }\n return\n }\n if (\n isSelectable &&\n currentElement.children &&\n currentElement.children.length > 0\n ) {\n currentElement.children.forEach((child) => {\n findParent(child, newPath)\n })\n }\n }\n elements.forEach((element) => {\n findParent(element)\n })\n },\n []\n )\n\n useEffect(() => {\n if (initialSelectedId) {\n expandSpecificTargetedElements(elements, initialSelectedId)\n }\n }, [initialSelectedId, elements])\n\n const direction = dir === \"rtl\" ? \"rtl\" : \"ltr\"\n\n return (\n <TreeContext.Provider\n value={{\n selectedId,\n expandedItems,\n handleExpand,\n selectItem,\n setExpandedItems,\n indicator,\n openIcon,\n closeIcon,\n direction,\n }}\n >\n <div className={cn(\"size-full\", className)}>\n <ScrollArea\n ref={ref}\n className=\"h-full relative px-2\"\n dir={dir as Direction}\n >\n <AccordionPrimitive.Root\n {...props}\n type=\"multiple\"\n defaultValue={expandedItems}\n value={expandedItems}\n className=\"flex flex-col gap-1\"\n onValueChange={(value) =>\n setExpandedItems((prev) => [...(prev ?? []), value[0]])\n }\n dir={dir as Direction}\n >\n {children}\n </AccordionPrimitive.Root>\n </ScrollArea>\n </div>\n </TreeContext.Provider>\n )\n }\n)\n\nTree.displayName = \"Tree\"\n\nconst TreeIndicator = forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const { direction } = useTree()\n\n return (\n <div\n dir={direction}\n ref={ref}\n className={cn(\n \"h-full w-px bg-muted absolute left-1.5 rtl:right-1.5 py-3 rounded-md hover:bg-slate-300 duration-300 ease-in-out\",\n className\n )}\n {...props}\n />\n )\n})\n\nTreeIndicator.displayName = \"TreeIndicator\"\n\ninterface FolderComponentProps\n extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {}\n\ntype FolderProps = {\n expandedItems?: string[]\n element: string\n isSelectable?: boolean\n isSelect?: boolean\n} & FolderComponentProps\n\nconst Folder = forwardRef<\n HTMLDivElement,\n FolderProps & React.HTMLAttributes<HTMLDivElement>\n>(\n (\n {\n className,\n element,\n value,\n isSelectable = true,\n isSelect,\n children,\n ...props\n },\n ref\n ) => {\n const {\n direction,\n handleExpand,\n expandedItems,\n indicator,\n setExpandedItems,\n openIcon,\n closeIcon,\n } = useTree()\n\n return (\n <AccordionPrimitive.Item\n {...props}\n value={value}\n className=\"relative overflow-hidden h-full \"\n >\n <AccordionPrimitive.Trigger\n className={cn(\n `flex items-center gap-1 text-sm rounded-md`,\n className,\n {\n \"bg-muted rounded-md\": isSelect && isSelectable,\n \"cursor-pointer\": isSelectable,\n \"cursor-not-allowed opacity-50\": !isSelectable,\n }\n )}\n disabled={!isSelectable}\n onClick={() => handleExpand(value)}\n >\n {expandedItems?.includes(value)\n ? openIcon ?? <FolderOpenIcon className=\"size-4\" />\n : closeIcon ?? <FolderIcon className=\"size-4\" />}\n <span>{element}</span>\n </AccordionPrimitive.Trigger>\n <AccordionPrimitive.Content className=\"text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down relative overflow-hidden h-full\">\n {element && indicator && <TreeIndicator aria-hidden=\"true\" />}\n <AccordionPrimitive.Root\n dir={direction}\n type=\"multiple\"\n className=\"flex flex-col gap-1 py-1 ml-5 rtl:mr-5 \"\n defaultValue={expandedItems}\n value={expandedItems}\n onValueChange={(value) => {\n setExpandedItems?.((prev) => [...(prev ?? []), value[0]])\n }}\n >\n {children}\n </AccordionPrimitive.Root>\n </AccordionPrimitive.Content>\n </AccordionPrimitive.Item>\n )\n }\n)\n\nFolder.displayName = \"Folder\"\n\nconst File = forwardRef<\n HTMLButtonElement,\n {\n value: string\n handleSelect?: (id: string) => void\n isSelectable?: boolean\n isSelect?: boolean\n fileIcon?: React.ReactNode\n } & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(\n (\n {\n value,\n className,\n handleSelect,\n isSelectable = true,\n isSelect,\n fileIcon,\n children,\n ...props\n },\n ref\n ) => {\n const { direction, selectedId, selectItem } = useTree()\n const isSelected = isSelect ?? selectedId === value\n return (\n <AccordionPrimitive.Item value={value} className=\"relative\">\n <AccordionPrimitive.Trigger\n ref={ref}\n {...props}\n dir={direction}\n disabled={!isSelectable}\n aria-label=\"File\"\n className={cn(\n \"flex items-center gap-1 cursor-pointer text-sm pr-1 rtl:pl-1 rtl:pr-0 rounded-md duration-200 ease-in-out\",\n {\n \"bg-muted\": isSelected && isSelectable,\n },\n isSelectable ? \"cursor-pointer\" : \"opacity-50 cursor-not-allowed\",\n className\n )}\n onClick={() => selectItem(value)}\n >\n {fileIcon ?? <FileIcon className=\"size-4\" />}\n {children}\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Item>\n )\n }\n)\n\nFile.displayName = \"File\"\n\nconst CollapseButton = forwardRef<\n HTMLButtonElement,\n {\n elements: TreeViewElement[]\n expandAll?: boolean\n } & React.HTMLAttributes<HTMLButtonElement>\n>(({ className, elements, expandAll = false, children, ...props }, ref) => {\n const { expandedItems, setExpandedItems } = useTree()\n\n const expendAllTree = useCallback((elements: TreeViewElement[]) => {\n const expandTree = (element: TreeViewElement) => {\n const isSelectable = element.isSelectable ?? true\n if (isSelectable && element.children && element.children.length > 0) {\n setExpandedItems?.((prev) => [...(prev ?? []), element.id])\n element.children.forEach(expandTree)\n }\n }\n\n elements.forEach(expandTree)\n }, [])\n\n const closeAll = useCallback(() => {\n setExpandedItems?.([])\n }, [])\n\n useEffect(() => {\n console.log(expandAll)\n if (expandAll) {\n expendAllTree(elements)\n }\n }, [expandAll])\n\n return (\n <Button\n variant={\"ghost\"}\n className=\"h-8 w-fit p-1 absolute bottom-1 right-2\"\n onClick={\n expandedItems && expandedItems.length > 0\n ? closeAll\n : () => expendAllTree(elements)\n }\n ref={ref}\n {...props}\n >\n {children}\n <span className=\"sr-only\">Toggle</span>\n </Button>\n )\n})\n\nCollapseButton.displayName = \"CollapseButton\"\n\nexport { CollapseButton, File, Folder, Tree, type TreeViewElement }\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/flickering-grid.json b/public/r/styles/default/flickering-grid.json
new file mode 100644
index 00000000..5f33bd0f
--- /dev/null
+++ b/public/r/styles/default/flickering-grid.json
@@ -0,0 +1,15 @@
+{
+ "name": "flickering-grid",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/flickering-grid.tsx",
+ "content": "\"use client\"\n\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from \"react\"\n\ninterface FlickeringGridProps {\n squareSize?: number\n gridGap?: number\n flickerChance?: number\n color?: string\n width?: number\n height?: number\n className?: string\n maxOpacity?: number\n}\n\nconst FlickeringGrid: React.FC<FlickeringGridProps> = ({\n squareSize = 4,\n gridGap = 6,\n flickerChance = 0.3,\n color = \"rgb(0, 0, 0)\",\n width,\n height,\n className,\n maxOpacity = 0.3,\n}) => {\n const canvasRef = useRef<HTMLCanvasElement>(null)\n const [isInView, setIsInView] = useState(false)\n\n const memoizedColor = useMemo(() => {\n const toRGBA = (color: string) => {\n if (typeof window === \"undefined\") {\n return `rgba(0, 0, 0,`\n }\n const canvas = document.createElement(\"canvas\")\n canvas.width = canvas.height = 1\n const ctx = canvas.getContext(\"2d\")\n if (!ctx) return \"rgba(255, 0, 0,\"\n ctx.fillStyle = color\n ctx.fillRect(0, 0, 1, 1)\n const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data\n return `rgba(${r}, ${g}, ${b},`\n }\n return toRGBA(color)\n }, [color])\n\n const setupCanvas = useCallback(\n (canvas: HTMLCanvasElement) => {\n const canvasWidth = width || canvas.clientWidth\n const canvasHeight = height || canvas.clientHeight\n const dpr = window.devicePixelRatio || 1\n canvas.width = canvasWidth * dpr\n canvas.height = canvasHeight * dpr\n canvas.style.width = `${canvasWidth}px`\n canvas.style.height = `${canvasHeight}px`\n const cols = Math.floor(canvasWidth / (squareSize + gridGap))\n const rows = Math.floor(canvasHeight / (squareSize + gridGap))\n\n const squares = new Float32Array(cols * rows)\n for (let i = 0; i < squares.length; i++) {\n squares[i] = Math.random() * maxOpacity\n }\n\n return {\n width: canvasWidth,\n height: canvasHeight,\n cols,\n rows,\n squares,\n dpr,\n }\n },\n [squareSize, gridGap, width, height, maxOpacity]\n )\n\n const updateSquares = useCallback(\n (squares: Float32Array, deltaTime: number) => {\n for (let i = 0; i < squares.length; i++) {\n if (Math.random() < flickerChance * deltaTime) {\n squares[i] = Math.random() * maxOpacity\n }\n }\n },\n [flickerChance, maxOpacity]\n )\n\n const drawGrid = useCallback(\n (\n ctx: CanvasRenderingContext2D,\n width: number,\n height: number,\n cols: number,\n rows: number,\n squares: Float32Array,\n dpr: number\n ) => {\n ctx.clearRect(0, 0, width, height)\n ctx.fillStyle = \"transparent\"\n ctx.fillRect(0, 0, width, height)\n\n for (let i = 0; i < cols; i++) {\n for (let j = 0; j < rows; j++) {\n const opacity = squares[i * rows + j]\n ctx.fillStyle = `${memoizedColor}${opacity})`\n ctx.fillRect(\n i * (squareSize + gridGap) * dpr,\n j * (squareSize + gridGap) * dpr,\n squareSize * dpr,\n squareSize * dpr\n )\n }\n }\n },\n [memoizedColor, squareSize, gridGap]\n )\n\n useEffect(() => {\n const canvas = canvasRef.current\n if (!canvas) return\n\n const ctx = canvas.getContext(\"2d\")\n if (!ctx) return\n\n let animationFrameId: number\n let { width, height, cols, rows, squares, dpr } = setupCanvas(canvas)\n\n let lastTime = 0\n const animate = (time: number) => {\n if (!isInView) return\n\n const deltaTime = (time - lastTime) / 1000\n lastTime = time\n\n updateSquares(squares, deltaTime)\n drawGrid(ctx, width * dpr, height * dpr, cols, rows, squares, dpr)\n animationFrameId = requestAnimationFrame(animate)\n }\n\n const handleResize = () => {\n ;({ width, height, cols, rows, squares, dpr } = setupCanvas(canvas))\n }\n\n const observer = new IntersectionObserver(\n ([entry]) => {\n setIsInView(entry.isIntersecting)\n },\n { threshold: 0 }\n )\n\n observer.observe(canvas)\n\n window.addEventListener(\"resize\", handleResize)\n\n if (isInView) {\n animationFrameId = requestAnimationFrame(animate)\n }\n\n return () => {\n window.removeEventListener(\"resize\", handleResize)\n cancelAnimationFrame(animationFrameId)\n observer.disconnect()\n }\n }, [setupCanvas, updateSquares, drawGrid, width, height, isInView])\n\n return (\n <canvas\n ref={canvasRef}\n className={`size-full pointer-events-none ${className}`}\n style={{\n width: width || \"100%\",\n height: height || \"100%\",\n }}\n width={width}\n height={height}\n />\n )\n}\n\nexport default FlickeringGrid\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/flip-text.json b/public/r/styles/default/flip-text.json
new file mode 100644
index 00000000..975d2f5a
--- /dev/null
+++ b/public/r/styles/default/flip-text.json
@@ -0,0 +1,15 @@
+{
+ "name": "flip-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/flip-text.tsx",
+ "content": "\"use client\"\n\nimport { AnimatePresence, motion, Variants } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface SlightFlipProps {\n word: string\n duration?: number\n delayMultiple?: number\n framerProps?: Variants\n className?: string\n}\n\nexport default function SlightFlip({\n word,\n duration = 0.5,\n delayMultiple = 0.08,\n framerProps = {\n hidden: { rotateX: -90, opacity: 0 },\n visible: { rotateX: 0, opacity: 1 },\n },\n className,\n}: SlightFlipProps) {\n return (\n <div className=\"flex justify-center space-x-2\">\n <AnimatePresence mode=\"wait\">\n {word.split(\"\").map((char, i) => (\n <motion.span\n key={i}\n initial=\"hidden\"\n animate=\"visible\"\n exit=\"hidden\"\n variants={framerProps}\n transition={{ duration, delay: i * delayMultiple }}\n className={cn(\"origin-center drop-shadow-sm\", className)}\n >\n {char}\n </motion.span>\n ))}\n </AnimatePresence>\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/globe.json b/public/r/styles/default/globe.json
new file mode 100644
index 00000000..82101d6c
--- /dev/null
+++ b/public/r/styles/default/globe.json
@@ -0,0 +1,16 @@
+{
+ "name": "globe",
+ "type": "registry:ui",
+ "dependencies": [
+ "cobe",
+ "react-spring"
+ ],
+ "files": [
+ {
+ "path": "magicui/globe.tsx",
+ "content": "\"use client\"\n\nimport { useCallback, useEffect, useRef } from \"react\"\nimport createGlobe, { COBEOptions } from \"cobe\"\nimport { useSpring } from \"react-spring\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst GLOBE_CONFIG: COBEOptions = {\n width: 800,\n height: 800,\n onRender: () => {},\n devicePixelRatio: 2,\n phi: 0,\n theta: 0.3,\n dark: 0,\n diffuse: 0.4,\n mapSamples: 16000,\n mapBrightness: 1.2,\n baseColor: [1, 1, 1],\n markerColor: [251 / 255, 100 / 255, 21 / 255],\n glowColor: [1, 1, 1],\n markers: [\n { location: [14.5995, 120.9842], size: 0.03 },\n { location: [19.076, 72.8777], size: 0.1 },\n { location: [23.8103, 90.4125], size: 0.05 },\n { location: [30.0444, 31.2357], size: 0.07 },\n { location: [39.9042, 116.4074], size: 0.08 },\n { location: [-23.5505, -46.6333], size: 0.1 },\n { location: [19.4326, -99.1332], size: 0.1 },\n { location: [40.7128, -74.006], size: 0.1 },\n { location: [34.6937, 135.5022], size: 0.05 },\n { location: [41.0082, 28.9784], size: 0.06 },\n ],\n}\n\nexport default function Globe({\n className,\n config = GLOBE_CONFIG,\n}: {\n className?: string\n config?: COBEOptions\n}) {\n let phi = 0\n let width = 0\n const canvasRef = useRef<HTMLCanvasElement>(null)\n const pointerInteracting = useRef(null)\n const pointerInteractionMovement = useRef(0)\n const [{ r }, api] = useSpring(() => ({\n r: 0,\n config: {\n mass: 1,\n tension: 280,\n friction: 40,\n precision: 0.001,\n },\n }))\n\n const updatePointerInteraction = (value: any) => {\n pointerInteracting.current = value\n canvasRef.current!.style.cursor = value ? \"grabbing\" : \"grab\"\n }\n\n const updateMovement = (clientX: any) => {\n if (pointerInteracting.current !== null) {\n const delta = clientX - pointerInteracting.current\n pointerInteractionMovement.current = delta\n api.start({ r: delta / 200 })\n }\n }\n\n const onRender = useCallback(\n (state: Record<string, any>) => {\n if (!pointerInteracting.current) phi += 0.005\n state.phi = phi + r.get()\n state.width = width * 2\n state.height = width * 2\n },\n [pointerInteracting, phi, r]\n )\n\n const onResize = () => {\n if (canvasRef.current) {\n width = canvasRef.current.offsetWidth\n }\n }\n\n useEffect(() => {\n window.addEventListener(\"resize\", onResize)\n onResize()\n\n const globe = createGlobe(canvasRef.current!, {\n ...config,\n width: width * 2,\n height: width * 2,\n onRender,\n })\n\n setTimeout(() => (canvasRef.current!.style.opacity = \"1\"))\n return () => globe.destroy()\n }, [])\n\n return (\n <div\n className={cn(\n \"absolute inset-0 mx-auto aspect-[1/1] w-full max-w-[600px]\",\n className\n )}\n >\n <canvas\n className={cn(\n \"h-full w-full opacity-0 transition-opacity duration-500 [contain:layout_paint_size]\"\n )}\n ref={canvasRef}\n onPointerDown={(e) =>\n updatePointerInteraction(\n e.clientX - pointerInteractionMovement.current\n )\n }\n onPointerUp={() => updatePointerInteraction(null)}\n onPointerOut={() => updatePointerInteraction(null)}\n onMouseMove={(e) => updateMovement(e.clientX)}\n onTouchMove={(e) =>\n e.touches[0] && updateMovement(e.touches[0].clientX)\n }\n />\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/gradual-spacing.json b/public/r/styles/default/gradual-spacing.json
new file mode 100644
index 00000000..9426f87b
--- /dev/null
+++ b/public/r/styles/default/gradual-spacing.json
@@ -0,0 +1,15 @@
+{
+ "name": "gradual-spacing",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/gradual-spacing.tsx",
+ "content": "\"use client\"\n\nimport { AnimatePresence, motion, Variants } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface GradualSpacingProps {\n text: string\n duration?: number\n delayMultiple?: number\n framerProps?: Variants\n className?: string\n}\n\nexport default function GradualSpacing({\n text,\n duration = 0.5,\n delayMultiple = 0.04,\n framerProps = {\n hidden: { opacity: 0, x: -20 },\n visible: { opacity: 1, x: 0 },\n },\n className,\n}: GradualSpacingProps) {\n return (\n <div className=\"flex justify-center space-x-1\">\n <AnimatePresence>\n {text.split(\"\").map((char, i) => (\n <motion.h1\n key={i}\n initial=\"hidden\"\n animate=\"visible\"\n exit=\"hidden\"\n variants={framerProps}\n transition={{ duration, delay: i * delayMultiple }}\n className={cn(\"drop-shadow-sm \", className)}\n >\n {char === \" \" ? <span>&nbsp;</span> : char}\n </motion.h1>\n ))}\n </AnimatePresence>\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/grid-pattern.json b/public/r/styles/default/grid-pattern.json
new file mode 100644
index 00000000..b4555fa5
--- /dev/null
+++ b/public/r/styles/default/grid-pattern.json
@@ -0,0 +1,12 @@
+{
+ "name": "grid-pattern",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/grid-pattern.tsx",
+ "content": "import { useId } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface GridPatternProps {\n width?: any\n height?: any\n x?: any\n y?: any\n squares?: Array<[x: number, y: number]>\n strokeDasharray?: any\n className?: string\n [key: string]: any\n}\n\nexport function GridPattern({\n width = 40,\n height = 40,\n x = -1,\n y = -1,\n strokeDasharray = 0,\n squares,\n className,\n ...props\n}: GridPatternProps) {\n const id = useId()\n\n return (\n <svg\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30\",\n className\n )}\n {...props}\n >\n <defs>\n <pattern\n id={id}\n width={width}\n height={height}\n patternUnits=\"userSpaceOnUse\"\n x={x}\n y={y}\n >\n <path\n d={`M.5 ${height}V.5H${width}`}\n fill=\"none\"\n strokeDasharray={strokeDasharray}\n />\n </pattern>\n </defs>\n <rect width=\"100%\" height=\"100%\" strokeWidth={0} fill={`url(#${id})`} />\n {squares && (\n <svg x={x} y={y} className=\"overflow-visible\">\n {squares.map(([x, y]) => (\n <rect\n strokeWidth=\"0\"\n key={`${x}-${y}`}\n width={width - 1}\n height={height - 1}\n x={x * width + 1}\n y={y * height + 1}\n />\n ))}\n </svg>\n )}\n </svg>\n )\n}\n\nexport default GridPattern\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/hero-video-dialog.json b/public/r/styles/default/hero-video-dialog.json
new file mode 100644
index 00000000..3a16c84c
--- /dev/null
+++ b/public/r/styles/default/hero-video-dialog.json
@@ -0,0 +1,15 @@
+{
+ "name": "hero-video-dialog",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/hero-video-dialog.tsx",
+ "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { AnimatePresence, motion } from \"framer-motion\"\nimport { Play, XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype AnimationStyle =\n | \"from-bottom\"\n | \"from-center\"\n | \"from-top\"\n | \"from-left\"\n | \"from-right\"\n | \"fade\"\n | \"top-in-bottom-out\"\n | \"left-in-right-out\"\n\ninterface HeroVideoProps {\n animationStyle?: AnimationStyle\n videoSrc: string\n thumbnailSrc: string\n thumbnailAlt?: string\n className?: string\n}\n\nconst animationVariants = {\n \"from-bottom\": {\n initial: { y: \"100%\", opacity: 0 },\n animate: { y: 0, opacity: 1 },\n exit: { y: \"100%\", opacity: 0 },\n },\n \"from-center\": {\n initial: { scale: 0.5, opacity: 0 },\n animate: { scale: 1, opacity: 1 },\n exit: { scale: 0.5, opacity: 0 },\n },\n \"from-top\": {\n initial: { y: \"-100%\", opacity: 0 },\n animate: { y: 0, opacity: 1 },\n exit: { y: \"-100%\", opacity: 0 },\n },\n \"from-left\": {\n initial: { x: \"-100%\", opacity: 0 },\n animate: { x: 0, opacity: 1 },\n exit: { x: \"-100%\", opacity: 0 },\n },\n \"from-right\": {\n initial: { x: \"100%\", opacity: 0 },\n animate: { x: 0, opacity: 1 },\n exit: { x: \"100%\", opacity: 0 },\n },\n fade: {\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n exit: { opacity: 0 },\n },\n \"top-in-bottom-out\": {\n initial: { y: \"-100%\", opacity: 0 },\n animate: { y: 0, opacity: 1 },\n exit: { y: \"100%\", opacity: 0 },\n },\n \"left-in-right-out\": {\n initial: { x: \"-100%\", opacity: 0 },\n animate: { x: 0, opacity: 1 },\n exit: { x: \"100%\", opacity: 0 },\n },\n}\n\nexport default function HeroVideoDialog({\n animationStyle = \"from-center\",\n videoSrc,\n thumbnailSrc,\n thumbnailAlt = \"Video thumbnail\",\n className,\n}: HeroVideoProps) {\n const [isVideoOpen, setIsVideoOpen] = useState(false)\n const selectedAnimation = animationVariants[animationStyle]\n\n return (\n <div className={cn(\"relative\", className)}>\n <div\n className=\"relative cursor-pointer group\"\n onClick={() => setIsVideoOpen(true)}\n >\n <img\n src={thumbnailSrc}\n alt={thumbnailAlt}\n width={1920}\n height={1080}\n className=\"w-full transition-all duration-200 group-hover:brightness-[0.8] ease-out rounded-md shadow-lg border\"\n />\n <div className=\"absolute inset-0 flex items-center justify-center group-hover:scale-100 scale-[0.9] transition-all duration-200 ease-out rounded-2xl\">\n <div className=\"bg-primary/10 flex items-center justify-center rounded-full backdrop-blur-md size-28\">\n <div\n className={`flex items-center justify-center bg-gradient-to-b from-primary/30 to-primary shadow-md rounded-full size-20 transition-all ease-out duration-200 relative group-hover:scale-[1.2] scale-100`}\n >\n <Play\n className=\"size-8 text-white fill-white group-hover:scale-105 scale-100 transition-transform duration-200 ease-out\"\n style={{\n filter:\n \"drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))\",\n }}\n />\n </div>\n </div>\n </div>\n </div>\n <AnimatePresence>\n {isVideoOpen && (\n <motion.div\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n onClick={() => setIsVideoOpen(false)}\n exit={{ opacity: 0 }}\n className=\"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-md\"\n >\n <motion.div\n {...selectedAnimation}\n transition={{ type: \"spring\", damping: 30, stiffness: 300 }}\n className=\"relative w-full max-w-4xl aspect-video mx-4 md:mx-0\"\n >\n <motion.button className=\"absolute -top-16 right-0 text-white text-xl bg-neutral-900/50 ring-1 backdrop-blur-md rounded-full p-2 dark:bg-neutral-100/50 dark:text-black\">\n <XIcon className=\"size-5\" />\n </motion.button>\n <div className=\"size-full border-2 border-white rounded-2xl overflow-hidden isolate z-[1] relative\">\n <iframe\n src={videoSrc}\n className=\"size-full rounded-2xl\"\n allowFullScreen\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n ></iframe>\n </div>\n </motion.div>\n </motion.div>\n )}\n </AnimatePresence>\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/hyper-text.json b/public/r/styles/default/hyper-text.json
new file mode 100644
index 00000000..f17fc206
--- /dev/null
+++ b/public/r/styles/default/hyper-text.json
@@ -0,0 +1,15 @@
+{
+ "name": "hyper-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/hyper-text.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useRef, useState } from \"react\"\nimport { AnimatePresence, motion, Variants } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface HyperTextProps {\n text: string\n duration?: number\n framerProps?: Variants\n className?: string\n animateOnLoad?: boolean\n}\n\nconst alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\")\n\nconst getRandomInt = (max: number) => Math.floor(Math.random() * max)\n\nexport default function HyperText({\n text,\n duration = 800,\n framerProps = {\n initial: { opacity: 0, y: -10 },\n animate: { opacity: 1, y: 0 },\n exit: { opacity: 0, y: 3 },\n },\n className,\n animateOnLoad = true,\n}: HyperTextProps) {\n const [displayText, setDisplayText] = useState(text.split(\"\"))\n const [trigger, setTrigger] = useState(false)\n const interations = useRef(0)\n const isFirstRender = useRef(true)\n\n const triggerAnimation = () => {\n interations.current = 0\n setTrigger(true)\n }\n\n useEffect(() => {\n const interval = setInterval(\n () => {\n if (!animateOnLoad && isFirstRender.current) {\n clearInterval(interval)\n isFirstRender.current = false\n return\n }\n if (interations.current < text.length) {\n setDisplayText((t) =>\n t.map((l, i) =>\n l === \" \"\n ? l\n : i <= interations.current\n ? text[i]\n : alphabets[getRandomInt(26)]\n )\n )\n interations.current = interations.current + 0.1\n } else {\n setTrigger(false)\n clearInterval(interval)\n }\n },\n duration / (text.length * 10)\n )\n // Clean up interval on unmount\n return () => clearInterval(interval)\n }, [text, duration, trigger, animateOnLoad])\n\n return (\n <div\n className=\"overflow-hidden py-2 flex cursor-default scale-100\"\n onMouseEnter={triggerAnimation}\n >\n <AnimatePresence mode=\"wait\">\n {displayText.map((letter, i) => (\n <motion.h1\n key={i}\n className={cn(\"font-mono\", letter === \" \" ? \"w-3\" : \"\", className)}\n {...framerProps}\n >\n {letter.toUpperCase()}\n </motion.h1>\n ))}\n </AnimatePresence>\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/icon-cloud.json b/public/r/styles/default/icon-cloud.json
new file mode 100644
index 00000000..f50d6985
--- /dev/null
+++ b/public/r/styles/default/icon-cloud.json
@@ -0,0 +1,16 @@
+{
+ "name": "icon-cloud",
+ "type": "registry:ui",
+ "dependencies": [
+ "next-themes",
+ "react-icon-cloud"
+ ],
+ "files": [
+ {
+ "path": "magicui/icon-cloud.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useMemo, useState } from \"react\"\nimport { useTheme } from \"next-themes\"\nimport {\n Cloud,\n fetchSimpleIcons,\n ICloud,\n renderSimpleIcon,\n SimpleIcon,\n} from \"react-icon-cloud\"\n\nexport const cloudProps: Omit<ICloud, \"children\"> = {\n containerProps: {\n style: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n width: \"100%\",\n paddingTop: 40,\n },\n },\n options: {\n reverse: true,\n depth: 1,\n wheelZoom: false,\n imageScale: 2,\n activeCursor: \"default\",\n tooltip: \"native\",\n initial: [0.1, -0.1],\n clickToFront: 500,\n tooltipDelay: 0,\n outlineColour: \"#0000\",\n maxSpeed: 0.04,\n minSpeed: 0.02,\n // dragControl: false,\n },\n}\n\nexport const renderCustomIcon = (icon: SimpleIcon, theme: string) => {\n const bgHex = theme === \"light\" ? \"#f3f2ef\" : \"#080510\"\n const fallbackHex = theme === \"light\" ? \"#6e6e73\" : \"#ffffff\"\n const minContrastRatio = theme === \"dark\" ? 2 : 1.2\n\n return renderSimpleIcon({\n icon,\n bgHex,\n fallbackHex,\n minContrastRatio,\n size: 42,\n aProps: {\n href: undefined,\n target: undefined,\n rel: undefined,\n onClick: (e: any) => e.preventDefault(),\n },\n })\n}\n\nexport type DynamicCloudProps = {\n iconSlugs: string[]\n}\n\ntype IconData = Awaited<ReturnType<typeof fetchSimpleIcons>>\n\nexport default function IconCloud({ iconSlugs }: DynamicCloudProps) {\n const [data, setData] = useState<IconData | null>(null)\n const { theme } = useTheme()\n\n useEffect(() => {\n fetchSimpleIcons({ slugs: iconSlugs }).then(setData)\n }, [iconSlugs])\n\n const renderedIcons = useMemo(() => {\n if (!data) return null\n\n return Object.values(data.simpleIcons).map((icon) =>\n renderCustomIcon(icon, theme || \"light\")\n )\n }, [data, theme])\n\n return (\n // @ts-ignore\n <Cloud {...cloudProps}>\n <>{renderedIcons}</>\n </Cloud>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/index.json b/public/r/styles/default/index.json
new file mode 100644
index 00000000..d13e4c82
--- /dev/null
+++ b/public/r/styles/default/index.json
@@ -0,0 +1,21 @@
+{
+ "name": "default",
+ "type": "registry:style",
+ "dependencies": [
+ "tailwindcss-animate",
+ "class-variance-authority",
+ "lucide-react"
+ ],
+ "registryDependencies": [
+ "utils"
+ ],
+ "tailwind": {
+ "config": {
+ "plugins": [
+ "require(\"tailwindcss-animate\")"
+ ]
+ }
+ },
+ "cssVars": {},
+ "files": []
+}
\ No newline at end of file
diff --git a/public/r/styles/default/iphone-15-pro.json b/public/r/styles/default/iphone-15-pro.json
new file mode 100644
index 00000000..51acd17b
--- /dev/null
+++ b/public/r/styles/default/iphone-15-pro.json
@@ -0,0 +1,12 @@
+{
+ "name": "iphone-15-pro",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/iphone-15-pro.tsx",
+ "content": "import { SVGProps } from \"react\"\n\nexport interface Iphone15ProProps extends SVGProps<SVGSVGElement> {\n width?: number\n height?: number\n src?: string\n}\n\nexport default function Iphone15Pro({\n width = 433,\n height = 882,\n src,\n ...props\n}: Iphone15ProProps) {\n return (\n <svg\n width={width}\n height={height}\n viewBox={`0 0 ${width} ${height}`}\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n d=\"M2 73C2 32.6832 34.6832 0 75 0H357C397.317 0 430 32.6832 430 73V809C430 849.317 397.317 882 357 882H75C34.6832 882 2 849.317 2 809V73Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n d=\"M0 171C0 170.448 0.447715 170 1 170H3V204H1C0.447715 204 0 203.552 0 203V171Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n d=\"M1 234C1 233.448 1.44772 233 2 233H3.5V300H2C1.44772 300 1 299.552 1 299V234Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n d=\"M1 319C1 318.448 1.44772 318 2 318H3.5V385H2C1.44772 385 1 384.552 1 384V319Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n d=\"M430 279H432C432.552 279 433 279.448 433 280V384C433 384.552 432.552 385 432 385H430V279Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n d=\"M6 74C6 35.3401 37.3401 4 76 4H356C394.66 4 426 35.3401 426 74V808C426 846.66 394.66 878 356 878H76C37.3401 878 6 846.66 6 808V74Z\"\n className=\"dark:fill-[#262626] fill-white\"\n />\n <path\n opacity=\"0.5\"\n d=\"M174 5H258V5.5C258 6.60457 257.105 7.5 256 7.5H176C174.895 7.5 174 6.60457 174 5.5V5Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n d=\"M21.25 75C21.25 44.2101 46.2101 19.25 77 19.25H355C385.79 19.25 410.75 44.2101 410.75 75V807C410.75 837.79 385.79 862.75 355 862.75H77C46.2101 862.75 21.25 837.79 21.25 807V75Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040] stroke-[#E5E5E5] dark:stroke-[#404040] stroke-[0.5]\"\n />\n\n {src && (\n <image\n href={src}\n x=\"21.25\"\n y=\"19.25\"\n width=\"389.5\"\n height=\"843.5\"\n preserveAspectRatio=\"xMidYMid slice\"\n clipPath=\"url(#roundedCorners)\"\n />\n )}\n <path\n d=\"M154 48.5C154 38.2827 162.283 30 172.5 30H259.5C269.717 30 278 38.2827 278 48.5C278 58.7173 269.717 67 259.5 67H172.5C162.283 67 154 58.7173 154 48.5Z\"\n className=\"dark:fill-[#262626] fill-[#F5F5F5]\"\n />\n <path\n d=\"M249 48.5C249 42.701 253.701 38 259.5 38C265.299 38 270 42.701 270 48.5C270 54.299 265.299 59 259.5 59C253.701 59 249 54.299 249 48.5Z\"\n className=\"dark:fill-[#262626] fill-[#F5F5F5]\"\n />\n <path\n d=\"M254 48.5C254 45.4624 256.462 43 259.5 43C262.538 43 265 45.4624 265 48.5C265 51.5376 262.538 54 259.5 54C256.462 54 254 51.5376 254 48.5Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <defs>\n <clipPath id=\"roundedCorners\">\n <rect\n x=\"21.25\"\n y=\"19.25\"\n width=\"389.5\"\n height=\"843.5\"\n rx=\"55.75\"\n ry=\"55.75\"\n />\n </clipPath>\n </defs>\n </svg>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/letter-pullup.json b/public/r/styles/default/letter-pullup.json
new file mode 100644
index 00000000..f49a8e71
--- /dev/null
+++ b/public/r/styles/default/letter-pullup.json
@@ -0,0 +1,15 @@
+{
+ "name": "letter-pullup",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/letter-pullup.tsx",
+ "content": "\"use client\"\n\nimport { motion } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface LetterPullupProps {\n className?: string\n words: string\n delay?: number\n}\n\nexport default function LetterPullup({\n className,\n words,\n delay,\n}: LetterPullupProps) {\n const letters = words.split(\"\")\n\n const pullupVariant = {\n initial: { y: 100, opacity: 0 },\n animate: (i: any) => ({\n y: 0,\n opacity: 1,\n transition: {\n delay: i * (delay ? delay : 0.05), // By default, delay each letter's animation by 0.05 seconds\n },\n }),\n }\n\n return (\n <div className=\"flex justify-center\">\n {letters.map((letter, i) => (\n <motion.h1\n key={i}\n variants={pullupVariant}\n initial=\"initial\"\n animate=\"animate\"\n custom={i}\n className={cn(\n \"font-display text-center text-4xl font-bold tracking-[-0.02em] text-black drop-shadow-sm dark:text-white md:text-4xl md:leading-[5rem]\",\n className\n )}\n >\n {letter === \" \" ? <span>&nbsp;</span> : letter}\n </motion.h1>\n ))}\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/magic-card.json b/public/r/styles/default/magic-card.json
new file mode 100644
index 00000000..5986d3d9
--- /dev/null
+++ b/public/r/styles/default/magic-card.json
@@ -0,0 +1,15 @@
+{
+ "name": "magic-card",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/magic-card.tsx",
+ "content": "\"use client\"\n\nimport React, { useCallback, useEffect } from \"react\"\nimport { motion, useMotionTemplate, useMotionValue } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface MagicCardProps extends React.HTMLAttributes<HTMLDivElement> {\n gradientSize?: number\n gradientColor?: string\n gradientOpacity?: number\n}\n\nexport function MagicCard({\n children,\n className,\n gradientSize = 200,\n gradientColor = \"#262626\",\n gradientOpacity = 0.8,\n}: MagicCardProps) {\n const mouseX = useMotionValue(-gradientSize)\n const mouseY = useMotionValue(-gradientSize)\n\n const handleMouseMove = useCallback(\n (e: React.MouseEvent<HTMLDivElement>) => {\n const { left, top } = e.currentTarget.getBoundingClientRect()\n mouseX.set(e.clientX - left)\n mouseY.set(e.clientY - top)\n },\n [mouseX, mouseY]\n )\n\n const handleMouseLeave = useCallback(() => {\n mouseX.set(-gradientSize)\n mouseY.set(-gradientSize)\n }, [mouseX, mouseY, gradientSize])\n\n useEffect(() => {\n mouseX.set(-gradientSize)\n mouseY.set(-gradientSize)\n }, [mouseX, mouseY, gradientSize])\n\n return (\n <div\n onMouseMove={handleMouseMove}\n onMouseLeave={handleMouseLeave}\n className={cn(\n \"group relative flex size-full overflow-hidden rounded-xl bg-neutral-100 dark:bg-neutral-900 border text-black dark:text-white\",\n className\n )}\n >\n <div className=\"relative z-10\">{children}</div>\n <motion.div\n className=\"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100\"\n style={{\n background: useMotionTemplate`\n radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, ${gradientColor}, transparent 100%)\n `,\n opacity: gradientOpacity,\n }}\n />\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/marquee.json b/public/r/styles/default/marquee.json
new file mode 100644
index 00000000..7c53a239
--- /dev/null
+++ b/public/r/styles/default/marquee.json
@@ -0,0 +1,42 @@
+{
+ "name": "marquee",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/marquee.tsx",
+ "content": "import { cn } from \"@/lib/utils\"\n\ninterface MarqueeProps {\n className?: string\n reverse?: boolean\n pauseOnHover?: boolean\n children?: React.ReactNode\n vertical?: boolean\n repeat?: number\n [key: string]: any\n}\n\nexport default function Marquee({\n className,\n reverse,\n pauseOnHover = false,\n children,\n vertical = false,\n repeat = 4,\n ...props\n}: MarqueeProps) {\n return (\n <div\n {...props}\n className={cn(\n \"group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]\",\n {\n \"flex-row\": !vertical,\n \"flex-col\": vertical,\n },\n className\n )}\n >\n {Array(repeat)\n .fill(0)\n .map((_, i) => (\n <div\n key={i}\n className={cn(\"flex shrink-0 justify-around [gap:var(--gap)]\", {\n \"animate-marquee flex-row\": !vertical,\n \"animate-marquee-vertical flex-col\": vertical,\n \"group-hover:[animation-play-state:paused]\": pauseOnHover,\n \"[animation-direction:reverse]\": reverse,\n })}\n >\n {children}\n </div>\n ))}\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "keyframes": {
+ "marquee": {
+ "from": {
+ "transform": "translateX(0)"
+ },
+ "to": {
+ "transform": "translateX(calc(-100% - var(--gap)))"
+ }
+ },
+ "marquee-vertical": {
+ "from": {
+ "transform": "translateY(0)"
+ },
+ "to": {
+ "transform": "translateY(calc(-100% - var(--gap)))"
+ }
+ }
+ },
+ "animation": {
+ "marquee": "marquee var(--duration) infinite linear",
+ "marquee-vertical": "marquee-vertical var(--duration) linear infinite"
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/meteors.json b/public/r/styles/default/meteors.json
new file mode 100644
index 00000000..5af7b818
--- /dev/null
+++ b/public/r/styles/default/meteors.json
@@ -0,0 +1,12 @@
+{
+ "name": "meteors",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/meteors.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useState } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface MeteorsProps {\n number?: number\n}\nexport const Meteors = ({ number = 20 }: MeteorsProps) => {\n const [meteorStyles, setMeteorStyles] = useState<Array<React.CSSProperties>>(\n []\n )\n\n useEffect(() => {\n const styles = [...new Array(number)].map(() => ({\n top: -5,\n left: Math.floor(Math.random() * window.innerWidth) + \"px\",\n animationDelay: Math.random() * 1 + 0.2 + \"s\",\n animationDuration: Math.floor(Math.random() * 8 + 2) + \"s\",\n }))\n setMeteorStyles(styles)\n }, [number])\n\n return (\n <>\n {[...meteorStyles].map((style, idx) => (\n // Meteor Head\n <span\n key={idx}\n className={cn(\n \"pointer-events-none absolute left-1/2 top-1/2 size-0.5 rotate-[215deg] animate-meteor rounded-full bg-slate-500 shadow-[0_0_0_1px_#ffffff10]\"\n )}\n style={style}\n >\n {/* Meteor Tail */}\n <div className=\"pointer-events-none absolute top-1/2 -z-10 h-px w-[50px] -translate-y-1/2 bg-gradient-to-r from-slate-500 to-transparent\" />\n </span>\n ))}\n </>\n )\n}\n\nexport default Meteors\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/neon-gradient-card.json b/public/r/styles/default/neon-gradient-card.json
new file mode 100644
index 00000000..f2effcae
--- /dev/null
+++ b/public/r/styles/default/neon-gradient-card.json
@@ -0,0 +1,33 @@
+{
+ "name": "neon-gradient-card",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/neon-gradient-card.tsx",
+ "content": "\"use client\"\n\nimport {\n CSSProperties,\n ReactElement,\n ReactNode,\n useEffect,\n useRef,\n useState,\n} from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface NeonColorsProps {\n firstColor: string\n secondColor: string\n}\n\ninterface NeonGradientCardProps {\n /**\n * @default <div />\n * @type ReactElement\n * @description\n * The component to be rendered as the card\n * */\n as?: ReactElement\n /**\n * @default \"\"\n * @type string\n * @description\n * The className of the card\n */\n className?: string\n\n /**\n * @default \"\"\n * @type ReactNode\n * @description\n * The children of the card\n * */\n children?: ReactNode\n\n /**\n * @default 5\n * @type number\n * @description\n * The size of the border in pixels\n * */\n borderSize?: number\n\n /**\n * @default 20\n * @type number\n * @description\n * The size of the radius in pixels\n * */\n borderRadius?: number\n\n /**\n * @default \"{ firstColor: '#ff00aa', secondColor: '#00FFF1' }\"\n * @type string\n * @description\n * The colors of the neon gradient\n * */\n neonColors?: NeonColorsProps\n\n [key: string]: any\n}\n\nconst NeonGradientCard: React.FC<NeonGradientCardProps> = ({\n className,\n children,\n borderSize = 2,\n borderRadius = 20,\n neonColors = {\n firstColor: \"#ff00aa\",\n secondColor: \"#00FFF1\",\n },\n ...props\n}) => {\n const containerRef = useRef<HTMLDivElement>(null)\n const [dimensions, setDimensions] = useState({ width: 0, height: 0 })\n\n useEffect(() => {\n const updateDimensions = () => {\n if (containerRef.current) {\n const { offsetWidth, offsetHeight } = containerRef.current\n setDimensions({ width: offsetWidth, height: offsetHeight })\n }\n }\n\n updateDimensions()\n window.addEventListener(\"resize\", updateDimensions)\n\n return () => {\n window.removeEventListener(\"resize\", updateDimensions)\n }\n }, [])\n\n useEffect(() => {\n if (containerRef.current) {\n const { offsetWidth, offsetHeight } = containerRef.current\n setDimensions({ width: offsetWidth, height: offsetHeight })\n }\n }, [children])\n\n return (\n <div\n ref={containerRef}\n style={\n {\n \"--border-size\": `${borderSize}px`,\n \"--border-radius\": `${borderRadius}px`,\n \"--neon-first-color\": neonColors.firstColor,\n \"--neon-second-color\": neonColors.secondColor,\n \"--card-width\": `${dimensions.width}px`,\n \"--card-height\": `${dimensions.height}px`,\n \"--card-content-radius\": `${borderRadius - borderSize}px`,\n \"--pseudo-element-background-image\": `linear-gradient(0deg, ${neonColors.firstColor}, ${neonColors.secondColor})`,\n \"--pseudo-element-width\": `${dimensions.width + borderSize * 2}px`,\n \"--pseudo-element-height\": `${dimensions.height + borderSize * 2}px`,\n \"--after-blur\": `${dimensions.width / 3}px`,\n } as CSSProperties\n }\n className={cn(\n \"relative z-10 size-full rounded-[var(--border-radius)]\",\n className\n )}\n {...props}\n >\n <div\n className={cn(\n \"relative size-full min-h-[inherit] rounded-[var(--card-content-radius)] bg-gray-100 p-6\",\n \"before:absolute before:-left-[var(--border-size)] before:-top-[var(--border-size)] before:-z-10 before:block\",\n \"before:h-[var(--pseudo-element-height)] before:w-[var(--pseudo-element-width)] before:rounded-[var(--border-radius)] before:content-['']\",\n \"before:bg-[linear-gradient(0deg,var(--neon-first-color),var(--neon-second-color))] before:bg-[length:100%_200%]\",\n \"before:animate-background-position-spin\",\n \"after:absolute after:-left-[var(--border-size)] after:-top-[var(--border-size)] after:-z-10 after:block\",\n \"after:h-[var(--pseudo-element-height)] after:w-[var(--pseudo-element-width)] after:rounded-[var(--border-radius)] after:blur-[var(--after-blur)] after:content-['']\",\n \"after:bg-[linear-gradient(0deg,var(--neon-first-color),var(--neon-second-color))] after:bg-[length:100%_200%] after:opacity-80\",\n \"after:animate-background-position-spin\",\n \"dark:bg-neutral-900\"\n )}\n >\n {children}\n </div>\n </div>\n )\n}\n\nexport { NeonGradientCard }\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "background-position-spin": "background-position-spin 3000ms infinite alternate"
+ },
+ "keyframes": {
+ "background-position-spin": {
+ "0%": {
+ "backgroundPosition": "top center"
+ },
+ "100%": {
+ "backgroundPosition": "bottom center"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/number-ticker.json b/public/r/styles/default/number-ticker.json
new file mode 100644
index 00000000..088ba05f
--- /dev/null
+++ b/public/r/styles/default/number-ticker.json
@@ -0,0 +1,15 @@
+{
+ "name": "number-ticker",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/number-ticker.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useRef } from \"react\"\nimport { useInView, useMotionValue, useSpring } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport default function NumberTicker({\n value,\n direction = \"up\",\n delay = 0,\n className,\n decimalPlaces = 0,\n}: {\n value: number\n direction?: \"up\" | \"down\"\n className?: string\n delay?: number // delay in s\n decimalPlaces?: number\n}) {\n const ref = useRef<HTMLSpanElement>(null)\n const motionValue = useMotionValue(direction === \"down\" ? value : 0)\n const springValue = useSpring(motionValue, {\n damping: 60,\n stiffness: 100,\n })\n const isInView = useInView(ref, { once: true, margin: \"0px\" })\n\n useEffect(() => {\n isInView &&\n setTimeout(() => {\n motionValue.set(direction === \"down\" ? 0 : value)\n }, delay * 1000)\n }, [motionValue, isInView, delay, value, direction])\n\n useEffect(\n () =>\n springValue.on(\"change\", (latest) => {\n if (ref.current) {\n ref.current.textContent = Intl.NumberFormat(\"en-US\", {\n minimumFractionDigits: decimalPlaces,\n maximumFractionDigits: decimalPlaces,\n }).format(Number(latest.toFixed(decimalPlaces)))\n }\n }),\n [springValue, decimalPlaces]\n )\n\n return (\n <span\n className={cn(\n \"inline-block tabular-nums text-black dark:text-white tracking-wider\",\n className\n )}\n ref={ref}\n />\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/orbiting-circles.json b/public/r/styles/default/orbiting-circles.json
new file mode 100644
index 00000000..364a6f41
--- /dev/null
+++ b/public/r/styles/default/orbiting-circles.json
@@ -0,0 +1,33 @@
+{
+ "name": "orbiting-circles",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/orbiting-circles.tsx",
+ "content": "import { cn } from \"@/lib/utils\"\n\nexport interface OrbitingCirclesProps {\n className?: string\n children?: React.ReactNode\n reverse?: boolean\n duration?: number\n delay?: number\n radius?: number\n path?: boolean\n}\n\nexport default function OrbitingCircles({\n className,\n children,\n reverse,\n duration = 20,\n delay = 10,\n radius = 50,\n path = true,\n}: OrbitingCirclesProps) {\n return (\n <>\n {path && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n className=\"pointer-events-none absolute inset-0 size-full\"\n >\n <circle\n className=\"stroke-black/10 stroke-1 dark:stroke-white/10\"\n cx=\"50%\"\n cy=\"50%\"\n r={radius}\n fill=\"none\"\n />\n </svg>\n )}\n\n <div\n style={\n {\n \"--duration\": duration,\n \"--radius\": radius,\n \"--delay\": -delay,\n } as React.CSSProperties\n }\n className={cn(\n \"absolute flex size-full transform-gpu animate-orbit items-center justify-center rounded-full border bg-black/10 [animation-delay:calc(var(--delay)*1000ms)] dark:bg-white/10\",\n { \"[animation-direction:reverse]\": reverse },\n className\n )}\n >\n {children}\n </div>\n </>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "orbit": "orbit calc(var(--duration)*1s) linear infinite"
+ },
+ "keyframes": {
+ "orbit": {
+ "0%": {
+ "transform": "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)"
+ },
+ "100%": {
+ "transform": "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/particles.json b/public/r/styles/default/particles.json
new file mode 100644
index 00000000..a2ff6dd5
--- /dev/null
+++ b/public/r/styles/default/particles.json
@@ -0,0 +1,12 @@
+{
+ "name": "particles",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/particles.tsx",
+ "content": "\"use client\"\n\nimport React, { useEffect, useRef, useState } from \"react\"\n\ninterface MousePosition {\n x: number\n y: number\n}\n\nfunction MousePosition(): MousePosition {\n const [mousePosition, setMousePosition] = useState<MousePosition>({\n x: 0,\n y: 0,\n })\n\n useEffect(() => {\n const handleMouseMove = (event: MouseEvent) => {\n setMousePosition({ x: event.clientX, y: event.clientY })\n }\n\n window.addEventListener(\"mousemove\", handleMouseMove)\n\n return () => {\n window.removeEventListener(\"mousemove\", handleMouseMove)\n }\n }, [])\n\n return mousePosition\n}\n\ninterface ParticlesProps {\n className?: string\n quantity?: number\n staticity?: number\n ease?: number\n size?: number\n refresh?: boolean\n color?: string\n vx?: number\n vy?: number\n}\nfunction hexToRgb(hex: string): number[] {\n hex = hex.replace(\"#\", \"\")\n\n if (hex.length === 3) {\n hex = hex\n .split(\"\")\n .map((char) => char + char)\n .join(\"\")\n }\n\n const hexInt = parseInt(hex, 16)\n const red = (hexInt >> 16) & 255\n const green = (hexInt >> 8) & 255\n const blue = hexInt & 255\n return [red, green, blue]\n}\n\nconst Particles: React.FC<ParticlesProps> = ({\n className = \"\",\n quantity = 100,\n staticity = 50,\n ease = 50,\n size = 0.4,\n refresh = false,\n color = \"#ffffff\",\n vx = 0,\n vy = 0,\n}) => {\n const canvasRef = useRef<HTMLCanvasElement>(null)\n const canvasContainerRef = useRef<HTMLDivElement>(null)\n const context = useRef<CanvasRenderingContext2D | null>(null)\n const circles = useRef<Circle[]>([])\n const mousePosition = MousePosition()\n const mouse = useRef<{ x: number; y: number }>({ x: 0, y: 0 })\n const canvasSize = useRef<{ w: number; h: number }>({ w: 0, h: 0 })\n const dpr = typeof window !== \"undefined\" ? window.devicePixelRatio : 1\n\n useEffect(() => {\n if (canvasRef.current) {\n context.current = canvasRef.current.getContext(\"2d\")\n }\n initCanvas()\n animate()\n window.addEventListener(\"resize\", initCanvas)\n\n return () => {\n window.removeEventListener(\"resize\", initCanvas)\n }\n }, [color])\n\n useEffect(() => {\n onMouseMove()\n }, [mousePosition.x, mousePosition.y])\n\n useEffect(() => {\n initCanvas()\n }, [refresh])\n\n const initCanvas = () => {\n resizeCanvas()\n drawParticles()\n }\n\n const onMouseMove = () => {\n if (canvasRef.current) {\n const rect = canvasRef.current.getBoundingClientRect()\n const { w, h } = canvasSize.current\n const x = mousePosition.x - rect.left - w / 2\n const y = mousePosition.y - rect.top - h / 2\n const inside = x < w / 2 && x > -w / 2 && y < h / 2 && y > -h / 2\n if (inside) {\n mouse.current.x = x\n mouse.current.y = y\n }\n }\n }\n\n type Circle = {\n x: number\n y: number\n translateX: number\n translateY: number\n size: number\n alpha: number\n targetAlpha: number\n dx: number\n dy: number\n magnetism: number\n }\n\n const resizeCanvas = () => {\n if (canvasContainerRef.current && canvasRef.current && context.current) {\n circles.current.length = 0\n canvasSize.current.w = canvasContainerRef.current.offsetWidth\n canvasSize.current.h = canvasContainerRef.current.offsetHeight\n canvasRef.current.width = canvasSize.current.w * dpr\n canvasRef.current.height = canvasSize.current.h * dpr\n canvasRef.current.style.width = `${canvasSize.current.w}px`\n canvasRef.current.style.height = `${canvasSize.current.h}px`\n context.current.scale(dpr, dpr)\n }\n }\n\n const circleParams = (): Circle => {\n const x = Math.floor(Math.random() * canvasSize.current.w)\n const y = Math.floor(Math.random() * canvasSize.current.h)\n const translateX = 0\n const translateY = 0\n const pSize = Math.floor(Math.random() * 2) + size\n const alpha = 0\n const targetAlpha = parseFloat((Math.random() * 0.6 + 0.1).toFixed(1))\n const dx = (Math.random() - 0.5) * 0.1\n const dy = (Math.random() - 0.5) * 0.1\n const magnetism = 0.1 + Math.random() * 4\n return {\n x,\n y,\n translateX,\n translateY,\n size: pSize,\n alpha,\n targetAlpha,\n dx,\n dy,\n magnetism,\n }\n }\n\n const rgb = hexToRgb(color)\n\n const drawCircle = (circle: Circle, update = false) => {\n if (context.current) {\n const { x, y, translateX, translateY, size, alpha } = circle\n context.current.translate(translateX, translateY)\n context.current.beginPath()\n context.current.arc(x, y, size, 0, 2 * Math.PI)\n context.current.fillStyle = `rgba(${rgb.join(\", \")}, ${alpha})`\n context.current.fill()\n context.current.setTransform(dpr, 0, 0, dpr, 0, 0)\n\n if (!update) {\n circles.current.push(circle)\n }\n }\n }\n\n const clearContext = () => {\n if (context.current) {\n context.current.clearRect(\n 0,\n 0,\n canvasSize.current.w,\n canvasSize.current.h\n )\n }\n }\n\n const drawParticles = () => {\n clearContext()\n const particleCount = quantity\n for (let i = 0; i < particleCount; i++) {\n const circle = circleParams()\n drawCircle(circle)\n }\n }\n\n const remapValue = (\n value: number,\n start1: number,\n end1: number,\n start2: number,\n end2: number\n ): number => {\n const remapped =\n ((value - start1) * (end2 - start2)) / (end1 - start1) + start2\n return remapped > 0 ? remapped : 0\n }\n\n const animate = () => {\n clearContext()\n circles.current.forEach((circle: Circle, i: number) => {\n // Handle the alpha value\n const edge = [\n circle.x + circle.translateX - circle.size, // distance from left edge\n canvasSize.current.w - circle.x - circle.translateX - circle.size, // distance from right edge\n circle.y + circle.translateY - circle.size, // distance from top edge\n canvasSize.current.h - circle.y - circle.translateY - circle.size, // distance from bottom edge\n ]\n const closestEdge = edge.reduce((a, b) => Math.min(a, b))\n const remapClosestEdge = parseFloat(\n remapValue(closestEdge, 0, 20, 0, 1).toFixed(2)\n )\n if (remapClosestEdge > 1) {\n circle.alpha += 0.02\n if (circle.alpha > circle.targetAlpha) {\n circle.alpha = circle.targetAlpha\n }\n } else {\n circle.alpha = circle.targetAlpha * remapClosestEdge\n }\n circle.x += circle.dx + vx\n circle.y += circle.dy + vy\n circle.translateX +=\n (mouse.current.x / (staticity / circle.magnetism) - circle.translateX) /\n ease\n circle.translateY +=\n (mouse.current.y / (staticity / circle.magnetism) - circle.translateY) /\n ease\n\n drawCircle(circle, true)\n\n // circle gets out of the canvas\n if (\n circle.x < -circle.size ||\n circle.x > canvasSize.current.w + circle.size ||\n circle.y < -circle.size ||\n circle.y > canvasSize.current.h + circle.size\n ) {\n // remove the circle from the array\n circles.current.splice(i, 1)\n // create a new circle\n const newCircle = circleParams()\n drawCircle(newCircle)\n // update the circle position\n }\n })\n window.requestAnimationFrame(animate)\n }\n\n return (\n <div className={className} ref={canvasContainerRef} aria-hidden=\"true\">\n <canvas ref={canvasRef} className=\"size-full\" />\n </div>\n )\n}\n\nexport default Particles\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/pulsating-button.json b/public/r/styles/default/pulsating-button.json
new file mode 100644
index 00000000..c82971f4
--- /dev/null
+++ b/public/r/styles/default/pulsating-button.json
@@ -0,0 +1,33 @@
+{
+ "name": "pulsating-button",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/pulsating-button.tsx",
+ "content": "\"use client\"\n\nimport React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface PulsatingButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n pulseColor?: string\n duration?: string\n}\n\nexport default function PulsatingButton({\n className,\n children,\n pulseColor = \"#0096ff\",\n duration = \"1.5s\",\n ...props\n}: PulsatingButtonProps) {\n return (\n <button\n className={cn(\n \"relative text-center cursor-pointer flex justify-center items-center rounded-lg text-white dark:text-black bg-blue-500 dark:bg-blue-500 px-4 py-2\",\n className\n )}\n style={\n {\n \"--pulse-color\": pulseColor,\n \"--duration\": duration,\n } as React.CSSProperties\n }\n {...props}\n >\n <div className=\"relative z-10\">{children}</div>\n <div className=\"absolute top-1/2 left-1/2 size-full rounded-lg bg-inherit animate-pulse -translate-x-1/2 -translate-y-1/2\" />\n </button>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "pulse": "pulse var(--duration) ease-out infinite"
+ },
+ "keyframes": {
+ "pulse": {
+ "0%, 100%": {
+ "boxShadow": "0 0 0 0 var(--pulse-color)"
+ },
+ "50%": {
+ "boxShadow": "0 0 0 8px var(--pulse-color)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/rainbow-button.json b/public/r/styles/default/rainbow-button.json
new file mode 100644
index 00000000..d4c7f6de
--- /dev/null
+++ b/public/r/styles/default/rainbow-button.json
@@ -0,0 +1,56 @@
+{
+ "name": "rainbow-button",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/rainbow-button.tsx",
+ "content": "import React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface RainbowButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {}\n\nexport function RainbowButton({ children, ...props }: RainbowButtonProps) {\n return (\n <button\n className={cn(\n \"h-11 px-8 py-2 inline-flex items-center justify-center rounded-xl font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 relative group animate-rainbow cursor-pointer border-0 bg-[length:200%] text-primary-foreground [background-clip:padding-box,border-box,border-box] [background-origin:border-box] [border:calc(0.08*1rem)_solid_transparent]\",\n\n // before styles\n \"before:absolute before:bottom-[-20%] before:left-1/2 before:z-0 before:h-1/5 before:w-3/5 before:-translate-x-1/2 before:animate-rainbow before:bg-[linear-gradient(90deg,hsl(var(--color-1)),hsl(var(--color-5)),hsl(var(--color-3)),hsl(var(--color-4)),hsl(var(--color-2)))] before:bg-[length:200%] before:[filter:blur(calc(0.8*1rem))]\",\n\n // light mode colors\n \"bg-[linear-gradient(#121213,#121213),linear-gradient(#121213_50%,rgba(18,18,19,0.6)_80%,rgba(18,18,19,0)),linear-gradient(90deg,hsl(var(--color-1)),hsl(var(--color-5)),hsl(var(--color-3)),hsl(var(--color-4)),hsl(var(--color-2)))]\",\n\n // dark mode colors\n \" dark:bg-[linear-gradient(#fff,#fff),linear-gradient(#fff_50%,rgba(255,255,255,0.6)_80%,rgba(0,0,0,0)),linear-gradient(90deg,hsl(var(--color-1)),hsl(var(--color-5)),hsl(var(--color-3)),hsl(var(--color-4)),hsl(var(--color-2)))]\"\n )}\n {...props}\n >\n {children}\n </button>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "colors": {
+ "color-1": "hsl(var(--color-1))",
+ "color-2": "hsl(var(--color-2))",
+ "color-3": "hsl(var(--color-3))",
+ "color-4": "hsl(var(--color-4))",
+ "color-5": "hsl(var(--color-5))"
+ },
+ "animation": {
+ "rainbow": "rainbow var(--speed, 2s) infinite linear"
+ },
+ "keyframes": {
+ "rainbow": {
+ "0%": {
+ "background-position": "0%"
+ },
+ "100%": {
+ "background-position": "200%"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "cssVars": {
+ "light": {
+ "--color-1": "0 100% 63%",
+ "--color-2": "270 100% 63%",
+ "--color-3": "210 100% 63%",
+ "--color-4": "195 100% 63%",
+ "--color-5": "90 100% 63%"
+ },
+ "dark": {
+ "--color-1": "0 100% 63%",
+ "--color-2": "270 100% 63%",
+ "--color-3": "210 100% 63%",
+ "--color-4": "195 100% 63%",
+ "--color-5": "90 100% 63%"
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/retro-grid.json b/public/r/styles/default/retro-grid.json
new file mode 100644
index 00000000..54529ace
--- /dev/null
+++ b/public/r/styles/default/retro-grid.json
@@ -0,0 +1,33 @@
+{
+ "name": "retro-grid",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/retro-grid.tsx",
+ "content": "import { cn } from \"@/lib/utils\"\n\nexport default function RetroGrid({\n className,\n angle = 65,\n}: {\n className?: string\n angle?: number\n}) {\n return (\n <div\n className={cn(\n \"pointer-events-none absolute size-full overflow-hidden opacity-50 [perspective:200px]\",\n className\n )}\n style={{ \"--grid-angle\": `${angle}deg` } as React.CSSProperties}\n >\n {/* Grid */}\n <div className=\"absolute inset-0 [transform:rotateX(var(--grid-angle))]\">\n <div\n className={cn(\n \"animate-grid\",\n\n \"[background-repeat:repeat] [background-size:60px_60px] [height:300vh] [inset:0%_0px] [margin-left:-50%] [transform-origin:100%_0_0] [width:600vw]\",\n\n // Light Styles\n \"[background-image:linear-gradient(to_right,rgba(0,0,0,0.3)_1px,transparent_0),linear-gradient(to_bottom,rgba(0,0,0,0.3)_1px,transparent_0)]\",\n\n // Dark styles\n \"dark:[background-image:linear-gradient(to_right,rgba(255,255,255,0.2)_1px,transparent_0),linear-gradient(to_bottom,rgba(255,255,255,0.2)_1px,transparent_0)]\"\n )}\n />\n </div>\n\n {/* Background Gradient */}\n <div className=\"absolute inset-0 bg-gradient-to-t from-white to-transparent to-90% dark:from-black\" />\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "grid": "grid 15s linear infinite"
+ },
+ "keyframes": {
+ "grid": {
+ "0%": {
+ "transform": "translateY(-50%)"
+ },
+ "100%": {
+ "transform": "translateY(0)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/ripple.json b/public/r/styles/default/ripple.json
new file mode 100644
index 00000000..4e997852
--- /dev/null
+++ b/public/r/styles/default/ripple.json
@@ -0,0 +1,33 @@
+{
+ "name": "ripple",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/ripple.tsx",
+ "content": "import React, { CSSProperties } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface RippleProps {\n mainCircleSize?: number\n mainCircleOpacity?: number\n numCircles?: number\n className?: string\n}\n\nconst Ripple = React.memo(function Ripple({\n mainCircleSize = 210,\n mainCircleOpacity = 0.24,\n numCircles = 8,\n className,\n}: RippleProps) {\n return (\n <div\n className={cn(\n \"absolute inset-0 bg-white/5 [mask-image:linear-gradient(to_bottom,white,transparent)]\",\n className\n )}\n >\n {Array.from({ length: numCircles }, (_, i) => {\n const size = mainCircleSize + i * 70\n const opacity = mainCircleOpacity - i * 0.03\n const animationDelay = `${i * 0.06}s`\n const borderStyle = i === numCircles - 1 ? \"dashed\" : \"solid\"\n const borderOpacity = 5 + i * 5\n\n return (\n <div\n key={i}\n className={`absolute animate-ripple rounded-full bg-foreground/25 shadow-xl border [--i:${i}]`}\n style={\n {\n width: `${size}px`,\n height: `${size}px`,\n opacity,\n animationDelay,\n borderStyle,\n borderWidth: \"1px\",\n borderColor: `hsl(var(--foreground), ${borderOpacity / 100})`,\n top: \"50%\",\n left: \"50%\",\n transform: \"translate(-50%, -50%) scale(1)\",\n } as CSSProperties\n }\n />\n )\n })}\n </div>\n )\n})\n\nRipple.displayName = \"Ripple\"\n\nexport default Ripple\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "ripple": "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite"
+ },
+ "keyframes": {
+ "ripple": {
+ "0%, 100%": {
+ "transform": "translate(-50%, -50%) scale(1)"
+ },
+ "50%": {
+ "transform": "translate(-50%, -50%) scale(0.9)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/safari.json b/public/r/styles/default/safari.json
new file mode 100644
index 00000000..5725416c
--- /dev/null
+++ b/public/r/styles/default/safari.json
@@ -0,0 +1,12 @@
+{
+ "name": "safari",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/safari.tsx",
+ "content": "import { SVGProps } from \"react\"\n\nexport interface SafariProps extends SVGProps<SVGSVGElement> {\n url?: string\n src?: string\n width?: number\n height?: number\n}\n\nexport default function Safari({\n src,\n url,\n width = 1203,\n height = 753,\n ...props\n}: SafariProps) {\n return (\n <svg\n width={width}\n height={height}\n viewBox={`0 0 ${width} ${height}`}\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <g clipPath=\"url(#path0)\">\n <path\n d=\"M0 52H1202V741C1202 747.627 1196.63 753 1190 753H12C5.37258 753 0 747.627 0 741V52Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0 12C0 5.37258 5.37258 0 12 0H1190C1196.63 0 1202 5.37258 1202 12V52H0L0 12Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1.06738 12C1.06738 5.92487 5.99225 1 12.0674 1H1189.93C1196.01 1 1200.93 5.92487 1200.93 12V51H1.06738V12Z\"\n className=\"fill-white dark:fill-[#262626]\"\n />\n <circle\n cx=\"27\"\n cy=\"25\"\n r=\"6\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <circle\n cx=\"47\"\n cy=\"25\"\n r=\"6\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <circle\n cx=\"67\"\n cy=\"25\"\n r=\"6\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <path\n d=\"M286 17C286 13.6863 288.686 11 292 11H946C949.314 11 952 13.6863 952 17V35C952 38.3137 949.314 41 946 41H292C288.686 41 286 38.3137 286 35V17Z\"\n className=\"fill-[#E5E5E5] dark:fill-[#404040]\"\n />\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M566.269 32.0852H572.426C573.277 32.0852 573.696 31.6663 573.696 30.7395V25.9851C573.696 25.1472 573.353 24.7219 572.642 24.6521V23.0842C572.642 20.6721 571.036 19.5105 569.348 19.5105C567.659 19.5105 566.053 20.6721 566.053 23.0842V24.6711C565.393 24.7727 565 25.1917 565 25.9851V30.7395C565 31.6663 565.418 32.0852 566.269 32.0852ZM567.272 22.97C567.272 21.491 568.211 20.6785 569.348 20.6785C570.478 20.6785 571.423 21.491 571.423 22.97V24.6394L567.272 24.6458V22.97Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <text\n x=\"580\"\n y=\"30\"\n fill=\"#A3A3A3\"\n fontSize=\"12\"\n fontFamily=\"Arial, sans-serif\"\n >\n {url}\n </text>\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M265.5 33.8984C265.641 33.8984 265.852 33.8516 266.047 33.7422C270.547 31.2969 272.109 30.1641 272.109 27.3203V21.4219C272.109 20.4844 271.742 20.1484 270.961 19.8125C270.094 19.4453 267.18 18.4297 266.328 18.1406C266.07 18.0547 265.766 18 265.5 18C265.234 18 264.93 18.0703 264.672 18.1406C263.82 18.3828 260.906 19.4531 260.039 19.8125C259.258 20.1406 258.891 20.4844 258.891 21.4219V27.3203C258.891 30.1641 260.461 31.2812 264.945 33.7422C265.148 33.8516 265.359 33.8984 265.5 33.8984ZM265.922 19.5781C266.945 19.9766 269.172 20.7656 270.344 21.1875C270.562 21.2656 270.617 21.3828 270.617 21.6641V27.0234C270.617 29.3125 269.469 29.9375 265.945 32.0625C265.727 32.1875 265.617 32.2344 265.508 32.2344V19.4844C265.617 19.4844 265.734 19.5156 265.922 19.5781Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M936.273 24.9766C936.5 24.9766 936.68 24.9062 936.82 24.7578L940.023 21.5312C940.195 21.3594 940.273 21.1719 940.273 20.9531C940.273 20.7422 940.188 20.5391 940.023 20.3828L936.82 17.125C936.68 16.9688 936.5 16.8906 936.273 16.8906C935.852 16.8906 935.516 17.2422 935.516 17.6719C935.516 17.8828 935.594 18.0547 935.727 18.2031L937.594 20.0312C937.227 19.9766 936.852 19.9453 936.477 19.9453C932.609 19.9453 929.516 23.0391 929.516 26.9141C929.516 30.7891 932.633 33.9062 936.5 33.9062C940.375 33.9062 943.484 30.7891 943.484 26.9141C943.484 26.4453 943.156 26.1094 942.688 26.1094C942.234 26.1094 941.93 26.4453 941.93 26.9141C941.93 29.9297 939.516 32.3516 936.5 32.3516C933.492 32.3516 931.07 29.9297 931.07 26.9141C931.07 23.875 933.469 21.4688 936.477 21.4688C936.984 21.4688 937.453 21.5078 937.867 21.5781L935.734 23.6875C935.594 23.8281 935.516 24 935.516 24.2109C935.516 24.6406 935.852 24.9766 936.273 24.9766Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M1134 33.0156C1134.49 33.0156 1134.89 32.6094 1134.89 32.1484V27.2578H1139.66C1140.13 27.2578 1140.54 26.8594 1140.54 26.3672C1140.54 25.8828 1140.13 25.4766 1139.66 25.4766H1134.89V20.5859C1134.89 20.1172 1134.49 19.7188 1134 19.7188C1133.52 19.7188 1133.11 20.1172 1133.11 20.5859V25.4766H1128.34C1127.88 25.4766 1127.46 25.8828 1127.46 26.3672C1127.46 26.8594 1127.88 27.2578 1128.34 27.2578H1133.11V32.1484C1133.11 32.6094 1133.52 33.0156 1134 33.0156Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M1161.8 31.0703H1163.23V32.375C1163.23 34.0547 1164.12 34.9219 1165.81 34.9219H1174.2C1175.89 34.9219 1176.77 34.0547 1176.77 32.3828V24.0469C1176.77 22.375 1175.89 21.5 1174.2 21.5H1172.77V20.2578C1172.77 18.5859 1171.88 17.7109 1170.19 17.7109H1161.8C1160.1 17.7109 1159.23 18.5781 1159.23 20.2578V28.5234C1159.23 30.1953 1160.1 31.0703 1161.8 31.0703ZM1161.9 29.5078C1161.18 29.5078 1160.78 29.1328 1160.78 28.3828V20.3984C1160.78 19.6406 1161.18 19.2656 1161.9 19.2656H1170.09C1170.8 19.2656 1171.2 19.6406 1171.2 20.3984V21.5H1165.81C1164.12 21.5 1163.23 22.375 1163.23 24.0469V29.5078H1161.9ZM1165.91 33.3672C1165.19 33.3672 1164.8 32.9922 1164.8 32.2422V24.1875C1164.8 23.4297 1165.19 23.0625 1165.91 23.0625H1174.1C1174.81 23.0625 1175.21 23.4297 1175.21 24.1875V32.2422C1175.21 32.9922 1174.81 33.3672 1174.1 33.3672H1165.91Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M1099.51 28.4141C1099.91 28.4141 1100.24 28.0859 1100.24 27.6953V19.8359L1100.18 18.6797L1100.66 19.25L1101.75 20.4141C1101.88 20.5547 1102.06 20.625 1102.24 20.625C1102.6 20.625 1102.9 20.3672 1102.9 20C1102.9 19.8047 1102.82 19.6641 1102.69 19.5312L1100.06 17.0078C1099.88 16.8203 1099.7 16.7578 1099.51 16.7578C1099.32 16.7578 1099.14 16.8203 1098.95 17.0078L1096.33 19.5312C1096.2 19.6641 1096.12 19.8047 1096.12 20C1096.12 20.3672 1096.41 20.625 1096.77 20.625C1096.95 20.625 1097.14 20.5547 1097.27 20.4141L1098.35 19.25L1098.84 18.6719L1098.78 19.8359V27.6953C1098.78 28.0859 1099.11 28.4141 1099.51 28.4141ZM1095 34.6562H1104C1105.7 34.6562 1106.57 33.7812 1106.57 32.1094V24.4297C1106.57 22.7578 1105.7 21.8828 1104 21.8828H1101.89V23.4375H1103.9C1104.61 23.4375 1105.02 23.8125 1105.02 24.5625V31.9688C1105.02 32.7188 1104.61 33.0938 1103.9 33.0938H1095.1C1094.38 33.0938 1093.98 32.7188 1093.98 31.9688V24.5625C1093.98 23.8125 1094.38 23.4375 1095.1 23.4375H1097.13V21.8828H1095C1093.31 21.8828 1092.43 22.75 1092.43 24.4297V32.1094C1092.43 33.7812 1093.31 34.6562 1095 34.6562Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M99.5703 33.6016H112.938C114.633 33.6016 115.516 32.7266 115.516 31.0547V21.5469C115.516 19.875 114.633 19 112.938 19H99.5703C97.8828 19 97 19.8672 97 21.5469V31.0547C97 32.7266 97.8828 33.6016 99.5703 33.6016ZM99.6719 32.0469C98.9531 32.0469 98.5547 31.6719 98.5547 30.9141V21.6875C98.5547 20.9297 98.9531 20.5547 99.6719 20.5547H103.234V32.0469H99.6719ZM112.836 20.5547C113.555 20.5547 113.953 20.9297 113.953 21.6875V30.9141C113.953 31.6719 113.555 32.0469 112.836 32.0469H104.711V20.5547H112.836ZM101.703 23.4141C101.984 23.4141 102.219 23.1719 102.219 22.9062C102.219 22.6406 101.984 22.4062 101.703 22.4062H100.102C99.8203 22.4062 99.5859 22.6406 99.5859 22.9062C99.5859 23.1719 99.8203 23.4141 100.102 23.4141H101.703ZM101.703 25.5156C101.984 25.5156 102.219 25.2812 102.219 25.0078C102.219 24.7422 101.984 24.5078 101.703 24.5078H100.102C99.8203 24.5078 99.5859 24.7422 99.5859 25.0078C99.5859 25.2812 99.8203 25.5156 100.102 25.5156H101.703ZM101.703 27.6094C101.984 27.6094 102.219 27.3828 102.219 27.1094C102.219 26.8438 101.984 26.6172 101.703 26.6172H100.102C99.8203 26.6172 99.5859 26.8438 99.5859 27.1094C99.5859 27.3828 99.8203 27.6094 100.102 27.6094H101.703Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M143.914 32.5938C144.094 32.7656 144.312 32.8594 144.562 32.8594C145.086 32.8594 145.492 32.4531 145.492 31.9375C145.492 31.6797 145.391 31.4453 145.211 31.2656L139.742 25.9219L145.211 20.5938C145.391 20.4141 145.492 20.1719 145.492 19.9219C145.492 19.4062 145.086 19 144.562 19C144.312 19 144.094 19.0938 143.922 19.2656L137.844 25.2031C137.625 25.4062 137.516 25.6562 137.516 25.9297C137.516 26.2031 137.625 26.4375 137.836 26.6484L143.914 32.5938Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <g className=\"mix-blend-luminosity\">\n <path\n d=\"M168.422 32.8594C168.68 32.8594 168.891 32.7656 169.07 32.5938L175.148 26.6562C175.359 26.4375 175.469 26.2109 175.469 25.9297C175.469 25.6562 175.367 25.4141 175.148 25.2109L169.07 19.2656C168.891 19.0938 168.68 19 168.422 19C167.898 19 167.492 19.4062 167.492 19.9219C167.492 20.1719 167.602 20.4141 167.773 20.5938L173.25 25.9375L167.773 31.2656C167.594 31.4531 167.492 31.6797 167.492 31.9375C167.492 32.4531 167.898 32.8594 168.422 32.8594Z\"\n fill=\"#A3A3A3\"\n />\n </g>\n <image\n href={src}\n width=\"1200\"\n height=\"700\"\n x=\"1\"\n y=\"52\"\n preserveAspectRatio=\"xMidYMid slice\"\n clipPath=\"url(#roundedBottom)\"\n />\n </g>\n <defs>\n <clipPath id=\"path0\">\n <rect width={width} height={height} fill=\"white\" />\n </clipPath>\n <clipPath id=\"roundedBottom\">\n <path\n d=\"M1 52H1201V741C1201 747.075 1196.08 752 1190 752H12C5.92486 752 1 747.075 1 741V52Z\"\n fill=\"white\"\n />\n </clipPath>\n </defs>\n </svg>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/scroll-based-velocity.json b/public/r/styles/default/scroll-based-velocity.json
new file mode 100644
index 00000000..8cf827a2
--- /dev/null
+++ b/public/r/styles/default/scroll-based-velocity.json
@@ -0,0 +1,15 @@
+{
+ "name": "scroll-based-velocity",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/scroll-based-velocity.tsx",
+ "content": "\"use client\"\n\nimport React, { useEffect, useRef, useState } from \"react\"\nimport {\n motion,\n useAnimationFrame,\n useMotionValue,\n useScroll,\n useSpring,\n useTransform,\n useVelocity,\n} from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface VelocityScrollProps {\n text: string\n default_velocity?: number\n className?: string\n}\n\ninterface ParallaxProps {\n children: string\n baseVelocity: number\n className?: string\n}\n\nexport const wrap = (min: number, max: number, v: number) => {\n const rangeSize = max - min\n return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min\n}\n\nexport function VelocityScroll({\n text,\n default_velocity = 5,\n className,\n}: VelocityScrollProps) {\n function ParallaxText({\n children,\n baseVelocity = 100,\n className,\n }: ParallaxProps) {\n const baseX = useMotionValue(0)\n const { scrollY } = useScroll()\n const scrollVelocity = useVelocity(scrollY)\n const smoothVelocity = useSpring(scrollVelocity, {\n damping: 50,\n stiffness: 400,\n })\n\n const velocityFactor = useTransform(smoothVelocity, [0, 1000], [0, 5], {\n clamp: false,\n })\n\n const [repetitions, setRepetitions] = useState(1)\n const containerRef = useRef<HTMLDivElement>(null)\n const textRef = useRef<HTMLSpanElement>(null)\n\n useEffect(() => {\n const calculateRepetitions = () => {\n if (containerRef.current && textRef.current) {\n const containerWidth = containerRef.current.offsetWidth\n const textWidth = textRef.current.offsetWidth\n const newRepetitions = Math.ceil(containerWidth / textWidth) + 2\n setRepetitions(newRepetitions)\n }\n }\n\n calculateRepetitions()\n\n window.addEventListener(\"resize\", calculateRepetitions)\n return () => window.removeEventListener(\"resize\", calculateRepetitions)\n }, [children])\n\n const x = useTransform(baseX, (v) => `${wrap(-100 / repetitions, 0, v)}%`)\n\n const directionFactor = React.useRef<number>(1)\n useAnimationFrame((t, delta) => {\n let moveBy = directionFactor.current * baseVelocity * (delta / 1000)\n\n if (velocityFactor.get() < 0) {\n directionFactor.current = -1\n } else if (velocityFactor.get() > 0) {\n directionFactor.current = 1\n }\n\n moveBy += directionFactor.current * moveBy * velocityFactor.get()\n\n baseX.set(baseX.get() + moveBy)\n })\n\n return (\n <div\n className=\"w-full overflow-hidden whitespace-nowrap\"\n ref={containerRef}\n >\n <motion.div className={cn(\"inline-block\", className)} style={{ x }}>\n {Array.from({ length: repetitions }).map((_, i) => (\n <span key={i} ref={i === 0 ? textRef : null}>\n {children}{\" \"}\n </span>\n ))}\n </motion.div>\n </div>\n )\n }\n\n return (\n <section className=\"relative w-full\">\n <ParallaxText baseVelocity={default_velocity} className={className}>\n {text}\n </ParallaxText>\n <ParallaxText baseVelocity={-default_velocity} className={className}>\n {text}\n </ParallaxText>\n </section>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/shimmer-button.json b/public/r/styles/default/shimmer-button.json
new file mode 100644
index 00000000..62db19e4
--- /dev/null
+++ b/public/r/styles/default/shimmer-button.json
@@ -0,0 +1,45 @@
+{
+ "name": "shimmer-button",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/shimmer-button.tsx",
+ "content": "import React, { CSSProperties } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface ShimmerButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n shimmerColor?: string\n shimmerSize?: string\n borderRadius?: string\n shimmerDuration?: string\n background?: string\n className?: string\n children?: React.ReactNode\n}\n\nconst ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>(\n (\n {\n shimmerColor = \"#ffffff\",\n shimmerSize = \"0.05em\",\n shimmerDuration = \"3s\",\n borderRadius = \"100px\",\n background = \"rgba(0, 0, 0, 1)\",\n className,\n children,\n ...props\n },\n ref\n ) => {\n return (\n <button\n style={\n {\n \"--spread\": \"90deg\",\n \"--shimmer-color\": shimmerColor,\n \"--radius\": borderRadius,\n \"--speed\": shimmerDuration,\n \"--cut\": shimmerSize,\n \"--bg\": background,\n } as CSSProperties\n }\n className={cn(\n \"group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border border-white/10 px-6 py-3 text-white [background:var(--bg)] [border-radius:var(--radius)] dark:text-black\",\n \"transform-gpu transition-transform duration-300 ease-in-out active:translate-y-px\",\n className\n )}\n ref={ref}\n {...props}\n >\n {/* spark container */}\n <div\n className={cn(\n \"-z-30 blur-[2px]\",\n \"absolute inset-0 overflow-visible [container-type:size]\"\n )}\n >\n {/* spark */}\n <div className=\"absolute inset-0 h-[100cqh] animate-shimmer-slide [aspect-ratio:1] [border-radius:0] [mask:none]\">\n {/* spark before */}\n <div className=\"animate-spin-around absolute -inset-full w-auto rotate-0 [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))] [translate:0_0]\" />\n </div>\n </div>\n {children}\n\n {/* Highlight */}\n <div\n className={cn(\n \"insert-0 absolute size-full\",\n\n \"rounded-2xl px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#ffffff1f]\",\n\n // transition\n \"transform-gpu transition-all duration-300 ease-in-out\",\n\n // on hover\n \"group-hover:shadow-[inset_0_-6px_10px_#ffffff3f]\",\n\n // on click\n \"group-active:shadow-[inset_0_-10px_10px_#ffffff3f]\"\n )}\n />\n\n {/* backdrop */}\n <div\n className={cn(\n \"absolute -z-20 [background:var(--bg)] [border-radius:var(--radius)] [inset:var(--cut)]\"\n )}\n />\n </button>\n )\n }\n)\n\nShimmerButton.displayName = \"ShimmerButton\"\n\nexport default ShimmerButton\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "shimmer-slide": "shimmer-slide var(--speed) ease-in-out infinite alternate",
+ "spin-around": "spin-around calc(var(--speed) * 2) infinite linear"
+ },
+ "keyframes": {
+ "shimmer-slide": {
+ "to": {
+ "transform": "translate(calc(100cqw - 100%), 0)"
+ }
+ },
+ "spin-around": {
+ "0%": {
+ "transform": "translateZ(0) rotate(0)"
+ },
+ "15%, 35%": {
+ "transform": "translateZ(0) rotate(90deg)"
+ },
+ "65%, 85%": {
+ "transform": "translateZ(0) rotate(270deg)"
+ },
+ "100%": {
+ "transform": "translateZ(0) rotate(360deg)"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/shine-border.json b/public/r/styles/default/shine-border.json
new file mode 100644
index 00000000..b1fbb41c
--- /dev/null
+++ b/public/r/styles/default/shine-border.json
@@ -0,0 +1,36 @@
+{
+ "name": "shine-border",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/shine-border.tsx",
+ "content": "\"use client\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype TColorProp = string | string[]\n\ninterface ShineBorderProps {\n borderRadius?: number\n borderWidth?: number\n duration?: number\n color?: TColorProp\n className?: string\n children: React.ReactNode\n}\n\n/**\n * @name Shine Border\n * @description It is an animated background border effect component with easy to use and configurable props.\n * @param borderRadius defines the radius of the border.\n * @param borderWidth defines the width of the border.\n * @param duration defines the animation duration to be applied on the shining border\n * @param color a string or string array to define border color.\n * @param className defines the class name to be applied to the component\n * @param children contains react node elements.\n */\nexport default function ShineBorder({\n borderRadius = 8,\n borderWidth = 1,\n duration = 14,\n color = \"#000000\",\n className,\n children,\n}: ShineBorderProps) {\n return (\n <div\n style={\n {\n \"--border-radius\": `${borderRadius}px`,\n } as React.CSSProperties\n }\n className={cn(\n \"relative grid min-h-[60px] w-fit min-w-[300px] place-items-center rounded-[--border-radius] bg-white p-3 text-black dark:bg-black dark:text-white\",\n className\n )}\n >\n <div\n style={\n {\n \"--border-width\": `${borderWidth}px`,\n \"--border-radius\": `${borderRadius}px`,\n \"--duration\": `${duration}s`,\n \"--mask-linear-gradient\": `linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,\n \"--background-radial-gradient\": `radial-gradient(transparent,transparent, ${color instanceof Array ? color.join(\",\") : color},transparent,transparent)`,\n } as React.CSSProperties\n }\n className={`before:bg-shine-size before:absolute before:inset-0 before:aspect-square before:size-full before:rounded-[--border-radius] before:p-[--border-width] before:will-change-[background-position] before:content-[\"\"] before:![-webkit-mask-composite:xor] before:![mask-composite:exclude] before:[background-image:--background-radial-gradient] before:[background-size:300%_300%] before:[mask:--mask-linear-gradient] motion-safe:before:animate-shine`}\n ></div>\n {children}\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ],
+ "tailwind": {
+ "config": {
+ "theme": {
+ "extend": {
+ "animation": {
+ "shine": "shine var(--duration) infinite linear"
+ },
+ "keyframes": {
+ "shine": {
+ "0%": {
+ "background-position": "0% 0%"
+ },
+ "50%": {
+ "background-position": "100% 100%"
+ },
+ "to": {
+ "background-position": "0% 0%"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/styles/default/shiny-button.json b/public/r/styles/default/shiny-button.json
new file mode 100644
index 00000000..1034004d
--- /dev/null
+++ b/public/r/styles/default/shiny-button.json
@@ -0,0 +1,15 @@
+{
+ "name": "shiny-button",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/shiny-button.tsx",
+ "content": "\"use client\"\n\nimport React from \"react\"\nimport { motion, type AnimationProps } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst animationProps = {\n initial: { \"--x\": \"100%\", scale: 0.8 },\n animate: { \"--x\": \"-100%\", scale: 1 },\n whileTap: { scale: 0.95 },\n transition: {\n repeat: Infinity,\n repeatType: \"loop\",\n repeatDelay: 1,\n type: \"spring\",\n stiffness: 20,\n damping: 15,\n mass: 2,\n scale: {\n type: \"spring\",\n stiffness: 200,\n damping: 5,\n mass: 0.5,\n },\n },\n} as AnimationProps\ninterface ShinyButtonProps {\n children: React.ReactNode\n className?: string\n}\nconst ShinyButton = ({ children, className, ...props }: ShinyButtonProps) => {\n return (\n <motion.button\n {...animationProps}\n {...props}\n className={cn(\n \"relative rounded-lg px-6 py-2 font-medium backdrop-blur-xl transition-shadow duration-300 ease-in-out hover:shadow dark:bg-[radial-gradient(circle_at_50%_0%,hsl(var(--primary)/10%)_0%,transparent_60%)] dark:hover:shadow-[0_0_20px_hsl(var(--primary)/10%)]\",\n className\n )}\n >\n <span\n className=\"relative block size-full text-sm uppercase tracking-wide text-[rgb(0,0,0,65%)] dark:font-light dark:text-[rgb(255,255,255,90%)]\"\n style={{\n maskImage:\n \"linear-gradient(-75deg,hsl(var(--primary)) calc(var(--x) + 20%),transparent calc(var(--x) + 30%),hsl(var(--primary)) calc(var(--x) + 100%))\",\n }}\n >\n {children}\n </span>\n <span\n style={{\n mask: \"linear-gradient(rgb(0,0,0), rgb(0,0,0)) content-box,linear-gradient(rgb(0,0,0), rgb(0,0,0))\",\n maskComposite: \"exclude\",\n }}\n className=\"absolute inset-0 z-10 block rounded-[inherit] bg-[linear-gradient(-75deg,hsl(var(--primary)/10%)_calc(var(--x)+20%),hsl(var(--primary)/50%)_calc(var(--x)+25%),hsl(var(--primary)/10%)_calc(var(--x)+100%))] p-px\"\n ></span>\n </motion.button>\n )\n}\n\nexport default ShinyButton\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/sparkles-text.json b/public/r/styles/default/sparkles-text.json
new file mode 100644
index 00000000..90b19c51
--- /dev/null
+++ b/public/r/styles/default/sparkles-text.json
@@ -0,0 +1,15 @@
+{
+ "name": "sparkles-text",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/sparkles-text.tsx",
+ "content": "\"use client\"\n\nimport { CSSProperties, ReactElement, useEffect, useState } from \"react\"\nimport { motion } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface Sparkle {\n id: string\n x: string\n y: string\n color: string\n delay: number\n scale: number\n lifespan: number\n}\n\ninterface SparklesTextProps {\n /**\n * @default <div />\n * @type ReactElement\n * @description\n * The component to be rendered as the text\n * */\n as?: ReactElement\n\n /**\n * @default \"\"\n * @type string\n * @description\n * The className of the text\n */\n className?: string\n\n /**\n * @required\n * @type string\n * @description\n * The text to be displayed\n * */\n text: string\n\n /**\n * @default 10\n * @type number\n * @description\n * The count of sparkles\n * */\n sparklesCount?: number\n\n /**\n * @default \"{first: '#9E7AFF', second: '#FE8BBB'}\"\n * @type string\n * @description\n * The colors of the sparkles\n * */\n colors?: {\n first: string\n second: string\n }\n}\n\nconst SparklesText: React.FC<SparklesTextProps> = ({\n text,\n colors = { first: \"#9E7AFF\", second: \"#FE8BBB\" },\n className,\n sparklesCount = 10,\n ...props\n}) => {\n const [sparkles, setSparkles] = useState<Sparkle[]>([])\n\n useEffect(() => {\n const generateStar = (): Sparkle => {\n const starX = `${Math.random() * 100}%`\n const starY = `${Math.random() * 100}%`\n const color = Math.random() > 0.5 ? colors.first : colors.second\n const delay = Math.random() * 2\n const scale = Math.random() * 1 + 0.3\n const lifespan = Math.random() * 10 + 5\n const id = `${starX}-${starY}-${Date.now()}`\n return { id, x: starX, y: starY, color, delay, scale, lifespan }\n }\n\n const initializeStars = () => {\n const newSparkles = Array.from({ length: sparklesCount }, generateStar)\n setSparkles(newSparkles)\n }\n\n const updateStars = () => {\n setSparkles((currentSparkles) =>\n currentSparkles.map((star) => {\n if (star.lifespan <= 0) {\n return generateStar()\n } else {\n return { ...star, lifespan: star.lifespan - 0.1 }\n }\n })\n )\n }\n\n initializeStars()\n const interval = setInterval(updateStars, 100)\n\n return () => clearInterval(interval)\n }, [colors.first, colors.second])\n\n return (\n <div\n className={cn(\"text-6xl font-bold\", className)}\n {...props}\n style={\n {\n \"--sparkles-first-color\": `${colors.first}`,\n \"--sparkles-second-color\": `${colors.second}`,\n } as CSSProperties\n }\n >\n <span className=\"relative inline-block\">\n {sparkles.map((sparkle) => (\n <Sparkle key={sparkle.id} {...sparkle} />\n ))}\n <strong>{text}</strong>\n </span>\n </div>\n )\n}\n\nconst Sparkle: React.FC<Sparkle> = ({ id, x, y, color, delay, scale }) => {\n return (\n <motion.svg\n key={id}\n className=\"pointer-events-none absolute z-20\"\n initial={{ opacity: 0, left: x, top: y }}\n animate={{\n opacity: [0, 1, 0],\n scale: [0, scale, 0],\n rotate: [75, 120, 150],\n }}\n transition={{ duration: 0.8, repeat: Infinity, delay }}\n width=\"21\"\n height=\"21\"\n viewBox=\"0 0 21 21\"\n >\n <path\n d=\"M9.82531 0.843845C10.0553 0.215178 10.9446 0.215178 11.1746 0.843845L11.8618 2.72026C12.4006 4.19229 12.3916 6.39157 13.5 7.5C14.6084 8.60843 16.8077 8.59935 18.2797 9.13822L20.1561 9.82534C20.7858 10.0553 20.7858 10.9447 20.1561 11.1747L18.2797 11.8618C16.8077 12.4007 14.6084 12.3916 13.5 13.5C12.3916 14.6084 12.4006 16.8077 11.8618 18.2798L11.1746 20.1562C10.9446 20.7858 10.0553 20.7858 9.82531 20.1562L9.13819 18.2798C8.59932 16.8077 8.60843 14.6084 7.5 13.5C6.39157 12.3916 4.19225 12.4007 2.72023 11.8618L0.843814 11.1747C0.215148 10.9447 0.215148 10.0553 0.843814 9.82534L2.72023 9.13822C4.19225 8.59935 6.39157 8.60843 7.5 7.5C8.60843 6.39157 8.59932 4.19229 9.13819 2.72026L9.82531 0.843845Z\"\n fill={color}\n />\n </motion.svg>\n )\n}\n\nexport default SparklesText\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/text-reveal.json b/public/r/styles/default/text-reveal.json
new file mode 100644
index 00000000..f32db771
--- /dev/null
+++ b/public/r/styles/default/text-reveal.json
@@ -0,0 +1,15 @@
+{
+ "name": "text-reveal",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/text-reveal.tsx",
+ "content": "\"use client\"\n\nimport { FC, ReactNode, useRef } from \"react\"\nimport { motion, useScroll, useTransform } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface TextRevealByWordProps {\n text: string\n className?: string\n}\n\nexport const TextRevealByWord: FC<TextRevealByWordProps> = ({\n text,\n className,\n}) => {\n const targetRef = useRef<HTMLDivElement | null>(null)\n\n const { scrollYProgress } = useScroll({\n target: targetRef,\n })\n const words = text.split(\" \")\n\n return (\n <div ref={targetRef} className={cn(\"relative z-0 h-[200vh]\", className)}>\n <div\n className={\n \"sticky top-0 mx-auto flex h-[50%] max-w-4xl items-center bg-transparent px-[1rem] py-[5rem]\"\n }\n >\n <p\n ref={targetRef}\n className={\n \"flex flex-wrap p-5 text-2xl font-bold text-black/20 dark:text-white/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl\"\n }\n >\n {words.map((word, i) => {\n const start = i / words.length\n const end = start + 1 / words.length\n return (\n <Word key={i} progress={scrollYProgress} range={[start, end]}>\n {word}\n </Word>\n )\n })}\n </p>\n </div>\n </div>\n )\n}\n\ninterface WordProps {\n children: ReactNode\n progress: any\n range: [number, number]\n}\n\nconst Word: FC<WordProps> = ({ children, progress, range }) => {\n const opacity = useTransform(progress, range, [0, 1])\n return (\n <span className=\"xl:lg-3 relative mx-1 lg:mx-2.5\">\n <span className={\"absolute opacity-30\"}>{children}</span>\n <motion.span\n style={{ opacity: opacity }}\n className={\"text-black dark:text-white\"}\n >\n {children}\n </motion.span>\n </span>\n )\n}\n\nexport default TextRevealByWord\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/tweet-card.json b/public/r/styles/default/tweet-card.json
new file mode 100644
index 00000000..a031f0ed
--- /dev/null
+++ b/public/r/styles/default/tweet-card.json
@@ -0,0 +1,15 @@
+{
+ "name": "tweet-card",
+ "type": "registry:ui",
+ "dependencies": [
+ "react-tweet"
+ ],
+ "files": [
+ {
+ "path": "magicui/tweet-card.tsx",
+ "content": "import { Suspense } from \"react\"\nimport {\n enrichTweet,\n type EnrichedTweet,\n type TweetProps,\n type TwitterComponents,\n} from \"react-tweet\"\nimport { getTweet, type Tweet } from \"react-tweet/api\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface TwitterIconProps {\n className?: string\n [key: string]: any\n}\nconst Twitter = ({ className, ...props }: TwitterIconProps) => (\n <svg\n stroke=\"currentColor\"\n fill=\"currentColor\"\n strokeWidth=\"0\"\n viewBox=\"0 0 24 24\"\n height=\"1em\"\n width=\"1em\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={className}\n {...props}\n >\n <g>\n <path fill=\"none\" d=\"M0 0h24v24H0z\"></path>\n <path d=\"M22.162 5.656a8.384 8.384 0 0 1-2.402.658A4.196 4.196 0 0 0 21.6 4c-.82.488-1.719.83-2.656 1.015a4.182 4.182 0 0 0-7.126 3.814 11.874 11.874 0 0 1-8.62-4.37 4.168 4.168 0 0 0-.566 2.103c0 1.45.738 2.731 1.86 3.481a4.168 4.168 0 0 1-1.894-.523v.052a4.185 4.185 0 0 0 3.355 4.101 4.21 4.21 0 0 1-1.89.072A4.185 4.185 0 0 0 7.97 16.65a8.394 8.394 0 0 1-6.191 1.732 11.83 11.83 0 0 0 6.41 1.88c7.693 0 11.9-6.373 11.9-11.9 0-.18-.005-.362-.013-.54a8.496 8.496 0 0 0 2.087-2.165z\"></path>\n </g>\n </svg>\n)\n\nconst Verified = ({ className, ...props }: TwitterIconProps) => (\n <svg\n aria-label=\"Verified Account\"\n viewBox=\"0 0 24 24\"\n className={className}\n {...props}\n >\n <g fill=\"currentColor\">\n <path d=\"M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .494.083.964.237 1.4-1.272.65-2.147 2.018-2.147 3.6 0 1.495.782 2.798 1.942 3.486-.02.17-.032.34-.032.514 0 2.21 1.708 4 3.818 4 .47 0 .92-.086 1.335-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.865.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.174-.012-.344-.033-.513 1.158-.687 1.943-1.99 1.943-3.484zm-6.616-3.334l-4.334 6.5c-.145.217-.382.334-.625.334-.143 0-.288-.04-.416-.126l-.115-.094-2.415-2.415c-.293-.293-.293-.768 0-1.06s.768-.294 1.06 0l1.77 1.767 3.825-5.74c.23-.345.696-.436 1.04-.207.346.23.44.696.21 1.04z\" />\n </g>\n </svg>\n)\n\nexport const truncate = (str: string | null, length: number) => {\n if (!str || str.length <= length) return str\n return `${str.slice(0, length - 3)}...`\n}\n\nconst Skeleton = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => {\n return (\n <div className={cn(\"rounded-md bg-primary/10\", className)} {...props} />\n )\n}\n\nexport const TweetSkeleton = ({\n className,\n ...props\n}: {\n className?: string\n [key: string]: any\n}) => (\n <div\n className={cn(\n \"flex size-full max-h-max min-w-72 flex-col gap-2 rounded-lg border p-4\",\n className\n )}\n {...props}\n >\n <div className=\"flex flex-row gap-2\">\n <Skeleton className=\"size-10 shrink-0 rounded-full\" />\n <Skeleton className=\"h-10 w-full\" />\n </div>\n <Skeleton className=\"h-20 w-full\" />\n </div>\n)\n\nexport const TweetNotFound = ({\n className,\n ...props\n}: {\n className?: string\n [key: string]: any\n}) => (\n <div\n className={cn(\n \"flex size-full flex-col items-center justify-center gap-2 rounded-lg border p-4\",\n className\n )}\n {...props}\n >\n <h3>Tweet not found</h3>\n </div>\n)\n\nexport const TweetHeader = ({ tweet }: { tweet: EnrichedTweet }) => (\n <div className=\"flex flex-row justify-between tracking-tight\">\n <div className=\"flex items-center space-x-2\">\n <a href={tweet.user.url} target=\"_blank\" rel=\"noreferrer\">\n <img\n title={`Profile picture of ${tweet.user.name}`}\n alt={tweet.user.screen_name}\n height={48}\n width={48}\n src={tweet.user.profile_image_url_https}\n className=\"overflow-hidden rounded-full border border-transparent\"\n />\n </a>\n <div>\n <a\n href={tweet.user.url}\n target=\"_blank\"\n rel=\"noreferrer\"\n className=\"flex items-center whitespace-nowrap font-semibold\"\n >\n {truncate(tweet.user.name, 20)}\n {tweet.user.verified ||\n (tweet.user.is_blue_verified && (\n <Verified className=\"ml-1 inline size-4 text-blue-500\" />\n ))}\n </a>\n <div className=\"flex items-center space-x-1\">\n <a\n href={tweet.user.url}\n target=\"_blank\"\n rel=\"noreferrer\"\n className=\"text-sm text-gray-500 transition-all duration-75\"\n >\n @{truncate(tweet.user.screen_name, 16)}\n </a>\n </div>\n </div>\n </div>\n <a href={tweet.url} target=\"_blank\" rel=\"noreferrer\">\n <span className=\"sr-only\">Link to tweet</span>\n <Twitter className=\"size-5 items-start text-[#3BA9EE] transition-all ease-in-out hover:scale-105\" />\n </a>\n </div>\n)\n\nexport const TweetBody = ({ tweet }: { tweet: EnrichedTweet }) => (\n <div className=\"break-words leading-normal tracking-tighter\">\n {tweet.entities.map((entity, idx) => {\n switch (entity.type) {\n case \"url\":\n case \"symbol\":\n case \"hashtag\":\n case \"mention\":\n return (\n <a\n key={idx}\n href={entity.href}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"text-sm font-normal text-gray-500\"\n >\n <span>{entity.text}</span>\n </a>\n )\n case \"text\":\n return (\n <span\n key={idx}\n className=\"text-sm font-normal\"\n dangerouslySetInnerHTML={{ __html: entity.text }}\n />\n )\n }\n })}\n </div>\n)\n\nexport const TweetMedia = ({ tweet }: { tweet: EnrichedTweet }) => (\n <div className=\"flex flex-1 items-center justify-center\">\n {tweet.video && (\n <video\n poster={tweet.video.poster}\n autoPlay\n loop\n muted\n playsInline\n className=\"rounded-xl border shadow-sm\"\n >\n <source src={tweet.video.variants[0].src} type=\"video/mp4\" />\n Your browser does not support the video tag.\n </video>\n )}\n {tweet.photos && (\n <div className=\"relative flex transform-gpu snap-x snap-mandatory gap-4 overflow-x-auto\">\n <div className=\"shrink-0 snap-center sm:w-2\" />\n {tweet.photos.map((photo) => (\n <img\n key={photo.url}\n src={photo.url}\n title={\"Photo by \" + tweet.user.name}\n alt={tweet.text}\n className=\"h-64 w-5/6 shrink-0 snap-center snap-always rounded-xl border object-cover shadow-sm\"\n />\n ))}\n <div className=\"shrink-0 snap-center sm:w-2\" />\n </div>\n )}\n {!tweet.video &&\n !tweet.photos &&\n // @ts-ignore\n tweet?.card?.binding_values?.thumbnail_image_large?.image_value.url && (\n <img\n // @ts-ignore\n src={tweet.card.binding_values.thumbnail_image_large.image_value.url}\n className=\"h-64 rounded-xl border object-cover shadow-sm\"\n />\n )}\n </div>\n)\n\nexport const MagicTweet = ({\n tweet,\n components,\n className,\n ...props\n}: {\n tweet: Tweet\n components?: TwitterComponents\n className?: string\n}) => {\n const enrichedTweet = enrichTweet(tweet)\n return (\n <div\n className={cn(\n \"relative flex size-full max-w-lg flex-col gap-2 overflow-hidden rounded-lg border p-4 backdrop-blur-md\",\n className\n )}\n {...props}\n >\n <TweetHeader tweet={enrichedTweet} />\n <TweetBody tweet={enrichedTweet} />\n <TweetMedia tweet={enrichedTweet} />\n </div>\n )\n}\n\n/**\n * TweetCard (Server Side Only)\n */\nexport const TweetCard = async ({\n id,\n components,\n fallback = <TweetSkeleton />,\n onError,\n ...props\n}: TweetProps & {\n className?: string\n}) => {\n const tweet = id\n ? await getTweet(id).catch((err) => {\n if (onError) {\n onError(err)\n } else {\n console.error(err)\n }\n })\n : undefined\n\n if (!tweet) {\n const NotFound = components?.TweetNotFound || TweetNotFound\n return <NotFound {...props} />\n }\n\n return (\n <Suspense fallback={fallback}>\n <MagicTweet tweet={tweet} {...props} />\n </Suspense>\n )\n}\n\nexport default TweetCard\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/typing-animation.json b/public/r/styles/default/typing-animation.json
new file mode 100644
index 00000000..cf133841
--- /dev/null
+++ b/public/r/styles/default/typing-animation.json
@@ -0,0 +1,12 @@
+{
+ "name": "typing-animation",
+ "type": "registry:ui",
+ "files": [
+ {
+ "path": "magicui/typing-animation.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useState } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface TypingAnimationProps {\n text: string\n duration?: number\n className?: string\n}\n\nexport default function TypingAnimation({\n text,\n duration = 200,\n className,\n}: TypingAnimationProps) {\n const [displayedText, setDisplayedText] = useState<string>(\"\")\n const [i, setI] = useState<number>(0)\n\n useEffect(() => {\n const typingEffect = setInterval(() => {\n if (i < text.length) {\n setDisplayedText(text.substring(0, i + 1))\n setI(i + 1)\n } else {\n clearInterval(typingEffect)\n }\n }, duration)\n\n return () => {\n clearInterval(typingEffect)\n }\n }, [duration, i])\n\n return (\n <h1\n className={cn(\n \"font-display text-center text-4xl font-bold leading-[5rem] tracking-[-0.02em] drop-shadow-sm\",\n className\n )}\n >\n {displayedText ? displayedText : text}\n </h1>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/utils.json b/public/r/styles/default/utils.json
new file mode 100644
index 00000000..987ce3b0
--- /dev/null
+++ b/public/r/styles/default/utils.json
@@ -0,0 +1,15 @@
+{
+ "name": "utils",
+ "type": "registry:lib",
+ "dependencies": [
+ "clsx",
+ "tailwind-merge"
+ ],
+ "files": [
+ {
+ "path": "lib/utils.ts",
+ "content": "import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
+ "type": "registry:lib"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/word-fade-in.json b/public/r/styles/default/word-fade-in.json
new file mode 100644
index 00000000..4deefab1
--- /dev/null
+++ b/public/r/styles/default/word-fade-in.json
@@ -0,0 +1,15 @@
+{
+ "name": "word-fade-in",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/word-fade-in.tsx",
+ "content": "\"use client\"\n\nimport { motion, Variants } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface WordFadeInProps {\n words: string\n className?: string\n delay?: number\n variants?: Variants\n}\n\nexport default function WordFadeIn({\n words,\n delay = 0.15,\n variants = {\n hidden: { opacity: 0 },\n visible: (i: any) => ({\n y: 0,\n opacity: 1,\n transition: { delay: i * delay },\n }),\n },\n className,\n}: WordFadeInProps) {\n const _words = words.split(\" \")\n\n return (\n <motion.h1\n variants={variants}\n initial=\"hidden\"\n animate=\"visible\"\n className={cn(\n \"font-display text-center text-4xl font-bold tracking-[-0.02em] text-black drop-shadow-sm dark:text-white md:text-7xl md:leading-[5rem]\",\n className\n )}\n >\n {_words.map((word, i) => (\n <motion.span key={word} variants={variants} custom={i}>\n {word}{\" \"}\n </motion.span>\n ))}\n </motion.h1>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/word-pull-up.json b/public/r/styles/default/word-pull-up.json
new file mode 100644
index 00000000..707fcdbf
--- /dev/null
+++ b/public/r/styles/default/word-pull-up.json
@@ -0,0 +1,15 @@
+{
+ "name": "word-pull-up",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/word-pull-up.tsx",
+ "content": "\"use client\"\n\nimport { motion, Variants } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface WordPullUpProps {\n words: string\n delayMultiple?: number\n wrapperFramerProps?: Variants\n framerProps?: Variants\n className?: string\n}\n\nexport default function WordPullUp({\n words,\n wrapperFramerProps = {\n hidden: { opacity: 0 },\n show: {\n opacity: 1,\n transition: {\n staggerChildren: 0.2,\n },\n },\n },\n framerProps = {\n hidden: { y: 20, opacity: 0 },\n show: { y: 0, opacity: 1 },\n },\n className,\n}: WordPullUpProps) {\n return (\n <motion.h1\n variants={wrapperFramerProps}\n initial=\"hidden\"\n animate=\"show\"\n className={cn(\n \"font-display text-center text-4xl font-bold leading-[5rem] tracking-[-0.02em] drop-shadow-sm\",\n className\n )}\n >\n {words.split(\" \").map((word, i) => (\n <motion.span\n key={i}\n variants={framerProps}\n style={{ display: \"inline-block\", paddingRight: \"8px\" }}\n >\n {word === \"\" ? <span>&nbsp;</span> : word}\n </motion.span>\n ))}\n </motion.h1>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/default/word-rotate.json b/public/r/styles/default/word-rotate.json
new file mode 100644
index 00000000..7749728c
--- /dev/null
+++ b/public/r/styles/default/word-rotate.json
@@ -0,0 +1,15 @@
+{
+ "name": "word-rotate",
+ "type": "registry:ui",
+ "dependencies": [
+ "framer-motion"
+ ],
+ "files": [
+ {
+ "path": "magicui/word-rotate.tsx",
+ "content": "\"use client\"\n\nimport { useEffect, useState } from \"react\"\nimport { AnimatePresence, HTMLMotionProps, motion } from \"framer-motion\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface WordRotateProps {\n words: string[]\n duration?: number\n framerProps?: HTMLMotionProps<\"h1\">\n className?: string\n}\n\nexport default function WordRotate({\n words,\n duration = 2500,\n framerProps = {\n initial: { opacity: 0, y: -50 },\n animate: { opacity: 1, y: 0 },\n exit: { opacity: 0, y: 50 },\n transition: { duration: 0.25, ease: \"easeOut\" },\n },\n className,\n}: WordRotateProps) {\n const [index, setIndex] = useState(0)\n\n useEffect(() => {\n const interval = setInterval(() => {\n setIndex((prevIndex) => (prevIndex + 1) % words.length)\n }, duration)\n\n // Clean up interval on unmount\n return () => clearInterval(interval)\n }, [words, duration])\n\n return (\n <div className=\"overflow-hidden py-2\">\n <AnimatePresence mode=\"wait\">\n <motion.h1\n key={words[index]}\n className={cn(className)}\n {...framerProps}\n >\n {words[index]}\n </motion.h1>\n </AnimatePresence>\n </div>\n )\n}\n",
+ "type": "registry:ui",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/styles/index.json b/public/r/styles/index.json
new file mode 100644
index 00000000..e4116ca9
--- /dev/null
+++ b/public/r/styles/index.json
@@ -0,0 +1,6 @@
+[
+ {
+ "name": "default",
+ "label": "Default"
+ }
+]
\ No newline at end of file
diff --git a/public/r/themes.css b/public/r/themes.css
new file mode 100644
index 00000000..f953bb05
--- /dev/null
+++ b/public/r/themes.css
@@ -0,0 +1,768 @@
+
+.theme-zinc {
+ --background: 0 0% 100%;
+ --foreground: 240 10% 3.9%;
+
+ --muted: 240 4.8% 95.9%;
+ --muted-foreground: 240 3.8% 46.1%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 240 10% 3.9%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 240 10% 3.9%;
+
+ --border: 240 5.9% 90%;
+ --input: 240 5.9% 90%;
+
+ --primary: 240 5.9% 10%;
+ --primary-foreground: 0 0% 98%;
+
+ --secondary: 240 4.8% 95.9%;
+ --secondary-foreground: 240 5.9% 10%;
+
+ --accent: 240 4.8% 95.9%;
+ --accent-foreground: 240 5.9% 10%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 240 5.9% 10%;
+
+ --radius: 0.5rem;
+}
+
+.dark .theme-zinc {
+ --background: 240 10% 3.9%;
+ --foreground: 0 0% 98%;
+
+ --muted: 240 3.7% 15.9%;
+ --muted-foreground: 240 5% 64.9%;
+
+ --popover: 240 10% 3.9%;
+ --popover-foreground: 0 0% 98%;
+
+ --card: 240 10% 3.9%;
+ --card-foreground: 0 0% 98%;
+
+ --border: 240 3.7% 15.9%;
+ --input: 240 3.7% 15.9%;
+
+ --primary: 0 0% 98%;
+ --primary-foreground: 240 5.9% 10%;
+
+ --secondary: 240 3.7% 15.9%;
+ --secondary-foreground: 0 0% 98%;
+
+ --accent: 240 3.7% 15.9%;
+ --accent-foreground: 0 0% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 240 4.9% 83.9%;
+}
+
+.theme-slate {
+ --background: 0 0% 100%;
+ --foreground: 222.2 84% 4.9%;
+
+ --muted: 210 40% 96.1%;
+ --muted-foreground: 215.4 16.3% 46.9%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 222.2 84% 4.9%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 222.2 84% 4.9%;
+
+ --border: 214.3 31.8% 91.4%;
+ --input: 214.3 31.8% 91.4%;
+
+ --primary: 222.2 47.4% 11.2%;
+ --primary-foreground: 210 40% 98%;
+
+ --secondary: 210 40% 96.1%;
+ --secondary-foreground: 222.2 47.4% 11.2%;
+
+ --accent: 210 40% 96.1%;
+ --accent-foreground: 222.2 47.4% 11.2%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 210 40% 98%;
+
+ --ring: 222.2 84% 4.9%;
+
+ --radius: 0.5rem;
+}
+
+.dark .theme-slate {
+ --background: 222.2 84% 4.9%;
+ --foreground: 210 40% 98%;
+
+ --muted: 217.2 32.6% 17.5%;
+ --muted-foreground: 215 20.2% 65.1%;
+
+ --popover: 222.2 84% 4.9%;
+ --popover-foreground: 210 40% 98%;
+
+ --card: 222.2 84% 4.9%;
+ --card-foreground: 210 40% 98%;
+
+ --border: 217.2 32.6% 17.5%;
+ --input: 217.2 32.6% 17.5%;
+
+ --primary: 210 40% 98%;
+ --primary-foreground: 222.2 47.4% 11.2%;
+
+ --secondary: 217.2 32.6% 17.5%;
+ --secondary-foreground: 210 40% 98%;
+
+ --accent: 217.2 32.6% 17.5%;
+ --accent-foreground: 210 40% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 210 40% 98%;
+
+ --ring: 212.7 26.8% 83.9;
+}
+
+.theme-stone {
+ --background: 0 0% 100%;
+ --foreground: 20 14.3% 4.1%;
+
+ --muted: 60 4.8% 95.9%;
+ --muted-foreground: 25 5.3% 44.7%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 20 14.3% 4.1%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 20 14.3% 4.1%;
+
+ --border: 20 5.9% 90%;
+ --input: 20 5.9% 90%;
+
+ --primary: 24 9.8% 10%;
+ --primary-foreground: 60 9.1% 97.8%;
+
+ --secondary: 60 4.8% 95.9%;
+ --secondary-foreground: 24 9.8% 10%;
+
+ --accent: 60 4.8% 95.9%;
+ --accent-foreground: 24 9.8% 10%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 60 9.1% 97.8%;
+
+ --ring: 20 14.3% 4.1%;
+
+ --radius: 0.95rem;
+}
+
+.dark .theme-stone {
+ --background: 20 14.3% 4.1%;
+ --foreground: 60 9.1% 97.8%;
+
+ --muted: 12 6.5% 15.1%;
+ --muted-foreground: 24 5.4% 63.9%;
+
+ --popover: 20 14.3% 4.1%;
+ --popover-foreground: 60 9.1% 97.8%;
+
+ --card: 20 14.3% 4.1%;
+ --card-foreground: 60 9.1% 97.8%;
+
+ --border: 12 6.5% 15.1%;
+ --input: 12 6.5% 15.1%;
+
+ --primary: 60 9.1% 97.8%;
+ --primary-foreground: 24 9.8% 10%;
+
+ --secondary: 12 6.5% 15.1%;
+ --secondary-foreground: 60 9.1% 97.8%;
+
+ --accent: 12 6.5% 15.1%;
+ --accent-foreground: 60 9.1% 97.8%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 60 9.1% 97.8%;
+
+ --ring: 24 5.7% 82.9%;
+}
+
+.theme-gray {
+ --background: 0 0% 100%;
+ --foreground: 224 71.4% 4.1%;
+
+ --muted: 220 14.3% 95.9%;
+ --muted-foreground: 220 8.9% 46.1%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 224 71.4% 4.1%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 224 71.4% 4.1%;
+
+ --border: 220 13% 91%;
+ --input: 220 13% 91%;
+
+ --primary: 220.9 39.3% 11%;
+ --primary-foreground: 210 20% 98%;
+
+ --secondary: 220 14.3% 95.9%;
+ --secondary-foreground: 220.9 39.3% 11%;
+
+ --accent: 220 14.3% 95.9%;
+ --accent-foreground: 220.9 39.3% 11%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 210 20% 98%;
+
+ --ring: 224 71.4% 4.1%;
+
+ --radius: 0.35rem;
+}
+
+.dark .theme-gray {
+ --background: 224 71.4% 4.1%;
+ --foreground: 210 20% 98%;
+
+ --muted: 215 27.9% 16.9%;
+ --muted-foreground: 217.9 10.6% 64.9%;
+
+ --popover: 224 71.4% 4.1%;
+ --popover-foreground: 210 20% 98%;
+
+ --card: 224 71.4% 4.1%;
+ --card-foreground: 210 20% 98%;
+
+ --border: 215 27.9% 16.9%;
+ --input: 215 27.9% 16.9%;
+
+ --primary: 210 20% 98%;
+ --primary-foreground: 220.9 39.3% 11%;
+
+ --secondary: 215 27.9% 16.9%;
+ --secondary-foreground: 210 20% 98%;
+
+ --accent: 215 27.9% 16.9%;
+ --accent-foreground: 210 20% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 210 20% 98%;
+
+ --ring: 216 12.2% 83.9%;
+}
+
+.theme-neutral {
+ --background: 0 0% 100%;
+ --foreground: 0 0% 3.9%;
+
+ --muted: 0 0% 96.1%;
+ --muted-foreground: 0 0% 45.1%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 0 0% 3.9%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 0 0% 3.9%;
+
+ --border: 0 0% 89.8%;
+ --input: 0 0% 89.8%;
+
+ --primary: 0 0% 9%;
+ --primary-foreground: 0 0% 98%;
+
+ --secondary: 0 0% 96.1%;
+ --secondary-foreground: 0 0% 9%;
+
+ --accent: 0 0% 96.1%;
+ --accent-foreground: 0 0% 9%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 0 0% 3.9%;
+
+ --radius: ;
+}
+
+.dark .theme-neutral {
+ --background: 0 0% 3.9%;
+ --foreground: 0 0% 98%;
+
+ --muted: 0 0% 14.9%;
+ --muted-foreground: 0 0% 63.9%;
+
+ --popover: 0 0% 3.9%;
+ --popover-foreground: 0 0% 98%;
+
+ --card: 0 0% 3.9%;
+ --card-foreground: 0 0% 98%;
+
+ --border: 0 0% 14.9%;
+ --input: 0 0% 14.9%;
+
+ --primary: 0 0% 98%;
+ --primary-foreground: 0 0% 9%;
+
+ --secondary: 0 0% 14.9%;
+ --secondary-foreground: 0 0% 98%;
+
+ --accent: 0 0% 14.9%;
+ --accent-foreground: 0 0% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 0 0% 83.1%;
+}
+
+.theme-red {
+ --background: 0 0% 100%;
+ --foreground: 0 0% 3.9%;
+
+ --muted: 0 0% 96.1%;
+ --muted-foreground: 0 0% 45.1%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 0 0% 3.9%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 0 0% 3.9%;
+
+ --border: 0 0% 89.8%;
+ --input: 0 0% 89.8%;
+
+ --primary: 0 72.2% 50.6%;
+ --primary-foreground: 0 85.7% 97.3%;
+
+ --secondary: 0 0% 96.1%;
+ --secondary-foreground: 0 0% 9%;
+
+ --accent: 0 0% 96.1%;
+ --accent-foreground: 0 0% 9%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 0 72.2% 50.6%;
+
+ --radius: 0.4rem;
+}
+
+.dark .theme-red {
+ --background: 0 0% 3.9%;
+ --foreground: 0 0% 98%;
+
+ --muted: 0 0% 14.9%;
+ --muted-foreground: 0 0% 63.9%;
+
+ --popover: 0 0% 3.9%;
+ --popover-foreground: 0 0% 98%;
+
+ --card: 0 0% 3.9%;
+ --card-foreground: 0 0% 98%;
+
+ --border: 0 0% 14.9%;
+ --input: 0 0% 14.9%;
+
+ --primary: 0 72.2% 50.6%;
+ --primary-foreground: 0 85.7% 97.3%;
+
+ --secondary: 0 0% 14.9%;
+ --secondary-foreground: 0 0% 98%;
+
+ --accent: 0 0% 14.9%;
+ --accent-foreground: 0 0% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 0 72.2% 50.6%;
+}
+
+.theme-rose {
+ --background: 0 0% 100%;
+ --foreground: 240 10% 3.9%;
+
+ --muted: 240 4.8% 95.9%;
+ --muted-foreground: 240 3.8% 46.1%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 240 10% 3.9%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 240 10% 3.9%;
+
+ --border: 240 5.9% 90%;
+ --input: 240 5.9% 90%;
+
+ --primary: 346.8 77.2% 49.8%;
+ --primary-foreground: 355.7 100% 97.3%;
+
+ --secondary: 240 4.8% 95.9%;
+ --secondary-foreground: 240 5.9% 10%;
+
+ --accent: 240 4.8% 95.9%;
+ --accent-foreground: 240 5.9% 10%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 346.8 77.2% 49.8%;
+
+ --radius: 0.5rem;
+}
+
+.dark .theme-rose {
+ --background: 20 14.3% 4.1%;
+ --foreground: 0 0% 95%;
+
+ --muted: 0 0% 15%;
+ --muted-foreground: 240 5% 64.9%;
+
+ --popover: 0 0% 9%;
+ --popover-foreground: 0 0% 95%;
+
+ --card: 24 9.8% 10%;
+ --card-foreground: 0 0% 95%;
+
+ --border: 240 3.7% 15.9%;
+ --input: 240 3.7% 15.9%;
+
+ --primary: 346.8 77.2% 49.8%;
+ --primary-foreground: 355.7 100% 97.3%;
+
+ --secondary: 240 3.7% 15.9%;
+ --secondary-foreground: 0 0% 98%;
+
+ --accent: 12 6.5% 15.1%;
+ --accent-foreground: 0 0% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 0 85.7% 97.3%;
+
+ --ring: 346.8 77.2% 49.8%;
+}
+
+.theme-orange {
+ --background: 0 0% 100%;
+ --foreground: 20 14.3% 4.1%;
+
+ --muted: 60 4.8% 95.9%;
+ --muted-foreground: 25 5.3% 44.7%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 20 14.3% 4.1%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 20 14.3% 4.1%;
+
+ --border: 20 5.9% 90%;
+ --input: 20 5.9% 90%;
+
+ --primary: 24.6 95% 53.1%;
+ --primary-foreground: 60 9.1% 97.8%;
+
+ --secondary: 60 4.8% 95.9%;
+ --secondary-foreground: 24 9.8% 10%;
+
+ --accent: 60 4.8% 95.9%;
+ --accent-foreground: 24 9.8% 10%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 60 9.1% 97.8%;
+
+ --ring: 24.6 95% 53.1%;
+
+ --radius: 0.95rem;
+}
+
+.dark .theme-orange {
+ --background: 20 14.3% 4.1%;
+ --foreground: 60 9.1% 97.8%;
+
+ --muted: 12 6.5% 15.1%;
+ --muted-foreground: 24 5.4% 63.9%;
+
+ --popover: 20 14.3% 4.1%;
+ --popover-foreground: 60 9.1% 97.8%;
+
+ --card: 20 14.3% 4.1%;
+ --card-foreground: 60 9.1% 97.8%;
+
+ --border: 12 6.5% 15.1%;
+ --input: 12 6.5% 15.1%;
+
+ --primary: 20.5 90.2% 48.2%;
+ --primary-foreground: 60 9.1% 97.8%;
+
+ --secondary: 12 6.5% 15.1%;
+ --secondary-foreground: 60 9.1% 97.8%;
+
+ --accent: 12 6.5% 15.1%;
+ --accent-foreground: 60 9.1% 97.8%;
+
+ --destructive: 0 72.2% 50.6%;
+ --destructive-foreground: 60 9.1% 97.8%;
+
+ --ring: 20.5 90.2% 48.2%;
+}
+
+.theme-green {
+ --background: 0 0% 100%;
+ --foreground: 240 10% 3.9%;
+
+ --muted: 240 4.8% 95.9%;
+ --muted-foreground: 240 3.8% 46.1%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 240 10% 3.9%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 240 10% 3.9%;
+
+ --border: 240 5.9% 90%;
+ --input: 240 5.9% 90%;
+
+ --primary: 142.1 76.2% 36.3%;
+ --primary-foreground: 355.7 100% 97.3%;
+
+ --secondary: 240 4.8% 95.9%;
+ --secondary-foreground: 240 5.9% 10%;
+
+ --accent: 240 4.8% 95.9%;
+ --accent-foreground: 240 5.9% 10%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 0 0% 98%;
+
+ --ring: 142.1 76.2% 36.3%;
+
+ --radius: ;
+}
+
+.dark .theme-green {
+ --background: 20 14.3% 4.1%;
+ --foreground: 0 0% 95%;
+
+ --muted: 0 0% 15%;
+ --muted-foreground: 240 5% 64.9%;
+
+ --popover: 0 0% 9%;
+ --popover-foreground: 0 0% 95%;
+
+ --card: 24 9.8% 10%;
+ --card-foreground: 0 0% 95%;
+
+ --border: 240 3.7% 15.9%;
+ --input: 240 3.7% 15.9%;
+
+ --primary: 142.1 70.6% 45.3%;
+ --primary-foreground: 144.9 80.4% 10%;
+
+ --secondary: 240 3.7% 15.9%;
+ --secondary-foreground: 0 0% 98%;
+
+ --accent: 12 6.5% 15.1%;
+ --accent-foreground: 0 0% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 0 85.7% 97.3%;
+
+ --ring: 142.4 71.8% 29.2%;
+}
+
+.theme-blue {
+ --background: 0 0% 100%;
+ --foreground: 222.2 84% 4.9%;
+
+ --muted: 210 40% 96.1%;
+ --muted-foreground: 215.4 16.3% 46.9%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 222.2 84% 4.9%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 222.2 84% 4.9%;
+
+ --border: 214.3 31.8% 91.4%;
+ --input: 214.3 31.8% 91.4%;
+
+ --primary: 221.2 83.2% 53.3%;
+ --primary-foreground: 210 40% 98%;
+
+ --secondary: 210 40% 96.1%;
+ --secondary-foreground: 222.2 47.4% 11.2%;
+
+ --accent: 210 40% 96.1%;
+ --accent-foreground: 222.2 47.4% 11.2%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 210 40% 98%;
+
+ --ring: 221.2 83.2% 53.3%;
+
+ --radius: ;
+}
+
+.dark .theme-blue {
+ --background: 222.2 84% 4.9%;
+ --foreground: 210 40% 98%;
+
+ --muted: 217.2 32.6% 17.5%;
+ --muted-foreground: 215 20.2% 65.1%;
+
+ --popover: 222.2 84% 4.9%;
+ --popover-foreground: 210 40% 98%;
+
+ --card: 222.2 84% 4.9%;
+ --card-foreground: 210 40% 98%;
+
+ --border: 217.2 32.6% 17.5%;
+ --input: 217.2 32.6% 17.5%;
+
+ --primary: 217.2 91.2% 59.8%;
+ --primary-foreground: 222.2 47.4% 11.2%;
+
+ --secondary: 217.2 32.6% 17.5%;
+ --secondary-foreground: 210 40% 98%;
+
+ --accent: 217.2 32.6% 17.5%;
+ --accent-foreground: 210 40% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 210 40% 98%;
+
+ --ring: 224.3 76.3% 48%;
+}
+
+.theme-yellow {
+ --background: 0 0% 100%;
+ --foreground: 20 14.3% 4.1%;
+
+ --muted: 60 4.8% 95.9%;
+ --muted-foreground: 25 5.3% 44.7%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 20 14.3% 4.1%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 20 14.3% 4.1%;
+
+ --border: 20 5.9% 90%;
+ --input: 20 5.9% 90%;
+
+ --primary: 47.9 95.8% 53.1%;
+ --primary-foreground: 26 83.3% 14.1%;
+
+ --secondary: 60 4.8% 95.9%;
+ --secondary-foreground: 24 9.8% 10%;
+
+ --accent: 60 4.8% 95.9%;
+ --accent-foreground: 24 9.8% 10%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 60 9.1% 97.8%;
+
+ --ring: 20 14.3% 4.1%;
+
+ --radius: 0.95rem;
+}
+
+.dark .theme-yellow {
+ --background: 20 14.3% 4.1%;
+ --foreground: 60 9.1% 97.8%;
+
+ --muted: 12 6.5% 15.1%;
+ --muted-foreground: 24 5.4% 63.9%;
+
+ --popover: 20 14.3% 4.1%;
+ --popover-foreground: 60 9.1% 97.8%;
+
+ --card: 20 14.3% 4.1%;
+ --card-foreground: 60 9.1% 97.8%;
+
+ --border: 12 6.5% 15.1%;
+ --input: 12 6.5% 15.1%;
+
+ --primary: 47.9 95.8% 53.1%;
+ --primary-foreground: 26 83.3% 14.1%;
+
+ --secondary: 12 6.5% 15.1%;
+ --secondary-foreground: 60 9.1% 97.8%;
+
+ --accent: 12 6.5% 15.1%;
+ --accent-foreground: 60 9.1% 97.8%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 60 9.1% 97.8%;
+
+ --ring: 35.5 91.7% 32.9%;
+}
+
+.theme-violet {
+ --background: 0 0% 100%;
+ --foreground: 224 71.4% 4.1%;
+
+ --muted: 220 14.3% 95.9%;
+ --muted-foreground: 220 8.9% 46.1%;
+
+ --popover: 0 0% 100%;
+ --popover-foreground: 224 71.4% 4.1%;
+
+ --card: 0 0% 100%;
+ --card-foreground: 224 71.4% 4.1%;
+
+ --border: 220 13% 91%;
+ --input: 220 13% 91%;
+
+ --primary: 262.1 83.3% 57.8%;
+ --primary-foreground: 210 20% 98%;
+
+ --secondary: 220 14.3% 95.9%;
+ --secondary-foreground: 220.9 39.3% 11%;
+
+ --accent: 220 14.3% 95.9%;
+ --accent-foreground: 220.9 39.3% 11%;
+
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 210 20% 98%;
+
+ --ring: 262.1 83.3% 57.8%;
+
+ --radius: ;
+}
+
+.dark .theme-violet {
+ --background: 224 71.4% 4.1%;
+ --foreground: 210 20% 98%;
+
+ --muted: 215 27.9% 16.9%;
+ --muted-foreground: 217.9 10.6% 64.9%;
+
+ --popover: 224 71.4% 4.1%;
+ --popover-foreground: 210 20% 98%;
+
+ --card: 224 71.4% 4.1%;
+ --card-foreground: 210 20% 98%;
+
+ --border: 215 27.9% 16.9%;
+ --input: 215 27.9% 16.9%;
+
+ --primary: 263.4 70% 50.4%;
+ --primary-foreground: 210 20% 98%;
+
+ --secondary: 215 27.9% 16.9%;
+ --secondary-foreground: 210 20% 98%;
+
+ --accent: 215 27.9% 16.9%;
+ --accent-foreground: 210 20% 98%;
+
+ --destructive: 0 62.8% 30.6%;
+ --destructive-foreground: 210 20% 98%;
+
+ --ring: 263.4 70% 50.4%;
+}
\ No newline at end of file
diff --git a/public/r/themes/gray.json b/public/r/themes/gray.json
new file mode 100644
index 00000000..a7f4d749
--- /dev/null
+++ b/public/r/themes/gray.json
@@ -0,0 +1,58 @@
+{
+ "name": "gray",
+ "label": "Gray",
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "224 71.4% 4.1%",
+ "card": "0 0% 100%",
+ "card-foreground": "224 71.4% 4.1%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "224 71.4% 4.1%",
+ "primary": "220.9 39.3% 11%",
+ "primary-foreground": "210 20% 98%",
+ "secondary": "220 14.3% 95.9%",
+ "secondary-foreground": "220.9 39.3% 11%",
+ "muted": "220 14.3% 95.9%",
+ "muted-foreground": "220 8.9% 46.1%",
+ "accent": "220 14.3% 95.9%",
+ "accent-foreground": "220.9 39.3% 11%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "210 20% 98%",
+ "border": "220 13% 91%",
+ "input": "220 13% 91%",
+ "ring": "224 71.4% 4.1%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "224 71.4% 4.1%",
+ "foreground": "210 20% 98%",
+ "card": "224 71.4% 4.1%",
+ "card-foreground": "210 20% 98%",
+ "popover": "224 71.4% 4.1%",
+ "popover-foreground": "210 20% 98%",
+ "primary": "210 20% 98%",
+ "primary-foreground": "220.9 39.3% 11%",
+ "secondary": "215 27.9% 16.9%",
+ "secondary-foreground": "210 20% 98%",
+ "muted": "215 27.9% 16.9%",
+ "muted-foreground": "217.9 10.6% 64.9%",
+ "accent": "215 27.9% 16.9%",
+ "accent-foreground": "210 20% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "210 20% 98%",
+ "border": "215 27.9% 16.9%",
+ "input": "215 27.9% 16.9%",
+ "ring": "216 12.2% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/themes/neutral.json b/public/r/themes/neutral.json
new file mode 100644
index 00000000..775f929b
--- /dev/null
+++ b/public/r/themes/neutral.json
@@ -0,0 +1,58 @@
+{
+ "name": "neutral",
+ "label": "Neutral",
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "0 0% 3.9%",
+ "card": "0 0% 100%",
+ "card-foreground": "0 0% 3.9%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "0 0% 3.9%",
+ "primary": "0 0% 9%",
+ "primary-foreground": "0 0% 98%",
+ "secondary": "0 0% 96.1%",
+ "secondary-foreground": "0 0% 9%",
+ "muted": "0 0% 96.1%",
+ "muted-foreground": "0 0% 45.1%",
+ "accent": "0 0% 96.1%",
+ "accent-foreground": "0 0% 9%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "0 0% 89.8%",
+ "input": "0 0% 89.8%",
+ "ring": "0 0% 3.9%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "0 0% 3.9%",
+ "foreground": "0 0% 98%",
+ "card": "0 0% 3.9%",
+ "card-foreground": "0 0% 98%",
+ "popover": "0 0% 3.9%",
+ "popover-foreground": "0 0% 98%",
+ "primary": "0 0% 98%",
+ "primary-foreground": "0 0% 9%",
+ "secondary": "0 0% 14.9%",
+ "secondary-foreground": "0 0% 98%",
+ "muted": "0 0% 14.9%",
+ "muted-foreground": "0 0% 63.9%",
+ "accent": "0 0% 14.9%",
+ "accent-foreground": "0 0% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "0 0% 14.9%",
+ "input": "0 0% 14.9%",
+ "ring": "0 0% 83.1%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/themes/slate.json b/public/r/themes/slate.json
new file mode 100644
index 00000000..17db98cb
--- /dev/null
+++ b/public/r/themes/slate.json
@@ -0,0 +1,58 @@
+{
+ "name": "slate",
+ "label": "Slate",
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "222.2 84% 4.9%",
+ "card": "0 0% 100%",
+ "card-foreground": "222.2 84% 4.9%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "222.2 84% 4.9%",
+ "primary": "222.2 47.4% 11.2%",
+ "primary-foreground": "210 40% 98%",
+ "secondary": "210 40% 96.1%",
+ "secondary-foreground": "222.2 47.4% 11.2%",
+ "muted": "210 40% 96.1%",
+ "muted-foreground": "215.4 16.3% 46.9%",
+ "accent": "210 40% 96.1%",
+ "accent-foreground": "222.2 47.4% 11.2%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "210 40% 98%",
+ "border": "214.3 31.8% 91.4%",
+ "input": "214.3 31.8% 91.4%",
+ "ring": "222.2 84% 4.9%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "222.2 84% 4.9%",
+ "foreground": "210 40% 98%",
+ "card": "222.2 84% 4.9%",
+ "card-foreground": "210 40% 98%",
+ "popover": "222.2 84% 4.9%",
+ "popover-foreground": "210 40% 98%",
+ "primary": "210 40% 98%",
+ "primary-foreground": "222.2 47.4% 11.2%",
+ "secondary": "217.2 32.6% 17.5%",
+ "secondary-foreground": "210 40% 98%",
+ "muted": "217.2 32.6% 17.5%",
+ "muted-foreground": "215 20.2% 65.1%",
+ "accent": "217.2 32.6% 17.5%",
+ "accent-foreground": "210 40% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "210 40% 98%",
+ "border": "217.2 32.6% 17.5%",
+ "input": "217.2 32.6% 17.5%",
+ "ring": "212.7 26.8% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/themes/stone.json b/public/r/themes/stone.json
new file mode 100644
index 00000000..9b2babe0
--- /dev/null
+++ b/public/r/themes/stone.json
@@ -0,0 +1,58 @@
+{
+ "name": "stone",
+ "label": "Stone",
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "20 14.3% 4.1%",
+ "card": "0 0% 100%",
+ "card-foreground": "20 14.3% 4.1%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "20 14.3% 4.1%",
+ "primary": "24 9.8% 10%",
+ "primary-foreground": "60 9.1% 97.8%",
+ "secondary": "60 4.8% 95.9%",
+ "secondary-foreground": "24 9.8% 10%",
+ "muted": "60 4.8% 95.9%",
+ "muted-foreground": "25 5.3% 44.7%",
+ "accent": "60 4.8% 95.9%",
+ "accent-foreground": "24 9.8% 10%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ "border": "20 5.9% 90%",
+ "input": "20 5.9% 90%",
+ "ring": "20 14.3% 4.1%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "20 14.3% 4.1%",
+ "foreground": "60 9.1% 97.8%",
+ "card": "20 14.3% 4.1%",
+ "card-foreground": "60 9.1% 97.8%",
+ "popover": "20 14.3% 4.1%",
+ "popover-foreground": "60 9.1% 97.8%",
+ "primary": "60 9.1% 97.8%",
+ "primary-foreground": "24 9.8% 10%",
+ "secondary": "12 6.5% 15.1%",
+ "secondary-foreground": "60 9.1% 97.8%",
+ "muted": "12 6.5% 15.1%",
+ "muted-foreground": "24 5.4% 63.9%",
+ "accent": "12 6.5% 15.1%",
+ "accent-foreground": "60 9.1% 97.8%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ "border": "12 6.5% 15.1%",
+ "input": "12 6.5% 15.1%",
+ "ring": "24 5.7% 82.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/r/themes/zinc.json b/public/r/themes/zinc.json
new file mode 100644
index 00000000..669fc8d3
--- /dev/null
+++ b/public/r/themes/zinc.json
@@ -0,0 +1,58 @@
+{
+ "name": "zinc",
+ "label": "Zinc",
+ "cssVars": {
+ "light": {
+ "background": "0 0% 100%",
+ "foreground": "240 10% 3.9%",
+ "card": "0 0% 100%",
+ "card-foreground": "240 10% 3.9%",
+ "popover": "0 0% 100%",
+ "popover-foreground": "240 10% 3.9%",
+ "primary": "240 5.9% 10%",
+ "primary-foreground": "0 0% 98%",
+ "secondary": "240 4.8% 95.9%",
+ "secondary-foreground": "240 5.9% 10%",
+ "muted": "240 4.8% 95.9%",
+ "muted-foreground": "240 3.8% 46.1%",
+ "accent": "240 4.8% 95.9%",
+ "accent-foreground": "240 5.9% 10%",
+ "destructive": "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "240 5.9% 90%",
+ "input": "240 5.9% 90%",
+ "ring": "240 10% 3.9%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%"
+ },
+ "dark": {
+ "background": "240 10% 3.9%",
+ "foreground": "0 0% 98%",
+ "card": "240 10% 3.9%",
+ "card-foreground": "0 0% 98%",
+ "popover": "240 10% 3.9%",
+ "popover-foreground": "0 0% 98%",
+ "primary": "0 0% 98%",
+ "primary-foreground": "240 5.9% 10%",
+ "secondary": "240 3.7% 15.9%",
+ "secondary-foreground": "0 0% 98%",
+ "muted": "240 3.7% 15.9%",
+ "muted-foreground": "240 5% 64.9%",
+ "accent": "240 3.7% 15.9%",
+ "accent-foreground": "0 0% 98%",
+ "destructive": "0 62.8% 30.6%",
+ "destructive-foreground": "0 0% 98%",
+ "border": "240 3.7% 15.9%",
+ "input": "240 3.7% 15.9%",
+ "ring": "240 4.9% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%"
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/registry/.gitignore b/public/registry/.gitignore
deleted file mode 100644
index c343e5eb..00000000
--- a/public/registry/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-# Components data will be generated in build time
-# pnpm run build:registry
-
-*.json
\ No newline at end of file
diff --git a/registry/components/example/flip-text-demo.tsx b/registry/components/example/flip-text-demo.tsx
deleted file mode 100644
index 5551ec89..00000000
--- a/registry/components/example/flip-text-demo.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import FlipText from "@/components/magicui/flip-text";
-
-export default async function FlipTextDemo() {
- return (
- <FlipText
- className="text-4xl font-bold tracking-[-0.1em] text-black dark:text-white md:text-7xl md:leading-[5rem]"
- word="Flip Text"
- />
- );
-}
diff --git a/registry/components/example/gradual-spacing-demo.tsx b/registry/components/example/gradual-spacing-demo.tsx
deleted file mode 100644
index 9e694d79..00000000
--- a/registry/components/example/gradual-spacing-demo.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import GradualSpacing from "@/components/magicui/gradual-spacing";
-
-export default async function GradualSpacingDemo() {
- return (
- <GradualSpacing
- className="font-display text-center text-4xl font-bold tracking-[-0.1em] text-black dark:text-white md:text-7xl md:leading-[5rem]"
- text="Gradual Spacing"
- />
- );
-}
diff --git a/registry/components/example/letter-pullup-demo.tsx b/registry/components/example/letter-pullup-demo.tsx
deleted file mode 100644
index f971678f..00000000
--- a/registry/components/example/letter-pullup-demo.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import LetterPullup from "@/components/magicui/letter-pullup";
-
-export default async function LetterPullupDemo() {
- return <LetterPullup words={"Staggered Letter Pull Up"} delay={0.05} />;
-}
diff --git a/registry/components/example/sparkles-text-demo.tsx b/registry/components/example/sparkles-text-demo.tsx
deleted file mode 100644
index f8244015..00000000
--- a/registry/components/example/sparkles-text-demo.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import SparklesText from "@/components/magicui/sparkles-text";
-
-export default async function SparklesTextDemo() {
- return <SparklesText text="Magic UI" />;
-}
diff --git a/registry/components/example/text-reveal-demo.tsx b/registry/components/example/text-reveal-demo.tsx
deleted file mode 100644
index f22a82bd..00000000
--- a/registry/components/example/text-reveal-demo.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import TextReveal from "@/components/magicui/text-reveal";
-
-export default async function TextRevealDemo() {
- return (
- <div className="z-10 flex min-h-[16rem] items-center justify-center rounded-lg border bg-white dark:bg-black">
- <TextReveal text="Magic UI will change the way you design." />
- </div>
- );
-}
diff --git a/registry/components/example/tweet-card-meta-preview.tsx b/registry/components/example/tweet-card-meta-preview.tsx
deleted file mode 100644
index 8a7b0c25..00000000
--- a/registry/components/example/tweet-card-meta-preview.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import ClientTweetCard from "@/components/magicui/client-tweet-card";
-
-export default async function TweetMetaPreview() {
- return <ClientTweetCard id="1675849118445436929" className="shadow-2xl" />;
-}
diff --git a/registry/components/magicui/fade-in.tsx b/registry/components/magicui/fade-in.tsx
deleted file mode 100644
index fafdb24c..00000000
--- a/registry/components/magicui/fade-in.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-"use client";
-
-import { useRef } from "react";
-import { motion, useInView } from "framer-motion";
-
-export default function FadeIn({
- children,
- className,
- noVertical,
- delay,
- viewTriggerOffset,
-}: {
- children: React.ReactNode;
- className?: string;
- noVertical?: boolean;
- delay?: number;
- viewTriggerOffset?: boolean;
-}) {
- const ref = useRef(null);
- const inView = useInView(ref, {
- once: true,
- margin: viewTriggerOffset ? "-128px" : "0px",
- });
-
- const fadeUpVariants = {
- initial: {
- opacity: 0,
- y: noVertical ? 0 : 24,
- },
- animate: {
- opacity: 1,
- y: 0,
- },
- };
-
- return (
- <motion.div
- ref={ref}
- animate={inView ? "animate" : "initial"}
- variants={fadeUpVariants}
- className={className}
- initial={false}
- transition={{
- duration: 0.6,
- delay: delay || 0,
- ease: [0.21, 0.47, 0.32, 0.98],
- type: "spring",
- }}
- >
- {children}
- </motion.div>
- );
-}
diff --git a/registry/components/example/animated-beam-bidirectional.tsx b/registry/default/example/animated-beam-bidirectional.tsx
similarity index 91%
rename from registry/components/example/animated-beam-bidirectional.tsx
rename to registry/default/example/animated-beam-bidirectional.tsx
index 5263f9bc..324f0243 100644
--- a/registry/components/example/animated-beam-bidirectional.tsx
+++ b/registry/default/example/animated-beam-bidirectional.tsx
@@ -3,7 +3,7 @@
import React, { forwardRef, useRef } from "react";
import { cn } from "@/lib/utils";
-import { AnimatedBeam } from "@/components/magicui/animated-beam";
+import { AnimatedBeam } from "@/registry/default/magicui/animated-beam";
const Circle = forwardRef<
HTMLDivElement,
@@ -13,7 +13,7 @@ const Circle = forwardRef<
<div
ref={ref}
className={cn(
- "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",
+ "z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",
className,
)}
>
@@ -22,6 +22,8 @@ const Circle = forwardRef<
);
});
+Circle.displayName = "Circle";
+
export default function AnimatedBeamDemo() {
const containerRef = useRef<HTMLDivElement>(null);
const div1Ref = useRef<HTMLDivElement>(null);
@@ -32,7 +34,7 @@ export default function AnimatedBeamDemo() {
className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"
ref={containerRef}
>
- <div className="flex h-full w-full flex-col items-stretch justify-between gap-10">
+ <div className="flex size-full flex-col items-stretch justify-between gap-10">
<div className="flex flex-row justify-between">
<Circle ref={div1Ref}>
<Icons.user />
diff --git a/registry/components/example/animated-beam-demo.tsx b/registry/default/example/animated-beam-demo.tsx
similarity index 99%
rename from registry/components/example/animated-beam-demo.tsx
rename to registry/default/example/animated-beam-demo.tsx
index 87d34ca6..d65da031 100644
--- a/registry/components/example/animated-beam-demo.tsx
+++ b/registry/default/example/animated-beam-demo.tsx
@@ -3,7 +3,7 @@
import React, { forwardRef, useRef } from "react";
import { cn } from "@/lib/utils";
-import { AnimatedBeam } from "@/components/magicui/animated-beam";
+import { AnimatedBeam } from "@/registry/default/magicui/animated-beam";
const Circle = forwardRef<
HTMLDivElement,
diff --git a/registry/components/example/animated-beam-multiple-inputs.tsx b/registry/default/example/animated-beam-multiple-inputs.tsx
similarity index 99%
rename from registry/components/example/animated-beam-multiple-inputs.tsx
rename to registry/default/example/animated-beam-multiple-inputs.tsx
index c922a6db..d43693f5 100644
--- a/registry/components/example/animated-beam-multiple-inputs.tsx
+++ b/registry/default/example/animated-beam-multiple-inputs.tsx
@@ -3,7 +3,7 @@
import React, { forwardRef, useRef } from "react";
import { cn } from "@/lib/utils";
-import { AnimatedBeam } from "@/components/magicui/animated-beam";
+import { AnimatedBeam } from "@/registry/default/magicui/animated-beam";
const Circle = forwardRef<
HTMLDivElement,
diff --git a/registry/components/example/animated-beam-multiple-outputs.tsx b/registry/default/example/animated-beam-multiple-outputs.tsx
similarity index 99%
rename from registry/components/example/animated-beam-multiple-outputs.tsx
rename to registry/default/example/animated-beam-multiple-outputs.tsx
index c6360b34..e13afbd8 100644
--- a/registry/components/example/animated-beam-multiple-outputs.tsx
+++ b/registry/default/example/animated-beam-multiple-outputs.tsx
@@ -3,7 +3,7 @@
import React, { forwardRef, useRef } from "react";
import { cn } from "@/lib/utils";
-import { AnimatedBeam } from "@/components/magicui/animated-beam";
+import { AnimatedBeam } from "@/registry/default/magicui/animated-beam";
const Circle = forwardRef<
HTMLDivElement,
diff --git a/registry/components/example/animated-beam-unidirectional.tsx b/registry/default/example/animated-beam-unidirectional.tsx
similarity index 90%
rename from registry/components/example/animated-beam-unidirectional.tsx
rename to registry/default/example/animated-beam-unidirectional.tsx
index e8fda522..130ace07 100644
--- a/registry/components/example/animated-beam-unidirectional.tsx
+++ b/registry/default/example/animated-beam-unidirectional.tsx
@@ -3,7 +3,7 @@
import React, { forwardRef, useRef } from "react";
import { cn } from "@/lib/utils";
-import { AnimatedBeam } from "@/components/magicui/animated-beam";
+import { AnimatedBeam } from "@/registry/default/magicui/animated-beam";
const Circle = forwardRef<
HTMLDivElement,
@@ -13,7 +13,7 @@ const Circle = forwardRef<
<div
ref={ref}
className={cn(
- "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",
+ "z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",
className,
)}
>
@@ -22,6 +22,8 @@ const Circle = forwardRef<
);
});
+Circle.displayName = "Circle";
+
export default function AnimatedBeamDemo() {
const containerRef = useRef<HTMLDivElement>(null);
const div1Ref = useRef<HTMLDivElement>(null);
@@ -32,7 +34,7 @@ export default function AnimatedBeamDemo() {
className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"
ref={containerRef}
>
- <div className="flex h-full w-full flex-col items-stretch justify-between gap-10">
+ <div className="flex size-full flex-col items-stretch justify-between gap-10">
<div className="flex flex-row justify-between">
<Circle ref={div1Ref}>
<Icons.user />
diff --git a/registry/components/example/animated-circular-progress-bar-demo.tsx b/registry/default/example/animated-circular-progress-bar-demo.tsx
similarity index 86%
rename from registry/components/example/animated-circular-progress-bar-demo.tsx
rename to registry/default/example/animated-circular-progress-bar-demo.tsx
index 07ace251..973cb1c7 100644
--- a/registry/components/example/animated-circular-progress-bar-demo.tsx
+++ b/registry/default/example/animated-circular-progress-bar-demo.tsx
@@ -2,7 +2,7 @@
import { useEffect, useState } from "react";
-import AnimatedCircularProgressBar from "@/registry/components/magicui/animated-circular-progress-bar";
+import AnimatedCircularProgressBar from "@/registry/default/magicui/animated-circular-progress-bar";
export default function AnimatedCircularProgressBarDemo() {
const [value, setValue] = useState(0);
diff --git a/registry/components/example/animated-gradient-text-demo.tsx b/registry/default/example/animated-gradient-text-demo.tsx
similarity index 73%
rename from registry/components/example/animated-gradient-text-demo.tsx
rename to registry/default/example/animated-gradient-text-demo.tsx
index 317990d8..bed4d77f 100644
--- a/registry/components/example/animated-gradient-text-demo.tsx
+++ b/registry/default/example/animated-gradient-text-demo.tsx
@@ -1,13 +1,13 @@
import { ChevronRight } from "lucide-react";
import { cn } from "@/lib/utils";
-import AnimatedGradientText from "@/components/magicui/animated-gradient-text";
+import AnimatedGradientText from "@/registry/default/magicui/animated-gradient-text";
export default async function AnimatedGradientTextDemo() {
return (
- <div className="z-10 flex min-h-[16rem] items-center justify-center">
+ <div className="z-10 flex min-h-64 items-center justify-center">
<AnimatedGradientText>
- 🎉 <hr className="mx-2 h-4 w-[1px] shrink-0 bg-gray-300" />{" "}
+ 🎉 <hr className="mx-2 h-4 w-px shrink-0 bg-gray-300" />{" "}
<span
className={cn(
`inline animate-gradient bg-gradient-to-r from-[#ffaa40] via-[#9c40ff] to-[#ffaa40] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent`,
diff --git a/registry/components/example/animated-grid-pattern-demo.tsx b/registry/default/example/animated-grid-pattern-demo.tsx
similarity index 89%
rename from registry/components/example/animated-grid-pattern-demo.tsx
rename to registry/default/example/animated-grid-pattern-demo.tsx
index a95dea69..c064e619 100644
--- a/registry/components/example/animated-grid-pattern-demo.tsx
+++ b/registry/default/example/animated-grid-pattern-demo.tsx
@@ -1,5 +1,5 @@
import { cn } from "@/lib/utils";
-import AnimatedGridPattern from "@/components/magicui/animated-grid-pattern";
+import AnimatedGridPattern from "@/registry/default/magicui/animated-grid-pattern";
export default function AnimatedGridPatternDemo() {
return (
diff --git a/registry/components/example/animated-list-demo.tsx b/registry/default/example/animated-list-demo.tsx
similarity index 97%
rename from registry/components/example/animated-list-demo.tsx
rename to registry/default/example/animated-list-demo.tsx
index cb7d53f0..237a914d 100644
--- a/registry/components/example/animated-list-demo.tsx
+++ b/registry/default/example/animated-list-demo.tsx
@@ -1,7 +1,7 @@
"use client";
import { cn } from "@/lib/utils";
-import { AnimatedList } from "@/components/magicui/animated-list";
+import { AnimatedList } from "@/registry/default/magicui/animated-list";
interface Item {
name: string;
diff --git a/registry/components/example/animated-shiny-text-demo.tsx b/registry/default/example/animated-shiny-text-demo.tsx
similarity index 85%
rename from registry/components/example/animated-shiny-text-demo.tsx
rename to registry/default/example/animated-shiny-text-demo.tsx
index a06b630d..dd112067 100644
--- a/registry/components/example/animated-shiny-text-demo.tsx
+++ b/registry/default/example/animated-shiny-text-demo.tsx
@@ -1,11 +1,11 @@
import { ArrowRightIcon } from "@radix-ui/react-icons";
import { cn } from "@/lib/utils";
-import AnimatedShinyText from "@/components/magicui/animated-shiny-text";
+import AnimatedShinyText from "@/registry/default/magicui/animated-shiny-text";
export default async function AnimatedShinyTextDemo() {
return (
- <div className="z-10 flex min-h-[16rem] items-center justify-center">
+ <div className="z-10 flex min-h-64 items-center justify-center">
<div
className={cn(
"group rounded-full border border-black/5 bg-neutral-100 text-base text-white transition-all ease-in hover:cursor-pointer hover:bg-neutral-200 dark:border-white/5 dark:bg-neutral-900 dark:hover:bg-neutral-800",
diff --git a/registry/components/example/animated-subscribe-button-demo.tsx b/registry/default/example/animated-subscribe-button-demo.tsx
similarity index 66%
rename from registry/components/example/animated-subscribe-button-demo.tsx
rename to registry/default/example/animated-subscribe-button-demo.tsx
index 97aba8a3..fd7659d5 100644
--- a/registry/components/example/animated-subscribe-button-demo.tsx
+++ b/registry/default/example/animated-subscribe-button-demo.tsx
@@ -1,6 +1,6 @@
import { CheckIcon, ChevronRightIcon } from "lucide-react";
-import { AnimatedSubscribeButton } from "@/components/magicui/animated-subscribe-button";
+import { AnimatedSubscribeButton } from "@/registry/default/magicui/animated-subscribe-button";
export default function AnimatedSubscribeButtonDemo() {
return (
@@ -11,12 +11,12 @@ export default function AnimatedSubscribeButtonDemo() {
initialText={
<span className="group inline-flex items-center">
Subscribe{" "}
- <ChevronRightIcon className="ml-1 h-4 w-4 transition-transform duration-300 group-hover:translate-x-1" />
+ <ChevronRightIcon className="ml-1 size-4 transition-transform duration-300 group-hover:translate-x-1" />
</span>
}
changeText={
<span className="group inline-flex items-center">
- <CheckIcon className="mr-2 h-4 w-4" />
+ <CheckIcon className="mr-2 size-4" />
Subscribed{" "}
</span>
}
diff --git a/registry/components/example/avatar-circles-demo.tsx b/registry/default/example/avatar-circles-demo.tsx
similarity index 72%
rename from registry/components/example/avatar-circles-demo.tsx
rename to registry/default/example/avatar-circles-demo.tsx
index d314e81b..f8a521ad 100644
--- a/registry/components/example/avatar-circles-demo.tsx
+++ b/registry/default/example/avatar-circles-demo.tsx
@@ -1,4 +1,4 @@
-import AvatarCircles from "@/components/magicui/avatar-circles";
+import AvatarCircles from "@/registry/default/magicui/avatar-circles";
const avatarUrls = [
"https://avatars.githubusercontent.com/u/16860528",
@@ -7,6 +7,6 @@ const avatarUrls = [
"https://avatars.githubusercontent.com/u/59228569",
];
-export default async function AvatarCirclesDemo() {
+export default function AvatarCirclesDemo() {
return <AvatarCircles numPeople={99} avatarUrls={avatarUrls} />;
}
diff --git a/registry/components/example/bento-demo-vertical.tsx b/registry/default/example/bento-demo-vertical.tsx
similarity index 96%
rename from registry/components/example/bento-demo-vertical.tsx
rename to registry/default/example/bento-demo-vertical.tsx
index ca5496ba..aeff95d1 100644
--- a/registry/components/example/bento-demo-vertical.tsx
+++ b/registry/default/example/bento-demo-vertical.tsx
@@ -6,7 +6,7 @@ import {
InputIcon,
} from "@radix-ui/react-icons";
-import { BentoCard, BentoGrid } from "@/components/magicui/bento-grid";
+import { BentoCard, BentoGrid } from "@/registry/default/magicui/bento-grid";
const features = [
{
diff --git a/registry/components/example/bento-demo.tsx b/registry/default/example/bento-demo.tsx
similarity index 92%
rename from registry/components/example/bento-demo.tsx
rename to registry/default/example/bento-demo.tsx
index a0afb87f..c9f6ea88 100644
--- a/registry/components/example/bento-demo.tsx
+++ b/registry/default/example/bento-demo.tsx
@@ -3,10 +3,10 @@ import { BellIcon, Share2Icon } from "lucide-react";
import { cn } from "@/lib/utils";
import { Calendar } from "@/components/ui/calendar";
-import AnimatedBeamMultipleOutputDemo from "@/components/example/animated-beam-multiple-outputs";
-import { BentoCard, BentoGrid } from "@/components/magicui/bento-grid";
-import Marquee from "@/components/magicui/marquee";
-import AnimatedListDemo from "@/registry/components/example/animated-list-demo";
+import AnimatedBeamMultipleOutputDemo from "@/registry/default/example/animated-beam-multiple-outputs";
+import AnimatedListDemo from "@/registry/default/example/animated-list-demo";
+import { BentoCard, BentoGrid } from "@/registry/default/magicui/bento-grid";
+import Marquee from "@/registry/default/magicui/marquee";
const files = [
{
diff --git a/registry/components/example/blur-fade-demo.tsx b/registry/default/example/blur-fade-demo.tsx
similarity index 91%
rename from registry/components/example/blur-fade-demo.tsx
rename to registry/default/example/blur-fade-demo.tsx
index 364629b2..30328c8a 100644
--- a/registry/components/example/blur-fade-demo.tsx
+++ b/registry/default/example/blur-fade-demo.tsx
@@ -1,4 +1,4 @@
-import BlurFade from "@/registry/components/magicui/blur-fade";
+import BlurFade from "@/registry/default/magicui/blur-fade";
const images = Array.from({ length: 9 }, (_, i) => {
const isLandscape = i % 2 === 0;
diff --git a/registry/components/example/blur-fade-text-demo.tsx b/registry/default/example/blur-fade-text-demo.tsx
similarity index 88%
rename from registry/components/example/blur-fade-text-demo.tsx
rename to registry/default/example/blur-fade-text-demo.tsx
index e86d99a7..986a3b2a 100644
--- a/registry/components/example/blur-fade-text-demo.tsx
+++ b/registry/default/example/blur-fade-text-demo.tsx
@@ -1,4 +1,4 @@
-import BlurFade from "@/registry/components/magicui/blur-fade";
+import BlurFade from "@/registry/default/magicui/blur-fade";
export default function BlurFadeTextDemo() {
return (
diff --git a/registry/components/example/blur-in-demo.tsx b/registry/default/example/blur-in-demo.tsx
similarity index 52%
rename from registry/components/example/blur-in-demo.tsx
rename to registry/default/example/blur-in-demo.tsx
index e527f0e9..fda33906 100644
--- a/registry/components/example/blur-in-demo.tsx
+++ b/registry/default/example/blur-in-demo.tsx
@@ -1,11 +1,10 @@
-import BlurIn from "@/components/magicui/blur-in";
+import BlurIn from "@/registry/default/magicui/blur-in";
-const BlurInDemo = () => {
+export default function BlurInDemo() {
return (
<BlurIn
word="Blur In"
className="text-4xl font-bold text-black dark:text-white"
/>
);
-};
-export default BlurInDemo;
+}
diff --git a/registry/components/example/border-beam-demo-2.tsx b/registry/default/example/border-beam-demo-2.tsx
similarity index 90%
rename from registry/components/example/border-beam-demo-2.tsx
rename to registry/default/example/border-beam-demo-2.tsx
index 0928eb6d..815f8a9b 100644
--- a/registry/components/example/border-beam-demo-2.tsx
+++ b/registry/default/example/border-beam-demo-2.tsx
@@ -1,4 +1,4 @@
-import { BorderBeam } from "@/components/magicui/border-beam";
+import { BorderBeam } from "@/registry/default/magicui/border-beam";
export default function BorderBeamDemo() {
return (
diff --git a/registry/components/example/border-beam-demo.tsx b/registry/default/example/border-beam-demo.tsx
similarity index 88%
rename from registry/components/example/border-beam-demo.tsx
rename to registry/default/example/border-beam-demo.tsx
index 6669dfaa..afd18601 100644
--- a/registry/components/example/border-beam-demo.tsx
+++ b/registry/default/example/border-beam-demo.tsx
@@ -1,4 +1,4 @@
-import { BorderBeam } from "@/components/magicui/border-beam";
+import { BorderBeam } from "@/registry/default/magicui/border-beam";
export default function BorderBeamDemo() {
return (
diff --git a/registry/components/example/box-reveal-demo.tsx b/registry/default/example/box-reveal-demo.tsx
similarity index 87%
rename from registry/components/example/box-reveal-demo.tsx
rename to registry/default/example/box-reveal-demo.tsx
index 1cad1ccb..68e0d722 100644
--- a/registry/components/example/box-reveal-demo.tsx
+++ b/registry/default/example/box-reveal-demo.tsx
@@ -1,9 +1,9 @@
import { Button } from "@/components/ui/button";
-import BoxReveal from "@/components/magicui/box-reveal";
+import BoxReveal from "@/registry/default/magicui/box-reveal";
export default async function BoxRevealDemo() {
return (
- <div className="h-full w-full max-w-[32rem] items-center justify-center overflow-hidden pt-8">
+ <div className="size-full max-w-lg items-center justify-center overflow-hidden pt-8">
<BoxReveal boxColor={"#5046e6"} duration={0.5}>
<p className="text-[3.5rem] font-semibold">
Magic UI<span className="text-[#5046e6]">.</span>
@@ -18,7 +18,7 @@ export default async function BoxRevealDemo() {
</BoxReveal>
<BoxReveal boxColor={"#5046e6"} duration={0.5}>
- <div className="mt-[1.5rem]">
+ <div className="mt-6">
<p>
-&gt; 20+ free and open-source animated components built with
<span className="font-semibold text-[#5046e6]"> React</span>,
diff --git a/registry/components/example/confetti-basic-cannon.tsx b/registry/default/example/confetti-basic-cannon.tsx
similarity index 69%
rename from registry/components/example/confetti-basic-cannon.tsx
rename to registry/default/example/confetti-basic-cannon.tsx
index 9237d022..e0e04d19 100644
--- a/registry/components/example/confetti-basic-cannon.tsx
+++ b/registry/default/example/confetti-basic-cannon.tsx
@@ -1,4 +1,4 @@
-import { ConfettiButton } from "@/components/magicui/confetti";
+import { ConfettiButton } from "@/registry/default/magicui/confetti";
export default function ConfettiButtonDemo() {
return (
diff --git a/registry/components/example/confetti-custom-shapes.tsx b/registry/default/example/confetti-custom-shapes.tsx
similarity index 100%
rename from registry/components/example/confetti-custom-shapes.tsx
rename to registry/default/example/confetti-custom-shapes.tsx
diff --git a/registry/components/example/confetti-demo.tsx b/registry/default/example/confetti-demo.tsx
similarity index 85%
rename from registry/components/example/confetti-demo.tsx
rename to registry/default/example/confetti-demo.tsx
index 2c706305..b786888e 100644
--- a/registry/components/example/confetti-demo.tsx
+++ b/registry/default/example/confetti-demo.tsx
@@ -2,8 +2,8 @@
import { useRef } from "react";
-import type { ConfettiRef } from "@/components/magicui/confetti";
-import Confetti from "@/components/magicui/confetti";
+import type { ConfettiRef } from "@/registry/default/magicui/confetti";
+import Confetti from "@/registry/default/magicui/confetti";
export default function ConfettiDemo() {
const confettiRef = useRef<ConfettiRef>(null);
diff --git a/registry/components/example/confetti-emoji.tsx b/registry/default/example/confetti-emoji.tsx
similarity index 100%
rename from registry/components/example/confetti-emoji.tsx
rename to registry/default/example/confetti-emoji.tsx
diff --git a/registry/components/example/confetti-fireworks.tsx b/registry/default/example/confetti-fireworks.tsx
similarity index 100%
rename from registry/components/example/confetti-fireworks.tsx
rename to registry/default/example/confetti-fireworks.tsx
diff --git a/registry/components/example/confetti-random-direction.tsx b/registry/default/example/confetti-random-direction.tsx
similarity index 80%
rename from registry/components/example/confetti-random-direction.tsx
rename to registry/default/example/confetti-random-direction.tsx
index 755f1759..12971459 100644
--- a/registry/components/example/confetti-random-direction.tsx
+++ b/registry/default/example/confetti-random-direction.tsx
@@ -1,4 +1,4 @@
-import { ConfettiButton } from "@/components/magicui/confetti";
+import { ConfettiButton } from "@/registry/default/magicui/confetti";
export default function ConfettiButtonDemo() {
return (
diff --git a/registry/components/example/confetti-side-cannons.tsx b/registry/default/example/confetti-side-cannons.tsx
similarity index 100%
rename from registry/components/example/confetti-side-cannons.tsx
rename to registry/default/example/confetti-side-cannons.tsx
diff --git a/registry/components/example/confetti-stars.tsx b/registry/default/example/confetti-stars.tsx
similarity index 100%
rename from registry/components/example/confetti-stars.tsx
rename to registry/default/example/confetti-stars.tsx
diff --git a/registry/components/example/cool-mode-custom.tsx b/registry/default/example/cool-mode-custom.tsx
similarity index 85%
rename from registry/components/example/cool-mode-custom.tsx
rename to registry/default/example/cool-mode-custom.tsx
index 7bffa6f0..d8ac77a4 100644
--- a/registry/components/example/cool-mode-custom.tsx
+++ b/registry/default/example/cool-mode-custom.tsx
@@ -1,5 +1,5 @@
import { Button } from "@/components/ui/button";
-import { CoolMode } from "@/components/magicui/cool-mode";
+import { CoolMode } from "@/registry/default/magicui/cool-mode";
export default function CoolModeCustom() {
return (
diff --git a/registry/components/example/cool-mode-demo.tsx b/registry/default/example/cool-mode-demo.tsx
similarity index 78%
rename from registry/components/example/cool-mode-demo.tsx
rename to registry/default/example/cool-mode-demo.tsx
index b73e7d85..87f0d575 100644
--- a/registry/components/example/cool-mode-demo.tsx
+++ b/registry/default/example/cool-mode-demo.tsx
@@ -1,5 +1,5 @@
import { Button } from "@/components/ui/button";
-import { CoolMode } from "@/components/magicui/cool-mode";
+import { CoolMode } from "@/registry/default/magicui/cool-mode";
export default function CoolModeDemo() {
return (
diff --git a/registry/components/example/dock-demo-2.tsx b/registry/default/example/dock-demo-2.tsx
similarity index 99%
rename from registry/components/example/dock-demo-2.tsx
rename to registry/default/example/dock-demo-2.tsx
index 5641294b..9c57e1e7 100644
--- a/registry/components/example/dock-demo-2.tsx
+++ b/registry/default/example/dock-demo-2.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import { Dock, DockIcon } from "@/components/magicui/dock";
+import { Dock, DockIcon } from "@/registry/default/magicui/dock";
export type IconProps = React.HTMLAttributes<SVGElement>;
diff --git a/registry/components/example/dock-demo-3.tsx b/registry/default/example/dock-demo-3.tsx
similarity index 99%
rename from registry/components/example/dock-demo-3.tsx
rename to registry/default/example/dock-demo-3.tsx
index b7124fa8..13d75317 100644
--- a/registry/components/example/dock-demo-3.tsx
+++ b/registry/default/example/dock-demo-3.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import { Dock, DockIcon } from "@/components/magicui/dock";
+import { Dock, DockIcon } from "@/registry/default/magicui/dock";
export type IconProps = React.HTMLAttributes<SVGElement>;
diff --git a/registry/components/example/dock-demo.tsx b/registry/default/example/dock-demo.tsx
similarity index 99%
rename from registry/components/example/dock-demo.tsx
rename to registry/default/example/dock-demo.tsx
index 84529045..98bbd7d7 100644
--- a/registry/components/example/dock-demo.tsx
+++ b/registry/default/example/dock-demo.tsx
@@ -11,8 +11,8 @@ import {
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
-import { Dock, DockIcon } from "@/components/magicui/dock";
import { ModeToggle } from "@/components/mode-toggle";
+import { Dock, DockIcon } from "@/registry/default/magicui/dock";
export type IconProps = React.HTMLAttributes<SVGElement>;
diff --git a/registry/components/example/dot-pattern-demo.tsx b/registry/default/example/dot-pattern-demo.tsx
similarity index 89%
rename from registry/components/example/dot-pattern-demo.tsx
rename to registry/default/example/dot-pattern-demo.tsx
index c46ce097..1fafc9d1 100644
--- a/registry/components/example/dot-pattern-demo.tsx
+++ b/registry/default/example/dot-pattern-demo.tsx
@@ -1,7 +1,7 @@
"use client";
import { cn } from "@/lib/utils";
-import DotPattern from "@/components/magicui/dot-pattern";
+import { DotPattern } from "@/registry/default/magicui/dot-pattern";
export default function DotPatternDemo() {
return (
diff --git a/registry/components/example/dot-pattern-linear-gradient.tsx b/registry/default/example/dot-pattern-linear-gradient.tsx
similarity index 63%
rename from registry/components/example/dot-pattern-linear-gradient.tsx
rename to registry/default/example/dot-pattern-linear-gradient.tsx
index 331546c3..8759baaf 100644
--- a/registry/components/example/dot-pattern-linear-gradient.tsx
+++ b/registry/default/example/dot-pattern-linear-gradient.tsx
@@ -1,11 +1,11 @@
"use client";
import { cn } from "@/lib/utils";
-import DotPattern from "@/components/magicui/dot-pattern";
+import { DotPattern } from "@/registry/default/magicui/dot-pattern";
-const DotPatternDemo2 = () => {
+export default function DotPatternLinearGradient() {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl">
+ <div className="relative flex size-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Dot Pattern
</p>
@@ -21,6 +21,4 @@ const DotPatternDemo2 = () => {
/>
</div>
);
-};
-
-export default DotPatternDemo2;
+}
diff --git a/registry/components/example/fade-text-demo.tsx b/registry/default/example/fade-text-demo.tsx
similarity index 90%
rename from registry/components/example/fade-text-demo.tsx
rename to registry/default/example/fade-text-demo.tsx
index 26ae8424..db5cdfe8 100644
--- a/registry/components/example/fade-text-demo.tsx
+++ b/registry/default/example/fade-text-demo.tsx
@@ -1,6 +1,6 @@
-import { FadeText } from "@/components/magicui/fade-text";
+import { FadeText } from "@/registry/default/magicui/fade-text";
-export default async function FadeTextDemo() {
+export default function FadeTextDemo() {
return (
<div className="flex flex-col space-y-8 text-center">
<FadeText
diff --git a/registry/components/example/file-tree-demo.tsx b/registry/default/example/file-tree-demo.tsx
similarity index 96%
rename from registry/components/example/file-tree-demo.tsx
rename to registry/default/example/file-tree-demo.tsx
index be760c1e..096c0576 100644
--- a/registry/components/example/file-tree-demo.tsx
+++ b/registry/default/example/file-tree-demo.tsx
@@ -1,4 +1,4 @@
-import { File, Folder, Tree } from "@/components/magicui/file-tree";
+import { File, Folder, Tree } from "@/registry/default/magicui/file-tree";
export default function FileTreeDemo() {
return (
diff --git a/registry/components/example/flickering-grid-demo.tsx b/registry/default/example/flickering-grid-demo.tsx
similarity index 85%
rename from registry/components/example/flickering-grid-demo.tsx
rename to registry/default/example/flickering-grid-demo.tsx
index 064e298a..1186ca9d 100644
--- a/registry/components/example/flickering-grid-demo.tsx
+++ b/registry/default/example/flickering-grid-demo.tsx
@@ -1,4 +1,4 @@
-import FlickeringGrid from "@/components/magicui/flickering-grid";
+import FlickeringGrid from "@/registry/default/magicui/flickering-grid";
export default function FlickeringGridDemo() {
return (
diff --git a/registry/components/example/flickering-grid-rounded-demo.tsx b/registry/default/example/flickering-grid-rounded-demo.tsx
similarity index 86%
rename from registry/components/example/flickering-grid-rounded-demo.tsx
rename to registry/default/example/flickering-grid-rounded-demo.tsx
index 11db41eb..e11b46c8 100644
--- a/registry/components/example/flickering-grid-rounded-demo.tsx
+++ b/registry/default/example/flickering-grid-rounded-demo.tsx
@@ -1,4 +1,4 @@
-import FlickeringGrid from "@/components/magicui/flickering-grid";
+import FlickeringGrid from "@/registry/default/magicui/flickering-grid";
export default function FlickeringGridRoundedDemo() {
return (
diff --git a/registry/default/example/flip-text-demo.tsx b/registry/default/example/flip-text-demo.tsx
new file mode 100644
index 00000000..2ab3a82c
--- /dev/null
+++ b/registry/default/example/flip-text-demo.tsx
@@ -0,0 +1,10 @@
+import FlipText from "@/registry/default/magicui/flip-text";
+
+export default function FlipTextDemo() {
+ return (
+ <FlipText
+ className="text-4xl font-bold -tracking-widest text-black dark:text-white md:text-7xl md:leading-[5rem]"
+ word="Flip Text"
+ />
+ );
+}
diff --git a/registry/components/example/globe-demo.tsx b/registry/default/example/globe-demo.tsx
similarity index 68%
rename from registry/components/example/globe-demo.tsx
rename to registry/default/example/globe-demo.tsx
index 4e799ca7..d6849c04 100644
--- a/registry/components/example/globe-demo.tsx
+++ b/registry/default/example/globe-demo.tsx
@@ -1,8 +1,8 @@
-import Globe from "@/components/magicui/globe";
+import Globe from "@/registry/default/magicui/globe";
export default function GlobeDemo() {
return (
- <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background px-40 pb-40 pt-8 md:pb-60 md:shadow-xl">
+ <div className="relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background px-40 pb-40 pt-8 md:pb-60 md:shadow-xl">
<span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">
Globe
</span>
diff --git a/registry/default/example/gradual-spacing-demo.tsx b/registry/default/example/gradual-spacing-demo.tsx
new file mode 100644
index 00000000..f163441c
--- /dev/null
+++ b/registry/default/example/gradual-spacing-demo.tsx
@@ -0,0 +1,10 @@
+import GradualSpacing from "@/registry/default/magicui/gradual-spacing";
+
+export default function GradualSpacingDemo() {
+ return (
+ <GradualSpacing
+ className="font-display text-center text-4xl font-bold -tracking-widest text-black dark:text-white md:text-7xl md:leading-[5rem]"
+ text="Gradual Spacing"
+ />
+ );
+}
diff --git a/registry/components/example/grid-pattern-dashed.tsx b/registry/default/example/grid-pattern-dashed.tsx
similarity index 63%
rename from registry/components/example/grid-pattern-dashed.tsx
rename to registry/default/example/grid-pattern-dashed.tsx
index 4cdd86c6..6e26931c 100644
--- a/registry/components/example/grid-pattern-dashed.tsx
+++ b/registry/default/example/grid-pattern-dashed.tsx
@@ -1,11 +1,11 @@
"use client";
import { cn } from "@/lib/utils";
-import GridPattern from "@/components/magicui/grid-pattern";
+import GridPattern from "@/registry/default/magicui/grid-pattern";
-const GridPatternDashed = () => {
+export default function GridPatternDashed() {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl">
+ <div className="relative flex size-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Grid Pattern
</p>
@@ -21,6 +21,4 @@ const GridPatternDashed = () => {
/>
</div>
);
-};
-
-export default GridPatternDashed;
+}
diff --git a/registry/components/example/grid-pattern-demo.tsx b/registry/default/example/grid-pattern-demo.tsx
similarity index 93%
rename from registry/components/example/grid-pattern-demo.tsx
rename to registry/default/example/grid-pattern-demo.tsx
index c60c1fa7..20496160 100644
--- a/registry/components/example/grid-pattern-demo.tsx
+++ b/registry/default/example/grid-pattern-demo.tsx
@@ -1,7 +1,7 @@
"use client";
import { cn } from "@/lib/utils";
-import GridPattern from "@/components/magicui/grid-pattern";
+import GridPattern from "@/registry/default/magicui/grid-pattern";
export default function GridPatternDemo() {
return (
diff --git a/registry/components/example/grid-pattern-linear-gradient.tsx b/registry/default/example/grid-pattern-linear-gradient.tsx
similarity index 60%
rename from registry/components/example/grid-pattern-linear-gradient.tsx
rename to registry/default/example/grid-pattern-linear-gradient.tsx
index ddcc513c..6ad76c96 100644
--- a/registry/components/example/grid-pattern-linear-gradient.tsx
+++ b/registry/default/example/grid-pattern-linear-gradient.tsx
@@ -1,11 +1,11 @@
"use client";
import { cn } from "@/lib/utils";
-import GridPattern from "@/components/magicui/grid-pattern";
+import GridPattern from "@/registry/default/magicui/grid-pattern";
-const GridPatternLinearGradient = () => {
+export default function GridPatternLinearGradient() {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl">
+ <div className="relative flex size-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Grid Pattern
</p>
@@ -20,6 +20,4 @@ const GridPatternLinearGradient = () => {
/>
</div>
);
-};
-
-export default GridPatternLinearGradient;
+}
diff --git a/registry/components/example/hero-video-dialog-demo-top-in-bottom-out.tsx b/registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx
similarity index 90%
rename from registry/components/example/hero-video-dialog-demo-top-in-bottom-out.tsx
rename to registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx
index 740774cd..df0e9a70 100644
--- a/registry/components/example/hero-video-dialog-demo-top-in-bottom-out.tsx
+++ b/registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx
@@ -1,4 +1,4 @@
-import HeroVideoDialog from "@/registry/components/magicui/hero-video-dialog";
+import HeroVideoDialog from "@/registry/default/magicui/hero-video-dialog";
export default function HeroVideoDialogDemoTopInBottomOut() {
return (
diff --git a/registry/components/example/hero-video-dialog-demo.tsx b/registry/default/example/hero-video-dialog-demo.tsx
similarity index 89%
rename from registry/components/example/hero-video-dialog-demo.tsx
rename to registry/default/example/hero-video-dialog-demo.tsx
index 04ab48e0..721afdcd 100644
--- a/registry/components/example/hero-video-dialog-demo.tsx
+++ b/registry/default/example/hero-video-dialog-demo.tsx
@@ -1,4 +1,4 @@
-import HeroVideoDialog from "@/registry/components/magicui/hero-video-dialog";
+import HeroVideoDialog from "@/registry/default/magicui/hero-video-dialog";
export default function HeroVideoDialogDemo() {
return (
diff --git a/registry/components/example/hyper-text-demo.tsx b/registry/default/example/hyper-text-demo.tsx
similarity index 73%
rename from registry/components/example/hyper-text-demo.tsx
rename to registry/default/example/hyper-text-demo.tsx
index b24a00f7..b974ead2 100644
--- a/registry/components/example/hyper-text-demo.tsx
+++ b/registry/default/example/hyper-text-demo.tsx
@@ -1,4 +1,4 @@
-import HyperText from "@/components/magicui/hyper-text";
+import HyperText from "@/registry/default/magicui/hyper-text";
export default function HyperTextDemo() {
return (
diff --git a/registry/components/example/icon-cloud-demo.tsx b/registry/default/example/icon-cloud-demo.tsx
similarity index 71%
rename from registry/components/example/icon-cloud-demo.tsx
rename to registry/default/example/icon-cloud-demo.tsx
index bf2b43b6..e1b3e2e4 100644
--- a/registry/components/example/icon-cloud-demo.tsx
+++ b/registry/default/example/icon-cloud-demo.tsx
@@ -1,4 +1,4 @@
-import IconCloud from "@/components/magicui/icon-cloud";
+import IconCloud from "@/registry/default/magicui/icon-cloud";
const slugs = [
"typescript",
@@ -35,7 +35,7 @@ const slugs = [
export default function IconCloudDemo() {
return (
- <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background px-20 pb-20 pt-8 ">
+ <div className="relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background px-20 pb-20 pt-8 ">
<IconCloud iconSlugs={slugs} />
</div>
);
diff --git a/registry/components/example/iphone-15-pro-demo-2.tsx b/registry/default/example/iphone-15-pro-demo-2.tsx
similarity index 75%
rename from registry/components/example/iphone-15-pro-demo-2.tsx
rename to registry/default/example/iphone-15-pro-demo-2.tsx
index aa4839d0..b8cdd408 100644
--- a/registry/components/example/iphone-15-pro-demo-2.tsx
+++ b/registry/default/example/iphone-15-pro-demo-2.tsx
@@ -1,4 +1,4 @@
-import Iphone15Pro from "@/registry/components/magicui/iphone-15-pro";
+import Iphone15Pro from "@/registry/default/magicui/iphone-15-pro";
export default function Iphone15ProDemo() {
return (
diff --git a/registry/components/example/iphone-15-pro-demo.tsx b/registry/default/example/iphone-15-pro-demo.tsx
similarity index 67%
rename from registry/components/example/iphone-15-pro-demo.tsx
rename to registry/default/example/iphone-15-pro-demo.tsx
index 624dc510..fee4a9e0 100644
--- a/registry/components/example/iphone-15-pro-demo.tsx
+++ b/registry/default/example/iphone-15-pro-demo.tsx
@@ -1,4 +1,4 @@
-import Iphone15Pro from "@/registry/components/magicui/iphone-15-pro";
+import Iphone15Pro from "@/registry/default/magicui/iphone-15-pro";
export default function Iphone15ProDemo() {
return (
diff --git a/registry/default/example/letter-pullup-demo.tsx b/registry/default/example/letter-pullup-demo.tsx
new file mode 100644
index 00000000..99c5fc06
--- /dev/null
+++ b/registry/default/example/letter-pullup-demo.tsx
@@ -0,0 +1,5 @@
+import LetterPullup from "@/registry/default/magicui/letter-pullup";
+
+export default function LetterPullupDemo() {
+ return <LetterPullup words={"Staggered Letter Pull Up"} delay={0.05} />;
+}
diff --git a/registry/components/example/magic-card-demo.tsx b/registry/default/example/magic-card-demo.tsx
similarity index 91%
rename from registry/components/example/magic-card-demo.tsx
rename to registry/default/example/magic-card-demo.tsx
index 6312a68c..7128bff3 100644
--- a/registry/components/example/magic-card-demo.tsx
+++ b/registry/default/example/magic-card-demo.tsx
@@ -1,6 +1,6 @@
import { useTheme } from "next-themes";
-import { MagicCard } from "@/components/magicui/magic-card";
+import { MagicCard } from "@/registry/default/magicui/magic-card";
export default function MagicCardDemo() {
const { theme } = useTheme();
diff --git a/registry/components/example/marquee-3d.tsx b/registry/default/example/marquee-3d.tsx
similarity index 93%
rename from registry/components/example/marquee-3d.tsx
rename to registry/default/example/marquee-3d.tsx
index a54b44c2..6f2c2999 100644
--- a/registry/components/example/marquee-3d.tsx
+++ b/registry/default/example/marquee-3d.tsx
@@ -1,4 +1,4 @@
-import Marquee from "@/components/magicui/marquee";
+import Marquee from "@/registry/default/magicui/marquee";
const logos = [
{
@@ -27,7 +27,7 @@ const logos = [
},
];
-const Marquee3D = () => {
+export default function Marquee3D() {
return (
<div className="relative flex h-full w-96 flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background px-20 md:shadow-xl">
<div className="flex flex-row gap-4 [perspective:300px]">
@@ -54,6 +54,4 @@ const Marquee3D = () => {
<div className="pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-white dark:from-background"></div>
</div>
);
-};
-
-export default Marquee3D;
+}
diff --git a/registry/components/example/marquee-demo-vertical.tsx b/registry/default/example/marquee-demo-vertical.tsx
similarity index 97%
rename from registry/components/example/marquee-demo-vertical.tsx
rename to registry/default/example/marquee-demo-vertical.tsx
index 9a5039fb..23fd8dac 100644
--- a/registry/components/example/marquee-demo-vertical.tsx
+++ b/registry/default/example/marquee-demo-vertical.tsx
@@ -1,5 +1,5 @@
import { cn } from "@/lib/utils";
-import Marquee from "@/components/magicui/marquee";
+import Marquee from "@/registry/default/magicui/marquee";
const reviews = [
{
diff --git a/registry/components/example/marquee-demo.tsx b/registry/default/example/marquee-demo.tsx
similarity index 98%
rename from registry/components/example/marquee-demo.tsx
rename to registry/default/example/marquee-demo.tsx
index e12dd842..33c707bc 100644
--- a/registry/components/example/marquee-demo.tsx
+++ b/registry/default/example/marquee-demo.tsx
@@ -1,5 +1,5 @@
import { cn } from "@/lib/utils";
-import Marquee from "@/components/magicui/marquee";
+import Marquee from "@/registry/default/magicui/marquee";
const reviews = [
{
diff --git a/registry/components/example/marquee-logos.tsx b/registry/default/example/marquee-logos.tsx
similarity index 77%
rename from registry/components/example/marquee-logos.tsx
rename to registry/default/example/marquee-logos.tsx
index 146d8afe..3cc1e43d 100644
--- a/registry/components/example/marquee-logos.tsx
+++ b/registry/default/example/marquee-logos.tsx
@@ -1,5 +1,5 @@
import { cn } from "@/lib/utils";
-import Marquee from "@/components/magicui/marquee";
+import Marquee from "@/registry/default/magicui/marquee";
const logos = [
{
@@ -30,15 +30,15 @@ const logos = [
const Logo = ({ name, img }: { name: string; img: string }) => {
return (
- <div className={cn("h-12 w-12 cursor-pointer")}>
+ <div className={cn("size-12 cursor-pointer")}>
<img src={img} alt={name} />
</div>
);
};
-const MarqueeLogos = () => {
+export default function MarqueeLogos() {
return (
- <div className="relative flex h-full w-full flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background py-20 md:shadow-xl">
+ <div className="relative flex size-full flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background py-20 md:shadow-xl">
<Marquee className="[--gap:3rem]">
{logos.map((logo, idx) => (
<Logo key={idx} {...logo} />
@@ -48,6 +48,4 @@ const MarqueeLogos = () => {
<div className="pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-white dark:from-background"></div>
</div>
);
-};
-
-export default MarqueeLogos;
+}
diff --git a/registry/components/example/meteors-demo.tsx b/registry/default/example/meteors-demo.tsx
similarity index 89%
rename from registry/components/example/meteors-demo.tsx
rename to registry/default/example/meteors-demo.tsx
index b7f7d128..2b5ff7d7 100644
--- a/registry/components/example/meteors-demo.tsx
+++ b/registry/default/example/meteors-demo.tsx
@@ -1,4 +1,4 @@
-import Meteors from "@/components/magicui/meteors";
+import Meteors from "@/registry/default/magicui/meteors";
export default function MeteorDemo() {
return (
diff --git a/registry/components/example/neon-gradient-card-demo.tsx b/registry/default/example/neon-gradient-card-demo.tsx
similarity index 76%
rename from registry/components/example/neon-gradient-card-demo.tsx
rename to registry/default/example/neon-gradient-card-demo.tsx
index bdd9d498..691bf3b5 100644
--- a/registry/components/example/neon-gradient-card-demo.tsx
+++ b/registry/default/example/neon-gradient-card-demo.tsx
@@ -1,6 +1,6 @@
-import { NeonGradientCard } from "@/components/magicui/neon-gradient-card";
+import { NeonGradientCard } from "@/registry/default/magicui/neon-gradient-card";
-export default async function NeonGradientCardDemo() {
+export default function NeonGradientCardDemo() {
return (
<NeonGradientCard className="max-w-sm items-center justify-center text-center">
<span className="pointer-events-none z-10 h-full whitespace-pre-wrap bg-gradient-to-br from-[#ff2975] from-35% to-[#00FFF1] bg-clip-text text-center text-6xl font-bold leading-none tracking-tighter text-transparent dark:drop-shadow-[0_5px_5px_rgba(0,0,0,0.8)]">
diff --git a/registry/components/example/number-ticker-decimal-demo.tsx b/registry/default/example/number-ticker-decimal-demo.tsx
similarity index 58%
rename from registry/components/example/number-ticker-decimal-demo.tsx
rename to registry/default/example/number-ticker-decimal-demo.tsx
index bbed856c..fb6d8c12 100644
--- a/registry/components/example/number-ticker-decimal-demo.tsx
+++ b/registry/default/example/number-ticker-decimal-demo.tsx
@@ -1,11 +1,9 @@
-import NumberTicker from "@/components/magicui/number-ticker";
+import NumberTicker from "@/registry/default/magicui/number-ticker";
-const NumberTickerDemo = () => {
+export default function NumberTickerDemo() {
return (
<p className="whitespace-pre-wrap text-8xl font-medium tracking-tighter text-black dark:text-white">
<NumberTicker value={5.67} decimalPlaces={2} />
</p>
);
-};
-
-export default NumberTickerDemo;
+}
diff --git a/registry/components/example/number-ticker-demo.tsx b/registry/default/example/number-ticker-demo.tsx
similarity index 55%
rename from registry/components/example/number-ticker-demo.tsx
rename to registry/default/example/number-ticker-demo.tsx
index 4c0a10c8..16e0847d 100644
--- a/registry/components/example/number-ticker-demo.tsx
+++ b/registry/default/example/number-ticker-demo.tsx
@@ -1,11 +1,9 @@
-import NumberTicker from "@/components/magicui/number-ticker";
+import NumberTicker from "@/registry/default/magicui/number-ticker";
-const NumberTickerDemo = () => {
+export default function NumberTickerDemo() {
return (
<p className="whitespace-pre-wrap text-8xl font-medium tracking-tighter text-black dark:text-white">
<NumberTicker value={100} />
</p>
);
-};
-
-export default NumberTickerDemo;
+}
diff --git a/registry/components/example/orbiting-circles-demo.tsx b/registry/default/example/orbiting-circles-demo.tsx
similarity index 99%
rename from registry/components/example/orbiting-circles-demo.tsx
rename to registry/default/example/orbiting-circles-demo.tsx
index d905650a..59baab44 100644
--- a/registry/components/example/orbiting-circles-demo.tsx
+++ b/registry/default/example/orbiting-circles-demo.tsx
@@ -1,4 +1,4 @@
-import OrbitingCircles from "@/components/magicui/orbiting-circles";
+import OrbitingCircles from "@/registry/default/magicui/orbiting-circles";
export default function OrbitingCirclesDemo() {
return (
diff --git a/registry/components/example/particles-demo.tsx b/registry/default/example/particles-demo.tsx
similarity index 87%
rename from registry/components/example/particles-demo.tsx
rename to registry/default/example/particles-demo.tsx
index b4085d26..74f9ad5e 100644
--- a/registry/components/example/particles-demo.tsx
+++ b/registry/default/example/particles-demo.tsx
@@ -3,9 +3,9 @@
import { useEffect, useState } from "react";
import { useTheme } from "next-themes";
-import Particles from "@/components/magicui/particles";
+import Particles from "@/registry/default/magicui/particles";
-const ParticlesDemo = () => {
+export default function ParticlesDemo() {
const { theme } = useTheme();
const [color, setColor] = useState("#ffffff");
@@ -27,6 +27,4 @@ const ParticlesDemo = () => {
/>
</div>
);
-};
-
-export default ParticlesDemo;
+}
diff --git a/registry/components/example/pulsating-button-demo.tsx b/registry/default/example/pulsating-button-demo.tsx
similarity index 60%
rename from registry/components/example/pulsating-button-demo.tsx
rename to registry/default/example/pulsating-button-demo.tsx
index 92731a36..5de7a523 100644
--- a/registry/components/example/pulsating-button-demo.tsx
+++ b/registry/default/example/pulsating-button-demo.tsx
@@ -1,4 +1,4 @@
-import PulsatingButton from "@/registry/components/magicui/pulsating-button";
+import PulsatingButton from "@/registry/default/magicui/pulsating-button";
export default function PulsatingButtonDemo() {
return <PulsatingButton>Join Affiliate Program</PulsatingButton>;
diff --git a/registry/components/example/rainbow-button-demo.tsx b/registry/default/example/rainbow-button-demo.tsx
similarity index 59%
rename from registry/components/example/rainbow-button-demo.tsx
rename to registry/default/example/rainbow-button-demo.tsx
index d5b01102..18441790 100644
--- a/registry/components/example/rainbow-button-demo.tsx
+++ b/registry/default/example/rainbow-button-demo.tsx
@@ -1,4 +1,4 @@
-import { RainbowButton } from "@/components/magicui/rainbow-button";
+import { RainbowButton } from "@/registry/default/magicui/rainbow-button";
export default function RainbowButtonDemo() {
return <RainbowButton>Get Unlimited Access</RainbowButton>;
diff --git a/registry/components/example/retro-grid-demo.tsx b/registry/default/example/retro-grid-demo.tsx
similarity index 89%
rename from registry/components/example/retro-grid-demo.tsx
rename to registry/default/example/retro-grid-demo.tsx
index 13a14194..ff4fe089 100644
--- a/registry/components/example/retro-grid-demo.tsx
+++ b/registry/default/example/retro-grid-demo.tsx
@@ -1,6 +1,6 @@
"use client";
-import RetroGrid from "@/components/magicui/retro-grid";
+import RetroGrid from "@/registry/default/magicui/retro-grid";
export default function RetroGridDemo() {
return (
diff --git a/registry/components/example/ripple-demo.tsx b/registry/default/example/ripple-demo.tsx
similarity index 86%
rename from registry/components/example/ripple-demo.tsx
rename to registry/default/example/ripple-demo.tsx
index 56c1cae6..4f89b4c4 100644
--- a/registry/components/example/ripple-demo.tsx
+++ b/registry/default/example/ripple-demo.tsx
@@ -1,4 +1,4 @@
-import Ripple from "@/registry/components/magicui/ripple";
+import Ripple from "@/registry/default/magicui/ripple";
export default function RippleDemo() {
return (
diff --git a/registry/components/example/safari-demo-2.tsx b/registry/default/example/safari-demo-2.tsx
similarity index 79%
rename from registry/components/example/safari-demo-2.tsx
rename to registry/default/example/safari-demo-2.tsx
index b58281b8..be89e757 100644
--- a/registry/components/example/safari-demo-2.tsx
+++ b/registry/default/example/safari-demo-2.tsx
@@ -1,4 +1,4 @@
-import Safari from "@/registry/components/magicui/safari";
+import Safari from "@/registry/default/magicui/safari";
export default function SafariDemo() {
return (
diff --git a/registry/components/example/safari-demo.tsx b/registry/default/example/safari-demo.tsx
similarity index 73%
rename from registry/components/example/safari-demo.tsx
rename to registry/default/example/safari-demo.tsx
index ab7fd4dd..d0ed945d 100644
--- a/registry/components/example/safari-demo.tsx
+++ b/registry/default/example/safari-demo.tsx
@@ -1,4 +1,4 @@
-import Safari from "@/registry/components/magicui/safari";
+import Safari from "@/registry/default/magicui/safari";
export default function SafariDemo() {
return (
diff --git a/registry/components/example/scroll-based-velocity-demo.tsx b/registry/default/example/scroll-based-velocity-demo.tsx
similarity index 78%
rename from registry/components/example/scroll-based-velocity-demo.tsx
rename to registry/default/example/scroll-based-velocity-demo.tsx
index 022a0d48..204af975 100644
--- a/registry/components/example/scroll-based-velocity-demo.tsx
+++ b/registry/default/example/scroll-based-velocity-demo.tsx
@@ -1,4 +1,4 @@
-import { VelocityScroll } from "@/components/magicui/scroll-based-velocity";
+import { VelocityScroll } from "@/registry/default/magicui/scroll-based-velocity";
export default function ScrollBasedVelocityDemo() {
return (
diff --git a/registry/components/example/shimmer-button-demo.tsx b/registry/default/example/shimmer-button-demo.tsx
similarity index 71%
rename from registry/components/example/shimmer-button-demo.tsx
rename to registry/default/example/shimmer-button-demo.tsx
index 2a509bdf..46de4d80 100644
--- a/registry/components/example/shimmer-button-demo.tsx
+++ b/registry/default/example/shimmer-button-demo.tsx
@@ -1,8 +1,8 @@
-import ShimmerButton from "@/components/magicui/shimmer-button";
+import ShimmerButton from "@/registry/default/magicui/shimmer-button";
export default function ShimmerButtonDemo() {
return (
- <div className="z-10 flex min-h-[16rem] items-center justify-center">
+ <div className="z-10 flex min-h-64 items-center justify-center">
<ShimmerButton className="shadow-2xl">
<span className="whitespace-pre-wrap text-center text-sm font-medium leading-none tracking-tight text-white dark:from-white dark:to-slate-900/10 lg:text-lg">
Shimmer Button
diff --git a/registry/components/example/shine-border-demo-2.tsx b/registry/default/example/shine-border-demo-2.tsx
similarity index 82%
rename from registry/components/example/shine-border-demo-2.tsx
rename to registry/default/example/shine-border-demo-2.tsx
index 8d2c3807..b3313543 100644
--- a/registry/components/example/shine-border-demo-2.tsx
+++ b/registry/default/example/shine-border-demo-2.tsx
@@ -1,6 +1,6 @@
import { useTheme } from "next-themes";
-import ShineBorder from "@/components/magicui/shine-border";
+import ShineBorder from "@/registry/default/magicui/shine-border";
export default function ShineBorderDemo() {
const theme = useTheme();
diff --git a/registry/components/example/shine-border-demo.tsx b/registry/default/example/shine-border-demo.tsx
similarity index 89%
rename from registry/components/example/shine-border-demo.tsx
rename to registry/default/example/shine-border-demo.tsx
index dcc24244..2af53c1b 100644
--- a/registry/components/example/shine-border-demo.tsx
+++ b/registry/default/example/shine-border-demo.tsx
@@ -1,4 +1,4 @@
-import ShineBorder from "@/components/magicui/shine-border";
+import ShineBorder from "@/registry/default/magicui/shine-border";
export default function ShineBorderDemo() {
return (
diff --git a/registry/components/example/shiny-button-demo.tsx b/registry/default/example/shiny-button-demo.tsx
similarity index 59%
rename from registry/components/example/shiny-button-demo.tsx
rename to registry/default/example/shiny-button-demo.tsx
index 7e3eb0ec..a63f9459 100644
--- a/registry/components/example/shiny-button-demo.tsx
+++ b/registry/default/example/shiny-button-demo.tsx
@@ -1,4 +1,4 @@
-import ShinyButton from "@/components/magicui/shiny-button";
+import ShinyButton from "@/registry/default/magicui/shiny-button";
export default function ShinyButtonDemo() {
return <ShinyButton>Shiny Button</ShinyButton>;
diff --git a/registry/default/example/sparkles-text-demo.tsx b/registry/default/example/sparkles-text-demo.tsx
new file mode 100644
index 00000000..57dbd9be
--- /dev/null
+++ b/registry/default/example/sparkles-text-demo.tsx
@@ -0,0 +1,5 @@
+import SparklesText from "@/registry/default/magicui/sparkles-text";
+
+export default function SparklesTextDemo() {
+ return <SparklesText text="Magic UI" />;
+}
diff --git a/registry/default/example/text-reveal-demo.tsx b/registry/default/example/text-reveal-demo.tsx
new file mode 100644
index 00000000..bef4f001
--- /dev/null
+++ b/registry/default/example/text-reveal-demo.tsx
@@ -0,0 +1,9 @@
+import TextReveal from "@/registry/default/magicui/text-reveal";
+
+export default function TextRevealDemo() {
+ return (
+ <div className="z-10 flex min-h-64 items-center justify-center rounded-lg border bg-white dark:bg-black">
+ <TextReveal text="Magic UI will change the way you design." />
+ </div>
+ );
+}
diff --git a/registry/components/example/tweet-card-demo.tsx b/registry/default/example/tweet-card-demo.tsx
similarity index 59%
rename from registry/components/example/tweet-card-demo.tsx
rename to registry/default/example/tweet-card-demo.tsx
index 09f5aa3f..c6223c0e 100644
--- a/registry/components/example/tweet-card-demo.tsx
+++ b/registry/default/example/tweet-card-demo.tsx
@@ -1,9 +1,9 @@
-import ClientTweetCard from "@/components/magicui/client-tweet-card";
+import ClientTweetCard from "@/registry/default/magicui/client-tweet-card";
/**
* <TweetCard /> (Server Side Only)
* <ClientTweetCard /> (Client Side Only)
*/
-export default async function TweetDemo() {
+export default function TweetDemo() {
return <ClientTweetCard id="1668408059125702661" className="shadow-2xl" />;
}
diff --git a/registry/components/example/tweet-card-images.tsx b/registry/default/example/tweet-card-images.tsx
similarity index 62%
rename from registry/components/example/tweet-card-images.tsx
rename to registry/default/example/tweet-card-images.tsx
index 111d0af2..1ee4a8bd 100644
--- a/registry/components/example/tweet-card-images.tsx
+++ b/registry/default/example/tweet-card-images.tsx
@@ -1,4 +1,4 @@
-import ClientTweetCard from "@/components/magicui/client-tweet-card";
+import ClientTweetCard from "@/registry/default/magicui/client-tweet-card";
export default async function TweetImages() {
return <ClientTweetCard id="1678577280489234432" className="shadow-2xl" />;
diff --git a/registry/default/example/tweet-card-meta-preview.tsx b/registry/default/example/tweet-card-meta-preview.tsx
new file mode 100644
index 00000000..3b87e30f
--- /dev/null
+++ b/registry/default/example/tweet-card-meta-preview.tsx
@@ -0,0 +1,5 @@
+import ClientTweetCard from "@/registry/default/magicui/client-tweet-card";
+
+export default function TweetMetaPreview() {
+ return <ClientTweetCard id="1675849118445436929" className="shadow-2xl" />;
+}
diff --git a/registry/components/example/typing-animation-demo.tsx b/registry/default/example/typing-animation-demo.tsx
similarity index 53%
rename from registry/components/example/typing-animation-demo.tsx
rename to registry/default/example/typing-animation-demo.tsx
index c5d8bc54..dc41a7b5 100644
--- a/registry/components/example/typing-animation-demo.tsx
+++ b/registry/default/example/typing-animation-demo.tsx
@@ -1,6 +1,6 @@
-import TypingAnimation from "@/components/magicui/typing-animation";
+import TypingAnimation from "@/registry/default/magicui/typing-animation";
-export default async function TextRevealDemo() {
+export default function TypingAnimationDemo() {
return (
<TypingAnimation
className="text-4xl font-bold text-black dark:text-white"
diff --git a/registry/components/example/wavy-dot-pattern-demo.tsx b/registry/default/example/wavy-dot-pattern-demo.tsx
similarity index 61%
rename from registry/components/example/wavy-dot-pattern-demo.tsx
rename to registry/default/example/wavy-dot-pattern-demo.tsx
index e6970a38..1e558aac 100644
--- a/registry/components/example/wavy-dot-pattern-demo.tsx
+++ b/registry/default/example/wavy-dot-pattern-demo.tsx
@@ -1,8 +1,8 @@
-import WavyDotPattern from "@/components/magicui/wavy-dot-pattern";
+import WavyDotPattern from "@/registry/default/magicui/wavy-dot-pattern";
export default function WavyDotPatternDemo() {
return (
- <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl ">
+ <div className="relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl ">
<p className="z-10 whitespace-pre-wrap text-center text-4xl font-semibold tracking-tighter text-black dark:text-white">
Wavy Dot Pattern
</p>
diff --git a/registry/components/example/word-fade-in-demo.tsx b/registry/default/example/word-fade-in-demo.tsx
similarity index 58%
rename from registry/components/example/word-fade-in-demo.tsx
rename to registry/default/example/word-fade-in-demo.tsx
index 436a29aa..c2ec713a 100644
--- a/registry/components/example/word-fade-in-demo.tsx
+++ b/registry/default/example/word-fade-in-demo.tsx
@@ -1,4 +1,4 @@
-import WordFadeIn from "@/components/magicui/word-fade-in";
+import WordFadeIn from "@/registry/default/magicui/word-fade-in";
export default function WordFadeInDemo() {
return <WordFadeIn words="Word Fade In" />;
diff --git a/registry/components/example/word-pull-up-demo.tsx b/registry/default/example/word-pull-up-demo.tsx
similarity index 62%
rename from registry/components/example/word-pull-up-demo.tsx
rename to registry/default/example/word-pull-up-demo.tsx
index fa7dab3d..6e9c2a88 100644
--- a/registry/components/example/word-pull-up-demo.tsx
+++ b/registry/default/example/word-pull-up-demo.tsx
@@ -1,6 +1,6 @@
-import WordPullUp from "@/components/magicui/word-pull-up";
+import WordPullUp from "@/registry/default/magicui/word-pull-up";
-export default async function WordPullUpDemo() {
+export default function WordPullUpDemo() {
return (
<WordPullUp
className="text-4xl font-bold tracking-[-0.02em] text-black dark:text-white md:text-7xl md:leading-[5rem]"
diff --git a/registry/components/example/word-rotate-demo.tsx b/registry/default/example/word-rotate-demo.tsx
similarity index 56%
rename from registry/components/example/word-rotate-demo.tsx
rename to registry/default/example/word-rotate-demo.tsx
index 3bad3329..011394e4 100644
--- a/registry/components/example/word-rotate-demo.tsx
+++ b/registry/default/example/word-rotate-demo.tsx
@@ -1,6 +1,6 @@
-import WordRotate from "@/components/magicui/word-rotate";
+import WordRotate from "@/registry/default/magicui/word-rotate";
-export default async function WordRotateDemo() {
+export default function WordRotateDemo() {
return (
<WordRotate
className="text-4xl font-bold text-black dark:text-white"
diff --git a/registry/default/lib/utils.ts b/registry/default/lib/utils.ts
new file mode 100644
index 00000000..a5ef1935
--- /dev/null
+++ b/registry/default/lib/utils.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
diff --git a/registry/components/magicui/animated-beam.tsx b/registry/default/magicui/animated-beam.tsx
similarity index 100%
rename from registry/components/magicui/animated-beam.tsx
rename to registry/default/magicui/animated-beam.tsx
diff --git a/registry/components/magicui/animated-circular-progress-bar.tsx b/registry/default/magicui/animated-circular-progress-bar.tsx
similarity index 100%
rename from registry/components/magicui/animated-circular-progress-bar.tsx
rename to registry/default/magicui/animated-circular-progress-bar.tsx
diff --git a/registry/components/magicui/animated-gradient-text.tsx b/registry/default/magicui/animated-gradient-text.tsx
similarity index 100%
rename from registry/components/magicui/animated-gradient-text.tsx
rename to registry/default/magicui/animated-gradient-text.tsx
diff --git a/registry/components/magicui/animated-grid-pattern.tsx b/registry/default/magicui/animated-grid-pattern.tsx
similarity index 100%
rename from registry/components/magicui/animated-grid-pattern.tsx
rename to registry/default/magicui/animated-grid-pattern.tsx
diff --git a/registry/components/magicui/animated-list.tsx b/registry/default/magicui/animated-list.tsx
similarity index 100%
rename from registry/components/magicui/animated-list.tsx
rename to registry/default/magicui/animated-list.tsx
diff --git a/registry/components/magicui/animated-shiny-text.tsx b/registry/default/magicui/animated-shiny-text.tsx
similarity index 69%
rename from registry/components/magicui/animated-shiny-text.tsx
rename to registry/default/magicui/animated-shiny-text.tsx
index 2332e62f..f55fd208 100644
--- a/registry/components/magicui/animated-shiny-text.tsx
+++ b/registry/default/magicui/animated-shiny-text.tsx
@@ -17,16 +17,16 @@ const AnimatedShinyText: FC<AnimatedShinyTextProps> = ({
<p
style={
{
- "--shimmer-width": `${shimmerWidth}px`,
+ "--shiny-width": `${shimmerWidth}px`,
} as CSSProperties
}
className={cn(
"mx-auto max-w-md text-neutral-600/70 dark:text-neutral-400/70",
- // Shimmer effect
- "animate-shimmer bg-clip-text bg-no-repeat [background-position:0_0] [background-size:var(--shimmer-width)_100%] [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]",
+ // Shine effect
+ "animate-shiny-text bg-clip-text bg-no-repeat [background-position:0_0] [background-size:var(--shiny-width)_100%] [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]",
- // Shimmer gradient
+ // Shine gradient
"bg-gradient-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80",
className,
diff --git a/registry/components/magicui/animated-subscribe-button.tsx b/registry/default/magicui/animated-subscribe-button.tsx
similarity index 100%
rename from registry/components/magicui/animated-subscribe-button.tsx
rename to registry/default/magicui/animated-subscribe-button.tsx
diff --git a/registry/components/magicui/avatar-circles.tsx b/registry/default/magicui/avatar-circles.tsx
similarity index 100%
rename from registry/components/magicui/avatar-circles.tsx
rename to registry/default/magicui/avatar-circles.tsx
diff --git a/registry/components/magicui/bento-grid.tsx b/registry/default/magicui/bento-grid.tsx
similarity index 100%
rename from registry/components/magicui/bento-grid.tsx
rename to registry/default/magicui/bento-grid.tsx
diff --git a/registry/components/magicui/blur-fade.tsx b/registry/default/magicui/blur-fade.tsx
similarity index 100%
rename from registry/components/magicui/blur-fade.tsx
rename to registry/default/magicui/blur-fade.tsx
diff --git a/registry/components/magicui/blur-in.tsx b/registry/default/magicui/blur-in.tsx
similarity index 100%
rename from registry/components/magicui/blur-in.tsx
rename to registry/default/magicui/blur-in.tsx
diff --git a/registry/components/magicui/border-beam.tsx b/registry/default/magicui/border-beam.tsx
similarity index 100%
rename from registry/components/magicui/border-beam.tsx
rename to registry/default/magicui/border-beam.tsx
diff --git a/registry/components/magicui/box-reveal.tsx b/registry/default/magicui/box-reveal.tsx
similarity index 100%
rename from registry/components/magicui/box-reveal.tsx
rename to registry/default/magicui/box-reveal.tsx
diff --git a/registry/components/magicui/client-tweet-card.tsx b/registry/default/magicui/client-tweet-card.tsx
similarity index 93%
rename from registry/components/magicui/client-tweet-card.tsx
rename to registry/default/magicui/client-tweet-card.tsx
index 7e44d23e..a7a3d4d4 100644
--- a/registry/components/magicui/client-tweet-card.tsx
+++ b/registry/default/magicui/client-tweet-card.tsx
@@ -6,7 +6,7 @@ import {
MagicTweet,
TweetNotFound,
TweetSkeleton,
-} from "@/components/magicui/tweet-card";
+} from "@/registry/default/magicui/tweet-card";
const ClientTweetCard = ({
id,
diff --git a/registry/components/magicui/confetti-button.tsx b/registry/default/magicui/confetti-button.tsx
similarity index 100%
rename from registry/components/magicui/confetti-button.tsx
rename to registry/default/magicui/confetti-button.tsx
diff --git a/registry/components/magicui/confetti.tsx b/registry/default/magicui/confetti.tsx
similarity index 100%
rename from registry/components/magicui/confetti.tsx
rename to registry/default/magicui/confetti.tsx
diff --git a/registry/components/magicui/cool-mode.tsx b/registry/default/magicui/cool-mode.tsx
similarity index 100%
rename from registry/components/magicui/cool-mode.tsx
rename to registry/default/magicui/cool-mode.tsx
diff --git a/registry/components/magicui/dock.tsx b/registry/default/magicui/dock.tsx
similarity index 100%
rename from registry/components/magicui/dock.tsx
rename to registry/default/magicui/dock.tsx
diff --git a/registry/components/magicui/dot-pattern.tsx b/registry/default/magicui/dot-pattern.tsx
similarity index 100%
rename from registry/components/magicui/dot-pattern.tsx
rename to registry/default/magicui/dot-pattern.tsx
diff --git a/registry/components/magicui/fade-text.tsx b/registry/default/magicui/fade-text.tsx
similarity index 100%
rename from registry/components/magicui/fade-text.tsx
rename to registry/default/magicui/fade-text.tsx
diff --git a/registry/components/magicui/file-tree.tsx b/registry/default/magicui/file-tree.tsx
similarity index 98%
rename from registry/components/magicui/file-tree.tsx
rename to registry/default/magicui/file-tree.tsx
index 06734286..2a95a62b 100644
--- a/registry/components/magicui/file-tree.tsx
+++ b/registry/default/magicui/file-tree.tsx
@@ -257,8 +257,8 @@ const Folder = forwardRef<
onClick={() => handleExpand(value)}
>
{expandedItems?.includes(value)
- ? openIcon ?? <FolderOpenIcon className="size-4" />
- : closeIcon ?? <FolderIcon className="size-4" />}
+ ? (openIcon ?? <FolderOpenIcon className="size-4" />)
+ : (closeIcon ?? <FolderIcon className="size-4" />)}
<span>{element}</span>
</AccordionPrimitive.Trigger>
<AccordionPrimitive.Content className="text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down relative overflow-hidden h-full">
diff --git a/registry/components/magicui/flickering-grid.tsx b/registry/default/magicui/flickering-grid.tsx
similarity index 100%
rename from registry/components/magicui/flickering-grid.tsx
rename to registry/default/magicui/flickering-grid.tsx
diff --git a/registry/components/magicui/flip-text.tsx b/registry/default/magicui/flip-text.tsx
similarity index 100%
rename from registry/components/magicui/flip-text.tsx
rename to registry/default/magicui/flip-text.tsx
diff --git a/registry/components/magicui/globe.tsx b/registry/default/magicui/globe.tsx
similarity index 100%
rename from registry/components/magicui/globe.tsx
rename to registry/default/magicui/globe.tsx
diff --git a/registry/components/magicui/gradual-spacing.tsx b/registry/default/magicui/gradual-spacing.tsx
similarity index 100%
rename from registry/components/magicui/gradual-spacing.tsx
rename to registry/default/magicui/gradual-spacing.tsx
diff --git a/registry/components/magicui/grid-pattern.tsx b/registry/default/magicui/grid-pattern.tsx
similarity index 100%
rename from registry/components/magicui/grid-pattern.tsx
rename to registry/default/magicui/grid-pattern.tsx
diff --git a/registry/components/magicui/hero-video-dialog.tsx b/registry/default/magicui/hero-video-dialog.tsx
similarity index 100%
rename from registry/components/magicui/hero-video-dialog.tsx
rename to registry/default/magicui/hero-video-dialog.tsx
diff --git a/registry/components/magicui/hyper-text.tsx b/registry/default/magicui/hyper-text.tsx
similarity index 100%
rename from registry/components/magicui/hyper-text.tsx
rename to registry/default/magicui/hyper-text.tsx
diff --git a/registry/components/magicui/icon-cloud.tsx b/registry/default/magicui/icon-cloud.tsx
similarity index 100%
rename from registry/components/magicui/icon-cloud.tsx
rename to registry/default/magicui/icon-cloud.tsx
diff --git a/registry/components/magicui/iphone-15-pro.tsx b/registry/default/magicui/iphone-15-pro.tsx
similarity index 100%
rename from registry/components/magicui/iphone-15-pro.tsx
rename to registry/default/magicui/iphone-15-pro.tsx
diff --git a/registry/components/magicui/letter-pullup.tsx b/registry/default/magicui/letter-pullup.tsx
similarity index 100%
rename from registry/components/magicui/letter-pullup.tsx
rename to registry/default/magicui/letter-pullup.tsx
diff --git a/registry/components/magicui/linear-mask.tsx b/registry/default/magicui/linear-mask.tsx
similarity index 100%
rename from registry/components/magicui/linear-mask.tsx
rename to registry/default/magicui/linear-mask.tsx
diff --git a/registry/components/magicui/magic-card.tsx b/registry/default/magicui/magic-card.tsx
similarity index 100%
rename from registry/components/magicui/magic-card.tsx
rename to registry/default/magicui/magic-card.tsx
diff --git a/registry/components/magicui/marquee.tsx b/registry/default/magicui/marquee.tsx
similarity index 100%
rename from registry/components/magicui/marquee.tsx
rename to registry/default/magicui/marquee.tsx
diff --git a/registry/components/magicui/meteors.tsx b/registry/default/magicui/meteors.tsx
similarity index 100%
rename from registry/components/magicui/meteors.tsx
rename to registry/default/magicui/meteors.tsx
diff --git a/registry/components/magicui/neon-gradient-card.tsx b/registry/default/magicui/neon-gradient-card.tsx
similarity index 93%
rename from registry/components/magicui/neon-gradient-card.tsx
rename to registry/default/magicui/neon-gradient-card.tsx
index aefc3f10..31927891 100644
--- a/registry/components/magicui/neon-gradient-card.tsx
+++ b/registry/default/magicui/neon-gradient-card.tsx
@@ -123,22 +123,22 @@ const NeonGradientCard: React.FC<NeonGradientCardProps> = ({
} as CSSProperties
}
className={cn(
- "relative z-10 h-full w-full rounded-[var(--border-radius)]",
+ "relative z-10 size-full rounded-[var(--border-radius)]",
className,
)}
{...props}
>
<div
className={cn(
- "relative h-full min-h-[inherit] w-full rounded-[var(--card-content-radius)] bg-gray-100 p-6",
+ "relative size-full min-h-[inherit] rounded-[var(--card-content-radius)] bg-gray-100 p-6",
"before:absolute before:-left-[var(--border-size)] before:-top-[var(--border-size)] before:-z-10 before:block",
"before:h-[var(--pseudo-element-height)] before:w-[var(--pseudo-element-width)] before:rounded-[var(--border-radius)] before:content-['']",
"before:bg-[linear-gradient(0deg,var(--neon-first-color),var(--neon-second-color))] before:bg-[length:100%_200%]",
- "before:animate-backgroundPositionSpin",
+ "before:animate-background-position-spin",
"after:absolute after:-left-[var(--border-size)] after:-top-[var(--border-size)] after:-z-10 after:block",
"after:h-[var(--pseudo-element-height)] after:w-[var(--pseudo-element-width)] after:rounded-[var(--border-radius)] after:blur-[var(--after-blur)] after:content-['']",
"after:bg-[linear-gradient(0deg,var(--neon-first-color),var(--neon-second-color))] after:bg-[length:100%_200%] after:opacity-80",
- "after:animate-backgroundPositionSpin",
+ "after:animate-background-position-spin",
"dark:bg-neutral-900",
)}
>
diff --git a/registry/components/magicui/number-ticker.tsx b/registry/default/magicui/number-ticker.tsx
similarity index 100%
rename from registry/components/magicui/number-ticker.tsx
rename to registry/default/magicui/number-ticker.tsx
diff --git a/registry/components/magicui/orbiting-circles.tsx b/registry/default/magicui/orbiting-circles.tsx
similarity index 100%
rename from registry/components/magicui/orbiting-circles.tsx
rename to registry/default/magicui/orbiting-circles.tsx
diff --git a/registry/components/magicui/particles.tsx b/registry/default/magicui/particles.tsx
similarity index 100%
rename from registry/components/magicui/particles.tsx
rename to registry/default/magicui/particles.tsx
diff --git a/registry/components/magicui/pulsating-button.tsx b/registry/default/magicui/pulsating-button.tsx
similarity index 100%
rename from registry/components/magicui/pulsating-button.tsx
rename to registry/default/magicui/pulsating-button.tsx
diff --git a/registry/components/magicui/rainbow-button.tsx b/registry/default/magicui/rainbow-button.tsx
similarity index 100%
rename from registry/components/magicui/rainbow-button.tsx
rename to registry/default/magicui/rainbow-button.tsx
diff --git a/registry/components/magicui/retro-grid.tsx b/registry/default/magicui/retro-grid.tsx
similarity index 100%
rename from registry/components/magicui/retro-grid.tsx
rename to registry/default/magicui/retro-grid.tsx
diff --git a/registry/components/magicui/ripple.tsx b/registry/default/magicui/ripple.tsx
similarity index 100%
rename from registry/components/magicui/ripple.tsx
rename to registry/default/magicui/ripple.tsx
diff --git a/registry/components/magicui/safari.tsx b/registry/default/magicui/safari.tsx
similarity index 100%
rename from registry/components/magicui/safari.tsx
rename to registry/default/magicui/safari.tsx
diff --git a/registry/components/magicui/scroll-based-velocity.tsx b/registry/default/magicui/scroll-based-velocity.tsx
similarity index 100%
rename from registry/components/magicui/scroll-based-velocity.tsx
rename to registry/default/magicui/scroll-based-velocity.tsx
diff --git a/registry/components/magicui/shimmer-button.tsx b/registry/default/magicui/shimmer-button.tsx
similarity index 84%
rename from registry/components/magicui/shimmer-button.tsx
rename to registry/default/magicui/shimmer-button.tsx
index 9699dcd5..b49dcdd4 100644
--- a/registry/components/magicui/shimmer-button.tsx
+++ b/registry/default/magicui/shimmer-button.tsx
@@ -41,7 +41,7 @@ const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>(
}
className={cn(
"group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border border-white/10 px-6 py-3 text-white [background:var(--bg)] [border-radius:var(--radius)] dark:text-black",
- "transform-gpu transition-transform duration-300 ease-in-out active:translate-y-[1px]",
+ "transform-gpu transition-transform duration-300 ease-in-out active:translate-y-px",
className,
)}
ref={ref}
@@ -55,9 +55,9 @@ const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>(
)}
>
{/* spark */}
- <div className="absolute inset-0 h-[100cqh] animate-slide [aspect-ratio:1] [border-radius:0] [mask:none]">
+ <div className="absolute inset-0 h-[100cqh] animate-shimmer-slide [aspect-ratio:1] [border-radius:0] [mask:none]">
{/* spark before */}
- <div className="animate-spin-around absolute inset-[-100%] w-auto rotate-0 [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))] [translate:0_0]" />
+ <div className="animate-spin-around absolute -inset-full w-auto rotate-0 [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))] [translate:0_0]" />
</div>
</div>
{children}
@@ -65,7 +65,7 @@ const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>(
{/* Highlight */}
<div
className={cn(
- "insert-0 absolute h-full w-full",
+ "insert-0 absolute size-full",
"rounded-2xl px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#ffffff1f]",
diff --git a/registry/components/magicui/shine-border.tsx b/registry/default/magicui/shine-border.tsx
similarity index 94%
rename from registry/components/magicui/shine-border.tsx
rename to registry/default/magicui/shine-border.tsx
index 2b5c240d..e1964596 100644
--- a/registry/components/magicui/shine-border.tsx
+++ b/registry/default/magicui/shine-border.tsx
@@ -48,12 +48,12 @@ export default function ShineBorder({
{
"--border-width": `${borderWidth}px`,
"--border-radius": `${borderRadius}px`,
- "--shine-pulse-duration": `${duration}s`,
+ "--duration": `${duration}s`,
"--mask-linear-gradient": `linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,
"--background-radial-gradient": `radial-gradient(transparent,transparent, ${color instanceof Array ? color.join(",") : color},transparent,transparent)`,
} as React.CSSProperties
}
- className={`before:bg-shine-size before:absolute before:inset-0 before:aspect-square before:size-full before:rounded-[--border-radius] before:p-[--border-width] before:will-change-[background-position] before:content-[""] before:![-webkit-mask-composite:xor] before:![mask-composite:exclude] before:[background-image:--background-radial-gradient] before:[background-size:300%_300%] before:[mask:--mask-linear-gradient] motion-safe:before:animate-[shine-pulse_var(--shine-pulse-duration)_infinite_linear]`}
+ className={`before:bg-shine-size before:absolute before:inset-0 before:aspect-square before:size-full before:rounded-[--border-radius] before:p-[--border-width] before:will-change-[background-position] before:content-[""] before:![-webkit-mask-composite:xor] before:![mask-composite:exclude] before:[background-image:--background-radial-gradient] before:[background-size:300%_300%] before:[mask:--mask-linear-gradient] motion-safe:before:animate-shine`}
></div>
{children}
</div>
diff --git a/registry/components/magicui/shiny-button.tsx b/registry/default/magicui/shiny-button.tsx
similarity index 100%
rename from registry/components/magicui/shiny-button.tsx
rename to registry/default/magicui/shiny-button.tsx
diff --git a/registry/components/magicui/sparkles-text.tsx b/registry/default/magicui/sparkles-text.tsx
similarity index 100%
rename from registry/components/magicui/sparkles-text.tsx
rename to registry/default/magicui/sparkles-text.tsx
diff --git a/registry/components/magicui/text-reveal.tsx b/registry/default/magicui/text-reveal.tsx
similarity index 100%
rename from registry/components/magicui/text-reveal.tsx
rename to registry/default/magicui/text-reveal.tsx
diff --git a/registry/components/magicui/tweet-card.tsx b/registry/default/magicui/tweet-card.tsx
similarity index 92%
rename from registry/components/magicui/tweet-card.tsx
rename to registry/default/magicui/tweet-card.tsx
index 4f10108d..39ee357f 100644
--- a/registry/components/magicui/tweet-card.tsx
+++ b/registry/default/magicui/tweet-card.tsx
@@ -55,10 +55,7 @@ const Skeleton = ({
...props
}: React.HTMLAttributes<HTMLDivElement>) => {
return (
- <div
- className={cn("animate-pulse rounded-md bg-primary/10", className)}
- {...props}
- />
+ <div className={cn("rounded-md bg-primary/10", className)} {...props} />
);
};
@@ -71,13 +68,13 @@ export const TweetSkeleton = ({
}) => (
<div
className={cn(
- "flex h-full max-h-max w-full min-w-[18rem] flex-col gap-2 rounded-lg border p-4",
+ "flex size-full max-h-max min-w-72 flex-col gap-2 rounded-lg border p-4",
className,
)}
{...props}
>
<div className="flex flex-row gap-2">
- <Skeleton className="h-10 w-10 shrink-0 rounded-full" />
+ <Skeleton className="size-10 shrink-0 rounded-full" />
<Skeleton className="h-10 w-full" />
</div>
<Skeleton className="h-20 w-full" />
@@ -93,7 +90,7 @@ export const TweetNotFound = ({
}) => (
<div
className={cn(
- "flex h-full w-full flex-col items-center justify-center gap-2 rounded-lg border p-4",
+ "flex size-full flex-col items-center justify-center gap-2 rounded-lg border p-4",
className,
)}
{...props}
@@ -125,7 +122,7 @@ export const TweetHeader = ({ tweet }: { tweet: EnrichedTweet }) => (
{truncate(tweet.user.name, 20)}
{tweet.user.verified ||
(tweet.user.is_blue_verified && (
- <Verified className="ml-1 inline h-4 w-4 text-blue-500" />
+ <Verified className="ml-1 inline size-4 text-blue-500" />
))}
</a>
<div className="flex items-center space-x-1">
@@ -142,7 +139,7 @@ export const TweetHeader = ({ tweet }: { tweet: EnrichedTweet }) => (
</div>
<a href={tweet.url} target="_blank" rel="noreferrer">
<span className="sr-only">Link to tweet</span>
- <Twitter className="h-5 w-5 items-start text-[#3BA9EE] transition-all ease-in-out hover:scale-105" />
+ <Twitter className="size-5 items-start text-[#3BA9EE] transition-all ease-in-out hover:scale-105" />
</a>
</div>
);
@@ -236,7 +233,7 @@ export const MagicTweet = ({
return (
<div
className={cn(
- "relative flex h-full w-full max-w-[32rem] flex-col gap-2 overflow-hidden rounded-lg border p-4 backdrop-blur-md",
+ "relative flex size-full max-w-lg flex-col gap-2 overflow-hidden rounded-lg border p-4 backdrop-blur-md",
className,
)}
{...props}
diff --git a/registry/components/magicui/typing-animation.tsx b/registry/default/magicui/typing-animation.tsx
similarity index 100%
rename from registry/components/magicui/typing-animation.tsx
rename to registry/default/magicui/typing-animation.tsx
diff --git a/registry/components/magicui/wavy-dot-pattern.tsx b/registry/default/magicui/wavy-dot-pattern.tsx
similarity index 100%
rename from registry/components/magicui/wavy-dot-pattern.tsx
rename to registry/default/magicui/wavy-dot-pattern.tsx
diff --git a/registry/components/magicui/word-fade-in.tsx b/registry/default/magicui/word-fade-in.tsx
similarity index 100%
rename from registry/components/magicui/word-fade-in.tsx
rename to registry/default/magicui/word-fade-in.tsx
diff --git a/registry/components/magicui/word-pull-up.tsx b/registry/default/magicui/word-pull-up.tsx
similarity index 100%
rename from registry/components/magicui/word-pull-up.tsx
rename to registry/default/magicui/word-pull-up.tsx
diff --git a/registry/components/magicui/word-rotate.tsx b/registry/default/magicui/word-rotate.tsx
similarity index 100%
rename from registry/components/magicui/word-rotate.tsx
rename to registry/default/magicui/word-rotate.tsx
diff --git a/registry/index.tsx b/registry/index.tsx
index aad90955..79c1667e 100644
--- a/registry/index.tsx
+++ b/registry/index.tsx
@@ -1,1037 +1,16 @@
-import * as React from "react";
+import { blocks } from "./registry-blocks";
+import { examples } from "./registry-examples";
+import { hooks } from "./registry-hooks";
+import { lib } from "./registry-lib";
+import { themes } from "./registry-themes";
+import { ui } from "./registry-ui";
+import { Registry } from "./schema";
-import { Registry } from "@/registry/schema";
-
-const ui: Registry = {
- "magic-card": {
- name: "magic-card",
- type: "components:magicui",
- files: ["registry/components/magicui/magic-card.tsx"],
- },
- "neon-gradient-card": {
- name: "neon-gradient-card",
- type: "components:magicui",
- files: ["registry/components/magicui/neon-gradient-card.tsx"],
- },
- meteors: {
- name: "meteors",
- type: "components:magicui",
- files: ["registry/components/magicui/meteors.tsx"],
- },
- "grid-pattern": {
- name: "grid-pattern",
- type: "components:magicui",
- files: ["registry/components/magicui/grid-pattern.tsx"],
- },
- "dot-pattern": {
- name: "dot-pattern",
- type: "components:magicui",
- files: ["registry/components/magicui/dot-pattern.tsx"],
- },
- "flickering-grid": {
- name: "flickering-grid",
- type: "components:magicui",
- files: ["registry/components/magicui/flickering-grid.tsx"],
- },
- "hero-video-dialog": {
- name: "hero-video-dialog",
- type: "components:magicui",
- files: ["registry/components/magicui/hero-video-dialog.tsx"],
- },
- marquee: {
- name: "marquee",
- type: "components:magicui",
- files: ["registry/components/magicui/marquee.tsx"],
- },
- globe: {
- name: "globe",
- type: "components:magicui",
- dependencies: ["cobe", "react-spring"],
- files: ["registry/components/magicui/globe.tsx"],
- },
- "shimmer-button": {
- name: "shimmer-button",
- type: "components:magicui",
- files: ["registry/components/magicui/shimmer-button.tsx"],
- },
- "tweet-card": {
- name: "tweet-card",
- type: "components:magicui",
- dependencies: ["react-tweet"],
- files: ["registry/components/magicui/tweet-card.tsx"],
- },
- "client-tweet-card": {
- name: "client-tweet-card",
- type: "components:magicui",
- dependencies: ["react-tweet"],
- files: ["registry/components/magicui/client-tweet-card.tsx"],
- },
- "bento-grid": {
- name: "bento-grid",
- type: "components:magicui",
- dependencies: ["@radix-ui/react-icons"],
- registryDependencies: ["shadcn:button"],
- files: ["registry/components/magicui/bento-grid.tsx"],
- },
- particles: {
- name: "particles",
- type: "components:magicui",
- files: ["registry/components/magicui/particles.tsx"],
- },
- "number-ticker": {
- name: "number-ticker",
- type: "components:magicui",
- files: ["registry/components/magicui/number-ticker.tsx"],
- },
- ripple: {
- name: "ripple",
- type: "components:magicui",
- files: ["registry/components/magicui/ripple.tsx"],
- },
- "retro-grid": {
- name: "retro-grid",
- type: "components:magicui",
- files: ["registry/components/magicui/retro-grid.tsx"],
- },
- "animated-list": {
- name: "animated-list",
- type: "components:magicui",
- files: ["registry/components/magicui/animated-list.tsx"],
- },
- "animated-shiny-text": {
- name: "animated-shiny-text",
- type: "components:magicui",
- files: ["registry/components/magicui/animated-shiny-text.tsx"],
- },
- "animated-grid-pattern": {
- name: "animated-grid-pattern",
- type: "components:magicui",
- files: ["registry/components/magicui/animated-grid-pattern.tsx"],
- },
- "border-beam": {
- name: "border-beam",
- type: "components:magicui",
- files: ["registry/components/magicui/border-beam.tsx"],
- },
- "animated-beam": {
- name: "animated-beam",
- type: "components:magicui",
- files: ["registry/components/magicui/animated-beam.tsx"],
- },
- "text-reveal": {
- name: "text-reveal",
- type: "components:magicui",
- files: ["registry/components/magicui/text-reveal.tsx"],
- },
- "hyper-text": {
- name: "hyper-text",
- type: "components:magicui",
- files: ["registry/components/magicui/hyper-text.tsx"],
- },
- "animated-gradient-text": {
- name: "animated-gradient-text",
- type: "components:magicui",
- files: ["registry/components/magicui/animated-gradient-text.tsx"],
- },
- "orbiting-circles": {
- name: "orbiting-circles",
- type: "components:magicui",
- files: ["registry/components/magicui/orbiting-circles.tsx"],
- },
- dock: {
- name: "dock",
- type: "components:magicui",
- files: ["registry/components/magicui/dock.tsx"],
- },
- "word-rotate": {
- name: "word-rotate",
- type: "components:magicui",
- files: ["registry/components/magicui/word-rotate.tsx"],
- },
- "avatar-circles": {
- name: "avatar-circles",
- type: "components:magicui",
- files: ["registry/components/magicui/avatar-circles.tsx"],
- },
- "word-pull-up": {
- name: "word-pull-up",
- type: "components:magicui",
- files: ["registry/components/magicui/word-pull-up.tsx"],
- },
- "typing-animation": {
- name: "typing-animation",
- type: "components:magicui",
- files: ["registry/components/magicui/typing-animation.tsx"],
- },
- "blur-in": {
- name: "blur-in",
- type: "components:magicui",
- files: ["registry/components/magicui/blur-in.tsx"],
- },
- "letter-pullup": {
- name: "letter-pullup",
- type: "components:magicui",
- files: ["registry/components/magicui/letter-pullup.tsx"],
- },
- "sparkles-text": {
- name: "sparkles-text",
- type: "components:magicui",
- files: ["registry/components/magicui/sparkles-text.tsx"],
- },
- "flip-text": {
- name: "flip-text",
- type: "components:magicui",
- files: ["registry/components/magicui/flip-text.tsx"],
- },
- "icon-cloud": {
- name: "icon-cloud",
- type: "components:magicui",
- dependencies: ["next-themes", "react-icon-cloud"],
- files: ["registry/components/magicui/icon-cloud.tsx"],
- },
- "gradual-spacing": {
- name: "gradual-spacing",
- type: "components:magicui",
- files: ["registry/components/magicui/gradual-spacing.tsx"],
- },
- "word-fade-in": {
- name: "word-fade-in",
- type: "components:magicui",
- files: ["registry/components/magicui/word-fade-in.tsx"],
- },
- "scroll-based-velocity": {
- name: "scroll-based-velocity",
- type: "components:magicui",
- files: ["registry/components/magicui/scroll-based-velocity.tsx"],
- },
- "fade-text": {
- name: "fade-text",
- type: "components:magicui",
- files: ["registry/components/magicui/fade-text.tsx"],
- },
- "shiny-button": {
- name: "shiny-button",
- type: "components:magicui",
- files: ["registry/components/magicui/shiny-button.tsx"],
- },
- "box-reveal": {
- name: "box-reveal",
- type: "components:magicui",
- files: ["registry/components/magicui/box-reveal.tsx"],
- },
- "shine-border": {
- name: "shine-border",
- type: "components:magicui",
- files: ["registry/components/magicui/shine-border.tsx"],
- },
- "animated-circular-progress-bar": {
- name: "animated-circular-progress-bar",
- type: "components:magicui",
- files: ["registry/components/magicui/animated-circular-progress-bar.tsx"],
- },
- confetti: {
- name: "confetti",
- type: "components:magicui",
- dependencies: ["canvas-confetti", "@types/canvas-confetti"],
- files: ["registry/components/magicui/confetti.tsx"],
- },
- "animated-subscribe-button": {
- name: "animated-subscribe-button",
- type: "components:magicui",
- files: ["registry/components/magicui/animated-subscribe-button.tsx"],
- },
- "cool-mode": {
- name: "cool-mode",
- type: "components:magicui",
- files: ["registry/components/magicui/cool-mode.tsx"],
- },
- "pulsating-button": {
- name: "pulsating-button",
- type: "components:magicui",
- files: ["registry/components/magicui/pulsating-button.tsx"],
- },
- "file-tree": {
- name: "file-tree",
- type: "components:magicui",
- files: ["registry/components/magicui/file-tree.tsx"],
- },
- "blur-fade": {
- name: "blur-fade",
- type: "components:magicui",
- files: ["registry/components/magicui/blur-fade.tsx"],
- },
- safari: {
- name: "safari",
- type: "components:magicui",
- files: ["registry/components/magicui/safari.tsx"],
- },
- "iphone-15-pro": {
- name: "iphone-15-pro",
- type: "components:magicui",
- files: ["registry/components/magicui/iphone-15-pro.tsx"],
- },
- "rainbow-button": {
- name: "rainbow-button",
- type: "components:magicui",
- files: ["registry/components/magicui/rainbow-button.tsx"],
- },
-};
-
-const example: Registry = {
- "magic-card-demo": {
- name: "magic-card-demo",
- type: "components:example",
- registryDependencies: ["magic-card"],
- files: ["registry/components/example/magic-card-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/magic-card-demo"),
- ),
- },
- "neon-gradient-card-demo": {
- name: "neon-gradient-card-demo",
- type: "components:example",
- files: ["registry/components/example/neon-gradient-card-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/neon-gradient-card-demo"),
- ),
- },
- "meteors-demo": {
- name: "meteors-demo",
- type: "components:example",
- registryDependencies: ["meteors"],
- files: ["registry/components/example/meteors-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/meteors-demo"),
- ),
- },
- "grid-pattern-demo": {
- name: "grid-pattern-demo",
- type: "components:example",
- registryDependencies: ["grid-pattern"],
- files: ["registry/components/example/grid-pattern-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/grid-pattern-demo"),
- ),
- },
- "grid-pattern-linear-gradient": {
- name: "grid-pattern-linear-gradient",
- type: "components:example",
- registryDependencies: ["grid-pattern"],
- files: ["registry/components/example/grid-pattern-linear-gradient.tsx"],
- component: React.lazy(
- () =>
- import("@/registry/components/example/grid-pattern-linear-gradient"),
- ),
- },
- "grid-pattern-dashed": {
- name: "grid-pattern-dashed",
- type: "components:example",
- registryDependencies: ["grid-pattern"],
- files: ["registry/components/example/grid-pattern-dashed.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/grid-pattern-dashed"),
- ),
- },
- "dot-pattern-demo": {
- name: "dot-pattern-demo",
- type: "components:example",
- registryDependencies: ["dot-pattern"],
- files: ["registry/components/example/dot-pattern-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/dot-pattern-demo"),
- ),
- },
- "dot-pattern-linear-gradient": {
- name: "dot-pattern-linear-gradient",
- type: "components:example",
- registryDependencies: ["dot-pattern"],
- files: ["registry/components/example/dot-pattern-linear-gradient.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/dot-pattern-linear-gradient"),
- ),
- },
- "flickering-grid-demo": {
- name: "flickering-grid-demo",
- type: "components:example",
- files: ["registry/components/example/flickering-grid-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/flickering-grid-demo"),
- ),
- },
- "flickering-grid-rounded-demo": {
- name: "flickering-grid-rounded-demo",
- type: "components:example",
- files: ["registry/components/example/flickering-grid-rounded-demo.tsx"],
- component: React.lazy(
- () =>
- import("@/registry/components/example/flickering-grid-rounded-demo"),
- ),
- },
- "hero-video-dialog-demo": {
- name: "hero-video-dialog-demo",
- type: "components:example",
- files: ["registry/components/example/hero-video-dialog-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/hero-video-dialog-demo"),
- ),
- },
- "hero-video-dialog-demo-top-in-bottom-out": {
- name: "hero-video-dialog-demo-top-in-bottom-out",
- type: "components:example",
- files: [
- "registry/components/example/hero-video-dialog-demo-top-in-bottom-out.tsx",
- ],
- component: React.lazy(
- () =>
- import(
- "@/registry/components/example/hero-video-dialog-demo-top-in-bottom-out"
- ),
- ),
- },
- "marquee-demo": {
- name: "marquee-demo",
- type: "components:example",
- registryDependencies: ["marquee"],
- files: ["registry/components/example/marquee-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/marquee-demo"),
- ),
- },
- "marquee-demo-vertical": {
- name: "marquee-demo-vertical",
- type: "components:example",
- registryDependencies: ["marquee"],
- files: ["registry/components/example/marquee-demo-vertical.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/marquee-demo-vertical"),
- ),
- },
- "marquee-logos": {
- name: "marquee-logos",
- type: "components:example",
- registryDependencies: ["marquee"],
- files: ["registry/components/example/marquee-logos.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/marquee-logos"),
- ),
- },
- "marquee-3d": {
- name: "marquee-3d",
- type: "components:example",
- registryDependencies: ["marquee"],
- files: ["registry/components/example/marquee-3d.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/marquee-3d"),
- ),
- },
- "globe-demo": {
- name: "globe-demo",
- type: "components:example",
- registryDependencies: ["globe"],
- files: ["registry/components/example/globe-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/globe-demo"),
- ),
- },
- "tweet-card-demo": {
- name: "tweet-card-demo",
- type: "components:example",
- registryDependencies: ["tweet-card"],
- files: ["registry/components/example/tweet-card-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/tweet-card-demo"),
- ),
- },
- "tweet-card-images": {
- name: "tweet-card-images",
- type: "components:example",
- registryDependencies: ["tweet-card"],
- files: ["registry/components/example/tweet-card-images.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/tweet-card-images"),
- ),
- },
- "tweet-card-meta-preview": {
- name: "tweet-card-meta-preview",
- type: "components:example",
- registryDependencies: ["tweet-card"],
- files: ["registry/components/example/tweet-card-meta-preview.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/tweet-card-meta-preview"),
- ),
- },
- "shimmer-button-demo": {
- name: "shimmer-button-demo",
- type: "components:example",
- registryDependencies: ["shimmer-button"],
- files: ["registry/components/example/shimmer-button-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/shimmer-button-demo"),
- ),
- },
- "bento-demo": {
- name: "bento-demo",
- type: "components:example",
- registryDependencies: [
- "bento-grid",
- "marquee",
- "globe",
- "shadcn:command",
- "shadcn:calendar",
- ],
- dependencies: ["@radix-ui/react-icons"],
- files: ["registry/components/example/bento-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/bento-demo"),
- ),
- },
- "bento-demo-vertical": {
- name: "bento-demo-vertical",
- type: "components:example",
- registryDependencies: ["bento-grid"],
- dependencies: ["@radix-ui/react-icons"],
- files: ["registry/components/example/bento-demo-vertical.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/bento-demo-vertical"),
- ),
- },
- "number-ticker-demo": {
- name: "number-ticker-demo",
- type: "components:example",
- registryDependencies: ["number-ticker"],
- files: ["registry/components/example/number-ticker-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/number-ticker-demo"),
- ),
- },
- "number-ticker-decimal-demo": {
- name: "number-ticker-decimal-demo",
- type: "components:example",
- registryDependencies: ["number-ticker"],
- files: ["registry/components/example/number-ticker-decimal-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/number-ticker-decimal-demo"),
- ),
- },
- "ripple-demo": {
- name: "ripple-demo",
- type: "components:example",
- registryDependencies: ["ripple"],
- files: ["registry/components/example/ripple-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/ripple-demo"),
- ),
- },
- "retro-grid-demo": {
- name: "retro-grid-demo",
- type: "components:example",
- files: ["registry/components/example/retro-grid-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/retro-grid-demo"),
- ),
- },
- "animated-list-demo": {
- name: "animated-list-demo",
- type: "components:example",
- registryDependencies: ["animated-list"],
- files: ["registry/components/example/animated-list-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/animated-list-demo"),
- ),
- },
- "animated-shiny-text-demo": {
- name: "animated-shiny-text-demo",
- type: "components:example",
- registryDependencies: ["animated-shiny-text"],
- dependencies: ["@radix-ui/react-icons"],
- files: ["registry/components/example/animated-shiny-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/animated-shiny-text-demo"),
- ),
- },
- "particles-demo": {
- name: "particles-demo",
- type: "components:example",
- registryDependencies: ["particles"],
- dependencies: ["next-themes"],
- files: ["registry/components/example/particles-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/particles-demo"),
- ),
- },
- "animated-grid-pattern-demo": {
- name: "animated-grid-pattern-demo",
- type: "components:example",
- registryDependencies: ["animated-grid-pattern"],
- files: ["registry/components/example/animated-grid-pattern-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/animated-grid-pattern-demo"),
- ),
- },
- "border-beam-demo": {
- name: "border-beam-demo",
- type: "components:example",
- registryDependencies: ["border-beam"],
- files: ["registry/components/example/border-beam-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/border-beam-demo"),
- ),
- },
- "animated-beam-demo": {
- name: "animated-beam-demo",
- type: "components:example",
- registryDependencies: ["animated-beam"],
- dependencies: ["@radix-ui/react-icons"],
- files: ["registry/components/example/animated-beam-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/animated-beam-demo"),
- ),
- },
- "animated-beam-unidirectional": {
- name: "animated-beam-unidirectional",
- type: "components:example",
- registryDependencies: ["animated-beam"],
- files: ["registry/components/example/animated-beam-unidirectional.tsx"],
- component: React.lazy(
- () =>
- import("@/registry/components/example/animated-beam-unidirectional"),
- ),
- },
- "animated-beam-bidirectional": {
- name: "animated-beam-bidirectional",
- type: "components:example",
- registryDependencies: ["animated-beam"],
- files: ["registry/components/example/animated-beam-bidirectional.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/animated-beam-bidirectional"),
- ),
- },
- "animated-beam-multiple-inputs": {
- name: "animated-beam-multiple-inputs",
- type: "components:example",
- registryDependencies: ["animated-beam"],
- files: ["registry/components/example/animated-beam-multiple-inputs.tsx"],
- component: React.lazy(
- () =>
- import("@/registry/components/example/animated-beam-multiple-inputs"),
- ),
- },
- "animated-beam-multiple-outputs": {
- name: "animated-beam-multiple-outputs",
- type: "components:example",
- registryDependencies: ["animated-beam"],
- files: ["registry/components/example/animated-beam-multiple-outputs.tsx"],
- component: React.lazy(
- () =>
- import("@/registry/components/example/animated-beam-multiple-outputs"),
- ),
- },
- "text-reveal-demo": {
- name: "text-reveal-demo",
- type: "components:example",
- registryDependencies: ["text-reveal"],
- files: ["registry/components/example/text-reveal-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/text-reveal-demo"),
- ),
- },
- "animated-gradient-text-demo": {
- name: "animated-gradient-text-demo",
- type: "components:example",
- registryDependencies: ["animated-gradient-text"],
- dependencies: ["lucide-react"],
- files: ["registry/components/example/animated-gradient-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/animated-gradient-text-demo"),
- ),
- },
- "orbiting-circles-demo": {
- name: "orbiting-circles-demo",
- type: "components:example",
- registryDependencies: ["orbiting-circles"],
- dependencies: ["@radix-ui/react-icons"],
- files: ["registry/components/example/orbiting-circles-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/orbiting-circles-demo"),
- ),
- },
- "dock-demo": {
- name: "dock-demo",
- type: "components:example",
- registryDependencies: ["dock"],
- files: ["registry/components/example/dock-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/dock-demo"),
- ),
- },
- "dock-demo-2": {
- name: "dock-demo-2",
- type: "components:example",
- registryDependencies: ["dock"],
- files: ["registry/components/example/dock-demo-2.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/dock-demo-2"),
- ),
- },
- "dock-demo-3": {
- name: "dock-demo-3",
- type: "components:example",
- registryDependencies: ["dock"],
- files: ["registry/components/example/dock-demo-3.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/dock-demo-3"),
- ),
- },
- "word-rotate-demo": {
- name: "word-rotate-demo",
- type: "components:example",
- registryDependencies: ["word-rotate"],
- files: ["registry/components/example/word-rotate-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/word-rotate-demo"),
- ),
- },
- "hyper-text-demo": {
- name: "hyper-text-demo",
- type: "components:example",
- registryDependencies: ["hyper-text"],
- files: ["registry/components/example/hyper-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/hyper-text-demo"),
- ),
- },
- "avatar-circles-demo": {
- name: "avatar-circles-demo",
- type: "components:example",
- registryDependencies: ["avatar-circles"],
- files: ["registry/components/example/avatar-circles-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/avatar-circles-demo"),
- ),
- },
- "word-pull-up-demo": {
- name: "word-pull-up-demo",
- type: "components:example",
- registryDependencies: ["word-pull-up"],
- files: ["registry/components/example/word-pull-up-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/word-pull-up-demo"),
- ),
- },
- "typing-animation-demo": {
- name: "typing-animation-demo",
- type: "components:example",
- registryDependencies: ["typing-animation"],
- files: ["registry/components/example/typing-animation-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/typing-animation-demo"),
- ),
- },
- "blur-in-demo": {
- name: "blur-in-demo",
- type: "components:example",
- registryDependencies: ["blur-in"],
- files: ["registry/components/example/blur-in-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/blur-in-demo"),
- ),
- },
- "scroll-based-velocity-demo": {
- name: "scroll-based-velocity-demo",
- type: "components:example",
- registryDependencies: ["scroll-based-velocity"],
- files: ["registry/components/example/scroll-based-velocity-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/scroll-based-velocity-demo"),
- ),
- },
- "letter-pullup-demo": {
- name: "letter-pullup-demo",
- type: "components:example",
- registryDependencies: ["letter-pullup"],
- files: ["registry/components/example/letter-pullup-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/letter-pullup-demo"),
- ),
- },
- "flip-text-demo": {
- name: "flip-text-demo",
- type: "components:example",
- registryDependencies: ["flip-text"],
- files: ["registry/components/example/flip-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/flip-text-demo"),
- ),
- },
- "sparkles-text-demo": {
- name: "sparkles-text-demo",
- type: "components:example",
- files: ["registry/components/example/sparkles-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/sparkles-text-demo"),
- ),
- },
- "icon-cloud-demo": {
- name: "icon-cloud-demo",
- type: "components:example",
- registryDependencies: ["icon-cloud"],
- files: ["registry/components/example/icon-cloud-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/icon-cloud-demo"),
- ),
- },
- "wavy-dot-pattern-demo": {
- name: "wavy-dot-pattern-demo",
- type: "components:example",
- files: ["registry/components/example/wavy-dot-pattern-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/wavy-dot-pattern-demo"),
- ),
- },
- "gradual-spacing-demo": {
- name: "gradual-spacing-demo",
- type: "components:example",
- files: ["registry/components/example/gradual-spacing-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/gradual-spacing-demo"),
- ),
- },
- "word-fade-in-demo": {
- name: "word-fade-in-demo",
- type: "components:example",
- files: ["registry/components/example/word-fade-in-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/word-fade-in-demo"),
- ),
- },
- "fade-text-demo": {
- name: "fade-text-demo",
- type: "components:example",
- files: ["registry/components/example/fade-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/fade-text-demo"),
- ),
- },
- "shiny-button-demo": {
- name: "shiny-button-demo",
- type: "components:example",
- files: ["registry/components/example/shiny-button-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/shiny-button-demo"),
- ),
- },
- "box-reveal-demo": {
- name: "box-reveal-demo",
- type: "components:example",
- files: ["registry/components/example/box-reveal-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/box-reveal-demo"),
- ),
- },
- "animated-circular-progress-bar-demo": {
- name: "animated-circular-progress-bar-demo",
- type: "components:example",
- files: [
- "registry/components/example/animated-circular-progress-bar-demo.tsx",
- ],
- component: React.lazy(
- () =>
- import(
- "@/registry/components/example/animated-circular-progress-bar-demo"
- ),
- ),
- },
- "shine-border-demo": {
- name: "shine-border-demo",
- type: "components:example",
- files: ["registry/components/example/shine-border-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/shine-border-demo"),
- ),
- },
- "shine-border-demo-2": {
- name: "shine-border-demo-2",
- type: "components:example",
- files: ["registry/components/example/shine-border-demo-2.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/shine-border-demo-2"),
- ),
- },
- "confetti-demo": {
- name: "confetti-demo",
- type: "components:example",
- files: ["registry/components/example/confetti-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-demo"),
- ),
- },
- "confetti-basic-cannon": {
- name: "confetti-basic-cannon",
- type: "components:example",
- files: ["registry/components/example/confetti-basic-cannon.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-basic-cannon"),
- ),
- },
- "confetti-random-direction": {
- name: "confetti-random-direction",
- type: "components:example",
- files: ["registry/components/example/confetti-random-direction.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-random-direction"),
- ),
- },
- "confetti-fireworks": {
- name: "confetti-fireworks",
- type: "components:example",
- files: ["registry/components/example/confetti-fireworks.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-fireworks"),
- ),
- },
- "confetti-stars": {
- name: "confetti-stars",
- type: "components:example",
- files: ["registry/components/example/confetti-stars.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-stars"),
- ),
- },
- "confetti-side-cannons": {
- name: "confetti-side-cannons",
- type: "components:example",
- files: ["registry/components/example/confetti-side-cannons.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-side-cannons"),
- ),
- },
- "confetti-custom-shapes": {
- name: "confetti-custom-shapes",
- type: "components:example",
- files: ["registry/components/example/confetti-custom-shapes.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-custom-shapes"),
- ),
- },
- "confetti-emoji": {
- name: "confetti-emoji",
- type: "components:example",
- files: ["registry/components/example/confetti-emoji.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/confetti-emoji"),
- ),
- },
- "animated-subscribe-button-demo": {
- name: "animated-subscribe-button-demo",
- type: "components:example",
- files: ["registry/components/example/animated-subscribe-button-demo.tsx"],
- component: React.lazy(
- () =>
- import("@/registry/components/example/animated-subscribe-button-demo"),
- ),
- },
- "cool-mode-demo": {
- name: "cool-mode-demo",
- type: "components:example",
- files: ["registry/components/example/cool-mode-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/cool-mode-demo"),
- ),
- },
- "cool-mode-custom": {
- name: "cool-mode-custom",
- type: "components:example",
- files: ["registry/components/example/cool-mode-custom.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/cool-mode-custom"),
- ),
- },
- "pulsating-button-demo": {
- name: "pulsating-button-demo",
- type: "components:example",
- files: ["registry/components/example/pulsating-button-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/pulsating-button-demo"),
- ),
- },
- "file-tree-demo": {
- name: "file-tree-demo",
- type: "components:example",
- files: ["registry/components/example/file-tree-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/file-tree-demo"),
- ),
- },
- "blur-fade-demo": {
- name: "blur-fade-demo",
- type: "components:example",
- files: ["registry/components/example/blur-fade-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/blur-fade-demo"),
- ),
- },
- "blur-fade-text-demo": {
- name: "blur-fade-text-demo",
- type: "components:example",
- files: ["registry/components/example/blur-fade-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/blur-fade-text-demo"),
- ),
- },
- "safari-demo": {
- name: "safari-demo",
- type: "components:example",
- files: ["registry/components/example/safari-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/safari-demo"),
- ),
- },
- "safari-demo-2": {
- name: "safari-demo-2",
- type: "components:example",
- files: ["registry/components/example/safari-demo-2.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/safari-demo-2"),
- ),
- },
- "iphone-15-pro-demo": {
- name: "iphone-15-pro-demo",
- type: "components:example",
- files: ["registry/components/example/iphone-15-pro-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/iphone-15-pro-demo"),
- ),
- },
- "iphone-15-pro-demo-2": {
- name: "iphone-15-pro-demo-2",
- type: "components:example",
- files: ["registry/components/example/iphone-15-pro-demo-2.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/iphone-15-pro-demo-2"),
- ),
- },
- "rainbow-button-demo": {
- name: "rainbow-button-demo",
- type: "components:example",
- files: ["registry/components/example/rainbow-button-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/rainbow-button-demo"),
- ),
- },
-};
-export const registry: Registry = {
+export const registry: Registry = [
...ui,
- ...example,
-};
-
-const resolvedExamples = Object.entries(example).map(([key, value]) => ({
- ...value,
- component: () => void 0,
-}));
-const updatedExample: Registry = resolvedExamples.reduce(
- (acc, curr) => ({ ...acc, [curr.name]: curr }),
- {},
-);
-export const downloadRegistry: Registry = { ...ui, ...updatedExample };
-
-export type ComponentName = keyof (typeof ui & typeof example);
+ ...examples,
+ ...blocks,
+ ...lib,
+ ...hooks,
+ ...themes,
+];
diff --git a/registry/registry-base-colors.ts b/registry/registry-base-colors.ts
new file mode 100644
index 00000000..bd2ab3dd
--- /dev/null
+++ b/registry/registry-base-colors.ts
@@ -0,0 +1,756 @@
+export const baseColors = [
+ {
+ name: "zinc",
+ label: "Zinc",
+ activeColor: {
+ light: "240 5.9% 10%",
+ dark: "240 5.2% 33.9%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "240 10% 3.9%",
+ card: "0 0% 100%",
+ "card-foreground": "240 10% 3.9%",
+ popover: "0 0% 100%",
+ "popover-foreground": "240 10% 3.9%",
+ primary: "240 5.9% 10%",
+ "primary-foreground": "0 0% 98%",
+ secondary: "240 4.8% 95.9%",
+ "secondary-foreground": "240 5.9% 10%",
+ muted: "240 4.8% 95.9%",
+ "muted-foreground": "240 3.8% 46.1%",
+ accent: "240 4.8% 95.9%",
+ "accent-foreground": "240 5.9% 10%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ border: "240 5.9% 90%",
+ input: "240 5.9% 90%",
+ ring: "240 5.9% 10%",
+ radius: "0.5rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "240 10% 3.9%",
+ foreground: "0 0% 98%",
+ card: "240 10% 3.9%",
+ "card-foreground": "0 0% 98%",
+ popover: "240 10% 3.9%",
+ "popover-foreground": "0 0% 98%",
+ primary: "0 0% 98%",
+ "primary-foreground": "240 5.9% 10%",
+ secondary: "240 3.7% 15.9%",
+ "secondary-foreground": "0 0% 98%",
+ muted: "240 3.7% 15.9%",
+ "muted-foreground": "240 5% 64.9%",
+ accent: "240 3.7% 15.9%",
+ "accent-foreground": "0 0% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "0 0% 98%",
+ border: "240 3.7% 15.9%",
+ input: "240 3.7% 15.9%",
+ ring: "240 4.9% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "slate",
+ label: "Slate",
+ activeColor: {
+ light: "215.4 16.3% 46.9%",
+ dark: "215.3 19.3% 34.5%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "222.2 84% 4.9%",
+ card: "0 0% 100%",
+ "card-foreground": "222.2 84% 4.9%",
+ popover: "0 0% 100%",
+ "popover-foreground": "222.2 84% 4.9%",
+ primary: "222.2 47.4% 11.2%",
+ "primary-foreground": "210 40% 98%",
+ secondary: "210 40% 96.1%",
+ "secondary-foreground": "222.2 47.4% 11.2%",
+ muted: "210 40% 96.1%",
+ "muted-foreground": "215.4 16.3% 46.9%",
+ accent: "210 40% 96.1%",
+ "accent-foreground": "222.2 47.4% 11.2%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "210 40% 98%",
+ border: "214.3 31.8% 91.4%",
+ input: "214.3 31.8% 91.4%",
+ ring: "222.2 84% 4.9%",
+ radius: "0.5rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "222.2 84% 4.9%",
+ foreground: "210 40% 98%",
+ card: "222.2 84% 4.9%",
+ "card-foreground": "210 40% 98%",
+ popover: "222.2 84% 4.9%",
+ "popover-foreground": "210 40% 98%",
+ primary: "210 40% 98%",
+ "primary-foreground": "222.2 47.4% 11.2%",
+ secondary: "217.2 32.6% 17.5%",
+ "secondary-foreground": "210 40% 98%",
+ muted: "217.2 32.6% 17.5%",
+ "muted-foreground": "215 20.2% 65.1%",
+ accent: "217.2 32.6% 17.5%",
+ "accent-foreground": "210 40% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "210 40% 98%",
+ border: "217.2 32.6% 17.5%",
+ input: "217.2 32.6% 17.5%",
+ ring: "212.7 26.8% 83.9",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "stone",
+ label: "Stone",
+ activeColor: {
+ light: "25 5.3% 44.7%",
+ dark: "33.3 5.5% 32.4%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "20 14.3% 4.1%",
+ card: "0 0% 100%",
+ "card-foreground": "20 14.3% 4.1%",
+ popover: "0 0% 100%",
+ "popover-foreground": "20 14.3% 4.1%",
+ primary: "24 9.8% 10%",
+ "primary-foreground": "60 9.1% 97.8%",
+ secondary: "60 4.8% 95.9%",
+ "secondary-foreground": "24 9.8% 10%",
+ muted: "60 4.8% 95.9%",
+ "muted-foreground": "25 5.3% 44.7%",
+ accent: "60 4.8% 95.9%",
+ "accent-foreground": "24 9.8% 10%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ border: "20 5.9% 90%",
+ input: "20 5.9% 90%",
+ ring: "20 14.3% 4.1%",
+ radius: "0.95rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "20 14.3% 4.1%",
+ foreground: "60 9.1% 97.8%",
+ card: "20 14.3% 4.1%",
+ "card-foreground": "60 9.1% 97.8%",
+ popover: "20 14.3% 4.1%",
+ "popover-foreground": "60 9.1% 97.8%",
+ primary: "60 9.1% 97.8%",
+ "primary-foreground": "24 9.8% 10%",
+ secondary: "12 6.5% 15.1%",
+ "secondary-foreground": "60 9.1% 97.8%",
+ muted: "12 6.5% 15.1%",
+ "muted-foreground": "24 5.4% 63.9%",
+ accent: "12 6.5% 15.1%",
+ "accent-foreground": "60 9.1% 97.8%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ border: "12 6.5% 15.1%",
+ input: "12 6.5% 15.1%",
+ ring: "24 5.7% 82.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "gray",
+ label: "Gray",
+ activeColor: {
+ light: "220 8.9% 46.1%",
+ dark: "215 13.8% 34.1%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "224 71.4% 4.1%",
+ card: "0 0% 100%",
+ "card-foreground": "224 71.4% 4.1%",
+ popover: "0 0% 100%",
+ "popover-foreground": "224 71.4% 4.1%",
+ primary: "220.9 39.3% 11%",
+ "primary-foreground": "210 20% 98%",
+ secondary: "220 14.3% 95.9%",
+ "secondary-foreground": "220.9 39.3% 11%",
+ muted: "220 14.3% 95.9%",
+ "muted-foreground": "220 8.9% 46.1%",
+ accent: "220 14.3% 95.9%",
+ "accent-foreground": "220.9 39.3% 11%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "210 20% 98%",
+ border: "220 13% 91%",
+ input: "220 13% 91%",
+ ring: "224 71.4% 4.1%",
+ radius: "0.35rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "224 71.4% 4.1%",
+ foreground: "210 20% 98%",
+ card: "224 71.4% 4.1%",
+ "card-foreground": "210 20% 98%",
+ popover: "224 71.4% 4.1%",
+ "popover-foreground": "210 20% 98%",
+ primary: "210 20% 98%",
+ "primary-foreground": "220.9 39.3% 11%",
+ secondary: "215 27.9% 16.9%",
+ "secondary-foreground": "210 20% 98%",
+ muted: "215 27.9% 16.9%",
+ "muted-foreground": "217.9 10.6% 64.9%",
+ accent: "215 27.9% 16.9%",
+ "accent-foreground": "210 20% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "210 20% 98%",
+ border: "215 27.9% 16.9%",
+ input: "215 27.9% 16.9%",
+ ring: "216 12.2% 83.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "neutral",
+ label: "Neutral",
+ activeColor: {
+ light: "0 0% 45.1%",
+ dark: "0 0% 32.2%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "0 0% 3.9%",
+ card: "0 0% 100%",
+ "card-foreground": "0 0% 3.9%",
+ popover: "0 0% 100%",
+ "popover-foreground": "0 0% 3.9%",
+ primary: "0 0% 9%",
+ "primary-foreground": "0 0% 98%",
+ secondary: "0 0% 96.1%",
+ "secondary-foreground": "0 0% 9%",
+ muted: "0 0% 96.1%",
+ "muted-foreground": "0 0% 45.1%",
+ accent: "0 0% 96.1%",
+ "accent-foreground": "0 0% 9%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ border: "0 0% 89.8%",
+ input: "0 0% 89.8%",
+ ring: "0 0% 3.9%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "0 0% 3.9%",
+ foreground: "0 0% 98%",
+ card: "0 0% 3.9%",
+ "card-foreground": "0 0% 98%",
+ popover: "0 0% 3.9%",
+ "popover-foreground": "0 0% 98%",
+ primary: "0 0% 98%",
+ "primary-foreground": "0 0% 9%",
+ secondary: "0 0% 14.9%",
+ "secondary-foreground": "0 0% 98%",
+ muted: "0 0% 14.9%",
+ "muted-foreground": "0 0% 63.9%",
+ accent: "0 0% 14.9%",
+ "accent-foreground": "0 0% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "0 0% 98%",
+ border: "0 0% 14.9%",
+ input: "0 0% 14.9%",
+ ring: "0 0% 83.1%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "red",
+ label: "Red",
+ activeColor: {
+ light: "0 72.2% 50.6%",
+ dark: "0 72.2% 50.6%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "0 0% 3.9%",
+ card: "0 0% 100%",
+ "card-foreground": "0 0% 3.9%",
+ popover: "0 0% 100%",
+ "popover-foreground": "0 0% 3.9%",
+ primary: "0 72.2% 50.6%",
+ "primary-foreground": "0 85.7% 97.3%",
+ secondary: "0 0% 96.1%",
+ "secondary-foreground": "0 0% 9%",
+ muted: "0 0% 96.1%",
+ "muted-foreground": "0 0% 45.1%",
+ accent: "0 0% 96.1%",
+ "accent-foreground": "0 0% 9%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ border: "0 0% 89.8%",
+ input: "0 0% 89.8%",
+ ring: "0 72.2% 50.6%",
+ radius: "0.4rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "0 0% 3.9%",
+ foreground: "0 0% 98%",
+ card: "0 0% 3.9%",
+ "card-foreground": "0 0% 98%",
+ popover: "0 0% 3.9%",
+ "popover-foreground": "0 0% 98%",
+ primary: "0 72.2% 50.6%",
+ "primary-foreground": "0 85.7% 97.3%",
+ secondary: "0 0% 14.9%",
+ "secondary-foreground": "0 0% 98%",
+ muted: "0 0% 14.9%",
+ "muted-foreground": "0 0% 63.9%",
+ accent: "0 0% 14.9%",
+ "accent-foreground": "0 0% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "0 0% 98%",
+ border: "0 0% 14.9%",
+ input: "0 0% 14.9%",
+ ring: "0 72.2% 50.6%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "rose",
+ label: "Rose",
+ activeColor: {
+ light: "346.8 77.2% 49.8%",
+ dark: "346.8 77.2% 49.8%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "240 10% 3.9%",
+ card: "0 0% 100%",
+ "card-foreground": "240 10% 3.9%",
+ popover: "0 0% 100%",
+ "popover-foreground": "240 10% 3.9%",
+ primary: "346.8 77.2% 49.8%",
+ "primary-foreground": "355.7 100% 97.3%",
+ secondary: "240 4.8% 95.9%",
+ "secondary-foreground": "240 5.9% 10%",
+ muted: "240 4.8% 95.9%",
+ "muted-foreground": "240 3.8% 46.1%",
+ accent: "240 4.8% 95.9%",
+ "accent-foreground": "240 5.9% 10%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ border: "240 5.9% 90%",
+ input: "240 5.9% 90%",
+ ring: "346.8 77.2% 49.8%",
+ radius: "0.5rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "20 14.3% 4.1%",
+ foreground: "0 0% 95%",
+ popover: "0 0% 9%",
+ "popover-foreground": "0 0% 95%",
+ card: "24 9.8% 10%",
+ "card-foreground": "0 0% 95%",
+ primary: "346.8 77.2% 49.8%",
+ "primary-foreground": "355.7 100% 97.3%",
+ secondary: "240 3.7% 15.9%",
+ "secondary-foreground": "0 0% 98%",
+ muted: "0 0% 15%",
+ "muted-foreground": "240 5% 64.9%",
+ accent: "12 6.5% 15.1%",
+ "accent-foreground": "0 0% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "0 85.7% 97.3%",
+ border: "240 3.7% 15.9%",
+ input: "240 3.7% 15.9%",
+ ring: "346.8 77.2% 49.8%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "orange",
+ label: "Orange",
+ activeColor: {
+ light: "24.6 95% 53.1%",
+ dark: "20.5 90.2% 48.2%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "20 14.3% 4.1%",
+ card: "0 0% 100%",
+ "card-foreground": "20 14.3% 4.1%",
+ popover: "0 0% 100%",
+ "popover-foreground": "20 14.3% 4.1%",
+ primary: "24.6 95% 53.1%",
+ "primary-foreground": "60 9.1% 97.8%",
+ secondary: "60 4.8% 95.9%",
+ "secondary-foreground": "24 9.8% 10%",
+ muted: "60 4.8% 95.9%",
+ "muted-foreground": "25 5.3% 44.7%",
+ accent: "60 4.8% 95.9%",
+ "accent-foreground": "24 9.8% 10%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ border: "20 5.9% 90%",
+ input: "20 5.9% 90%",
+ ring: "24.6 95% 53.1%",
+ radius: "0.95rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "20 14.3% 4.1%",
+ foreground: "60 9.1% 97.8%",
+ card: "20 14.3% 4.1%",
+ "card-foreground": "60 9.1% 97.8%",
+ popover: "20 14.3% 4.1%",
+ "popover-foreground": "60 9.1% 97.8%",
+ primary: "20.5 90.2% 48.2%",
+ "primary-foreground": "60 9.1% 97.8%",
+ secondary: "12 6.5% 15.1%",
+ "secondary-foreground": "60 9.1% 97.8%",
+ muted: "12 6.5% 15.1%",
+ "muted-foreground": "24 5.4% 63.9%",
+ accent: "12 6.5% 15.1%",
+ "accent-foreground": "60 9.1% 97.8%",
+ destructive: "0 72.2% 50.6%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ border: "12 6.5% 15.1%",
+ input: "12 6.5% 15.1%",
+ ring: "20.5 90.2% 48.2%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "green",
+ label: "Green",
+ activeColor: {
+ light: "142.1 76.2% 36.3%",
+ dark: "142.1 70.6% 45.3%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "240 10% 3.9%",
+ card: "0 0% 100%",
+ "card-foreground": "240 10% 3.9%",
+ popover: "0 0% 100%",
+ "popover-foreground": "240 10% 3.9%",
+ primary: "142.1 76.2% 36.3%",
+ "primary-foreground": "355.7 100% 97.3%",
+ secondary: "240 4.8% 95.9%",
+ "secondary-foreground": "240 5.9% 10%",
+ muted: "240 4.8% 95.9%",
+ "muted-foreground": "240 3.8% 46.1%",
+ accent: "240 4.8% 95.9%",
+ "accent-foreground": "240 5.9% 10%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "0 0% 98%",
+ border: "240 5.9% 90%",
+ input: "240 5.9% 90%",
+ ring: "142.1 76.2% 36.3%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "20 14.3% 4.1%",
+ foreground: "0 0% 95%",
+ popover: "0 0% 9%",
+ "popover-foreground": "0 0% 95%",
+ card: "24 9.8% 10%",
+ "card-foreground": "0 0% 95%",
+ primary: "142.1 70.6% 45.3%",
+ "primary-foreground": "144.9 80.4% 10%",
+ secondary: "240 3.7% 15.9%",
+ "secondary-foreground": "0 0% 98%",
+ muted: "0 0% 15%",
+ "muted-foreground": "240 5% 64.9%",
+ accent: "12 6.5% 15.1%",
+ "accent-foreground": "0 0% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "0 85.7% 97.3%",
+ border: "240 3.7% 15.9%",
+ input: "240 3.7% 15.9%",
+ ring: "142.4 71.8% 29.2%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "blue",
+ label: "Blue",
+ activeColor: {
+ light: "221.2 83.2% 53.3%",
+ dark: "217.2 91.2% 59.8%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "222.2 84% 4.9%",
+ card: "0 0% 100%",
+ "card-foreground": "222.2 84% 4.9%",
+ popover: "0 0% 100%",
+ "popover-foreground": "222.2 84% 4.9%",
+ primary: "221.2 83.2% 53.3%",
+ "primary-foreground": "210 40% 98%",
+ secondary: "210 40% 96.1%",
+ "secondary-foreground": "222.2 47.4% 11.2%",
+ muted: "210 40% 96.1%",
+ "muted-foreground": "215.4 16.3% 46.9%",
+ accent: "210 40% 96.1%",
+ "accent-foreground": "222.2 47.4% 11.2%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "210 40% 98%",
+ border: "214.3 31.8% 91.4%",
+ input: "214.3 31.8% 91.4%",
+ ring: "221.2 83.2% 53.3%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "222.2 84% 4.9%",
+ foreground: "210 40% 98%",
+ card: "222.2 84% 4.9%",
+ "card-foreground": "210 40% 98%",
+ popover: "222.2 84% 4.9%",
+ "popover-foreground": "210 40% 98%",
+ primary: "217.2 91.2% 59.8%",
+ "primary-foreground": "222.2 47.4% 11.2%",
+ secondary: "217.2 32.6% 17.5%",
+ "secondary-foreground": "210 40% 98%",
+ muted: "217.2 32.6% 17.5%",
+ "muted-foreground": "215 20.2% 65.1%",
+ accent: "217.2 32.6% 17.5%",
+ "accent-foreground": "210 40% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "210 40% 98%",
+ border: "217.2 32.6% 17.5%",
+ input: "217.2 32.6% 17.5%",
+ ring: "224.3 76.3% 48%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "yellow",
+ label: "Yellow",
+ activeColor: {
+ light: "47.9 95.8% 53.1%",
+ dark: "47.9 95.8% 53.1%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "20 14.3% 4.1%",
+ card: "0 0% 100%",
+ "card-foreground": "20 14.3% 4.1%",
+ popover: "0 0% 100%",
+ "popover-foreground": "20 14.3% 4.1%",
+ primary: "47.9 95.8% 53.1%",
+ "primary-foreground": "26 83.3% 14.1%",
+ secondary: "60 4.8% 95.9%",
+ "secondary-foreground": "24 9.8% 10%",
+ muted: "60 4.8% 95.9%",
+ "muted-foreground": "25 5.3% 44.7%",
+ accent: "60 4.8% 95.9%",
+ "accent-foreground": "24 9.8% 10%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ border: "20 5.9% 90%",
+ input: "20 5.9% 90%",
+ ring: "20 14.3% 4.1%",
+ radius: "0.95rem",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "20 14.3% 4.1%",
+ foreground: "60 9.1% 97.8%",
+ card: "20 14.3% 4.1%",
+ "card-foreground": "60 9.1% 97.8%",
+ popover: "20 14.3% 4.1%",
+ "popover-foreground": "60 9.1% 97.8%",
+ primary: "47.9 95.8% 53.1%",
+ "primary-foreground": "26 83.3% 14.1%",
+ secondary: "12 6.5% 15.1%",
+ "secondary-foreground": "60 9.1% 97.8%",
+ muted: "12 6.5% 15.1%",
+ "muted-foreground": "24 5.4% 63.9%",
+ accent: "12 6.5% 15.1%",
+ "accent-foreground": "60 9.1% 97.8%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "60 9.1% 97.8%",
+ border: "12 6.5% 15.1%",
+ input: "12 6.5% 15.1%",
+ ring: "35.5 91.7% 32.9%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+ {
+ name: "violet",
+ label: "Violet",
+ activeColor: {
+ light: "262.1 83.3% 57.8%",
+ dark: "263.4 70% 50.4%",
+ },
+ cssVars: {
+ light: {
+ background: "0 0% 100%",
+ foreground: "224 71.4% 4.1%",
+ card: "0 0% 100%",
+ "card-foreground": "224 71.4% 4.1%",
+ popover: "0 0% 100%",
+ "popover-foreground": "224 71.4% 4.1%",
+ primary: "262.1 83.3% 57.8%",
+ "primary-foreground": "210 20% 98%",
+ secondary: "220 14.3% 95.9%",
+ "secondary-foreground": "220.9 39.3% 11%",
+ muted: "220 14.3% 95.9%",
+ "muted-foreground": "220 8.9% 46.1%",
+ accent: "220 14.3% 95.9%",
+ "accent-foreground": "220.9 39.3% 11%",
+ destructive: "0 84.2% 60.2%",
+ "destructive-foreground": "210 20% 98%",
+ border: "220 13% 91%",
+ input: "220 13% 91%",
+ ring: "262.1 83.3% 57.8%",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "224 71.4% 4.1%",
+ foreground: "210 20% 98%",
+ card: "224 71.4% 4.1%",
+ "card-foreground": "210 20% 98%",
+ popover: "224 71.4% 4.1%",
+ "popover-foreground": "210 20% 98%",
+ primary: "263.4 70% 50.4%",
+ "primary-foreground": "210 20% 98%",
+ secondary: "215 27.9% 16.9%",
+ "secondary-foreground": "210 20% 98%",
+ muted: "215 27.9% 16.9%",
+ "muted-foreground": "217.9 10.6% 64.9%",
+ accent: "215 27.9% 16.9%",
+ "accent-foreground": "210 20% 98%",
+ destructive: "0 62.8% 30.6%",
+ "destructive-foreground": "210 20% 98%",
+ border: "215 27.9% 16.9%",
+ input: "215 27.9% 16.9%",
+ ring: "263.4 70% 50.4%",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+ },
+ },
+] as const;
+
+export type BaseColor = (typeof baseColors)[number];
diff --git a/registry/registry-blocks.ts b/registry/registry-blocks.ts
new file mode 100644
index 00000000..3bb8d2a4
--- /dev/null
+++ b/registry/registry-blocks.ts
@@ -0,0 +1,3 @@
+import { Registry } from "@/registry/schema";
+
+export const blocks: Registry = [];
diff --git a/registry/registry-colors.ts b/registry/registry-colors.ts
new file mode 100644
index 00000000..5130fcee
--- /dev/null
+++ b/registry/registry-colors.ts
@@ -0,0 +1,1566 @@
+export const colors = {
+ inherit: "inherit",
+ current: "currentColor",
+ transparent: "transparent",
+ black: {
+ hex: "#000000",
+ rgb: "rgb(0,0,0)",
+ hsl: "hsl(0,0%,0%)",
+ },
+ white: {
+ hex: "#ffffff",
+ rgb: "rgb(255,255,255)",
+ hsl: "hsl(0,0%,100%)",
+ },
+ slate: [
+ {
+ scale: 50,
+ hex: "#f8fafc",
+ rgb: "rgb(248,250,252)",
+ hsl: "hsl(210,40%,98%)",
+ },
+ {
+ scale: 100,
+ hex: "#f1f5f9",
+ rgb: "rgb(241,245,249)",
+ hsl: "hsl(210,40%,96.1%)",
+ },
+ {
+ scale: 200,
+ hex: "#e2e8f0",
+ rgb: "rgb(226,232,240)",
+ hsl: "hsl(214.3,31.8%,91.4%)",
+ },
+ {
+ scale: 300,
+ hex: "#cbd5e1",
+ rgb: "rgb(203,213,225)",
+ hsl: "hsl(212.7,26.8%,83.9%)",
+ },
+ {
+ scale: 400,
+ hex: "#94a3b8",
+ rgb: "rgb(148,163,184)",
+ hsl: "hsl(215,20.2%,65.1%)",
+ },
+ {
+ scale: 500,
+ hex: "#64748b",
+ rgb: "rgb(100,116,139)",
+ hsl: "hsl(215.4,16.3%,46.9%)",
+ },
+ {
+ scale: 600,
+ hex: "#475569",
+ rgb: "rgb(71,85,105)",
+ hsl: "hsl(215.3,19.3%,34.5%)",
+ },
+ {
+ scale: 700,
+ hex: "#334155",
+ rgb: "rgb(51,65,85)",
+ hsl: "hsl(215.3,25%,26.7%)",
+ },
+ {
+ scale: 800,
+ hex: "#1e293b",
+ rgb: "rgb(30,41,59)",
+ hsl: "hsl(217.2,32.6%,17.5%)",
+ },
+ {
+ scale: 900,
+ hex: "#0f172a",
+ rgb: "rgb(15,23,42)",
+ hsl: "hsl(222.2,47.4%,11.2%)",
+ },
+ {
+ scale: 950,
+ hex: "#020617",
+ rgb: "rgb(2,6,23)",
+ hsl: "hsl(222.2,84%,4.9%)",
+ },
+ ],
+ gray: [
+ {
+ scale: 50,
+ hex: "#f9fafb",
+ rgb: "rgb(249,250,251)",
+ hsl: "hsl(210,20%,98%)",
+ },
+ {
+ scale: 100,
+ hex: "#f3f4f6",
+ rgb: "rgb(243,244,246)",
+ hsl: "hsl(220,14.3%,95.9%)",
+ },
+ {
+ scale: 200,
+ hex: "#e5e7eb",
+ rgb: "rgb(229,231,235)",
+ hsl: "hsl(220,13%,91%)",
+ },
+ {
+ scale: 300,
+ hex: "#d1d5db",
+ rgb: "rgb(209,213,219)",
+ hsl: "hsl(216,12.2%,83.9%)",
+ },
+ {
+ scale: 400,
+ hex: "#9ca3af",
+ rgb: "rgb(156,163,175)",
+ hsl: "hsl(217.9,10.6%,64.9%)",
+ },
+ {
+ scale: 500,
+ hex: "#6b7280",
+ rgb: "rgb(107,114,128)",
+ hsl: "hsl(220,8.9%,46.1%)",
+ },
+ {
+ scale: 600,
+ hex: "#4b5563",
+ rgb: "rgb(75,85,99)",
+ hsl: "hsl(215,13.8%,34.1%)",
+ },
+ {
+ scale: 700,
+ hex: "#374151",
+ rgb: "rgb(55,65,81)",
+ hsl: "hsl(216.9,19.1%,26.7%)",
+ },
+ {
+ scale: 800,
+ hex: "#1f2937",
+ rgb: "rgb(31,41,55)",
+ hsl: "hsl(215,27.9%,16.9%)",
+ },
+ {
+ scale: 900,
+ hex: "#111827",
+ rgb: "rgb(17,24,39)",
+ hsl: "hsl(220.9,39.3%,11%)",
+ },
+ {
+ scale: 950,
+ hex: "#030712",
+ rgb: "rgb(3,7,18)",
+ hsl: "hsl(224,71.4%,4.1%)",
+ },
+ ],
+ zinc: [
+ {
+ scale: 50,
+ hex: "#fafafa",
+ rgb: "rgb(250,250,250)",
+ hsl: "hsl(0,0%,98%)",
+ },
+ {
+ scale: 100,
+ hex: "#f4f4f5",
+ rgb: "rgb(244,244,245)",
+ hsl: "hsl(240,4.8%,95.9%)",
+ },
+ {
+ scale: 200,
+ hex: "#e4e4e7",
+ rgb: "rgb(228,228,231)",
+ hsl: "hsl(240,5.9%,90%)",
+ },
+ {
+ scale: 300,
+ hex: "#d4d4d8",
+ rgb: "rgb(212,212,216)",
+ hsl: "hsl(240,4.9%,83.9%)",
+ },
+ {
+ scale: 400,
+ hex: "#a1a1aa",
+ rgb: "rgb(161,161,170)",
+ hsl: "hsl(240,5%,64.9%)",
+ },
+ {
+ scale: 500,
+ hex: "#71717a",
+ rgb: "rgb(113,113,122)",
+ hsl: "hsl(240,3.8%,46.1%)",
+ },
+ {
+ scale: 600,
+ hex: "#52525b",
+ rgb: "rgb(82,82,91)",
+ hsl: "hsl(240,5.2%,33.9%)",
+ },
+ {
+ scale: 700,
+ hex: "#3f3f46",
+ rgb: "rgb(63,63,70)",
+ hsl: "hsl(240,5.3%,26.1%)",
+ },
+ {
+ scale: 800,
+ hex: "#27272a",
+ rgb: "rgb(39,39,42)",
+ hsl: "hsl(240,3.7%,15.9%)",
+ },
+ {
+ scale: 900,
+ hex: "#18181b",
+ rgb: "rgb(24,24,27)",
+ hsl: "hsl(240,5.9%,10%)",
+ },
+ {
+ scale: 950,
+ hex: "#09090b",
+ rgb: "rgb(9,9,11)",
+ hsl: "hsl(240,10%,3.9%)",
+ },
+ ],
+ neutral: [
+ {
+ scale: 50,
+ hex: "#fafafa",
+ rgb: "rgb(250,250,250)",
+ hsl: "hsl(0,0%,98%)",
+ },
+ {
+ scale: 100,
+ hex: "#f5f5f5",
+ rgb: "rgb(245,245,245)",
+ hsl: "hsl(0,0%,96.1%)",
+ },
+ {
+ scale: 200,
+ hex: "#e5e5e5",
+ rgb: "rgb(229,229,229)",
+ hsl: "hsl(0,0%,89.8%)",
+ },
+ {
+ scale: 300,
+ hex: "#d4d4d4",
+ rgb: "rgb(212,212,212)",
+ hsl: "hsl(0,0%,83.1%)",
+ },
+ {
+ scale: 400,
+ hex: "#a3a3a3",
+ rgb: "rgb(163,163,163)",
+ hsl: "hsl(0,0%,63.9%)",
+ },
+ {
+ scale: 500,
+ hex: "#737373",
+ rgb: "rgb(115,115,115)",
+ hsl: "hsl(0,0%,45.1%)",
+ },
+ {
+ scale: 600,
+ hex: "#525252",
+ rgb: "rgb(82,82,82)",
+ hsl: "hsl(0,0%,32.2%)",
+ },
+ {
+ scale: 700,
+ hex: "#404040",
+ rgb: "rgb(64,64,64)",
+ hsl: "hsl(0,0%,25.1%)",
+ },
+ {
+ scale: 800,
+ hex: "#262626",
+ rgb: "rgb(38,38,38)",
+ hsl: "hsl(0,0%,14.9%)",
+ },
+ {
+ scale: 900,
+ hex: "#171717",
+ rgb: "rgb(23,23,23)",
+ hsl: "hsl(0,0%,9%)",
+ },
+ {
+ scale: 950,
+ hex: "#0a0a0a",
+ rgb: "rgb(10,10,10)",
+ hsl: "hsl(0,0%,3.9%)",
+ },
+ ],
+ stone: [
+ {
+ scale: 50,
+ hex: "#fafaf9",
+ rgb: "rgb(250,250,249)",
+ hsl: "hsl(60,9.1%,97.8%)",
+ },
+ {
+ scale: 100,
+ hex: "#f5f5f4",
+ rgb: "rgb(245,245,244)",
+ hsl: "hsl(60,4.8%,95.9%)",
+ },
+ {
+ scale: 200,
+ hex: "#e7e5e4",
+ rgb: "rgb(231,229,228)",
+ hsl: "hsl(20,5.9%,90%)",
+ },
+ {
+ scale: 300,
+ hex: "#d6d3d1",
+ rgb: "rgb(214,211,209)",
+ hsl: "hsl(24,5.7%,82.9%)",
+ },
+ {
+ scale: 400,
+ hex: "#a8a29e",
+ rgb: "rgb(168,162,158)",
+ hsl: "hsl(24,5.4%,63.9%)",
+ },
+ {
+ scale: 500,
+ hex: "#78716c",
+ rgb: "rgb(120,113,108)",
+ hsl: "hsl(25,5.3%,44.7%)",
+ },
+ {
+ scale: 600,
+ hex: "#57534e",
+ rgb: "rgb(87,83,78)",
+ hsl: "hsl(33.3,5.5%,32.4%)",
+ },
+ {
+ scale: 700,
+ hex: "#44403c",
+ rgb: "rgb(68,64,60)",
+ hsl: "hsl(30,6.3%,25.1%)",
+ },
+ {
+ scale: 800,
+ hex: "#292524",
+ rgb: "rgb(41,37,36)",
+ hsl: "hsl(12,6.5%,15.1%)",
+ },
+ {
+ scale: 900,
+ hex: "#1c1917",
+ rgb: "rgb(28,25,23)",
+ hsl: "hsl(24,9.8%,10%)",
+ },
+ {
+ scale: 950,
+ hex: "#0c0a09",
+ rgb: "rgb(12,10,9)",
+ hsl: "hsl(20,14.3%,4.1%)",
+ },
+ ],
+ red: [
+ {
+ scale: 50,
+ hex: "#fef2f2",
+ rgb: "rgb(254,242,242)",
+ hsl: "hsl(0,85.7%,97.3%)",
+ },
+ {
+ scale: 100,
+ hex: "#fee2e2",
+ rgb: "rgb(254,226,226)",
+ hsl: "hsl(0,93.3%,94.1%)",
+ },
+ {
+ scale: 200,
+ hex: "#fecaca",
+ rgb: "rgb(254,202,202)",
+ hsl: "hsl(0,96.3%,89.4%)",
+ },
+ {
+ scale: 300,
+ hex: "#fca5a5",
+ rgb: "rgb(252,165,165)",
+ hsl: "hsl(0,93.5%,81.8%)",
+ },
+ {
+ scale: 400,
+ hex: "#f87171",
+ rgb: "rgb(248,113,113)",
+ hsl: "hsl(0,90.6%,70.8%)",
+ },
+ {
+ scale: 500,
+ hex: "#ef4444",
+ rgb: "rgb(239,68,68)",
+ hsl: "hsl(0,84.2%,60.2%)",
+ },
+ {
+ scale: 600,
+ hex: "#dc2626",
+ rgb: "rgb(220,38,38)",
+ hsl: "hsl(0,72.2%,50.6%)",
+ },
+ {
+ scale: 700,
+ hex: "#b91c1c",
+ rgb: "rgb(185,28,28)",
+ hsl: "hsl(0,73.7%,41.8%)",
+ },
+ {
+ scale: 800,
+ hex: "#991b1b",
+ rgb: "rgb(153,27,27)",
+ hsl: "hsl(0,70%,35.3%)",
+ },
+ {
+ scale: 900,
+ hex: "#7f1d1d",
+ rgb: "rgb(127,29,29)",
+ hsl: "hsl(0,62.8%,30.6%)",
+ },
+ {
+ scale: 950,
+ hex: "#450a0a",
+ rgb: "rgb(69,10,10)",
+ hsl: "hsl(0,74.7%,15.5%)",
+ },
+ ],
+ orange: [
+ {
+ scale: 50,
+ hex: "#fff7ed",
+ rgb: "rgb(255,247,237)",
+ hsl: "hsl(33.3,100%,96.5%)",
+ },
+ {
+ scale: 100,
+ hex: "#ffedd5",
+ rgb: "rgb(255,237,213)",
+ hsl: "hsl(34.3,100%,91.8%)",
+ },
+ {
+ scale: 200,
+ hex: "#fed7aa",
+ rgb: "rgb(254,215,170)",
+ hsl: "hsl(32.1,97.7%,83.1%)",
+ },
+ {
+ scale: 300,
+ hex: "#fdba74",
+ rgb: "rgb(253,186,116)",
+ hsl: "hsl(30.7,97.2%,72.4%)",
+ },
+ {
+ scale: 400,
+ hex: "#fb923c",
+ rgb: "rgb(251,146,60)",
+ hsl: "hsl(27,96%,61%)",
+ },
+ {
+ scale: 500,
+ hex: "#f97316",
+ rgb: "rgb(249,115,22)",
+ hsl: "hsl(24.6,95%,53.1%)",
+ },
+ {
+ scale: 600,
+ hex: "#ea580c",
+ rgb: "rgb(234,88,12)",
+ hsl: "hsl(20.5,90.2%,48.2%)",
+ },
+ {
+ scale: 700,
+ hex: "#c2410c",
+ rgb: "rgb(194,65,12)",
+ hsl: "hsl(17.5,88.3%,40.4%)",
+ },
+ {
+ scale: 800,
+ hex: "#9a3412",
+ rgb: "rgb(154,52,18)",
+ hsl: "hsl(15,79.1%,33.7%)",
+ },
+ {
+ scale: 900,
+ hex: "#7c2d12",
+ rgb: "rgb(124,45,18)",
+ hsl: "hsl(15.3,74.6%,27.8%)",
+ },
+ {
+ scale: 950,
+ hex: "#431407",
+ rgb: "rgb(67,20,7)",
+ hsl: "hsl(13,81.1%,14.5%)",
+ },
+ ],
+ amber: [
+ {
+ scale: 50,
+ hex: "#fffbeb",
+ rgb: "rgb(255,251,235)",
+ hsl: "hsl(48,100%,96.1%)",
+ },
+ {
+ scale: 100,
+ hex: "#fef3c7",
+ rgb: "rgb(254,243,199)",
+ hsl: "hsl(48,96.5%,88.8%)",
+ },
+ {
+ scale: 200,
+ hex: "#fde68a",
+ rgb: "rgb(253,230,138)",
+ hsl: "hsl(48,96.6%,76.7%)",
+ },
+ {
+ scale: 300,
+ hex: "#fcd34d",
+ rgb: "rgb(252,211,77)",
+ hsl: "hsl(45.9,96.7%,64.5%)",
+ },
+ {
+ scale: 400,
+ hex: "#fbbf24",
+ rgb: "rgb(251,191,36)",
+ hsl: "hsl(43.3,96.4%,56.3%)",
+ },
+ {
+ scale: 500,
+ hex: "#f59e0b",
+ rgb: "rgb(245,158,11)",
+ hsl: "hsl(37.7,92.1%,50.2%)",
+ },
+ {
+ scale: 600,
+ hex: "#d97706",
+ rgb: "rgb(217,119,6)",
+ hsl: "hsl(32.1,94.6%,43.7%)",
+ },
+ {
+ scale: 700,
+ hex: "#b45309",
+ rgb: "rgb(180,83,9)",
+ hsl: "hsl(26,90.5%,37.1%)",
+ },
+ {
+ scale: 800,
+ hex: "#92400e",
+ rgb: "rgb(146,64,14)",
+ hsl: "hsl(22.7,82.5%,31.4%)",
+ },
+ {
+ scale: 900,
+ hex: "#78350f",
+ rgb: "rgb(120,53,15)",
+ hsl: "hsl(21.7,77.8%,26.5%)",
+ },
+ {
+ scale: 950,
+ hex: "#451a03",
+ rgb: "rgb(69,26,3)",
+ hsl: "hsl(20.9,91.7%,14.1%)",
+ },
+ ],
+ yellow: [
+ {
+ scale: 50,
+ hex: "#fefce8",
+ rgb: "rgb(254,252,232)",
+ hsl: "hsl(54.5,91.7%,95.3%)",
+ },
+ {
+ scale: 100,
+ hex: "#fef9c3",
+ rgb: "rgb(254,249,195)",
+ hsl: "hsl(54.9,96.7%,88%)",
+ },
+ {
+ scale: 200,
+ hex: "#fef08a",
+ rgb: "rgb(254,240,138)",
+ hsl: "hsl(52.8,98.3%,76.9%)",
+ },
+ {
+ scale: 300,
+ hex: "#fde047",
+ rgb: "rgb(253,224,71)",
+ hsl: "hsl(50.4,97.8%,63.5%)",
+ },
+ {
+ scale: 400,
+ hex: "#facc15",
+ rgb: "rgb(250,204,21)",
+ hsl: "hsl(47.9,95.8%,53.1%)",
+ },
+ {
+ scale: 500,
+ hex: "#eab308",
+ rgb: "rgb(234,179,8)",
+ hsl: "hsl(45.4,93.4%,47.5%)",
+ },
+ {
+ scale: 600,
+ hex: "#ca8a04",
+ rgb: "rgb(202,138,4)",
+ hsl: "hsl(40.6,96.1%,40.4%)",
+ },
+ {
+ scale: 700,
+ hex: "#a16207",
+ rgb: "rgb(161,98,7)",
+ hsl: "hsl(35.5,91.7%,32.9%)",
+ },
+ {
+ scale: 800,
+ hex: "#854d0e",
+ rgb: "rgb(133,77,14)",
+ hsl: "hsl(31.8,81%,28.8%)",
+ },
+ {
+ scale: 900,
+ hex: "#713f12",
+ rgb: "rgb(113,63,18)",
+ hsl: "hsl(28.4,72.5%,25.7%)",
+ },
+ {
+ scale: 950,
+ hex: "#422006",
+ rgb: "rgb(66,32,6)",
+ hsl: "hsl(26,83.3%,14.1%)",
+ },
+ ],
+ lime: [
+ {
+ scale: 50,
+ hex: "#f7fee7",
+ rgb: "rgb(247,254,231)",
+ hsl: "hsl(78.3,92%,95.1%)",
+ },
+ {
+ scale: 100,
+ hex: "#ecfccb",
+ rgb: "rgb(236,252,203)",
+ hsl: "hsl(79.6,89.1%,89.2%)",
+ },
+ {
+ scale: 200,
+ hex: "#d9f99d",
+ rgb: "rgb(217,249,157)",
+ hsl: "hsl(80.9,88.5%,79.6%)",
+ },
+ {
+ scale: 300,
+ hex: "#bef264",
+ rgb: "rgb(190,242,100)",
+ hsl: "hsl(82,84.5%,67.1%)",
+ },
+ {
+ scale: 400,
+ hex: "#a3e635",
+ rgb: "rgb(163,230,53)",
+ hsl: "hsl(82.7,78%,55.5%)",
+ },
+ {
+ scale: 500,
+ hex: "#84cc16",
+ rgb: "rgb(132,204,22)",
+ hsl: "hsl(83.7,80.5%,44.3%)",
+ },
+ {
+ scale: 600,
+ hex: "#65a30d",
+ rgb: "rgb(101,163,13)",
+ hsl: "hsl(84.8,85.2%,34.5%)",
+ },
+ {
+ scale: 700,
+ hex: "#4d7c0f",
+ rgb: "rgb(77,124,15)",
+ hsl: "hsl(85.9,78.4%,27.3%)",
+ },
+ {
+ scale: 800,
+ hex: "#3f6212",
+ rgb: "rgb(63,98,18)",
+ hsl: "hsl(86.3,69%,22.7%)",
+ },
+ {
+ scale: 900,
+ hex: "#365314",
+ rgb: "rgb(54,83,20)",
+ hsl: "hsl(87.6,61.2%,20.2%)",
+ },
+ {
+ scale: 950,
+ hex: "#1a2e05",
+ rgb: "rgb(26,46,5)",
+ hsl: "hsl(89.3,80.4%,10%)",
+ },
+ ],
+ green: [
+ {
+ scale: 50,
+ hex: "#f0fdf4",
+ rgb: "rgb(240,253,244)",
+ hsl: "hsl(138.5,76.5%,96.7%)",
+ },
+ {
+ scale: 100,
+ hex: "#dcfce7",
+ rgb: "rgb(220,252,231)",
+ hsl: "hsl(140.6,84.2%,92.5%)",
+ },
+ {
+ scale: 200,
+ hex: "#bbf7d0",
+ rgb: "rgb(187,247,208)",
+ hsl: "hsl(141,78.9%,85.1%)",
+ },
+ {
+ scale: 300,
+ hex: "#86efac",
+ rgb: "rgb(134,239,172)",
+ hsl: "hsl(141.7,76.6%,73.1%)",
+ },
+ {
+ scale: 400,
+ hex: "#4ade80",
+ rgb: "rgb(74,222,128)",
+ hsl: "hsl(141.9,69.2%,58%)",
+ },
+ {
+ scale: 500,
+ hex: "#22c55e",
+ rgb: "rgb(34,197,94)",
+ hsl: "hsl(142.1,70.6%,45.3%)",
+ },
+ {
+ scale: 600,
+ hex: "#16a34a",
+ rgb: "rgb(22,163,74)",
+ hsl: "hsl(142.1,76.2%,36.3%)",
+ },
+ {
+ scale: 700,
+ hex: "#15803d",
+ rgb: "rgb(21,128,61)",
+ hsl: "hsl(142.4,71.8%,29.2%)",
+ },
+ {
+ scale: 800,
+ hex: "#166534",
+ rgb: "rgb(22,101,52)",
+ hsl: "hsl(142.8,64.2%,24.1%)",
+ },
+ {
+ scale: 900,
+ hex: "#14532d",
+ rgb: "rgb(20,83,45)",
+ hsl: "hsl(143.8,61.2%,20.2%)",
+ },
+ {
+ scale: 950,
+ hex: "#052e16",
+ rgb: "rgb(5,46,22)",
+ hsl: "hsl(144.9,80.4%,10%)",
+ },
+ ],
+ emerald: [
+ {
+ scale: 50,
+ hex: "#ecfdf5",
+ rgb: "rgb(236,253,245)",
+ hsl: "hsl(151.8,81%,95.9%)",
+ },
+ {
+ scale: 100,
+ hex: "#d1fae5",
+ rgb: "rgb(209,250,229)",
+ hsl: "hsl(149.3,80.4%,90%)",
+ },
+ {
+ scale: 200,
+ hex: "#a7f3d0",
+ rgb: "rgb(167,243,208)",
+ hsl: "hsl(152.4,76%,80.4%)",
+ },
+ {
+ scale: 300,
+ hex: "#6ee7b7",
+ rgb: "rgb(110,231,183)",
+ hsl: "hsl(156.2,71.6%,66.9%)",
+ },
+ {
+ scale: 400,
+ hex: "#34d399",
+ rgb: "rgb(52,211,153)",
+ hsl: "hsl(158.1,64.4%,51.6%)",
+ },
+ {
+ scale: 500,
+ hex: "#10b981",
+ rgb: "rgb(16,185,129)",
+ hsl: "hsl(160.1,84.1%,39.4%)",
+ },
+ {
+ scale: 600,
+ hex: "#059669",
+ rgb: "rgb(5,150,105)",
+ hsl: "hsl(161.4,93.5%,30.4%)",
+ },
+ {
+ scale: 700,
+ hex: "#047857",
+ rgb: "rgb(4,120,87)",
+ hsl: "hsl(162.9,93.5%,24.3%)",
+ },
+ {
+ scale: 800,
+ hex: "#065f46",
+ rgb: "rgb(6,95,70)",
+ hsl: "hsl(163.1,88.1%,19.8%)",
+ },
+ {
+ scale: 900,
+ hex: "#064e3b",
+ rgb: "rgb(6,78,59)",
+ hsl: "hsl(164.2,85.7%,16.5%)",
+ },
+ {
+ scale: 950,
+ hex: "#022c22",
+ rgb: "rgb(2,44,34)",
+ hsl: "hsl(165.7,91.3%,9%)",
+ },
+ ],
+ teal: [
+ {
+ scale: 50,
+ hex: "#f0fdfa",
+ rgb: "rgb(240,253,250)",
+ hsl: "hsl(166.2,76.5%,96.7%)",
+ },
+ {
+ scale: 100,
+ hex: "#ccfbf1",
+ rgb: "rgb(204,251,241)",
+ hsl: "hsl(167.2,85.5%,89.2%)",
+ },
+ {
+ scale: 200,
+ hex: "#99f6e4",
+ rgb: "rgb(153,246,228)",
+ hsl: "hsl(168.4,83.8%,78.2%)",
+ },
+ {
+ scale: 300,
+ hex: "#5eead4",
+ rgb: "rgb(94,234,212)",
+ hsl: "hsl(170.6,76.9%,64.3%)",
+ },
+ {
+ scale: 400,
+ hex: "#2dd4bf",
+ rgb: "rgb(45,212,191)",
+ hsl: "hsl(172.5,66%,50.4%)",
+ },
+ {
+ scale: 500,
+ hex: "#14b8a6",
+ rgb: "rgb(20,184,166)",
+ hsl: "hsl(173.4,80.4%,40%)",
+ },
+ {
+ scale: 600,
+ hex: "#0d9488",
+ rgb: "rgb(13,148,136)",
+ hsl: "hsl(174.7,83.9%,31.6%)",
+ },
+ {
+ scale: 700,
+ hex: "#0f766e",
+ rgb: "rgb(15,118,110)",
+ hsl: "hsl(175.3,77.4%,26.1%)",
+ },
+ {
+ scale: 800,
+ hex: "#115e59",
+ rgb: "rgb(17,94,89)",
+ hsl: "hsl(176.1,69.4%,21.8%)",
+ },
+ {
+ scale: 900,
+ hex: "#134e4a",
+ rgb: "rgb(19,78,74)",
+ hsl: "hsl(175.9,60.8%,19%)",
+ },
+ {
+ scale: 950,
+ hex: "#042f2e",
+ rgb: "rgb(4,47,46)",
+ hsl: "hsl(178.6,84.3%,10%)",
+ },
+ ],
+ cyan: [
+ {
+ scale: 50,
+ hex: "#ecfeff",
+ rgb: "rgb(236,254,255)",
+ hsl: "hsl(183.2,100%,96.3%)",
+ },
+ {
+ scale: 100,
+ hex: "#cffafe",
+ rgb: "rgb(207,250,254)",
+ hsl: "hsl(185.1,95.9%,90.4%)",
+ },
+ {
+ scale: 200,
+ hex: "#a5f3fc",
+ rgb: "rgb(165,243,252)",
+ hsl: "hsl(186.2,93.5%,81.8%)",
+ },
+ {
+ scale: 300,
+ hex: "#67e8f9",
+ rgb: "rgb(103,232,249)",
+ hsl: "hsl(187,92.4%,69%)",
+ },
+ {
+ scale: 400,
+ hex: "#22d3ee",
+ rgb: "rgb(34,211,238)",
+ hsl: "hsl(187.9,85.7%,53.3%)",
+ },
+ {
+ scale: 500,
+ hex: "#06b6d4",
+ rgb: "rgb(6,182,212)",
+ hsl: "hsl(188.7,94.5%,42.7%)",
+ },
+ {
+ scale: 600,
+ hex: "#0891b2",
+ rgb: "rgb(8,145,178)",
+ hsl: "hsl(191.6,91.4%,36.5%)",
+ },
+ {
+ scale: 700,
+ hex: "#0e7490",
+ rgb: "rgb(14,116,144)",
+ hsl: "hsl(192.9,82.3%,31%)",
+ },
+ {
+ scale: 800,
+ hex: "#155e75",
+ rgb: "rgb(21,94,117)",
+ hsl: "hsl(194.4,69.6%,27.1%)",
+ },
+ {
+ scale: 900,
+ hex: "#164e63",
+ rgb: "rgb(22,78,99)",
+ hsl: "hsl(196.4,63.6%,23.7%)",
+ },
+ {
+ scale: 950,
+ hex: "#083344",
+ rgb: "rgb(8,51,68)",
+ hsl: "hsl(197,78.9%,14.9%)",
+ },
+ ],
+ sky: [
+ {
+ scale: 50,
+ hex: "#f0f9ff",
+ rgb: "rgb(240,249,255)",
+ hsl: "hsl(204,100%,97.1%)",
+ },
+ {
+ scale: 100,
+ hex: "#e0f2fe",
+ rgb: "rgb(224,242,254)",
+ hsl: "hsl(204,93.8%,93.7%)",
+ },
+ {
+ scale: 200,
+ hex: "#bae6fd",
+ rgb: "rgb(186,230,253)",
+ hsl: "hsl(200.6,94.4%,86.1%)",
+ },
+ {
+ scale: 300,
+ hex: "#7dd3fc",
+ rgb: "rgb(125,211,252)",
+ hsl: "hsl(199.4,95.5%,73.9%)",
+ },
+ {
+ scale: 400,
+ hex: "#38bdf8",
+ rgb: "rgb(56,189,248)",
+ hsl: "hsl(198.4,93.2%,59.6%)",
+ },
+ {
+ scale: 500,
+ hex: "#0ea5e9",
+ rgb: "rgb(14,165,233)",
+ hsl: "hsl(198.6,88.7%,48.4%)",
+ },
+ {
+ scale: 600,
+ hex: "#0284c7",
+ rgb: "rgb(2,132,199)",
+ hsl: "hsl(200.4,98%,39.4%)",
+ },
+ {
+ scale: 700,
+ hex: "#0369a1",
+ rgb: "rgb(3,105,161)",
+ hsl: "hsl(201.3,96.3%,32.2%)",
+ },
+ {
+ scale: 800,
+ hex: "#075985",
+ rgb: "rgb(7,89,133)",
+ hsl: "hsl(201,90%,27.5%)",
+ },
+ {
+ scale: 900,
+ hex: "#0c4a6e",
+ rgb: "rgb(12,74,110)",
+ hsl: "hsl(202,80.3%,23.9%)",
+ },
+ {
+ scale: 950,
+ hex: "#082f49",
+ rgb: "rgb(8,47,73)",
+ hsl: "hsl(204,80.2%,15.9%)",
+ },
+ ],
+ blue: [
+ {
+ scale: 50,
+ hex: "#eff6ff",
+ rgb: "rgb(239,246,255)",
+ hsl: "hsl(213.8,100%,96.9%)",
+ },
+ {
+ scale: 100,
+ hex: "#dbeafe",
+ rgb: "rgb(219,234,254)",
+ hsl: "hsl(214.3,94.6%,92.7%)",
+ },
+ {
+ scale: 200,
+ hex: "#bfdbfe",
+ rgb: "rgb(191,219,254)",
+ hsl: "hsl(213.3,96.9%,87.3%)",
+ },
+ {
+ scale: 300,
+ hex: "#93c5fd",
+ rgb: "rgb(147,197,253)",
+ hsl: "hsl(211.7,96.4%,78.4%)",
+ },
+ {
+ scale: 400,
+ hex: "#60a5fa",
+ rgb: "rgb(96,165,250)",
+ hsl: "hsl(213.1,93.9%,67.8%)",
+ },
+ {
+ scale: 500,
+ hex: "#3b82f6",
+ rgb: "rgb(59,130,246)",
+ hsl: "hsl(217.2,91.2%,59.8%)",
+ },
+ {
+ scale: 600,
+ hex: "#2563eb",
+ rgb: "rgb(37,99,235)",
+ hsl: "hsl(221.2,83.2%,53.3%)",
+ },
+ {
+ scale: 700,
+ hex: "#1d4ed8",
+ rgb: "rgb(29,78,216)",
+ hsl: "hsl(224.3,76.3%,48%)",
+ },
+ {
+ scale: 800,
+ hex: "#1e40af",
+ rgb: "rgb(30,64,175)",
+ hsl: "hsl(225.9,70.7%,40.2%)",
+ },
+ {
+ scale: 900,
+ hex: "#1e3a8a",
+ rgb: "rgb(30,58,138)",
+ hsl: "hsl(224.4,64.3%,32.9%)",
+ },
+ {
+ scale: 950,
+ hex: "#172554",
+ rgb: "rgb(23,37,84)",
+ hsl: "hsl(226.2,57%,21%)",
+ },
+ ],
+ indigo: [
+ {
+ scale: 50,
+ hex: "#eef2ff",
+ rgb: "rgb(238,242,255)",
+ hsl: "hsl(225.9,100%,96.7%)",
+ },
+ {
+ scale: 100,
+ hex: "#e0e7ff",
+ rgb: "rgb(224,231,255)",
+ hsl: "hsl(226.5,100%,93.9%)",
+ },
+ {
+ scale: 200,
+ hex: "#c7d2fe",
+ rgb: "rgb(199,210,254)",
+ hsl: "hsl(228,96.5%,88.8%)",
+ },
+ {
+ scale: 300,
+ hex: "#a5b4fc",
+ rgb: "rgb(165,180,252)",
+ hsl: "hsl(229.7,93.5%,81.8%)",
+ },
+ {
+ scale: 400,
+ hex: "#818cf8",
+ rgb: "rgb(129,140,248)",
+ hsl: "hsl(234.5,89.5%,73.9%)",
+ },
+ {
+ scale: 500,
+ hex: "#6366f1",
+ rgb: "rgb(99,102,241)",
+ hsl: "hsl(238.7,83.5%,66.7%)",
+ },
+ {
+ scale: 600,
+ hex: "#4f46e5",
+ rgb: "rgb(79,70,229)",
+ hsl: "hsl(243.4,75.4%,58.6%)",
+ },
+ {
+ scale: 700,
+ hex: "#4338ca",
+ rgb: "rgb(67,56,202)",
+ hsl: "hsl(244.5,57.9%,50.6%)",
+ },
+ {
+ scale: 800,
+ hex: "#3730a3",
+ rgb: "rgb(55,48,163)",
+ hsl: "hsl(243.7,54.5%,41.4%)",
+ },
+ {
+ scale: 900,
+ hex: "#312e81",
+ rgb: "rgb(49,46,129)",
+ hsl: "hsl(242.2,47.4%,34.3%)",
+ },
+ {
+ scale: 950,
+ hex: "#1e1b4b",
+ rgb: "rgb(30,27,75)",
+ hsl: "hsl(243.8,47.1%,20%)",
+ },
+ ],
+ violet: [
+ {
+ scale: 50,
+ hex: "#f5f3ff",
+ rgb: "rgb(245,243,255)",
+ hsl: "hsl(250,100%,97.6%)",
+ },
+ {
+ scale: 100,
+ hex: "#ede9fe",
+ rgb: "rgb(237,233,254)",
+ hsl: "hsl(251.4,91.3%,95.5%)",
+ },
+ {
+ scale: 200,
+ hex: "#ddd6fe",
+ rgb: "rgb(221,214,254)",
+ hsl: "hsl(250.5,95.2%,91.8%)",
+ },
+ {
+ scale: 300,
+ hex: "#c4b5fd",
+ rgb: "rgb(196,181,253)",
+ hsl: "hsl(252.5,94.7%,85.1%)",
+ },
+ {
+ scale: 400,
+ hex: "#a78bfa",
+ rgb: "rgb(167,139,250)",
+ hsl: "hsl(255.1,91.7%,76.3%)",
+ },
+ {
+ scale: 500,
+ hex: "#8b5cf6",
+ rgb: "rgb(139,92,246)",
+ hsl: "hsl(258.3,89.5%,66.3%)",
+ },
+ {
+ scale: 600,
+ hex: "#7c3aed",
+ rgb: "rgb(124,58,237)",
+ hsl: "hsl(262.1,83.3%,57.8%)",
+ },
+ {
+ scale: 700,
+ hex: "#6d28d9",
+ rgb: "rgb(109,40,217)",
+ hsl: "hsl(263.4,70%,50.4%)",
+ },
+ {
+ scale: 800,
+ hex: "#5b21b6",
+ rgb: "rgb(91,33,182)",
+ hsl: "hsl(263.4,69.3%,42.2%)",
+ },
+ {
+ scale: 900,
+ hex: "#4c1d95",
+ rgb: "rgb(76,29,149)",
+ hsl: "hsl(263.5,67.4%,34.9%)",
+ },
+ {
+ scale: 950,
+ hex: "#1e1b4b",
+ rgb: "rgb(46,16,101)",
+ hsl: "hsl(261.2,72.6%,22.9%)",
+ },
+ ],
+ purple: [
+ {
+ scale: 50,
+ hex: "#faf5ff",
+ rgb: "rgb(250,245,255)",
+ hsl: "hsl(270,100%,98%)",
+ },
+ {
+ scale: 100,
+ hex: "#f3e8ff",
+ rgb: "rgb(243,232,255)",
+ hsl: "hsl(268.7,100%,95.5%)",
+ },
+ {
+ scale: 200,
+ hex: "#e9d5ff",
+ rgb: "rgb(233,213,255)",
+ hsl: "hsl(268.6,100%,91.8%)",
+ },
+ {
+ scale: 300,
+ hex: "#d8b4fe",
+ rgb: "rgb(216,180,254)",
+ hsl: "hsl(269.2,97.4%,85.1%)",
+ },
+ {
+ scale: 400,
+ hex: "#c084fc",
+ rgb: "rgb(192,132,252)",
+ hsl: "hsl(270,95.2%,75.3%)",
+ },
+ {
+ scale: 500,
+ hex: "#a855f7",
+ rgb: "rgb(168,85,247)",
+ hsl: "hsl(270.7,91%,65.1%)",
+ },
+ {
+ scale: 600,
+ hex: "#9333ea",
+ rgb: "rgb(147,51,234)",
+ hsl: "hsl(271.5,81.3%,55.9%)",
+ },
+ {
+ scale: 700,
+ hex: "#7e22ce",
+ rgb: "rgb(126,34,206)",
+ hsl: "hsl(272.1,71.7%,47.1%)",
+ },
+ {
+ scale: 800,
+ hex: "#6b21a8",
+ rgb: "rgb(107,33,168)",
+ hsl: "hsl(272.9,67.2%,39.4%)",
+ },
+ {
+ scale: 900,
+ hex: "#581c87",
+ rgb: "rgb(88,28,135)",
+ hsl: "hsl(273.6,65.6%,32%)",
+ },
+ {
+ scale: 950,
+ hex: "#3b0764",
+ rgb: "rgb(59,7,100)",
+ hsl: "hsl(273.5,86.9%,21%)",
+ },
+ ],
+ fuchsia: [
+ {
+ scale: 50,
+ hex: "#fdf4ff",
+ rgb: "rgb(253,244,255)",
+ hsl: "hsl(289.1,100%,97.8%)",
+ },
+ {
+ scale: 100,
+ hex: "#fae8ff",
+ rgb: "rgb(250,232,255)",
+ hsl: "hsl(287,100%,95.5%)",
+ },
+ {
+ scale: 200,
+ hex: "#f5d0fe",
+ rgb: "rgb(245,208,254)",
+ hsl: "hsl(288.3,95.8%,90.6%)",
+ },
+ {
+ scale: 300,
+ hex: "#f0abfc",
+ rgb: "rgb(240,171,252)",
+ hsl: "hsl(291.1,93.1%,82.9%)",
+ },
+ {
+ scale: 400,
+ hex: "#e879f9",
+ rgb: "rgb(232,121,249)",
+ hsl: "hsl(292,91.4%,72.5%)",
+ },
+ {
+ scale: 500,
+ hex: "#d946ef",
+ rgb: "rgb(217,70,239)",
+ hsl: "hsl(292.2,84.1%,60.6%)",
+ },
+ {
+ scale: 600,
+ hex: "#c026d3",
+ rgb: "rgb(192,38,211)",
+ hsl: "hsl(293.4,69.5%,48.8%)",
+ },
+ {
+ scale: 700,
+ hex: "#a21caf",
+ rgb: "rgb(162,28,175)",
+ hsl: "hsl(294.7,72.4%,39.8%)",
+ },
+ {
+ scale: 800,
+ hex: "#86198f",
+ rgb: "rgb(134,25,143)",
+ hsl: "hsl(295.4,70.2%,32.9%)",
+ },
+ {
+ scale: 900,
+ hex: "#701a75",
+ rgb: "rgb(112,26,117)",
+ hsl: "hsl(296.7,63.6%,28%)",
+ },
+ {
+ scale: 950,
+ hex: "#4a044e",
+ rgb: "rgb(74,4,78)",
+ hsl: "hsl(296.8,90.2%,16.1%)",
+ },
+ ],
+ pink: [
+ {
+ scale: 50,
+ hex: "#fdf2f8",
+ rgb: "rgb(253,242,248)",
+ hsl: "hsl(327.3,73.3%,97.1%)",
+ },
+ {
+ scale: 100,
+ hex: "#fce7f3",
+ rgb: "rgb(252,231,243)",
+ hsl: "hsl(325.7,77.8%,94.7%)",
+ },
+ {
+ scale: 200,
+ hex: "#fbcfe8",
+ rgb: "rgb(251,207,232)",
+ hsl: "hsl(325.9,84.6%,89.8%)",
+ },
+ {
+ scale: 300,
+ hex: "#f9a8d4",
+ rgb: "rgb(249,168,212)",
+ hsl: "hsl(327.4,87.1%,81.8%)",
+ },
+ {
+ scale: 400,
+ hex: "#f472b6",
+ rgb: "rgb(244,114,182)",
+ hsl: "hsl(328.6,85.5%,70.2%)",
+ },
+ {
+ scale: 500,
+ hex: "#ec4899",
+ rgb: "rgb(236,72,153)",
+ hsl: "hsl(330.4,81.2%,60.4%)",
+ },
+ {
+ scale: 600,
+ hex: "#db2777",
+ rgb: "rgb(219,39,119)",
+ hsl: "hsl(333.3,71.4%,50.6%)",
+ },
+ {
+ scale: 700,
+ hex: "#be185d",
+ rgb: "rgb(190,24,93)",
+ hsl: "hsl(335.1,77.6%,42%)",
+ },
+ {
+ scale: 800,
+ hex: "#9d174d",
+ rgb: "rgb(157,23,77)",
+ hsl: "hsl(335.8,74.4%,35.3%)",
+ },
+ {
+ scale: 900,
+ hex: "#831843",
+ rgb: "rgb(131,24,67)",
+ hsl: "hsl(335.9,69%,30.4%)",
+ },
+ {
+ scale: 950,
+ hex: "#500724",
+ rgb: "rgb(80,7,36)",
+ hsl: "hsl(336.2,83.9%,17.1%)",
+ },
+ ],
+ rose: [
+ {
+ scale: 50,
+ hex: "#fff1f2",
+ rgb: "rgb(255,241,242)",
+ hsl: "hsl(355.7,100%,97.3%)",
+ },
+ {
+ scale: 100,
+ hex: "#ffe4e6",
+ rgb: "rgb(255,228,230)",
+ hsl: "hsl(355.6,100%,94.7%)",
+ },
+ {
+ scale: 200,
+ hex: "#fecdd3",
+ rgb: "rgb(254,205,211)",
+ hsl: "hsl(352.7,96.1%,90%)",
+ },
+ {
+ scale: 300,
+ hex: "#fda4af",
+ rgb: "rgb(253,164,175)",
+ hsl: "hsl(352.6,95.7%,81.8%)",
+ },
+ {
+ scale: 400,
+ hex: "#fb7185",
+ rgb: "rgb(251,113,133)",
+ hsl: "hsl(351.3,94.5%,71.4%)",
+ },
+ {
+ scale: 500,
+ hex: "#f43f5e",
+ rgb: "rgb(244,63,94)",
+ hsl: "hsl(349.7,89.2%,60.2%)",
+ },
+ {
+ scale: 600,
+ hex: "#e11d48",
+ rgb: "rgb(225,29,72)",
+ hsl: "hsl(346.8,77.2%,49.8%)",
+ },
+ {
+ scale: 700,
+ hex: "#be123c",
+ rgb: "rgb(190,18,60)",
+ hsl: "hsl(345.3,82.7%,40.8%)",
+ },
+ {
+ scale: 800,
+ hex: "#9f1239",
+ rgb: "rgb(159,18,57)",
+ hsl: "hsl(343.4,79.7%,34.7%)",
+ },
+ {
+ scale: 900,
+ hex: "#881337",
+ rgb: "rgb(136,19,55)",
+ hsl: "hsl(341.5,75.5%,30.4%)",
+ },
+ {
+ scale: 950,
+ hex: "#4c0519",
+ rgb: "rgb(76,5,25)",
+ hsl: "hsl(343.1,87.7%,15.9%)",
+ },
+ ],
+};
+
+export const colorMapping = {
+ light: {
+ background: "white",
+ foreground: "{{base}}-950",
+ card: "white",
+ "card-foreground": "{{base}}-950",
+ popover: "white",
+ "popover-foreground": "{{base}}-950",
+ primary: "{{base}}-900",
+ "primary-foreground": "{{base}}-50",
+ secondary: "{{base}}-100",
+ "secondary-foreground": "{{base}}-900",
+ muted: "{{base}}-100",
+ "muted-foreground": "{{base}}-500",
+ accent: "{{base}}-100",
+ "accent-foreground": "{{base}}-900",
+ destructive: "red-500",
+ "destructive-foreground": "{{base}}-50",
+ border: "{{base}}-200",
+ input: "{{base}}-200",
+ ring: "{{base}}-950",
+ "chart-1": "12 76% 61%",
+ "chart-2": "173 58% 39%",
+ "chart-3": "197 37% 24%",
+ "chart-4": "43 74% 66%",
+ "chart-5": "27 87% 67%",
+ },
+ dark: {
+ background: "{{base}}-950",
+ foreground: "{{base}}-50",
+ card: "{{base}}-950",
+ "card-foreground": "{{base}}-50",
+ popover: "{{base}}-950",
+ "popover-foreground": "{{base}}-50",
+ primary: "{{base}}-50",
+ "primary-foreground": "{{base}}-900",
+ secondary: "{{base}}-800",
+ "secondary-foreground": "{{base}}-50",
+ muted: "{{base}}-800",
+ "muted-foreground": "{{base}}-400",
+ accent: "{{base}}-800",
+ "accent-foreground": "{{base}}-50",
+ destructive: "red-900",
+ "destructive-foreground": "{{base}}-50",
+ border: "{{base}}-800",
+ input: "{{base}}-800",
+ ring: "{{base}}-300",
+ "chart-1": "220 70% 50%",
+ "chart-2": "160 60% 45%",
+ "chart-3": "30 80% 55%",
+ "chart-4": "280 65% 60%",
+ "chart-5": "340 75% 55%",
+ },
+} as const;
diff --git a/registry/registry-examples.ts b/registry/registry-examples.ts
new file mode 100644
index 00000000..a0519c4b
--- /dev/null
+++ b/registry/registry-examples.ts
@@ -0,0 +1,480 @@
+import { Registry } from "@/registry/schema";
+
+export const examples: Registry = [
+ {
+ name: "magic-card-demo",
+ type: "registry:example",
+ registryDependencies: ["magic-card"],
+ files: ["example/magic-card-demo.tsx"],
+ },
+ {
+ name: "neon-gradient-card-demo",
+ type: "registry:example",
+ files: ["example/neon-gradient-card-demo.tsx"],
+ },
+ {
+ name: "meteors-demo",
+ type: "registry:example",
+ registryDependencies: ["meteors"],
+ files: ["example/meteors-demo.tsx"],
+ },
+ {
+ name: "grid-pattern-demo",
+ type: "registry:example",
+ registryDependencies: ["grid-pattern"],
+ files: ["example/grid-pattern-demo.tsx"],
+ },
+ {
+ name: "grid-pattern-linear-gradient",
+ type: "registry:example",
+ registryDependencies: ["grid-pattern"],
+ files: ["example/grid-pattern-linear-gradient.tsx"],
+ },
+ {
+ name: "grid-pattern-dashed",
+ type: "registry:example",
+ registryDependencies: ["grid-pattern"],
+ files: ["example/grid-pattern-dashed.tsx"],
+ },
+ {
+ name: "dot-pattern-demo",
+ type: "registry:example",
+ registryDependencies: ["dot-pattern"],
+ files: ["example/dot-pattern-demo.tsx"],
+ },
+ {
+ name: "dot-pattern-linear-gradient",
+ type: "registry:example",
+ registryDependencies: ["dot-pattern"],
+ files: ["example/dot-pattern-linear-gradient.tsx"],
+ },
+ {
+ name: "flickering-grid-demo",
+ type: "registry:example",
+ files: ["example/flickering-grid-demo.tsx"],
+ },
+ {
+ name: "flickering-grid-rounded-demo",
+ type: "registry:example",
+ files: ["example/flickering-grid-rounded-demo.tsx"],
+ },
+ {
+ name: "hero-video-dialog-demo",
+ type: "registry:example",
+ files: ["example/hero-video-dialog-demo.tsx"],
+ },
+ {
+ name: "hero-video-dialog-demo-top-in-bottom-out",
+ type: "registry:example",
+ files: ["example/hero-video-dialog-demo-top-in-bottom-out.tsx"],
+ },
+ {
+ name: "marquee-demo",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["example/marquee-demo.tsx"],
+ },
+ {
+ name: "marquee-demo-vertical",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["example/marquee-demo-vertical.tsx"],
+ },
+ {
+ name: "marquee-logos",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["example/marquee-logos.tsx"],
+ },
+ {
+ name: "marquee-3d",
+ type: "registry:example",
+ registryDependencies: ["marquee"],
+ files: ["example/marquee-3d.tsx"],
+ },
+ {
+ name: "globe-demo",
+ type: "registry:example",
+ registryDependencies: ["globe"],
+ files: ["example/globe-demo.tsx"],
+ },
+ {
+ name: "tweet-card-demo",
+ type: "registry:example",
+ registryDependencies: ["tweet-card"],
+ files: ["example/tweet-card-demo.tsx"],
+ },
+ {
+ name: "tweet-card-images",
+ type: "registry:example",
+ registryDependencies: ["tweet-card"],
+ files: ["example/tweet-card-images.tsx"],
+ },
+ {
+ name: "tweet-card-meta-preview",
+ type: "registry:example",
+ registryDependencies: ["tweet-card"],
+ files: ["example/tweet-card-meta-preview.tsx"],
+ },
+ {
+ name: "shimmer-button-demo",
+ type: "registry:example",
+ registryDependencies: ["shimmer-button"],
+ files: ["example/shimmer-button-demo.tsx"],
+ },
+ {
+ name: "bento-demo",
+ type: "registry:example",
+ registryDependencies: [
+ "bento-grid",
+ "marquee",
+ "animated-list-demo",
+ "animated-beam-multiple-outputs",
+ "shadcn:command",
+ "shadcn:calendar",
+ ],
+ dependencies: ["@radix-ui/react-icons"],
+ files: ["example/bento-demo.tsx"],
+ },
+ {
+ name: "bento-demo-vertical",
+ type: "registry:example",
+ registryDependencies: ["bento-grid"],
+ dependencies: ["@radix-ui/react-icons"],
+ files: ["example/bento-demo-vertical.tsx"],
+ },
+ {
+ name: "number-ticker-demo",
+ type: "registry:example",
+ registryDependencies: ["number-ticker"],
+ files: ["example/number-ticker-demo.tsx"],
+ },
+ {
+ name: "number-ticker-decimal-demo",
+ type: "registry:example",
+ registryDependencies: ["number-ticker"],
+ files: ["example/number-ticker-decimal-demo.tsx"],
+ },
+ {
+ name: "ripple-demo",
+ type: "registry:example",
+ registryDependencies: ["ripple"],
+ files: ["example/ripple-demo.tsx"],
+ },
+ {
+ name: "retro-grid-demo",
+ type: "registry:example",
+ files: ["example/retro-grid-demo.tsx"],
+ },
+ {
+ name: "animated-list-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-list"],
+ files: ["example/animated-list-demo.tsx"],
+ },
+ {
+ name: "animated-shiny-text-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-shiny-text"],
+ dependencies: ["@radix-ui/react-icons"],
+ files: ["example/animated-shiny-text-demo.tsx"],
+ },
+ {
+ name: "particles-demo",
+ type: "registry:example",
+ registryDependencies: ["particles"],
+ dependencies: ["next-themes"],
+ files: ["example/particles-demo.tsx"],
+ },
+ {
+ name: "animated-grid-pattern-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-grid-pattern"],
+ files: ["example/animated-grid-pattern-demo.tsx"],
+ },
+ {
+ name: "border-beam-demo",
+ type: "registry:example",
+ registryDependencies: ["border-beam"],
+ files: ["example/border-beam-demo.tsx"],
+ },
+ {
+ name: "animated-beam-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ dependencies: ["@radix-ui/react-icons"],
+ files: ["example/animated-beam-demo.tsx"],
+ },
+ {
+ name: "animated-beam-unidirectional",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["example/animated-beam-unidirectional.tsx"],
+ },
+ {
+ name: "animated-beam-bidirectional",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["example/animated-beam-bidirectional.tsx"],
+ },
+ {
+ name: "animated-beam-multiple-inputs",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["example/animated-beam-multiple-inputs.tsx"],
+ },
+ {
+ name: "animated-beam-multiple-outputs",
+ type: "registry:example",
+ registryDependencies: ["animated-beam"],
+ files: ["example/animated-beam-multiple-outputs.tsx"],
+ },
+ {
+ name: "text-reveal-demo",
+ type: "registry:example",
+ registryDependencies: ["text-reveal"],
+ files: ["example/text-reveal-demo.tsx"],
+ },
+ {
+ name: "animated-gradient-text-demo",
+ type: "registry:example",
+ registryDependencies: ["animated-gradient-text"],
+ dependencies: ["lucide-react"],
+ files: ["example/animated-gradient-text-demo.tsx"],
+ },
+ {
+ name: "orbiting-circles-demo",
+ type: "registry:example",
+ registryDependencies: ["orbiting-circles"],
+ dependencies: ["@radix-ui/react-icons"],
+ files: ["example/orbiting-circles-demo.tsx"],
+ },
+ {
+ name: "dock-demo",
+ type: "registry:example",
+ registryDependencies: ["dock"],
+ files: ["example/dock-demo.tsx"],
+ },
+ {
+ name: "dock-demo-2",
+ type: "registry:example",
+ registryDependencies: ["dock"],
+ files: ["example/dock-demo-2.tsx"],
+ },
+ {
+ name: "dock-demo-3",
+ type: "registry:example",
+ registryDependencies: ["dock"],
+ files: ["example/dock-demo-3.tsx"],
+ },
+ {
+ name: "word-rotate-demo",
+ type: "registry:example",
+ registryDependencies: ["word-rotate"],
+ files: ["example/word-rotate-demo.tsx"],
+ },
+ {
+ name: "hyper-text-demo",
+ type: "registry:example",
+ registryDependencies: ["hyper-text"],
+ files: ["example/hyper-text-demo.tsx"],
+ },
+ {
+ name: "avatar-circles-demo",
+ type: "registry:example",
+ registryDependencies: ["avatar-circles"],
+ files: ["example/avatar-circles-demo.tsx"],
+ },
+ {
+ name: "word-pull-up-demo",
+ type: "registry:example",
+ registryDependencies: ["word-pull-up"],
+ files: ["example/word-pull-up-demo.tsx"],
+ },
+ {
+ name: "typing-animation-demo",
+ type: "registry:example",
+ registryDependencies: ["typing-animation"],
+ files: ["example/typing-animation-demo.tsx"],
+ },
+ {
+ name: "blur-in-demo",
+ type: "registry:example",
+ registryDependencies: ["blur-in"],
+ files: ["example/blur-in-demo.tsx"],
+ },
+ {
+ name: "scroll-based-velocity-demo",
+ type: "registry:example",
+ registryDependencies: ["scroll-based-velocity"],
+ files: ["example/scroll-based-velocity-demo.tsx"],
+ },
+ {
+ name: "letter-pullup-demo",
+ type: "registry:example",
+ registryDependencies: ["letter-pullup"],
+ files: ["example/letter-pullup-demo.tsx"],
+ },
+ {
+ name: "flip-text-demo",
+ type: "registry:example",
+ registryDependencies: ["flip-text"],
+ files: ["example/flip-text-demo.tsx"],
+ },
+ {
+ name: "sparkles-text-demo",
+ type: "registry:example",
+ files: ["example/sparkles-text-demo.tsx"],
+ },
+ {
+ name: "icon-cloud-demo",
+ type: "registry:example",
+ registryDependencies: ["icon-cloud"],
+ files: ["example/icon-cloud-demo.tsx"],
+ },
+ {
+ name: "wavy-dot-pattern-demo",
+ type: "registry:example",
+ files: ["example/wavy-dot-pattern-demo.tsx"],
+ },
+ {
+ name: "gradual-spacing-demo",
+ type: "registry:example",
+ files: ["example/gradual-spacing-demo.tsx"],
+ },
+ {
+ name: "word-fade-in-demo",
+ type: "registry:example",
+ files: ["example/word-fade-in-demo.tsx"],
+ },
+ {
+ name: "fade-text-demo",
+ type: "registry:example",
+ files: ["example/fade-text-demo.tsx"],
+ },
+ {
+ name: "shiny-button-demo",
+ type: "registry:example",
+ files: ["example/shiny-button-demo.tsx"],
+ },
+ {
+ name: "box-reveal-demo",
+ type: "registry:example",
+ files: ["example/box-reveal-demo.tsx"],
+ },
+ {
+ name: "animated-circular-progress-bar-demo",
+ type: "registry:example",
+ files: ["example/animated-circular-progress-bar-demo.tsx"],
+ },
+ {
+ name: "shine-border-demo",
+ type: "registry:example",
+ files: ["example/shine-border-demo.tsx"],
+ },
+ {
+ name: "shine-border-demo-2",
+ type: "registry:example",
+ files: ["example/shine-border-demo-2.tsx"],
+ },
+ {
+ name: "confetti-demo",
+ type: "registry:example",
+ files: ["example/confetti-demo.tsx"],
+ },
+ {
+ name: "confetti-basic-cannon",
+ type: "registry:example",
+ files: ["example/confetti-basic-cannon.tsx"],
+ },
+ {
+ name: "confetti-random-direction",
+ type: "registry:example",
+ files: ["example/confetti-random-direction.tsx"],
+ },
+ {
+ name: "confetti-fireworks",
+ type: "registry:example",
+ files: ["example/confetti-fireworks.tsx"],
+ },
+ {
+ name: "confetti-stars",
+ type: "registry:example",
+ files: ["example/confetti-stars.tsx"],
+ },
+ {
+ name: "confetti-side-cannons",
+ type: "registry:example",
+ files: ["example/confetti-side-cannons.tsx"],
+ },
+ {
+ name: "confetti-custom-shapes",
+ type: "registry:example",
+ files: ["example/confetti-custom-shapes.tsx"],
+ },
+ {
+ name: "confetti-emoji",
+ type: "registry:example",
+ files: ["example/confetti-emoji.tsx"],
+ },
+ {
+ name: "animated-subscribe-button-demo",
+ type: "registry:example",
+ files: ["example/animated-subscribe-button-demo.tsx"],
+ },
+ {
+ name: "cool-mode-demo",
+ type: "registry:example",
+ files: ["example/cool-mode-demo.tsx"],
+ },
+ {
+ name: "cool-mode-custom",
+ type: "registry:example",
+ files: ["example/cool-mode-custom.tsx"],
+ },
+ {
+ name: "pulsating-button-demo",
+ type: "registry:example",
+ files: ["example/pulsating-button-demo.tsx"],
+ },
+ {
+ name: "file-tree-demo",
+ type: "registry:example",
+ files: ["example/file-tree-demo.tsx"],
+ },
+ {
+ name: "blur-fade-demo",
+ type: "registry:example",
+ files: ["example/blur-fade-demo.tsx"],
+ },
+ {
+ name: "blur-fade-text-demo",
+ type: "registry:example",
+ files: ["example/blur-fade-text-demo.tsx"],
+ },
+ {
+ name: "safari-demo",
+ type: "registry:example",
+ files: ["example/safari-demo.tsx"],
+ },
+ {
+ name: "safari-demo-2",
+ type: "registry:example",
+ files: ["example/safari-demo-2.tsx"],
+ },
+ {
+ name: "iphone-15-pro-demo",
+ type: "registry:example",
+ files: ["example/iphone-15-pro-demo.tsx"],
+ },
+ {
+ name: "iphone-15-pro-demo-2",
+ type: "registry:example",
+ files: ["example/iphone-15-pro-demo-2.tsx"],
+ },
+ {
+ name: "rainbow-button-demo",
+ type: "registry:example",
+ files: ["example/rainbow-button-demo.tsx"],
+ },
+];
diff --git a/registry/registry-hooks.ts b/registry/registry-hooks.ts
new file mode 100644
index 00000000..26760f8c
--- /dev/null
+++ b/registry/registry-hooks.ts
@@ -0,0 +1,3 @@
+import { Registry } from "@/registry/schema";
+
+export const hooks: Registry = [];
diff --git a/registry/registry-lib.ts b/registry/registry-lib.ts
new file mode 100644
index 00000000..1f6d1262
--- /dev/null
+++ b/registry/registry-lib.ts
@@ -0,0 +1,15 @@
+import { Registry } from "@/registry/schema";
+
+export const lib: Registry = [
+ {
+ name: "utils",
+ type: "registry:lib",
+ dependencies: ["clsx", "tailwind-merge"],
+ files: [
+ {
+ path: "lib/utils.ts",
+ type: "registry:lib",
+ },
+ ],
+ },
+];
diff --git a/registry/registry-styles.ts b/registry/registry-styles.ts
new file mode 100644
index 00000000..34402da0
--- /dev/null
+++ b/registry/registry-styles.ts
@@ -0,0 +1,8 @@
+export const styles = [
+ {
+ name: "default",
+ label: "Default",
+ },
+] as const;
+
+export type Style = (typeof styles)[number];
diff --git a/registry/registry-themes.ts b/registry/registry-themes.ts
new file mode 100644
index 00000000..ab2cd1c2
--- /dev/null
+++ b/registry/registry-themes.ts
@@ -0,0 +1,3 @@
+import { Registry } from "./schema";
+
+export const themes: Registry = [];
diff --git a/registry/registry-ui.ts b/registry/registry-ui.ts
new file mode 100644
index 00000000..2066f83f
--- /dev/null
+++ b/registry/registry-ui.ts
@@ -0,0 +1,576 @@
+import { Registry } from "@/registry/schema";
+
+export const ui: Registry = [
+ {
+ name: "magic-card",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/magic-card.tsx"],
+ },
+ {
+ name: "neon-gradient-card",
+ type: "registry:ui",
+ files: ["magicui/neon-gradient-card.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ "background-position-spin":
+ "background-position-spin 3000ms infinite alternate",
+ },
+ keyframes: {
+ "background-position-spin": {
+ "0%": { backgroundPosition: "top center" },
+ "100%": { backgroundPosition: "bottom center" },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "meteors",
+ type: "registry:ui",
+ files: ["magicui/meteors.tsx"],
+ },
+ {
+ name: "grid-pattern",
+ type: "registry:ui",
+ files: ["magicui/grid-pattern.tsx"],
+ },
+ {
+ name: "dot-pattern",
+ type: "registry:ui",
+ files: ["magicui/dot-pattern.tsx"],
+ },
+ {
+ name: "flickering-grid",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/flickering-grid.tsx"],
+ },
+ {
+ name: "hero-video-dialog",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/hero-video-dialog.tsx"],
+ },
+ {
+ name: "marquee",
+ type: "registry:ui",
+ files: ["magicui/marquee.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ keyframes: {
+ marquee: {
+ from: { transform: "translateX(0)" },
+ to: { transform: "translateX(calc(-100% - var(--gap)))" },
+ },
+ "marquee-vertical": {
+ from: { transform: "translateY(0)" },
+ to: { transform: "translateY(calc(-100% - var(--gap)))" },
+ },
+ },
+ animation: {
+ marquee: "marquee var(--duration) infinite linear",
+ "marquee-vertical":
+ "marquee-vertical var(--duration) linear infinite",
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "globe",
+ type: "registry:ui",
+ dependencies: ["cobe", "react-spring"],
+ files: ["magicui/globe.tsx"],
+ },
+ {
+ name: "shimmer-button",
+ type: "registry:ui",
+ files: ["magicui/shimmer-button.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ "shimmer-slide":
+ "shimmer-slide var(--speed) ease-in-out infinite alternate",
+ "spin-around":
+ "spin-around calc(var(--speed) * 2) infinite linear",
+ },
+ keyframes: {
+ "shimmer-slide": {
+ to: {
+ transform: "translate(calc(100cqw - 100%), 0)",
+ },
+ },
+ "spin-around": {
+ "0%": {
+ transform: "translateZ(0) rotate(0)",
+ },
+ "15%, 35%": {
+ transform: "translateZ(0) rotate(90deg)",
+ },
+ "65%, 85%": {
+ transform: "translateZ(0) rotate(270deg)",
+ },
+ "100%": {
+ transform: "translateZ(0) rotate(360deg)",
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "tweet-card",
+ type: "registry:ui",
+ dependencies: ["react-tweet"],
+ files: ["magicui/tweet-card.tsx"],
+ },
+ {
+ name: "client-tweet-card",
+ type: "registry:ui",
+ dependencies: ["react-tweet"],
+ files: ["magicui/client-tweet-card.tsx"],
+ },
+ {
+ name: "bento-grid",
+ type: "registry:ui",
+ dependencies: ["@radix-ui/react-icons"],
+ files: ["magicui/bento-grid.tsx"],
+ },
+ {
+ name: "particles",
+ type: "registry:ui",
+ files: ["magicui/particles.tsx"],
+ },
+ {
+ name: "number-ticker",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/number-ticker.tsx"],
+ },
+ {
+ name: "ripple",
+ type: "registry:ui",
+ files: ["magicui/ripple.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ ripple:
+ "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite",
+ },
+ keyframes: {
+ ripple: {
+ "0%, 100%": {
+ transform: "translate(-50%, -50%) scale(1)",
+ },
+ "50%": {
+ transform: "translate(-50%, -50%) scale(0.9)",
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "retro-grid",
+ type: "registry:ui",
+ files: ["magicui/retro-grid.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ grid: "grid 15s linear infinite",
+ },
+ keyframes: {
+ grid: {
+ "0%": { transform: "translateY(-50%)" },
+ "100%": { transform: "translateY(0)" },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "animated-list",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/animated-list.tsx"],
+ },
+ {
+ name: "animated-shiny-text",
+ type: "registry:ui",
+ files: ["magicui/animated-shiny-text.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ "shiny-text": "shiny-text 8s infinite",
+ },
+ keyframes: {
+ "shiny-text": {
+ "0%, 90%, 100%": {
+ "background-position": "calc(-100% - var(--shiny-width)) 0",
+ },
+ "30%, 60%": {
+ "background-position": "calc(100% + var(--shiny-width)) 0",
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "animated-grid-pattern",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/animated-grid-pattern.tsx"],
+ },
+ {
+ name: "border-beam",
+ type: "registry:ui",
+ files: ["magicui/border-beam.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ "border-beam":
+ "border-beam calc(var(--duration)*1s) infinite linear",
+ },
+ keyframes: {
+ "border-beam": {
+ "100%": {
+ "offset-distance": "100%",
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "animated-beam",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/animated-beam.tsx"],
+ },
+ {
+ name: "text-reveal",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/text-reveal.tsx"],
+ },
+ {
+ name: "hyper-text",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/hyper-text.tsx"],
+ },
+ {
+ name: "animated-gradient-text",
+ type: "registry:ui",
+ files: ["magicui/animated-gradient-text.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ gradient: "gradient 8s linear infinite",
+ },
+ keyframes: {
+ gradient: {
+ to: {
+ backgroundPosition: "var(--bg-size) 0",
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "orbiting-circles",
+ type: "registry:ui",
+ files: ["magicui/orbiting-circles.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ orbit: "orbit calc(var(--duration)*1s) linear infinite",
+ },
+ keyframes: {
+ orbit: {
+ "0%": {
+ transform:
+ "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)",
+ },
+ "100%": {
+ transform:
+ "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)",
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "dock",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/dock.tsx"],
+ },
+ {
+ name: "word-rotate",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/word-rotate.tsx"],
+ },
+ {
+ name: "avatar-circles",
+ type: "registry:ui",
+ files: ["magicui/avatar-circles.tsx"],
+ },
+ {
+ name: "word-pull-up",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/word-pull-up.tsx"],
+ },
+ {
+ name: "typing-animation",
+ type: "registry:ui",
+ files: ["magicui/typing-animation.tsx"],
+ },
+ {
+ name: "blur-in",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/blur-in.tsx"],
+ },
+ {
+ name: "letter-pullup",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/letter-pullup.tsx"],
+ },
+ {
+ name: "sparkles-text",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/sparkles-text.tsx"],
+ },
+ {
+ name: "flip-text",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/flip-text.tsx"],
+ },
+ {
+ name: "icon-cloud",
+ type: "registry:ui",
+ dependencies: ["next-themes", "react-icon-cloud"],
+ files: ["magicui/icon-cloud.tsx"],
+ },
+ {
+ name: "gradual-spacing",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/gradual-spacing.tsx"],
+ },
+ {
+ name: "word-fade-in",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/word-fade-in.tsx"],
+ },
+ {
+ name: "scroll-based-velocity",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/scroll-based-velocity.tsx"],
+ },
+ {
+ name: "fade-text",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/fade-text.tsx"],
+ },
+ {
+ name: "shiny-button",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/shiny-button.tsx"],
+ },
+ {
+ name: "box-reveal",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/box-reveal.tsx"],
+ },
+ {
+ name: "shine-border",
+ type: "registry:ui",
+ files: ["magicui/shine-border.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ shine: "shine var(--duration) infinite linear",
+ },
+ keyframes: {
+ shine: {
+ "0%": {
+ "background-position": "0% 0%",
+ },
+ "50%": {
+ "background-position": "100% 100%",
+ },
+ to: {
+ "background-position": "0% 0%",
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "animated-circular-progress-bar",
+ type: "registry:ui",
+ files: ["magicui/animated-circular-progress-bar.tsx"],
+ },
+ {
+ name: "confetti",
+ type: "registry:ui",
+ dependencies: ["canvas-confetti", "@types/canvas-confetti"],
+ files: ["magicui/confetti.tsx"],
+ },
+ {
+ name: "animated-subscribe-button",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/animated-subscribe-button.tsx"],
+ },
+ {
+ name: "cool-mode",
+ type: "registry:ui",
+ files: ["magicui/cool-mode.tsx"],
+ },
+ {
+ name: "pulsating-button",
+ type: "registry:ui",
+ files: ["magicui/pulsating-button.tsx"],
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ animation: {
+ pulse: "pulse var(--duration) ease-out infinite",
+ },
+ keyframes: {
+ pulse: {
+ "0%, 100%": { boxShadow: "0 0 0 0 var(--pulse-color)" },
+ "50%": { boxShadow: "0 0 0 8px var(--pulse-color)" },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ {
+ name: "file-tree",
+ type: "registry:ui",
+ files: ["magicui/file-tree.tsx"],
+ },
+ {
+ name: "blur-fade",
+ type: "registry:ui",
+ dependencies: ["framer-motion"],
+ files: ["magicui/blur-fade.tsx"],
+ },
+ {
+ name: "safari",
+ type: "registry:ui",
+ files: ["magicui/safari.tsx"],
+ },
+ {
+ name: "iphone-15-pro",
+ type: "registry:ui",
+ files: ["magicui/iphone-15-pro.tsx"],
+ },
+ {
+ name: "rainbow-button",
+ type: "registry:ui",
+ files: ["magicui/rainbow-button.tsx"],
+ cssVars: {
+ light: {
+ "--color-1": "0 100% 63%",
+ "--color-2": "270 100% 63%",
+ "--color-3": "210 100% 63%",
+ "--color-4": "195 100% 63%",
+ "--color-5": "90 100% 63%",
+ },
+ dark: {
+ "--color-1": "0 100% 63%",
+ "--color-2": "270 100% 63%",
+ "--color-3": "210 100% 63%",
+ "--color-4": "195 100% 63%",
+ "--color-5": "90 100% 63%",
+ },
+ },
+ tailwind: {
+ config: {
+ theme: {
+ extend: {
+ colors: {
+ "color-1": "hsl(var(--color-1))",
+ "color-2": "hsl(var(--color-2))",
+ "color-3": "hsl(var(--color-3))",
+ "color-4": "hsl(var(--color-4))",
+ "color-5": "hsl(var(--color-5))",
+ },
+ animation: {
+ rainbow: "rainbow var(--speed, 2s) infinite linear",
+ },
+ keyframes: {
+ rainbow: {
+ "0%": { "background-position": "0%" },
+ "100%": { "background-position": "200%" },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+];
diff --git a/registry/schema.ts b/registry/schema.ts
index 9dd40dc7..78339a8f 100644
--- a/registry/schema.ts
+++ b/registry/schema.ts
@@ -1,21 +1,90 @@
-import * as z from "zod";
+import { z } from "zod";
-export const registrySchema = z.record(
+export const blockChunkSchema = z.object({
+ name: z.string(),
+ description: z.string(),
+ component: z.any(),
+ file: z.string(),
+ code: z.string().optional(),
+ container: z
+ .object({
+ className: z.string().nullish(),
+ })
+ .optional(),
+});
+
+export const registryItemTypeSchema = z.enum([
+ "registry:style",
+ "registry:lib",
+ "registry:example",
+ "registry:block",
+ "registry:component",
+ "registry:ui",
+ "registry:hook",
+ "registry:theme",
+ "registry:page",
+]);
+
+export const registryItemFileSchema = z.union([
z.string(),
z.object({
- name: z.string(),
- dependencies: z.array(z.string()).optional(),
- registryDependencies: z.array(z.string()).optional(),
- files: z.array(z.string()),
- type: z.enum([
- "components:ui",
- "components:magicui",
- "components:component",
- "components:example",
- "components:blocks",
- ]),
- component: z.function().args(z.any()).returns(z.any()).optional(),
+ path: z.string(),
+ content: z.string().optional(),
+ type: registryItemTypeSchema,
+ target: z.string().optional(),
+ }),
+]);
+
+export const registryItemTailwindSchema = z.object({
+ config: z.object({
+ content: z.array(z.string()).optional(),
+ theme: z.record(z.string(), z.any()).optional(),
+ plugins: z.array(z.string()).optional(),
}),
-);
+});
+
+export const registryItemCssVarsSchema = z.object({
+ light: z.record(z.string(), z.string()).optional(),
+ dark: z.record(z.string(), z.string()).optional(),
+});
+
+export const registryEntrySchema = z.object({
+ name: z.string(),
+ type: registryItemTypeSchema,
+ description: z.string().optional(),
+ dependencies: z.array(z.string()).optional(),
+ devDependencies: z.array(z.string()).optional(),
+ registryDependencies: z.array(z.string()).optional(),
+ files: z.array(registryItemFileSchema).optional(),
+ tailwind: registryItemTailwindSchema.optional(),
+ cssVars: registryItemCssVarsSchema.optional(),
+ source: z.string().optional(),
+ category: z.string().optional(),
+ subcategory: z.string().optional(),
+ chunks: z.array(blockChunkSchema).optional(),
+ docs: z.string().optional(),
+});
+
+export const registrySchema = z.array(registryEntrySchema);
+
+export type RegistryEntry = z.infer<typeof registryEntrySchema>;
export type Registry = z.infer<typeof registrySchema>;
+
+export const blockSchema = registryEntrySchema.extend({
+ type: z.literal("registry:block"),
+ style: z.enum(["default"]),
+ component: z.any(),
+ container: z
+ .object({
+ height: z.string().nullish(),
+ className: z.string().nullish(),
+ })
+ .optional(),
+ code: z.string(),
+ highlightedCode: z.string(),
+});
+
+export type Block = z.infer<typeof blockSchema>;
+
+export type BlockChunk = z.infer<typeof blockChunkSchema>;
diff --git a/scripts/build-registry.mts b/scripts/build-registry.mts
new file mode 100644
index 00000000..f4f4464b
--- /dev/null
+++ b/scripts/build-registry.mts
@@ -0,0 +1,776 @@
+// @sts-nocheck
+import { existsSync, promises as fs } from "fs";
+import { tmpdir } from "os";
+import path from "path";
+import { cwd } from "process";
+import template from "lodash.template";
+import { rimraf } from "rimraf";
+import { Project, ScriptKind, SyntaxKind } from "ts-morph";
+import { z } from "zod";
+
+import { registry } from "../registry";
+import { baseColors } from "../registry/registry-base-colors";
+import { colorMapping, colors } from "../registry/registry-colors";
+import { styles } from "../registry/registry-styles";
+import {
+ Registry,
+ RegistryEntry,
+ registryEntrySchema,
+ registryItemTypeSchema,
+ registrySchema,
+} from "../registry/schema";
+
+const REGISTRY_PATH = path.join(process.cwd(), "public/r");
+
+const REGISTRY_INDEX_WHITELIST: z.infer<typeof registryItemTypeSchema>[] = [
+ "registry:ui",
+ "registry:lib",
+ "registry:hook",
+ "registry:theme",
+ "registry:block",
+];
+
+const project = new Project({
+ compilerOptions: {},
+});
+
+async function createTempSourceFile(filename: string) {
+ const dir = await fs.mkdtemp(path.join(tmpdir(), "shadcn-"));
+ return path.join(dir, filename);
+}
+
+// ----------------------------------------------------------------------------
+// Build __registry__/index.tsx.
+// ----------------------------------------------------------------------------
+async function buildRegistry(registry: Registry) {
+ let index = `// @ts-nocheck
+// This file is autogenerated by scripts/build-registry.ts
+// Do not edit this file directly.
+import * as React from "react"
+
+export const Index: Record<string, any> = {
+`;
+
+ for (const style of styles) {
+ index += ` "${style.name}": {`;
+
+ // Build style index.
+ for (const item of registry) {
+ const resolveFiles = item.files?.map(
+ (file) =>
+ `registry/${style.name}/${
+ typeof file === "string" ? file : file.path
+ }`,
+ );
+ if (!resolveFiles) {
+ continue;
+ }
+
+ const type = item.type.split(":")[1];
+ let sourceFilename = "";
+
+ let chunks: any = [];
+ if (item.type === "registry:block") {
+ const file = resolveFiles[0];
+ const filename = path.basename(file);
+ const raw = await fs.readFile(file, "utf8");
+ const tempFile = await createTempSourceFile(filename);
+ const sourceFile = project.createSourceFile(tempFile, raw, {
+ scriptKind: ScriptKind.TSX,
+ });
+
+ // Find all imports.
+ const imports = new Map<
+ string,
+ {
+ module: string;
+ text: string;
+ isDefault?: boolean;
+ }
+ >();
+ sourceFile.getImportDeclarations().forEach((node) => {
+ // eslint-disable-next-line
+ const module = node.getModuleSpecifier().getLiteralValue();
+ node.getNamedImports().forEach((item) => {
+ imports.set(item.getText(), {
+ module,
+ text: node.getText(),
+ });
+ });
+
+ const defaultImport = node.getDefaultImport();
+ if (defaultImport) {
+ imports.set(defaultImport.getText(), {
+ module,
+ text: defaultImport.getText(),
+ isDefault: true,
+ });
+ }
+ });
+
+ // Find all opening tags with x-chunk attribute.
+ const components = sourceFile
+ .getDescendantsOfKind(SyntaxKind.JsxOpeningElement)
+ .filter((node) => {
+ return node.getAttribute("x-chunk") !== undefined;
+ });
+
+ chunks = await Promise.all(
+ components.map(async (component, index) => {
+ const chunkName = `${item.name}-chunk-${index}`;
+
+ // Get the value of x-chunk attribute.
+ const attr = component
+ .getAttributeOrThrow("x-chunk")
+ .asKindOrThrow(SyntaxKind.JsxAttribute);
+
+ const description = attr
+ .getInitializerOrThrow()
+ .asKindOrThrow(SyntaxKind.StringLiteral)
+ .getLiteralValue();
+
+ // Delete the x-chunk attribute.
+ attr.remove();
+
+ // Add a new attribute to the component.
+ component.addAttribute({
+ name: "x-chunk",
+ initializer: `"${chunkName}"`,
+ });
+
+ // Get the value of x-chunk-container attribute.
+ const containerAttr = component
+ .getAttribute("x-chunk-container")
+ ?.asKindOrThrow(SyntaxKind.JsxAttribute);
+
+ const containerClassName = containerAttr
+ ?.getInitializer()
+ ?.asKindOrThrow(SyntaxKind.StringLiteral)
+ .getLiteralValue();
+
+ containerAttr?.remove();
+
+ const parentJsxElement = component.getParentIfKindOrThrow(
+ SyntaxKind.JsxElement,
+ );
+
+ // Find all opening tags on component.
+ const children = parentJsxElement
+ .getDescendantsOfKind(SyntaxKind.JsxOpeningElement)
+ .map((node) => {
+ return node.getTagNameNode().getText();
+ })
+ .concat(
+ parentJsxElement
+ .getDescendantsOfKind(SyntaxKind.JsxSelfClosingElement)
+ .map((node) => {
+ return node.getTagNameNode().getText();
+ }),
+ );
+
+ const componentImports = new Map<
+ string,
+ string | string[] | Set<string>
+ >();
+ children.forEach((child) => {
+ const importLine = imports.get(child);
+ if (importLine) {
+ const imports = componentImports.get(importLine.module) || [];
+
+ const newImports = importLine.isDefault
+ ? importLine.text
+ : new Set([...imports, child]);
+
+ componentImports.set(
+ importLine.module,
+ importLine?.isDefault ? newImports : Array.from(newImports),
+ );
+ }
+ });
+
+ const componnetImportLines = Array.from(
+ componentImports.keys(),
+ ).map((key) => {
+ const values = componentImports.get(key);
+ const specifier = Array.isArray(values)
+ ? `{${values.join(",")}}`
+ : values;
+
+ return `import ${specifier} from "${key}"`;
+ });
+
+ const code = `
+ 'use client'
+
+ ${componnetImportLines.join("\n")}
+
+ export default function Component() {
+ return (${parentJsxElement.getText()})
+ }`;
+
+ const targetFile = file.replace(item.name, `${chunkName}`);
+ const targetFilePath = path.join(
+ cwd(),
+ `registry/${style.name}/${type}/${chunkName}.tsx`,
+ );
+
+ // Write component file.
+ rimraf.sync(targetFilePath);
+ await fs.writeFile(targetFilePath, code, "utf8");
+
+ return {
+ name: chunkName,
+ description,
+ component: `React.lazy(() => import("@/registry/${style.name}/${type}/${chunkName}")),`,
+ file: targetFile,
+ container: {
+ className: containerClassName,
+ },
+ };
+ }),
+ );
+
+ // // Write the source file for blocks only.
+ sourceFilename = `__registry__/${style.name}/${type}/${item.name}.tsx`;
+
+ if (item.files) {
+ const files = item.files.map((file) =>
+ typeof file === "string"
+ ? { type: "registry:page", path: file }
+ : file,
+ );
+ if (files?.length) {
+ sourceFilename = `__registry__/${style.name}/${files[0].path}`;
+ }
+ }
+
+ const sourcePath = path.join(process.cwd(), sourceFilename);
+ if (!existsSync(sourcePath)) {
+ await fs.mkdir(sourcePath, { recursive: true });
+ }
+
+ rimraf.sync(sourcePath);
+ await fs.writeFile(sourcePath, sourceFile.getText());
+ }
+
+ let componentPath = `@/registry/${style.name}/${type}/${item.name}`;
+
+ if (item.files) {
+ const files = item.files.map((file) =>
+ typeof file === "string"
+ ? { type: "registry:page", path: file }
+ : file,
+ );
+ if (files?.length) {
+ componentPath = `@/registry/${style.name}/${files[0].path}`;
+ }
+ }
+
+ index += `
+ "${item.name}": {
+ name: "${item.name}",
+ type: "${item.type}",
+ registryDependencies: ${JSON.stringify(item.registryDependencies)},
+ files: [${resolveFiles.map((file) => `"${file}"`)}],
+ component: React.lazy(() => import("${componentPath}")),
+ source: "${sourceFilename}",
+ category: "${item.category}",
+ subcategory: "${item.subcategory}",
+ chunks: [${chunks.map(
+ (chunk) => `{
+ name: "${chunk.name}",
+ description: "${chunk.description ?? "No description"}",
+ component: ${chunk.component}
+ file: "${chunk.file}",
+ container: {
+ className: "${chunk.container.className}"
+ }
+ }`,
+ )}]
+ },`;
+ }
+
+ index += `
+ },`;
+ }
+
+ index += `
+}
+`;
+
+ // ----------------------------------------------------------------------------
+ // Build registry/index.json.
+ // ----------------------------------------------------------------------------
+ const items = registry
+ .filter((item) => ["registry:ui"].includes(item.type))
+ .map((item) => {
+ return {
+ ...item,
+ files: item.files?.map((_file) => {
+ const file =
+ typeof _file === "string"
+ ? {
+ path: _file,
+ type: item.type,
+ }
+ : _file;
+
+ return file;
+ }),
+ };
+ });
+ const registryJson = JSON.stringify(items, null, 2);
+ rimraf.sync(path.join(REGISTRY_PATH, "index.json"));
+ await fs.writeFile(
+ path.join(REGISTRY_PATH, "index.json"),
+ registryJson,
+ "utf8",
+ );
+
+ // Write style index.
+ rimraf.sync(path.join(process.cwd(), "__registry__/index.tsx"));
+ await fs.writeFile(path.join(process.cwd(), "__registry__/index.tsx"), index);
+}
+
+// ----------------------------------------------------------------------------
+// Build registry/styles/[style]/[name].json.
+// ----------------------------------------------------------------------------
+async function buildStyles(registry: Registry) {
+ for (const style of styles) {
+ const targetPath = path.join(REGISTRY_PATH, "styles", style.name);
+
+ // Create directory if it doesn't exist.
+ if (!existsSync(targetPath)) {
+ await fs.mkdir(targetPath, { recursive: true });
+ }
+
+ for (const item of registry) {
+ if (!REGISTRY_INDEX_WHITELIST.includes(item.type)) {
+ continue;
+ }
+
+ let files;
+ if (item.files) {
+ files = await Promise.all(
+ item.files.map(async (_file) => {
+ const file =
+ typeof _file === "string"
+ ? {
+ path: _file,
+ type: item.type,
+ content: "",
+ target: "",
+ }
+ : _file;
+
+ const content = await fs.readFile(
+ path.join(process.cwd(), "registry", style.name, file.path),
+ "utf8",
+ );
+
+ const tempFile = await createTempSourceFile(file.path);
+ const sourceFile = project.createSourceFile(tempFile, content, {
+ scriptKind: ScriptKind.TSX,
+ });
+
+ sourceFile.getVariableDeclaration("iframeHeight")?.remove();
+ sourceFile.getVariableDeclaration("containerClassName")?.remove();
+ sourceFile.getVariableDeclaration("description")?.remove();
+
+ return {
+ path: file.path,
+ type: file.type,
+ content: sourceFile.getText(),
+ target: file.target,
+ };
+ }),
+ );
+ }
+
+ const payload = registryEntrySchema
+ .omit({
+ source: true,
+ category: true,
+ subcategory: true,
+ chunks: true,
+ })
+ .safeParse({
+ ...item,
+ files,
+ });
+
+ if (payload.success) {
+ await fs.writeFile(
+ path.join(targetPath, `${item.name}.json`),
+ JSON.stringify(payload.data, null, 2),
+ "utf8",
+ );
+ }
+ }
+ }
+
+ // ----------------------------------------------------------------------------
+ // Build registry/styles/index.json.
+ // ----------------------------------------------------------------------------
+ const stylesJson = JSON.stringify(styles, null, 2);
+ await fs.writeFile(
+ path.join(REGISTRY_PATH, "styles/index.json"),
+ stylesJson,
+ "utf8",
+ );
+}
+
+// ----------------------------------------------------------------------------
+// Build registry/styles/[name]/index.json.
+// ----------------------------------------------------------------------------
+async function buildStylesIndex() {
+ for (const style of styles) {
+ const targetPath = path.join(REGISTRY_PATH, "styles", style.name);
+
+ const dependencies = [
+ "tailwindcss-animate",
+ "class-variance-authority",
+ "lucide-react",
+ ];
+
+ const payload: RegistryEntry = {
+ name: style.name,
+ type: "registry:style",
+ dependencies,
+ registryDependencies: ["utils"],
+ tailwind: {
+ config: {
+ plugins: [`require("tailwindcss-animate")`],
+ },
+ },
+ cssVars: {},
+ files: [],
+ };
+
+ await fs.writeFile(
+ path.join(targetPath, "index.json"),
+ JSON.stringify(payload, null, 2),
+ "utf8",
+ );
+ }
+}
+
+// ----------------------------------------------------------------------------
+// Build registry/colors/index.json.
+// ----------------------------------------------------------------------------
+async function buildThemes() {
+ const colorsTargetPath = path.join(REGISTRY_PATH, "colors");
+ rimraf.sync(colorsTargetPath);
+ if (!existsSync(colorsTargetPath)) {
+ await fs.mkdir(colorsTargetPath, { recursive: true });
+ }
+
+ const colorsData: Record<string, any> = {};
+ for (const [color, value] of Object.entries(colors)) {
+ if (typeof value === "string") {
+ colorsData[color] = value;
+ continue;
+ }
+
+ if (Array.isArray(value)) {
+ colorsData[color] = value.map((item) => ({
+ ...item,
+ rgbChannel: item.rgb.replace(/^rgb\((\d+),(\d+),(\d+)\)$/, "$1 $2 $3"),
+ hslChannel: item.hsl.replace(
+ /^hsl\(([\d.]+),([\d.]+%),([\d.]+%)\)$/,
+ "$1 $2 $3",
+ ),
+ }));
+ continue;
+ }
+
+ if (typeof value === "object") {
+ colorsData[color] = {
+ ...value,
+ rgbChannel: value.rgb.replace(/^rgb\((\d+),(\d+),(\d+)\)$/, "$1 $2 $3"),
+ hslChannel: value.hsl.replace(
+ /^hsl\(([\d.]+),([\d.]+%),([\d.]+%)\)$/,
+ "$1 $2 $3",
+ ),
+ };
+ continue;
+ }
+ }
+
+ await fs.writeFile(
+ path.join(colorsTargetPath, "index.json"),
+ JSON.stringify(colorsData, null, 2),
+ "utf8",
+ );
+
+ // ----------------------------------------------------------------------------
+ // Build registry/colors/[base].json.
+ // ----------------------------------------------------------------------------
+ const BASE_STYLES = `@tailwind base;
+@tailwind components;
+@tailwind utilities;
+ `;
+
+ const BASE_STYLES_WITH_VARIABLES = `@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+ :root {
+ --background: <%- colors.light["background"] %>;
+ --foreground: <%- colors.light["foreground"] %>;
+ --card: <%- colors.light["card"] %>;
+ --card-foreground: <%- colors.light["card-foreground"] %>;
+ --popover: <%- colors.light["popover"] %>;
+ --popover-foreground: <%- colors.light["popover-foreground"] %>;
+ --primary: <%- colors.light["primary"] %>;
+ --primary-foreground: <%- colors.light["primary-foreground"] %>;
+ --secondary: <%- colors.light["secondary"] %>;
+ --secondary-foreground: <%- colors.light["secondary-foreground"] %>;
+ --muted: <%- colors.light["muted"] %>;
+ --muted-foreground: <%- colors.light["muted-foreground"] %>;
+ --accent: <%- colors.light["accent"] %>;
+ --accent-foreground: <%- colors.light["accent-foreground"] %>;
+ --destructive: <%- colors.light["destructive"] %>;
+ --destructive-foreground: <%- colors.light["destructive-foreground"] %>;
+ --border: <%- colors.light["border"] %>;
+ --input: <%- colors.light["input"] %>;
+ --ring: <%- colors.light["ring"] %>;
+ --radius: 0.5rem;
+ --chart-1: <%- colors.light["chart-1"] %>;
+ --chart-2: <%- colors.light["chart-2"] %>;
+ --chart-3: <%- colors.light["chart-3"] %>;
+ --chart-4: <%- colors.light["chart-4"] %>;
+ --chart-5: <%- colors.light["chart-5"] %>;
+ }
+
+ .dark {
+ --background: <%- colors.dark["background"] %>;
+ --foreground: <%- colors.dark["foreground"] %>;
+ --card: <%- colors.dark["card"] %>;
+ --card-foreground: <%- colors.dark["card-foreground"] %>;
+ --popover: <%- colors.dark["popover"] %>;
+ --popover-foreground: <%- colors.dark["popover-foreground"] %>;
+ --primary: <%- colors.dark["primary"] %>;
+ --primary-foreground: <%- colors.dark["primary-foreground"] %>;
+ --secondary: <%- colors.dark["secondary"] %>;
+ --secondary-foreground: <%- colors.dark["secondary-foreground"] %>;
+ --muted: <%- colors.dark["muted"] %>;
+ --muted-foreground: <%- colors.dark["muted-foreground"] %>;
+ --accent: <%- colors.dark["accent"] %>;
+ --accent-foreground: <%- colors.dark["accent-foreground"] %>;
+ --destructive: <%- colors.dark["destructive"] %>;
+ --destructive-foreground: <%- colors.dark["destructive-foreground"] %>;
+ --border: <%- colors.dark["border"] %>;
+ --input: <%- colors.dark["input"] %>;
+ --ring: <%- colors.dark["ring"] %>;
+ --chart-1: <%- colors.dark["chart-1"] %>;
+ --chart-2: <%- colors.dark["chart-2"] %>;
+ --chart-3: <%- colors.dark["chart-3"] %>;
+ --chart-4: <%- colors.dark["chart-4"] %>;
+ --chart-5: <%- colors.dark["chart-5"] %>;
+ }
+}
+
+@layer base {
+ * {
+ @apply border-border;
+ }
+ body {
+ @apply bg-background text-foreground;
+ }
+}`;
+
+ for (const baseColor of ["slate", "gray", "zinc", "neutral", "stone"]) {
+ const base: Record<string, any> = {
+ inlineColors: {},
+ cssVars: {},
+ };
+ for (const [mode, values] of Object.entries(colorMapping)) {
+ base["inlineColors"][mode] = {};
+ base["cssVars"][mode] = {};
+ for (const [key, value] of Object.entries(values)) {
+ if (typeof value === "string") {
+ // Chart colors do not have a 1-to-1 mapping with tailwind colors.
+ if (key.startsWith("chart-")) {
+ base["cssVars"][mode][key] = value;
+ continue;
+ }
+
+ const resolvedColor = value.replace(/{{base}}-/g, `${baseColor}-`);
+ base["inlineColors"][mode][key] = resolvedColor;
+
+ const [resolvedBase, scale] = resolvedColor.split("-");
+ const color = scale
+ ? colorsData[resolvedBase].find(
+ (item: any) => item.scale === parseInt(scale),
+ )
+ : colorsData[resolvedBase];
+ if (color) {
+ base["cssVars"][mode][key] = color.hslChannel;
+ }
+ }
+ }
+ }
+
+ // Build css vars.
+ base["inlineColorsTemplate"] = template(BASE_STYLES)({});
+ base["cssVarsTemplate"] = template(BASE_STYLES_WITH_VARIABLES)({
+ colors: base["cssVars"],
+ });
+
+ await fs.writeFile(
+ path.join(REGISTRY_PATH, `colors/${baseColor}.json`),
+ JSON.stringify(base, null, 2),
+ "utf8",
+ );
+
+ // ----------------------------------------------------------------------------
+ // Build registry/themes.css
+ // ----------------------------------------------------------------------------
+ const THEME_STYLES_WITH_VARIABLES = `
+.theme-<%- theme %> {
+ --background: <%- colors.light["background"] %>;
+ --foreground: <%- colors.light["foreground"] %>;
+
+ --muted: <%- colors.light["muted"] %>;
+ --muted-foreground: <%- colors.light["muted-foreground"] %>;
+
+ --popover: <%- colors.light["popover"] %>;
+ --popover-foreground: <%- colors.light["popover-foreground"] %>;
+
+ --card: <%- colors.light["card"] %>;
+ --card-foreground: <%- colors.light["card-foreground"] %>;
+
+ --border: <%- colors.light["border"] %>;
+ --input: <%- colors.light["input"] %>;
+
+ --primary: <%- colors.light["primary"] %>;
+ --primary-foreground: <%- colors.light["primary-foreground"] %>;
+
+ --secondary: <%- colors.light["secondary"] %>;
+ --secondary-foreground: <%- colors.light["secondary-foreground"] %>;
+
+ --accent: <%- colors.light["accent"] %>;
+ --accent-foreground: <%- colors.light["accent-foreground"] %>;
+
+ --destructive: <%- colors.light["destructive"] %>;
+ --destructive-foreground: <%- colors.light["destructive-foreground"] %>;
+
+ --ring: <%- colors.light["ring"] %>;
+
+ --radius: <%- colors.light["radius"] %>;
+}
+
+.dark .theme-<%- theme %> {
+ --background: <%- colors.dark["background"] %>;
+ --foreground: <%- colors.dark["foreground"] %>;
+
+ --muted: <%- colors.dark["muted"] %>;
+ --muted-foreground: <%- colors.dark["muted-foreground"] %>;
+
+ --popover: <%- colors.dark["popover"] %>;
+ --popover-foreground: <%- colors.dark["popover-foreground"] %>;
+
+ --card: <%- colors.dark["card"] %>;
+ --card-foreground: <%- colors.dark["card-foreground"] %>;
+
+ --border: <%- colors.dark["border"] %>;
+ --input: <%- colors.dark["input"] %>;
+
+ --primary: <%- colors.dark["primary"] %>;
+ --primary-foreground: <%- colors.dark["primary-foreground"] %>;
+
+ --secondary: <%- colors.dark["secondary"] %>;
+ --secondary-foreground: <%- colors.dark["secondary-foreground"] %>;
+
+ --accent: <%- colors.dark["accent"] %>;
+ --accent-foreground: <%- colors.dark["accent-foreground"] %>;
+
+ --destructive: <%- colors.dark["destructive"] %>;
+ --destructive-foreground: <%- colors.dark["destructive-foreground"] %>;
+
+ --ring: <%- colors.dark["ring"] %>;
+}`;
+
+ const themeCSS = [];
+ for (const theme of baseColors) {
+ themeCSS.push(
+ // @ts-ignore
+ template(THEME_STYLES_WITH_VARIABLES)({
+ colors: theme.cssVars,
+ theme: theme.name,
+ }),
+ );
+ }
+
+ await fs.writeFile(
+ path.join(REGISTRY_PATH, `themes.css`),
+ themeCSS.join("\n"),
+ "utf8",
+ );
+
+ // ----------------------------------------------------------------------------
+ // Build registry/themes/[theme].json
+ // ----------------------------------------------------------------------------
+ rimraf.sync(path.join(REGISTRY_PATH, "themes"));
+ for (const baseColor of ["slate", "gray", "zinc", "neutral", "stone"]) {
+ const payload: Record<string, any> = {
+ name: baseColor,
+ label: baseColor.charAt(0).toUpperCase() + baseColor.slice(1),
+ cssVars: {},
+ };
+ for (const [mode, values] of Object.entries(colorMapping)) {
+ payload.cssVars[mode] = {};
+ for (const [key, value] of Object.entries(values)) {
+ if (typeof value === "string") {
+ const resolvedColor = value.replace(/{{base}}-/g, `${baseColor}-`);
+ payload.cssVars[mode][key] = resolvedColor;
+
+ const [resolvedBase, scale] = resolvedColor.split("-");
+ const color = scale
+ ? colorsData[resolvedBase].find(
+ (item: any) => item.scale === parseInt(scale),
+ )
+ : colorsData[resolvedBase];
+ if (color) {
+ payload["cssVars"][mode][key] = color.hslChannel;
+ }
+ }
+ }
+ }
+
+ const targetPath = path.join(REGISTRY_PATH, "themes");
+
+ // Create directory if it doesn't exist.
+ if (!existsSync(targetPath)) {
+ await fs.mkdir(targetPath, { recursive: true });
+ }
+
+ await fs.writeFile(
+ path.join(targetPath, `${payload.name}.json`),
+ JSON.stringify(payload, null, 2),
+ "utf8",
+ );
+ }
+ }
+}
+
+try {
+ const result = registrySchema.safeParse(registry);
+
+ if (!result.success) {
+ console.error(result.error);
+ process.exit(1);
+ }
+
+ await buildRegistry(result.data);
+ await buildStyles(result.data);
+ await buildStylesIndex();
+ await buildThemes();
+
+ console.log("✅ Done!");
+} catch (error) {
+ console.error(error);
+ process.exit(1);
+}
diff --git a/scripts/build-registry.ts b/scripts/build-registry.ts
deleted file mode 100644
index 093fb9b6..00000000
--- a/scripts/build-registry.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-// @ts-nocheck
-import fs from "fs";
-import path, { basename } from "path";
-import { rimraf } from "rimraf";
-
-import { downloadRegistry } from "../registry/index.tsx";
-import { registrySchema } from "../registry/schema.ts";
-
-const REGISTRY_PATH = path.join(process.cwd(), "public/registry");
-
-const result = registrySchema.safeParse(downloadRegistry);
-
-console.log("Building Registry...");
-
-if (!result.success) {
- console.error(result.error);
- process.exit(1);
-}
-// ----------------------------------------------------------------------------
-// Build registry/index.json.
-// ----------------------------------------------------------------------------
-const data = Object.values(result.data).sort((a, b) =>
- a.name.localeCompare(b.name),
-);
-const names = data; //.filter((item) => item.type === "components:ui")
-const registryJson = JSON.stringify(names, null, 2);
-
-// Create directory if it doesn't exist.
-if (!fs.existsSync(REGISTRY_PATH)) {
- fs.mkdirSync(REGISTRY_PATH, { recursive: true });
-}
-
-rimraf.sync(path.join(REGISTRY_PATH, "index.json"));
-fs.writeFileSync(path.join(REGISTRY_PATH, "index.json"), registryJson, "utf8");
-
-// ----------------------------------------------------------------------------
-// Build registry/components/["magicui" | "ui" | "example"]/[name].json.
-// ----------------------------------------------------------------------------
-
-for (const item of data) {
- const [parent, subfolder] = item.type.split(":");
- if (!parent || !subfolder) {
- console.warn(`Invalid type: ${item.type} for ${item.name}`);
- continue;
- }
- const targetPath = path.join(REGISTRY_PATH, parent, subfolder);
- // Create directory if it doesn't exist.
- if (!fs.existsSync(targetPath)) {
- fs.mkdirSync(targetPath, { recursive: true });
- }
-
- const files = item.files?.map((file) => {
- const content = fs.readFileSync(path.join(process.cwd(), file), "utf8");
-
- return {
- name: basename(file),
- content,
- };
- });
-
- const payload = {
- ...item,
- files,
- };
-
- fs.writeFileSync(
- path.join(targetPath, `${item.name}.json`),
- JSON.stringify(payload, null, 2),
- "utf8",
- );
-}
-
-console.log("Build Registry Done ✅");
diff --git a/tailwind.config.ts b/tailwind.config.cjs
similarity index 87%
rename from tailwind.config.ts
rename to tailwind.config.cjs
index 2adac6d2..b574b5f8 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.cjs
@@ -1,5 +1,5 @@
-const { fontFamily } = require("tailwindcss/defaultTheme");
-const colors = require("tailwindcss/colors");
+const { fontFamily } = require("tailwindcss/defaultTheme")
+const colors = require("tailwindcss/colors")
/** @type {import('tailwindcss').Config} */
@@ -71,17 +71,17 @@ module.exports = {
grid: "grid 15s linear infinite",
marquee: "marquee var(--duration) infinite linear",
"marquee-vertical": "marquee-vertical var(--duration) linear infinite",
- flip: "flip calc(var(--spark) * 2) infinite steps(2, end)",
- rotate: "rotate var(--spark) linear infinite both",
"spin-around": "spin-around calc(var(--speed) * 2) infinite linear",
- slide: "slide var(--speed) ease-in-out infinite alternate",
+ "shiny-text": "shiny-text 8s infinite",
+ "shimmer-slide":
+ "shimmer-slide var(--speed) ease-in-out infinite alternate",
ripple: "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite",
line: "line 2s linear infinite",
- shimmer: "shimmer 8s infinite",
"border-beam": "border-beam calc(var(--duration)*1s) infinite linear",
orbit: "orbit calc(var(--duration)*1s) linear infinite",
- backgroundPositionSpin:
+ "background-position-spin":
"background-position-spin 3000ms infinite alternate",
+ shine: "shine var(--duration) infinite linear",
pulse: "pulse var(--duration) ease-out infinite",
rainbow: "rainbow var(--speed, 2s) infinite linear",
},
@@ -123,14 +123,6 @@ module.exports = {
from: { transform: "translateY(0)" },
to: { transform: "translateY(calc(-100% - var(--gap)))" },
},
- flip: {
- to: { rotate: "360deg" },
- },
- rotate: {
- to: {
- transform: "rotate(90deg)",
- },
- },
"spin-around": {
"0%": {
transform: "translateZ(0) rotate(0)",
@@ -153,7 +145,7 @@ module.exports = {
transform: "translate(-50%, -50%) scale(0.9)",
},
},
- slide: {
+ "shimmer-slide": {
to: {
transform: "translate(calc(100cqw - 100%), 0)",
},
@@ -167,12 +159,12 @@ module.exports = {
"offset-distance": "100%",
},
},
- shimmer: {
+ "shiny-text": {
"0%, 90%, 100%": {
- "background-position": "calc(-100% - var(--shimmer-width)) 0",
+ "background-position": "calc(-100% - var(--shiny-width)) 0",
},
"30%, 60%": {
- "background-position": "calc(100% + var(--shimmer-width)) 0",
+ "background-position": "calc(100% + var(--shiny-width)) 0",
},
},
orbit: {
@@ -185,7 +177,7 @@ module.exports = {
"rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)",
},
},
- "shine-pulse": {
+ shine: {
"0%": {
"background-position": "0% 0%",
},
@@ -207,5 +199,5 @@ module.exports = {
},
},
},
- plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
-};
+ plugins: [require("tailwindcss-animate")],
+}
diff --git a/tsconfig.json b/tsconfig.json
index 81c3a219..194e14d3 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -50,5 +50,7 @@
"node_modules",
"packages/**/*",
"scripts/**/*",
+ "scripts/build-registry.ts",
+ "__registry__"
]
}
\ No newline at end of file
diff --git a/tsconfig.scripts.json b/tsconfig.scripts.json
index cb763e01..fe1555fe 100644
--- a/tsconfig.scripts.json
+++ b/tsconfig.scripts.json
@@ -1,12 +1,13 @@
{
- "$schema": "https://json.schemastore.org/tsconfig",
- "extends": "./tsconfig.json",
- "compilerOptions": {
- "target": "es6",
- "module": "commonjs",
- "esModuleInterop": true,
- "isolatedModules": false,
- },
- "include": ["scripts/**/*.ts"],
- "exclude": ["node_modules"]
- }
\ No newline at end of file
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "extends": "./tsconfig.json",
+ "compilerOptions": {
+ "target": "es6",
+ "module": "ESNext",
+ "moduleResolution": "node",
+ "esModuleInterop": true,
+ "isolatedModules": false
+ },
+ "include": [".contentlayer/generated", "scripts/**/*.ts"],
+ "exclude": ["node_modules"]
+}
\ No newline at end of file
diff --git a/turbo.json b/turbo.json
deleted file mode 100644
index 27020374..00000000
--- a/turbo.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "$schema": "https://turbo.build/schema.json",
- "tasks": {
- "build": {
- "dependsOn": ["^build"],
- "outputs": [".next/**", "!.next/cache/**"]
- },
- "typecheck": {
- "dependsOn": ["^typecheck"]
- },
- "dev": {
- "persistent": true,
- "cache": false
- }
- }
-}