vstheme2scss 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eee9338e7e51dd04811e7a9e711c23f865e2199b22ec5b739da43832bb310461
4
- data.tar.gz: b089f1dd8b0e31ef53fb07122c0bbf0bf96f1f234728163e60bcfa494c4d0903
3
+ metadata.gz: 48066ef3ce42536fba294fd84d51f402d2a7e472dee5bdbc8b89caaf7110fb5b
4
+ data.tar.gz: 4e8e934d7aa84b8416f03d33094f1b89b026b6c26cd71d8089a9bb7b3966fd1b
5
5
  SHA512:
6
- metadata.gz: 1ffe037aa1963db407fb2c22d0ba716fe15cf8b42762a61ac2e473efccb7f17d172e305912efd46f209d03128c8f1663403bf1c0fa327450af8859b6192de4e4
7
- data.tar.gz: b48a50ad009b3d6fa561c8f2c6be7ee0e7a66a7d4488064f83aed9e4dda12702bda0f26f0b9a72adbadee698664b18dbb7a7c33d489ce2b5ce50b627efe71dac
6
+ metadata.gz: 18498403e89e8d14c4b62372020632858c20fd454a2ba2a906ad7d07f09cc018460888fb00a2815a63223e1ff8a61dc9bdd0ab0cd3324b32df4acbef72c4db77
7
+ data.tar.gz: 482558cae4d77e938c756c4b3a487100cda9b3580674d818e523a11837b4ad89dcb620e580f1603b351a3ff3a32b94ce45ba13d6c789901a02c58a079ffb08d7
@@ -14,7 +14,8 @@ module Converter
14
14
  }.select{ |token|
15
15
  token["settings"].key?("foreground")
16
16
  }.map{ |token|
17
- "\t\t#{token["name"].downcase.gsub(/ /, "-")}-color: #{token["settings"]["foreground"]},"
17
+ name_subbed = token["name"].gsub(/[\: \.]/, "-")
18
+ "\t\t#{name_subbed.downcase}-color: #{token["settings"]["foreground"]},"
18
19
  }.join("\n")
19
20
  end
20
21
 
@@ -23,8 +24,8 @@ module Converter
23
24
  tokens = theme["tokenColors"]
24
25
  [
25
26
  "\t#{theme["name"].downcase.gsub(/ /, "-")}: (",
26
- "\t\tbackground-color: #{colors["editor.background"]},",
27
- "\t\tforeground-color: #{colors["editor.foreground"]},",
27
+ "\t\tbackground-color: #{colors["editor.background"] || "#000"},",
28
+ "\t\tforeground-color: #{colors["editor.foreground"] || "#fff"},",
28
29
  "#{build_tokens_scss(tokens)}",
29
30
  ].join("\n") + "\n\t),"
30
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vstheme2scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Kruhlmann