Skip to content

Commit

Permalink
Merge pull request #801 from WestpacGEL/justin-dev
Browse files Browse the repository at this point in the history
Update src/content/articles/the-grid
  • Loading branch information
samithaf authored May 29, 2024
2 parents a23ec8a + 8a555ef commit 5bd5cc6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
9 changes: 6 additions & 3 deletions apps/site/src/content/articles/the-grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ smallDescription: >-
system.
image:
src: >-
https://res.cloudinary.com/westpac-gel/image/upload/v1663138770/cl819vrci000eam8id8qd2k5d.png
height: 1080
width: 1920
https://res.cloudinary.com/westpac-gel/image/upload/v1716958040/Breakpoints_xcjnof.png
alt: >-
Image showing the 6 breakpoints and where they are likely to be applied ie.
Phone, Tablet, Laptop etc.
height: 1070
width: 2718
author: Justin Spencer
15 changes: 8 additions & 7 deletions apps/site/src/content/articles/the-grid/content.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ The first hurdle in responsive design is to accept that you never know the exact

## **Breakpoints**

A ‘breakpoint’ is a predefined viewport width. The Design System utilises 5 breakpoints. At each breakpoint we have the option to make adjustments to the interface design or layout using CSS. For example, we can adjust how many columns an element should span, the size of the text, its colour, visibility etc.
A ‘breakpoint’ is a predefined viewport width. The Design System utilises 6 breakpoints. At each breakpoint we have the option to make adjustments to the interface design or layout using CSS. For example, we can adjust how many columns an element should span, the size of the text, its colour, visibility etc.

This is how we define each of the 5 breakpoints:

- **XS** - The Extra Small breakpoint begins at 0px and goes to 575px. (Note: Our minimum supported viewport is 320px)
- **XSL** - Commonly known as the Phablet this breakpoint, begins at 576px and goes to 767px
- **SM** - The Small breakpoint begins at 768px and goes to 991px
- **MD** - The Medium breakpoint begins at 992px and goes to 1199px
- **LG** - The Large breakpoint begins at 1200px and keeps going (Note: We cap this width at 1224px by applying a max-width to the container).
- **XS** - The Extra Small breakpoint begins at 0px and goes to 575px. (Note: Our minimum supported viewport width is 320px)
- **XSL** - Commonly known as the Phablet this breakpoint, begins when the viewport reaches 576px and goes to 767px
- **SM** - The Small breakpoint begins when the viewport reaches 768px and goes to 995px
- **MD** - The Medium breakpoint begins when the viewport reaches 996px and goes to 1199px
- **LG** - The Large breakpoint begins when the viewport reaches 1200px and goes to 1583px
- **XL** - The Extra Large breakpoint begins when the viewport reaches 1584px (Note: At this point the grid width is fixed at 1440px wide).

As shown in the graphic above it’s important to understand that a breakpoint indicates a range value. For example, if you set an element to span 12 columns in XS view this will remain the case while the viewport is between 0px and 575px wide. Once the viewport has reached the XSL breakpoint you now have the option to change how many columns your element spans (amongst other things).
As shown in the graphic above it’s important to understand that a breakpoint indicates a range value. For example, if you set an element to span 12 columns in XS view this will remain the case while the viewport is between 0px and 575px wide. Once the viewport has reached the XSL breakpoint you have the option to change how many columns your element spans (amongst other things).

## **Columns**

Expand Down

0 comments on commit 5bd5cc6

Please sign in to comment.