Skip to content
Permalink
Browse files

Initial commit

  • Loading branch information
ruedap committed Mar 4, 2014
0 parents commit fef710f7e10689ce6e36a46613a1d0dea9aa80ac
Showing with 223 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +5 −0 README.md
  3. +1 −0 index.less
  4. +17 −0 package.json
  5. BIN screenshots/less.png
  6. +170 −0 stylesheets/base.less
  7. +27 −0 stylesheets/colors.less
@@ -0,0 +1,3 @@
.DS_Store
npm-debug.log
node_modules
@@ -0,0 +1,5 @@
# Atomcasts Syntax Theme

An Atom syntax theme based on the RailsCasts theme.

![less](https://raw.github.com/ruedap/atomcasts-syntax/master/screenshots/less.png)
@@ -0,0 +1 @@
@import "./stylesheets/base.less";
@@ -0,0 +1,17 @@
{
"name": "atomcasts-syntax",
"theme": "syntax",
"version": "0.0.1",
"private": true,
"description": "An Atom syntax theme based on the RailsCasts theme.",
"repository": "https://github.com/ruedap/atomcasts-syntax",
"licenses": [
{
"type": "MIT",
"url": "http://ruedap.mit-license.org/2014"
}
],
"engines": {
"atom": ">0.64.0"
}
}
BIN +54.3 KB screenshots/less.png
Binary file not shown.
@@ -0,0 +1,170 @@
// The ui-variables file is provided by base themes provided by Atom.
//
// See https://github.com/atom/atom-dark-ui/blob/master/stylesheets/ui-variables.less
// for a full listing of what's available.

@import "ui-variables";
@import "colors";

.editor-colors {
background-color: @background-color_editor;
color: @color_editor;
}

.editor {
.markup.underline.link.hyperlink {
text-decoration: underline;
}
.invisible-character,
.indent-guide {
color: @color_invisible;
}

.gutter {
background-color: @background-color_gutter;
}

.gutter .line-number {
opacity: 0.15;
}

.gutter .line-number.folded,
.gutter .line-number:after,
.fold-marker::after {
background-color: darken(@background-color_gutter, 5%);
}

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

.cursor {
border-color: @color_editor;
}

.line-number.cursor-line-no-selection {
background-color: darken(@background-color_gutter, 2%);
}
}

.bracket-matcher {
background-color: darken(@background-color_editor, 10%);
opacity: 0.25;
}

.comment {
color: @color_comment;
}

.entity, .tag {
color: @color_entity;
}

.keyword, .storage.type {
color: @color_keyword;
}

.constant {
color: @color_constant;

&.numeric,
&.boolean {
color: @color_numeric-constant;
}
}

.variable {
color: @color_variable;
}

.delimiter, .brace {
color: @color_editor;
}

.delimiter.period {
color: lighten(@color_string, 15%);
}

.invalid.deprecated {
text-decoration: underline;
color: @color_attention;
}

.invalid.illegal {
color: @color_attention;
}

.string {
color: @color_string;

.constant.character.escape {
color: @color_constant;
}

&.regexp {
color: @color_regexp;

.source.ruby.embedded,
.string.regexp.arbitrary-repitition {
color: @color_attention;
}
}
}

.function {
color: @color_function;

&.punctuation {
color: @color_editor;
}

.punctuation.definition.parameters {
color: @color_dark-orange;
}
}

.property-name {
color: lighten(@color_constant, 10%);
}

// HTML
.html {
.tag {
color: @color_function;
}
}

// CSS
.css {
.support.type.property-name {
&:extend(.function);
}
.keyword.other {
color: @color_regexp;
&.unit {
color: @color_numeric-constant;
}
}
}

// Markdown
.gfm {
&.heading {
&:extend(.function);
}

&.raw {
color: @color_function;
}

&.underline.link {
&:extend(.string);
}
}

// ERB
.erb {
.punctuation.section.embedded {
color: @color_keyword;
}
}
@@ -0,0 +1,27 @@
@color_brown: #bc9458;
@color_dark-blue: #6d9cbe;
@color_dark-green: #519f50;
@color_dark-orange: #cc7833;
@color_light-blue: #d0d0ff;
@color_light-green: #a5c261;
@color_light-tan: #e8bf6a;
@color_tan: #fda428;
@color_light-red: #da4939;
@color_dark-white: #e6e1dc;

@background-color_editor: #2b2b2b;
@background-color_gutter: #232323;
@background-color_selection: #5a647d;

@color_editor: @color_dark-white;
@color_comment: @color_brown;
@color_entity: @color_light-red;
@color_keyword: @color_dark-orange;
@color_variable: @color_light-blue;
@color_string: @color_light-green;
@color_constant: @color_dark-blue;
@color_numeric-constant: @color_light-green;
@color_function: @color_light-tan;
@color_invisible: #665544;
@color_attention: #773311;
@color_regexp: @color_tan;

0 comments on commit fef710f

Please sign in to comment.
You can’t perform that action at this time.