-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public-samples/refunds-wyx7mz/src/web/src/themes/breakpoints.ts
- Loading branch information
1 parent
c1382ad
commit c4f3d2e
Showing
1 changed file
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Breakpoints for responsive design | ||
* | ||
* These values define the standard breakpoint widths used throughout the application | ||
* for consistent responsive behavior across both Pike (merchant) and Barracuda (admin) | ||
* interfaces. | ||
* | ||
* Usage example: | ||
* ``` | ||
* import breakpoints from 'themes/breakpoints'; | ||
* | ||
* // In styled-components | ||
* const Container = styled.div` | ||
* @media (min-width: ${breakpoints.tablet}px) { | ||
* display: flex; | ||
* } | ||
* `; | ||
* ``` | ||
*/ | ||
|
||
const breakpoints = { | ||
/** | ||
* Mobile breakpoint | ||
* Designed for small screens (smartphones) | ||
* Supports essential functions with focus on monitoring and approvals | ||
*/ | ||
mobile: 480, | ||
|
||
/** | ||
* Tablet breakpoint | ||
* Optimized layout with preserved functionality but streamlined navigation | ||
*/ | ||
tablet: 768, | ||
|
||
/** | ||
* Standard desktop breakpoint | ||
* Full-featured interface with comprehensive dashboards and controls | ||
*/ | ||
desktop: 1024, | ||
|
||
/** | ||
* Large desktop breakpoint | ||
* Enhanced interface for large screens with expanded viewing area | ||
*/ | ||
largeDesktop: 1440, | ||
}; | ||
|
||
export default breakpoints; |