As of Recipe v14, emotion themes are now supported, making Recipe more flexible and adaptable, allowing downstream apps to use themes to utilize Recipe components more effectively.
Recipe themes are extended from the MUI default theme and represent a single source of truth for supported theme properties. If there is a specific use case for doing so, these themes can be further extended.
Recipe defines and makes accessible the following supported themes:
ezThemeezMarketplaceTheme - extends ezThemeezFulfillmentTheme - extends ezThemeTo learn more about how to use and extend these themes, read our Getting Started section on Recipe Themes.
Recipe supports the following set of design tokens for colors:
#151515common.neutral170#565a5ccommon.neutral160#787878common.neutral150#b2b3b3common.neutral140#e5e6e6common.neutral130#f5f7f7common.neutral120#fafbfccommon.neutral110#fffcommon.neutral100#1d3c34common.primary120#034a34common.primary110#00b373common.primary100#f0faf7common.primary90#f9d055common.yellow110#f9fae4common.yellow100#ff585dcommon.red100#7f379ccommon.purple100#f8f3facommon.purple90#3f61ffcommon.blue100#f2f4ffcommon.blue90#407560common.green105#00a40fcommon.success100#f0fae4common.success90#972f2fcommon.alert110#d3302fcommon.alert100#f7c1c1common.alert90#fdefefcommon.alert80#926a00common.warning110#e9a801common.warning100#fff3cecommon.warning90#fcf6e5common.warning80Recipe supports the following set of design tokens for typography:
ezTheme uses the Lato font, which also extends to ezMarketplaceTheme.
fontFamily: 'Lato', 'Helvetica Neue', 'Arial', 'Helvetica', 'sans-serif';
ezFulfillmentTheme uses the Montserrat font for headers and the Roboto Flex font for everything else.
fontFamily: 'Montserrat', 'Helvetica Neue', 'Arial', 'Helvetica', 'sans-serif';
fontFamily: 'Roboto Flex', 'Helvetica Neue', 'Arial', 'Helvetica', 'sans-serif';
ezTheme icons support the following sizes:
small: 16px
medium: 24px
large: 32px
xlarge: 60px
Recipe uses z-indices sparingly, as this can cause maintenance issues with stacking context within Recipe and in downstream applications. In some cases, we carefully use z-index values to properly layer components like modals. Recipe mirrors the MUI z-index values to avoid conflicts with components that were implemented with MUI. While you can override the z-indices, it is discouraged because it will likely have cascading effects.
Our currently specified z-indices:
EzModal: 1300
EzAutosuggest: 1350
EzDateInput: 1350
EzPopover: 1350
EzSelect: 1350
EzTimeInput: 1350
EzTooltip: 1500