Skip to content

Commit

Permalink
[pigment-css] Example fix leading spaces (#41439)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Mar 11, 2024
1 parent f3a8c41 commit 6ed0fbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
23 changes: 10 additions & 13 deletions examples/pigment-css-nextjs-ts/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ export default function Home() {
})}
>
<h1
className={`
${css(({ theme }) => ({
className={`my-custom-class ${css(({ theme }) => ({
fontFamily: 'system-ui, sans-serif',
fontSize: '4rem',
fontWeight: 500,
Expand Down Expand Up @@ -153,17 +152,15 @@ export default function Home() {
</span>
</h1>
<div
className={`
${css({
fontFamily: 'system-ui, sans-serif',
letterSpacing: '2px',
fontWeight: 500,
opacity: 0.5,
lineHeight: 2,
textAlign: 'center',
textWrap: 'balance',
})}
`}
className={css({
fontFamily: 'system-ui, sans-serif',
letterSpacing: '2px',
fontWeight: 500,
opacity: 0.5,
lineHeight: 2,
textAlign: 'center',
textWrap: 'balance',
})}
>
CSS-in-JS library with static extraction
</div>
Expand Down
3 changes: 1 addition & 2 deletions examples/pigment-css-vite-ts/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export default function Home() {
})}
>
<h1
className={`
${css(({ theme }) => ({
className={`my-custom-class ${css(({ theme }) => ({
fontFamily: 'system-ui, sans-serif',
fontSize: '4rem',
fontWeight: 500,
Expand Down

0 comments on commit 6ed0fbe

Please sign in to comment.