From 9063ebe93a16b4e92d4a3390d3fe7e980a682474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Wed, 20 Sep 2023 22:04:47 +0000 Subject: [PATCH] SVGRect "variant" prop fitting color scheme --- ui/src/bulma-vars.scss | 20 ++++++++ ui/src/components/calendar/SVGRect.vue | 52 +++++++++++++------- ui/src/components/editor/PreviewDoor.vue | 5 +- ui/src/components/editor/RectangleCanvas.vue | 8 ++- ui/src/main.scss | 19 +------ 5 files changed, 66 insertions(+), 38 deletions(-) create mode 100644 ui/src/bulma-vars.scss diff --git a/ui/src/bulma-vars.scss b/ui/src/bulma-vars.scss new file mode 100644 index 0000000..090ce5f --- /dev/null +++ b/ui/src/bulma-vars.scss @@ -0,0 +1,20 @@ +@charset "utf-8"; + +//===================== +// custom color scheme +//===================== + +$primary: #945DE1; +$link: #64B4BD; +$info: #8C4E80; +$success: #7E8E2B; +$warning: #F6CA6B; +$danger: #C5443B; + +// Sass variables (bulma) +@import "~bulma/sass/utilities/initial-variables.sass"; +@import "~bulma/sass/utilities/derived-variables.sass"; + +// Sass variables (bulma-prefers-dark) +@import "~bulma-prefers-dark/sass/utilities/initial-variables.sass"; +@import "~bulma-prefers-dark/sass/utilities/derived-variables.sass"; \ No newline at end of file diff --git a/ui/src/components/calendar/SVGRect.vue b/ui/src/components/calendar/SVGRect.vue index 97f1d2d..51206f5 100644 --- a/ui/src/components/calendar/SVGRect.vue +++ b/ui/src/components/calendar/SVGRect.vue @@ -1,6 +1,6 @@