Commit 3da7f009 authored by Marcel van Remmerden's avatar Marcel van Remmerden

Solarized dark Web IDE

 Adds the solarized dark theme for the Web IDE interface
parent 915eb921
......@@ -25,9 +25,10 @@ function importMermaidModule() {
return import(/* webpackChunkName: 'mermaid' */ 'mermaid')
.then(mermaid => {
let theme = 'neutral';
const ideDarkThemes = ['dark', 'solarized-dark'];
if (
window.gon?.user_color_scheme === 'dark' &&
ideDarkThemes.includes(window.gon?.user_color_scheme) &&
// if on the Web IDE page
document.querySelector('.ide')
) {
......
......@@ -5,6 +5,7 @@
@import './ide_theme_overrides';
@import './ide_themes/dark';
@import './ide_themes/solarized-dark';
$search-list-icon-width: 18px;
$ide-activity-bar-width: 60px;
......@@ -89,7 +90,7 @@ $ide-commit-header-height: 48px;
&.active {
background-color: var(--ide-highlight-background, $white);
border-bottom-color: var(--ide-border-color, $white);
border-bottom-color: transparent;
}
&:not(.disabled) {
......
// -------
// Please see `app/assets/stylesheets/page_bundles/ide_themes/README.md` for a guide on contributing new themes
// -------
.ide.theme-solarized-dark {
--ide-border-color: #002c38;
--ide-border-color-alt: var(--ide-background);
--ide-highlight-accent: #fff;
--ide-text-color: #ddd;
--ide-text-color-secondary: #ddd;
--ide-background: #004152;
--ide-background-hover: #003b4d;
--ide-highlight-background: #003240;
--ide-link-color: #73b9ff;
--ide-footer-background: var(--ide-highlight-background);
--ide-input-border: #d8d8d8;
--ide-input-background: transparent;
--ide-input-color: #fff;
--ide-btn-default-background: transparent;
--ide-btn-default-border: var(--ide-input-border);
--ide-btn-default-hover-border: #d8d8d8;
--ide-btn-primary-background: #1068bf;
--ide-btn-primary-border: #428fdc;
--ide-btn-primary-hover-border: #63a6e9;
--ide-btn-success-background: #217645;
--ide-btn-success-border: #108548;
--ide-btn-success-hover-border: #2da160;
--ide-btn-disabled-border: rgba(223, 223, 223, 0.24);
--ide-btn-disabled-color: rgba(145, 145, 145, 0.48);
--ide-btn-hover-border-width: 2px;
--ide-dropdown-background: #004c61;
--ide-dropdown-hover-background: #00617a;
--ide-dropdown-btn-hover-border: #e9ecef;
--ide-dropdown-btn-hover-background: var(--ide-background-hover);
--ide-file-row-btn-hover-background: #005a73;
--ide-diff-insert: rgba(155, 185, 85, 0.2);
--ide-diff-remove: rgba(255, 0, 0, 0.2);
--ide-animation-gradient-1: var(--ide-file-row-btn-hover-background);
--ide-animation-gradient-2: var(--ide-dropdown-hover-background);
}
---
title: Add solarized dark for Web IDE
merge_request: 33148
author:
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment