Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

175
Visualizações
Using a custom MUI theme into another component

I am using next js and Mui 5 and I want to use breakpoint theme into another file. I am unable to understand how can I use it. This is my breakpoint.js file

import {createTheme } from '@mui/material/styles';
declare module '@mui/material/styles' {
    interface BreakpointOverrides {
      xs: false; 
      sm: false;
      md: false;
      lg: false;
      xl: false;
      mobile: true; 
      tablet: true;
      laptop: true,
      desktop: true;
    }  
}

export const breakpointTheme = createTheme({
    breakpoints: {
      values: {
        mobile: 360,
        tablet: 768,
        laptop: 1024,
        desktop: 1440,
      },
    },
});

This is the file in which I want to use breakpointTheme inside my theme of the other file.

export const theme = responsiveFontSizes(createTheme({
  palette: {
    warning: {
      light: warningLight,
      main: warning,
      dark: warningDark,
    },
    info: {
      light: infoLight,
      main: info,
      dark: infoDark,
    },
    // here I want to use breakpoint component   
  },
}));

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda