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

feat: Use OKLCH colors #7

Merged
merged 2 commits into from
Feb 9, 2025
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@astrojs/sitemap": "^3.2.1",
"@codesandbox/sandpack-react": "^2.19.11",
"@codesandbox/sandpack-themes": "^2.0.21",
"@ctrl/tinycolor": "^4.1.0",
"@lekoarts/flickr-loader": "^1.2.2",
"@nanostores/persistent": "^0.10.2",
"@nanostores/react": "^0.8.4",
Expand All @@ -38,6 +37,7 @@
"@vanilla-extract/css": "^1.17.1",
"@vanilla-extract/sprinkles": "^1.6.3",
"astro": "^5.2.5",
"culori": "^4.0.1",
"hast-util-to-string": "^3.0.1",
"hastscript": "^9.0.0",
"lodash-es": "^4.17.21",
Expand All @@ -59,6 +59,7 @@
"@antfu/eslint-config": "^4.1.1",
"@netlify/edge-functions": "^2.11.1",
"@playwright/test": "^1.50.1",
"@types/culori": "^2.1.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.13.1",
"@types/react": "^19.0.8",
Expand Down
26 changes: 17 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/pages/[...garden].astro
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ const isPartOfSeries = !!(garden.series?.id && postsInSeries.length > 1)
<Prose>
{
isPartOfSeries ? (
<SeriesCallout id={garden!.series!.id} currentPart={garden!.series!.part} postsInSeries={postsInSeries} /><Spacer size={8} axis="vertical" />
<>
<SeriesCallout id={garden!.series!.id} currentPart={garden!.series!.part} postsInSeries={postsInSeries} />
<Spacer size={8} axis="vertical" />
</>
) : null
}
<Content components={components} />
Expand Down
12 changes: 6 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ import Tag from '@components/primitives/tag.astro'
import { fetchGithub } from '@lib/github'

const cardGradients = [
`linear-gradient(to right top, #A774F2, #F25D76, #FF964F)`,
`linear-gradient(to right top, #9B7BFE, #54B5F0, #88F2A9)`,
`linear-gradient(to right top, #933890, #E08896, #CC98DD, #D1CEE2)`,
`linear-gradient(to right top, #6666DE, #5778C9, #94D1C9, #A1D8FF)`,
`linear-gradient(to right top, #3e206d, #af3942, #d66a38, #eacc15)`,
`linear-gradient(to right top, #511a2a, #cb598d, #b24ecb, #ebb8eb)`,
`linear-gradient(to right top, oklch(66.61% 0.1837 300.15), oklch(67.74% 0.1832 13.36), oklch(77.11% 0.1522 52.47))`,
`linear-gradient(to right top, oklch(67.36% 0.1872 291.84), oklch(73.93% 0.1247 238.43), oklch(87.84% 0.1422 152.56))`,
`linear-gradient(to right top, oklch(50.08% 0.1631 329), oklch(72.27% 0.1086 9.85), oklch(75.24% 0.1116 317.64), oklch(85.99% 0.0276 292.7))`,
`linear-gradient(to right top, oklch(57.37% 0.1784 279.18), oklch(58.58% 0.1302 265.82), oklch(81.69% 0.0634 185.86), oklch(85.79% 0.07861185785477327 239.70856913766124))`,
`linear-gradient(to right top, oklch(33.04% 0.1265 296.73), oklch(51.79% 0.1531 20), oklch(64.37% 0.1502 43.75), oklch(84.52% 0.1717 98.2))`,
`linear-gradient(to right top, oklch(30.91% 0.0837 5.42), oklch(62.18% 0.1548 354.01), oklch(60.24% 0.2012 319.11), oklch(84.41% 0.0889 326.33))`,
]

const openSourceRepos = [
Expand Down
Loading
Loading