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

[pigment-css] Example fix leading spaces #41439

Merged
merged 1 commit into from Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 10 additions & 13 deletions examples/pigment-css-nextjs-ts/src/app/page.tsx
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
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