An open API service indexing awesome lists of open source software.

https://github.com/informaticsmatters/squonk-react-mui-theme

Material UI theme used in Squonk's React applications
https://github.com/informaticsmatters/squonk-react-mui-theme

Last synced: about 1 year ago
JSON representation

Material UI theme used in Squonk's React applications

Awesome Lists containing this project

README

          

Material-UI themes for Squonk applications. Can be used independently with just Material-UI or with Emotion of Styled-Components.

## Examples

### Material UI

The colour scheme provides both a light and a dark theme. Mui v6 will automatically switch between schemes via media queries, taking into account the users system preference.

```tsx
import React from 'react';

import { CssBaseline } from '@material-ui/core';
import { StylesProvider, ThemeProvider as MuiThemeProvider } from '@material-ui/core/styles';

import theme from '@squonk/mui-theme';

export const App = () => {
return (



{...}


);
};
```

### Emotion

Wrap the previous example with the theme provider from emotion.

```tsx
import { ThemeProvider } from '@emotion/react';

{...}
```

### Styled Components

```tsx
import { ThemeProvider } from 'styled-components';

{...}
```

# Publishing a new Version

With made changes committed and pushed:

1. Run `pnpm release`. This builds a `dist` with the `publishConfig` merged in.