Repository navigation
Releases
Releases · Inlaylab/Opaline
v1.4.0: Moji, Inkwell, Isometric and Contour
Opaline 1.4.0
Four new styles and Angular group options. Packages: @inlaylab/opaline, -react, -vue, -svelte, -angular and -element 1.4.0.
New
- Moji (
@inlaylab/opaline/moji): bright cartoon people. Sethair(23),outfit(15) andexpression. Sits on acircleby default;shape: 'none'draws the person alone. - Inkwell (
@inlaylab/opaline/inkwell): ink-line people with a splash of colour. Sethair(27),glasses,mouth(25),propandexpression. Sits on asquaretile by default. - Isometric (
@inlaylab/opaline/isometric): little block characters. Setbody(12),topper,prop,pattern,expressionandpalette. Sits on asquaretile by default. - Contour (
@inlaylab/opaline/contour): a contour map of a made-up land, in the seed's hue. Setterrain:layers,island,lakesorthermal. Every browser draws the same contours. - Moji, Inkwell and Isometric share 26 expressions, from
calmandgrintowowandoops. - Skin tone in Moji and Inkwell is chosen separately, so it never depends on hair, clothes, props or expression.
LookOptionsand every wrapper take the new styles and options.
Improvements
- The Angular group takes
shape: 'none'and passes every per-style option to its members, as the React, Vue and Svelte groups do. - Older styles have slightly smaller bundles, with the same output. Gzipped: core + morph 6.61 → 6.56 KB, core + gradient 7.42 → 7.38 KB, core + clay 7.60 → 7.56 KB, core + plush 8.88 → 8.83 KB.
- The docs site shows all fifteen styles, and the playground has controls for every new option.
Full changelog: v1.3.0...v1.4.0
v1.3.0: Critters, Cosmos, Folk and Doodle
Opaline 1.3.0
Four new styles, a status badge and a gummy finish. Every 1.2 seed and option set renders the same bytes, and the new styles and values appear only when you set them.
New styles
- Critters are 19 soft vinyl-toy animals. Set
animal, andcoat: 'palette'to colour the fur from the seed. - Cosmos has 15 glowing space objects. Set
object,tonefor a colour theme, andshapefor a night-sky tile. - Folk draws people, head and shoulders. Doodle draws only the face, in lines. Both have 18 expressions, 11 colour looks through
scheme, and a square tile thatshape: 'none'removes.
New options
- Every style takes
status:online,away,busyoroffline. Withtitleoraltthe label readsAda (away). The badge is not drawn below 20px. finish: 'gummy'works on Morph, Gradient, Pip, Clay and Critters. Plush takesmaterialinstead:gummy,flatorsoft.- These values can be set by name and are never drawn by a seed: eight expressions, nine Gradient
formoutlines, the Morph familiesstar,dropandbloom, five Pip forms, a Clayghostbody withfoxandmouseears, and four Plush hats. LookOptionsin the core is one props type with every option of every style.
Changed
- Bundles for the older styles are larger, because the new faces, the gummy finish, Gradient forms and the status badge ship with every style. Core + Morph is 6.61 KB gzipped, up from 4.91 KB. Making them optional is planned for 1.4.
Expression,Family,Finish,Accessory,PipFormand Claybodyandearstake new values. Aswitchthat covers every value, or aRecord<Expression, …>, needs the new keys.
Improved
- Every wrapper takes every new style and option. React, Vue and Svelte groups pass each member's
status, and astatuson the group goes to members that have none. - Cosmos
tonealso takes a numeric string, sotone="1"works as a plain attribute in Vue and Angular. - The docs site is redesigned: type a name and the page takes its colour. Try the new styles in the playground.
Full changelog: v1.2.0...v1.3.0
v1.2.0: Plush and Pip
Two new styles that keep the seed's colour, so a user stays one colour across styles. Existing output is unchanged.
New
plushdraws gummy critters with a face and a seededaccessory:beret,cap,beanie,glasses,shades,flower,sprout,bow,starornone.pipdraws bold geometric forms with two pill eyes.formiscircle,squircle,triangle,hexagon,diamond,heart,drop,pillordome.- Every wrapper accepts
accessoryandform.
Full changelog: v1.1.2...v1.2.0
v1.1.2: React 18 and Angular 20
Wider framework support. The core is unchanged, and so is component output.
Improved
- The React wrapper works with React 18 and later (peer
react >=18). With React 18, use@types/react18.2.6 or later. - The Angular wrapper works with Angular 20 to 22 (peer
@angular/core >=20 <23).
Full changelog: v1.1.1...v1.1.2
v1.1.1: Readable initials, PNG export and groups
New
@inlaylab/opaline/pngis a new entry. In the browser,toPng(avatar, { size, vars })returns a PNGBlobwith no dependencies. On a server,forRaster(avatar, { size, vars })prepares the SVG for a rasterizer such as resvg.- Every wrapper has an avatar group with a
+Nchip pastmax. The core'savatarGroup(members, { max, size, shape })is the layout behind them. contrast(a, b)returns the WCAG contrast ratio of two hex colours.
Changed
- Initials letters are a deep shade of the tile's hue, at least 4.5:1 on every palette. On 1.1.0's bright tiles the white letters went as low as 1.9:1. This is the one deliberate output change in 1.x: only the
<text>colour changed, and pastel tiles are unchanged.--avatar-fgstill overrides it.
Fixed
- The
ellipseshape is removed.shapetakescircle,squircleorsquare, and any other value falls back like an unknown one. 1.0 output is unchanged.
Full changelog: v1.1.0...v1.1.1
v1.1.0: Initials and shapes
New
initials(@inlaylab/opaline/initials) draws the person's initials on a seeded tile, taken from the seed or set withtext.- Every style takes
shape:circle,squircle,squareorellipse(ellipsewas removed in 1.1.1). Leaving it unset gives exactly the 1.0 output.
Fixed
<op-avatar>clears staticfinish,bodyandearsattributes from its host, like every other input.
Full changelog: v1.0.0...v1.1.0
v1.0.0: Stable output
The first stable release, with Morph, Gradient, Aura and Clay for React, Vue, Svelte, Angular and Web Components.
- The same seed and options give a byte-identical SVG in every 1.x release. A checksum file in CI checks it.
- An option set to its default gives exactly the unset output, gradient IDs included.
- Every package ships a README, the MIT license and full npm metadata.
Full changelog: https://github.com/Inlaylab/Opaline/commits/v1.0.0

