Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/guoyunhe/material-compact
- Owner: guoyunhe
- License: gpl-3.0
- Created: 2023-02-20T05:13:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T07:25:08.000Z (9 months ago)
- Last Synced: 2024-10-13T07:54:25.126Z (4 months ago)
- Topics: material, material-design, material-ui, mui, theme
- Language: TypeScript
- Homepage: https://guoyunhe.github.io/material-compact/
- Size: 1.07 MB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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/)