microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
https://react.fluentui.dev
Other
18.51k stars 2.73k forks source link

Continued styling convergence #16372

Closed jurokapsiar closed 3 years ago

jurokapsiar commented 3 years ago

Goals

Tasks

Motivation

In Nov/Dec iteration, we implemented a PoC of next version of makeStyles in #16082.

Synthetic performance tests show that the new makeStyles is on par with Emotion, 10-20% slower than native CSS and twice as fast as Fela.

Unfortunately, comparison with mergeStyles (v7) and previous iteration of makeStyles (v8) is still unclear - mergeStyles (v7) seem to be equally fast but it has been blamed for its slowness which is one of the reasons to get rid of that. I am not sure if mergeStyles is generally slow or only has perf issues in specific use cases.

makeStyles goals

Risks

JustSlone commented 3 years ago

@levithomason @miroslavstastny can we update this list for February and drop something similar on the February project cycle?

miroslavstastny commented 3 years ago

February 2021 update

In January we made a good progress on this

Next steps:

miroslavstastny commented 3 years ago

Weekly update Feb 9

Achievements

Objectives

layershifter commented 3 years ago

@miroslavstastny can you please add items below to the tracking list?

Issues to follow up

Based on https://github.com/microsoft/fluentui/pull/16793.

A way to define and apply component level tokens

Previously there was tokens prop, but in makeStyles() we don't have it. We should figure out an approach.

Animation timings should be defined as globals/aliases?

Avatar component has some interactions, there are definitions for transitions. Should they become a part of them?

*Darker definitions for shadows

Avatar's design spec uses *Darker variants, we don't have them in react-theme definitions. We should follow up with design and update spec or theme & styles definitions. Resolved: Avatar spec has been updated to no longer use the "darker" shadows -@behowell

miroslavstastny commented 3 years ago

Weekly update Feb 16

Achievements

Objectives

miroslavstastny commented 3 years ago

Weekly update Feb 23

Achievements

Objectives

miroslavstastny commented 3 years ago

Continues in #17242