-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Anchor FM Theme Font Pairings (#48661)
* add(anchorfm-font-pairings) proof of concept for anchorfm specific font pairings * add(anchorfm-font-pairings) adding correct font pairing and font pairing hook * add(anchorfm-font-pairings) removing unnecessary constant, adding back space * add(anchor-fm-font-pairings) fixing linting errors * add(anchor-fm-font-pairings) fixing linting errors * add(anchor-fm-font-pairings) fixing linting errors
- Loading branch information
Showing
7 changed files
with
103 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import { fontPairings, anchorFmFontPairings } from '../gutenboarding/constants'; | ||
import { useIsAnchorFm } from '../gutenboarding/path'; | ||
|
||
export function useFontPairings() { | ||
const isAnchorFmSignup = useIsAnchorFm(); | ||
const effectiveFontPairings = isAnchorFmSignup | ||
? [ ...fontPairings, ...anchorFmFontPairings ] | ||
: fontPairings; | ||
return effectiveFontPairings; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters