Sauna Icons for Vaadin - Vaadin Add-on Directory
36 sauna, banya, steam room and cold plunge line icons as a Java enum and SvgIcon components for Vaadin Flow 24.4+ and 25.36 line icons about sauna, banya, steam rooms and cold plunges for Vaadin Flow. Each icon is a constant of the `SaunaIcon` enum and becomes a regular Vaadin `SvgIcon` component, so you can put it in buttons, tabs, grids, side navigation and fields like any built-in icon.

- Vaadin Flow 24.4 and newer, including Vaadin 25. Java 17+ (Java 21+ on Vaadin 25).
- Pure Java plus static SVG files. No npm package, no frontend build step, no theme changes.
- Drawn on a 24 px grid with a 1.5 px stroke and round caps. The strokes use `currentColor`, so an icon takes the text color around it.
- Tested with unit tests on Vaadin 24.10 and 25.3, and rendered in a browser with `` from both versions.
## Install
The add-on is published in the [Vaadin Directory](https://vaadin.com/directory). Add the Directory repository and the dependency to your `pom.xml`:
```xml
vaadin-addons
https://maven.vaadin.com/vaadin-addons
org.vaadin.addons.divelux
sauna-icons-for-vaadin
1.0.0
```
Or download the JAR from the Directory page and put it on the classpath.
## Use
```java
import org.vaadin.addons.divelux.saunaicons.SaunaIcon;
import org.vaadin.addons.divelux.saunaicons.SaunaSvgIcon;
Button start = new Button("Start session", SaunaIcon.SAND_TIMER.create());
SaunaSvgIcon hat = SaunaIcon.SAUNA_HAT.create();
hat.setSize("48px");
hat.setColor("#8a4b2a"); // stroke color
hat.setStrokeWidth(2); // default 1.5
hat.setTooltipText("Wear a felt hat in the sauna");
SideNavItem item = new SideNavItem("Steam room", "steam", SaunaIcon.STEAM.create());
// by name, e.g. from a database
SaunaSvgIcon icon = new SaunaSvgIcon("cold-plunge");
SaunaIcon.fromName("birch-whisk").ifPresent(i -> layout.add(i.create()));
```
### Color and stroke width
`setColor` sets the CSS `color` of the icon, which the strokes use. (Vaadin's own `SvgIcon.setColor` sets `fill`, which would do nothing on stroke-only icons, so the add-on overrides it.)
The stroke width is the CSS custom property `--sauna-icon-stroke-width`. `setStrokeWidth(double)` sets it on one icon; you can also set it for many icons at once in your theme:
```css
vaadin-side-nav-item vaadin-icon {
--sauna-icon-stroke-width: 2px;
}
```
### Accessibility
Every icon gets `role="img"` and an `aria-label` with its title (for example "Sauna hat"). Next to a visible text label, call `setDecorative(true)` so screen readers skip it. `setAccessibleLabel(String)` changes the label.
### Plain URLs
The SVG files are served from the JAR as static resources (`META-INF/resources`), so they are also available at `sauna-icons/.svg` under your context root, for example `
`. `SaunaIcon.getSrc()` returns that relative URL. `SaunaIcon.getTags()` returns search words for each icon, handy for an icon picker.
## Icons
| Constant | File name | Shows |
| --- | --- | --- |
| `SaunaIcon.BARREL_SAUNA` | `barrel-sauna` | Barrel sauna |
| `SaunaIcon.BATH_BRUSH` | `bath-brush` | Bath brush |
| `SaunaIcon.BIRCH_WHISK` | `birch-whisk` | Birch whisk |
| `SaunaIcon.BUCKET_HAT` | `bucket-hat` | Bucket sauna hat |
| `SaunaIcon.BUCKET_LADLE` | `bucket-ladle` | Sauna bucket and ladle |
| `SaunaIcon.CLOCK` | `clock` | Clock |
| `SaunaIcon.COLD_PLUNGE` | `cold-plunge` | Cold plunge |
| `SaunaIcon.DO_NOT_MACHINE_WASH` | `do-not-machine-wash` | Do not machine wash |
| `SaunaIcon.ESSENTIAL_OIL` | `essential-oil` | Essential oil |
| `SaunaIcon.FIRE_WOOD` | `fire-wood` | Fire and wood |
| `SaunaIcon.HAMMAM_DOME` | `hammam-dome` | Hammam dome |
| `SaunaIcon.HEART_RATE` | `heart-rate` | Heart rate |
| `SaunaIcon.HOOK` | `hook` | Hook |
| `SaunaIcon.HOT_TUB` | `hot-tub` | Hot tub |
| `SaunaIcon.HYGROMETER` | `hygrometer` | Hygrometer |
| `SaunaIcon.INFRARED_PANEL` | `infrared-panel` | Infrared panel |
| `SaunaIcon.LAKE_DOCK` | `lake-dock` | Lake and dock |
| `SaunaIcon.LAMP` | `lamp` | Lamp |
| `SaunaIcon.LEAF` | `leaf` | Leaf |
| `SaunaIcon.LOYLY` | `loyly` | Löyly: water on the stones |
| `SaunaIcon.ROBE` | `robe` | Robe |
| `SaunaIcon.SAND_TIMER` | `sand-timer` | Sand timer |
| `SaunaIcon.SAUNA_BENCH` | `sauna-bench` | Sauna bench |
| `SaunaIcon.SAUNA_CABIN` | `sauna-cabin` | Sauna cabin |
| `SaunaIcon.SAUNA_DOOR` | `sauna-door` | Sauna door |
| `SaunaIcon.SAUNA_HAT` | `sauna-hat` | Sauna hat |
| `SaunaIcon.SAUNA_STOVE` | `sauna-stove` | Sauna stove with stones |
| `SaunaIcon.SHOWER` | `shower` | Shower |
| `SaunaIcon.SLIPPERS` | `slippers` | Slippers |
| `SaunaIcon.SNOWFLAKE` | `snowflake` | Snowflake |
| `SaunaIcon.SOAP` | `soap` | Soap |
| `SaunaIcon.STEAM` | `steam` | Steam |
| `SaunaIcon.TEA_CUP` | `tea-cup` | Tea cup |
| `SaunaIcon.THERMOMETER` | `thermometer` | Thermometer |
| `SaunaIcon.TOWEL` | `towel` | Towel |
| `SaunaIcon.WATER_BOTTLE` | `water-bottle` | Water bottle |
## Build from source
```sh
mvn verify # compile and run the tests (Vaadin 24, JDK 17+)
mvn -Pvaadin25 verify # the same tests against Vaadin 25 (JDK 21+)
mvn -Pdirectory install # add-on ZIP for the Vaadin Directory in target/
python3 scripts/generate_icons.py # regenerate SVG resources and SaunaIcon.java from the icon set
```
## How it was made
The icons and this add-on were made with the help of an AI coding assistant (Claude Code by Anthropic). The result was checked by unit tests (every enum constant has a valid SVG resource, the components get the right `src`, color, stroke width and labels) on Vaadin 24.10 and 25.3, and by rendering all 36 icons in a browser with `` from both versions.
## Credit and license
Made by DIVELUX, a small family brand in Irvine, California that makes handmade wool felt sauna hats. More free sauna tools, data and printables: [diveluxsaunahat.com/pages/sauna-tools](https://diveluxsaunahat.com/pages/sauna-tools)
- **Java code and build files:** MIT License, © 2026 DIVELUX Inc.
- **Icon artwork** (the SVG files in `src/main/resources/META-INF/resources/sauna-icons/`): [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). You can use the icons in free and commercial apps. Credit line: "Icons by DIVELUX — diveluxsaunahat.com".
See LICENSE for both texts.
Author HomepageSauna Icons for Vaadin version 1.0.0
First release: 36 sauna, banya, steam room and cold plunge line icons (SaunaIcon enum, SaunaSvgIcon component). Works with Vaadin Flow 24.4+ and 25; built with Java 17 bytecode and tested on Vaadin 24.10 and 25.3.