woocommerce/docs/user-experience/colors.md

16 lines
1.0 KiB
Markdown
Raw Normal View History

2023-11-29 18:48:05 +00:00
---
2023-11-29 19:26:22 +00:00
post_title: User experience guidelines - colors
2023-11-29 18:48:05 +00:00
---
## Colors
When creating extensions for the WordPress wp-admin, use the core colors, respect the users WordPress admin color scheme selection, and ensure your designs pass AA level guidelines.
2023-11-06 12:08:29 +00:00
When using components with text, such as buttons, cards, or navigation, the background-to-text contrast ratio should be at least 4.5:1 to be [WCAG AA compliant](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html). Be sure to [test your color contrast ratios](https://webaim.org/resources/contrastchecker/) to abide by WCAG standards.
2023-11-06 12:08:29 +00:00
- [Accessibility handbook on uses of color and contrast](https://make.wordpress.org/accessibility/handbook/current-projects/use-of-color/)
- [Color contrast ratio checker](http://webaim.org/resources/contrastchecker/)
- [More resources regarding accessibility and color testing](http://webaim.org/resources/contrastchecker/)
For WooCommerce-specific color use, review our [Style Guide](https://woo.com/brand-and-logo-guidelines/).