frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I made a Tailwind alternative for Preact

https://github.com/aziis98/preact-css-extract
4•aziis98•5h ago
This is a small TailwindCSS alternative based on a css template literal. I was inspired by styled-components and EmotionCSS, which however do not work well with ViteJS and specifically Preact.

This provides a better experience than Tailwind, as you can use all CSS language features without learning new conventions while maintaining a per-component styling approach.

This also turns out to be more inspectable in the browser's dev-tools, as snippets are extracted as-is and are not fragmented across thousands of small classes.

I wanted something more optimized than other CSS-in-JS alternatives that generate CSS at runtime, so I created a ViteJS plugin for this. It extracts all style snippets, replaces them with classes like css-a1b2c3, and injects all the corresponding styles into a CSS file in place of an "@extracted-css" directive.

There is also a preact options hook that adds a custom "classList" attribute, which maps to clsx for easy class composition (similarly to VueJS, Svelte, etc.).

P.S. I know other frameworks exist, but I have really been enjoying using Preact for frontend development lately.

Annual Reboot: 52 Questions to Reflect and Reset

https://elacrain.com/writing/annual-review/
1•simonebrunozzi•2m ago•0 comments

1D-Pong Game at 39C3

https://github.com/ogermer/1d-pong
1•oger•2m ago•1 comments

Ask HN: Is there a point to maintaining distant connections on social media?

1•Desafinado•4m ago•0 comments

70 person relay of Super Mario 64 [video]

https://www.youtube.com/watch?v=r-VFPEh59k4
1•HelloUsername•4m ago•0 comments

WhatsApp Is Untrustable

https://toki.la/posts/whatsapp
1•todsacerdoti•5m ago•0 comments

Ask HN: Moved to SF to build a startup. What next?

1•kvaranasi_•5m ago•0 comments

Mitigating the Billion Dollar Mistake

https://www.gingerbill.org/article/2026/01/11/mitigating-the-billion-dollar-mistake/
1•PKop•7m ago•0 comments

Show HN: A mobile-first React share sheet with native sharing

https://sharesheet.gwendall.com
2•ges•11m ago•0 comments

Ask HN: Tips for getting the ROM for an old speech synthesizer?

2•ctoth•12m ago•0 comments

Show HN: Karmic Tail Calculator – A Destiny Matrix Patterns

https://karmictail.net
1•lion__93332•12m ago•0 comments

Show HN: I forced Apple to admit a "Product Issue" using AI and CIA principles

https://medium.com/@ryu360i/when-authorization-breaches-availability-analyzing-the-27-2kb-icloud-...
1•ryuzaburo•13m ago•0 comments

PluriSnake gameplay [Sun Jan 11, 2026 puzzle] – Beta available [video]

https://www.youtube.com/watch?v=JAjd5HgbOhU
1•amichail•15m ago•1 comments

Ask HN: What was the best sci-fi book of 2025?

4•Erikun•16m ago•0 comments

I mapped out how debugging works during production incidents

https://nemorize.com/roadmaps/debugging-under-pressure
1•reverseblade2•16m ago•1 comments

Desperately Seeking Squircles (2018)

https://www.figma.com/blog/desperately-seeking-squircles/
2•kjeetgill•16m ago•0 comments

Show HN: AI Vibe Coding Hackathon

https://vibe.devpost.com
1•abdibrokhim•18m ago•0 comments

NCSA Mosaic 2.7, one of the first graphical web browsers

https://github.com/alandipert/ncsa-mosaic
1•stmw•20m ago•0 comments

guys why does armenian completely break Claude

https://twitter.com/dyushag/status/1993143599286886525
17•ag8•22m ago•5 comments

Systematically generating tests that would have caught Anthropic's top‑K bug

https://theorem.dev/blog/anthropic-bug-test/
2•jasongross•23m ago•0 comments

Sampling at negative temperature

https://cavendishlabs.org/blog/negative-temperature/
9•ag8•24m ago•0 comments

Show HN: Sunshine Optimist: Optimistic takes on daylight and sunset times

https://sunshineoptimist.com
1•willj•25m ago•0 comments

Worldview – persistent strategic context for Claude Code

https://www.extremeclarity.ai/worldview
1•faizanbhat•25m ago•1 comments

The Machinery of Terror

https://chrishedges.substack.com/p/the-machinery-of-terror
1•chmaynard•25m ago•0 comments

QR Spaces – One QR and custom domain to share all your links

3•iamgaazi•25m ago•2 comments

The Subtle Injury – Being pretty good

https://tevonsb.com/thoughts/subtle-injury/
2•tevon•26m ago•1 comments

From fragmented code to consistent output with AI rules

https://www.stromcapital.fi/blog/cursor-rules
1•ronistrom•27m ago•0 comments

Why (We Don't Need To?) Care About Debt-to-GDP?

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5271557
1•neehao•28m ago•0 comments

Show HN: A MCP for controlling terminal UI apps built with bubbletea and ratatui

https://github.com/michaellee8/mcp-tui-server
2•michaellee8•30m ago•0 comments

Green Waste: Inefficient Allocation of Green Subsidies

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6048714
1•neehao•30m ago•0 comments

Mississippi Transformed Its Schools from Worst to Best

https://www.nytimes.com/2026/01/11/us/mississippi-schools-transformation.html
2•ghaff•32m ago•1 comments