Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F408423
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/design/kibaone/accents/Makefile b/design/kibaone/accents/Makefile
new file mode 100644
index 0000000..cf844aa
--- /dev/null
+++ b/design/kibaone/accents/Makefile
@@ -0,0 +1,7 @@
+all: index.json
+
+index.json:
+ php index.php > index.json
+
+clean:
+ rm -f index.json
diff --git a/design/kibaone/accents/index.php b/design/kibaone/accents/index.php
new file mode 100755
index 0000000..7bd22eb
--- /dev/null
+++ b/design/kibaone/accents/index.php
@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * Wolfplex Kiba One design available accents
+ *
+ * Outputs an array of accents:
+ * name: accent name
+ * accent: background color
+ * headingColor: text color
+ */
+
+$white = '#ffffff'; //We currently don't consider a grayish white for cyan compliance.
+$black = '#000000'; //We currently don't consider a dark gray for citron compliance.
+$defaultHeadingsColor = $white;
+
+$accents = [
+ // Main colors
+ [ 'black', '#000000', '#4b4b50' ],
+ [ 'zedgray', '#343434' ],
+ [ 'bluegray', '#4b4b50' ],
+
+ // Colored accents
+ [ 'cyan', '#2ba6cb' ],
+ [ 'lime', '#e7fb03', $black ],
+ [ 'magenta', '#f608b0' ],
+ [ 'craie', '#f3f3f3', $black ],
+ [ 'grenade', '#f34723' ],
+ [ 'sorbier', '#fb8507' ],
+ [ 'purple', '#998cfb' ],
+ [ 'citron', '#fcff00', $black ],
+ [ 'blueribbon', '#1d62ff' ],
+ [ 'red', '#f60000' ],
+];
+
+$areas = [];
+foreach ($accents as $accent) {
+ $areas[] = [
+ 'name' => $accent[0],
+ 'accent' => $accent[1],
+ 'headingColor' => count($accent) < 3 ? $defaultHeadingsColor : $accent[2]
+ ];
+}
+
+header("Content-Type: application/json");
+echo json_encode($areas);
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jun 9, 12:14 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
46291
Default Alt Text
(1 KB)
Attached To
rAPI Wolfplex API
Event Timeline
Log In to Comment