Zu Seitenhinhalt springen

Standardtheme

So sieht das Designobjekt mit den Standardwerten aus.

Entdecke

Explore the default theme object:

  • direction: "ltr"
  • overrides: Object
  • palette: Object
    • type: "light"
    • contrastThreshold: 3
    • getContrastText: f V()
    • augmentColor: f E()
    • tonalOffset: 0.2
    • divider: rgba(0, 0, 0, 0.12)
    • background: Object
      • paper: #fff
      • default: #fafafa
  • props: Object

Tip: you can play with the documentation theme object in your browser console, as the theme variable is exposed on all the documentation pages. Please note that the documentation site is using a custom theme.

Wenn Sie mehr darüber erfahren möchten, wie das Theme zusammengestellt wird, werfen Sie einen Blick auf material-ui / style / createMuiTheme.js, und die zugehörigen Importe, die createMuiTheme verwendet.