You should always run pnpm prettier:fix
and pnpm lint:style:fix
before you commit, in order to let your code follows the styling specification.
- For base elements, see W3C.
- For Material You styled elements, see Material You.
Use [part~="name"]
inside a component, while only users use ::part(name)
.
Sort CSS properties alphabetically, move CSS variables before regular CSS properties.
You can do the sorting by running bun run lint:style:fix
instead of manually doing so.