(no title)
65 | 14 days ago
Also you can just use display: flex with justify-content: center and align-items: center for non absolutely positioned elements.
Just because it uses CSS grid does not make it more "correct" than flexbox.
I also only see one usage of custom @property properties here, which has been one of the most useful things to happen to CSS in years. They have many different use cases, particularly for complex animations.
k33n|14 days ago
65|13 days ago
You also generally don't want to use position: fixed as it can allow the user to scroll behind the modal.