0.1.84 • Published 4 years ago

timbercss v0.1.84

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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

VariableDefault Value
serverPort'3000'
serverHost'localhost'
disableHostChecktrue
contentBase'dist'
serverPublicPath'/js/'
watchEnabledtrue
watchContentBasetrue
enableHotModuleReplacementtrue

Source directory

VariableDefault Value
contentSourceDir'src/'

Output directory

VariableDefault ValueNotes
outputDir'dist'Must be the same as contentBase otherwise the live preview does not work

Timber lib source file paths

VariableDefault Value
timberJsSrcFilePath'./src/js/custom.js'
timberCssSrcFilePath'./src/scss/timber.scss'

Timber lib production file names

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

Image output options

VariableDefault Value
jpgProgressivetrue
jpgQuality'65'
pngQuality'5-90'
pngSpeed'4'
gifInterlacedfalse
webpQuality'75'

PurgeCSS opions

VariableDefault ValueNotes
enablePurgeCSSfalseThis 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

VariableDefault ValueNotes
debugfalseOutputs 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 2019 unlimitDesign. Codes are released under the MIT license.

0.1.84

4 years ago

0.1.83

4 years ago

0.1.82

4 years ago

0.1.81

4 years ago

0.1.80

4 years ago

0.1.76

4 years ago

0.1.77

4 years ago

0.1.78

4 years ago

0.1.79

4 years ago

0.1.75

4 years ago

0.1.74

4 years ago

0.1.73

4 years ago

0.1.72

4 years ago

0.1.71

5 years ago

0.1.70

5 years ago

0.1.69

5 years ago

0.1.68

5 years ago

0.1.67

5 years ago

0.1.66

5 years ago

0.1.65

5 years ago

0.1.64

5 years ago

0.1.63

5 years ago

0.1.62

5 years ago

0.1.61

5 years ago

0.1.60

5 years ago

0.1.59

5 years ago

0.1.58

5 years ago

0.1.57

5 years ago

0.1.56

5 years ago

0.1.55

5 years ago

0.1.54

5 years ago

0.1.53

5 years ago

0.1.52

5 years ago

0.1.50

5 years ago

0.1.51

5 years ago

0.1.49

5 years ago

0.1.44

5 years ago

0.1.45

5 years ago

0.1.46

5 years ago

0.1.47

5 years ago

0.1.48

5 years ago

0.1.43

5 years ago

0.1.42

5 years ago

0.1.41

5 years ago

0.1.40

5 years ago

0.1.39

5 years ago

0.1.38

5 years ago

0.1.36

5 years ago

0.1.37

5 years ago

0.1.35

5 years ago

0.1.33

5 years ago

0.1.34

5 years ago

0.1.32

5 years ago

0.1.30

5 years ago

0.1.31

5 years ago

0.1.29

5 years ago

0.1.27

5 years ago

0.1.28

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.20

5 years ago

0.1.21

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.11

5 years ago

0.1.12

5 years ago

0.1.10

5 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago