Skip to content

du8z/Modern-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Modern Dashboard

A Beautiful, Responsive Analytics Dashboard

React TypeScript Vite Tailwind CSS License

Demo β€’ Features β€’ Installation β€’ Documentation


🎯 Overview

Modern Dashboard is a production-ready, feature-rich analytics dashboard built with cutting-edge web technologies. It provides an elegant interface for visualizing business metrics, tracking KPIs, and analyzing data trends with interactive charts and responsive design.

Perfect for startups, SaaS applications, or any project requiring a professional admin panel.

Features

🎨 Modern UI/UX

  • Clean, minimalist design with smooth animations
  • Dark mode support with seamless theme switching
  • Responsive layout that works on all devices (mobile, tablet, desktop)
  • Hover effects and scale animations on interactive elements

πŸ“Š Data Visualization

  • Interactive charts powered by Recharts (Area, Line, Pie, Composed)
  • Real-time data updates with animated counters
  • Customizable stat cards with trend indicators
  • Multiple chart types for different data representations

πŸš€ Performance & Developer Experience

  • Lightning-fast development with Vite HMR
  • Type-safe codebase with TypeScript
  • Modular component architecture
  • ESLint + Prettier for code quality
  • Optimized production builds

🎯 Key Components

  • Dashboard: Overview with revenue, orders, customers, and conversion metrics
  • Analytics: Deep-dive analytics with revenue vs profit, regional sales, and performance breakdowns
  • Products: Product management with filtering and search
  • Reusable Card Component: Unified, modular card system with StatCard functionality built-in

πŸ“Έ Screenshots

Note: Add your screenshots to the /docs/screenshots/ directory

Dashboard Overview

Dashboard Screenshot Main dashboard with KPI cards and revenue charts

Analytics Page

Analytics Screenshot Detailed analytics with regional sales and performance metrics

Dark Mode

Dark Mode Screenshot Beautiful dark theme for reduced eye strain

πŸ› οΈ Technologies Used

Frontend

React TypeScript React Router

Styling & UI

Tailwind CSS Lucide Icons

Data Visualization

Recharts

Build Tools & Dev

Vite ESLint Prettier

πŸš€ Getting Started

Prerequisites

  • Node.js 18.x or higher
  • npm 9.x or higher (or yarn / pnpm)

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/modern-dashboard.git
    cd modern-dashboard
  2. Install dependencies

    npm install
  3. Start the development server

    npm run dev
  4. Open your browser

    Navigate to http://localhost:5173

Build for Production

# Create optimized production build
npm run build

# Preview production build locally
npm run preview

The build output will be in the dist/ directory, ready to deploy.

Project Structure

modern-dashboard/
β”œβ”€β”€ public/                  # Static assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/          # Reusable components
β”‚   β”‚   β”œβ”€β”€ ui/             # UI components (Card, Button, etc.)
β”‚   β”‚   β”‚   └── Card.tsx    # Unified Card component with StatCard functionality
β”‚   β”‚   β”œβ”€β”€ Layout.tsx      # Main layout wrapper
β”‚   β”‚   β”œβ”€β”€ Sidebar.tsx     # Navigation sidebar
β”‚   β”‚   β”œβ”€β”€ ThemeToggle.tsx # Dark mode toggle
β”‚   β”‚   └── Skeleton.tsx    # Loading skeletons
β”‚   β”œβ”€β”€ pages/              # Page components
β”‚   β”‚   β”œβ”€β”€ Dashboard.tsx   # Main dashboard page
β”‚   β”‚   β”œβ”€β”€ Analytics.tsx   # Analytics page
β”‚   β”‚   β”œβ”€β”€ Products.tsx    # Products page
β”‚   β”‚   └── Settings.tsx    # Settings page
β”‚   β”œβ”€β”€ data/               # Mock data
β”‚   β”‚   └── mockData.ts     # Sample data for charts
β”‚   β”œβ”€β”€ utils/              # Utility functions
β”‚   β”‚   └── formatters.ts   # Number/currency formatters
β”‚   β”œβ”€β”€ App.tsx             # Root component with routing
β”‚   β”œβ”€β”€ index.css           # Global styles
β”‚   └── main.tsx            # Application entry point
β”œβ”€β”€ docs/
β”‚   └── screenshots/        # Add your screenshots here
β”œβ”€β”€ .eslintrc.cjs           # ESLint configuration
β”œβ”€β”€ .prettierrc             # Prettier configuration
β”œβ”€β”€ tailwind.config.js      # Tailwind CSS configuration
β”œβ”€β”€ tsconfig.json           # TypeScript configuration
β”œβ”€β”€ vite.config.ts          # Vite configuration
β”œβ”€β”€ vercel.json             # Vercel deployment config
└── package.json            # Dependencies and scripts

πŸ“œ Available Scripts

Command Description
npm run dev Start development server with HMR
npm run build Build for production
npm run preview Preview production build locally
npm run lint Run ESLint to check code quality
npm run lint:fix Auto-fix ESLint issues
npm run format Format code with Prettier
npm run format:check Check code formatting

Demo

πŸš€ Live Demo: https://modern-dashboard-six.vercel.app

Deploy your own instance to Vercel with one click:

Deploy with Vercel

🎨 Customization

Theme Colors

Edit tailwind.config.js to customize the color palette:

module.exports = {
  theme: {
    extend: {
      colors: {
        primary: '#3B82F6',
        secondary: '#10B981',
        // Add your custom colors
      },
    },
  },
};

Adding New Pages

  1. Create a new component in src/pages/YourPage.tsx
  2. Add the route in src/App.tsx:
    <Route path="/your-page" element={<YourPage />} />
  3. Update sidebar navigation in src/components/Sidebar.tsx

Card Component Usage

The unified Card component supports both standard cards and stat cards:

// Standard Card
<Card hoverable>
  <h2>Your Content</h2>
</Card>

// Stat Card
<Card
  title="Total Revenue"
  value="$45,231"
  iconName="DollarSign"
  iconColor="green"
  hoverable
  trend={{ value: 12.5, isPositive: true }}
/>

πŸ—ΊοΈ Roadmap

  • Authentication System - User login/logout with JWT
  • Real API Integration - Connect to backend services
  • Advanced Filtering - Date range pickers, custom filters
  • Export Functionality - CSV/PDF export for reports
  • User Management - Admin panel for user roles
  • Notifications - Real-time alerts and notifications
  • Multi-language Support - i18n integration
  • Custom Themes - Theme builder and presets
  • Mobile App - React Native version

🀝 Contributing

Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Recharts for the amazing chart library
  • Lucide for beautiful icons
  • Tailwind CSS for the utility-first CSS framework
  • Vite for the blazing-fast build tool

Made with ❀️ by Your Team

⬆ Back to Top

# Modern-Dashboard

About

Modern Dashboard - Modern analytics dashboard with online demo! Developed with React 19, TypeScript, and Tailwind CSS. Visualize your data with interactive charts, dark mode, and responsive design. Perfect for SaaS and business applications. Demo link available - See the project in action before downloading !

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors