style: auto format whole project
This commit is contained in:
@@ -4,7 +4,7 @@ import type { IJSONObject } from '@automatisch/types';
|
||||
|
||||
type JSONViewerProps = {
|
||||
data: IJSONObject;
|
||||
}
|
||||
};
|
||||
|
||||
const theme = {
|
||||
scheme: 'inspector',
|
||||
|
@@ -1,29 +1,35 @@
|
||||
import GlobalStyles from '@mui/material/GlobalStyles';
|
||||
|
||||
export const jsonViewerStyles = (<GlobalStyles styles={(theme) => ({
|
||||
'json-viewer': {
|
||||
'--background-color': 'transparent',
|
||||
'--font-family': 'monaco, Consolas, Lucida Console, monospace',
|
||||
'--font-size': '1rem',
|
||||
'--indent-size': '1.5em',
|
||||
'--indentguide-size': '1px',
|
||||
'--indentguide-style': 'solid',
|
||||
'--indentguide-color': theme.palette.text.primary,
|
||||
'--indentguide-color-active': '#666',
|
||||
'--indentguide': 'var(--indentguide-size) var(--indentguide-style) var(--indentguide-color)',
|
||||
'--indentguide-active': 'var(--indentguide-size) var(--indentguide-style) var(--indentguide-color-active)',
|
||||
export const jsonViewerStyles = (
|
||||
<GlobalStyles
|
||||
styles={(theme) => ({
|
||||
'json-viewer': {
|
||||
'--background-color': 'transparent',
|
||||
'--font-family': 'monaco, Consolas, Lucida Console, monospace',
|
||||
'--font-size': '1rem',
|
||||
'--indent-size': '1.5em',
|
||||
'--indentguide-size': '1px',
|
||||
'--indentguide-style': 'solid',
|
||||
'--indentguide-color': theme.palette.text.primary,
|
||||
'--indentguide-color-active': '#666',
|
||||
'--indentguide':
|
||||
'var(--indentguide-size) var(--indentguide-style) var(--indentguide-color)',
|
||||
'--indentguide-active':
|
||||
'var(--indentguide-size) var(--indentguide-style) var(--indentguide-color-active)',
|
||||
|
||||
/* Types colors */
|
||||
'--string-color': theme.palette.text.secondary,
|
||||
'--number-color': theme.palette.text.primary,
|
||||
'--boolean-color': theme.palette.text.primary,
|
||||
'--null-color': theme.palette.text.primary,
|
||||
'--property-color': theme.palette.text.primary,
|
||||
/* Types colors */
|
||||
'--string-color': theme.palette.text.secondary,
|
||||
'--number-color': theme.palette.text.primary,
|
||||
'--boolean-color': theme.palette.text.primary,
|
||||
'--null-color': theme.palette.text.primary,
|
||||
'--property-color': theme.palette.text.primary,
|
||||
|
||||
/* Collapsed node preview */
|
||||
'--preview-color': theme.palette.text.primary,
|
||||
/* Collapsed node preview */
|
||||
'--preview-color': theme.palette.text.primary,
|
||||
|
||||
/* Search highlight color */
|
||||
'--highlight-color': '#6fb3d2',
|
||||
}
|
||||
})} />)
|
||||
/* Search highlight color */
|
||||
'--highlight-color': '#6fb3d2',
|
||||
},
|
||||
})}
|
||||
/>
|
||||
);
|
||||
|
Reference in New Issue
Block a user