Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[blog] Add Material UI v6 stable release #41932

Merged
merged 131 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
50d8914
add blog page
siriwatknp Apr 17, 2024
183e408
add 'free'
siriwatknp Apr 17, 2024
952257e
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Jun 28, 2024
cd6016b
refine content
siriwatknp Jul 1, 2024
3ff9034
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Jul 1, 2024
9581893
add strategy to extendTheme
siriwatknp Jul 1, 2024
a5ac829
fix extendTheme
siriwatknp Jul 2, 2024
3dd0cbb
attach selector based on strategy
siriwatknp Jul 2, 2024
08e7663
remove attribute in favor of strategy
siriwatknp Jul 2, 2024
d3aaa1b
support class in InitColorSchemeScript
siriwatknp Jul 2, 2024
e9c21a5
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 2, 2024
922515c
use default config
siriwatknp Jul 2, 2024
76b7e4b
update docs
siriwatknp Jul 2, 2024
cfbc50e
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 3, 2024
ed2a05a
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 4, 2024
29f4059
update docs
siriwatknp Jul 4, 2024
62d3844
fix extendTheme
siriwatknp Jul 4, 2024
9f76644
fix InitColorSchemeScript
siriwatknp Jul 4, 2024
00c7cde
fix InitColorSchemeScript
siriwatknp Jul 4, 2024
e2be118
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 5, 2024
4c89650
fix applyStyles and add enableSystem
siriwatknp Jul 5, 2024
65d1216
add disableCssColorScheme option
siriwatknp Jul 5, 2024
73ae9b1
fix applyStyles and disableCssColorScheme
siriwatknp Jul 5, 2024
cd9fc22
fix default mode
siriwatknp Jul 5, 2024
364c529
add test
siriwatknp Jul 5, 2024
e895ac7
fix types
siriwatknp Jul 5, 2024
362ba80
export createPalette
siriwatknp Jul 5, 2024
ab81b0d
fix tests
siriwatknp Jul 5, 2024
9f53d7d
fix extendTheme
siriwatknp Jul 5, 2024
3d7949d
wip
siriwatknp Jul 5, 2024
f23729d
remove createPalette
siriwatknp Jul 6, 2024
967269b
update docs
siriwatknp Jul 6, 2024
dc4577c
fix Paper
siriwatknp Jul 8, 2024
b91cd3f
update docs
siriwatknp Jul 8, 2024
dbd7b87
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 8, 2024
14a47e2
remove colorSchemeSelector
siriwatknp Jul 8, 2024
c9b77db
remove defaultMode from CssVarsProvider
siriwatknp Jul 8, 2024
cd232df
run docs:ts format
siriwatknp Jul 8, 2024
bba0f2c
rename strategy to cssRule
siriwatknp Jul 8, 2024
e6decb0
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 8, 2024
7ee12a2
clean up classes
siriwatknp Jul 8, 2024
8e93b1f
fix lint
siriwatknp Jul 8, 2024
7a0e090
fix getColorSchemeSelector
siriwatknp Jul 8, 2024
e92f2ef
filter only valid color schemes
siriwatknp Jul 8, 2024
d293ec5
remove unused demos
siriwatknp Jul 8, 2024
9a4bb11
fix joy getColorSchemeSelector
siriwatknp Jul 8, 2024
8f80653
fix non breaking space
siriwatknp Jul 8, 2024
1b50e56
fix types
siriwatknp Jul 8, 2024
24447b3
disableCssColorScheme on Joy for now
siriwatknp Jul 8, 2024
38786e2
fix regression tests
siriwatknp Jul 8, 2024
22e2c80
add defaultGetSelector to prepareCssVars
siriwatknp Jul 8, 2024
2a5d8c5
fix demo
siriwatknp Jul 8, 2024
5fb7bb3
Apply suggestions from code review
siriwatknp Jul 10, 2024
3f4e41c
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Jul 10, 2024
48ae6b9
rename blog and add peopel
siriwatknp Jul 10, 2024
d203ae6
add demo to templates
siriwatknp Jul 10, 2024
61bd3df
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 11, 2024
1279f8e
replace cssRule with colorSchemeSelector
siriwatknp Jul 11, 2024
d2b7521
replace cssRule with colorSchemeSelector
siriwatknp Jul 11, 2024
b76959c
remove enableSystem
siriwatknp Jul 11, 2024
9b58d64
fix extendTheme
siriwatknp Jul 11, 2024
bc4ff77
remove `defaultMode`
siriwatknp Jul 11, 2024
9a699e3
update docs
siriwatknp Jul 11, 2024
3db6fd4
fix regression
siriwatknp Jul 11, 2024
684ac0f
remove enableSystem
siriwatknp Jul 11, 2024
6446b1e
fix Joy tutorial
siriwatknp Jul 11, 2024
8a320e9
remove defaultColorScheme from CssVarsProvider props
siriwatknp Jul 11, 2024
9cf4e91
support 'class' and 'data' selector
siriwatknp Jul 11, 2024
27f8f14
update content
siriwatknp Jul 11, 2024
625bed0
trigger build
siriwatknp Jul 12, 2024
788e2a4
Merge branch 'next' of https://github.com/mui/material-ui into refine…
siriwatknp Jul 12, 2024
249b13a
fix all
siriwatknp Jul 12, 2024
a29c08a
minor fix joy docs
siriwatknp Jul 12, 2024
9ef3f8c
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Jul 16, 2024
f1f875a
add theme tokens
siriwatknp Jul 16, 2024
9dd9368
Merge branch 'refine-dark-mode-api' into blog/v6-sneak-peek
siriwatknp Jul 16, 2024
026fda2
add ThemeTokens
siriwatknp Jul 16, 2024
bee0c28
add pricing and mobile images
siriwatknp Jul 17, 2024
1fa656e
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Jul 17, 2024
dc84a82
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Aug 1, 2024
7113417
revert change screenshots
siriwatknp Aug 1, 2024
df4bb72
revert conflict
siriwatknp Aug 1, 2024
b61a4ce
update post
siriwatknp Aug 1, 2024
7f6557c
update blog
siriwatknp Aug 2, 2024
e2faf7c
Refine template images
zanivan Aug 2, 2024
00af68b
Stray design tweaks to demos
zanivan Aug 2, 2024
1482472
Visual tweaks to CSS variables table
zanivan Aug 2, 2024
0a50f54
Fine tune table background
zanivan Aug 2, 2024
1688473
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Aug 9, 2024
58bb5c0
fix non-breaking space
siriwatknp Aug 9, 2024
4b80fe4
use --mui prefix
siriwatknp Aug 9, 2024
90e5ef9
add links
siriwatknp Aug 9, 2024
f755a13
minor fixes
siriwatknp Aug 9, 2024
7439d33
fix non-breaking space
siriwatknp Aug 9, 2024
f3d957e
stretch theme tokens
siriwatknp Aug 9, 2024
e60a5d2
add stablized grid v2 content
siriwatknp Aug 12, 2024
789aae6
mention-toolpad-core
prakhargupta1 Aug 14, 2024
43d80ed
Bharat's review
prakhargupta1 Aug 14, 2024
9cea96d
Apply suggestions from code review
DiegoAndai Aug 14, 2024
eff3f15
Move toolpad section up to h2
DiegoAndai Aug 14, 2024
73bf67b
Add bundle size improvements explanation
DiegoAndai Aug 14, 2024
72ab8ae
Non-breaking space
DiegoAndai Aug 14, 2024
77ac964
Reorder sections
DiegoAndai Aug 14, 2024
dff4008
Update template images
zanivan Aug 15, 2024
2da1163
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Aug 16, 2024
437a576
fix link
siriwatknp Aug 16, 2024
28779bc
update the content
siriwatknp Aug 19, 2024
2b40a34
apply suggestions
siriwatknp Aug 19, 2024
32bdd84
fix lint
siriwatknp Aug 19, 2024
589086f
fix spacing
siriwatknp Aug 19, 2024
60ac247
add optimized runtime performance and romgrk to the authors
siriwatknp Aug 19, 2024
43c274d
Add React 19 support section
aarongarciah Aug 19, 2024
eb7e851
fix scrollbar
siriwatknp Aug 19, 2024
c61370f
Add note about React 19 support in v5
aarongarciah Aug 20, 2024
5b916c9
update with the real number
siriwatknp Aug 20, 2024
2762dc6
Remove hard tabs
aarongarciah Aug 20, 2024
affbec3
remove numbers
siriwatknp Aug 20, 2024
0102479
Use non-breaking space
aarongarciah Aug 20, 2024
810c7fb
Apply suggestions from code review
siriwatknp Aug 21, 2024
034f7ec
summarize
siriwatknp Aug 21, 2024
031257b
fix summary
siriwatknp Aug 21, 2024
d72b9f8
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Aug 21, 2024
244d316
fix non-breaking space
siriwatknp Aug 21, 2024
eddbe94
Update docs/pages/blog/material-ui-v6-is-out.md
siriwatknp Aug 21, 2024
f7465f2
Update docs/pages/blog/material-ui-v6-is-out.md
siriwatknp Aug 22, 2024
11054fe
Update docs/pages/blog/material-ui-v6-is-out.md
siriwatknp Aug 22, 2024
506d4d6
Merge branch 'next' of https://github.com/mui/material-ui into blog/v…
siriwatknp Aug 22, 2024
72050f8
Update blog date
DiegoAndai Aug 22, 2024
553298b
Add 10 years since initial commit callout
DiegoAndai Aug 22, 2024
4ab606b
add long dash
alelthomas Aug 22, 2024
6190a89
prettier
DiegoAndai Aug 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/pages/blog/material-ui-v6-sneak-peek.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as React from 'react';
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog';
import { docs } from './material-ui-v6-sneak-peek.md?muiMarkdown';

