angular / angular/components

feat(core): Expose SCSS breakpoints

Open
#25,923 5 comments 6 reactions 0 assignees View on GitHub
area: material/core feature P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### Feature Description

As @angular/flex-layout become deprecated and Angular team does not intend to provide an alternative, we are forced to handle responsive layout by our own.

Writing CSS is ok, but to stick with Material design guidance we must use specific breakpoints. It would be great if @angular/material could expose these breakpoints like it does for palettes and theming. Otherwise we have to declare them ourself for every projects.

### Use Case

would simplify scss writting and add opinions about breakpoints (like CDK Layout API)

```scss
@use '@angular/material' as mat;

@media #{$mat.gt-xs} {
// insert your styles
}
```

Contributor guide

Open the contributing guide

Research direction

Start by comparing the requested SCSS breakpoint variables with the CDK Layout API and the Angular Material theming surface mentioned in the issue. Done means Angular Material exposes documented breakpoint values that can be consumed in SCSS media queries without redefining them in each project.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, scss
Domain
design, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.