Skip to content

Commit

Permalink
make css rules more robust and flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYinMD committed Dec 24, 2018
1 parent 70825ae commit e28c844
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions palettes/cuttlefish/cuttlefish.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ cuttlefish.aliases = {
id: 'rosy',
attribute: 'jade',
reactComponent: 'cyan',
atRule: 'lime',
cssVariable: 'gold',
};

// for node only ↓
Expand Down
2 changes: 1 addition & 1 deletion palettes/sepia/sepia.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
color: #da2d2dbb;
color: #eb582cdd;
color: #e52d;
color: #e53d;
color: #e44d;
}

.sepia .orange {
Expand Down
4 changes: 3 additions & 1 deletion palettes/sepia/sepia.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ sepia.aliases = {
deprecated: 'pink',
docstring: 'tan',
interpolation: 'orange',
// html ↓
// html css
tag: 'blue',
class: 'green',
id: 'magenta',
attribute: 'olive',
reactComponent: 'cyan',
atRule: 'maroon',
cssVariable: 'rosy',
};

// for node only ↓
Expand Down
4 changes: 2 additions & 2 deletions syntax-highlighting-rules/css.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"keyword.control.at-rule punctuation.definition.keyword"
],
"settings": {
"foreground": "function"
"foreground": "atRule"
}
},
{
Expand All @@ -50,7 +50,7 @@
"variable punctuation.definition" // the @ symbol
],
"settings": {
"foreground": "reserved"
"foreground": "cssVariable"
}
},
{
Expand Down

0 comments on commit e28c844

Please sign in to comment.