export default function Page() {
return <TopLayoutBlog docs={docs} />;
}
131 changes: 131 additions & 0 deletions docs/pages/blog/material-ui-v6-sneak-peek.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
---
title: Material UI v6 Sneak Peek
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this change better communicates that v6 is close in time.

Suggested change
title: Material UI v6 Sneak Peek
title: Material UI v6 now in beta

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to stable release. I will let @samuelsycamore casts his magic for the title.

description: Previewing all the major updates of Material UI v6.
date: 2024-04-17T00:00:00.000Z
authors: ['siriwatknp']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which is the standard, but per this comment I guess we are missing some people here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will add everyone involved in v6.

tags: ['Material UI', 'Product']
manualCard: true
---

Material UI v6 is coming soon! We're excited to share a sneak peek of all the major updates.

Check failure on line 10 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 10, "column": 1}}}, "severity": "ERROR"}

Check warning on line 10 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 10, "column": 32}}}, "severity": "WARNING"}

Check failure on line 10 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 10, "column": 1}}}, "severity": "ERROR"}

Check warning on line 10 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 10, "column": 32}}}, "severity": "WARNING"}

## Opt-in CSS extraction via Pigment CSS

As you know, Material UI v5 is using Emotion as a default styling solution. As a runtime CSS-in-JS library, it has several trade-offs such as slower performance and larger bundle size.

