react-dsfr
compodio
Our great sponsors
react-dsfr | compodio | |
---|---|---|
9 | 8 | |
396 | 3 | |
3.8% | - | |
9.5 | 8.6 | |
6 days ago | about 2 months ago | |
TypeScript | Python | |
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.
react-dsfr
- French State Design System React Integration
-
The french government's design system
My advice if you don't have a multi-million budget and you only need to support React is to start from MUI components. Components like Date pickers, or Autocomplete are complex and time consuming to code from scratch. First thing you want to do is to build a custom theme for MUI (example DSFR, Example OnyxiaUI) this will make the MUI components roughly match your design system out of the box. Then you can create your own components that are wrapper around MUI components and customize them until they match your design (Example). Trust me, we always underestimate the complexity of building base component from scratch. There are tons of things to consider, I don't even mention the accessibility concerns... Customizing MUI components is the quick win route.
-
Ensure you never forget a case in a switch
If you want a real-world use case you can consider this function, it has a very opaque and complex return type that is inferred from the input it receives. Having type-level unit test for this function is very useful both for ensuring the return type is inferred correctly and as an implicit documentation.
-
tsafe enables to unit test your types.
Do you think it's totological to test the return type of this function?
compodio
-
Using BEM in 2023
Components that need to incorporating global styles like colour schemes, breakpoints, border radius, scss mixins is where I've found it tricky to fully decouple. In these instances I've resorted to using global custom properties that I can reference inside css modules and importing commonly used scss mixins. This is an example of a search box component incorporating global things.
-
Is anyone down to build some small projects together?
Currently working on compodio in my free time. A website that makes it easier to find, and subscribe to community radio shows as a podcast. It uses NextJS, Python, PHP, MySQL
-
How I interview for FE positions
I used it here in a function that constructs a string of hex colours for a css gradient from an array. I spend more time in python than JS, and looking at this code again now I see it certainly isn't perfect.
-
How to organize your css so it looks more readable? What does production css look like?
I feel like now that I'm developing mostly with react, which has everyone rethinking how to think about separation of concerns, I'm still figuring things out again. In a current project, I have global styles sheets for the site as a whole, then I try to bundle css modules for components of a site in a folder with other files related to the component (ex. a main menu component). The aspiration being that some components will be generic enough that I could just copy one folder and have everything I need (css, js, etc) to add that feature to another project.
-
I wrote an overly complicated algorithm to make a pleasing colour swatch from an image
Impressive. I've been working on something similar, but much simpler. I settled for just organizing colours by lightness. I just might borrow your ant colony optimization.
-
The french government's design system
This is an in progress component I'm working on that always expects to receive an array of available image sizes, that jpg/webp are always available.
-
How to find all occurrences of the following div?
Then You can pretty much do the same thing I did with the next page link here.
What are some alternatives?
denoify - π¦For NPM module authors that would like to support Deno but do not want to write and maintain a port.
tss-react - β¨ Dynamic CSS-in-TS solution, based on Emotion
rescript-compiler - The compiler for ReScript.
aixplora - AIxplora is a open-source tool which let's you query all kind of files not limited to any length or format.
onyxia-ui - π Onyxia UI toolkit
Docusaurus - Easy to maintain open source documentation websites.
tsafe - π© The missing TypeScript utils
generative-art
cuttle - A two-player battle card game for all ages, built with nodejs, sailsjs, and vuejs
ts-pattern - π¨ The exhaustive Pattern Matching library for TypeScript, with smart type inference.
excalidraw - Virtual whiteboard for sketching hand-drawn like diagrams