Skip to main content
The Orderly SDK has a default theme, but you can also customize the theme yourself.

Default theme

Colors

The Components SDK uses the following colors:
  • Besides base, each color theme contains 3 colors:
    • default: The default shade of the color
    • light: A lighter shade than default
    • darken: A darker shade than default
    • contrastText: Text color, intended to contrast with default
  • base-contrast defines color of texts. The library uses transparency to differentiate the importance of texts.

Typography

The Components SDK uses Manrope as the default font.

Rounded

Customized theme

CSS Variables

You can change the color of elements through creating a theme.css under the project. Simply add the following into the file, and import it for it to take effect:
theme.css
CSS variables must be defined without color space function. See the Tailwind CSS documentation for more information.
Don’t include the color space function or opacity modifiers won’t work
Define your CSS variables as channels with no color space function
You can use the Theme tool that we provide to quickly create your own theme!

Style override

The Components SDK provides the following two ways to override the style of components:

class

To override the style of a certain class. For example, if we want to modify the style of a button component, we can achieve this by selecting the element using the class selector. For instance, to change the color of the button component:
If you want to change the disabled status of the button component:

id

If you want to modify the style of a specific component, you can use the id selector to define the component’s style. For example, if you want to modify the style of the “Create Order” button:
Supported ids are as below:

appIcons

You can add your logo to the indicated position in the diagram above using the following method:

main

The logo for the desktop version, it will be displayed in the top left corner of the page.

img

  • Type: string
  • Required: false

component

  • Type: ReactNode
  • Required: false

className

  • Type: string
  • Required: false

secondary

The logo for the mobile web version, it will be displayed in the top right corner of the page and in the top left corner of the bottomSheet component.

img

  • Type: string
  • Required: false

component

  • Type: ReactNode
  • Required: false

className

  • Type: string
  • Required: false