Skip to content

Commit

Permalink
Add successFeedback themeVariant token
Browse files Browse the repository at this point in the history
  • Loading branch information
aweell committed May 3, 2024
1 parent 54cd88c commit c3d6522
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tokens/blau.json
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,12 @@
"type": "borderRadius"
}
},
"themeVariant": {
"successFeedback": {
"value": "inverse",
"type": "themeVariant"
}
},
"text": {
"weight": {
"cardTitle": {
Expand Down
6 changes: 6 additions & 0 deletions tokens/movistar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,12 @@
}
}
},
"themeVariant": {
"successFeedback": {
"value": "default",
"type": "themeVariant"
}
},
"global": {
"palette": {
"movistarBlue": {
Expand Down
6 changes: 6 additions & 0 deletions tokens/o2-new.json
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,12 @@
}
}
},
"themeVariant": {
"successFeedback": {
"value": "inverse",
"type": "themeVariant"
}
},
"global": {
"palette": {
"beyondBlue": {
Expand Down
6 changes: 6 additions & 0 deletions tokens/o2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,12 @@
}
}
},
"themeVariant": {
"successFeedback": {
"value": "inverse",
"type": "themeVariant"
}
},
"global": {
"palette": {
"o2BluePrimary": {
Expand Down
26 changes: 25 additions & 1 deletion tokens/schema/skin-schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"additionalProperties": false,
"required": ["light", "dark", "radius", "text", "global"],
"required": ["light", "dark", "radius", "text", "global", "themeVariant"],
"properties": {
"global": {
"additionalProperties": false,
Expand Down Expand Up @@ -37,6 +37,10 @@
"allOf": [{ "$ref": "#/global/lineHeight" }]
}
}
},
"themeVariant": {
"comment": "Aquí se definen las variantes de tema",
"allOf": [{ "$ref": "#/global/themeVariant" }]
}
},
"global": {
Expand Down Expand Up @@ -375,6 +379,13 @@
"tabsLabel": { "$ref": "#/definitions/lineHeightProperties" },
"title2": { "$ref": "#/definitions/lineHeightProperties" }
}
},
"themeVariant": {
"additionalProperties": false,
"required": ["successFeedback"],
"properties": {
"successFeedback": { "$ref": "#/definitions/themeVariantProperties" }
}
}
},
"definitions": {
Expand Down Expand Up @@ -590,6 +601,19 @@
}
},
"required": ["value", "type"]
},
"themeVariantProperties": {
"type": "object",
"patternProperties": {
"value": {
"type": "string",
"enum": ["default", "inverse", "alternative"]
},
"type": {
"const": "themeVariant"
}
},
"required": ["value", "type"]
}
}
}
6 changes: 6 additions & 0 deletions tokens/telefonica.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,12 @@
}
}
},
"themeVariant": {
"successFeedback": {
"value": "inverse",
"type": "themeVariant"
}
},
"global": {
"palette": {
"telefonicaBlue": {
Expand Down
6 changes: 6 additions & 0 deletions tokens/tu.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,12 @@
}
}
},
"themeVariant": {
"successFeedback": {
"value": "inverse",
"type": "themeVariant"
}
},
"global": {
"palette": {
"primary": {
Expand Down
6 changes: 6 additions & 0 deletions tokens/vivo-new.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,12 @@
}
}
},
"themeVariant": {
"successFeedback": {
"value": "inverse",
"type": "themeVariant"
}
},
"global": {
"palette": {
"vivoPurple": {
Expand Down
6 changes: 6 additions & 0 deletions tokens/vivo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,12 @@
}
}
},
"themeVariant": {
"successFeedback": {
"value": "inverse",
"type": "themeVariant"
}
},
"global": {
"palette": {
"vivoPurple": {
Expand Down

0 comments on commit c3d6522

Please sign in to comment.