1.0.4 • Published 10 years ago

inuit.settings.defaults v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

inuitcss.settings.defaults

Views Build Status Dependency Status NPM version Code Climate Test Coverage

NPM

The inuitcss defaults module contains a few variables and settings that are required for using any of the rest of the framework.

Usage

$ npm install --save-dev inuit.settings.defaults

The inuit.settings.defaults module returns a function that, itself, returns an object literal with the following default values:

{
	"inuit": {
		"baseFontSize": 16,
		"baseLineHeight": 24,
		"baseTextColor": "#333",
		"baseBackgroundColor": "#fff",
		"namespace": null,
		"baseSpacingUnit": 24,
		"baseSpacingUnitSmall": 12,
		"baseSpacingUnitLarge": 48
	}
}

Optionally, you can override the first 5 settings by providing your overrides to the function call, like so:

var inuit = require('inuit.settings.defaults')({
	inuit: {
		baseFontSize: 18,
		baseLineHeight: 22,
		baseTextColor: '#000',
		baseBackgroundColor: '#e5e5e5',
		namespace: 'foo'
	}
});

This would result in the following settings:

{
	"inuit": {
		"baseFontSize": 18,
		"baseLineHeight": 22,
		"baseTextColor": "#000",
		"baseBackgroundColor": "#e5e5e5",
		"namespace": "foo",
		"baseSpacingUnit": 22,
		"baseSpacingUnitSmall": 11,
		"baseSpacingUnitLarge": 44
	}
}

The last 3 settings are not overridable, as they are based on baseLineHeight. These will be generated for you.

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago