Wednesday, May 18, 2016

splunk dark theme dashboards


Splunk dashboards looks more beautiful with dark theme. The dark.css theme available in the sample app from splunk base keeps the navigation bar fully black. I find it aesthetically appealing to have the navigation bar different in color to the whole background. Below is one such CSS code that i often use.

Add this code to the static folder within your app directory and call them within the XML panel.

../app_name/appserver/static/dark_2.css



  
body,.dashboard-body,.footer,.header,.dashboard-cell {
    background: #333 !important;
}
body, .main-section-body, .footer {
    background-image: url('images/px_by_Gre3g_@2X.png') !important;
}
.dashboard-cell {
    background: none;
}
.dashboard-panel {
    background: #666 !important;
}
.dashboard-row label, .dashboard-row a {
    color: #fff;
}
a:hover {
    color: #fff;
}
.dashboard-row .dashboard-panel .refresh-time-indicator {
    color: #FFF;
}
.dashboard-header h2, p.description, .nav-footer>li>a {
    color: #ddd;
    text-shadow: none;
}
.dashboard-row .dashboard-panel {
    border: none;
}
.dashboard-row .dashboard-panel .panel-head h3 {
    color: #FFF;
    text-shadow: 0 2px 0 #681111;
}
.table-chrome > thead > tr > th a {
    background-image: none !important;
}
.table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #414141 !important;
}
.table {
    background-color: none;
}
.table .table, .table-striped>tbody>tr>td {
    color: white;
}
.table .table, .table-striped>tbody>tr:nth-child(even)>td {
    background-color: #696969 !important;
}
.table-chrome > thead > tr > th, .table-chrome > thead > tr > th a {
    background-image: linear-gradient(to bottom, #888, #666);
    color: white !important;
    text-shadow: none;
}
.table-chrome .sorts a {
    text-decoration: none;
    color: #ddd;
}
.table-chrome .sorts:hover {
    background: none;
    background-color: #333;
}
svg>rect {
    fill: #333 !important;
}
svg text {
    fill: #fff !important;
}
.single-value .single-result {
    color: #fff;
}
.splunk-paginator a.selected {
    background: #000;
}
 

  
body,.dashboard-body,.footer,.header,.dashboard-cell { 
    background: #333 !important; 
}
body, .main-section-body, .footer {
    background-image: url('images/px_by_Gre3g_@2X.png') !important;
}
.dashboard-cell {
    background: none;
}
.dashboard-panel {
    background: #666 !important;
}
.dashboard-row label, .dashboard-row a {
    color: #fff;
}
a:hover {
    color: #fff;
}
.dashboard-row .dashboard-panel .refresh-time-indicator {
    color: #FFF;
}
.dashboard-header h2, p.description, .nav-footer>li>a { 
    color: #ddd; 
    text-shadow: none; 
}
.dashboard-row .dashboard-panel {
    border: none;
}
.dashboard-row .dashboard-panel .panel-head h3 {
    color: #FFF;
    text-shadow: 0 2px 0 #681111;
}
.table-chrome > thead > tr > th a {
    background-image: none !important;
}
.table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { 
    background-color: #414141 !important; 
}
.table {
    background-color: none;
}
.table .table, .table-striped>tbody>tr>td {
    color: white;
}
.table .table, .table-striped>tbody>tr:nth-child(even)>td {
    background-color: #696969 !important;
}
.table-chrome > thead > tr > th, .table-chrome > thead > tr > th a {
    background-image: linear-gradient(to bottom, #888, #666);
    color: white !important;
    text-shadow: none;
}
.table-chrome .sorts a {
    text-decoration: none;
    color: #ddd;
}
.table-chrome .sorts:hover {
    background: none;
    background-color: #333;
}
svg>rect {
    fill: #333 !important;
}
svg text { 
    fill: #fff !important; 
}
.single-value .single-result {
    color: #fff;
}
.splunk-paginator a.selected { 
    background: #000; 
}