Theming
Styling a regular component:
Styling a common component:
Styling all components:

Updating a project theme:
- Make a post in the
nextsteps-frontendslack channel with the change you intend to make. This helps all devs to anticipate the change or offer alternate solutions to the issue. - Go to
/libs/shared/ui/src/libs/themes. Each folder (egbase,website) are project themes and contain atokensfolder. - Update the appropriate file in
tokensand check the theme stories are correct and capture your update. See mui documentation for the palette, typography and component tokens.
Creating a project theme:
- Create a material theme
- Use the
breakpointsandspacingtheme tokens frombasein every new project theme. Seelibs/shared/ui/src/libs/themes/website/theme.tsfor an example. - Update
index.tsin/libs/shared/ui/src/libs/themeswith the new theme name.
export enum ThemeName {
...ExistingThemes,
newTheme = 'newTheme'
}
// Add within getThemes()
const themes = {
...ExistingThemes
newTheme: {light: newThemeLight, dark: newThemeDark}
}