@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 /// @deprecated Will be removed in v5.0 with the rest of the compatibility mode /// suite of tools and settings $govuk-use-legacy-font: if( ( $govuk-compatibility-govukfrontendtoolkit or $govuk-compatibility-govuktemplate or $govuk-compatibility-govukelements ), true, false ) !default; // Only show the deprecation warning if user is setting $govuk-use-legacy-font // manually instead of automatically via compatibility variables @if $govuk-use-legacy-font == true and $govuk-compatibility-govukfrontendtoolkit == false and $govuk-compatibility-govuktemplate == false and $govuk-compatibility-govukelements == false { @include _warning(legacy-font, "$govuk-use-legacy-font is deprecated. " + "From version 5.0, GOV.UK Frontend will only support the included version " + "of GDS Transport."); } // ========================================================= // 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 /// @deprecated Will be removed in v5.0 with the rest of the compatibility mode /// suite of tools and settings $govuk-font-family-tabular: if( $govuk-use-legacy-font, $govuk-font-family-nta-tabular, false ) !default; // Only show the deprecation warning if user is setting $govuk-font-family-tabular // manually instead of automatically via $govuk-use-legacy-font @if $govuk-font-family-tabular != false and $govuk-use-legacy-font == false { @include _warning(tabular-font-face, "$govuk-font-family-tabular is deprecated. " + "From version 5.0, GOV.UK Frontend will not support using a separate " + "font-face for tabular numbers."); } /// Font families to use for print media /// /// We recommend that you use system fonts when printing. This will avoid issues /// with some printer drivers and operating systems. /// /// @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; /*# sourceMappingURL=_typography-font.scss.map */