Skip to content

Commit

Permalink
shorthand notation
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed May 15, 2024
1 parent cbcbe7f commit 11c2151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/blog/introducing-pigment-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ We've also ported over [the `sx` prop](/system/getting-started/the-sx-prop/) fro
And in Pigment CSS we've extended support for `sx` to include _all_ DOM nodes—not just Material UI components—so you don't need to wrap a simple `<div>` or `<span>` with a Box component to apply theme styles to it.

```jsx
<section sx={{ padding: '1rem', border: '1px solid red' }}>
<h1 sx={{ fontSize: '2rem', fontWeight: 700, marginBottom: '.5rem' }}>
<section sx={{ p: '1rem', border: '1px solid red' }}>
<h1 sx={{ fontSize: '2rem', fontWeight: 700, mb: '.5rem' }}>
Introducing Pigment CSS: the next generation of CSS-in-JS
</h1>
<p sx={{ color: 'blue', fontWeight: 500 }}>
Expand Down

0 comments on commit 11c2151

Please sign in to comment.