Sha256: 3514d476e0ae665fa381c46a474c862e65a938c7dd6918c6f38dbf04928fe381

Contents?: true

Size: 1.93 KB

Versions: 186

Compression:

Stored size: 1.93 KB

Contents

@import "compatibility";
@import "typography-font-families";

////
/// @group settings/typography
////

/// Use 'legacy' fonts
///
/// Whether or not to use v1 nta font from GOV.UK Elements / Frontend
/// Toolkit, for teams that are migrating to GOV.UK Frontend and may be using
/// components from both places in a single application.
///
/// @type Boolean
/// @access public

$govuk-use-legacy-font: if((
    $govuk-compatibility-govukfrontendtoolkit or
    $govuk-compatibility-govuktemplate or
    $govuk-compatibility-govukelements
  ), true, false) !default;

// =========================================================
// Font families
// =========================================================

/// Font families to use for all typography on screen media
///
/// @type List
/// @access public

$govuk-font-family: if($govuk-use-legacy-font,
  $govuk-font-family-nta,
  $govuk-font-family-gds-transport
) !default;

/// Font families to use when displaying tabular numbers
///
/// @type List
/// @access public

$govuk-font-family-tabular: if($govuk-use-legacy-font,
  $govuk-font-family-nta-tabular,
  false
) !default;

/// Font families to use for print media
///
/// @type List
/// @access public

$govuk-font-family-print: sans-serif !default;

/// Include the default @font-face declarations
///
/// If you have set $govuk-font-family to something other than
/// `$govuk-font-family-gds-transport` this option is disabled by default.
///
/// @type Boolean
/// @access public

$govuk-include-default-font-face: (
  $govuk-font-family == $govuk-font-family-gds-transport
 ) !default;

// =========================================================
// Font weights
// =========================================================

/// Font weight for regular typography
///
/// @type Number
/// @access public
$govuk-font-weight-regular: 400 !default;

/// Font weight for bold typography
///
/// @type Number
/// @access public
$govuk-font-weight-bold: 700 !default;

Version data entries

186 entries across 186 versions & 3 rubygems

Version Path
govuk_publishing_components-18.1.2 node_modules/govuk-frontend/govuk/settings/_typography-font.scss
govuk_publishing_components-18.1.1 node_modules/govuk-frontend/govuk/settings/_typography-font.scss
govuk_publishing_components-18.1.0 node_modules/govuk-frontend/govuk/settings/_typography-font.scss
govuk_publishing_components-18.0.1 node_modules/govuk-frontend/govuk/settings/_typography-font.scss
govuk_publishing_components-18.0.0 node_modules/govuk-frontend/govuk/settings/_typography-font.scss
govuk_tech_docs-1.9.0.pre.rc2 node_modules/govuk-frontend/govuk/settings/_typography-font.scss