Closed jantimon closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
next-yak-benchmark | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 12, 2024 0:43am |
yacijs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 12, 2024 0:43am |
The css
function in cssLiteral.ts
has been enhanced to support dynamic CSS expressions. It now integrates with CSSProperties
from React and YakTheme
from "index.d.ts". Several new types were introduced to facilitate these changes. The function signature was updated to accommodate additional parameters and logic.
File Path | Change Summary |
---|---|
packages/next-yak/runtime/mocks/cssLiteral.ts |
The css function underwent significant changes. It now imports CSSProperties from React and YakTheme from "index.d.ts". Introduced new types such as ComponentStyles , StaticCSSProp , CSSInterpolation , CSSStyles , CSSFunction , and PropsToClassNameFn . Updated function signatures to handle dynamic CSS expressions. |
In the code, where styles reside,
New themes and types now coincide.
Dynamic CSS, a dance so bright,
With Yak and React, takes flight.
A rabbit's joy, in lines of lore,
Enhancing styles forevermore.
🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Comparing feature/next-yak-internal-css-literal
(e78a9d5) with main
(5a4042d)
✅ 2
untouched benchmarks
this is the
css
mock implementation for #56during jest/vite it's not returning any class names because there is no css extraction compile step
Summary by CodeRabbit
css
function to support dynamic CSS expressions, improving styling flexibility.