CoreUI Free React Admin Template
A free React admin dashboard template built with CoreUI components for developers who need a ready‑to‑use admin interface.
By coreui coreui/coreui-free-react-admin-template 4,974 stars
Introduction
CoreUI Free React Admin Template is an open‑source admin dashboard built with React and CoreUI components. It provides a ready‑to‑use interface for building internal tools, analytics panels, or any web‑based administration system.
What this project offers
- A complete set of reusable UI components (header, footer, sidebar, widgets).
- Ready‑made pages such as dashboards, authentication screens, error pages, and forms.
- Integration with Chart.js for visualising data.
- State management with Redux and routing with React Router.
- Responsive layout that works on desktop and mobile browsers.
Main features
- Sidebar navigation defined in
_nav.jsx. - Header, footer, and layout components.
- Multiple dashboard pages with Chart.js charts.
- Authentication and error page templates.
- Form and widget components.
- Light‑theme only, responsive design.
Technology stack
- React (v19.2.8)
- Vite (v8.2.1) for development and build
- Sass for styling (
scssfiles) - Chart.js (v4.5.1) for charts
- Redux for state management
- React Router for routing
- CoreUI React component library
Requirements
- Node.js installed on your machine.
- npm (or yarn) to install dependencies.
Installation
- Download the ZIP archive from the release page:
/download/coreui-react-admin-template.zip - Extract the archive to a folder of your choice.
- Open a terminal and navigate to the extracted folder:
cd coreui-free-react-admin-template
- Install the required packages:
npm install
(or yarn install if you prefer Yarn)
- Build the project for production:
npm run build
The build script runs vite build and creates a build/ directory containing the compiled assets.
- (Optional) Preview the production build locally:
npm run serve
This starts a Vite preview server at http://localhost:4173 (default port).
Configuration
Configuration is mainly done through the Vite config file vite.config.mjs.
- The
baseoption is set to'./'so the built files can be served from any sub‑directory. - The output directory is defined as
outDir: 'build'.
You can modify the Vite config to change the development server port, add proxy rules, or adjust CSS processing.
Customizing the project
- Styling: Edit the SCSS files in
src/scss/(style.scss,examples.scss, etc.). - Navigation: Update the sidebar items in
src/_nav.jsx. - Routes: Add or modify routes in
src/routes.js. - Components: Create new UI components in
src/components/and import them where needed. - State: Extend the Redux store in
src/store.jsto manage additional application state.
Project structure
src/
App.jsx
_nav.jsx
assets/
brand/
icons/
images/
components/
AppBreadcrumb.jsx
AppContent.jsx
AppFooter.jsx
AppHeader.jsx
AppSidebar.jsx
AppSidebarNav.jsx
DocsComponents.jsx
DocsExample.jsx
DocsIcons.jsx
DocsLink.jsx
header/
index.js
index.jsx
layout/
DefaultLayout.jsx
routes.js
scss/
examples.scss
style.scss
vendors/
store.js
views/
authentication/
charts/
components/
dashboard/
error-pages/
forms/
icons/
widgets/
public/
favicon.ico
manifest.json
index.html
package.json
vite.config.mjs
Tips
- Run
npm run lintto check code quality with ESLint. - The development server (
npm start) uses Vite’s hot‑module replacement, so changes appear instantly in the browser. - After building, the
build/folder can be deployed to any static‑file host (e.g., Netlify, Vercel, GitHub Pages).
License and attribution
This project is licensed under the MIT License. See the full license file at the repository: https://github.com/coreui/coreui-free-react-admin-template/blob/main/LICENSE
When redistributing or using the template, keep the LICENSE file and retain the copyright notice. Credit the original author as required by the MIT license.
Use this prompt with an AI coding assistant (Claude Code, Cursor, ChatGPT and similar) to add CoreUI Free React Admin Template to a website or app you already have.
- Download the ZIP and put the project next to your own code.
- Fill in the bracketed parts, such as
[describe your stack]. - Paste the prompt into your assistant and review each change it proposes.
# Integrate CoreUI Free React Admin Template **Role** You are a senior frontend developer assisting me in adding the CoreUI Free React Admin Template to my existing web application. **Project description** CoreUI Free React Admin Template is a ready‑to‑use admin dashboard built with React, Vite, Sass, Chart.js, Redux and React Router. It provides a sidebar navigation, header/footer, multiple dashboard pages, chart components, authentication and error pages, form and widget components, and a responsive layout with light‑only theme support. **Source project** - Repository: https://github.com/coreui/coreui-free-react-admin-template - License: MIT - Framework: other (React) – version ^19.2.8 (React) and Vite ^8.2.1 - Build tool: Vite (script `npm run build` → `vite build`) - Key dependencies (as listed in `package.json`): - `@coreui/react` ^5.13.0 - `@coreui/coreui` ^5.9.0 - `@coreui/icons-react` ^2.3.0 - `react-router-dom` ^7.18.2 - `react-redux` ^9.3.0, `redux` 5.0.1 - `chart.js` ^4.5.1, `@coreui/react-chartjs` ^3.0.0 - `sass` ^1.102.0, `postcss` ^8.5.26, `autoprefixer` ^10.5.4 **Target project context** - Stack: `[describe your stack, e.g., Laravel 11 + Blade]` - UI insertion point: `[where the admin UI should appear, e.g., inside a <div id="admin-root">]` - Existing CSS framework (if any): `[e.g., Tailwind, Bootstrap, none]` **Integration objectives** - Bring over the overall layout (header, footer, sidebar) - Import navigation configuration (`src/_nav.jsx`) - Add selected dashboard and chart pages - Reuse CoreUI components (AppHeader, AppSidebar, etc.) where appropriate - Keep existing application logic untouched. **Required components** - Layout files: `src/layout/DefaultLayout.jsx`, `src/components/AppHeader.jsx`, `src/components/AppSidebar.jsx`, `src/components/AppFooter.jsx` - Navigation config: `src/_nav.jsx` - Routes definition: `src/routes.js` (to merge with your router) - Views you may need: `src/views/dashboard/`, `src/views/charts/`, `src/views/forms/`, `src/views/widgets/`, `src/views/authentication/`, `src/views/error-pages/` - SCSS styles: `src/scss/style.scss` and related files in `src/scss/vendors/` - Assets: `src/assets/brand/`, `src/assets/icons/`, `src/assets/images/` **Layout and styling requirements** - Scope CoreUI styles by importing `style.scss` only in the admin entry point to avoid global CSS leaks. - If your app uses another CSS framework, ensure CoreUI class names do not conflict; consider wrapping the admin UI in a container with a unique class (e.g., `.coreui-admin`) and prefixing custom overrides. - Use the existing design tokens from CoreUI (variables in SCSS) and map them to your brand colors if needed. **Asset management** - Copy the `src/assets/` folder into your project’s assets directory, preserving the sub‑folders. - Add the SCSS files to your build pipeline (Vite or your existing bundler). - Do not duplicate libraries that already exist in your project (React, Redux, Chart.js, etc.); rely on the versions already installed. - If you use a CDN for icons or fonts, you can reference the same files from `public/manifest.json` and `public/favicon.ico`. **Routing and navigation** - Merge the objects from `src/routes.js` with your existing route configuration, preserving your current URLs. - Keep the admin routes under a common prefix (e.g., `/admin/*`). - Ensure the sidebar navigation (`_nav.jsx`) reflects the merged route structure. **Responsive requirements** - The template is built with responsive meta tags and SCSS breakpoints; keep the `` tag from `index.html`. - Test the admin UI on typical breakpoints (mobile, tablet, desktop) after integration. **Accessibility requirements** - CoreUI components include ARIA attributes; retain them. - Verify that focus order works when navigating via keyboard inside the admin area. - Ensure color contrast meets WCAG AA for the light theme. **Compatibility requirements** - React ^19.2.8, Vite ^8.2.1, Sass ^1.102.0, Chart.js ^4.5.1, Redux ^5.0.1 are required. - A build step is needed (`npm run build` or `vite build`) to generate the production assets. - If your project uses a different bundler, adapt the Vite config (`vite.config.mjs`) accordingly or replicate its alias and CSS handling. **Preserve the existing application** - First, inspect the current codebase before modifying any file. - Do not replace authentication, routing, state management, or data‑fetching logic that already exists. - Make small, isolated changes (e.g., add new component files, update route arrays) and create a separate commit for each. - Ask before deleting any existing files or dependencies. **Testing and verification checklist** - [ ] Run the existing application and confirm it still works unchanged. - [ ] Build the admin UI (`npm run build`) and verify the output is placed in the expected directory. - [ ] Load the admin page in the browser and check that the header, sidebar, and footer render correctly. - [ ] Navigate through all imported routes (dashboard, charts, forms, widgets, auth, error pages). - [ ] Confirm that existing styles from the main app are not overridden by CoreUI styles. - [ ] Test responsiveness at mobile, tablet, and desktop widths. - [ ] Verify keyboard navigation and screen‑reader announcements for key components. - [ ] Check console for any duplicate library warnings or version conflicts. - [ ] Ensure that the build size does not include duplicate copies of React, Redux, or Chart.js. - [ ] Run existing unit/integration tests to ensure no regressions.

