Shade
Learn how to set and customize the shade of your theme.
Adjust the background and border colors of your components using the data-shade
attribute. This change is more noticeable in dark mode.
Shades
The available shades are:
glassy
Delete Item
This photo will be deleted from your iCloud Photos.
800
Delete Item
This photo will be deleted from your iCloud Photos.
900
Delete Item
This photo will be deleted from your iCloud Photos.
925
Delete Item
This photo will be deleted from your iCloud Photos.
950
Delete Item
This photo will be deleted from your iCloud Photos.
Adding shade to a specific component
You can add the data-shade
attribute to any component to apply a different shade to that specific component.
Customization
You have the flexibility to modify an existing shade or even bypass the default shades altogether. This can be achieved by assigning new values to the CSS variables that control borders and background colors.
Customizing a shade
Choose a shade to customize, then modify its CSS variables within the @layer
base block in your CSS file.
Default shades
Define the shade CSS variables in your CSS file by assigning them values within the :root
selector. Make sure to place these definitions inside the @layer
base block for proper layering.
Read the Dark mode section in the theming guide to learn about customizing shades in dark mode.