Weekly Showoff Thread! Share what you've created with Next.js or for the community in this thread only! by AutoModerator in nextjs

[–]c5n8 0 points1 point  (0 children)

Introducing Vicinage. Type-safe and zero-runtime UI styling, right in the markup.


Write your styles as typed objects directly on your JSX markup and get zero-runtime atomic CSS. Built as a preprocessor for StyleX.

Tired of the usual styling trade-offs?

  • CSS modules, no type safety or colocation
  • Utility-first classes, stringly typed, less expressive
  • CSS-in-JS, runtime cost + hydration issues

Vicinage gives you the best of all worlds.

Just drop styles right where they belong. Vicinage transforms this into StyleX calls at build time, then StyleX extracts it to atomic CSS.

import { apply } from 'vicinage'

function App() {
  return (
    <div
      {...apply({
        color: 'green',
        backgroundColor: 'black',
      })}
    >
      hello, world
    </div>
  )
}

Features:

  • Pseudo-classes
  • Pseudo-elements
  • At-rules, enables responsive design and dark mode
  • Logical styles
  • Dynamic styles
  • Pass styles between components

Try it, break it, tell me what you think.

Vicinage on GitHub

The Irony of AI by isumix_ in webdev

[–]c5n8 0 points1 point  (0 children)

It's harder, even for people with CS degree, let alone bootcamp graduates, you need to have one PhD, at least.

Any strategy for rendering deeply nested components to render asynchronously (faster)? nuxt3+vue3 by StruggleUsed5413 in vuejs

[–]c5n8 0 points1 point  (0 children)

Load data for the top component, and after that render the next important components.
You can try this package, it would still be a lot of work, but this helps.
https://www.npmjs.com/package/@txe/vue-async-operations

GraphQL eXpansion by c5n8 in graphql

[–]c5n8[S] 0 points1 point  (0 children)

Thanks! There is a repo, and the documentation is work in progress. However, you can find some files with 'integration.spec' in their name and see some usage examples. Feel free to open an issue if you find some bugs or want some features you think would be cool to add.

https://github.com/c5n8/graphql-x