Skip to content

Commit

Permalink
[GHI-#5] Implement CSS/LESSCSS/Sass language styles
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Sep 17, 2016
1 parent 730d928 commit 4f69306
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ LESSCSS
@import "styles/syntax";

/*+--- Languages ---+*/
@import "styles/languages/css";
40 changes: 40 additions & 0 deletions styles/languages/css.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title Language CSS +
project nord-atom-syntax +
version +
repository https://github.com/arcticicestudio/nord-atom-syntax +
author Arctic Ice Studio +
email development@arcticicestudio.com +
copyright Copyright (C) 2016 +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Supports LESSCSS and Sass.
[Language Packages]
> language-css (https://atom.io/packages/language-css)
*/
.source.css,
.source.css.less,
.source.css.scss,
.source.css.sass {
.meta.at-rule {
.punctuation.definition.keyword {
color: @syntax-color-keyword;
}

& > .string.quoted {
color: @syntax-color-class;
}
}

.support {
&.constant.property-value {
color: @syntax-color-keyword;
}

&.type.property-name {
color: @syntax-color-css-property;
}
}
}
8 changes: 8 additions & 0 deletions styles/syntax-variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ copyright Copyright (C) 2016 +
> Gutter
> Language Entities
Base
Specific
> Marker
> Sizes
*/
Expand Down Expand Up @@ -101,6 +102,13 @@ copyright Copyright (C) 2016 +
@syntax-deprecated: @nord13;
@syntax-illegal: @nord11;

/*+--- Specific ---+*/
@syntax-color-css-property: @nord7;
@syntax-color-markup-code: @nord7;
@syntax-color-markup-heading: @nord8;
@syntax-color-markup-heading-marker: @nord9;
@syntax-color-markup-quote: @nord6;

/*+--------+
+ Marker +
+--------+*/
Expand Down

0 comments on commit 4f69306

Please sign in to comment.