Consolidating styling across the site (Regular CSS? Tailwind? Other framework?) #88
Replies: 8 comments 6 replies
-
I think at this point it would be more work to continue reworking tailwind in, than it would be to rip it out. I am good with CSS Variables or Tailwind, however, I agree with @kevmodrome that I like the use CSS Variables provides with the Component functionality and a majority of the site is already configured that way. I think there should be a firm design system set in the custom variables to keep consistency through the design. Possibly even adding a test to check and make sure pr's are using these. |
Beta Was this translation helpful? Give feedback.
-
I used tailwind a lot last times, but I clearly see the con's of it (like big class attributes etc.). But a very big plus for tailwind is the whole design system (with spacing, colors), this brings more consistency to the designing (which was a little bit messy on the old site without tailwind). I also would recommend using the headwind extension with tailwind, which keeps the tailwind classes ordered. |
Beta Was this translation helpful? Give feedback.
-
Either way we go there is going to be an issue of people sticking to the design system. With tailwind, even though there is a good base for spacing and typography, people could use different numbers all over the site. Same goes for custom variables, I'm sure people will use different ones. I propose that we add more element styles in the root css file using the custom variables and remove most of the component level styles to avoid consistency issues. |
Beta Was this translation helpful? Give feedback.
-
I'm not married to Tailwind at all, but the issue I had when trying to contribute with the previous design system is that there was no documentation. The thing I liked about Tailwind is that it's well-known and well-documented how to do certain things, which makes it a bit easier when a bunch of different people are working on the site. It also has relatively decent defaults and made the site look a lot nicer when I added it by having better defaults for things like page width, font size, etc. |
Beta Was this translation helpful? Give feedback.
-
Plain (s)css floor the win |
Beta Was this translation helpful? Give feedback.
-
I would go for plain vanilla css with a heavy use of custom variables. |
Beta Was this translation helpful? Give feedback.
-
Here's an issue I created that we can use to track the implementation: #91 |
Beta Was this translation helpful? Give feedback.
-
Tailwind and eventually Symphony (our own design system) is what we'll use. |
Beta Was this translation helpful? Give feedback.
-
Currently the site is using a mishmash of all sorts of CSS. There's some Tailwind in there, some proper CSS as well as some homemade functional style classes. We should consolidate into using one design system and be very strict going forward, when it comes to adding CSS.
Personally I like regular CSS with a heavy use of custom properties. I find it very powerful and it marries well with Svelte's
<Component --someVar="red" />
functionality. Here's how a button would look using this kind of style: https://svelte.dev/repl/952913f9925e433dacf701f9d9c90d4a?version=3.42.4Other people prefer Tailwind.
Are there other types of frameworks we might want to use?
Please voice your opinion on which type of styling we should use.
Beta Was this translation helpful? Give feedback.
All reactions