-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
66 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/python3.9 | ||
import json | ||
|
||
if __name__ == "__main__": | ||
with open("./_content/color.json", mode="r") as f: | ||
google_results = f.read() | ||
|
||
_color = json.loads(google_results) | ||
rows = _color["results"][0]["result"]["rawData"] | ||
with open("./assets/css/setting.scss", mode="w") as f: | ||
for row in rows[1:]: | ||
name, value = row | ||
f.write(f"${name}: {value};\n") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1 @@ | ||
{ | ||
"results": [ | ||
{ | ||
"command": { | ||
"func": "getData", | ||
"kwargs": [{ "minCol": 1, "worksheetTitle": "color-palette" }, null] | ||
}, | ||
"result": { | ||
"rawData": [ | ||
["color name", "color"], | ||
["accent", "#FF4853"], | ||
["primary", "#6B68F7"], | ||
["black", "#000000"], | ||
["white", "#FFFFFF"], | ||
["grey01", "#F6F6F6"], | ||
["grey02", "#DDDDDD"], | ||
["grey03", "#777777"], | ||
["grey04", "#3B3B3B"] | ||
], | ||
"formatted": [ | ||
{ "(A)": "color name", "(B)": "color" }, | ||
{ "(A)": "accent", "(B)": "#FF4853" }, | ||
{ "(A)": "primary", "(B)": "#6B68F7" }, | ||
{ "(A)": "black", "(B)": "#000000" }, | ||
{ "(A)": "white", "(B)": "#FFFFFF" }, | ||
{ "(A)": "grey01", "(B)": "#F6F6F6" }, | ||
{ "(A)": "grey02", "(B)": "#DDDDDD" }, | ||
{ "(A)": "grey03", "(B)": "#777777" }, | ||
{ "(A)": "grey04", "(B)": "#3B3B3B" } | ||
], | ||
"header": ["(A)", "(B)"], | ||
"range": "'color-palette'!A1:Z1000" | ||
} | ||
} | ||
] | ||
} | ||
{"results":[{"command":{"func":"getData","kwargs":[{"minCol":1,"worksheetTitle":"color-palette"},null]},"result":{"rawData":[["color name","color"],["accent","#FF4853"],["primary","#6B68F7"],["black","#000000"],["white","#FFFFFF"],["grey01","#F6F6F6"],["grey02","#DDDDDD"],["grey03","#777777"],["grey04","#3B3B3B"],["accent-hover","#5653C6"],["accent-pressed","#45429E"]],"formatted":[{"(A)":"color name","(B)":"color"},{"(A)":"accent","(B)":"#FF4853"},{"(A)":"primary","(B)":"#6B68F7"},{"(A)":"black","(B)":"#000000"},{"(A)":"white","(B)":"#FFFFFF"},{"(A)":"grey01","(B)":"#F6F6F6"},{"(A)":"grey02","(B)":"#DDDDDD"},{"(A)":"grey03","(B)":"#777777"},{"(A)":"grey04","(B)":"#3B3B3B"},{"(A)":"accent-hover","(B)":"#5653C6"},{"(A)":"accent-pressed","(B)":"#45429E"}],"header":["(A)","(B)"],"range":"'color-palette'!A1:Z1000"}}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.