0.0.13 • Published 8 months ago

@docker/docker-mui-theme v0.0.13

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 months ago

@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 one of the two theme providers (see MUI Versions section below), 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 { DockerMuiV6ThemeProvider } from '@docker/docker-mui-theme';
import CssBaseline from '@mui/material/CssBaseline';

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

      <YourAppContent />
    </DockerMuiV6ThemeProvider>
  );
}

MUI Versions

Docker Desktop currently primarily supports MUI v6, but has legacy support for MUI v5. When wrapping your app, use the appropriate context provider:

  • DockerMuiV6ThemeProvider for MUI v6
  • DockerMuiV5ThemeProvider for MUI v5

A future major version change will remove support for MUI v5.

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago