All files / cjs/testData ds2.js

100% Statements 7/7
75% Branches 3/4
100% Functions 1/1
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60    1x     1x   1x   1x   1x   1x                                                                                     1x      
'use strict';
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ds2 = undefined;
 
var _index = require('../index');
 
var _index2 = _interopRequireDefault(_index);
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
var DesignSystem2 = {
  type: {
    baseFontSize: '30px',
 
    modularscale: {
      base: 30,
      ratio: 1.5
    },
 
    sizes: {
      xs: -2,
      s: -1,
      base: 0, // [default] p, h5, h6
      m: 1, // h4
      l: 2, // h3
      xl: 3, // h2
      xxl: 4 // h1
    }
  },
 
  colorPalette: {
    blue: {
      base: 'blue',
      dark: 'navyblue'
    }
  },
 
  breakpoints: {
    s: '400px',
    m: 500,
    l: 800
  },
 
  zIndex: {
    low: 10,
    mid: 100,
    high: 1000
  },
 
  spacing: {
    scale: [0, 8, 16, 24, 32, 40]
  }
}; // options: modular-scale:true, fontSizeUnit:px
var ds2 = exports.ds2 = new _index2.default(DesignSystem2, {
  useModularScale: true,
  fontSizeUnit: 'px'
});