Commit Graph

703 Commits

Author SHA1 Message Date
Sahaj Jain f1071616e4 update lockfile 2025-12-13 22:27:19 +05:30
Sahaj Jain 30695019a8 update page.tsx for v0 2025-12-13 22:25:43 +05:30
Sahaj Jain 04a0f4e4ba bump next 2025-12-13 22:10:04 +05:30
Sahaj Jain 7bbd22371f open in v0 2025-12-13 22:09:24 +05:30
Sahaj Jain 8f03ac8125 update figma const 2025-12-12 02:02:18 +05:30
Sahaj Jain aebbd2196c update next 2025-12-07 00:45:36 +05:30
Sujal Kesharwani b701091899 fix: for descructive action added distructive colors and styles (#232)
* fix: for descructive action added distructive colors and styles

* fix: enhance destructive action styles for better visibility
2025-12-06 03:24:10 +05:30
Gerard Balaoro 6ae9e3eb73 feat(editor): use hex format for checking if a color is selected (#239)
* chore: update package-lock.json

* feat(editor): use hex format for checking if a color is selected
2025-12-06 03:18:57 +05:30
Aditya 4d8619a134 fix: use text-inherit for outline badge so it properly inherits styling in dark mode (#243) 2025-12-06 03:14:38 +05:30
Sahaj Jain 26028ebcc1 Add 'sage garden' theme 2025-11-08 20:27:21 +05:30
Sahaj Jain 0ffa6d58e4 add code button on themes share page 2025-11-06 01:56:31 +05:30
Sahaj Jain 240f7cdac4 small copy change 2025-10-12 14:08:46 +05:30
Luis Llanes fe6a3ea3d9 Refactor preview components and broken styles (#230)
* refactor: composition and broken styles (no functionality)

* feat: async script for next.js, default linter marked as error
2025-10-12 13:34:56 +05:30
Sahaj Jain e5db093988 update live preview script 2025-10-12 03:42:58 +05:30
Sahaj Jain fb2223e290 refactor
A
2025-10-12 03:37:04 +05:30
Sahaj Jain 5480cf5e98 minify live-preview script 2025-10-12 03:25:54 +05:30
Sahaj Jain 21ce40ad04 Merge branch 'main' of github.com:jnsahaj/tweakcn 2025-10-12 03:02:52 +05:30
Sahaj Jain 701723116f update code panel syntax highlight + hsl fix 2025-10-12 03:02:46 +05:30
Sahaj Jain 5fe4958db2 Feature/preview external (#225)
* Enhance Preview Panel and Support External Websites (#184)

* feat: Add Block Viewer for Preview Panel

* feat: support theme injection for external websites

* refactor: Improve Naming and Composition

* Support for Google Fonts in Preview script and Error Feedback (#202)

* feat: Add support for loading Google Fonts in the embed script.

* feat: Add error state and UI feedback

* fix font loading by overriding classes

* add reset button + update some ui

* syntax highlighting plus copy changes

* rename script

* update ui for connection status

* ui

* zustand store for preview state

* use nuqs for active preview tab

* get shadows working

* refactor

* A

* add tracking

---------

Co-authored-by: Luis Llanes <137589205+llanesluis@users.noreply.github.com>
Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-10-12 02:15:57 +05:30
Sahaj Jain 046acf2d7a change theme-gen model to 2.5 pro 2025-10-07 17:48:11 +05:30
Sahaj Jain ec7088c99a downgrade to zod v3 for polar sdk 2025-10-06 03:50:08 +05:30
Sahaj Jain 0e400ecbfc increase max ai free requests to 5 2025-10-01 16:58:50 +05:30
Sujal Kesharwani 33e77bb949 fix(theme): darken bg-muted to differentiate from bg-card (#222) 2025-10-01 16:33:38 +05:30
Sahaj Jain 5882f60c32 Enhance ai chat (#218)
* update package locks to avoid conflict

* Refactor AI Generation with AI SDK v5 (#210)

* refactor(wip): Whole Chat implementation

* fix: Deps

* chore: Update types and create tool to handle theme generation

* chore: Add hook and component to handle feedback text

* chore: Check for themeStyles in asssiatant metadata

* feat: Improve messages styles and feedback

* chore: Update react-hook-form deps

* chore: Improve Messages display

* chore: Show a banner when theme is generating

* chore: Optimize the Messages syncing

* feat: Add debug button to MessageActions in dev mode

* chore: messages

* chore: Improve System prompt + tools + utils

* fix: correctly display User messages with only images

* feat: Handle errors in UI and adapt to AI sdk

* feat: Use tool output instead of custom data parts

* chore: System prompt and schema context

* chore: Gemini 2.5 pro as the default model

* refactor: Change name to Chat Context and apply generated theme automatically

* chore: Update ai packages to latest version

* feat: Stop ongoing request before starting a new chat

* feat: Refactor logic for Scroll start/end sentinels

* feat: Improve UI streaming with AI Elements and Stream Text utils

* chore: Generate theme types and logic

* feat: Allow customize the speed of streaming text

* refactor: Theme generation utils

* fix: Avoid duplicated Mention references

* styles: Improve Chat error banner

* feat: Enhance Prompt core implementation

* feat: Implement enhance prompt in components

* chore: Add TODOS comments

* chore: Remove Openai provider

* chore: Update AI adk packages

* fix: Free request constant

---------

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

* update lockfile

* fix import

* fix types

* chore: Trigger theme generation before transitioning to editor page

* refactor: Move AI sdk specific code into Lib and update imports

* chore: Provide model ID to record usage util

* refactor: Multi model provider convention

* fix types

* refactor: Use Zustand persist middleware versioning

* feat: Improve prompts and context

* feat: Optimize streaming JSONContent into text area

* chore: Improve Theme Generation prompt

* feat: Improve prompt

* feat: Add subscription checks for enhancing prompt and Posthog tracking

---------

Co-authored-by: Luis Llanes <137589205+llanesluis@users.noreply.github.com>
Co-authored-by: Luis Llanes <luisllaboj@gmail.com>
2025-10-01 16:31:10 +05:30
vice-108 56b0d15148 fix(footer): update navigation links to work from any page (#224) 2025-10-01 16:23:47 +05:30
Sahaj Jain 39a046c644 include raw shadow vars in code output 2025-09-30 22:54:15 +05:30
Sahaj Jain b4ca827b8e update figma pricing (#221) 2025-09-22 01:39:49 +05:30
Abdur Rahman Talha 2c2db2ea2d fix: code copy button not copying tailwind.config.ts in theme editor (#217)
* fix: code copy button not copying tailwind.config.ts in theme editor

* fix: reset active tab on version change on code panel
2025-09-15 22:40:08 +05:30
Sameer Singh a3c4c6c8e8 feat: replace all Dialog usage with Revola for responsive behavior (Responsive Dialog) (#208)
* chore: add @base-ui-components/react dependency and update pnpm-lock.yaml

* feat: add custom hook useMediaQuery for responsive design

* refactor: streamline button component code for improved readability

* refactor: enhance ScrollArea component with viewport className prop and improve className organization

* refactor: replace Dialog component with ResponsiveDialog for improved responsiveness and UI consistency

* feat: introduce ResponsiveDialog component for enhanced mobile and desktop dialog handling

* refactor: update Next.js configuration to use TypeScript type for NextConfig

* refactor: replace Dialog with ResponsiveDialog in CardsChat component for improved UI consistency and responsiveness

* refactor: replace Dialog with ResponsiveDialog in ShareDialog component for improved UI consistency and responsiveness

* refactor: replace Dialog with ResponsiveDialog in FigmaExportDialog component for improved UI consistency and responsiveness.

- Use `Scrollarea` for cleaner scrollbar and structure it a bit different, so scrollbar's doesn't overflow beyond dialog.

* refactor: replace Dialog with ResponsiveDialog in ThemeSaveDialog component for improved UI consistency and responsiveness

* refactor: replace Dialog with ResponsiveDialog in PodcastEmptyPlaceholder component for improved UI consistency and responsiveness

* refactor: replace Dialog with ResponsiveDialog in ChatImagePreview component for improved UI consistency and responsiveness

* feat: add Tabs component based on BaseUI with customizable TabsList, TabsTrigger, TabsContent, and TabsIndicator for improved UI navigation

* refactor: replace Dialog with ResponsiveDialog in CssImportDialog component for improved UI consistency and responsiveness

* refactor: replace Dialog with ResponsiveDialog in AuthDialog component for improved UI consistency and responsiveness

* refactor: replace Dialog with ResponsiveDialog in MCPDialog component for improved UI consistency and responsiveness

- Replace `Tabs` component with new Base UI based `Tabs` component

* refactor: update Tabs and Select components in CodePanel for improved UI consistency

- Replace old Tabs component with new Base UI based Tabs component
- Add TabsIndicator for enhanced visual feedback
- Adjust SelectContent z-index for better layering

* refactor: replace Dialog with ResponsiveDialog in CodePanelDialog component for improved UI consistency and responsiveness

- fix: accessibility issue cased by missing title and description for dialog

* refactor: replace Dialog with ResponsiveDialog in ContrastChecker component for improved UI consistency and responsiveness

- Disable `Issues` button, when there's no issue
- Sticky Header for each section for better messaging for each section especially on mobile

* refactor: adjust layout and spacing in FigmaExportDialog for improved visual consistency

- Update margin and padding for better alignment of elements
- Remove unnecessary line breaks to streamline the code

* refactor: adjust layout and spacing in GetProDialog and AIChatDemo components for improved visual consistency

- Update positioning of elements in GetProDialog for better alignment
- Remove unnecessary inset from AIChatDemo for cleaner layout

* refactor: enhance layout in CodePanelDialog for improved responsiveness

- Adjust max-height for better display on smaller screens
- Maintain overall visual consistency with other dialog components

* refactor: enhance CodePanel layout with additional ScrollBar orientations

- Add horizontal and vertical ScrollBars for improved navigation within code panels
- Adjust padding in CodePanelDialog for better spacing and visual consistency

* refactor: clean up TabsIndicator component by removing commented code

- Remove unnecessary commented-out code for better readability
- Streamline TabsIndicator implementation for improved clarity

* refactor: update ResponsiveDialog components to use isDesktop for breakpoint detection

- Replace isMobile with isDesktop in ResponsiveDialog components for improved clarity
- Ensure consistent behavior across dialog and drawer implementations based on desktop view

* refactor: enhance ResponsiveDialogContent with additional props for customization (v1.4) update

- Introduce closeButtonClassName and dragHandleClassName props for better styling control
- Update context initialization to allow null values for improved type safety
- Refactor ResponsiveDialogContent to streamline rendering logic and improve readability

* refactor: reorganize imports and clean up AuthDialog component for improved readability

- Rearranged import statements for better structure
- Removed unnecessary props from ResponsiveDialogContent for cleaner layout
- Enhanced overall code clarity and maintainability

* refactor: reorganize imports in MCPDialog for improved clarity and consistency

- Rearranged import statements for better structure
- Cleaned up component imports to enhance readability
- Maintained overall code organization for future maintainability

* refactor: reorganize imports and enhance layout in various dialog components for improved readability

- Cleaned up and rearranged import statements for better structure
- Updated ResponsiveDialogContent and ResponsiveDialogHeader for consistent padding and spacing
- Enhanced overall layout and visual consistency across multiple dialog components

* refactor: add iOS detection to adjust repositioning of inputs in ResponsiveDialog
2025-08-30 18:28:31 +05:30
Sahaj Jain 521dafcaae add darkmatter theme 2025-08-23 04:40:53 +05:30
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