//
// Color system
//

// TODO should take into account the final values of yiq-text-light and
// yiq-text-dark, not consider it is white and black, but this is ok as a
// first approximation.
$-is-light: if(color('text') != null, (luma(color('text')) > 50%), null);
$yiq-text-light: if($-is-light, color('text'), null);
$yiq-text-dark: if($-is-light, null, color('text'));

// Body
//
// Settings for the `<body>` element.

$body-bg: color('body');
$body-color: color('text');

// Fonts
//
// Font, line-height, and color for body text, headings, and more.

$font-family-sans-serif: nth($o-theme-fonts, $o-theme-font-number);

$headings-font-family: nth($o-theme-fonts, $o-theme-headings-font-number);
$headings-color: color('h1');
