Closed humancompanion-usds closed 3 months ago
// va-mobile-app specific colors blackWith30PercentOpacity: '#0000004D', crisisLineRed: '#b51c08', toolbarBackgroundGray: '#f9f9f9', whiteWith70PercentOpacity: '#ffffffb3', snackBarBlack: '#1E1E1E', // dark mode darkmodeGrayDark: '#121212', darkmodeBorder: '#4C4C4C', darkmodeLightBlue: '#409CFF', darkmodeRed: '#FF4F5B', darkmodeGrayWarmDark: '#292929', primaryDarker2: '#2864AF',
Light and dark: https://github.com/department-of-veterans-affairs/va-mobile-app/blob/develop/VAMobile/src/styles/themes/colorSchemes.ts
Most of these colors are not in the USWDS palette thus we cannot support them. The flagship mobile app team will need to choose from the USWDS palette.
There were 2 colors that did match USWDS colors. Messaged Ryan about how they want to proceed. I used this tool for the nearest USWDS colors.
Another question I have is around the semantic token needs of the mobile app. We can create, for example, vads-color-primary-dark-on-light, vads-color-primary-dark-on-dark, vads-color-secondary-lightest-on-light, vads-color-secondary-lightest-on-dark because those have some semantic meaning. What I'd like to move away from is just red/blue/gray-on-light or on-dark because then we don't understand how those are being used. They lack any semantic meaning. We still have red, blue, gray, gold, green, etc. But we're going to try to get rid of those over time.
I wanted to provide a quick update from the mobile app team. We're currently in the process of figuring out a few things related to this ticket:
We're starting to look into how semantic tokens are going to work in the mobile design system and in the mobile app. Currently, the mobile app does not have "on-dark" or "on-light" included in any variable names. Instead, the same variable name is used in both light and dark mode, and we use themes to identify the color in each mode. We'll follow up when we've determined how this will work in the mobile design system. (cc @narin)
We're also working to clean up our colors as we build the design tokens. The Design Library file is currently out-of-date and we're building a more accurate list of colors here. All of these colors will either be from VADS or USWDS. Apologies for any confusion with the Design Library file. We'll follow up when we have the updated list of colors.
New token names are as follows:
Action colors (used in buttons, action menus) vads-color-primary-on-dark ➡️ vads-color-action-surface-default-on-dark vads-color-secondary-on-dark ➡️ vads-color-action-surface-destructive-on-dark vads-color-base-active-on-light ➡️ vads-color-action-border-base-active-on-light vads-color-base-active-on-dark ➡️ vads-color-action-border-base-active-on-dark Feedback colors (used in alerts, snackbar, loading indicator) vads-color-info-darker-on-dark ➡️ vads-color-feedback-surface-info-on-dark vads-color-success-darker-on-dark ➡️ vads-color-feedback-surface-success-on-dark vads-color-warning-darker-on-dark ➡️ vads-color-feedback-surface-warning-on-dark vads-color-error-darker-on-dark ➡️ vads-color-feedback-surface-error-on-dark vads-color-warning-on-dark ➡️ vads-color-feedback-border-warning-on-dark App background color vads-color-gray-darkest-on-dark ➡️ vads-color-bg-default-on-dark
@danbrady - I made these updates in our source of truth and in guidance. Please add them to Figma when you get a chance then close this out. Thanks!
Added tokens to Figma.
Description
Add color tokens for the mobile app from their Figma file: https://www.figma.com/file/QVLPB3eOunmKrgQOuOt0SU/%F0%9F%93%90-DesignLibrary2.0---VAMobile?type=design&node-id=3817-7448&mode=design&t=nBrJUSB2Li8QZIPi-0
Details
Need to think about where mobile fits into the taxonomy of tokens.
Tasks
Acceptance Criteria