NYCPlanning / design

A repository for the Design team in the Geographic Data and Engineering team of the NYC Department of City Planning.
0 stars 0 forks source link

DS: Grid and Breakpoints Library #30

Closed jessicashanshanhuang closed 1 week ago

jessicashanshanhuang commented 3 weeks ago

Working on implementing the new figma grids and breakpoints library for the new DS, Streetscape.

to-do:

currently: adding documentation to library file

jessicashanshanhuang commented 3 weeks ago

looking at the following:

Guide to Creating Responsive Grids

breakpoints refer to the specific points where a website layout changes. They trigger when certain criteria (e.g. specific screen size dimensions) are met, and help to ensure that content is displayed correctly no matter how the user is accessing it

USWDS responsive grid

Image

Materials Design layout grid

Image

Materials Design Understanding layout

Image

rems units and grids

Figma: creating grid layouts

questions/notes:

jessicashanshanhuang commented 3 weeks ago

current breakpoints from ae-streetscape, they're derived from chakra ui:

Image

jessicashanshanhuang commented 2 weeks ago

current approach: using the Guide to Creating Responsive Grids a general outline to create a the grid system and following USWDS responsive grid for decision making for grid & breakpoint system

creating grids with figma

microsoft fluent 2 guide to grids

jessicashanshanhuang commented 2 weeks ago

wip desktop grid: Image

columns:

rows:

jessicashanshanhuang commented 2 weeks ago

wip tablet and mobile grids:

Image

Image

jessicashanshanhuang commented 2 weeks ago

chakra ui grid

chakra ui breakpoints

comes with predetermined commonly used breakpoints, which i assume is what ae is currently using

something to look into the future for testing breakpoints is figma's responsive prototyper that was just release from config 2024

const breakpoints = {
  base: '0em', // 0px
  sm: '30em', // ~480px. em is a relative unit and is dependant on the font size.
  md: '48em', // ~768px
  lg: '62em', // ~992px
  xl: '80em', // ~1280px
  '2xl': '96em', // ~1536px
}

[!NOTE] seems like there is no current direct method to work with breakpoints in house, most figma plugins for breakpoints are paid

figma recommends 8-point grid, though it seems more suited for mobile design primarily but still useful for responsive web design

jessicashanshanhuang commented 2 weeks ago

working on using grids on the landing page, refer to changelog in file.

Image

jessicashanshanhuang commented 1 week ago

Updated elements using grid as well as some typography elements:

Image

Image

jessicashanshanhuang commented 1 week ago

Image

jessicashanshanhuang commented 1 week ago

updating edde redesign using new desktop grid with margins Image