Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
niuware committed Oct 10, 2019
1 parent 9dad90d commit b86c37b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ $ npm run serve

## Future plans

- Code refactor
- Add new features
- Increase test coverage

## Suggestions and issues
Expand Down
16 changes: 13 additions & 3 deletions examples/theme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,35 @@ import React from 'react'
import { createMuiTheme, Theme, MuiThemeProvider } from '@material-ui/core/styles'
import MUIRichTextEditor from '../../'

export const defaultTheme: Theme = createMuiTheme()
export const defaultTheme: Theme = createMuiTheme({
palette: {
primary: {
main: "#000000"
}
}
})

Object.assign(defaultTheme, {
overrides: {
MUIRichTextEditor: {
root: {
backgroundColor: "#ebebeb",
},
container: {
display: "flex",
flexDirection: "column-reverse"
},
editor: {
borderBottom: "1px solid gray",
backgroundColor: "#ebebeb",
padding: "0 20px"
},
toolbar: {
borderTop: "1px solid gray",
backgroundColor: "#ebebeb"
},
placeHolder: {
backgroundColor: "#ebebeb",
paddingLeft: "20px",
paddingLeft: 20,
width: "inherit"
}
}
Expand Down

0 comments on commit b86c37b

Please sign in to comment.