Giter Club home page Giter Club logo

4start's Introduction

4start

Simple start template.

Installation

  1. git clone https://github.com/motrdevua/4start.git
  2. npm install

Generate required fonts (ttf, eot, woff, woff2, svg) from a ttf file

  1. Put ttf file to the directory 'src/fonts/'.
  2. Run gulp fontgen
  3. Find file: 'src/styles/utils/_fonttylesheet.scss'.
  4. Add font name like: @include font-face("fontname", "../fonts/fontname");
  • Example:
  • @include font-face("Lato-Heavy", "../fonts/Lato-Heavy");
    

How to use sprites

PNG

  1. Uncomment 'spritePng' in 'build' task in gulpfile.js.

  2. Put *.png icons into folder src/img/png.

  3. Find 'main.scss' and uncomment strings: @import 'utils/mixin-spritePng'; @import 'tmp/spritePng';

  4. Put icon into scss file with mixin @include sprite($iconname);

  • Example:
  • .icon {
    
  •   @include sprite($iconname);
    
  • }
    

SVG

  1. Uncomment 'spriteSvg' in 'build' task in gulpfile.js
  2. Uncomment string @import 'tmp/spriteSvg'; in 'main.scss'.
  3. Uncomment string //=include spriteSvg.svg in 'index.html'.
  4. Add icon as:
  • Example:
  • <svg class="icon icon-name">
      <use xlink:href="#name"></use>
    </svg>
    

Run gulp in development mode

npm run dev

Make build

npm run build

Сlear

npm run clean

Generate smart-grid

npm run grid


Enjoy!

4start's People

Contributors

motrdevua avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.