UI Kit

Quick Setup

This document is aimed to run a Metronic based web project in just 10 minutes. It's assumed that you already purchased a license.

  1. Download your prefered HTML Demo from Metronic Downloads  by providing your Purchase Code.
  2. Refer to File Structure and install Gulp or Webpack build tools to generate assets for your project.
  3. The build tools are required in your development environment only just to build the assets upon code changes in the source folder and the end product uses the compiled assets folder in server.
  4. Editing the compiled assets is not recommended. Instead, edit the source code in src folder and compile the changes into assets folder using Gulp or Webpack build tools.
  5. Use Layout Builder to configure a layout with prefered options and export it as HTML partials for quicker server side integration. Change the demo number in the URL as ../demo5/layout-builder..html to access other demos Layout Builder.
  6. Unpack the exported HTML partials and use your server side language to construct and render your page by including the layout partials according to the instruction given in the HTML code comments.
  7. Refer to Template Markup and include mandatory and optinal assets for your project.
  8. Refer to RTL Version and Dark Mode guides if your project requires the RTL and Dark mode support.

File Structure

Metronic comes with a flexible file structure that can be easily used for small to large scope projects. This section will explain the entire file structure and how to adapt it to your project.

File/FolderDescription
designThe theme's Figma design files.
themeThe main theme folder.
distThe destination folder that contains of the html templates and compiled assets.
assetsStatic assets(js, css, images, fonts) compiled from the source folder theme/src.
cssStatic stylesheet files compiled from the Sass source files theme/src/sass.
jsStatic Javascript files compiled from the Javascript source files theme/src/js.
mediaStatic media files(images, illustrations, svg, etc) compiled from the media source files theme/src/media.
plugins3-rd party plugins(js, css, fonts, images) bundles compiled from the media source files tools/node_modules, src/js//vendors and src/sass//vendors.
globalGlobal plugins folder that contains plugins.bundle.css and plugins.bundle.js to be included in all pages.
customCustom plugins bundleds to be included in specific pages on demand.
index.htmlThe main template that coontains the page layout and content.
srcThe source folder that contains of the Sass, Javascript and media files. Required only for development and can be excluded for production.
jsJavascript source files compiled to theme/assets/js.
componentsThe core components source Javascript files bundled in theme/assets/js/scripts.bundle.js and globally included in all pages.
customCustom Javascript files moved to theme/assets/js/custom and used in specific pages on demand.
layoutThe core layout source Javascript files bundled in theme/assets/js/scripts.bundle.js and globally included in all pages.
vendors3-rd party plugins global initialization Javascript files bundled in theme/assets/plugins/global/plugins.bundle.js and globally included in all pages.
widgetsThe dashboard widgets source Javascript files bundled in theme/assets/js/widgets.bundle.js and used in specific pages on demand.
pluginsThe source Javascript, Stylesheet, font and images files of custom 3rd-party and in-house plugins bundled into theme/assets/plugins/global/plugins.bundle.js and theme/assets/plugins/global/plugins.bundle.css.
mediaThe source files of images, illustrations, icons and flags moved to theme/assets/media to use for the core layout and other demonstration purposes.
toolsThe theme build tools for command line assets compilation tasks. Required only for development and can be excluded for production.
packages.jsonThe project packages config file used by Yarn or Npm packagers to managers the dependencies.
gulpGulp build tasks to compile the source files theme/src into the static assets files theme/assets.
gulp.config.jsThe main config of Gulp build tasks.
webpackWebpack build tasks to compile the source files theme/src into the static assets files theme/assets.
webpack.config.jsThe main config of Webpack build tasks.
README.mdA tiny help file that privides a quick guide to get started with Metronic.
Help Ukraine to stop russian aggression