Skip to content

Commit

Permalink
initialize project
Browse files Browse the repository at this point in the history
  • Loading branch information
varemenos committed Nov 10, 2015
0 parents commit 4715f8b
Show file tree
Hide file tree
Showing 29 changed files with 579 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Node installed packages #
###########################
node_modules/*
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 simurai

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.

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# duotone dusk syntax

## Description

A double-hue syntax theme for Atom.
This is a dark blue scheme based on [duotone dark syntax theme](https://github.com/simurai/duotone-dark-syntax) by [simurai](https://github.com/simurai).

## Installation

```shell
apm install duotone-dusk-syntax
```

## Screenshot

![duotone dusk syntax theme screenshot](https://cdn.rawgit.com/varemenos/duotone-dusk-syntax/master/screenshot.png)

## License

the MIT License (MIT)
28 changes: 28 additions & 0 deletions index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

// DuoTone syntax theme

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


// Languages
@import 'styles/languages/_base';
@import 'styles/languages/c';
@import 'styles/languages/coffee';
@import 'styles/languages/css';
@import 'styles/languages/gfm';
@import 'styles/languages/haskell';
@import 'styles/languages/html';
@import 'styles/languages/java';
@import 'styles/languages/javascript';
@import 'styles/languages/json';
@import 'styles/languages/less';
@import 'styles/languages/mediawiki';
@import 'styles/languages/php';
@import 'styles/languages/python';
@import 'styles/languages/sass';
@import 'styles/languages/scss';
@import 'styles/languages/stylus';
@import 'styles/languages/tex';
@import 'styles/languages/text';
@import 'styles/languages/yaml';
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "duotone-dusk-syntax",
"theme": "syntax",
"version": "0.2.0",
"description": "A dusk DuoTone syntax theme",
"keywords": [
"dark",
"dusk",
"blue",
"gold",
"duotone",
"syntax"
],
"repository": "https://github.com/varemenos/duotone-dusk-syntax",
"license": "MIT",
"engines": {
"atom": ">1.0.0"
}
}
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions styles/colors.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

// DuoTone dusk 01

// Hues -----------------------------------
@syntax-uno: 15;
@syntax-duo: 60;


// Language colors -----------------------------------

// Uno hue
@uno-1: hsl(@syntax-uno, 100%, 96%);
@uno-2: hsl(@syntax-uno, 98%, 86%);
@uno-3: hsl(@syntax-uno, 96%, 78%);
@uno-4: hsl(@syntax-uno, 12%, 46%);

// Duo hue
@duo-1: hsl(@syntax-duo, 100%, 80%);
@duo-2: hsl(@syntax-duo, 72%, 62%);
@duo-3: hsl(@syntax-duo, 6%, 46%);


// Base colors -----------------------------------
@syntax-fg: @uno-2;
@syntax-bg: hsl(@syntax-uno, 14%, 18%);
@syntax-guide: lighten(@syntax-bg, 10%);
@syntax-accent: hsl(@syntax-duo, 100%, 66%);
88 changes: 88 additions & 0 deletions styles/editor.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@

// Editor styles (background, gutter, guides)

atom-text-editor,
:host {
color: @syntax-text-color;
background-color: @syntax-background-color;

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

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

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

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

.bracket-matcher .region {
border-bottom: 1px solid @syntax-accent;
margin-top: -1px;
opacity: .7;
}

.invisible-character {
color: @syntax-invisible-character-color;
-webkit-font-smoothing: antialiased;
}

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

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

.gutter {

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

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

&.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;
}

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

.gutter .line-number.folded,
.gutter .line-number:after,
.fold-marker:after {
color: @syntax-gutter-text-color-selected;
}
}
78 changes: 78 additions & 0 deletions styles/languages/_base.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// Language syntax highlighting

.uno-1 { color: @uno-1; } // .... Strong
.uno-2 { color: @uno-2; } // ... |
.uno-3 { color: @uno-3; } // .. v
.uno-4 { color: @uno-4; } // . Weak

.duo-1 { color: @duo-1; } // .... Strong
.duo-2 { color: @duo-2; } // ... |
.duo-3 { color: @duo-3; } // . Weak


// Mixins -----------------------------------
.punctuation-mixin(@color:@uno-4) {
.punctuation,
.bracket,
.brace {
color: @color;
}
.string .punctuation {
.duo-3();
}
}


// Uno hue -----------------------------------

// this basically matches everything without a specific scope
// so we put it first
.meta {
.uno-4();
}

.html.elements,
.entity,
.tag,
.function-call {
.uno-1();
}

.variable,
.character.escape,
.html.attribute-name,
.css.pseudo-element {
.uno-2();
}

.support {
.uno-3();
}


// Duo hue -----------------------------------
.string,
.constant,
.storage.type {
.duo-1();
}

.keyword,
.storage {
.duo-2();
}


// Punctuation -----------------------------------
.punctuation-mixin();


// Comments -----------------------------------
.comment {
.uno-4();
}


// Text styles -----------------------------------
.bold { font-weight: bold; }
.italic { font-style: italic; }
10 changes: 10 additions & 0 deletions styles/languages/c.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.c {
.parens,
.block {
.uno-2();
.punctuation-mixin();
}
.comment {
.duo-3();
}
}
7 changes: 7 additions & 0 deletions styles/languages/coffee.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Coffee

.coffee {
&.source {
.uno-3();
}
}
13 changes: 13 additions & 0 deletions styles/languages/css.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// CSS

.css {
&.source {
.uno-4();
}
&.at-rule {
.uno-1();
.keyword.punctuation {
color: inherit;
}
}
}
32 changes: 32 additions & 0 deletions styles/languages/gfm.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// GF MarkDown

.gfm {
.uno-1();
.punctuation-mixin();

&.markup,
& .link {
.uno-2();
}
&.markup.raw,
&.markup .support {
.duo-3();
}

&.variable,
&.entity {
.duo-1();
}
&.support { .duo-2(); }
&.comment { .duo-3(); }

&.heading-1 { .duo-1(); }
&.heading-2 { .duo-2(); }
&.heading-3 { .uno-1(); }
&.heading-4 { .uno-2(); }
&.heading-5 { .uno-3(); }
&.heading-6 { .uno-4(); }

&.bold { .bold(); }
&.italic { .italic(); }
}
Loading

0 comments on commit 4715f8b

Please sign in to comment.