Skip to content

1.7.0

Choose a tag to compare

@mittwald-machine mittwald-machine released this 24 Nov 09:25
· 4 commits to main since this release
Immutable release. Only release title and notes can be modified.
98d2d16

Flow in the new mittwald brand colors

Highlights

  • Flow adopts the new mittwald brand palette: every component picks up the
    new colors, in light and dark mode.
  • Decorative color values are named after the brand colors: blue, navy,
    lilac, sage and salmon on Badge, Avatar, Icon, Color and
    AccentBox.
  • Badge names its status hues by meaning: success, warning and danger.
  • Charts get Flow's own 12 categorical colors, tuned to the brand with
    separate light and dark values.
  • AccentBox gets one brand gradient per decorative color.
  • Color tokens follow four tiers (Brand, Semantic, Variant, component). Code
    that reads Brand variables like --color--gray--100 directly has to migrate.

Deprecations

All deprecated values keep working, render like their replacement and log a
deprecation warning. Run the codemods with
npx @mittwald/flow-codemods@latest upgrade.

  • violet and teal on Badge, Avatar, Icon and Color → lilac and
    sage.
    On Badge, green, orange and red → success, warning and
    danger. On AccentBox, backgroundColor violet, teal, green and
    gradient → lilac, sage, sage and gradient-navy. Codemod
    color-props-brand-palette. Avatar's green is deprecated too, but sage
    looks different, so the codemod leaves it for you to decide.
  • The Spectrum names of the chart colors (sea-green, palatinate-blue,
    tangerine, …) → the new value in their slot of the default order. Applies to
    Area, Bar, Line, LegendItem and the segments of DonutChart and
    ProgressBar. Codemod categorical-colors-own-palette.

The brand palette

The decorative colors follow the mittwald brand: one value per brand color,
named after how it looks.
The same list works on Badge, Avatar, Icon
(and the generated icons), Color and AccentBox. navy, sage and salmon
are new. Dynamic initials in Avatar now pick from all five, so a person may
get a different color than before. Content on a colored AccentBox now defaults
to color="dark". (#3657)

<Badge color="sage">Project</Badge>
<Badge color="danger">Locked</Badge>
<AccentBox backgroundColor="lilac">…</AccentBox>

Badge colors

The five brand colors next to neutral and the three status hues.

Badges in neutral, blue, navy, lilac, sage, salmon, success, warning and danger

AccentBox backgrounds

The four decorative AccentBox backgrounds.

AccentBoxes in navy, lilac, sage and salmon

Brand gradients

AccentBox has one brand gradient per decorative color: gradient-navy,
gradient-sage, gradient-lilac and gradient-salmon. The old gradient
renders as gradient-navy.

An AccentBox with the gradient-navy background, a heading and a link

Categorical colors for charts

Charts use Flow's own 12 categorical colors instead of React Spectrum's:
indigo, amber, teal, violet, berry, green, blue, rose, cyan,
plum, olive and red. All keep a 3:1 contrast on surfaces and stay clearly
apart from the status colors. DonutChart and ProgressBar leave a gap between
segments. (#3631, #3657)

Every color changes, the kept names violet and green included. A chart that
set magenta next to violet, or malachite next to green, now shows two
series in one color: pick rose or olive for one of them. indigo, teal,
blue, cyan, plum, olive and red are CSS color names too; as a color
they now render the categorical color, so use a hex value to keep the CSS one.

<CartesianChart.Bar dataKey="Webspace" color="amber" />

A stacked bar chart

A stacked bar chart with indigo, amber and teal series

DonutChart segments

The default order, with a gap between segments.

A donut chart with six segments in the default categorical order

Readability on colored surfaces

Neutral content takes the surface's content color inside Alert, the sender
Message and colored AccentBoxes: InlineCode, neutral badges, secondary
buttons and copy buttons, and links. Under prefers-contrast: more,
separators and group borders keep the control border's contrast
in every
theme. Alerts get a colored stripe, and List, FileCard and Table use lighter
separators. (#3632, #3657)

Migrations

npx @mittwald/flow-codemods@latest upgrade runs the codemods for the two
deprecations above. The color tokens need a manual migration — see
MIGRATION.md.

  • The old Brand palettes are gone. --color--gray--N,
    --color--hosting-blue--N, --color--soft-contrast-violet--N,
    --color--bright-lilac--N, --color--super-teal--N and the status ramps
    resolve to nothing. Nothing fails; the declaration is just dropped. Replace
    each with the Semantic variable for its role
    , e.g. --elevation--color--100
    for a surface, --content--color--100 for secondary text,
    --border--color--200 for a separator.
  • Brand no longer switches with the theme. A remaining --color--<ramp>--N
    keeps its light value in dark.
  • Semantic tones are renamed by role: --<group>--color--100/200/300 →
    --<group>--color--quiet--100/200/300, 800/900/1000 →
    strong--100/200/300.
  • Some variables moved: --color--categorical--<name> →
    --categorical--color--<name>, --color--code-syntax--<name> →
    --code-syntax--color--<name>, and the token JSON's color.categorical →
    categorical.color.
  • CSS classes and tokens of the deprecated color values are renamed without a
    fallback
    , e.g. flow--badge--violet → flow--badge--lilac. Update them by
    hand if you use @mittwald/flow-stylesheet or the token variables directly.

Token names and values are outside the semver contract
(ADR 0005),
so this ships as a minor.