Skip to content

Commit

Permalink
update documentation about customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoJM committed Apr 1, 2022
1 parent 5377415 commit 768e545
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
23 changes: 23 additions & 0 deletions docs/docs/customization/colors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
sidebar_position: 1
---

# Colors

To customize the image uploader widget colors you can use your own css file to override the css variables defined by the `image-uploader-inline.css`, `image-uploader-inline.min.css`, `image-uploader-widget.css` and `image-uploader-widget.min.css`. See an example, taken from another personal private project:

```scss
body {
--iuw-background: #{$dashdark} !important;
--iuw-border-color: #{$dashborder} !important;
--iuw-color: #{$dashgray} !important;
--iuw-placeholder-text-color: #{$dashgray} !important;
--iuw-dropzone-background: #{$dashlight} !important;
--iuw-image-preview-border: #{$dashborder} !important;
--iuw-image-preview-shadow: rgba(0, 0, 0, 0.3);
--iuw-add-image-background: #{$dashlight} !important;
--iuw-add-image-color: #{$dashgray} !important;
}
```

**Observation**: To see better the variables name, check the scss file at the GitHub repository: [here](https://github.com/inventare/django-image-uploader-widget/blob/main/src/styles/_variables.scss).
5 changes: 0 additions & 5 deletions docs/docs/customization/comming.md

This file was deleted.

0 comments on commit 768e545

Please sign in to comment.