Telefonica/mistica-design

Use variables in Mobile and Desktop libs

yceballost opened this issue · 1 comments

Border radius variables

Since border radius is currently a variable exported from Mistica mobile, we need to find a way to change the library where the border radius variables are coming from.

The initial idea is to update those variables via plugin (since they have the same name) to be the ones coming from the middleware library.

There are two scenarios:

  • It’s an instance of a Mística component: in this case, it will need to be reset to the default (when changed in the library, it will be updated in the file).
  • The current variable (exported from mobile) has been used in a component or layer: here, it will be necessary to use that plugin to swap the ones exported from skins.

Text variables

There are multiple strategies in order to migrate texts:

Keep text as styles

  1. Move the default styles from the libraries (Movistar) to skins.
  2. Modify the properties (size, line height, fontWeight…) of each style so that they pull from variables.

In their files, the teams will need to:

  • If themer has been used: run the plugin to reset them to default.
  • If themer has not been used: the change should be automatic.

Have a mix of variables and styles

  1. Follow the same that apply to "Keep text as styles"
  2. Export also all properties as variables, so is posible to use a style or to be more granular if needed.

The second option has two possibilities:

  1. Remove component styles and export them only as variables
  2. Keep also component styles

We are going to divide the pages of the libraries:

Page Owner Reviewers Status
Atomic resources @aweell @AnaMontes11 ✔️
Accordion @aweell @AnaMontes11 @andredelramo-hm ✔️
Avatar @aweell @AnaMontes11 @andredelramo-hm ✔️
Action Sheets (Native) @aweell @AnaMontes11 ✔️
Badge @aweell @AnaMontes11 ✔️
Buttons @aweell @AnaMontes11 @andredelramo-hm ✔️
Button Layouts @aweell @AnaMontes11 ✔️
Callout @aweell @AnaMontes11 ✔️
Breadcrumbs @aweell @AnaMontes11 ✔️
Cards @aweell @AnaMontes11 @yceballost ✔️
Carousels @aweell @AnaMontes11 ✔️
Checkbox @aweell @AnaMontes11 ✔️
Chips @aweell @AnaMontes11 ✔️
Counter @andredelramo-hm @aweell
Divider @aweell @andredelramo-hm
Empty States @andredelramo-hm @aweell
feedbacks @andredelramo-hm @aweell
Header @andredelramo-hm @aweell
Hero @andredelramo-hm @aweell @AnaMontes11
Keyboards (Native) @andredelramo-hm @aweell
Inputs Fields @andredelramo-hm @aweell @yceballost @AnaMontes11
Lists @andredelramo-hm @aweell @yceballost @AnaMontes11
Loading Bar (web) @andredelramo-hm @aweell
Loading Screen @andredelramo-hm @aweell
Logo @andredelramo-hm @aweell
Menu @andredelramo-hm @aweell
Modals @yceballost @andredelramo-hm ✔️
Mosaic @yceballost @andredelramo-hm ✔️
Navigation bars @yceballost @andredelramo-hm @aweell ✔️
Popover @yceballost @andredelramo-hm @AnaMontes11 ✔️
Progress bar @yceballost @andredelramo-hm ✔️
Radio button @yceballost @andredelramo-hm @AnaMontes11 ✔️
Select @yceballost @andredelramo-hm @AnaMontes11 ✔️
Sheet @yceballost @andredelramo-hm @aweell ✔️
Skeletons @yceballost @andredelramo-hm @AnaMontes11 ✔️
Slider @yceballost @andredelramo-hm ✔️
Snackbar / crouton @yceballost @andredelramo-hm @AnaMontes11 ✔️
Spinner @yceballost @andredelramo-hm ✔️
Splash @yceballost @andredelramo-hm ✔️
Stacking Group @AnaMontes11 @yceballost @aweell ✔️
Stepper @AnaMontes11 @yceballost @andredelramo-hm ✔️
Switch @AnaMontes11 @yceballost ✔️
Tabs @AnaMontes11 @yceballost @andredelramo-hm ✔️
Tab bars @AnaMontes11 @yceballost @andredelramo-hm ✔️
Table @AnaMontes11 @yceballost @aweell ✔️
Tag @aweell @yceballost @andredelramo-hm ✔️
Text Link @AnaMontes11 @yceballost @aweell ✔️
Timer @AnaMontes11 @yceballost @aweell ✔️
Title @AnaMontes11 @yceballost @andredelramo-hm ✔️
Tooltip @AnaMontes11 @yceballost @AnaMontes11 ✔️
Native icons @AnaMontes11 @yceballost ✔️
Community @AnaMontes11 @yceballost @aweell ✔️