@docker/docker-mui-theme
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

@docker/docker-mui-theme

This package provides a Material UI theme that specifies the basic look & feel of Docker Desktop in an application-agnostic way. This is the only officially supported theming solution for Docker Extensions.

How to use

Wrap your React application with DockerMuiThemeProvider at a suitably high level, and then render a MUI CssBaseline component somewhere within it.

For best results integrating with Docker Desktop, also read our MUI best practices article.

import { DockerMuiThemeProvider } from '@docker/docker-mui-theme';
import CssBaseline from '@mui/material/CssBaseline';

function App() {
  return (
    <DockerMuiThemeProvider>
      <CssBaseline />

      <YourAppContent />
    </DockerMuiThemeProvider>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @docker/docker-mui-theme

Weekly Downloads

3,342

Version

0.0.11

License

Apache-2.0

Unpacked Size

44.5 kB

Total Files

9

Last publish

Collaborators

  • rossipedia-docker
  • crazymax
  • lucas.bernalte.docker
  • lizzthabet
  • gtardif
  • ebriney
  • jeanlaurent
  • serjkarneichyk
  • rumpl
  • mark-dr