TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Design System Options for Rails

103 pointsby strzibnyabout 1 month ago

13 comments

petepeteabout 1 month ago
Obviously niche, but the GOV.UK Design System is very well supported in Rails.<p>There&#x27;s a form builder and library of components (built and maintained by me) which, between them, provide full coverage. Most new Rails services use them.<p>It&#x27;s a good match because accessibility is one of the Design Systems&#x27; primary concerns so JavaScript is used very sparingly and only to enhance.<p>They&#x27;re not official, only Nunjucks is supported by the Design System team.<p><a href="https:&#x2F;&#x2F;design-system.service.gov.uk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;design-system.service.gov.uk&#x2F;</a><p><a href="https:&#x2F;&#x2F;govuk-form-builder.netlify.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;govuk-form-builder.netlify.app&#x2F;</a><p><a href="https:&#x2F;&#x2F;govuk-components.netlify.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;govuk-components.netlify.app&#x2F;</a>
评论 #43641507 未加载
评论 #43644826 未加载
gedyabout 1 month ago
Not to nitpick terminology, but I don&#x27;t think it&#x27;s helpful to equate &quot;design system&quot; with component library. A design system is the design tokens used to describe an organization&#x27;s application(s), and largely independent of the exact technologies.<p>I worked with our UX team at a mixed tech company (Rails, React, mobile) who defined the patterns and tokens, and then my team implemented so that we could use across our stack.<p>Largely this was accomplished via ensuring the design system could be used via CSS and we settled on Bootstrap with custom theme. This made it easy enough to use across Rails views&#x2F;view components and React components.<p>Bootstrap is not sexy to devs now but you could do same with Tailwind and Daisy UI with custom theme.<p>With that said, component libraries are really helpful, but I prefer to align them with the design system and not the other way around.
评论 #43642399 未加载
评论 #43645367 未加载
pootsbookabout 1 month ago
I came across CSS Zero recently:<p><a href="https:&#x2F;&#x2F;csszero.lazaronixon.com&#x2F;lookbook&#x2F;pages&#x2F;overview" rel="nofollow">https:&#x2F;&#x2F;csszero.lazaronixon.com&#x2F;lookbook&#x2F;pages&#x2F;overview</a><p>which bills itself as an &quot;opinionated front-end starter kit&quot; specifically for Rails and includes Stimulus.js code for JavaScript functionality.<p>It seems the benefits are that it is no build (pure CSS with CSS variables) and easy to modify and extend.
评论 #43645177 未加载
评论 #43642387 未加载
namiwangabout 1 month ago
Totally get the struggle — I spent way too many hours figuring which design system should I use for my next project. Ended up creating a site to compare the options: [<a href="https:&#x2F;&#x2F;rails.style" rel="nofollow">https:&#x2F;&#x2F;rails.style</a>]. Might help others in the same spot.
评论 #43644746 未加载
评论 #43643695 未加载
mikkerabout 1 month ago
I&#x27;m currently building one called Nitro Kit.<p>Everyone seems to have their own opinion on what something like this should and should be or do. Nitro Kit is my opinion and I&#x27;m getting a lot of joy from using it on my own sites and services.<p>It&#x27;s free and open source and, full disclaimer, there&#x27;s a paid premium offering too.<p><a href="https:&#x2F;&#x2F;nitrokit.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nitrokit.dev&#x2F;</a><p>Here&#x27;s a video about my reasoning behind building it:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Li-RPk561l8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Li-RPk561l8</a>
评论 #43644780 未加载
评论 #43642461 未加载
评论 #43642978 未加载
thuanaoabout 1 month ago
It’s too bad most UI libraries ate tied to a particular framework like React, Tailwind, etc. instead of self-contained web component elements.
评论 #43642257 未加载
评论 #43640944 未加载
评论 #43644917 未加载
strawsabout 1 month ago
Github&#x27;s <a href="https:&#x2F;&#x2F;primer.style&#x2F;product&#x2F;getting-started&#x2F;" rel="nofollow">https:&#x2F;&#x2F;primer.style&#x2F;product&#x2F;getting-started&#x2F;</a> does a good job of making a cohesive design language that works just as well for server-rendering Ruby views and &quot;upgrading&quot; parts of the ui to React views when you need more interactivity. That&#x27;s a constraint that I wish more of the Rails ecosystem design tooling would attempt to solve for.
jensenboxabout 1 month ago
Just saw a BugBytes video for a new one that might be interesting - <a href="https:&#x2F;&#x2F;devdojo.com&#x2F;pines" rel="nofollow">https:&#x2F;&#x2F;devdojo.com&#x2F;pines</a>
danielvaughnabout 1 month ago
I really think that a design system solution has to be framework&#x2F;implementation agnostic. It’s why I’ve never been too interested in shadcn, impressive though it may be.<p>Right now I’m trying to build a tool that produces an intermediate representation of your UI components, which can then be transpiled into whatever target format you prefer.<p>That way we can build design systems that aren’t coupled to a specific downstream tech stack.
评论 #43649896 未加载
jensenboxabout 1 month ago
I am curious - why is Bootstrap not on the list?
评论 #43644347 未加载
mosselmanabout 1 month ago
I use TailwindUI for many of my rails projects. Or just grab some Tailwind things from around the web.<p>Tailwind has really rekindled my joy in creating views.
评论 #43642383 未加载
perfmodeabout 1 month ago
Is RailsUI superior to all of these?
dzongaabout 1 month ago
I think now the ergonomics are now better - use vite-ruby, inertia.js and your fav design library with rails either with Vue | React | Svelte.