-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes #56 * Ability to have non-string values that retain their type * Allow non-property leaf nodes (that don't have a value attribute) in a style dictionary
- Loading branch information
1 parent
6eb3b9d
commit ab5f0bf
Showing
7 changed files
with
101 additions
and
7 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
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
Binary file not shown.
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,12 @@ | ||
{ | ||
"color": { | ||
"base": { | ||
"red": { "value": "#f00" }, | ||
"comment": "testing", | ||
"attributes": { | ||
"comment": "more testing" | ||
} | ||
}, | ||
"comment": "testing" | ||
} | ||
} |
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,30 @@ | ||
{ | ||
"color": { | ||
"red": { | ||
"value": { | ||
"r": 255, | ||
"g": 0, | ||
"b": 0, | ||
"a": 1 | ||
} | ||
}, | ||
"blue": { | ||
"value": [0,0,255,1] | ||
}, | ||
"otherRed": { | ||
"value": "{color.red.value}" | ||
}, | ||
"otherBlue": { | ||
"value": "{color.blue.value}" | ||
} | ||
}, | ||
|
||
"size": { | ||
"large": { | ||
"value": 20 | ||
}, | ||
"otherLarge": { | ||
"value": "{size.large.value}" | ||
} | ||
} | ||
} |