• Submit Ticket
  • My Tickets
Themeix Support Portal
  • Submit Ticket
  • My Tickets

Docs: Tokenmart HTML Site Template

/HTML Templates / Tokenmart HTML Site Template /
  • Tokenmart HTML Site Template Introduction
  • Tailwindcss Configuration
  • Tailwindcss Customizing Colors
  • Top 5 Website Optimization Tips for HTML Template
  • Uploading to Server
  • How to run gulp on the computer?
  • Editing HTML Files

Tokenmart HTML Site Template Introduction

Enjoy the benefits of a more versatile website with Tokenmart HTML Template. Featuring a simple design, this template is perfect for showcasing the various tokens that belong to your company or business.

This is an HTML website template for NFT Marketplace.


Open in New Tab

Tailwindcss Configuration

A guide to configuring and customizing your Tailwind installation.

ecause Tailwind is a framework for building bespoke user interfaces, it has been designed from the ground up with customization in mind.

By default, Tailwind will look for an optional tailwind.config.js file at the root of your project where you can define any customizations.

// Example `tailwind.config.js` file
const colors = require('tailwindcss/colors')

module.exports = {
  theme: {
    colors: {
      gray: colors.coolGray,
      blue: colors.lightBlue,
      red: colors.rose,
      pink: colors.fuchsia,
    },
    fontFamily: {
      sans: ['Graphik', 'sans-serif'],
      serif: ['Merriweather', 'serif'],
    },
    extend: {
      spacing: {
        '128': '32rem',
        '144': '36rem',
      },
      borderRadius: {
        '4xl': '2rem',
      }
    }
  },
  variants: {
    extend: {
      borderColor: ['focus-visible'],
      opacity: ['disabled'],
    }
  }
}

Every section of the config file is optional, so you only have to specify what you’d like to change. Any missing sections will fall back to Tailwind’s default configuration.


Open in New Tab

Tailwindcss Customizing Colors

Tailwind includes an expertly-crafted default color palette out-of-the-box that is a great starting point if you don’t have your own specific branding in mind.

But when you do need to customize your palette, you can configure your colors under the colors key in the theme section of your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    colors: {
      // Configure your color palette here
    }
  }
}

When it comes to building a custom color palette, you can either curate your colors from our extensive included color palette, or configure your own custom colors by adding your specific color values directly.

You can also define your colors as simple strings instead of objects:

// tailwind.config.js
module.exports = {
  theme: {
    colors: {
      'indigo-lighter': '#b3bcf5',
      'indigo': '#5c6ac4',
      'indigo-dark': '#202e78',
    }
  }
}

Open in New Tab

Top 5 Website Optimization Tips for HTML Template

A Fast & Optimized Website has several factors which needs to be implemented in order to achieve the desired results. There are several Optimization Techniques available which will definitely affect your Website’s Performance in a Positive Way & we want to share a few of them with you:

01) gZip Compression & Browser Caching

This is probably one of the Most Important Techniques you should definitely implement in order to bump up your Website’s Loading Speed. gZip Compression is used to compress the Files that are delivered when loading a Website. It covers HTML, CSS, Javascript & Font Files along with other miscellaneous text files. Where as Browser Caching also covers Images & Videos apart from including the above files. This is used to saves the Static Data in your Browser itself so that when you open the Next Pages on the Same Website, the content does not gets Downloaded again, loading the Website fast.

gZip Compression & Browser Caching can be enabled using the .htaccess File on an Apache Web Server. You can use the Codes from here: https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess to enable these modules on your server.

02) Image Compression & Optimization

We tend to use Lots of Images on our Websites but we often do not make efforts to Compress & Optimize them. Remember, the Larger the Image, the more time it takes to download and therefore this slows your website loading times affecting User Experience. Your customer will leave your website if it does not load within 3-5 Seconds which adversely affects your Sales. Therefore, it is important to Resize, Optimize & Compress your Images before using it on your Website. Here are some Tips which might come handy in optimizing images:

  • Resize your Images: Resize your Images before using it on your Website. Do not just Download an Image & place it as it is in your Website’s <img> Tag without resizing it. The size/resolution of the Image matters since it is not recommended to use an Image size of 1200px x 800px in a Content Size of 300px x 200px as this is unnecessary. Resize it to 300px x 200px
  • Image Formats: There are three common file types that are used for web images which are JPEG, GIF, & PNG. For images with a Flat Background use JPEG images, for images with a Transparent background use PNG images and for images with Animations use GIF images.
  • Compressing Images: Images Compression is important as it considerably reduces the size without losing the quality. There are several FREE Image Optimization Tools available to Download.
    For MAC use ImageOptim
    For Windows use Riot for compressing JPEG Images & PNG Gauntlet for PNG Images.

03) CSS & jQuery Minifications

It is also recommended that you Combine & Minify all your CSS Files to a single CSS File & all Javascript Files to a single JS File since Minification reduces the size of the File and Combining the files helps in reducing the number of HTTP requests made to the server. This is also an Important Factor in increasing the speed of your website. There are several tools available online to Minify your CSS & JS Files. Our recommendations are:
For CSS use CSS Minifier and For Javascript use Javascript Minifier.

04) Content Delivery Network

You can use a CDN to further speed up your website. You can use the CDN to deliver static files of your website like CSS, JS, Images & Font Files. There are several CDN Hosting Providers available on the Internet but we would recommend MaxCDN or CloudFlare. 

Note: CDN setup requires Extra monthly Fees to setup, so it is completely optional & according to your needs. Cloudflare also has a Free plan, you can try that for free.

05) Fast Web Hosting Servers

A lot depends on your Web Hosting Servers, so it is recommended that you choose a Hosting Company/Server that provides a Reliable & a Fast Hosting Service. You can also choose our shared hosting plans.


Open in New Tab

Uploading to Server

Once you have registered a domain name and Hosting, You will get FTP details from your hosting provider.

Use that login details to connect with your server. You will need an FTP Software for this such as FileZilla.

Connect with your server and open /public_html folder in your server.

Then copy all HTML, CSS and JS files from your local machine to your root /public_html folder in your server.

Please note the HTML files should be in the Server’s root folder. If your local project is in /your-folder/ Do not upload the folder directly. Instead, open the folder and select all HTML files and CSS, JS folders, and upload.


Open in New Tab

How to run gulp on the computer?

Have you install Gulp on NPM?. If not, do the following.

Install the gulp command line utility

npm install --global gulp-cli


Verify your gulp versions

gulp --version

Install NPM Packages

npm install

Now run Gulp command

gulp

If you see any error for node-sass or gulp-sass please install it, by using the following command npm install node-sass , npm install gulp-sass


Open in New Tab

Editing HTML Files

Software Required: (For HTML Edit)
You can download trial (30 days free) versions by the following links
Adobe Dreamweaver (or Microsoft Expression Web)
http://www.adobe.com/products/dreamweaver/
or
Notepad++
https://notepad-plus-plus.org/download/
or
Sublime Text
https://www.sublimetext.com
or
Visual Studio Code
https://code.visualstudio.com/

Adobe Photoshop (For Graphics Editing)
http://www.adobe.com/products/photoshop/photoshop/


Open in New Tab

©2016 - 2021 Themeix. All Rights Reserved.
Loading...

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.