aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevine Lu Linvega <aliceffekt@gmail.com>2017-12-27 12:18:20 +1300
committerDevine Lu Linvega <aliceffekt@gmail.com>2017-12-27 12:18:20 +1300
commite0af341254a3e27d8e7b4e5c51d9bc9156da640b (patch)
tree8baf57d4b0db0f1df544006380ef34a2ada4b084
parentea01a908d4c711f46a5374bc31601196f8a91ed2 (diff)
Themes preview
-rw-r--r--README.md46
-rw-r--r--assets/barber.svg12
-rw-r--r--assets/battlestation.svg12
-rw-r--r--assets/berry.svg12
-rw-r--r--assets/blanc.svg12
-rw-r--r--assets/cina.svg12
-rw-r--r--assets/commodore.svg12
-rw-r--r--assets/gameboy.svg12
-rw-r--r--assets/mahou.svg12
-rw-r--r--assets/marble.svg12
-rw-r--r--assets/noir.svg12
-rw-r--r--assets/pale.svg12
-rw-r--r--assets/raspberry.svg12
-rw-r--r--assets/seaweed.svg12
-rw-r--r--assets/soyuz.svg12
-rw-r--r--assets/swiss.svg12
-rw-r--r--collection/barber.thm (renamed from barber.thm)0
-rw-r--r--collection/battlestation.thm (renamed from battlestation.thm)0
-rw-r--r--collection/berry.thm (renamed from berry.thm)0
-rw-r--r--collection/blanc.thm (renamed from blanc.thm)0
-rw-r--r--collection/cina.thm (renamed from cina.thm)0
-rw-r--r--collection/commodore.thm (renamed from commodore.thm)0
-rw-r--r--collection/gameboy.thm (renamed from gameboy.thm)0
-rw-r--r--collection/mahou.thm (renamed from mahou.thm)0
-rw-r--r--collection/marble.thm (renamed from marble.thm)0
-rw-r--r--collection/noir.thm (renamed from noir.thm)0
-rw-r--r--collection/pale.thm (renamed from pale.thm)0
-rw-r--r--collection/raspberry.thm (renamed from raspberry.thm)0
-rw-r--r--collection/seaweed.thm (renamed from seaweed.thm)0
-rw-r--r--collection/soyuz.thm (renamed from soyuz.thm)0
-rw-r--r--collection/swiss.thm (renamed from swiss.thm)0
-rw-r--r--index.js70
-rw-r--r--package.json20
-rwxr-xr-xtools/Updater(OS X).command (renamed from Updater(OS X).command)0
34 files changed, 315 insertions, 1 deletions
diff --git a/README.md b/README.md
index e86c6e5..917e1cd 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,45 @@
-# Themes \ No newline at end of file
+## barber
+![barber](assets/barber.svg)
+
+## battlestation
+![battlestation](assets/battlestation.svg)
+
+## berry
+![berry](assets/berry.svg)
+
+## blanc
+![blanc](assets/blanc.svg)
+
+## cina
+![cina](assets/cina.svg)
+
+## commodore
+![commodore](assets/commodore.svg)
+
+## gameboy
+![gameboy](assets/gameboy.svg)
+
+## mahou
+![mahou](assets/mahou.svg)
+
+## marble
+![marble](assets/marble.svg)
+
+## noir
+![noir](assets/noir.svg)
+
+## pale
+![pale](assets/pale.svg)
+
+## raspberry
+![raspberry](assets/raspberry.svg)
+
+## seaweed
+![seaweed](assets/seaweed.svg)
+
+## swiss
+![swiss](assets/swiss.svg)
+
+## soyuz
+![soyuz](assets/soyuz.svg)
+
diff --git a/assets/barber.svg b/assets/barber.svg
new file mode 100644
index 0000000..0175d4e
--- /dev/null
+++ b/assets/barber.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#FFFFFF' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#2274A5'></circle>
+ <circle cx='32' cy='16' r='8' fill='#32936F'></circle>
+ <circle cx='48' cy='16' r='8' fill='#E83F6F'></circle>
+ <circle cx='64' cy='16' r='8' fill='#FFFFFF'></circle>
+ <circle cx='16' cy='32' r='8' fill='#89023E'></circle>
+ <circle cx='32' cy='32' r='8' fill='#89023E'></circle>
+ <circle cx='48' cy='32' r='8' fill='#E83F6F'></circle>
+ <circle cx='64' cy='32' r='8' fill='#FFBF00'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/battlestation.svg b/assets/battlestation.svg
new file mode 100644
index 0000000..3514bf1
--- /dev/null
+++ b/assets/battlestation.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#222' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#fff'></circle>
+ <circle cx='32' cy='16' r='8' fill='#777'></circle>
+ <circle cx='48' cy='16' r='8' fill='#444'></circle>
+ <circle cx='64' cy='16' r='8' fill='#000'></circle>
+ <circle cx='16' cy='32' r='8' fill='#000'></circle>
+ <circle cx='32' cy='32' r='8' fill='#affec7'></circle>
+ <circle cx='48' cy='32' r='8' fill='#000'></circle>
+ <circle cx='64' cy='32' r='8' fill='#affec7'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/berry.svg b/assets/berry.svg
new file mode 100644
index 0000000..c630c5f
--- /dev/null
+++ b/assets/berry.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#9EB7FF' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#FFFFFF'></circle>
+ <circle cx='32' cy='16' r='8' fill='#1C0A16'></circle>
+ <circle cx='48' cy='16' r='8' fill='#1C0A16'></circle>
+ <circle cx='64' cy='16' r='8' fill='#FFFFFF'></circle>
+ <circle cx='16' cy='32' r='8' fill='#6ADEDC'></circle>
+ <circle cx='32' cy='32' r='8' fill='#6ADEDC'></circle>
+ <circle cx='48' cy='32' r='8' fill='#1C0A16'></circle>
+ <circle cx='64' cy='32' r='8' fill='#6ADEDC'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/blanc.svg b/assets/blanc.svg
new file mode 100644
index 0000000..02e0f27
--- /dev/null
+++ b/assets/blanc.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#eee' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#111'></circle>
+ <circle cx='32' cy='16' r='8' fill='#777'></circle>
+ <circle cx='48' cy='16' r='8' fill='#bbb'></circle>
+ <circle cx='64' cy='16' r='8' fill='#ccc'></circle>
+ <circle cx='16' cy='32' r='8' fill='#000'></circle>
+ <circle cx='32' cy='32' r='8' fill='#999'></circle>
+ <circle cx='48' cy='32' r='8' fill='#ddd'></circle>
+ <circle cx='64' cy='32' r='8' fill='#555'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/cina.svg b/assets/cina.svg
new file mode 100644
index 0000000..09daa1c
--- /dev/null
+++ b/assets/cina.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#000' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='white'></circle>
+ <circle cx='32' cy='16' r='8' fill='#6ff'></circle>
+ <circle cx='48' cy='16' r='8' fill='#555'></circle>
+ <circle cx='64' cy='16' r='8' fill='#fff'></circle>
+ <circle cx='16' cy='32' r='8' fill='#89023E'></circle>
+ <circle cx='32' cy='32' r='8' fill='#89023E'></circle>
+ <circle cx='48' cy='32' r='8' fill='#222'></circle>
+ <circle cx='64' cy='32' r='8' fill='#F00'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/commodore.svg b/assets/commodore.svg
new file mode 100644
index 0000000..8d39e46
--- /dev/null
+++ b/assets/commodore.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#a5a7fc' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#FFF'></circle>
+ <circle cx='32' cy='16' r='8' fill='#FFF'></circle>
+ <circle cx='48' cy='16' r='8' fill='#444ae3'></circle>
+ <circle cx='64' cy='16' r='8' fill='#444ae3'></circle>
+ <circle cx='16' cy='32' r='8' fill='#FFF'></circle>
+ <circle cx='32' cy='32' r='8' fill='#444ae3'></circle>
+ <circle cx='48' cy='32' r='8' fill='#7479ee'></circle>
+ <circle cx='64' cy='32' r='8' fill='#fff'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/gameboy.svg b/assets/gameboy.svg
new file mode 100644
index 0000000..b773416
--- /dev/null
+++ b/assets/gameboy.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#8b956d' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#c4cfa1'></circle>
+ <circle cx='32' cy='16' r='8' fill='#4d533c'></circle>
+ <circle cx='48' cy='16' r='8' fill='#4d533c'></circle>
+ <circle cx='64' cy='16' r='8' fill='#1f1f1f'></circle>
+ <circle cx='16' cy='32' r='8' fill='#c4cfa1'></circle>
+ <circle cx='32' cy='32' r='8' fill='#c4cfa1'></circle>
+ <circle cx='48' cy='32' r='8' fill='#1f1f1f'></circle>
+ <circle cx='64' cy='32' r='8' fill='#c4cfa1'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/mahou.svg b/assets/mahou.svg
new file mode 100644
index 0000000..710853f
--- /dev/null
+++ b/assets/mahou.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#E0B1CB' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#231942'></circle>
+ <circle cx='32' cy='16' r='8' fill='#5E548E'></circle>
+ <circle cx='48' cy='16' r='8' fill='#BE95C4'></circle>
+ <circle cx='64' cy='16' r='8' fill='#E0B1CB'></circle>
+ <circle cx='16' cy='32' r='8' fill='#5E548E'></circle>
+ <circle cx='32' cy='32' r='8' fill='#5E548E'></circle>
+ <circle cx='48' cy='32' r='8' fill='#BE95C4'></circle>
+ <circle cx='64' cy='32' r='8' fill='#9F86C0'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/marble.svg b/assets/marble.svg
new file mode 100644
index 0000000..863b639
--- /dev/null
+++ b/assets/marble.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#FBFBF2' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#847577'></circle>
+ <circle cx='32' cy='16' r='8' fill='#A6A2A2'></circle>
+ <circle cx='48' cy='16' r='8' fill='#A6A2A2'></circle>
+ <circle cx='64' cy='16' r='8' fill='#FFFCF9'></circle>
+ <circle cx='16' cy='32' r='8' fill='#CFD2CD'></circle>
+ <circle cx='32' cy='32' r='8' fill='#CFD2CD'></circle>
+ <circle cx='48' cy='32' r='8' fill='#A6A2A2'></circle>
+ <circle cx='64' cy='32' r='8' fill='#E5E6E4'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/noir.svg b/assets/noir.svg
new file mode 100644
index 0000000..b5d3ba9
--- /dev/null
+++ b/assets/noir.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#000' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#fff'></circle>
+ <circle cx='32' cy='16' r='8' fill='#999'></circle>
+ <circle cx='48' cy='16' r='8' fill='#555'></circle>
+ <circle cx='64' cy='16' r='8' fill='#000'></circle>
+ <circle cx='16' cy='32' r='8' fill='#000'></circle>
+ <circle cx='32' cy='32' r='8' fill='#555'></circle>
+ <circle cx='48' cy='32' r='8' fill='#222'></circle>
+ <circle cx='64' cy='32' r='8' fill='#fff'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/pale.svg b/assets/pale.svg
new file mode 100644
index 0000000..e6061ce
--- /dev/null
+++ b/assets/pale.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#555' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#fff'></circle>
+ <circle cx='32' cy='16' r='8' fill='#999'></circle>
+ <circle cx='48' cy='16' r='8' fill='#bbb'></circle>
+ <circle cx='64' cy='16' r='8' fill='#555'></circle>
+ <circle cx='16' cy='32' r='8' fill='#000'></circle>
+ <circle cx='32' cy='32' r='8' fill='#999'></circle>
+ <circle cx='48' cy='32' r='8' fill='#666'></circle>
+ <circle cx='64' cy='32' r='8' fill='#ccc'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/raspberry.svg b/assets/raspberry.svg
new file mode 100644
index 0000000..0a2e998
--- /dev/null
+++ b/assets/raspberry.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#30343F' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='white'></circle>
+ <circle cx='32' cy='16' r='8' fill='#EA638C'></circle>
+ <circle cx='48' cy='16' r='8' fill='#EA638C'></circle>
+ <circle cx='64' cy='16' r='8' fill='#89023E'></circle>
+ <circle cx='16' cy='32' r='8' fill='#89023E'></circle>
+ <circle cx='32' cy='32' r='8' fill='#89023E'></circle>
+ <circle cx='48' cy='32' r='8' fill='#EA638C'></circle>
+ <circle cx='64' cy='32' r='8' fill='#FFD9DA'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/seaweed.svg b/assets/seaweed.svg
new file mode 100644
index 0000000..a30d08c
--- /dev/null
+++ b/assets/seaweed.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#CDEDFD' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#0B132B'></circle>
+ <circle cx='32' cy='16' r='8' fill='#172759'></circle>
+ <circle cx='48' cy='16' r='8' fill='#5BC0BE'></circle>
+ <circle cx='64' cy='16' r='8' fill='#3A506B'></circle>
+ <circle cx='16' cy='32' r='8' fill='#1C2541'></circle>
+ <circle cx='32' cy='32' r='8' fill='#1C2541'></circle>
+ <circle cx='48' cy='32' r='8' fill='#5BC0BE'></circle>
+ <circle cx='64' cy='32' r='8' fill='#6FFFE9'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/soyuz.svg b/assets/soyuz.svg
new file mode 100644
index 0000000..6d0e4d4
--- /dev/null
+++ b/assets/soyuz.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#222' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='#fc533e'></circle>
+ <circle cx='32' cy='16' r='8' fill='#999'></circle>
+ <circle cx='48' cy='16' r='8' fill='#555'></circle>
+ <circle cx='64' cy='16' r='8' fill='#555'></circle>
+ <circle cx='16' cy='32' r='8' fill='#fc533e'></circle>
+ <circle cx='32' cy='32' r='8' fill='#999'></circle>
+ <circle cx='48' cy='32' r='8' fill='#333'></circle>
+ <circle cx='64' cy='32' r='8' fill='#fff'></circle>
+ </svg> \ No newline at end of file
diff --git a/assets/swiss.svg b/assets/swiss.svg
new file mode 100644
index 0000000..2703897
--- /dev/null
+++ b/assets/swiss.svg
@@ -0,0 +1,12 @@
+
+ <svg class="vector" width="80px" height="48px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='80' height='48' fill='#f1f2f0' rx='5' ry='5'></rect>
+ <circle cx='16' cy='16' r='8' fill='black'></circle>
+ <circle cx='32' cy='16' r='8' fill='#bfbabe'></circle>
+ <circle cx='48' cy='16' r='8' fill='#a63e14'></circle>
+ <circle cx='64' cy='16' r='8' fill='white'></circle>
+ <circle cx='16' cy='32' r='8' fill='#bfbabe'></circle>
+ <circle cx='32' cy='32' r='8' fill='#a63e14'></circle>
+ <circle cx='48' cy='32' r='8' fill='#bfbabe'></circle>
+ <circle cx='64' cy='32' r='8' fill='#a63e14'></circle>
+ </svg> \ No newline at end of file
diff --git a/barber.thm b/collection/barber.thm
index 56a0652..56a0652 100644
--- a/barber.thm
+++ b/collection/barber.thm
diff --git a/battlestation.thm b/collection/battlestation.thm
index 8b56f8b..8b56f8b 100644
--- a/battlestation.thm
+++ b/collection/battlestation.thm
diff --git a/berry.thm b/collection/berry.thm
index 86b3e6f..86b3e6f 100644
--- a/berry.thm
+++ b/collection/berry.thm
diff --git a/blanc.thm b/collection/blanc.thm
index fe4c09a..fe4c09a 100644
--- a/blanc.thm
+++ b/collection/blanc.thm
diff --git a/cina.thm b/collection/cina.thm
index 871de78..871de78 100644
--- a/cina.thm
+++ b/collection/cina.thm
diff --git a/commodore.thm b/collection/commodore.thm
index d6fdea0..d6fdea0 100644
--- a/commodore.thm
+++ b/collection/commodore.thm
diff --git a/gameboy.thm b/collection/gameboy.thm
index 754408a..754408a 100644
--- a/gameboy.thm
+++ b/collection/gameboy.thm
diff --git a/mahou.thm b/collection/mahou.thm
index aae77bb..aae77bb 100644
--- a/mahou.thm
+++ b/collection/mahou.thm
diff --git a/marble.thm b/collection/marble.thm
index 5a60f35..5a60f35 100644
--- a/marble.thm
+++ b/collection/marble.thm
diff --git a/noir.thm b/collection/noir.thm
index 1da54ea..1da54ea 100644
--- a/noir.thm
+++ b/collection/noir.thm
diff --git a/pale.thm b/collection/pale.thm
index e751117..e751117 100644
--- a/pale.thm
+++ b/collection/pale.thm
diff --git a/raspberry.thm b/collection/raspberry.thm
index 0c0ec6b..0c0ec6b 100644
--- a/raspberry.thm
+++ b/collection/raspberry.thm
diff --git a/seaweed.thm b/collection/seaweed.thm
index 8595513..8595513 100644
--- a/seaweed.thm
+++ b/collection/seaweed.thm
diff --git a/soyuz.thm b/collection/soyuz.thm
index 74f2de6..74f2de6 100644
--- a/soyuz.thm
+++ b/collection/soyuz.thm
diff --git a/swiss.thm b/collection/swiss.thm
index 9ecfe92..9ecfe92 100644
--- a/swiss.thm
+++ b/collection/swiss.thm
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..c1bdd30
--- /dev/null
+++ b/index.js
@@ -0,0 +1,70 @@
+fs = require('fs');
+var normalizedPath = require("path").join(__dirname, "collection");
+
+var html = ""
+
+function build_svg(n,theme)
+{
+ var name = n.split(".")[0];
+ var size = 16
+
+ var html = `
+ <svg class="vector" width="${(size * 5)}px" height="${size * 3}px" xmlns="http://www.w3.org/2000/svg" baseProfile="full" version="1.1">
+ <rect width='${(size * 5)}' height='${(size * 3)}' fill='${theme.background}' rx='5' ry='5'></rect>
+ <circle cx='${size * 1}' cy='${size * 1}' r='${size/2}' fill='${theme.f_high}'></circle>
+ <circle cx='${size * 2}' cy='${size * 1}' r='${size/2}' fill='${theme.f_med}'></circle>
+ <circle cx='${size * 3}' cy='${size * 1}' r='${size/2}' fill='${theme.f_low}'></circle>
+ <circle cx='${size * 4}' cy='${size * 1}' r='${size/2}' fill='${theme.f_inv}'></circle>
+ <circle cx='${size * 1}' cy='${size * 2}' r='${size/2}' fill='${theme.b_high}'></circle>
+ <circle cx='${size * 2}' cy='${size * 2}' r='${size/2}' fill='${theme.b_med}'></circle>
+ <circle cx='${size * 3}' cy='${size * 2}' r='${size/2}' fill='${theme.b_low}'></circle>
+ <circle cx='${size * 4}' cy='${size * 2}' r='${size/2}' fill='${theme.b_inv}'></circle>
+ </svg>`
+
+ fs.writeFile("assets/"+name+".svg", html, function(err) {
+ if(err) {return console.log(err);}
+ console.log("Saved "+name)
+ });
+}
+
+function build_theme(n,theme)
+{
+ var name = n.split(".")[0];
+ return `## ${name}\n![${name}](assets/${name}.svg)\n\n`
+}
+
+function is_json(text)
+{
+ try{
+ JSON.parse(text);
+ return true;
+ }
+ catch (error){
+ return false;
+ }
+}
+
+function generate(html)
+{
+ fs.writeFile("README.md", html, function(err) {
+ if(err) {return console.log(err);}
+ console.log("Done.")
+ });
+}
+
+require("fs").readdirSync(normalizedPath).forEach(function(file_name) {
+ fs.readFile('collection/'+file_name, 'utf8', function (err,data){
+ if(err) { return console.log(err); }
+ if(is_json(data)){
+ var theme = JSON.parse(data)
+ build_svg(file_name,theme)
+ html += build_theme(file_name,theme)
+ }
+ });
+});
+
+setTimeout(function(){ generate(html); },1000)
+
+
+
+
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..f9d1e7c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,20 @@
+{
+ "name": "themes",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "start": "node ."
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/hundredrabbits/Themes.git"
+ },
+ "author": "",
+ "license": "ISC",
+ "bugs": {
+ "url": "https://github.com/hundredrabbits/Themes/issues"
+ },
+ "homepage": "https://github.com/hundredrabbits/Themes#readme"
+}
diff --git a/Updater(OS X).command b/tools/Updater(OS X).command
index 7d9cc38..7d9cc38 100755
--- a/Updater(OS X).command
+++ b/tools/Updater(OS X).command