CSS

#css #style

Avoid having too much CSS/styles in the product code

Your Design System should use functional css to make it possible to extend it

Your design system should have constraints to avoid bad design

The design system should be able to change theme colors, as customers usually customize the product to their brand and workflow

functional css is a much better abstraction then other css approaches

css in js is better because of colocation

styled-components is a component + style

address the naming problem

convention naming

naming pattern

styled-system and tailwind follow naming convention to build functional css and compose styling.

saas, css modules, less, BEM does not address this problems

The product code should just be the use of building blocks from the design system

There is no shortcut for CSS, CSS has a lot of details, you need to keep adding keys and learn how they interact with each other

The build blocks for layout are flexbox and css grid, you should learn both.

Learn CSS

Flexbox and CSS grid can solve most of the layout problems

Prebuilt blocks

References

CSS Practice

Linked from
  • "Simple" PagesA call "simple" pages: landing pages, blog posts, simple websites. These "simple" pages have a high level complexity of CSS and animations, 2 skills that I'm not so good yet,…
  • AtomWe can use atom to describe something that is minimal and indivisible We can have an atom of state like redux recoiljs We can have an atom of thought as Roam and Zettelkästen uses…
  • DesignDesign is part of your everyday live, design is everywhere You can design Design needs a lot of practice, if you have a good taste you going to do great designs in the long run,…
  • Design SystemDesign system contain the building blocks of UI elements/atoms to build your product UI It should allow extensions using functional CSS Design system should define list of fonts…
  • Digital GardenA digital garden is a place where I can show my content but I can also change the "engine" of it. If you keep pushing all content websites you're gonna hit some "limit" It won't…
  • Personal WebsiteI want to design a blog post for me. I didn't do it because I'm too perfectionist. This should be my output digital garden What are the use cases of my website? It should show my…
  • Reading experienceWhen designing a blog post with text content you need to think about the line length and the correct css unit to handle it Good defaults 70ch 35-40em Links CSS Design References
  • Reality has a lot of detailsIt is related to being Realistic of Principles Ray Dalio Being realistic is to listen to reality, and learn all details of it. It does not matter all your knowledge of your…
  • ResponsiveResponsive Read There are many things that you need to consider to make a website responsive layout images video CSS Book Responsive patterns
  • Why am I learning CSS?If you are used to what I share on my blog posts, newsletter and twitter you would be surprised that I "go back" to learn the basics of CSS man, you can do AST codemods stuff, why…
Links to
  • Design SystemDesign system contain the building blocks of UI elements/atoms to build your product UI It should allow extensions using functional CSS Design system should define list of fonts…
  • CSS PracticeI've decided to practice converting some landing page and design to code This master will help me be a better css coder Smart Home System VPN landing page Final Version Links Luan…
Shares tags with
  • CSS Thread
  • Building from Scratch?why am I building my blog post from scratch? The idea is to learn all about the details to create great ux and dx I'd like to feel all the pain of writing everything in pure html…
  • Bundle analyzeMost modern apps can’t be built without dependencies, so we need to analyze the final bundle of our application to make sure we are not shipping unnecessary code We can also use…
  • Constraint are goodMost people think about constraint in a bad way I think constraint is good for many reasons Constraints gives you a limited set of options to perform or use. GraphQL is better…
  • data visualization

Sign in with GitHub to reply.

Select any passage to quote it.

Comments