Code Monkey home page Code Monkey logo

timbercss's Introduction

Timber CSS Framework by unlimitDesign

A CSS Framework for Rapid Website Prototyping

Quick start

  • Install dependencies with npm: npm install
  • Run npm run start to see the site live as you work on the source under the dist content base directory.
  • Please freely explore what can be done with the timebrcss framework as the framework is published under the MIT license.

Read the documentation site on the framework contents, templates and examples, and more. The documentation hosted at the website is as same as the one under the docs directory.

Using .env file to have different configuration depending on your local environment.

You can use .timber.env.json environment file in the project root to alternate default settings to suit to your needs. You do not have to set every one of config settings. Shown below is an example of the environment file.

{
  "serverHost": "0.0.0.0",
  "enablePurgeCSS": true
}

Available settings are as follows:

Server configs

Variable Default Value
serverPort '3000'
serverHost 'localhost'
disableHostCheck true
contentBase 'dist'
serverPublicPath '/js/'
watchEnabled true
watchContentBase true
enableHotModuleReplacement true

Source directory

Variable Default Value
contentSourceDir 'src/'

Output directory

Variable Default Value Notes
outputDir 'dist' Must be the same as contentBase otherwise the live preview does not work

Timber lib source file paths

Variable Default Value
timberJsSrcFilePath './src/js/custom.js'
timberCssSrcFilePath './src/scss/timber.scss'

Timber lib production file names

Variable Default Value
timberJsFileName 'tm.core.js'
timberJsMinFileName 'tm.core.min.js'
timberCssFilePath 'timber.css'
timberCssFileMinPath 'timber.min.css'

Image output options

Variable Default Value
jpgProgressive true
jpgQuality '65'
pngQuality '5-90'
pngSpeed '4'
gifInterlaced false
webpQuality '75'

PurgeCSS opions

Variable Default Value Notes
enablePurgeCSS false This option is set to false by default. Please make sure that you have html files under the contentBase directory
purgeCSS_whitelist ['video','iframe','object','embed','img','video-container','bg-video-container','loaded','in-view','out-of-view','bg-image','fixed-dimension','active','inactive','disabled','no-transition','freeze','header-compact','header-background','header-positioned','header-in','header-out','element-reveal-right','element-reveal-left','slide-in-reset','scale-in-reset','tm-lightbox','tml-content-wrapper','tml-content-wrapper.zoomed','tml-inner','tml-thumbnail-wrapper','tml-thumb-active','play','tml-content','tml-content.error','tml-caption','tml-nav','tml-nav.active','tml-nav.tml-next','tml-nav.tml-prev','tml-zoom','tml-thumbnails','tml-exit','tml-toolbar'] You need to set as array.
purgeCSS_whitelistPatterns ["/\bw-\b/"] Use regular expression values in string. Use array if you have multiple patterns.

Debug

Variable Default Value Notes
debug false Outputs current webpack settings.

Using the compiled codes as is

  • Download the latest release from GitHub.
  • Copy compiled codes under dist/js and dist/css into your project. And load them in your html5 page as necessary.

Bugs and feature requests

Please use our Github repo issue board.

Documentation

Timber CSS's documentation covers pretty much eveyrthing that the framework is capable of.

Contributing and Community and Versioning

We do not yet have a guideline for it yet. Please give a shout in the issue board. if there is anything you would like do for the framework.

Creators

Christian Lundgren

Shu Miyao

Thanks

Copyright and license

Copyright 2020 and beyond unlimitDesign. Codes are released under the MIT license.

timbercss's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

timbercss's Issues

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.