5.0.0 • Published 3 months ago

@squonk/mui-theme v5.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
3 months ago

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.

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 (
    <StylesProvider injectFirst>
      <CssBaseline />
      <MuiThemeProvider theme={theme}>
        {...}
      </MuiThemeProvider>
    </StylesProvider>
  );
};

Emotion

Wrap the previous example with the theme provider from emotion.

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

<ThemeProvider theme={theme}>{...}</ThemeProvider>

Styled Components

import { ThemeProvider } from 'styled-components';

<ThemeProvider theme={theme}>{...}</ThemeProvider>

Publishing a new Version

With made changes committed and pushed:

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

3 months ago

4.0.0

6 months ago

3.0.2-alpha.0

3 years ago

3.0.2-alpha.1

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

4 years ago

2.0.0-dev.10

4 years ago

2.0.0-dev.12

4 years ago

2.0.0-dev.11

4 years ago

2.0.0-dev.14

4 years ago

2.0.0-dev.13

4 years ago

2.0.0-dev.16

4 years ago

2.0.0-dev.15

4 years ago

2.0.0

4 years ago

2.0.0-dev.8

4 years ago

2.0.0-dev.1

4 years ago

2.0.0-dev.3

4 years ago

2.0.0-dev.2

4 years ago

2.0.0-dev.5

4 years ago

2.0.0-dev.4

4 years ago

2.0.0-dev.7

4 years ago

2.0.0-dev.6

4 years ago

1.0.0-dev.2

4 years ago

1.0.0-dev.1

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.5.0

4 years ago

0.6.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.6

4 years ago

0.1.5

5 years ago

0.1.3

5 years ago