Log in with RemiliaNET button
Styles, sizes, states, labels, files, and usage rules of the Log in with RemiliaNET button kit.
The button starts the login flow of your app, which opens the RemiliaNET login page. The kit holds one stylesheet, a React component, the RemiliaNET mark, the Remilia-Mincho typeface, and PNG images of every theme.
Button builder
Pick a style and options, then copy the HTML or React code under the preview. The preview shows the button on a light and a dark ground, and responds to hover, press, and keyboard focus.
To add the copied code to your app, see Add the login button.
Files
The typeface is licensed under the SIL Open Font License 1.1 (OFL), which lets your app serve and bundle it. Keep the license file with the font files.
Your app serves its own copy of the kit, so later changes to this site do not reach it.
Styles
Each style has its own colors, corners, shadows, and states, and every theme
works on a light or a dark ground. A theme's class joins the style and theme
names, such as remilia-login--material-light. Classic Silver is the default
and needs only remilia-login.
Sizes and options
Both sizes have a touch target of at least 44 by 44 px, as WCAG 2.5.5 asks. An invisible margin around the button provides it, and the margin stays in place while the button moves. Leave at least 8 px between Standard buttons and 12 px between Compact buttons, so their touch targets do not overlap.
Heights, padding, gaps, mark sizes, and corners sit on a 4 px grid. The corners
follow the style and the size: Classic uses 4 px at Compact and 8 px at
Standard, Material uses 4 px, and Aqua is a pill. --remilia-login-radius on
the button replaces them, for example style="--remilia-login-radius: 12px".
The options combine with either size:
A labeled button is at least 140 px wide. A browser without interpolate-size
shows the expanding label at once, without the slide.
States
- Hover. Classic and Aqua buttons lift by 1 px and catch a soft light from above. Material buttons gain a tight shadow and stay in place.
- Press. Classic and Aqua buttons sink by 1 px. Material buttons shrink slightly.
- Focus. Keyboard focus draws a 2 px ring in the focus color of the theme.
- Disabled. The button fades its own colors, drops its gloss and shadow, dims its mark, and ignores hover and press. Material Light and Dark follow the Material disabled state.
The reduced motion setting of the system turns off the spin and every
transition, as remilia-login--still does.
A <button disabled> turns login off. On an HTML link, aria-disabled="true"
changes only the appearance, so a disabled link also has no href and no click
handler. The React component removes the href of a link with
aria-disabled and blocks its click.
Labels
remilia-login--uppercase sets the label in capitals with wider letter
spacing. The text stays as written, so screen readers read words, not letters.
The PNG files use the label as written.
Logo position
By default the mark sits at the left edge and the label is centered in the
space beside it, so the marks line up when provider buttons stack at the same
width. On a button that fits its label, the mark and the label sit together.
remilia-login--logo-center centers both on a full-width button that stands
alone.
An expanding icon grows away from where it sits: at the start of a row it opens toward the end, and in the center it opens from the middle.
React properties
Other properties pass through to the <button> or <a> element. The component
draws the mark itself, so it needs only the stylesheet and its fonts/ folder.
Usage rules
Correct use
- RemiliaNET has the same size, weight, and position as the other login options on the screen.
- The label and the mark stay as shipped, with one of the four labels.
- The short Log in label appears only where the button stands alone. Beside other providers, the button uses the full label, as they do.
- At least 8 px of clear space surrounds the button.
- The button starts the RemiliaNET login flow, which opens the RemiliaNET login page.
- A screen uses one style.
Incorrect use
The mark
Every style shows the RemiliaNET mark in full color.
- Color. The mark is full color only, as shipped. It is never one color, inverted, or on a gradient that hides the petals.
- Minimum size. 20 px. Below that size, the petals disappear.
- Clear space. A quarter of the height of the mark stays clear on every side. The padding of the button provides it.
- Halo. A tight light halo behind the mark keeps its edge clear on dark and colored faces.
- Shape and motion. The mark is never redrawn, outlined, or given other
effects. Its only motion is the spin of
remilia-login--spinor the Material lift, and reduced motion turns both off.