Check failure on line 14 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 14, "column": 14}}}, "severity": "ERROR"}

Check failure on line 14 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Material UI' instead of 'Material UI')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 14, "column": 14}}}, "severity": "ERROR"}
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved

In the upcoming v6, we're introducing an opt-in integration with Pigment CSS, our new open-source library, that will eliminate the overhead of style recalculation while preserving similar APIs that you are already familiar with.

Check warning on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'we'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'we'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 21}}}, "severity": "WARNING"}

Check failure on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 66}}}, "severity": "ERROR"}

Check warning on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'our'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'our'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 79}}}, "severity": "WARNING"}

Check warning on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 113}}}, "severity": "WARNING"}

Check warning on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'we'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'we'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 21}}}, "severity": "WARNING"}

Check failure on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 66}}}, "severity": "ERROR"}

Check warning on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'our'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'our'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 79}}}, "severity": "WARNING"}

Check warning on line 16 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 16, "column": 113}}}, "severity": "WARNING"}

Since the integration is an opt-in feature, you can upgrade to v6 and continue using Emotion if you'd like. We will provide a migration guide to help you switch to Pigment CSS at your pace.

Check warning on line 18 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 18, "column": 109}}}, "severity": "WARNING"}

Check warning on line 18 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 18, "column": 112}}}, "severity": "WARNING"}

Check failure on line 18 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 18, "column": 165}}}, "severity": "ERROR"}

Check warning on line 18 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 18, "column": 109}}}, "severity": "WARNING"}

