Skip to content

Commit

Permalink
[material theme] Update to the official version, add darker, palenigh…
Browse files Browse the repository at this point in the history
…t, ocean variants
  • Loading branch information
equinusocio authored and marijnh committed Aug 23, 2019
1 parent 650e975 commit 448dff2
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 38 deletions.
8 changes: 7 additions & 1 deletion demo/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<link rel="stylesheet" href="../theme/liquibyte.css">
<link rel="stylesheet" href="../theme/lucario.css">
<link rel="stylesheet" href="../theme/material.css">
<link rel="stylesheet" href="../theme/material-darker.css">
<link rel="stylesheet" href="../theme/material-palenight.css">
<link rel="stylesheet" href="../theme/material-ocean.css">
<link rel="stylesheet" href="../theme/mbo.css">
<link rel="stylesheet" href="../theme/mdn-like.css">
<link rel="stylesheet" href="../theme/midnight.css">
Expand Down Expand Up @@ -124,6 +127,9 @@ <h2>Theme Demo</h2>
<option>liquibyte</option>
<option>lucario</option>
<option>material</option>
<option>material-darker</option>
<option>material-palenight</option>
<option>material-ocean</option>
<option>mbo</option>
<option>mdn-like</option>
<option>midnight</option>
Expand Down Expand Up @@ -181,4 +187,4 @@ <h2>Theme Demo</h2>
if (theme) { input.value = theme; selectTheme(); }
});
</script>
</article>
</article>
135 changes: 135 additions & 0 deletions theme/material-darker.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
Name: material
Author: Mattia Astorino (http://github.com/equinusocio)
Website: https://material-theme.site/
*/

.cm-s-material-darker.CodeMirror {
background-color: #212121;
color: #EEFFFF;
}

.cm-s-material-darker .CodeMirror-gutters {
background: #212121;
color: #545454;
border: none;
}

.cm-s-material-darker .CodeMirror-guttermarker,
.cm-s-material-darker .CodeMirror-guttermarker-subtle,
.cm-s-material-darker .CodeMirror-linenumber {
color: #545454;
}

.cm-s-material-darker .CodeMirror-cursor {
border-left: 1px solid #FFCC00;
}

.cm-s-material-darker div.CodeMirror-selected {
background: rgba(97, 97, 97, 0.2);
}

.cm-s-material-darker.CodeMirror-focused div.CodeMirror-selected {
background: rgba(97, 97, 97, 0.2);
}

.cm-s-material-darker .CodeMirror-line::selection,
.cm-s-material-darker .CodeMirror-line>span::selection,
.cm-s-material-darker .CodeMirror-line>span>span::selection {
background: rgba(128, 203, 196, 0.2);
}

.cm-s-material-darker .CodeMirror-line::-moz-selection,
.cm-s-material-darker .CodeMirror-line>span::-moz-selection,
.cm-s-material-darker .CodeMirror-line>span>span::-moz-selection {
background: rgba(128, 203, 196, 0.2);
}

.cm-s-material-darker .CodeMirror-activeline-background {
background: rgba(0, 0, 0, 0.5);
}

.cm-s-material-darker .cm-keyword {
color: #C792EA;
}

.cm-s-material-darker .cm-operator {
color: #89DDFF;
}

.cm-s-material-darker .cm-variable-2 {
color: #EEFFFF;
}

.cm-s-material-darker .cm-variable-3,
.cm-s-material-darker .cm-type {
color: #f07178;
}

.cm-s-material-darker .cm-builtin {
color: #FFCB6B;
}

.cm-s-material-darker .cm-atom {
color: #F78C6C;
}

.cm-s-material-darker .cm-number {
color: #FF5370;
}

.cm-s-material-darker .cm-def {
color: #82AAFF;
}

.cm-s-material-darker .cm-string {
color: #C3E88D;
}

.cm-s-material-darker .cm-string-2 {
color: #f07178;
}

.cm-s-material-darker .cm-comment {
color: #545454;
}

.cm-s-material-darker .cm-variable {
color: #f07178;
}

.cm-s-material-darker .cm-tag {
color: #FF5370;
}

.cm-s-material-darker .cm-meta {
color: #FFCB6B;
}

.cm-s-material-darker .cm-attribute {
color: #C792EA;
}

.cm-s-material-darker .cm-property {
color: #C792EA;
}

.cm-s-material-darker .cm-qualifier {
color: #DECB6B;
}

.cm-s-material-darker .cm-variable-3,
.cm-s-material-darker .cm-type {
color: #DECB6B;
}


.cm-s-material-darker .cm-error {
color: rgba(255, 255, 255, 1.0);
background-color: #FF5370;
}

.cm-s-material-darker .CodeMirror-matchingbracket {
text-decoration: underline;
color: white !important;
}
135 changes: 135 additions & 0 deletions theme/material-ocean.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
Name: material
Author: Mattia Astorino (http://github.com/equinusocio)
Website: https://material-theme.site/
*/

.cm-s-material-ocean.CodeMirror {
background-color: #0F111A;
color: #8F93A2;
}

.cm-s-material-ocean .CodeMirror-gutters {
background: #0F111A;
color: #464B5D;
border: none;
}

.cm-s-material-ocean .CodeMirror-guttermarker,
.cm-s-material-ocean .CodeMirror-guttermarker-subtle,
.cm-s-material-ocean .CodeMirror-linenumber {
color: #464B5D;
}

.cm-s-material-ocean .CodeMirror-cursor {
border-left: 1px solid #FFCC00;
}

.cm-s-material-ocean div.CodeMirror-selected {
background: rgba(113, 124, 180, 0.2);
}

.cm-s-material-ocean.CodeMirror-focused div.CodeMirror-selected {
background: rgba(113, 124, 180, 0.2);
}

.cm-s-material-ocean .CodeMirror-line::selection,
.cm-s-material-ocean .CodeMirror-line>span::selection,
.cm-s-material-ocean .CodeMirror-line>span>span::selection {
background: rgba(128, 203, 196, 0.2);
}

.cm-s-material-ocean .CodeMirror-line::-moz-selection,
.cm-s-material-ocean .CodeMirror-line>span::-moz-selection,
.cm-s-material-ocean .CodeMirror-line>span>span::-moz-selection {
background: rgba(128, 203, 196, 0.2);
}

.cm-s-material-ocean .CodeMirror-activeline-background {
background: rgba(0, 0, 0, 0.5);
}

.cm-s-material-ocean .cm-keyword {
color: #C792EA;
}

.cm-s-material-ocean .cm-operator {
color: #89DDFF;
}

.cm-s-material-ocean .cm-variable-2 {
color: #EEFFFF;
}

.cm-s-material-ocean .cm-variable-3,
.cm-s-material-ocean .cm-type {
color: #f07178;
}

.cm-s-material-ocean .cm-builtin {
color: #FFCB6B;
}

.cm-s-material-ocean .cm-atom {
color: #F78C6C;
}

.cm-s-material-ocean .cm-number {
color: #FF5370;
}

.cm-s-material-ocean .cm-def {
color: #82AAFF;
}

.cm-s-material-ocean .cm-string {
color: #C3E88D;
}

.cm-s-material-ocean .cm-string-2 {
color: #f07178;
}

.cm-s-material-ocean .cm-comment {
color: #464B5D;
}

.cm-s-material-ocean .cm-variable {
color: #f07178;
}

.cm-s-material-ocean .cm-tag {
color: #FF5370;
}

.cm-s-material-ocean .cm-meta {
color: #FFCB6B;
}

.cm-s-material-ocean .cm-attribute {
color: #C792EA;
}

.cm-s-material-ocean .cm-property {
color: #C792EA;
}

.cm-s-material-ocean .cm-qualifier {
color: #DECB6B;
}

.cm-s-material-ocean .cm-variable-3,
.cm-s-material-ocean .cm-type {
color: #DECB6B;
}


.cm-s-material-ocean .cm-error {
color: rgba(255, 255, 255, 1.0);
background-color: #FF5370;
}

.cm-s-material-ocean .CodeMirror-matchingbracket {
text-decoration: underline;
color: white !important;
}
Loading

0 comments on commit 448dff2

Please sign in to comment.