Skip to content

Commit

Permalink
Love never ends
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPintilei committed Dec 7, 2016
0 parents commit bd5c7e3
Show file tree
Hide file tree
Showing 21 changed files with 689 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See the [Atom contributing guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md)
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) Daniel Pintilei (danielpintilei.cf).

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Loved Syntax theme
Dark syntax theme inspired by [this beautiful piece](http://www.handlettering.co/1-john4-19).
18 changes: 18 additions & 0 deletions index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

@import (reference) "styles/syntax-variables";

@import 'editor';
@import 'language';

@import 'languages/c';
@import 'languages/cpp';
@import 'languages/cs';
@import 'languages/css';
@import 'languages/gfm';
@import 'languages/go';
@import 'languages/ini';
@import 'languages/java';
@import 'languages/javascript';
@import 'languages/json';
@import 'languages/ruby';
@import 'languages/python';
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "loved-syntax",
"theme": "syntax",
"version": "0.0.0",
"description": "Love never ends",
"keywords": [
"dark",
"syntax"
],
"repository": "https://github.com/DanielPintilei/atom-loved-syntax",
"license": "MIT",
"engines": {
"atom": ">0.50.0"
}
}
44 changes: 44 additions & 0 deletions styles/colors.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

// Palette -----------------------------------
@base03: hsl(206, 11%, 44%);
@base04: hsl(223, 11%, 69%);
@base05: hsl(219, 13%, 78%);
@base08: hsl(342, 74%, 69%);
@base09: hsl(27, 65%, 76%);
@base0A: hsl(13, 88%, 73%);
@base0B: hsl(96, 10%, 60%);
@base0C: hsl(180, 20%, 58%);
@base0D: hsl(210, 35%, 58%);
@base0E: hsl(300, 20%, 62%);
@base0F: hsl(15, 26%, 53%);

// Config -----------------------------------
@syntax-hue: 218;
@syntax-saturation: 35%;
@syntax-brightness: 14%;


// Monochrome -----------------------------------
@mono-1: @base05; // default text
@mono-2: @base04;
@mono-3: @base03;

// Colors -----------------------------------
@hue-1: @base0C;
@hue-2: @base0D;
@hue-3: @base0E;
@hue-4: @base0B;

@hue-5: @base08;
@hue-5-2: @base0F;

@hue-6: @base09;
@hue-6-2: @base0A;


// Base colors -----------------------------------
@syntax-fg: @mono-1;
@syntax-bg: hsl(@syntax-hue, @syntax-saturation, @syntax-brightness);
@syntax-gutter: darken(@syntax-fg, 26%);
@syntax-guide: fade(@syntax-fg, 15%);
@syntax-accent: hsl(342, 100%, 68% );
97 changes: 97 additions & 0 deletions styles/editor.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@

// Editor styles (background, gutter, guides)

atom-text-editor, // <- remove when Shadow DOM can't be disabled
:host {
background-color: @syntax-background-color;
color: @syntax-text-color;

.line.cursor-line {
background-color: @syntax-cursor-line;
}

.invisible {
color: @syntax-text-color;
}

.cursor {
border-left: 2px solid @syntax-cursor-color;
}

.selection .region {
background-color: @syntax-selection-color;
}

.bracket-matcher .region {
border-bottom: 1px solid @syntax-cursor-color;
box-sizing: border-box;
}

.invisible-character {
color: @syntax-invisible-character-color;
}

.indent-guide {
color: @syntax-indent-guide-color;
}

.wrap-guide {
background-color: @syntax-wrap-guide-color;
}

// find + replace
.find-result .region.region.region,
.current-result .region.region.region {
border-radius: 2px;
background-color: @syntax-result-marker-color;
transition: border-color .4s;
}
.find-result .region.region.region {
border: 2px solid transparent;
}
.current-result .region.region.region {
border: 2px solid @syntax-result-marker-color-selected;
transition-duration: .1s;
}

.gutter {

.line-number {
color: @syntax-gutter-text-color;
-webkit-font-smoothing: antialiased;

&.cursor-line {
color: @syntax-gutter-text-color-selected;
background-color: @syntax-gutter-background-color-selected;
}
&.cursor-line-no-selection {
background-color: transparent;
}

.icon-right {
color: @syntax-text-color;
}
}

&:not(.git-diff-icon) .line-number.git-line-removed {
&.git-line-removed::before {
bottom: -3px;
}
&::after {
content: "";
position: absolute;
left: 0px;
bottom: 0px;
width: 25px;
border-bottom: 1px dotted fade(@syntax-color-removed, 50%);
pointer-events: none;
}
}
}

.gutter .line-number.folded,
.gutter .line-number:after,
.fold-marker:after {
color: @syntax-gutter-text-color-selected;
}
}
Loading

0 comments on commit bd5c7e3

Please sign in to comment.