{"id":30216754,"url":"https://github.com/mansoorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper","last_synced_at":"2025-08-14T03:49:58.923Z","repository":{"id":307731071,"uuid":"1029319967","full_name":"ManSOorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper","owner":"ManSOorcode","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-01T20:00:06.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-01T22:28:27.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ManSOorcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-30T21:30:31.000Z","updated_at":"2025-08-01T20:00:09.000Z","dependencies_parsed_at":"2025-08-01T22:28:29.155Z","dependency_job_id":"701889bf-35f7-458e-a92a-28d2ca4620cd","html_url":"https://github.com/ManSOorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper","commit_stats":null,"previous_names":["mansoorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ManSOorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManSOorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManSOorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManSOorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManSOorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManSOorcode","download_url":"https://codeload.github.com/ManSOorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManSOorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270359005,"owners_count":24570445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-14T03:49:57.464Z","updated_at":"2025-08-14T03:49:58.880Z","avatar_url":"https://github.com/ManSOorcode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# 🌗 Multi-Theme Switcher App\n\nA responsive and customizable React + TypeScript web application with a theme switcher. Users can seamlessly switch between **three distinct themes**—each with unique layouts, typography, colors, and structure.\n\n---\n\n## ✨ Features\n\n- 🧭 **Theme Switcher Dropdown** in a fixed header (Theme 1 as default)\n- 🎨 **3 Distinct Themes**:\n\n  - **Theme 1**: Light, minimalist layout with sans-serif font\n  - **Theme 2**: Dark mode with sidebar and bold serif font\n  - **Theme 3**: Colorful card-based layout with playful fonts (e.g., _Pacifico_)\n\n- 🧱 Modular components (Buttons, Footer, Sidebar, etc.)\n- 🔁 Persistent theme using `localStorage`\n- 🧠 Theme state managed via **React Context API**\n- 🔌 Product data fetched from [Fake Store API](https://fakestoreapi.com/products)\n- 📱 Fully **Responsive UI** for desktop and mobile\n- 🚀 Smooth **Theme Transition Animations**\n- 🔐 Basic **Security** practices implemented\n- 🧭 Routing via **React Router** with pages:\n\n  - Home (`/`)\n  - About (`/about`)\n  - Contact (`/contact`)\n\n- 📦 No heavy UI libraries (e.g., MUI, Ant Design) used\n- ⚡ Built with **TailwindCSS** for styling\n\n---\n\n## 🧾 Folder Structure\n\n```\nsrc/\n├── app/                   # Pages: Home, About, Contact, Products\n│   ├── about/\n│   ├── contact/\n│   ├── products/\n│   └── layout.tsx         # Common layout\n├── components/            # Reusable UI Components\n│   ├── buttons/\n│   ├── contact/\n│   ├── Footer.tsx\n│   ├── Sidebar.tsx\n│   └── ThemeSwitcher.tsx\n├── contextapi/            # Theme context\n│   └── ThemeContext.tsx\n├── query/                 # API integration\n│   └── apis/\n│       └── QueryProvider.tsx\n├── types/                 # TypeScript interfaces/types\n├── utils/                 # Helper functions \u0026 static data\n├── globals.css            # Global styles\n├── next.config.ts         # Next.js config\n└── ...\n```\n\n---\n\n## 🛠️ Tech Stack\n\n- **Next.js** `v15.4.5`\n- **React** `v19.1.0`\n- **TypeScript** `v5`\n- **Tailwind CSS** `v4.1.11`\n- **React Query (@tanstack/react-query)** `v5.84.1`\n- **PostCSS** `v8.5.6`\n- **ESLint** `v9` with `eslint-config-next`\n\n---\n\n## 🚀 Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/ManSOorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper.git\ncd multi-theme-switcher-mansoorkhan-frontenddeveloper\n```\n\n### 2. Install Dependencies\n\n```bash\nnpm install\n# or\nyarn install\n```\n\n### 3. Run the Development Server\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) to view the app.\n\n---\n\n## ⚙️ Theme Switching Logic\n\n- `ThemeContext.tsx`: Stores the current theme and updates context.\n- `ThemeSwitcher.tsx`: Dropdown to choose from Theme 1, 2, 3.\n- Theme info stored in `localStorage` to persist across sessions.\n- Each theme modifies:\n\n  - Color palette\n  - Font family\n  - Layout structure (grid/sidebar/card)\n  - Spacing and animations\n\n---\n\n## 🔐 Security Practices\n\n- Sanitized all external data\n- Basic route protection and error boundaries\n\n---\n\n## 📁 API Integration\n\n- Fetches products from [FakeStoreAPI](https://fakestoreapi.com/products)\n- API logic encapsulated in `query/apis/QueryProvider.tsx`\n\n---\n\n## 📸 Screenshots\n\n\u003cimg width=\"300\" height=\"900\" alt=\"theme_one_home\" src=\"https://github.com/user-attachments/assets/0743dee3-9f5b-4bab-9396-e0f4787f59a4\" /\u003e\n\u003cimg width=\"300\" height=\"900\" alt=\"theme_two_home\" src=\"https://github.com/user-attachments/assets/50b2d209-d401-4b94-af21-42327cb148a1\" /\u003e\n\u003cimg width=\"300\" height=\"790\" alt=\"theme_three_home\" src=\"https://github.com/user-attachments/assets/e066ebfa-5cdb-4935-9740-f6884ea2b736\" /\u003e\n\n---\n\n## 👨‍💻 Author\n\n- **Developer**: Mansoor Khan(https://github.com/ManSOorcode/multi-theme-switcher-mansoorkhan-frontenddeveloper.git)\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansoorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmansoorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansoorcode%2Fmulti-theme-switcher-mansoorkhan-frontenddeveloper/lists"}