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 May 17, 2024
1 parent 7db15c4 commit 48209e8
Show file tree
Hide file tree
Showing 7 changed files with 1,423 additions and 709 deletions.
161 changes: 161 additions & 0 deletions uds-android-theme-public-mobile/src/main/res/raw/Card.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"type": "variant",
"values": [true]
},
"isControl": {
"type": "variant",
"values": [true, false]
},
"padding": {
"type": "variant",
"values": ["narrow", "intermediate", "compact", "custom"]
Expand All @@ -21,13 +25,89 @@
"values": [true, false],
"type": "state"
},
"selected": {
"description": "Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.",
"values": [true],
"type": "state"
},
"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": {
"interactive": true,
"isControl": true
},
"tokens": {
"borderColor": {
"red": 0.80392,
"green": 0.81176,
"blue": 0.83529,
"alpha": 1
},
"borderWidth": 1
}
},
{
"if": {
"interactive": true,
"isControl": true,
"selected": true
},
"tokens": {
"backgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"borderColor": {
"red": 0.22353,
"green": 0.25098,
"blue": 0.33725,
"alpha": 1
},
"borderWidth": 1,
"iconBackgroundColor": {
"red": 0.80392,
"green": 0.81176,
"blue": 0.83529,
"alpha": 1
},
"iconColor": {
"red": 0.22353,
"green": 0.25098,
"blue": 0.33725,
"alpha": 1
},
"inputBackgroundColor": {
"red": 0.80392,
"green": 0.81176,
"blue": 0.83529,
"alpha": 1
}
}
},
{
"if": {
"interactive": true,
"isControl": true,
"pressed": false
},
"tokens": {
"borderColor": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 0
},
"borderWidth": 2
}
},
{
"if": {
"borderRadius": "none"
Expand Down Expand Up @@ -224,6 +304,7 @@
{
"if": {
"interactive": true,
"isControl": false,
"pressed": false
},
"tokens": {
Expand All @@ -236,6 +317,21 @@
"borderWidth": 2
}
},
{
"if": {
"interactive": true,
"pressed": false
},
"tokens": {
"borderColor": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 0
},
"borderWidth": 2
}
},
{
"if": {
"interactive": true,
Expand All @@ -256,6 +352,28 @@
},
"borderWidth": 2
}
},
{
"if": {
"interactive": true,
"isControl": false,
"selected": true
},
"tokens": {
"backgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"borderColor": {
"red": 0.22353,
"green": 0.25098,
"blue": 0.33725,
"alpha": 1
},
"borderWidth": 1
}
}
],
"tokens": {
Expand All @@ -279,6 +397,49 @@
"contentJustifyContent": "flex-start",
"flex": 1,
"gradient": null,
"icon": "PaletteIconMobileCheckmark",
"iconBackgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"iconColor": {
"red": 0.22353,
"green": 0.25098,
"blue": 0.33725,
"alpha": 1
},
"iconSize": 20,
"inputBackgroundColor": {
"red": 0.96078,
"green": 0.96078,
"blue": 0.96863,
"alpha": 1
},
"inputBorderColor": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 0
},
"inputBorderRadius": 4,
"inputBorderWidth": 0,
"inputHeight": 32,
"inputShadow": {
"inset": true,
"offsetX": 0,
"offsetY": 2,
"blur": 2,
"spread": 0,
"color": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 0.1
}
},
"inputWidth": 32,
"minWidth": null,
"paddingBottom": 32,
"paddingLeft": 24,
Expand Down
52 changes: 52 additions & 0 deletions uds-android-theme-public-mobile/src/main/res/raw/CardGroup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"appearances": {
"pressed": {
"description": "Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.",
"values": [true, false],
"type": "state"
},
"selected": {
"description": "Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.",
"values": [true],
"type": "state"
},
"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": ["lg", "xl"]
},
"tokens": {
"direction": "row",
"space": 5
}
},
{
"if": {
"viewport": ["xs", "sm", "md"]
},
"tokens": {
"direction": "column",
"fieldSpace": 3,
"space": 3
}
}
],
"tokens": {
"borderBottomLeftRadius": 1,
"borderBottomRightRadius": 1,
"borderTopLeftRadius": 1,
"borderTopRightRadius": 1,
"direction": "column",
"fieldSpace": 3,
"outlineOffset": 8,
"outlineWidth": 1,
"showIcon": true,
"space": 3
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"appearances": {},
"rules": [],
"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"
},
"tokens": {
"stackSpace": 4
}
}
],
"tokens": {
"stackGap": 5,
"stackJustify": "center",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"fontName": "SofiaPro",
"fontSize": 18,
"fontWeight": 700,
"gap": 32,
"gap": 5,
"imageDimension": 140,
"outerBorderColor": {
"red": 0,
Expand Down
13 changes: 13 additions & 0 deletions uds-android-theme-public-mobile/src/main/res/raw/Radio.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@
"descriptionFontWeight": 400,
"descriptionLineHeight": 1.5,
"descriptionMarginLeft": null,
"icon": null,
"iconBackgroundColor": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 0
},
"iconColor": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 0
},
"inputBackgroundColor": {
"red": 1,
"green": 1,
Expand Down
Loading

0 comments on commit 48209e8

Please # to comment.