{"id":459,"date":"2024-05-16T23:09:53","date_gmt":"2024-05-16T21:09:53","guid":{"rendered":"https:\/\/felixwebdesign.de\/?page_id=459"},"modified":"2024-12-23T23:07:31","modified_gmt":"2024-12-23T22:07:31","slug":"dark-mode","status":"publish","type":"page","link":"https:\/\/felixwebdesign.de\/de\/humhub\/docs\/dark-mode\/","title":{"rendered":"Dark Mode"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"supported-themes\">Supported themes<\/h1>\n\n\n\n<p>If you are using one of the themes listed below, the Dark Mode Module by default selects the respective dark theme:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HumHub =&gt; HumHub (dark)<\/li>\n\n\n\n<li>Enterprise =&gt; Enterprise (dark)<\/li>\n\n\n\n<li>Clean => Clean (dark)<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"custom-themes\">Custom themes<\/h1>\n\n\n\n<p>For custom themes it is the best way to also create a dark version of your theme:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-1%3A-theme-builder\">Method 1: Theme Builder<\/h2>\n\n\n\n<p>If you are using the Theme Builder module, you can follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new theme in the Theme Builder based on your light theme. If your theme is called &#8222;MyTheme&#8220;, then call it &#8222;DarkMyTheme&#8220;. (<strong>Note<\/strong>: The name has to contain \u201cdark\u201d to be recognized.)<\/li>\n\n\n\n<li>Add the content of this file in the field &#8222;Custom LESS&#8220;: <a href=\"https:\/\/github.com\/felixhahnweilheim\/humhub-dark-mode\/blob\/main\/resources\/DarkHumHub\/less\/variables.less\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/felixhahnweilheim\/humhub-dark-mode\/blob\/main\/resources\/DarkHumHub\/less\/variables.less<\/a><\/li>\n\n\n\n<li>Also add the content of this second file: <a href=\"https:\/\/github.com\/felixhahnweilheim\/humhub-dark-mode\/blob\/main\/resources\/DarkHumHub\/less\/theme.less\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/felixhahnweilheim\/humhub-dark-mode\/blob\/main\/resources\/DarkHumHub\/less\/theme.less<\/a><\/li>\n\n\n\n<li>Save the theme<\/li>\n\n\n\n<li>Keep your light theme actived, not the dark theme.<\/li>\n\n\n\n<li>Then go to the configuration page of the Dark Mode module and select your new dark theme. Save.<\/li>\n\n\n\n<li>Evtl. you have to empty the cache to make it work.<\/li>\n<\/ol>\n\n\n\n<p>To keep your theme up to date with new developments in the dark mode module you should redo this procedure from time to time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-2%3A-manually-(for-developers)\">Method 2: Manually (for developers)<\/h2>\n\n\n\n<p>You can also create your own themes as described in the docs: <a href=\"https:\/\/docs.humhub.org\/docs\/theme\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.humhub.org\/docs\/theme\/overview<\/a><\/p>\n\n\n\n<p>This way you can directly import the LESS files from the dark mode module. And also use <a href=\"https:\/\/github.com\/rsanchez\/css-color-extractor\" target=\"_blank\" rel=\"noreferrer noopener\">css-color-extractor<\/a> to reduce the file size of the dark stylesheet which improves the performance.<\/p>\n\n\n\n<p><strong>Note<\/strong>: The theme name has to contain \u201cdark\u201d to be recognized.<\/p>\n\n\n\n<p>You can take the Clean Theme as an example: <a href=\"https:\/\/github.com\/cuzy-app\/humhub-modules-clean-theme\/tree\/master\/themes\/clean-base\/less\/dark\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/cuzy-app\/humhub-modules-clean-theme\/tree\/master\/themes\/clean-base\/less\/dark<\/a><\/p>\n\n\n\n<p>The CSS is then compiled with the following commands (defined in <a href=\"https:\/\/github.com\/cuzy-app\/humhub-modules-clean-theme\/blob\/master\/build-less-to-css.sh\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/cuzy-app\/humhub-modules-clean-theme\/blob\/master\/build-less-to-css.sh<\/a>)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lessc less\/dark\/build.less css\/dark.css\ncss-color-extractor css\/dark.css css\/dark.css --format=css\ncp css\/dark.css css\/temporary.less\nlessc less\/dark\/build2.less css\/dark.css --clean-css=\"--s1 --advanced\"\nrm css\/temporary.less\n<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"report-issues\">Report issues <a href=\"https:\/\/community.humhub.com\/u\/felixhahn\/wiki\/page\/edit?id=240\"><\/a><\/h1>\n\n\n\n<p>If you find bugs in the dark mode module, feel free to report them on Github: <a href=\"https:\/\/github.com\/felixhahnweilheim\/humhub-dark-mode\/issues\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/felixhahnweilheim\/humhub-dark-mode\/issues\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Supported themes If you are using one of the themes listed below, the Dark Mode Module by default selects the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":326,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-459","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dark Mode - Felix Webdesign<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/felixwebdesign.de\/de\/humhub\/docs\/dark-mode\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dark Mode - Felix Webdesign\" \/>\n<meta property=\"og:description\" content=\"Supported themes If you are using one of the themes listed below, the Dark Mode Module by default selects the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/felixwebdesign.de\/de\/humhub\/docs\/dark-mode\/\" \/>\n<meta property=\"og:site_name\" content=\"Felix Webdesign\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-23T22:07:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/humhub\\\/docs\\\/dark-mode\\\/\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/humhub\\\/docs\\\/dark-mode\\\/\",\"name\":\"Dark Mode - Felix Webdesign\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#website\"},\"datePublished\":\"2024-05-16T21:09:53+00:00\",\"dateModified\":\"2024-12-23T22:07:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/humhub\\\/docs\\\/dark-mode\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/felixwebdesign.de\\\/humhub\\\/docs\\\/dark-mode\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/humhub\\\/docs\\\/dark-mode\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/felixwebdesign.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HumHub\",\"item\":\"https:\\\/\\\/felixwebdesign.de\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Dokumentation\",\"item\":\"https:\\\/\\\/felixwebdesign.de\\\/humhub\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Dark Mode\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/\",\"name\":\"Felix Webdesign\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#organization\",\"name\":\"Felix Webdesign\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/felixwebdesign.de\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/logo-transparenz.png\",\"contentUrl\":\"https:\\\/\\\/felixwebdesign.de\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/logo-transparenz.png\",\"width\":500,\"height\":500,\"caption\":\"Felix Webdesign\"},\"image\":{\"@id\":\"https:\\\/\\\/felixwebdesign.de\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dark Mode - Felix Webdesign","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/felixwebdesign.de\/de\/humhub\/docs\/dark-mode\/","og_locale":"de_DE","og_type":"article","og_title":"Dark Mode - Felix Webdesign","og_description":"Supported themes If you are using one of the themes listed below, the Dark Mode Module by default selects the [&hellip;]","og_url":"https:\/\/felixwebdesign.de\/de\/humhub\/docs\/dark-mode\/","og_site_name":"Felix Webdesign","article_modified_time":"2024-12-23T22:07:31+00:00","og_image":[{"width":500,"height":500,"url":"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/felixwebdesign.de\/humhub\/docs\/dark-mode\/","url":"https:\/\/felixwebdesign.de\/humhub\/docs\/dark-mode\/","name":"Dark Mode - Felix Webdesign","isPartOf":{"@id":"https:\/\/felixwebdesign.de\/en\/#website"},"datePublished":"2024-05-16T21:09:53+00:00","dateModified":"2024-12-23T22:07:31+00:00","breadcrumb":{"@id":"https:\/\/felixwebdesign.de\/humhub\/docs\/dark-mode\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/felixwebdesign.de\/humhub\/docs\/dark-mode\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/felixwebdesign.de\/humhub\/docs\/dark-mode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/felixwebdesign.de\/"},{"@type":"ListItem","position":2,"name":"HumHub","item":"https:\/\/felixwebdesign.de\/"},{"@type":"ListItem","position":3,"name":"Dokumentation","item":"https:\/\/felixwebdesign.de\/humhub\/docs\/"},{"@type":"ListItem","position":4,"name":"Dark Mode"}]},{"@type":"WebSite","@id":"https:\/\/felixwebdesign.de\/en\/#website","url":"https:\/\/felixwebdesign.de\/en\/","name":"Felix Webdesign","description":"","publisher":{"@id":"https:\/\/felixwebdesign.de\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/felixwebdesign.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/felixwebdesign.de\/en\/#organization","name":"Felix Webdesign","url":"https:\/\/felixwebdesign.de\/en\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/felixwebdesign.de\/en\/#\/schema\/logo\/image\/","url":"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png","contentUrl":"https:\/\/felixwebdesign.de\/wp-content\/uploads\/2024\/02\/logo-transparenz.png","width":500,"height":500,"caption":"Felix Webdesign"},"image":{"@id":"https:\/\/felixwebdesign.de\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/pages\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/comments?post=459"}],"version-history":[{"count":2,"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/pages\/459\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/pages\/459\/revisions\/691"}],"up":[{"embeddable":true,"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/pages\/326"}],"wp:attachment":[{"href":"https:\/\/felixwebdesign.de\/de\/wp-json\/wp\/v2\/media?parent=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}