Chat UI š¤
A stunning, chat interface built with Next.js 14 and Tailwind CSS. Features a modern design with glass morphism, theme switching, real-time interactions, and fluid animations. Perfect for AI chat applications or modern messaging platforms.

š UI Preview
Dark Theme
Light Theme
⨠Features
šØ Modern Design
- Stunning gradient effects and animations
- Responsive design that works on all devices
- Beautiful glass-morphism effects
- Dark and light theme support with system preference detection
- Smooth transitions and hover effects
- Animated background blobs
š¬ Chat Interface
- Real-time message updates
- Typing indicators with bouncing dots animation
- Auto-expanding text input
- Message threading with user and AI bubbles
- Smart message scrolling with auto-scroll to bottom
- Auto-focus on input after AI responses
- Support for markdown-style bullet points in responses
ā” User Experience
- Keyboard shortcuts (Enter to send, Shift + Enter for new line)
- Example prompts for quick start
- Loading states and disabled states for better feedback
- Smooth animations for message transitions
- Responsive textarea with auto-height adjustment
- Clear visual hierarchy for messages
šÆ Navigation
- Clean navigation bar with theme switcher
- Back button for easy navigation
- URL parameter support for initial messages
- Seamless routing between pages
š Technical Features
- Built with Next.js 14 and React
- Tailwind CSS for styling
- TypeScript for type safety
- Client-side message handling
- Theme persistence in local storage
- Efficient DOM updates and renders
š Getting Started
Prerequisites
- Node.js 18.0 or later
- npm or yarn
Installation
Clone the repository:
git clone https://github.com/thakurcoderz/ai-chat-ui.git
cd ai-chat-ui
Install dependencies:
npm install
# or
yarn install
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 in your browser.
š¦ Project Structure
āāā app/
ā āāā components/ # Reusable components
ā āāā constants/ # UI constants and text
ā āāā chat/ # Chat page
ā āāā globals.css # Global styles
ā āāā layout.tsx # Root layout
ā āāā page.tsx # Landing page
āāā public/ # Static assets
āāā tailwind.config.ts # Tailwind configuration
āāā package.json # Project dependencies
šØ Theme Customization
The application uses CSS variables for theming, which can be customized in globals.css:
- Light theme colors
- Dark theme colors
- Gradient colors
- Accent colors
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
š License
This project is licensed under the MIT License - see the LICENSE file for details.