Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/guoyunhe/material-compact

Helper to create compact @mui/material theme
https://github.com/guoyunhe/material-compact

material material-design material-ui mui theme

Last synced: 3 months ago
JSON representation

Helper to create compact @mui/material theme

Awesome Lists containing this project

README

        

# material-compact

Helper to create compact @mui/material theme

## Install

```bash
npm i material-compact
```

## Usage

```tsx
import { ThemeProvider, TextField } from '@mui/material';
import { createCompactTheme } from 'material-compact';

const theme = createCompactTheme({
// Your theme options...
});




;
```

If you are using TypeScript, modify your tsconfig.json to enable extra size variants:

```json
{
"compilerOptions": {
"types": ["material-compact/overrides"]
}
}
```

👉 [check online preview](https://guoyunhe.github.io/material-compact/)