Skip to content

Commit

Permalink
feat: Allow disabling importing fonts. (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
goloroden authored May 15, 2020
1 parent b6c2d86 commit a925944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/styles/StaticGlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class StaticGlobalStyles {

private buildStyles (): string {
return `
@import url(${this.theme.font.import});
${this.theme.font.import ? `@import url(${this.theme.font.import});` : ''}
body, html {
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/themes/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class Theme {
};

public readonly font: {
import: string;
import?: string;
size: FontSizes;
family: { default: string; headline: string; code: string };
};
Expand Down

0 comments on commit a925944

Please sign in to comment.