Hi, Everyone.
Variables help here. I have two Collections, namely Primitives, where I store the default colours and values and Tokens, where I reference my alias to the Primitives.
The Problem
Originally, there was no brand or colour palette associated with the application. So, I had to use the colour picker to create the primitives manually. Also, the way I named them in the primitives level was based on the state (default, hover, pressed, etc) of the UI component. The way I named the alias references the primitive name (ds-dropdown-input-fill/default), for example. I provided two screenshots showing the structure, naming, and categorizing. The Tokens naming convention is the same as the Primitives one, except I added "ds" before the Primitives.
Questions
-
Is this considered best practice? I based the colour variables on colours that did not have a palette to begin with, so I thought it would be easier to maintain the growing list of colours assigned per UI component (dropdown, button, split-button). Some are the same; some are not the same, which made it harder to begin categorizing the colours. This application runs on Microsoft, so I have had difficulty looking for the palette since it was created a while ago.
-
Is there a way to go back and try the default approach of creating the palette, assigning primitive variables, and referencing primitives to the tokens from my existing Collections? This is probably not possible because then I would have to manually categorize the colours that need to be organized in the first place.
-
Is there a better naming convention in my Primitives Collection so it is shorter, concise and specific given my use case?
-
Should I stick to this method?
Thank you.