File tree Expand file tree Collapse file tree 3 files changed +29
-10
lines changed
Expand file tree Collapse file tree 3 files changed +29
-10
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,18 @@ $ouds-elevation-raised: $ouds-elevation-x-raised $ouds-elevation-y-raised $ouds-
1212$ouds-elevation-sticky : $ouds-elevation-x-sticky $ouds-elevation-y-sticky $ouds-elevation-blur-sticky $ouds-elevation-spread-sticky var (--#{$prefix}elevation-color-sticky ) !default ;
1313// scss-docs-end ouds-composite-elevation
1414
15- // Font stacks
15+ // Font
16+
17+ $custom-font-name : " HelvNeueOrange" !default ;
18+
19+ // Map of CDN URLs for custom font, with weight as keys
20+ $custom-font-cdn-urls : () !default ;
1621
1722// stylelint-disable value-keyword-case, scss/dollar-variable-colon-space-after
1823// scss-docs-start ouds-composite-font-sans-serif
1924$ouds-font-family-sans-serif-stack :
25+ // Custom OUDS font
26+ $custom-font-name ,
2027 // Older macOS and iOS
2128 " Helvetica Neue" ,
2229 // Some Windows
Original file line number Diff line number Diff line change @@ -12,19 +12,21 @@ $ouds-elevation-raised: $ouds-elevation-x-raised $ouds-elevation-y-raised $ouds-
1212$ouds-elevation-sticky : $ouds-elevation-x-sticky $ouds-elevation-y-sticky $ouds-elevation-blur-sticky $ouds-elevation-spread-sticky var (--#{$prefix}elevation-color-sticky ) !default ;
1313// scss-docs-end ouds-composite-elevation
1414
15- // Font stacks
15+ // Font
16+
17+ $custom-font-name : " Sosh" !default ;
18+
19+ // Map of CDN URLs for custom font, with weight as keys
20+ $custom-font-cdn-urls : (
21+ $ouds-font-weight-system-web-moderate : " https://mastermedia.dam-broadcast.com/pm_12751_481_481818-a5ae2tmj13--Sosh-Medium.woff2" ,
22+ $ouds-font-weight-system-web-strong : " https://mastermedia.dam-broadcast.com/pm_12751_481_481815-qd9nelrt7o--Sosh-Bold.woff2"
23+ ) !default ;
1624
1725// stylelint-disable value-keyword-case, scss/dollar-variable-colon-space-after
1826// scss-docs-start ouds-composite-font-sans-serif
1927$ouds-font-family-sans-serif-stack :
20- // Older macOS and iOS
21- " Helvetica Neue" ,
22- // Some Windows
23- Helvetica ,
24- // Safari for macOS and iOS
25- " SF Pro" ,
26- // Android
27- Roboto,
28+ // Custom OUDS font
29+ $custom-font-name ,
2830 // Basic web fallback
2931 Arial ,
3032 " Noto Sans" ,
Original file line number Diff line number Diff line change 11// OUDS mod
2+ @each $weight , $url in $custom-font-cdn-urls {
3+ @font-face {
4+ font-family : $custom-font-name ;
5+ font-style : normal ;
6+ font-weight : $weight ;
7+ src : url (" #{$url } " ) format (" woff2" );
8+ font-display : swap ;
9+ }
10+ }
11+
212#{$ouds-root-selector } ,
313[data-bs-theme ] {
414 color : var (--#{$prefix}color-local , var (--#{$prefix}color-content-default ));
You can’t perform that action at this time.
0 commit comments