<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Style on Flowing Code</title><link>https://www.flowingcode.com/en/tag/style/</link><description>Recent content in Style on Flowing Code</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 07 May 2020 15:18:31 +0000</lastBuildDate><atom:link href="https://www.flowingcode.com/en/tag/style/index.xml" rel="self" type="application/rss+xml"/><item><title>CSS Theming &amp; Styling in Vaadin 14</title><link>https://www.flowingcode.com/en/css-theming-styling-in-vaadin-14/</link><pubDate>Thu, 22 Aug 2019 14:10:00 +0000</pubDate><guid>https://www.flowingcode.com/en/css-theming-styling-in-vaadin-14/</guid><description>&lt;p>&lt;img alt="" class="alignnone size-full wp-image-375" height="340" loading="lazy" src="https://www.flowingcode.com/images/uploads/2019/08/CSS-Theming-Styling-in-Vaadin-14.png" width="760"/>&lt;/p>
&lt;p>Last week, the new &lt;a href="https://vaadin.com/roadmap" rel="noopener noreferrer" target="_blank">LTS version&lt;/a> of the presentation framework was announced.&lt;br/>
While you can find more information about &lt;a href="https://vaadin.com/blog/top-14-new-features-in-vaadin-14" rel="noopener noreferrer" target="_blank">the new features&lt;/a> in the official site, I would like to focus on one specific feature that I’ve found interesting: styles management.&lt;br/>
Across the years we saw different approaches in how to handle styles in Vaadin applications.&lt;br/>
In Vaadin 6 you could just modify styles using plain CSS. Of course you had two choices: either build everything from scratch, or inherit the built-in themes like Reindeer, Runo or Chameleon. That inheritance scheme was based in the @import css statement, which is the basis of the cascading part of the theming technology.&lt;br/>
The problem with this approach was that the customization was difficult, because the complexity of the rendered DOM, and the lack of variables that could help in modifying certain aspects of the base themes such as sizing and spacing, that several rules had in common.&lt;/p></description></item></channel></rss>