{"id":778,"date":"2019-09-12T08:11:54","date_gmt":"2019-09-12T08:11:54","guid":{"rendered":"https:\/\/blog.ngocha.biz\/?p=778"},"modified":"2019-09-12T08:11:54","modified_gmt":"2019-09-12T08:11:54","slug":"setup-custom-materialized-ui-theme-jenkins","status":"publish","type":"post","link":"https:\/\/blog.ngocha.biz\/?p=778","title":{"rendered":"How to Setup Custom UI Theme For Jenkins &#8211; Custom Materialized CSS"},"content":{"rendered":"<p>If you are bored with the old Jenkins UI, its font, and icons, you can give your Jenkins a makeover using custom CSS styling with a custom logo.<\/p>\n<p>Custom CSS Main Features:<\/p>\n<ol>\n<li>Flat UI Fonts<\/li>\n<li>Better Syntax highlighting for Shell blocks<\/li>\n<li>Better highlighted <code>console output<\/code><\/li>\n<\/ol>\n<h2 id=\"modifying-jenkins-ui\">Modifying Jenkins UI<\/h2>\n<p>Follow this tutorial for changing the look and feel of default Jenkins UI.<\/p>\n<p><strong>Step 1:<\/strong> Go to <code>Manage Jenkins<\/code> &#8211;&gt; <code>Manage Plugins<\/code>. Click <code>available<\/code> tab and search for <code>simple theme<\/code> plugin.<\/p>\n<p><strong>Step 2:<\/strong> Install the theme and restart Jenkins.<\/p>\n<p><strong>Step 3: <\/strong>Go to <code>Manage Jenkins<\/code> &#8211;&gt; <code>Configure<\/code> and search for <code>Theme<\/code> configuration and in the CSS field enter the following URL and save it.<\/p>\n<pre><code>https:\/\/cdn.rawgit.com\/afonsof\/jenkins-material-theme\/gh-pages\/dist\/material-cyan.css<\/code><\/pre>\n<figure class=\"kg-card kg-image-card kg-card-hascaption\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/custom-jenkins-css-1.jpg\" class=\"kg-image\" alt=\"\" loading=\"lazy\" width=\"2000\" height=\"315\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/custom-jenkins-css-1.jpg 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/custom-jenkins-css-1.jpg 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/custom-jenkins-css-1.jpg 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/custom-jenkins-css-1.jpg 2106w\" sizes=\"auto, (min-width: 720px) 720px\"><figcaption><span style=\"white-space: pre-wrap;\">Click to view in HD<\/span><\/figcaption><\/figure>\n<p>Once it is saved, the UI will be changed to a materialized flat UI based on cyan color.<\/p>\n<figure class=\"kg-card kg-image-card kg-card-hascaption\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/materialized-jenkins-ui-1.jpg\" class=\"kg-image\" alt=\"\" loading=\"lazy\" width=\"2000\" height=\"787\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/materialized-jenkins-ui-1.jpg 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/materialized-jenkins-ui-1.jpg 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/materialized-jenkins-ui-1.jpg 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w2400\/2025\/03\/materialized-jenkins-ui-1.jpg 2400w\" sizes=\"auto, (min-width: 720px) 720px\"><figcaption><span style=\"white-space: pre-wrap;\">Click to view in HD<\/span><\/figcaption><\/figure>\n<h3 id=\"uploading-custom-css-to-jenkins-server\">Uploading Custom CSS TO Jenkins Server<\/h3>\n<p>In the above example, we are referring to a CSS file hosted in third party website. You can also host this CSS on your Jenkins server. Follow the steps given below.<\/p>\n<div class=\"kg-card kg-callout-card kg-callout-card-grey\">\n<div class=\"kg-callout-text\"><b><strong style=\"white-space: pre-wrap;\">You Might Like<\/strong><\/b>: <a href=\"https:\/\/devopscube.com\/jenkins-2-tutorials-getting-started-guide\/\" rel=\"noreferrer noopener\">Jenkins 2 Tutorial For Beginners \u2013 Getting Started Guide<\/a><\/div>\n<\/div>\n<p><strong>Step 1:<\/strong> Login to your jenkins server, and cd into your Jenkins home directory.<\/p>\n<p><strong>Step 2<\/strong>: Create a folder named layout inside the userContent directory.<\/p>\n<pre><code>cd userContent\nmkdir layout<\/code><\/pre>\n<p><strong>Step 3<\/strong>: cd into the layout directory and create a style.css file.<\/p>\n<pre><code>cd layout\nvi style.css<\/code><\/pre>\n<p><strong>Step 4:<\/strong> Now, visit the following URL in the browser and copy the whole CSS content and paste it in the style.css file and save it.<\/p>\n<pre><code>https:\/\/cdn.rawgit.com\/afonsof\/jenkins-material-theme\/gh-pages\/dist\/material-cyan.css<\/code><\/pre>\n<p>The following are the colors supported. You can replace the color name at the end in the above URL to have the desired color<\/p>\n<figure class=\"kg-card kg-image-card kg-card-hascaption\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/jenkins-ui-colors-1.png\" class=\"kg-image\" alt=\"jenkins custom UI Colors\" loading=\"lazy\" width=\"1518\" height=\"200\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/jenkins-ui-colors-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/jenkins-ui-colors-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/jenkins-ui-colors-1.png 1518w\" sizes=\"auto, (min-width: 720px) 720px\"><figcaption><span style=\"white-space: pre-wrap;\">Click to view in HD<\/span><\/figcaption><\/figure>\n<p><strong>Step 4:<\/strong> Now, under <code>Manage Jenkins<\/code> &#8211;&gt; <code>Configure<\/code>, under the theme section, replace the full URL with the following.<\/p>\n<pre><code>\/userContent\/layout\/style.css<\/code><\/pre>\n<h3 id=\"more-customization\">More Customization<\/h3>\n<p>You can customize the looks more by changing the logo. If you want more customizations and colors, you can follow the office Jenkins materialize CSS site <a href=\"http:\/\/afonsof.com\/jenkins-material-theme\/?ref=devopscube.com\" rel=\"noopener noreferrer\">from here<\/a>.<\/p>\n<p>You can check out the video tutorial for this article.<\/p>\n<figure class=\"kg-card kg-embed-card\"><iframe loading=\"lazy\" width=\"160\" height=\"90\" src=\"https:\/\/www.youtube.com\/embed\/DN7oLL73kY8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen=\"\"><\/iframe><\/figure>\n<hr>\n<p><strong>Ngu\u1ed3n:<\/strong> <a href=\"https:\/\/devopscube.com\/setup-custom-materialized-ui-theme-jenkins\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Setup Custom UI Theme For Jenkins &#8211; Custom Materialized CSS \u2014 DevOpsCube<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/devopscube.com\/setup-custom-materialized-ui-theme-jenkins\/<\/p>\n","protected":false},"author":1,"featured_media":779,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-778","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=778"}],"version-history":[{"count":0,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/778\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/media\/779"}],"wp:attachment":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}