Skip to content

Font-Family definitions scattered across the code #5022

@hbruch

Description

@hbruch

For instances which should use other font families as the currently used Gotham, it is hard to adapt the styling.

Grepping for Gotham at least returns the following instances:

app/util/mapIconUtils.js:        }px Gotham XNarrow SSm A, Gotham XNarrow SSm B, Gotham Rounded A, Gotham Rounded B, Arial, sans-serif`;
app/util/mapIconUtils.js:        }px Gotham XNarrow SSm A, Gotham XNarrow SSm B, Gotham Rounded A, Gotham Rounded B, Arial, sans-serif`;
app/component/map/non-tile-layer/StopMarker.js:            font-family="Gotham XNarrow A, Gotham Rounded A, Gotham Rounded B, Roboto Condensed, Roboto, Arial, sans-serif"
digitransit-component/packages/digitransit-component-autosuggest/src/helpers/MobileSearch.scss:    font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia,
digitransit-component/packages/digitransit-component-autosuggest/src/helpers/MobileSearch.scss:  font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia,
digitransit-component/packages/digitransit-component-autosuggest/src/helpers/styles.scss:    font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia,
digitransit-component/packages/digitransit-component-suggestion-item/src/helpers/styles.scss:        font-family: 'Gotham XNarrow SSm A', 'Gotham XNarrow SSm B',
digitransit-component/packages/digitransit-component-favourite-bar/src/helpers/styles.scss:        font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial,
digitransit-component/packages/digitransit-component-favourite-bar/src/helpers/styles.scss:        font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial,
digitransit-component/packages/digitransit-component-favourite-modal/src/helpers/desktop.scss:        font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial,
digitransit-component/packages/digitransit-component-favourite-modal/src/helpers/desktop.scss:      font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial,
digitransit-component/packages/digitransit-component-favourite-modal/src/helpers/mobile.scss:      font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial,
digitransit-component/packages/digitransit-component-favourite-modal/src/helpers/mobile.scss:      font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial,
digitransit-component/packages/digitransit-component-control-panel/src/helpers/styles.scss:    font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia,
digitransit-component/packages/digitransit-component-dialog-modal/src/helpers/styles.scss:    font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia,
digitransit-component/packages/digitransit-component-datetimepicker/src/helpers/styles.scss:    font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia,
digitransit-component/packages/digitransit-component-datetimepicker/src/helpers/styles.scss:  font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia,
node_modules/@hsl-fi/site-header/node_modules/@hsl-fi/sass/_fonts.scss:$font-stack: 'Gotham Rounded A', 'Gotham Rounded B', Arial, Georgia, serif;
node_modules/@hsl-fi/site-header/node_modules/@hsl-fi/sass/_fonts.scss:$font-stack-narrow: 'Gotham XNarrow SSm A', 'Gotham XNarrow SSm B', Arial,
node_modules/@hsl-fi/sass/_fonts.scss:$font-stack: 'Gotham Rounded A', 'Gotham Rounded B', Arial, Georgia, serif;
node_modules/@hsl-fi/sass/_fonts.scss:$font-stack-narrow: 'Gotham XNarrow SSm A', 'Gotham XNarrow SSm B', Arial,
sass/themes/hsl/_theme.scss:$font-family: 'Gotham Rounded A', 'Gotham Rounded B', arial, georgia, serif;
sass/themes/hsl/_theme.scss:$font-family-narrow: 'Gotham XNarrow SSm A', 'Gotham XNarrow SSm B',
sass/themes/hsl/_theme.scss:  'Gotham Rounded A', 'Gotham Rounded B', arial, georgia, serif;
sass/themes/apphsl/_theme.scss:$font-family: 'Gotham Rounded A', 'Gotham Rounded B', arial, georgia, serif;
sass/themes/apphsl/_theme.scss:$font-family-narrow: 'Gotham XNarrow SSm A', 'Gotham XNarrow SSm B',
sass/themes/apphsl/_theme.scss:  'Gotham Rounded A', 'Gotham Rounded B', arial, georgia, serif;

It would be nice to be able to declare font-families per theme and have this definition reused by components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions