Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Mix the avatar palette from the active theme

214145e539d0f9f6e0420375e3c011994eed9bde · Keenan Nemetz · 7d ago · parent df894c4f

Mix the avatar palette from the active theme

The seven grounds were fixed hexes, so a mark looked the same on every
Everforest variant and did not really belong to any of them. They are now
mixed from the active variant's own accents toward its panel colour, in
everforest.css, and the tone class just picks one. The disc is the
theme's moon or sun colours and the ink the hills shade toward is the
theme's darkest token.

Two shares of accent, because the panels are opposite: a dark theme's
panel is nearly black, so its grounds keep 80% of the accent to stay a
colour, while a light panel is nearly white and keeps 48% so the
landscape is pastel rather than a highlighter.

A custom property holding color-mix() reads back as text, so the bundle
resolves the palette through one hidden probe element and caches it per
theme; app.js already redraws the avatars when data-theme changes, so a
theme switch re-reads it. The fallback letter now takes --av-fg, which is
the theme's foreground, so it stays readable on a light theme's pastel
grounds.

docs/accounts-and-access.md +8−6

@@ -31,12 +31,14 @@ still refers to the name.
31 31
32 32 Every name is drawn a small landscape from the account name: the account's tone
33 33 is the sky, the hills take other tones from the same seven, and the sun comes
34 from the Everforest palette — or the moon, on a dark theme. DiceBear's engine draws it in the browser, with a style that
35 lives in this repository, from a script embedded in the binary. So the same
36 person looks the same on every page and between visits; the instance stores no
37 image, accepts no upload, and makes no request to an avatar service. Until the
38 script draws the mark the page shows the account's initial on the same sky, which
39 is also what a browser without scripts keeps. It is decoration, not an
34 from the Everforest palette — or the moon, on a dark theme. All of those colours
35 are mixed from the active Everforest variant, so a mark matches the theme the
36 reader chose and changes with it. DiceBear's engine draws it in the browser, with
37 a style that lives in this repository, from a script embedded in the binary. So
38 the same person looks the same on every page and between visits; the instance
39 stores no image, accepts no upload, and makes no request to an avatar service.
40 Until the script draws the mark the page shows the account's initial on the same
41 sky, which is also what a browser without scripts keeps. It is decoration, not an
40 42 identifier; a name is what identifies an account.
41 43
42 44 What a profile counts is not public. Every number and every event is limited to