Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More theme customization and typing. #21

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

luisdlopez
Copy link
Contributor

Proposed Changes

A more in-depth example of how to customize the theme including typings and css variable usage.

  • Bug fix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes, no api changes)
  • Build or CI related changes
  • Documentation content changes
  • Other, please describe:

What is the current behaviour?

There were still some hardcoded values on the SCSS code (spacing values) that needed to come from MUI's theme setup.

What is the new behaviour?

The theme is customized even more.

  • custom spacing values come from MUI's theme (utility functions now use the same spacing values)
  • animations (transitions, easein and out) use transitions defined in MUI's theme
  • typography is fully defined in the theme

File material-ui-pigment-css.d.ts has examples of how to extend the theme's typing.

Includes bug fix for bugs not loading property

@luisdlopez luisdlopez merged commit 8029e9b into main Nov 18, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants