From 1c013caf19d38ffd6af117365275f583f02592b2 Mon Sep 17 00:00:00 2001 From: immi Date: Tue, 27 Aug 2024 02:19:41 +0500 Subject: [PATCH] app: 1.3.0-beta --- app/package.json | 2 +- app/pnpm-lock.yaml | 18 +++++++++++------- app/src/app/globals.css | 15 ++++++--------- app/src/app/layout.tsx | 4 ++-- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/app/package.json b/app/package.json index 4c194ce..860c475 100644 --- a/app/package.json +++ b/app/package.json @@ -62,7 +62,7 @@ "react-icons": "^5.3.0", "react-wrap-balancer": "^1.1.1", "recharts": "^2.12.7", - "shadcn-theme-editor": "^1.0.0", + "shadcn-theme-editor": "1.3.0-beta", "sonner": "^1.5.0", "tailwind-merge": "^2.4.0", "tailwindcss-animate": "^1.0.7", diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml index da92869..9bf4a76 100644 --- a/app/pnpm-lock.yaml +++ b/app/pnpm-lock.yaml @@ -168,8 +168,8 @@ importers: specifier: ^2.12.7 version: 2.12.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1) shadcn-theme-editor: - specifier: ^1.0.0 - version: 1.0.0(@types/react@18.3.3)(next-themes@0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: 1.3.0-beta + version: 1.3.0-beta(@types/react@18.3.3)(next-themes@0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) sonner: specifier: ^1.5.0 version: 1.5.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1616,6 +1616,9 @@ packages: embla-carousel@8.1.8: resolution: {integrity: sha512-KuHPA8qcAts6YE6ELtt38XYAb26hnKw8Ga0lSXmrhm1oI97t6oACFkqSsy33dfeZQEhaZB6VwWvaWQJRJVgSgA==} + emittor@0.1.0: + resolution: {integrity: sha512-+VP1/JIBNjQvH829slenIUfb9Sc/P7QjgK0zwqMW6hwKDD1HrDIlVFqD6kJZX1T2lOfeJpdcwM5lbMEyBqIPtQ==} + emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -2561,8 +2564,8 @@ packages: resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==} engines: {node: '>= 0.4'} - shadcn-theme-editor@1.0.0: - resolution: {integrity: sha512-kPEQsm7dHac99Jig7scLHGKriQ4yPBxWruQ/UQjQvaJ5SDftj/F/C/V0uLeQlZaPGGsTBORV56SGHmnB5fxN6g==} + shadcn-theme-editor@1.3.0-beta: + resolution: {integrity: sha512-bjmfWFHVNW9iXMyzrwS6ldl9SxedW9j9XHycPXGCgHZgoVSCHl5WNNQD9QC+JuOEPO4U0+SHP++wV/XK1BWdBA==} peerDependencies: next-themes: ^0.3.0 react: ^18.3.1 @@ -4314,6 +4317,8 @@ snapshots: embla-carousel@8.1.8: {} + emittor@0.1.0: {} + emoji-regex@8.0.0: {} emoji-regex@9.2.2: {} @@ -5430,20 +5435,19 @@ snapshots: functions-have-names: 1.2.3 has-property-descriptors: 1.0.2 - shadcn-theme-editor@1.0.0(@types/react@18.3.3)(next-themes@0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): + shadcn-theme-editor@1.3.0-beta(@types/react@18.3.3)(next-themes@0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): dependencies: '@radix-ui/react-slot': 1.1.0(@types/react@18.3.3)(react@18.3.1) class-variance-authority: 0.7.0 clsx: 2.1.1 colord: 2.9.3 + emittor: 0.1.0 lodash.debounce: 4.0.8 next-themes: 0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 - tailwindcss: 3.4.10 zod: 3.23.8 transitivePeerDependencies: - '@types/react' - - ts-node shebang-command@2.0.0: dependencies: diff --git a/app/src/app/globals.css b/app/src/app/globals.css index 67dbe0a..f66992f 100644 --- a/app/src/app/globals.css +++ b/app/src/app/globals.css @@ -16,12 +16,12 @@ 35deg, transparent 60%, hsla(var(--primary) / 0.2) 100% - ); + ); } .gradient_body { background: var(--main-gradient); background-attachment: fixed; - @apply bg-background + @apply bg-background; } svg { shape-rendering: crispEdges; @@ -80,13 +80,10 @@ svg rect { display: none !important; } #shadcn-theme-editor { - @apply w-fit + @apply w-fit; } div[role="dialog"] > #shadcn-theme-editor > aside { - @apply !flex flex-col !static !bg-transparent -} -#shadcn-theme-editor> aside > :nth-last-child(2) { - @apply flex-1 + @apply !flex flex-col !static !bg-transparent; } @layer base { @@ -113,7 +110,8 @@ div[role="dialog"] > #shadcn-theme-editor > aside { --radius: 0.5rem; } - .dark, noname { + .dark, + noname { --background: 189 77% 5%; --foreground: 187 21% 75%; --muted: 189 12% 15%; @@ -136,7 +134,6 @@ div[role="dialog"] > #shadcn-theme-editor > aside { } } - @layer base { * { @apply border-border; diff --git a/app/src/app/layout.tsx b/app/src/app/layout.tsx index 1b626ef..3b13854 100644 --- a/app/src/app/layout.tsx +++ b/app/src/app/layout.tsx @@ -9,8 +9,8 @@ import GithubCorner from "@/components/github-corner"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Shadcn Theme Editor", + description: "Shadcn Theme Editor is a user-friendly component designed to simplify the process of managing and customizing theme colors in Shadcn-based projects.", }; export default async function RootLayout({