Commit Graph

673 Commits

Author SHA1 Message Date
Sahaj Jain 435ea8d75f remove lmsqueezy script and link and use direct referral 2025-08-02 20:11:22 +05:30
Sahaj Jain dfd3bbfbea add affiliate tracking script 2025-08-01 16:31:07 +05:30
Sahaj Jain 0057c8fe68 add shadcraft landing 2025-08-01 16:27:52 +05:30
Sahaj Jain 021fa655f1 fix: shadcraft link 2025-07-31 03:10:05 +05:30
Sahaj Jain 154f802cf5 Shadcraft (#203)
* chore: allow overriding ControlSection classNames

* feat: Support Google Fonts API and load fonts dynamically

* feat: Enforce System Prompt to use Google Fonts API if needed

* styles: Improve GoogleFontPicker styles

* feat: Pull Fonts from fileSystem instead of hitting the Google Fonts API every time

* feat: Improve System Prompt to reference Google Fonts

* refactor: Use Next.js Cache instead of manually fetching and reading from the filesystem

* feat: Only enable Font picker fetch when it's open

* chore: Remove JSON for Google Fonts catalogue

* feat: Scroll to selected font if it's already fetched and add clean search button

* chore: update imports

* fix: dashboard preview

* feat: Add shadcraft dialog

---------

Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-07-30 16:16:52 +05:30
heyysiri aa74026af7 fix(tailwind.config.ts): Generated tailwind.config.ts for Tailwind v3 2025-07-30 00:57:26 +05:30
Rishit Gupta a02f9f6ef6 fix: ensure delete theme mutation closes dialog on success 2025-07-28 23:42:21 +05:30
Rishit Gupta c5e1956c17 feat: add confirmation dialog for theme deletion in ThemeCard component 2025-07-28 23:42:21 +05:30
Sahaj Jain 8c107dd53e Feature/dynamic fonts (#197)
* chore: allow overriding ControlSection classNames

* feat: Support Google Fonts API and load fonts dynamically

* feat: Enforce System Prompt to use Google Fonts API if needed

* styles: Improve GoogleFontPicker styles

* feat: Pull Fonts from fileSystem instead of hitting the Google Fonts API every time

* feat: Improve System Prompt to reference Google Fonts

* refactor: Use Next.js Cache instead of manually fetching and reading from the filesystem

* feat: Only enable Font picker fetch when it's open

* chore: Remove JSON for Google Fonts catalogue

* feat: Scroll to selected font if it's already fetched and add clean search button

* chore: update imports

* fix: dashboard preview

---------

Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-07-27 23:40:36 +05:30
Luis Llanes 82c7d1e079 fix: add min-w-[1300px] back to large Dashboard and Mail (#182) 2025-07-23 02:16:26 +05:30
Luis Llanes cde4b7ac2c Fix Hydration Errors and Improve Preview Panel Defaults (#181)
* fix: Small chart overflow in starts card

* feat: add color scheme light dark

* refactor: use shadcn TabsContent instead of the Radix primitive

* refactor: preview panel tabs content and components

* fix: Solve hydration errors from nested buttons

---------

Co-authored-by: Sahaj Jain <82111591+jnsahaj@users.noreply.github.com>
2025-07-22 23:27:40 +05:30
Sahaj Jain cbd0ac431b Revert "Console+hydration errors (#178)"
This reverts commit 88261b5c86.
2025-07-22 10:52:11 +05:30
Abhinav Kumar Choudhary 88261b5c86 Console+hydration errors (#178)
* bug(layout): fix all erros in next.js devtools

* fix react hook warning in testimonials component

* refactor coderabbit suggestions
2025-07-22 04:30:54 +05:30
Sahaj Jain 1b85d62cf9 update sparkle icon for control panel 2025-07-22 02:40:46 +05:30
Sahaj Jain d5ed827b11 remove promo badge from pricing page 2025-07-22 02:13:07 +05:30
Sahaj Jain 7d6e4ce5c2 remove Sponsor button 2025-07-22 00:23:51 +05:30
Sahaj Jain 4440cb27a8 add more touchpoints for pricing page 2025-07-21 21:49:29 +05:30
Sahaj Jain c1c65dba27 Feature/testimonials (#176)
* Beautiful twitter testimonials on Home page #126 added (#128)

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

---------

Co-authored-by: sanwalsulehri <sanwalsulehri077@gmail.com>
Co-authored-by: Sahaj Jain <82111591+jnsahaj@users.noreply.github.com>

* feat: Add real testimonial tweets

* add testimonials to pricing page

* use avatar

---------

Co-authored-by: Sanwal Sulehrii <elondev39@gmail.com>
Co-authored-by: sanwalsulehri <sanwalsulehri077@gmail.com>
2025-07-21 03:40:59 +05:30
Fakhri Rafiki 7af28a0712 refactor(404): make 404 page more fun and interactive
- Add floating theme toggle and theme presets
- Use playful headline and friendlier message
- Improve layout and user experience for lost visitors
2025-07-20 16:16:36 +05:30
Sahaj Jain 05d4222d07 fix: pro sub feature duplication 2025-07-20 15:08:55 +05:30
Sahaj Jain 4d2ec4d43c fix: pricing page metadata and add temp launch50 badge 2025-07-19 23:39:57 +05:30
Sahaj Jain 5336cfa555 update metadata and sitemap for indexable pages 2025-07-19 23:24:30 +05:30
Sahaj Jain 2d9e216e0a limit thinking budget to optimise pricing 2025-07-19 21:21:02 +05:30
Sahaj Jain 9bb3427075 change AI related constants to optimise pricing 2025-07-19 19:31:23 +05:30
Sahaj Jain 0a3b3184b0 fix: build err 2025-07-18 20:40:09 +05:30
Luis Llanes 7bb0ff213c Fix SVG issue when processed by the API and minor styles fixes (#171)
* fix: border radius and overflow in ImagePreview component

* fix: Proper support for SVGs and UI feedback when errors occur

* SVG files are treated and displayed as Images in the UI
* SVG files are processed as Markup Text to send to the API
* Remove support for GIFs

* chore: improve system prompt to handle SVGs properly

* styles: Add border radius to uploaded image preview when loading
2025-07-18 19:43:43 +05:30
Sahaj Jain 5ada4aedad fix: Allow pro users to add more than 10 themes 2025-07-18 01:10:24 +05:30
Luis Llanes 562c793e79 fix: keep mentions references in Message Edit form (#167) 2025-07-18 00:19:51 +05:30
Luis Llanes 058923a6dd Small Improvements to ThemePresetSelect (#168)
* chore: improve ThemePresetSelect

* Remove double border and shadow
* Add "Default" themes at the top and make it searchable
* Change text size and padding for consistency

* chore: add Manage text back for Managing Saved themes
2025-07-18 00:18:57 +05:30
Luis Llanes 9f505c50c2 Draft Issue and Message UI styles (#166)
* fix: draft sync issue

* fix: small styles changes in message UI
2025-07-17 01:57:35 +05:30
Sahaj Jain 4c41596712 AI theme generation just got 10x better (#165)
* feat: Add polar for tweakcn-plus checkout

* migrate to polar nextjs for more control

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add checkout link support

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* refactor: follow naming convention

* chore: refactor components and layout/pages for consistency

* fix: enforce auth checks or redirect in /settings routes

* chore: update Go Pro dialog

* refactor: create reusable theme toggle component

* feat: add Get Pro dialog to header

* chore: rename GoPro dialog to GetPro and update imports

* feat: add AI generation section to Home page and adjust Get Pro dialog

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* refactor: follow naming convention

* chore: refactor components and layout/pages for consistency

* fix: enforce auth checks or redirect in /settings routes

* chore: update Go Pro dialog

* refactor: create reusable theme toggle component

* feat: add Get Pro dialog to header

* chore: rename GoPro dialog to GetPro and update imports

* feat: add AI generation section to Home page and adjust Get Pro dialog

* feat: Add customer portal

* feat: add chat input draft persistence (not images)

* styles: improve styles for ai generation and alert banner defaults

* feat: Send whole chat context to AI

* fix: silly typo lol

* feat: support images persistence and sync

* feat: edit message (text, mentions and images)

* fix: add eslint-disable for exhaustive-deps warnings

* chore: fix build error & improve text and styles in suggested prompts

* refactor: handle session and subscription checks and handle post login actions

* migrate to turbopack

* refactor: use reducer builder pattern to sync ai-draft-store with image-uploader

* fix: ai-usage computation: account for abort

* feat: Theme limit handling for pro tier

* refactor: remove duplicate code from ai-chat-form and chat-input

* feat: Add faq to pricing page

* fix: /dashboard navigations -> /settings

* feat: update ui for success page

* feat: Migrate ai chat and draft message store to idb-keyval

* feat: move subscription details in-house

* generate migration

* fix: build err

* styles: improve Message UI

* fix: allow scroll in GoPro dialog chat preview

* feat: improve AI usage feedback when theme generation when success or failure

* feat: Message UI enhancement when assistant message is error feedback

* feat: add latest features in /ai page and refactor Core Theme Generation logic hooks

* styles: improve styles and layout for consistency

* styles: improve styles in settings pages for consistency

* cancelled theme doesn't cost requests

* update next to latest (for turbopack compat)

* fail build if polar webhook secret is not set

* update polar sdk and nextjs plugin

* feat: Create customer before creating checkout for them

* chore: save closable chat suggestions state as a preference in local storage

* chore: improve color contrast in user UI message

* feat: add pro features components

* chore: update TextArea styles

* feat: adjust theme generation types, functions and API to support adding an image

* feat: AI components now support and display images

* feat: add support for multiple images

* feat: add support for multiple images to components

* feat: support image only prompts and clean up API code

* add ai-usage schema and actions

* feat: dashboard: add AI usage stats with bar chart

* feat: enforce subscription limits and improved error handling for AI theme generation

* feat: Integrate alert-banner with actual usage

* fix: pricing navigation

* feat: Checkout link generation

* feat: add quick action to create a theme from an image in ai page

* feat: add drag and drop for images

* chore: move Image Upload constant vars and update imports

* feat: improve feedback while theme is being generated

* feat: Add pricing page UI

* refactor: Dashboard migration to Settings page

* feat: improve pricing page

* feat: add auth check in checkout and refactor implementation for consistency and typesafety

* refactor: adjust code and API to follow new types and useQuery hook typesafety

* refactor: alert banner displays correctly and uses the new subscription hook

* feat: improve UI feedback for Pro users

* feat: upload images by pasting (cmd/crtl + v)

* feat: add Go Pro dialog, and global store (no implemented in app yet)

* chore(WIP): scaffold of Pro subscription modal show logic

* feat: Add openProModal logic to handleGenerateTheme in chat-interface

* refactor: follow naming convention

* chore: refactor components and layout/pages for consistency

* fix: enforce auth checks or redirect in /settings routes

* chore: update Go Pro dialog

* refactor: create reusable theme toggle component

* feat: add Get Pro dialog to header

* chore: rename GoPro dialog to GetPro and update imports

* feat: add AI generation section to Home page and adjust Get Pro dialog

* feat: Add customer portal

* feat: add chat input draft persistence (not images)

* styles: improve styles for ai generation and alert banner defaults

* feat: Send whole chat context to AI

* fix: silly typo lol

* feat: support images persistence and sync

* feat: edit message (text, mentions and images)

* fix: add eslint-disable for exhaustive-deps warnings

* chore: fix build error & improve text and styles in suggested prompts

* refactor: handle session and subscription checks and handle post login actions

* migrate to turbopack

* refactor: use reducer builder pattern to sync ai-draft-store with image-uploader

* fix: ai-usage computation: account for abort

* feat: Theme limit handling for pro tier

* refactor: remove duplicate code from ai-chat-form and chat-input

* feat: Add faq to pricing page

* fix: /dashboard navigations -> /settings

* feat: update ui for success page

* feat: Migrate ai chat and draft message store to idb-keyval

* feat: move subscription details in-house

* generate migration

* fix: build err

* styles: improve Message UI

* fix: allow scroll in GoPro dialog chat preview

* feat: improve AI usage feedback when theme generation when success or failure

* feat: Message UI enhancement when assistant message is error feedback

* feat: add latest features in /ai page and refactor Core Theme Generation logic hooks

* styles: improve styles and layout for consistency

* styles: improve styles in settings pages for consistency

* cancelled theme doesn't cost requests

* update next to latest (for turbopack compat)

* fail build if polar webhook secret is not set

* update polar sdk and nextjs plugin

* feat: Create customer before creating checkout for them

---------

Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-07-17 00:00:07 +05:30
Abhinav Kumar Choudhary 3ede03913e style(create-account button): Improve bg gradient and interactivity 2025-07-15 19:40:45 +05:30
Samuel Söderberg 0f4b9b45e9 fix(slider-with-input): update value handling and input change logic for better user experience 2025-07-14 12:56:34 +05:30
Trainer 4e06824406 fix: use buttons instead of Links to prevent unexpected scrolling on click 2025-07-09 23:52:39 +05:30
Trainer a8e677c48b Add useEffect dependencies 2025-07-09 23:52:13 +05:30
Trainer ba29cfc9f3 fix: pause preset button carousel on hover 2025-07-09 23:52:13 +05:30
Sahaj Jain 3112d439de feat: Add soft-pop theme 2025-07-08 21:51:51 +05:30
Baljeet Singh 6a709c2a82 fix(claude theme): update ring colors in default presets for better visibility 2025-07-08 21:00:07 +05:30
Sahaj Jain 32aaea5be3 feat: Add fancy button in create-account example card 2025-07-07 23:18:39 +05:30
Henry X 377192416d fix(header): correct mobile theme toggle icon logic (#147)
Show Moon icon in dark mode and Sun icon in light mode for mobile
theme toggle, matching desktop behavior.
2025-07-05 17:15:20 +05:30
Sahaj Jain 8b1e925d29 Update issue templates 2025-07-05 01:35:19 +05:30
Sahaj Jain 590a0f3e70 update og image with version 2025-07-05 00:58:32 +05:30
Luis Llanes 9bcf9fcfdd Small tweaks in multiple components for consistency (#140)
* fix: typos and clases in color selector popover

* chore: consistent styles across action buttons

* chore: change from Tooltip to HoverCard
2025-07-01 22:24:57 +05:30
Sahaj Jain 1dc6b15ff8 feat: Add Save button to code panel for registry command 2025-07-01 20:57:55 +05:30
Sahaj Jain 0e57292f63 fix: Color picker input not editable 2025-07-01 20:49:32 +05:30
Sahaj Jain 4fc92e8d8e Merge branches 'main' and 'main' of github-jnsahaj:jnsahaj/tweakcn 2025-07-01 19:17:23 +05:30
Sahaj Jain 6be6492e12 Feature/tw color support (#139)
* feat: Support Tailwind CSS Color Palette in UI Color Pickers (#113)

* feat: Support Tailwind CSS Color Palette in UI Color Pickers

* adding a hex function

* fixes position of color picker

* improve code and adding tailwindcss classes on typing

* refactor: simplify ColorPicker and adding Color Popover component

* remove state and ref

---------

Co-authored-by: Sahaj Jain <82111591+jnsahaj@users.noreply.github.com>

* feat: improve TailwindV4 palette color selector (#138)

* update UI for color select popover

* store color selector tab preference

* remove tooltip wrapper from color-swatch

---------

Co-authored-by: Arjun Singh <117923579+aarjun8060@users.noreply.github.com>
Co-authored-by: Luis Llanes <137589205+llanesluis@users.noreply.github.com>
2025-07-01 14:07:49 +05:30
Sahaj Jain 945a057abb remove tooltip wrapper from color-swatch 2025-07-01 13:59:15 +05:30
Sahaj Jain cad23ae6d1 store color selector tab preference 2025-07-01 13:50:38 +05:30
Sahaj Jain 19bdf25f06 update UI for color select popover 2025-07-01 13:45:39 +05:30