Skip to content

kenaqshal/maggieappleton.com-V2

 
 

Repository files navigation

Maggie's Digital Garden

The Stack

Design System

  • Global variables declared in components/GlobalStyles.js
  • Set on an 8-pixel grid; 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128, 160. This is definitely too many size options. Should review and cut it down in the future.
  • Fonts are Canela Deck for headings, Canela Text for longform body, and Lato as a sans-serif workhorse font for practical UI components.
  • Type set on a fluid scale using fancy calculations from the Utopia system

MDX Components

  • <ProseWrapper /> wraps around all MDX longform copy. Limits it to 72ch and places it in grid-column: 2.
  • Layout elements
    • <TwoColumn />
    • <ThreeColumn />
  • Image elements
    • <Img /> escapes the grid-column: 2 placement and sets a max-width of 1000px. Optional override with width prop. Minimal styles, replaces the default img element.
    • <BasicImage /> is more fully features - includes an optional caption from the alt text.
    • <ImageFrame/> adds a slight frame and drop-shadow. Useful for screenshots.

Images

I'm using Josh Comeau's full bleed image trick with CSS grid.

  • All images in mdx files are passed into <img />. It declares a default width of 1000px and accepts an optional width prop
  • <BasicImage /> will stretch the image across the full canvas, optionally accepts a declared width prop.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • CSS 0.5%