Skip to content

Commit

Permalink
updating theme files
Browse files Browse the repository at this point in the history
  • Loading branch information
release-bot committed Apr 5, 2024
1 parent 132e6ae commit 0ac5aa1
Show file tree
Hide file tree
Showing 4 changed files with 639 additions and 144 deletions.
149 changes: 148 additions & 1 deletion uds-android-theme-public-mobile/src/main/res/raw/Icon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"appearances": {
"background": {
"type": "variant",
"values": [true]
},
"color": {
"description": "Use colour to change the colour",
"type": "variant",
Expand All @@ -13,13 +17,147 @@
"inverse"
]
},
"padding": {
"type": "variant",
"values": ["micro", "small", "medium", "large", "extraLarge"]
},
"size": {
"description": "Use size to change the dimension of the icon",
"type": "variant",
"values": ["micro", "small", "large", "extraLarge"]
}
},
"rules": [
{
"if": {
"padding": "micro"
},
"tokens": {
"padding": 4,
"width": 4
}
},
{
"if": {
"padding": "small"
},
"tokens": {
"padding": 4,
"width": 8
}
},
{
"if": {
"padding": "medium"
},
"tokens": {
"padding": 4,
"width": 16
}
},
{
"if": {
"padding": "large"
},
"tokens": {
"padding": 4,
"width": 24
}
},
{
"if": {
"padding": "extraLarge"
},
"tokens": {
"padding": 4,
"width": 32
}
},
{
"if": {
"background": true,
"padding": "micro"
},
"tokens": {
"backgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"borderRadius": 45,
"padding": 4,
"width": 4
}
},
{
"if": {
"background": true,
"padding": "small"
},
"tokens": {
"backgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"borderRadius": 45,
"padding": 4,
"width": 8
}
},
{
"if": {
"background": true,
"padding": "medium"
},
"tokens": {
"backgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"borderRadius": 45,
"padding": 4,
"width": 16
}
},
{
"if": {
"background": true,
"padding": "large"
},
"tokens": {
"backgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"borderRadius": 45,
"padding": 4,
"width": 24
}
},
{
"if": {
"background": true,
"padding": "extraLarge"
},
"tokens": {
"backgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"borderRadius": 45,
"padding": 4,
"width": 32
}
},
{
"if": {
"size": "micro"
Expand Down Expand Up @@ -145,15 +283,24 @@
}
],
"tokens": {
"backgroundColor": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 0
},
"borderRadius": 0,
"color": {
"red": 0.22353,
"green": 0.25098,
"blue": 0.33725,
"alpha": 1
},
"padding": 0,
"scale": 1,
"size": 24,
"translateX": 0,
"translateY": 0
"translateY": 0,
"width": 0
}
}
35 changes: 35 additions & 0 deletions uds-android-theme-public-mobile/src/main/res/raw/ProductCard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"appearances": {
"viewport": {
"description": "The size label for the current screen viewport based on the current screen width",
"values": ["xs", "sm", "md", "lg", "xl"],
"type": "state"
}
},
"rules": [
{
"if": {
"viewport": ["xs", "sm", "md"]
},
"tokens": {
"borderWidth": 0,
"paddingHorizontal": 24,
"paddingVertical": 0
}
}
],
"tokens": {
"borderColor": {
"red": 0.61176,
"green": 0.62353,
"blue": 0.66667,
"alpha": 1
},
"borderRadius": 6,
"borderStyle": "solid",
"borderWidth": 1,
"paddingHorizontal": 24,
"paddingVertical": 24,
"selectedButtonIcon": "PaletteIconCheckMark"
}
}
Loading

0 comments on commit 0ac5aa1

Please # to comment.