GithubHelp home page GithubHelp logo

lightskyz / color-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 42 KB

Generate specific css to customize background and text colors for PatientHM Blog

License: MIT License

Python 6.58% JavaScript 63.99% CSS 10.99% HTML 18.44%

color-generator's Introduction

PugJS - SASS - Gulp project

A simple configuration project with PugJS and SASS.

Getting Started

Wanted to start a project with PugJS and SASS? Here's a scaffold of the project integrating Gulp as the build system.

Prerequisites

You must have npm, gulp and pug install on your computer.

On Mac

$ gem install sass && npm install -g pug 

Installing

To install the building dependencies

$ npm install

And then, to build the project. It will automatically create a production folder (/dist) with minified index.html and styles.min.css

$ gulp build

You can also watch your .pug and .scss files:

$ gulp watch

And now, you're ready to go. Just launch dist/index.html in any browser, you don't need any local server.

Generate a component

$ python create.py <component-name>

It will generate a partial sass files in /src/sass/includes/ and import it directly into /src/sass/styles.scss. Also it will create a pug file in /src/views/includes/ that you can include in your index.pug wherever you want it in the page.

Project Structure

pugjs-sass/
├── nodes_modules/		* Node dependencies: Gulp & its plugins
|
├── dist/			* Production folder: HTML & CSS files minified. [Optional] Public files: Images & Fonts.
|	├── index.html		* HTML Page
|	├── styles.min.css	* Main stylesheet minified
|	├── styles.min.css.map	* Source Maps of styles.min.css 
|
├── src/			* Development folder
|	├── sass/               * SASS files
|	|	├── general/    * General folder: variables, general styles etc...
|	|	├── includes/   * Stylesheets link to a pug component
|	|	├── styles.scss * Main stylesheets that import SASS partials
|	├── views/              * Pug files
|	|	├── general/    * General folder: head, scripts etc...
|	|	├── includes/   * Pug component template
|	|	├── index.pug   * Main page that includes pug components
|
├── .gitignore              	* Gitignore file: dist/ & nodes_modules/
├── create.py           	* Python script to generate a pug and sass files associated
├── LICENSE          	        * MIT License
├── package.json            	* Description file for Node dependencies
├── gulpfile.js			* Gulp script to build and watch dev files
├── README.md			* Documentation file

Upcoming

  • Simple template integration
  • Tutorial: 'How to deploy a static website with Netlify?'
  • A demo website deployed
  • [optionnal] Local server to allow hot reload

Built With

  • PugJS - Robust, elegant, feature rich template engine
  • Sass - Sass makes CSS fun again.
  • Gulp - The streaming build system

Author

Antoine Rakotozafy - Website

License

This project is licensed under the MIT License.

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.