Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

131
Vistas
Not able to override the default color of the material ui appbar
import React from 'react';
import { AppBar,Typography,Toolbar, makeStyles } from '@mui/material';

const useStyles = makeStyles({
  appbar:{
    backgroundColor:'#000000',
  }
})
const Navbar = () => {
  const classes = useStyles();
  return (
    <AppBar className={classes.appbar}>
      <Toolbar>

      </Toolbar>
    </AppBar>
  );
}
export default Navbar;

I am trying to change the default color of the appbar but this is not working , i tried using the char value of the color in place of the hex but that was also not working . Can anyone tell me whats wrong in this ? And yes , i am using the v5.4.3 of material-ui in this

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can do a one-off customization of a component with the sx-prop:

import * as React from "react";
import AppBar from "@mui/material/AppBar";

export default function ButtonAppBar() {
  return (
    <AppBar position="static" sx={{ color: "red", bgcolor: "black" }}>
      Content
    </AppBar>
  );
}

mui AppBar with colors manually set

You may also be interested in MUI's color system.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda