Development direction: Jorge Sanes

Development: Jhonatan Salcedo

Design: Melissa Porras

A living collection of design systems and patterns

v3.4.0

Github linkStorybook linkNPM link

New Dark Mode

Now you can toggle between the regular (Light) and the new Dark Mode.

NEW Check out the text colors.

Installation

1. Install emerald-ui.

npm i emerald-ui

2. Import the appropriate styles in your App.js or main js file.

  • Import the base styles (mandatory):
  • For the CE Broker styles:
  • For the EverCheck styles:
  • For the Table Mesa styles:

Note that if you want to apply the CE Broker, EverCheck or Table Mesa styles, you need to also import the Emerald-UI base styles. First, import the base styles, then import the product specific styles.


Dark Theme

In order to activate the Dark Theme you only need to do the following two steps

  • Import the default Dark Theme styles:
  • Or the CE Broker Dark Theme styles:
  • Or the EverCheck Dark Theme styles:
  • Add the class eui-dark-theme to the body or outermost container.

There might be instances in which you need to apply the dark theme to a component or a group of components even if the global theme is the regular, light one. In order to achieve this, wrap the component(s) in a div with a className of eui-dark-theme no-bg. This will add the dark theme styles to the inner components, except for the contextual components like the Popover, DropdownMenu and Calendar, which will keep the light theme styles.


Text color classes

There are a series of classes that must be used when coloring text. This is important because when the colors change, you won't have to do anything in the code. Note that the color codes are displayed here only for reference and should not be used directly. Use the classes instead. These are the classes:

ColorLight themeDark theme
circletext-dark#1D2121rgba(255, 255, 255, 0.87)
circletext-color#282e2ergba(255, 255, 255, 0.6)
circletext-light#4b5353rgba(255, 255, 255, 0.4)
circletext-lighter#607b7brgba(255, 255, 255, 0.3)
circletext-lightest#abbdbdrgba(255, 255, 255, 0.5)
circletext-off-white#f9fafcrgba(255, 255, 255, 0.5)
circletext-off-white-dark#f3f6f6rgba(255, 255, 255, 0.8)
circletext-off-white-darker#e6e8ecrgba(255, 255, 255, 0.1)
circletext-off-white-darkest#bec6c6rgba(255, 255, 255, 0.1)
circletext-primary#0f3166#9badcd
circletext-info#0073e9#8ccbff
circletext-success#00a950#9adcad
circletext-warning#ffaa00#fef697
circletext-danger#de350b#ffa88e
circletext-brand#0073e9#0073e9
circletext-brand (For CEB)#168757#168757
circletext-brand (For EC)#3fda97#3fda97

Other color classes

You can use the following classes to change css properties depending on the brand you're using:

ColorLight themeDark theme
circlebg-brand#0073e9#0073e9
circleborder-brand#0073e9#0073e9
circlebg-brand (for CEB)#168757#168757
circleborder-brand (for CEB)#168757#168757
circlebg-brand (for EC)#3fda97#3fda97
circleborder-brand (for EC)#3fda97#3fda97

Color copied to clipboard