Welcome

CopyGen - AI Writer & Copywriting Landing Page HTML Template

CopyGen is a responsive website template that looks great on desktops, tablets, and mobile devices. It is built with Bootstrap 5, HTML5, CSS3, Vanilla JS, and SASS, with a Vite rebuild workflow. The package includes a landing kit and a dashboard kit, each with prebuilt pages, SCSS skins, and RTL variants.

If you like our template, please don't forget to rate it. Thank you so much!

Quick Start - with Vite Workflow

Without Node: open pages from copygen-html-landing/html/ (or copygen-html-dashboard/html/). Prebuilt CSS/JS live under html/assets/, images under html/images/. With Node/Vite: edit src/scss or src/js, then run npm run build (or dev) and use dist/.
Installing Node.js
  • 1. Download the latest theme source from Themeforest.
  • 2. Download and install Node.js from nodejs.org (if you don't have it installed).
  • 3. Open a terminal and change directory to the kit folder (landing or dashboard).
  • cd copygen-html-landing
  • 4. Install dependencies.
  • npm install
  • 5. Build assets into dist/ (copies html/ and recompiles CSS/JS from src/, including *.rtl.css).
  • npm run build
  • 6. Optional: local Vite server for live CSS/JS from src/.
  • npm run dev
Older releases used Gulp. Current packages use npm run build / dev only.

File and Folder Structure

|--docs/
|--copygen-html-landing/         (landing kit)
|--|--html/                      ready-to-open LTR pages
|--|--|--index.html
|--|--|--[other-pages].html
|--|--|--assets/css|js|fonts/
|--|--|--images/
|--|--|--form/
|--|--src/
|--|--|--scss/
|--|--|--js/
|--|--|--assets/
|--|--package.json
|--|--vite.config.js
|--copygen-html-dashboard/       (dashboard kit — same shape)

HTML structure

This is a basic HTML structure used by the compiled pages.

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" href="images/favicon.png">
        <title>CopyGen || Website Tagline</title>
        <link rel="stylesheet" href="assets/css/style.css">
    </head>
    <body class="nk-body" data-menu-collapse="lg">
        <div class="nk-app-root">
            <!-- header / content / footer -->
        </div>
        <script src="assets/js/bundle.js"></script>
        <script src="assets/js/scripts.js"></script>
    </body>
</html>

SCSS

SCSS sources live in src/scss. Each non-partial entry builds assets/css/<name>.css and <name>.rtl.css.

File Structure
|--src/
|--|--scss/
|--|--|--core/
|--|--|--extend/bootstrap/
|--|--|--vendors/
|--|--|--_variables.scss
|--|--|--_variables-[skin].scss
|--|--|--style.scss
|--|--|--style-[skin].scss
|--|--|--theme.scss

Editing compiled CSS under html/assets/css is not recommended. Prefer changing SCSS and running npm run build, or add a custom CSS file and link it from HTML.

Javascript

Vendor libraries are imported in src/js/bundle.js (ES modules) and compiled to a classic <script src>. Custom code lives in src/js/scripts.js.

File structure
|--src/
|--|--js/
|--|--|--bundle.js
|--|--|--scripts.js
|--|--|--vendors/nioapp.js

If you are not familiar with JavaScript, avoid editing core vendor includes — mistakes there can break the whole bundle.

Prefer adding your own JS and importing or including it from scripts.js, then run npm run build.

Dark Mode

To activate dark mode by default, add .is-dark on body and .dark-active on .dark-mode-toggle buttons.

This is an HTML template — the dark-mode toggle is demo-only and resets after a full page reload unless you persist the preference yourself.

RTL Mode

RTL stylesheets ship beside the LTR files under html/assets/css/ (e.g. style.css / style.rtl.css). The live demosite toolbar can switch direction via JavaScript; that switcher is not included in the customer package.

In the package, enable RTL manually:

  1. Add dir="rtl" on the <body> tag (or the app root element).
  2. Change the stylesheet link from style.css to style.rtl.css (same for other skins).
<link rel="stylesheet" href="assets/css/style.rtl.css">
…
<body class="nk-body" dir="rtl">

How to Set Edit PHP Files for Working Form

Open html/form/message-form.php (landing kit). Update sitename, email, and name. Duplicate the $emailTO[] line for additional recipients.

### Enter Your Sitename
$sitename = 'Your Sitename';

### Enter your email addresses: @required
$emailTO[] = array( 'email' => '[email protected]', 'name' => 'Name' );

Optional CC — uncomment and edit:

//$emailCC[] = array( 'email' => '[email protected]', 'name' => 'Your Name' );

Optional SMTP — uncomment and fill in:

// $mail->isSMTP();
// $mail->SMTPDebug = 0;
// $mail->Host = 'smtp_host';
// $mail->Port = 587;
// $mail->SMTPAuth = true;
// $mail->Username = 'smtp_username';
// $mail->Password = 'smtp_password';