# glass-mui

> Repository providing theming utilities and custom components implimenting the Glass Design framework.

Latest version **0.0.2** (published 2023-11-22) · 0 weekly downloads

## Install

```sh
npm install glass-mui
pnpm add glass-mui
yarn add glass-mui
bun add glass-mui
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-11-22 |
| First published | 2023-11-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 167.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rellisbrown |

## Links

- npm: https://www.npmjs.com/package/glass-mui
- npm.io page: https://npm.io/package/glass-mui

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [@mui/material](https://npm.io/package/@mui/material.md) ^5.14.18
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.11.1
- [@emotion/styled](https://npm.io/package/@emotion/styled.md) ^11.11.0
- [@fontsource/roboto](https://npm.io/package/@fontsource/roboto.md) ^5.0.8
- [@mui/icons-material](https://npm.io/package/@mui/icons-material.md) ^5.14.18

## Recent versions

- 0.0.2 (latest) — 2023-11-22
- 0.0.1 — 2023-11-17
- 0.0.0 — 2023-11-17

## README

# Glass MUI

Repository providing theming utilities and custom components implimenting the Glass Design framework.

This library is intended to be used in conjunction with the MUI (Material-ui) component library:

https://mui.com/material-ui/

## Installation

Using npm:

`npm i glass-mui`

## Usage

### Theme Provider

The Glass Theme Provider acts as a convenience wrapper for the standard MUI Theme Provider by automatically specifying the use of the Glass Theme in the provider's props.

The Theme Provider's usage replicates that of the MUI Theme Provider:

https://mui.com/material-ui/customization/theming/

```
import { GlassThemeProvider } from "glass-mui";

<GlassThemeProvider>
  <App/>
</GlassThemeProvider>
```

#### Props

`cssBaseline` - The theme provider includes the MUI `CssBaseline` component in the wrapper by default. This can be disabled by setting the value of this prop to `false`

```
<GlassThemeProvider cssBaseline={false}>
  <App/>
</GlassThemeProvider>
```

### Theme

In cases where additional customisation is required, the theme object can be "composed" to create a new MUI theme object:

https://mui.com/material-ui/customization/theming/#nesting-the-theme

For this purpose, the Glass MUI theme is directly exposed in the package:

import { glassTheme } from "glass-mui";

`Note: Customising the theme in this way will require the use of the original MUI Theme Provider`

### Custom Components

...

---
_Source: https://npm.io/package/glass-mui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
