Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add brand font Sass vars #58

Open
gadenbuie opened this issue Dec 9, 2024 · 0 comments
Open

Add brand font Sass vars #58

gadenbuie opened this issue Dec 9, 2024 · 0 comments

Comments

@gadenbuie
Copy link
Collaborator

gadenbuie commented Dec 9, 2024

Add $brand-font-{family} variables and maybe even .brand-font-{family} utility classes.

typography:
  fonts:
    - family: Quantico
      source: google
    - family: Monda
      source: file
      files:
        - path: Monda.ttf
          weight: 400..700
    - family: Share Tech Mono
      source: bunny

Would create

/*-- scss:defaults --*/
$brand-font-quantico: Quantico;
$brand-font-monda: Monda;
$brand-font-share-tech-mono: Share Tech Mono;

/*-- scss:rules --*/
.brand-font-quantico {
  font-family: $brand-font-quantico;
}

.brand-font-monda {
  font-family: $brand-font-monda;
}

.brand-font-share-tech-mono {
  font-family: $brand-font-share-tech-mono;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant