From 397fb159147f6346319509a4fc799d9f19867523 Mon Sep 17 00:00:00 2001 From: Martin Prokoph Date: Sat, 9 Mar 2024 22:53:59 +0100 Subject: [PATCH] Add the theme files --- assets/.gitkeep | 0 src/frappe.css | 139 ++++++++++++++++++++++++++++++++++++++++++++++ src/latte.css | 87 +++++++++++++++++++++++++++++ src/macchiato.css | 139 ++++++++++++++++++++++++++++++++++++++++++++++ src/mocha.css | 139 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 504 insertions(+) create mode 100644 assets/.gitkeep create mode 100644 src/frappe.css create mode 100644 src/latte.css create mode 100644 src/macchiato.css create mode 100644 src/mocha.css diff --git a/assets/.gitkeep b/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/frappe.css b/src/frappe.css new file mode 100644 index 0000000..0439fbf --- /dev/null +++ b/src/frappe.css @@ -0,0 +1,139 @@ +/* Use Frappe palette for dark mode */ +@media (prefers-color-scheme: dark) { + body { + --color-main-background: #303446; + --color-main-background-rgb: 48, 52, 70; + --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); + --color-main-background-blur: rgba(var(--color-main-background-rgb), .8); + --color-background-hover: #414559; + --color-background-dark: #292c3c; + --color-background-dark-rgb: 41, 44, 60; + --color-background-dark-blur: rgba(var(--color-background-dark-rgb), .8); + --color-background-darker: #232634; + + --color-main-text: #c6d0f5; + --color-text-light: #b5bfe2; + --color-text-lighter: #a5adce; + + --color-scrollbar: #51576d; + + --color-error: #e78284; + --color-error-rgb: 231, 130, 132; + --color-error-hover: #d64b72; + + --color-warning: #e5c890; + --color-warning-rgb: 229, 200, 144; + --color-warning-hover: #dabe81; + + --color-success: #a6d189; + --color-success-rgb: 166, 209, 137; + --color-success-hover: #7fc07b; + + --color-info: #8caaee; + --color-info-rgb: 140, 170, 238; + --color-info-hover: #5ea8fa; + + --color-border: #414559; + --color-border-dark: #51576d; + --color-border-maxcontrast: #626880; + + --color-primary-element: #51576d; + --color-primary-element-rgb: 81, 87, 109; + --color-primary-element-hover: #414559; + + --color-primary-element-text: #c6d0f5; + + --color-primary-element-light: #414559; + --color-primary-element-light-rgb: 65, 69, 89; + --color-primary-element-light-hover: #292c3c; + } +} +/* Use Latte palette for light mode */ +@media (prefers-color-scheme: light) { + body { + --color-main-background: #eff1f5; + --color-main-background-rgb: 239, 241, 245; + --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); + --color-main-background-blur: rgba(var(--color-main-background-rgb), .8); + --color-background-hover: #ccd0da; + --color-background-dark: #e6e9ef; + --color-background-dark-rgb: 230, 233, 239; + --color-background-dark-blur: rgba(var(--color-background-dark-rgb), .8); + --color-background-darker: #dce0e8; + + --color-main-text: #4c4f69; + --color-text-light: #5c5f77; + --color-text-lighter: #6c6f85; + + --color-scrollbar: #bcc0cc; + + --color-error: #d20f39; + --color-error-rgb: 210, 15, 57; + --color-error-hover: #ac1132; + + --color-warning: #df8e1d; + --color-warning-rgb: 223, 142, 29; + --color-warning-hover: #b6761a; + + --color-success: #40a02b; + --color-success-rgb: 64, 160, 43; + --color-success-hover: #33701b; + + --color-info: #1e66f5; + --color-info-rgb: 30, 102, 245; + --color-info-hover: #0f52c8; + + --color-border: #ccd0da; + --color-border-dark: #bcc0cc; + --color-border-maxcontrast: #acb0be; + + --color-primary-element: #bcc0cc; + --color-primary-element-rgb: 188, 192, 204; + --color-primary-element-hover: #a6adc8; + + --color-primary-element-text: #4c4f69; + + --color-primary-element-light: #ccd0da; + --color-primary-element-light-rgb: 204, 208, 218; + --color-primary-element-light-hover: #e6e9ef; + } +} +/* Fixes wrong title color in tasks app */ +.app-navigation-caption__title { + color: var(--color-main-text) !important; /* !important needed for theming apps */ +} +/* Fixes wrong bubble text color in tasks and forms app */ +.counter-bubble__counter { + color: var(--color-primary-element-text) !important; /* !important needed for theming apps */ +} + +/* Fixes wrong title color in forms public view */ +.header-appname { + color: var(--color-main-text); +} + +/* General eye-candy for forms public view */ +#body-public > #content-vue > #app-content-vue { + background-color: var(--color-background-dark-blur); + -webkit-backdrop-filter: var(--filter-background-blur); + backdrop-filter: var(--filter-background-blur); +} +body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + border-radius: 14px; + background-color: var(--color-main-background-blur); + padding-inline-start: 18px; +} +@media (prefers-color-scheme: light) { + body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + background-color: var(--color-main-background); + } +} + +/* Fixes weird "shared by" text placement and color in forms public view */ +.header-shared-by { + color: var(--color-text-lighter); + position: absolute; + font-weight: 500; + font-size: 13px; + right: 15px; +} diff --git a/src/latte.css b/src/latte.css new file mode 100644 index 0000000..0724c95 --- /dev/null +++ b/src/latte.css @@ -0,0 +1,87 @@ +/* Always use Latte palette */ +body { + --color-main-background: #eff1f5; + --color-main-background-rgb: 239, 241, 245; + --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); + --color-main-background-blur: rgba(var(--color-main-background-rgb), .8); + --color-background-hover: #ccd0da; + --color-background-dark: #e6e9ef; + --color-background-dark-rgb: 230, 233, 239; + --color-background-dark-blur: rgba(var(--color-background-dark-rgb), .8); + --color-background-darker: #dce0e8; + + --color-main-text: #4c4f69; + --color-text-light: #5c5f77; + --color-text-lighter: #6c6f85; + + --color-scrollbar: #bcc0cc; + + --color-error: #d20f39; + --color-error-rgb: 210, 15, 57; + --color-error-hover: #ac1132; + + --color-warning: #df8e1d; + --color-warning-rgb: 223, 142, 29; + --color-warning-hover: #b6761a; + + --color-success: #40a02b; + --color-success-rgb: 64, 160, 43; + --color-success-hover: #33701b; + + --color-info: #1e66f5; + --color-info-rgb: 30, 102, 245; + --color-info-hover: #0f52c8; + + --color-border: #ccd0da; + --color-border-dark: #bcc0cc; + --color-border-maxcontrast: #acb0be; + + --color-primary-element: #bcc0cc; + --color-primary-element-rgb: 188, 192, 204; + --color-primary-element-hover: #a6adc8; + + --color-primary-element-text: #4c4f69; + + --color-primary-element-light: #ccd0da; + --color-primary-element-light-rgb: 204, 208, 218; + --color-primary-element-light-hover: #e6e9ef; +} +/* Fixes wrong title color in tasks app */ +.app-navigation-caption__title { + color: var(--color-main-text) !important; /* !important needed for theming apps */ +} +/* Fixes wrong bubble text color in tasks and forms app */ +.counter-bubble__counter { + color: var(--color-primary-element-text) !important; /* !important needed for theming apps */ +} + +/* Fixes wrong title color in forms public view */ +.header-appname { + color: var(--color-main-text); +} + +/* General eye-candy for forms public view */ +#body-public > #content-vue > #app-content-vue { + background-color: var(--color-background-dark-blur); + -webkit-backdrop-filter: var(--filter-background-blur); + backdrop-filter: var(--filter-background-blur); +} +body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + border-radius: 14px; + background-color: var(--color-main-background-blur); + padding-inline-start: 18px; +} +@media (prefers-color-scheme: light) { + body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + background-color: var(--color-main-background); + } +} + +/* Fixes weird "shared by" text placement and color in forms public view */ +.header-shared-by { + color: var(--color-text-lighter); + position: absolute; + font-weight: 500; + font-size: 13px; + right: 15px; +} \ No newline at end of file diff --git a/src/macchiato.css b/src/macchiato.css new file mode 100644 index 0000000..3a9d1b3 --- /dev/null +++ b/src/macchiato.css @@ -0,0 +1,139 @@ +/* Use Macchiato palette for dark mode */ +@media (prefers-color-scheme: dark) { + body { + --color-main-background: #24273a; + --color-main-background-rgb: 36, 39, 58; + --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); + --color-main-background-blur: rgba(var(--color-main-background-rgb), .8); + --color-background-hover: #363a4f; + --color-background-dark: #1e2030; + --color-background-dark-rgb: 30, 32, 48; + --color-background-dark-blur: rgba(var(--color-background-dark-rgb), .8); + --color-background-darker: #181926; + + --color-main-text: #cad3f5; + --color-text-light: #b8c0e0; + --color-text-lighter: #a5adcb; + + --color-scrollbar: #494d64; + + --color-error: #ed8796; + --color-error-rgb: 237, 135, 150; + --color-error-hover: #d64b72; + + --color-warning: #eed49f; + --color-warning-rgb: 238, 212, 159; + --color-warning-hover: #dabe81; + + --color-success: #a6da95; + --color-success-rgb: 166, 218, 149; + --color-success-hover: #7fc07b; + + --color-info: #8aadf4; + --color-info-rgb: 138, 173, 244; + --color-info-hover: #5ea8fa; + + --color-border: #363a4f; + --color-border-dark: #494d64; + --color-border-maxcontrast: #5b6078; + + --color-primary-element: #494d64; + --color-primary-element-rgb: 73, 77, 100; + --color-primary-element-hover: #363a4f; + + --color-primary-element-text: #cad3f5; + + --color-primary-element-light: #363a4f; + --color-primary-element-light-rgb: 54, 58, 79; + --color-primary-element-light-hover: #1e2030; + } +} +/* Use Latte palette for light mode */ +@media (prefers-color-scheme: light) { + body { + --color-main-background: #eff1f5; + --color-main-background-rgb: 239, 241, 245; + --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); + --color-main-background-blur: rgba(var(--color-main-background-rgb), .8); + --color-background-hover: #ccd0da; + --color-background-dark: #e6e9ef; + --color-background-dark-rgb: 230, 233, 239; + --color-background-dark-blur: rgba(var(--color-background-dark-rgb), .8); + --color-background-darker: #dce0e8; + + --color-main-text: #4c4f69; + --color-text-light: #5c5f77; + --color-text-lighter: #6c6f85; + + --color-scrollbar: #bcc0cc; + + --color-error: #d20f39; + --color-error-rgb: 210, 15, 57; + --color-error-hover: #ac1132; + + --color-warning: #df8e1d; + --color-warning-rgb: 223, 142, 29; + --color-warning-hover: #b6761a; + + --color-success: #40a02b; + --color-success-rgb: 64, 160, 43; + --color-success-hover: #33701b; + + --color-info: #1e66f5; + --color-info-rgb: 30, 102, 245; + --color-info-hover: #0f52c8; + + --color-border: #ccd0da; + --color-border-dark: #bcc0cc; + --color-border-maxcontrast: #acb0be; + + --color-primary-element: #bcc0cc; + --color-primary-element-rgb: 188, 192, 204; + --color-primary-element-hover: #a6adc8; + + --color-primary-element-text: #4c4f69; + + --color-primary-element-light: #ccd0da; + --color-primary-element-light-rgb: 204, 208, 218; + --color-primary-element-light-hover: #e6e9ef; + } +} +/* Fixes wrong title color in tasks app */ +.app-navigation-caption__title { + color: var(--color-main-text) !important; /* !important needed for theming apps */ +} +/* Fixes wrong bubble text color in tasks and forms app */ +.counter-bubble__counter { + color: var(--color-primary-element-text) !important; /* !important needed for theming apps */ +} + +/* Fixes wrong title color in forms public view */ +.header-appname { + color: var(--color-main-text); +} + +/* General eye-candy for forms public view */ +#body-public > #content-vue > #app-content-vue { + background-color: var(--color-background-dark-blur); + -webkit-backdrop-filter: var(--filter-background-blur); + backdrop-filter: var(--filter-background-blur); +} +body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + border-radius: 14px; + background-color: var(--color-main-background-blur); + padding-inline-start: 18px; +} +@media (prefers-color-scheme: light) { + body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + background-color: var(--color-main-background); + } +} + +/* Fixes weird "shared by" text placement and color in forms public view */ +.header-shared-by { + color: var(--color-text-lighter); + position: absolute; + font-weight: 500; + font-size: 13px; + right: 15px; +} diff --git a/src/mocha.css b/src/mocha.css new file mode 100644 index 0000000..1f8b85b --- /dev/null +++ b/src/mocha.css @@ -0,0 +1,139 @@ +/* Use Mocha palette for dark mode */ +@media (prefers-color-scheme: dark) { + body { + --color-main-background: #1e1e2e; + --color-main-background-rgb: 30, 30, 46; + --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); + --color-main-background-blur: rgba(var(--color-main-background-rgb), .8); + --color-background-hover: #313244; + --color-background-dark: #181825; + --color-background-dark-rgb: 24, 24, 37; + --color-background-dark-blur: rgba(var(--color-background-dark-rgb), .8); + --color-background-darker: #11111b; + + --color-main-text: #cdd6f4; + --color-text-light: #bac2de; + --color-text-lighter: #a6adc8; + + --color-scrollbar: #45475a; + + --color-error: #f38ba8; + --color-error-rgb: 243, 139, 168; + --color-error-hover: #d64b72; + + --color-warning: #f9e2af; + --color-warning-rgb: 249, 226, 175; + --color-warning-hover: #dabe81; + + --color-success: #a6e3a1; + --color-success-rgb: 166, 227, 161; + --color-success-hover: #7fc07b; + + --color-info: #89b4fa; + --color-info-rgb: 137, 180, 250; + --color-info-hover: #5ea8fa; + + --color-border: #313244; + --color-border-dark: #45475a; + --color-border-maxcontrast: #585b70; + + --color-primary-element: #45475a; + --color-primary-element-rgb: 69, 71, 90; + --color-primary-element-hover: #313244; + + --color-primary-element-text: #cdd6f4; + + --color-primary-element-light: #313244; + --color-primary-element-light-rgb: 49, 50, 68; + --color-primary-element-light-hover: #181825; + } +} +/* Use Latte palette for light mode */ +@media (prefers-color-scheme: light) { + body { + --color-main-background: #eff1f5; + --color-main-background-rgb: 239, 241, 245; + --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); + --color-main-background-blur: rgba(var(--color-main-background-rgb), .8); + --color-background-hover: #ccd0da; + --color-background-dark: #e6e9ef; + --color-background-dark-rgb: 230, 233, 239; + --color-background-dark-blur: rgba(var(--color-background-dark-rgb), .8); + --color-background-darker: #dce0e8; + + --color-main-text: #4c4f69; + --color-text-light: #5c5f77; + --color-text-lighter: #6c6f85; + + --color-scrollbar: #bcc0cc; + + --color-error: #d20f39; + --color-error-rgb: 210, 15, 57; + --color-error-hover: #ac1132; + + --color-warning: #df8e1d; + --color-warning-rgb: 223, 142, 29; + --color-warning-hover: #b6761a; + + --color-success: #40a02b; + --color-success-rgb: 64, 160, 43; + --color-success-hover: #33701b; + + --color-info: #1e66f5; + --color-info-rgb: 30, 102, 245; + --color-info-hover: #0f52c8; + + --color-border: #ccd0da; + --color-border-dark: #bcc0cc; + --color-border-maxcontrast: #acb0be; + + --color-primary-element: #bcc0cc; + --color-primary-element-rgb: 188, 192, 204; + --color-primary-element-hover: #a6adc8; + + --color-primary-element-text: #4c4f69; + + --color-primary-element-light: #ccd0da; + --color-primary-element-light-rgb: 204, 208, 218; + --color-primary-element-light-hover: #e6e9ef; + } +} +/* Fixes wrong title color in tasks app */ +.app-navigation-caption__title { + color: var(--color-main-text) !important; /* !important needed for theming apps */ +} +/* Fixes wrong bubble text color in tasks and forms app */ +.counter-bubble__counter { + color: var(--color-primary-element-text) !important; /* !important needed for theming apps */ +} + +/* Fixes wrong title color in forms public view */ +.header-appname { + color: var(--color-main-text); +} + +/* General eye-candy for forms public view */ +#body-public > #content-vue > #app-content-vue { + background-color: var(--color-background-dark-blur); + -webkit-backdrop-filter: var(--filter-background-blur); + backdrop-filter: var(--filter-background-blur); +} +body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + border-radius: 14px; + background-color: var(--color-main-background-blur); + padding-inline-start: 18px; +} +@media (prefers-color-scheme: light) { + body#body-public div#content-vue.content.app-forms main#app-content-vue.app-content.no-snapper.app-content--public form ul li.question { + background-color: var(--color-main-background); + } +} + +/* Fixes weird "shared by" text placement and color in forms public view */ +.header-shared-by { + color: var(--color-text-lighter); + position: absolute; + font-weight: 500; + font-size: 13px; + right: 15px; +} \ No newline at end of file