@mui/docs 6.0.0-alpha.11 → 6.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,8 +19,8 @@ const Root = (0, _styles.styled)('div')(({
19
19
  var _theme$shape$borderRa, _theme$shape, _theme$shape$borderRa2, _theme$shape2, _theme$shape$borderRa3, _theme$shape3;
20
20
  return {
21
21
  ..._branding.brandingLightTheme.typography.body1,
22
- lineHeight: 1.6,
23
- // Increased compared to the 1.5 default to make the docs easier to read.
22
+ lineHeight: 1.625,
23
+ // Rounds up to 26px-increased compared to the 1.5 default to make the docs easier to read.
24
24
  color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
25
25
  '& :focus-visible': {
26
26
  outline: `3px solid ${(0, _styles.alpha)(_branding.brandingLightTheme.palette.primary[500], 0.5)}`,
@@ -35,7 +35,7 @@ const Root = (0, _styles.styled)('div')(({
35
35
  // Developers like when the code is dense.
36
36
  margin: theme.spacing(2, 'auto'),
37
37
  padding: theme.spacing(2),
38
- backgroundColor: 'hsl(210, 35%, 9%)',
38
+ backgroundColor: 'hsl(210, 25%, 9%)',
39
39
  // a special, one-off, color tailored for the code blocks using MUI's branding theme blue palette as the starting point. It has a less saturaded color but still maintaining a bit of the blue tint.
40
40
  color: 'hsl(60, 30%, 96%)',
41
41
  colorScheme: 'dark',
@@ -134,6 +134,44 @@ const Root = (0, _styles.styled)('div')(({
134
134
  marginBottom: 6
135
135
  }
136
136
  },
137
+ '& a[target="_blank"]::after': {
138
+ content: '""',
139
+ maskImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z'%3E%3C/path%3E%3C/svg%3E")`,
140
+ display: 'inline-flex',
141
+ width: '1em',
142
+ height: '1em',
143
+ color: 'inherit',
144
+ backgroundColor: 'currentColor',
145
+ transform: 'translate(0, 2px)',
146
+ transition: 'transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1)',
147
+ // bounce effect
148
+ opacity: 0.8
149
+ },
150
+ '& a[target="_blank"]:hover::after': {
151
+ opacity: 1,
152
+ transform: 'translate(1px, 0)'
153
+ },
154
+ '& a.remove-link-arrow::after': {
155
+ // Allows to remove link arrows for images
156
+ display: 'none'
157
+ },
158
+ '& .Ad-root a::after': {
159
+ // Remove link arrow for ads
160
+ display: 'none'
161
+ },
162
+ '& a': {
163
+ // Style taken from the Link component
164
+ color: `var(--muidocs-palette-primary-600, ${_branding.brandingLightTheme.palette.primary[600]})`,
165
+ fontWeight: theme.typography.fontWeightMedium,
166
+ textDecoration: 'underline',
167
+ textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primary.main, 0.4),
168
+ '&:hover': {
169
+ textDecorationColor: 'inherit'
170
+ }
171
+ },
172
+ '& a code': {
173
+ color: (0, _styles.darken)(_branding.brandingLightTheme.palette.primary.main, 0.2)
174
+ },
137
175
  '& h1, & h2, & h3, & h4': {
138
176
  display: 'flex',
139
177
  alignItems: 'center',
@@ -147,6 +185,8 @@ const Root = (0, _styles.styled)('div')(({
147
185
  '& .title-link-to-anchor': {
148
186
  color: 'inherit',
149
187
  textDecoration: 'none',
188
+ boxShadow: 'none',
189
+ fontWeight: 'inherit',
150
190
  position: 'relative',
151
191
  display: 'flex',
152
192
  alignItems: 'center',
@@ -158,12 +198,6 @@ const Root = (0, _styles.styled)('div')(({
158
198
  alignItems: 'center',
159
199
  visibility: 'hidden'
160
200
  },
161
- '& a:not(.title-link-to-anchor):hover': {
162
- color: 'currentColor',
163
- border: 'none',
164
- boxShadow: '0 1px 0 0 currentColor',
165
- textDecoration: 'none'
166
- },
167
201
  '& .anchor-icon, & .comment-link': {
168
202
  padding: 0,
169
203
  cursor: 'pointer',
@@ -297,44 +331,58 @@ const Root = (0, _styles.styled)('div')(({
297
331
  },
298
332
  '& .MuiCallout-root': {
299
333
  display: 'flex',
300
- gap: 12,
301
- padding: '16px',
334
+ gap: '8px',
335
+ padding: '12px',
302
336
  margin: '16px 0',
303
337
  border: '1px solid',
304
338
  color: `var(--muidocs-palette-text-secondary, ${_branding.brandingLightTheme.palette.text.secondary})`,
305
339
  borderColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
306
340
  borderRadius: `var(--muidocs-shape-borderRadius, ${(_theme$shape$borderRa2 = (_theme$shape2 = theme.shape) == null ? void 0 : _theme$shape2.borderRadius) != null ? _theme$shape$borderRa2 : _branding.brandingLightTheme.shape.borderRadius}px)`,
307
- '& > code': {
341
+ '& .MuiCallout-content': {
342
+ minWidth: 0,
343
+ // Allows content to shrink. Useful when callout contains code block
344
+ flexGrow: 1
345
+ },
346
+ '& code': {
308
347
  height: 'fit-content',
309
348
  backgroundColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
310
349
  borderColor: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`
311
350
  },
312
- '& .MuiCallout-content': {
313
- minWidth: 0,
314
- // Allows content to shrink. Useful when callout contains code block
315
- flexGrow: 1,
351
+ '& p': {
352
+ marginBottom: '8px',
316
353
  '& > p:last-child, & > ul:last-child': {
317
354
  // Avoid margin on last child
318
355
  marginBottom: 0
319
356
  },
320
- '& .MuiCode-root': {
321
- '& > pre': {
322
- margin: 0,
323
- marginTop: 4
324
- }
325
- },
326
357
  '& > ul': {
327
358
  // Because of the gap left by the icon, we visually need less padding
328
359
  paddingLeft: 22
329
360
  }
330
361
  },
331
- '& > svg': {
332
- marginTop: 2,
333
- width: 20,
334
- height: 20,
335
- flexShrink: 0
362
+ '& .MuiCode-root': {
363
+ '& pre': {
364
+ margin: '4px 0 0 0',
365
+ borderRadius: '12px 12px 6px 12px',
366
+ borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[600], 0.6),
367
+ '& code': {
368
+ backgroundColor: 'transparent'
369
+ }
370
+ }
336
371
  },
337
- '& > ul, & > p': {
372
+ '& .MuiCallout-icon-container': {
373
+ width: 26,
374
+ // to match text's line-height
375
+ height: 26,
376
+ display: 'flex',
377
+ alignItems: 'center',
378
+ justifyContent: 'center',
379
+ flexShrink: 0,
380
+ '& svg': {
381
+ width: 18,
382
+ height: 18
383
+ }
384
+ },
385
+ '& ul, & p': {
338
386
  '&:last-child': {
339
387
  margin: 0
340
388
  }
@@ -349,7 +397,7 @@ const Root = (0, _styles.styled)('div')(({
349
397
  '& strong': {
350
398
  color: `var(--muidocs-palette-error-800, ${_branding.brandingLightTheme.palette.error[800]})`
351
399
  },
352
- '& > svg': {
400
+ '& svg': {
353
401
  fill: `var(--muidocs-palette-error-500, ${_branding.brandingLightTheme.palette.error[600]})`
354
402
  },
355
403
  '& a': {
@@ -367,7 +415,7 @@ const Root = (0, _styles.styled)('div')(({
367
415
  '& strong': {
368
416
  color: `var(--muidocs-palette-primary-800, ${_branding.brandingLightTheme.palette.primary[800]})`
369
417
  },
370
- '& > svg': {
418
+ '& svg': {
371
419
  fill: `var(--muidocs-palette-grey-600, ${_branding.brandingLightTheme.palette.grey[600]})`
372
420
  }
373
421
  },
@@ -378,7 +426,7 @@ const Root = (0, _styles.styled)('div')(({
378
426
  '& strong': {
379
427
  color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`
380
428
  },
381
- '& > svg': {
429
+ '& svg': {
382
430
  fill: `var(--muidocs-palette-success-600, ${_branding.brandingLightTheme.palette.success[600]})`
383
431
  },
384
432
  '& a': {
@@ -396,7 +444,7 @@ const Root = (0, _styles.styled)('div')(({
396
444
  '& strong': {
397
445
  color: `var(--muidocs-palette-warning-800, ${_branding.brandingLightTheme.palette.warning[800]})`
398
446
  },
399
- '& > svg': {
447
+ '& svg': {
400
448
  fill: `var(--muidocs-palette-warning-600, ${_branding.brandingLightTheme.palette.warning[600]})`
401
449
  },
402
450
  '& a': {
@@ -408,47 +456,6 @@ const Root = (0, _styles.styled)('div')(({
408
456
  }
409
457
  }
410
458
  },
411
- '& a[target="_blank"]::after': {
412
- content: '""',
413
- maskImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z'%3E%3C/path%3E%3C/svg%3E")`,
414
- display: 'inline-flex',
415
- width: '1em',
416
- height: '1em',
417
- color: 'inherit',
418
- backgroundColor: 'currentColor',
419
- transform: 'translate(0, 2px)',
420
- transition: 'transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1)',
421
- // bounce effect
422
- opacity: 0.8
423
- },
424
- '& a[target="_blank"]:hover::after': {
425
- opacity: 1,
426
- transform: 'translate(1px, 0)'
427
- },
428
- '& a.remove-link-arrow::after': {
429
- // Allows to remove link arrows for images
430
- display: 'none'
431
- },
432
- '& .Ad-root a::after': {
433
- // Remove link arrow for ads
434
- display: 'none'
435
- },
436
- '& a:not(.title-link-to-anchor), & a:not(.title-link-to-anchor) code': {
437
- // Style taken from the Link component
438
- color: `var(--muidocs-palette-primary-600, ${_branding.brandingLightTheme.palette.primary[600]})`,
439
- fontWeight: theme.typography.fontWeightMedium,
440
- textDecoration: 'underline',
441
- textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primary.main, 0.4),
442
- '&:hover': {
443
- textDecorationColor: 'inherit'
444
- }
445
- },
446
- '& a code': {
447
- color: (0, _styles.darken)(_branding.brandingLightTheme.palette.primary.main, 0.04)
448
- },
449
- '& a:not(.title-link-to-anchor) code': {
450
- color: (0, _styles.darken)(_branding.brandingLightTheme.palette.primary.main, 0.2)
451
- },
452
459
  '& img, & video': {
453
460
  // Use !important so that inline style on <img> or <video> can't win.
454
461
  // This avoid horizontal overflows on mobile.
@@ -677,24 +684,28 @@ const Root = (0, _styles.styled)('div')(({
677
684
  '& hr': {
678
685
  backgroundColor: `var(--muidocs-palette-divider, ${_branding.brandingDarkTheme.palette.divider})`
679
686
  },
680
- '& h1, & h2, & h3, & h4, & h5': {
681
- color: `var(--muidocs-palette-grey-50, ${_branding.brandingDarkTheme.palette.grey[50]})`
687
+ '& a': {
688
+ color: `var(--muidocs-palette-primary-300, ${_branding.brandingDarkTheme.palette.primary[300]})`
682
689
  },
683
- '& p, & ul, & ol': {
684
- color: `var(--muidocs-palette-grey-400, ${_branding.brandingDarkTheme.palette.grey[400]})`
690
+ '& a code': {
691
+ color: `var(--muidocs-palette-primary-light, ${_branding.brandingDarkTheme.palette.primary.light})`
685
692
  },
686
- '& h1, & h2, & h3, & h4': {
687
- '&:hover .anchor-icon, & .comment-link': {
693
+ '& h1, & h2, & h3, & h4, & h5': {
694
+ color: `var(--muidocs-palette-grey-50, ${_branding.brandingDarkTheme.palette.grey[50]})`,
695
+ '& .anchor-icon, & .comment-link': {
688
696
  color: `var(--muidocs-palette-primary-300, ${_branding.brandingDarkTheme.palette.primaryDark[300]})`,
689
697
  borderColor: `var(--muidocs-palette-divider, ${_branding.brandingDarkTheme.palette.divider})`,
690
698
  backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.primaryDark[700], 0.5),
691
699
  '&:hover': {
700
+ color: `var(--muidocs-palette-primary-100, ${_branding.brandingDarkTheme.palette.primary[100]})`,
692
701
  borderColor: `var(--muidocs-palette-primary-900, ${_branding.brandingDarkTheme.palette.primary[900]})`,
693
- backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.primary[900], 0.6),
694
- color: `var(--muidocs-palette-primary-100, ${_branding.brandingDarkTheme.palette.primary[100]})`
702
+ backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.primary[900], 0.6)
695
703
  }
696
704
  }
697
705
  },
706
+ '& p, & ul, & ol': {
707
+ color: `var(--muidocs-palette-grey-400, ${_branding.brandingDarkTheme.palette.grey[400]})`
708
+ },
698
709
  '& h1 code, & h2 code, & h3 code': {
699
710
  color: `var(--muidocs-palette-grey-100, ${_branding.brandingDarkTheme.palette.grey[100]})`
700
711
  },
@@ -728,8 +739,7 @@ const Root = (0, _styles.styled)('div')(({
728
739
  },
729
740
  '& .MuiCallout-root': {
730
741
  borderColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingDarkTheme.palette.primaryDark[700]})`,
731
- '& > code': {
732
- height: 'fit-content',
742
+ '& code': {
733
743
  backgroundColor: `var(--muidocs-palette-primaryDark-600, ${_branding.brandingDarkTheme.palette.primaryDark[600]})`,
734
744
  borderColor: `var(--muidocs-palette-primaryDark-500, ${_branding.brandingDarkTheme.palette.primaryDark[500]})`
735
745
  },
@@ -740,7 +750,7 @@ const Root = (0, _styles.styled)('div')(({
740
750
  '& strong': {
741
751
  color: `var(--muidocs-palette-error-300, ${_branding.brandingDarkTheme.palette.error[300]})`
742
752
  },
743
- '& > svg': {
753
+ '& svg': {
744
754
  fill: `var(--muidocs-palette-error-500, ${_branding.brandingDarkTheme.palette.error[500]})`
745
755
  },
746
756
  '& a': {
@@ -754,7 +764,7 @@ const Root = (0, _styles.styled)('div')(({
754
764
  '& strong': {
755
765
  color: `var(--muidocs-palette-primary-200, ${_branding.brandingDarkTheme.palette.primary[200]})`
756
766
  },
757
- '& > svg': {
767
+ '& svg': {
758
768
  fill: `var(--muidocs-palette-grey-400, ${_branding.brandingDarkTheme.palette.grey[400]})`
759
769
  }
760
770
  },
@@ -765,7 +775,7 @@ const Root = (0, _styles.styled)('div')(({
765
775
  '& strong': {
766
776
  color: `var(--muidocs-palette-success-200, ${_branding.brandingDarkTheme.palette.success[200]})`
767
777
  },
768
- '& > svg': {
778
+ '& svg': {
769
779
  fill: `var(--muidocs-palette-success-500, ${_branding.brandingDarkTheme.palette.success[500]})`
770
780
  },
771
781
  '& a': {
@@ -779,7 +789,7 @@ const Root = (0, _styles.styled)('div')(({
779
789
  '& strong': {
780
790
  color: `var(--muidocs-palette-warning-200, ${_branding.brandingDarkTheme.palette.warning[200]})`
781
791
  },
782
- '& > svg': {
792
+ '& svg': {
783
793
  fill: `var(--muidocs-palette-warning-400, ${_branding.brandingDarkTheme.palette.warning[400]})`
784
794
  },
785
795
  '& a': {
@@ -787,12 +797,6 @@ const Root = (0, _styles.styled)('div')(({
787
797
  }
788
798
  }
789
799
  },
790
- '& a:not(.title-link-to-anchor), & a:not(.title-link-to-anchor) code': {
791
- color: `var(--muidocs-palette-primary-300, ${_branding.brandingDarkTheme.palette.primary[300]})`
792
- },
793
- '& a:not(.title-link-to-anchor) code': {
794
- color: `var(--muidocs-palette-primary-light, ${_branding.brandingDarkTheme.palette.primary.light})`
795
- },
796
800
  '& kbd.key': {
797
801
  color: `var(--muidocs-palette-text-primary, ${_branding.brandingDarkTheme.palette.text.primary})`,
798
802
  backgroundColor: `var(--muidocs-palette-primaryDark-800, ${_branding.brandingDarkTheme.palette.primaryDark[800]})`,
@@ -140,7 +140,7 @@ const getDesignTokens = mode => ({
140
140
  tertiary: grey[700]
141
141
  }),
142
142
  ...(mode === 'dark' && {
143
- primary: '#fff',
143
+ primary: 'hsl(0, 0%, 100%)',
144
144
  secondary: grey[400],
145
145
  tertiary: grey[500]
146
146
  })
@@ -274,10 +274,10 @@ const getDesignTokens = mode => ({
274
274
  * ...theme.vars ? {
275
275
  * color: theme.vars.palette.primary.main,
276
276
  * [theme.getColorScheme('dark')]: {
277
- * color: '#fff',
277
+ * color: 'hsl(0, 0%, 100%)',
278
278
  * }
279
279
  * } : {
280
- * color: theme.palette.mode === 'dark' ? '#fff' : theme.palette.primary.main,
280
+ * color: theme.palette.mode === 'dark' ? 'hsl(0, 0%, 100%)' : theme.palette.primary.main,
281
281
  * }
282
282
  * }
283
283
  *
@@ -285,7 +285,7 @@ const getDesignTokens = mode => ({
285
285
  * {
286
286
  * color: (theme.vars || theme).palette.primary.main,
287
287
  * ...theme.applyDarkStyles({
288
- * color: '#fff',
288
+ * color: 'hsl(0, 0%, 100%)',
289
289
  * }),
290
290
  * }
291
291
  *
@@ -502,7 +502,7 @@ function getThemedComponents() {
502
502
  color: (theme.vars || theme).palette.text.primary,
503
503
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
504
504
  borderColor: (theme.vars || theme).palette.primaryDark[100],
505
- boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
505
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
506
506
  '&:hover': {
507
507
  backgroundColor: (theme.vars || theme).palette.grey[50]
508
508
  },
@@ -538,7 +538,7 @@ function getThemedComponents() {
538
538
  })
539
539
  }),
540
540
  ...(ownerState.variant === 'contained' && ownerState.color === 'primary' && {
541
- color: '#fff',
541
+ color: 'hsl(0, 0%, 100%)',
542
542
  textShadow: `0 1px 1px ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
543
543
  backgroundColor: (theme.vars || theme).palette.primary[500],
544
544
  backgroundImage: `linear-gradient(180deg, ${(0, _styles.alpha)(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
@@ -743,7 +743,7 @@ function getThemedComponents() {
743
743
  color: (theme.vars || theme).palette.primary.main,
744
744
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
745
745
  border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
746
- boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
746
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
747
747
  '&:hover': {
748
748
  borderColor: (theme.vars || theme).palette.grey[300],
749
749
  background: (theme.vars || theme).palette.grey[50]
@@ -768,7 +768,7 @@ function getThemedComponents() {
768
768
  color: (theme.vars || theme).palette.text.secondary,
769
769
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
770
770
  border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
771
- boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
771
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
772
772
  '&:hover': {
773
773
  color: (theme.vars || theme).palette.text.primary,
774
774
  borderColor: (theme.vars || theme).palette.grey[300],
@@ -869,7 +869,7 @@ function getThemedComponents() {
869
869
  }) => ({
870
870
  display: 'inline-flex',
871
871
  alignItems: 'center',
872
- fontWeight: theme.typography.fontWeightSemiBold,
872
+ fontWeight: theme.typography.fontWeightMedium,
873
873
  '&.MuiTypography-body1 > svg': {
874
874
  marginTop: 2
875
875
  },
@@ -968,7 +968,7 @@ function getThemedComponents() {
968
968
  backgroundColor: (theme.vars || theme).palette.primary[100]
969
969
  },
970
970
  ...theme.applyDarkStyles({
971
- color: '#fff',
971
+ color: 'hsl(0, 0%, 100%)',
972
972
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.8),
973
973
  '&:hover': {
974
974
  backgroundColor: (theme.vars || theme).palette.primaryDark[600]
@@ -1020,7 +1020,7 @@ function getThemedComponents() {
1020
1020
  color: (theme.vars || theme).palette.warning[900],
1021
1021
  backgroundColor: (theme.vars || theme).palette.warning[100],
1022
1022
  ...theme.applyDarkStyles({
1023
- color: '#fff',
1023
+ color: 'hsl(0, 0%, 100%)',
1024
1024
  backgroundColor: (theme.vars || theme).palette.warning[900]
1025
1025
  })
1026
1026
  }),
@@ -1028,7 +1028,7 @@ function getThemedComponents() {
1028
1028
  color: (theme.vars || theme).palette.success[900],
1029
1029
  backgroundColor: (theme.vars || theme).palette.success[100],
1030
1030
  ...theme.applyDarkStyles({
1031
- color: '#fff',
1031
+ color: 'hsl(0, 0%, 100%)',
1032
1032
  backgroundColor: (theme.vars || theme).palette.success[900]
1033
1033
  })
1034
1034
  })
@@ -1073,7 +1073,7 @@ function getThemedComponents() {
1073
1073
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4)
1074
1074
  },
1075
1075
  '&.Mui-selected': {
1076
- color: '#fff',
1076
+ color: 'hsl(0, 0%, 100%)',
1077
1077
  borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
1078
1078
  backgroundColor: (theme.vars || theme).palette.primaryDark[700],
1079
1079
  '&:hover': {
@@ -1105,7 +1105,7 @@ function getThemedComponents() {
1105
1105
  ownerState
1106
1106
  }) => [{
1107
1107
  backgroundImage: 'none',
1108
- backgroundColor: '#fff',
1108
+ backgroundColor: 'hsl(0, 0%, 100%)',
1109
1109
  '&[href]': {
1110
1110
  textDecorationLine: 'none'
1111
1111
  },
@@ -1117,7 +1117,7 @@ function getThemedComponents() {
1117
1117
  borderColor: (theme.vars || theme).palette.grey[100],
1118
1118
  '&[href]': {
1119
1119
  textDecorationLine: 'none',
1120
- boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[100], 0.3)} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
1120
+ boxShadow: `hsl(0, 0%, 100%) 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.3)} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
1121
1121
  '&:hover': {
1122
1122
  borderColor: (theme.vars || theme).palette.primary[200],
1123
1123
  boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
@@ -1140,8 +1140,7 @@ function getThemedComponents() {
1140
1140
  borderColor: (theme.vars || theme).palette.primaryDark[700],
1141
1141
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[800], 0.6),
1142
1142
  '&[href]': {
1143
- textDecorationLine: 'none',
1144
- boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[700], 0.4)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
1143
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.1)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
1145
1144
  '&:hover': {
1146
1145
  borderColor: (0, _styles.alpha)(theme.palette.primary[600], 0.5),
1147
1146
  boxShadow: `0px 2px 8px ${(0, _styles.alpha)(theme.palette.primary[900], 0.6)}`
@@ -1179,7 +1178,7 @@ function getThemedComponents() {
1179
1178
  root: ({
1180
1179
  theme
1181
1180
  }) => ({
1182
- backgroundColor: '#fff',
1181
+ backgroundColor: 'hsl(0, 0%, 100%)',
1183
1182
  ...theme.applyDarkStyles({
1184
1183
  backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1185
1184
  })
@@ -1250,7 +1249,7 @@ function getThemedComponents() {
1250
1249
  '& .MuiSwitch-switchBase': {
1251
1250
  '&.Mui-checked': {
1252
1251
  transform: 'translateX(11px)',
1253
- color: '#fff'
1252
+ color: 'hsl(0, 0%, 100%)'
1254
1253
  }
1255
1254
  }
1256
1255
  },
@@ -1258,7 +1257,7 @@ function getThemedComponents() {
1258
1257
  height: 20,
1259
1258
  width: 20,
1260
1259
  padding: 0,
1261
- color: '#fff',
1260
+ color: 'hsl(0, 0%, 100%)',
1262
1261
  '&.Mui-checked + .MuiSwitch-track': {
1263
1262
  opacity: 1
1264
1263
  }
@@ -1286,7 +1285,7 @@ function getThemedComponents() {
1286
1285
  theme
1287
1286
  }) => ({
1288
1287
  '& .MuiSnackbarContent-root': {
1289
- backgroundColor: '#FFF',
1288
+ backgroundColor: 'hsl(0, 0%, 100%)',
1290
1289
  color: (theme.vars || theme).palette.text.primary,
1291
1290
  fontWeight: theme.typography.fontWeightMedium,
1292
1291
  border: `1px solid ${(theme.vars || theme).palette.divider}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "6.0.0-alpha.11",
3
+ "version": "6.0.0-alpha.13",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI Docs - Documentation building blocks.",
@@ -28,7 +28,7 @@
28
28
  "clsx": "^2.1.1",
29
29
  "nprogress": "^0.2.0",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/internal-markdown": "^1.0.5"
31
+ "@mui/internal-markdown": "^1.0.6"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@mui/base": "*",