ml-opensource / admin-panel-template-reactjs

25 stars 10 forks source link

WIP theme docs #42

Closed naelrashdeen closed 3 years ago

naelrashdeen commented 3 years ago

Themes

What are you adding?

Added documentation on how to apply themes to the admin panel. Covers examples of the base theme object and how it can be configured to the applications requirements, including rendering themes based on user roles.

Breaking changes?

Related PR

yukinoda commented 3 years ago

Other looks fine so far 😄

yukinoda commented 3 years ago

@themitvp All changes are done and added a reference section with Material-UI Official Documentation link. I think it looks fine from my side 😉

yukinoda commented 3 years ago

color palette script was fine

const theme = createMuiTheme({
  palette: {
    primary: blue,
    secondary: green,
  },
});
yukinoda commented 3 years ago

color palette script was fine

const theme = createMuiTheme({
  palette: {
    primary: blue,
    secondary: green,
  },
});

Turning to this to avoid misunderstanding from the official documentation. dropping color object might slowly move to be unsupported.

const theme = createMuiTheme({
  palette: {
    primary: {
       main: blue[500]
    },
    secondary: {
       main: green[500]
    },
  },
});
yukinoda commented 3 years ago

ToDo