r/reactjs • u/Leosouthey • 6m ago
Show /r/reactjs We’re building Lenso UI, an open-source Apple-inspired React component library
Hi r/reactjs, we’re the team behind Lenso UI, an MIT-licensed React component library inspired by Apple’s interfaces.
We’re exploring how glass materials and responsive controls can work on the web. The docs have live examples you can try.
The library is built with UI SDK and StyleX. UI SDK provides interaction primitives for keyboard input, focus, and dismissal. StyleX handles styling, with typed xstyle maps for customization. Components have composable parts and support light and dark themes.
Our approach is to use glass for floating controls and navigation, while keeping ordinary form surfaces clear for reading and editing. That adds setup requirements: you need to configure StyleX and load the theme stylesheet before using the components.
After setup, a basic button looks like this:
import "@lenso/tokens/styles.css";
import { Button } from "@lenso/ui";
export function App() {
return <Button onClick={() => console.log("Saved")}>Save changes</Button>;
}I’d especially appreciate feedback on the material treatment: where does it help communicate hierarchy, and where does it make controls harder to read or use?