Urgent.News

What's breaking now, across thousands of outlets.

Tech

Building Fluentic Style: Bringing the `css` Prop to SolidJS

This is part of my Building Fluentic Style series, where I’m writing down the design decisions, tradeoffs, and small surprises from building Fluentic Style . Fluentic started as a styling model I was exploring for React web apps. The shape was inspired by the style composition I liked from React Native: < View style = { [ base , active && activeStyle , props . style ] } /> For web JSX, that…

This is part of a series about designing a new styling model called Fluentic, which started as an exploration for React web apps. The concept is similar to how style composition works in React Native. In Fluentic, styles are composed using a base style, conditional styles, and component styles. The styling model is decoupled from React and can be used with other JSX frameworks like SolidJS.

The core idea is to keep the styling model consistent, and only change the final CSS prop handoff to fit the target framework. For SolidJS, Fluentic adapts its CSS prop to work with Solid's DOM elements. The integration process involves using the Fluentic Vite plugin before vite-plugin-solid to ensure Solid compiles Solid JSX, while Fluentic only handles the styling handoff.

This allows Solid apps to use Fluentic's styling model while retaining the familiar SolidJS compiler path.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

nubia Launches Neo 5 Max; A “PadPhone” With A 7.5-Inch Screen

The category once known as a phablet basically does not exist anymore, as your average smartphone has an average screen size within the six-inch range, with some larger models encroaching on seven. But with the launch of the nubia Neo 5 Max, the ZTE affiliate brand looks to be bringing the category back, even if […] The post nubia…

More from Monday 17 August →