Repository navigation
1.7.0
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,sageandsalmononBadge,Avatar,Icon,Colorand
AccentBox. - Badge names its status hues by meaning:
success,warninganddanger. - Charts get Flow's own 12 categorical colors, tuned to the brand with
separate light and dark values. AccentBoxgets one brand gradient per decorative color.- Color tokens follow four tiers (Brand, Semantic, Variant, component). Code
that reads Brand variables like--color--gray--100directly 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.
violetandtealonBadge,Avatar,IconandColor→lilacand
sage. OnBadge,green,orangeandred→success,warningand
danger. OnAccentBox,backgroundColorviolet,teal,greenand
gradient→lilac,sage,sageandgradient-navy. Codemod
color-props-brand-palette.Avatar'sgreenis deprecated too, butsage
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,LegendItemand the segments ofDonutChartand
ProgressBar. Codemodcategorical-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.
AccentBox backgrounds
The four decorative AccentBox backgrounds.
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.
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
DonutChart segments
The default order, with a gap between segments.
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--Nand 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--100for secondary text,
--border--color--200for 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'scolor.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-stylesheetor the token variables directly.
Token names and values are outside the semver contract
(ADR 0005),
so this ships as a minor.