onyxia-web
tss-react
onyxia-web | tss-react | |
---|---|---|
4 | 9 | |
181 | 571 | |
- | - | |
0.0 | 8.1 | |
8 months ago | 4 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
onyxia-web
-
A Type-safe i18n library
On the contrary, in my experience it is the approach that scales best. (Not so )big example.
-
Type-safe React i18n library
In favor of i18nifty: - typesafe-i18n translations are flat string, i18nifty on the other hand enables to involve logic and React components in your translations. You can't write this or that with typesafe-i18n for example. - i18nifty achieve the same level of type-safety without requiring you to have a process running in the background while you are coding. - In my library you have a i18n namespace by React component, in typsafe-i18n the namespace are decoupled from the component which makes it much harder to manage. See this would be a nightmare to manage if we had to create the namespace manually.
-
Bundle environment variables in create-react-app at launch time (not build time)!
Onyxia-web is a create-react-app distributed as a Docker image.
tss-react
-
The french government's design system
What I meant is that the lib provides the tooling to do CSS-in-JS if you so choose. But it's not at all mandatory. There is a fully type safe class system you can rely on. Internally no CSS-in-JS is used. I personally do love CSS-in-JS (I'm the author of TSS) but I understand the case against it.
-
A Type-safe i18n library
I'm not big on splitting things in neat little modules. Before we had logic.js structure.htm, styles.css then React suggested that logic and structure should be in the same file, it was the right move. Styles, in my oppignion, should be done in JS as well as well. I think that queries shouldn't be mangled with the UI stuffs.
-
How to Troubleshoot Types?
Real-life examples: 1, 2, 3
-
Gatsby JS — How to solve FOUC when using tss-react and Material UI v5
Material UI v5 brought some amazing updates, but switching from JSS to Emotion had an arguably nasty side-effect: it was no longer as straightforward to group your component styles in classes. Fortunately, a fantastic library emerged that allowed developers to not only reduce the extreme pain from migrating all their classes from v4's makeStyles to emotion, but to also to continue to writing classes in practically the same syntax, with wonderful TS type-safety. This library was tss-react, and it was one of my favorite open source discoveries of 2021.
-
What is everyone's go-to style framework/library right now?
You can still use makeStyles with tss-react, as documented here: https://mui.com/guides/migration-v4/#2-use-tss-react. I've used it and it seemed to work quite well.
- ✨ makeStyles is dead, long live makeStyles! ✨
- tss-react will be promoted as the new makeStyles API in material-ui v5
-
tss-react: Like JSS but with better typing. (integrates with MaterialUI)
tss-react
What are some alternatives?
keycloakify - 🔏 Create Keycloak themes using React
Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
onyxia - 🔬 A data science oriented container launcher
JSS - JSS is an authoring tool for CSS which uses JavaScript as a host language.
typesafe-i18n - A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects.
type-fest - A collection of essential TypeScript types
cra-envs-demo-app - A demo app for embed-react-app-envs
ts-ast-viewer - TypeScript AST viewer.
simplelocalize-cli - SimpleLocalize CLI is a developer-friendly command-line tool for uploading and downloading translation files
gatsby-plugin-material-ui - Gatsby plugin for Material-UI with built-in server-side rendering support
i18nifty - 🌎 Type safe React i18n library
tsafe - 🔩 The missing TypeScript utils