Check warning on line 18 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 18, "column": 112}}}, "severity": "WARNING"}

Check failure on line 18 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 18, "column": 165}}}, "severity": "ERROR"}
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved

<!-- would be nice if we have a link to a prototype page -->

## Theming

### New API for dark mode

The new API `theme.applyStyles()` has been added to unify all supporting styling solutions, including Emotion, Styled-components and Pigment CSS.

Check failure on line 26 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 26, "column": 134}}}, "severity": "ERROR"}

Check failure on line 26 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS') Raw Output: {"message": "[MUI.MuiBrandName] Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('Pigment CSS' instead of 'Pigment CSS')", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 26, "column": 134}}}, "severity": "ERROR"}

```diff
const StyledInput = styled(InputBase)(({ theme }) => ({
padding: 10,
width: '100%',
- borderBottom: `1px solid ${
- theme.palette.mode === 'dark' ? '#30363d' : '#eaecef'
- }`,
+ borderBottom: `1px solid #eaecef`,
+ ...theme.applyStyles('dark', {
+ borderBottom: '1px solid #30363d',
+ })
'& input': {
borderRadius: 4,
- backgroundColor: '#fff',
+ ...theme.applyStyles('dark', {
+ backgroundColor: '#0d1117',
+ })
},
}));
```

We are working on a codemod to help you migrate your existing codebase to this new API.

Check warning on line 49 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 49, "column": 1}}}, "severity": "WARNING"}

Check warning on line 49 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 49, "column": 1}}}, "severity": "WARNING"}

### Container Queries

We added support for [container queries](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries) based on the existing `theme.breakpoints` API.

Check warning on line 53 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 53, "column": 1}}}, "severity": "WARNING"}

Check warning on line 53 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 53, "column": 1}}}, "severity": "WARNING"}

This feature lets you define styles based on the width of the parent container instead of the viewport.
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved

```jsx
const Component = styled('div')(({ theme }) => ({
display: 'flex',
flexDirection: 'column',
gap: theme.spacing(2),
[theme.containerQueries.up('sm')]: {
flexDirection: 'row',
},
[theme.containerQueries('sidebar').up('400px')]: {
flexDirection: 'row',
},
}));
```

It also works with the `sx` prop:

```jsx
<Card
sx={{
'@sm': {
flexDirection: 'row',
},
'@400/sidebar': {
flexDirection: 'row',
},
}}
/>
```

## Stablizing CSS Theme Variables

We introduced [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/) in v5 as an experimental API. In v6, we are making it a stable API with two more additions:

Check warning on line 88 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 88, "column": 1}}}, "severity": "WARNING"}

Check warning on line 88 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'we'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'we'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 88, "column": 150}}}, "severity": "WARNING"}

Check warning on line 88 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'We'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 88, "column": 1}}}, "severity": "WARNING"}

Check warning on line 88 in docs/pages/blog/material-ui-v6-sneak-peek.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.We] Try to avoid using first-person plural like 'we'. Raw Output: {"message": "[Google.We] Try to avoid using first-person plural like 'we'.", "location": {"path": "docs/pages/blog/material-ui-v6-sneak-peek.md", "range": {"start": {"line": 88, "column": 150}}}, "severity": "WARNING"}

### Spacing

The value from `theme.spacing()` will use the CSS variable `--mui-spacing` under the hood including `sx` values.

```jsx
<Button
sx={(theme) => ({
padding: theme.spacing(2), // calc(var(--mui-spacing) * 2)
})}
/>
```

### Typography

The typography tokens will be generated as CSS variables for using with CSS `font` property.

You can access the typography tokens from `theme.vars.typography.*`:

```jsx
const Title = styled('div')(({ theme }) => ({
font: theme.vars.typography.h1,
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved
}));
```

or refer to the CSS variable directly:

```css
.some-component {
font: var(--mui-typography-h1);
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved
}
```

## Revamping the free templates
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved

We are upgrading the [free templates](https://mui.com/material-ui/getting-started/templates/) to make them look amazing for your next project. Here are some sneak peeks:

<!-- Add images -->

## Deprecations

- Drop IE11 support
- Deprecate `components` and `componentProps` props in favor of `slots` and `slotProps` through codemods.
Loading