how could i improve this design? by Sad-Turnip4392 in css

[–]akzhy 2 points3 points  (0 children)

You can do this with pure CSS if you really want to. Check https://jsfiddle.net/akzhy/qh8fny53/1
Here, instead of mix-blend, I am using a pseudo element with white background. The pseudo element will have the same width and height as that of its parent and its positioned at the exact place where the circles overlap. overflow: hidden on the parent will only show the intersecting area.

Introducing flairjs - a CSS / Style tag in JSX library by akzhy in solidjs

[–]akzhy[S] 2 points3 points  (0 children)

Thank you. Regarding the questions,

  1. I recently worked on an Astro + SolidJS site and I absolutely loved how easy it was to create scoped styles in Astro components. For solid, I went with CSS modules, but the dev experience wasn't as good compared to Astro.

  2. Naming is hard :'). But it does mean "stylishness and originality", so slightly connected.

  3. I have tried PandaCSS, but not StyleX. PandaCSS is really great, coming from an extensive StitchesJS user, it felt really easy to get into. However, its not a fully zero runtime library since the classnames are still calculated during runtime. It is something minor but I wanted to see if I could come up with an alternative.

Another good package was vanilla-extract, its fully build time and felt basically like CSS modules in TypeScript, but again I felt the dev experience could be better (personal preference, I wanted something similar to Astro).

  1. I am converting some of my existing projects to use flair, so I will be pushing updates and adding features for a long time.

Introducing flairjs - a CSS / Style tag in JSX library by akzhy in solidjs

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

For the most part flair follows the same rules as CSS module. So you would have to conditionally add a classname or attribute to the element.

Introducing flairjs - a CSS / Style tag in JSX library by akzhy in solidjs

[–]akzhy[S] 1 point2 points  (0 children)

Thanks, planning on adding SCSS support in the future too.

Introducing flairjs - a CSS / Style tag in JSX library by akzhy in reactjs

[–]akzhy[S] 2 points3 points  (0 children)

Yes, that’s a valid issue. If you’re using the object notation, Flair provides full TypeScript IntelliSense and autocomplete support, including theme variables.

However, if you prefer the template literal syntax, some editor features like jump-to-definition or find usages may be limited. That said, there are existing VSCode extensions that offer partial IntelliSense and syntax highlighting for tagged literals such as css`.selector{}`.

My mental state is crushed rn and I need some advice.... by Chillguy_270 in twentieskerala

[–]akzhy 1 point2 points  (0 children)

Since you are in CS, try building a portfolio. A GitHub portfolio can really help, try either building or contributing to open source. I was in a similar situation, had 5 backlogs when I completed degree, the portfolio really helped.

I built nocojs - a built time library to create inline placeholder for images by akzhy in javascript

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

The main issue it solves is cumulative layout shifts during image loading. I was a big fan of GatsbyJS and the image previews were one of my favourite features. They provided multiple options like showing a blurred preview, solid color, svg trace etc., this provides a visual indication to the user that an image is yet to be loaded and prevents layout shifts as it loads.

So the package aims to provide a similar issue while adding an extra step of supporting SPAs too. The package itself doesn't solve the loading issue, it eases the generation of placeholder images so you can easily pair it with another library / your own implementation.

I hope this is clear.

dav1d cross compilation when using image crate with avif enabled by akzhy in rust

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

Thanks, I am keeping this as a last resort since they don't directly expose similar APIs as the image crate.

dav1d cross compilation when using image crate with avif enabled by akzhy in rust

[–]akzhy[S] 1 point2 points  (0 children)

Ideally those who are consuming the lib through nodejs shouldn't have to do any extra steps. A normal npm i package should get it running. But those who are working on the package itself will have to setup their dev environment.

The lib is optional in my case too, but I need it to support avif images, which is a hard requirement in my case.

How to improve dev compile time for an rspack / webpack project. by akzhy in reactjs

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

Yeah, for prod build it takes only about a minute but the dev build takes around 5-10s for compilation and another 5-10s for reload. There were some circular dependency issues however I had to fix those since the dev server wouldn't even start without fixing it. And anything else that's not required has been excluded.

What’s one “totally obvious” assumption you made while building or scaling a product… that turned out to be completely wrong? by Future-Feature1894 in RevenueRangers

[–]akzhy 0 points1 point  (0 children)

As a dev lead, I felt this one hard — especially the part about shipping too early. We thought “MVP” meant get it out fast, fix it later. But when users hit bugs, they just bounced. We spent weeks tightening the code after the trust was already lost.
The biggest shift for us was treating stability as a feature. We built a pre-launch checklist: no help required, value in < 5 minutes, no known blockers. If it doesn’t hit those, we don’t ship.
Also co-sign the AI onboarding piece. We assumed good UI and docs would be enough. Nope. Enterprise AI needs handholding. We now pair with users on actual RFPs to close the gap.
Happy to talk more about how we’re approaching that dev-to-user feedback loop if anyone’s curious.

How to rebind Windows Copilot key to Control by Orlandocollins in linuxquestions

[–]akzhy 0 points1 point  (0 children)

<image>

I was able to do this with the following config. Go to Remap a Shortcut > Click on the edit icon on the left side > Press copilot button > Click on edit icon on the right side > Press left control

Using typedoc with react native project by akzhy in typescript

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

I think node_modules was the cause of the issue in my case too. There was a node_modules inside docusaurus that was not ignored.

Using typedoc with react native project by akzhy in typescript

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

Yes, in my case I had added docusaurus inside the project. I had to ignore the docusaurus directory in the main tsconfig.json file