Gatsby: [docs] [workflows] Improve docs for "Working with fonts and typography"

Created on 18 Sep 2019  路  4Comments  路  Source: gatsbyjs/gatsby

Part of the Top 25 Learning Workflows initiative. See #13708 for the meta issue that this issue falls under.

User story

As a new Gatsby user, I want to work with fonts and typography in my Gatsby project.

Evaluation

Search | Discover | Complete | Linked | Tone | Style | Overall
-- | -- | -- | -- | -- | -- | --
馃槃 | 馃槃 | 馃槓 | 馃槃 | 馃槃 | 馃槓 | 馃槓

Steps taken to implement

  1. Searchability

  2. Discoverability

    • Search bar:

    • Clickpath on .org:

      • docs -> recipes -> styling with css -> adding a local font/ using google fonts -> scroll down to additional resources - typography.js
      • docs -> tutorial -> introduction to styling in gatsby
      • docs -> reference guides -> styling your site
      • no clear clickpath to get to /importing-assets-into-files/
  3. Completeness

  4. Linkedness

  5. Tone and accessibility

    • Informative, prerequites are clear
  6. Style

    • In Typography.js, writing is currently grade 12 judged by hemingwayapp (goal is grade 6)

Recommendations

  • [ ] Add SEO to local fonts page for people searching how to change fonts - Covered by Issue #21277

    • [ ] If reference guide doesn't pop up in SEO, write a blog post showcasing how to use fonts (host with Medium)

  • [x] [Import Assets Into Files](https://www.gatsbyjs.org/docs/importing-assets-into-files/): Include an example of importing a font, or link to local fonts page
  • [x] [Add Local Fonts](https://www.gatsbyjs.org/docs/recipes/#adding-a-local-font): Include instructions to follow regular CSS rules. For beginners, maybe recommend to override default CSS fonts beforehand
  • [x] [Typography.js](https://www.gatsbyjs.org/docs/typography-js/): Simplify instructions to grade 6 level.
  • [x] [Typography.js](https://www.gatsbyjs.org/docs/typography-js/): When following steps, need to add instructions to remove previous font/typography styling in CSS, otherwise typography doesn't work | GitHub issue regarding this

    • [x] Line highlight the added code in "installing typography themes" section

    • [x] gatsby-plugin-typography options references injecting fonts into JS or use a CDN of your choosing saying we have to include appropriate fonts yourself. Add link to adding a local font page or change wording as instructions are a bit confusing

    • [x] Explicitly say omitGoogleFont is optional. Also recommend changing the wording

  • [ ] Create a reference guide with all fonts and typography information - Covered by #21280
documentation

Most helpful comment

cc @laurieontech, since we talked about fontawesome earlier! People often search for it on gatsbyjs.org and there is no result. Including that topic as part of "Working with fonts and typography" would be a way to slot in a doc on fontawesome/other libraries as part of a broader learning workflow.

All 4 comments

These recommendations are awesome @nicholaspung! Really in depth and some great points. Like was noted in the meta issue (#13708), having a reference guide that can aggregate a lot of the information around fonts and typography would be really awesome to link to and just generally have available. Thanks for working on this workflow 馃帀

Don't hesitate to reach out if you need any help 馃檪

Hiya!

This issue has gone quiet. Spooky quiet. 馃懟

We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 馃挭馃挏

cc @laurieontech, since we talked about fontawesome earlier! People often search for it on gatsbyjs.org and there is no result. Including that topic as part of "Working with fonts and typography" would be a way to slot in a doc on fontawesome/other libraries as part of a broader learning workflow.

Going to close this issue as we now have two open issues that cover the remaining recommendations.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hobochild picture hobochild  路  3Comments

andykais picture andykais  路  3Comments

signalwerk picture signalwerk  路  3Comments

rossPatton picture rossPatton  路  3Comments

dustinhorton picture dustinhorton  路  3Comments