africa.finance brand pack home

Components

Live parts built from the tokens. Use components.css and the markup below.

Buttons

Primary for the one main action, outline for the second. Never two filled buttons side by side.

Show the code for buttons
<div class="af-btn-row">
  <button class="af-btn af-btn--primary" type="button">Book a call</button>
  <button class="af-btn af-btn--outline" type="button">See the team</button>
  <button class="af-btn af-btn--ghost" type="button">Cancel</button>
</div>
<div class="af-btn-row" style="margin-top:12px">
  <button class="af-btn af-btn--danger" type="button">Remove partner</button>
  <button class="af-btn af-btn--primary af-btn--small" type="button">Save</button>
  <button class="af-btn af-btn--primary" type="button" disabled>Sending</button>
</div>

Underlined in body text, so they never rely on colour alone.

Read the partner guide before your first meeting.

Show the code for links
<p>Read the <a class="af-link" href="#links">partner guide</a> before your first meeting.</p>

Text fields

A visible label, an optional hint, and an error that says what to do.

We reply from the same address.

Enter a full email address, like amina@example.com

Show the code for text fields
<div class="af-field">
  <label class="af-label" for="ex-name">Full name</label>
  <input class="af-input" id="ex-name" autocomplete="name">
</div>
<div class="af-field">
  <label class="af-label" for="ex-email">Work email</label>
  <p class="af-hint" id="ex-email-hint">We reply from the same address.</p>
  <input class="af-input" id="ex-email" type="email" aria-describedby="ex-email-hint ex-email-err" aria-invalid="true" value="amina@">
  <p class="af-error" id="ex-email-err">Enter a full email address, like amina@example.com</p>
</div>
<div class="af-field">
  <label class="af-label" for="ex-city">City</label>
  <select class="af-select" id="ex-city">
    <option>Accra</option><option>Cairo</option><option>Dakar</option><option>Lagos</option><option>Nairobi</option>
  </select>
</div>
<div class="af-field">
  <label class="af-label" for="ex-note">What do you need?</label>
  <textarea class="af-textarea" id="ex-note"></textarea>
</div>

Checkboxes and radios

The whole label is the target. Focus shows a solid outline in every browser.

Languages
Preferred contact
Show the code for checkboxes and radios
<fieldset class="af-fieldset">
  <legend>Languages</legend>
  <label class="af-choice"><input type="checkbox" name="lang" checked> English</label>
  <label class="af-choice"><input type="checkbox" name="lang"> French</label>
  <label class="af-choice"><input type="checkbox" name="lang"> Swahili</label>
</fieldset>
<fieldset class="af-fieldset">
  <legend>Preferred contact</legend>
  <label class="af-choice"><input type="radio" name="contact" checked> Email</label>
  <label class="af-choice"><input type="radio" name="contact"> Phone</label>
  <label class="af-choice"><input type="radio" name="contact"> In person</label>
</fieldset>

Tabs

One tab stop for the set. Arrow keys move between tabs, Home and End jump to the ends.

Two people based in Westlands, Nairobi. Fictional example.

Show the code for tabs
<div class="af-tabs">
  <div role="tablist" aria-label="Example market">
    <button role="tab" id="tab-1" aria-controls="panel-1" aria-selected="true" tabindex="0" type="button">Team</button>
    <button role="tab" id="tab-2" aria-controls="panel-2" aria-selected="false" tabindex="-1" type="button">Partners</button>
    <button role="tab" id="tab-3" aria-controls="panel-3" aria-selected="false" tabindex="-1" type="button">Events</button>
  </div>
  <div role="tabpanel" id="panel-1" aria-labelledby="tab-1" tabindex="0"><p>Two people based in Westlands, Nairobi. Fictional example.</p></div>
  <div role="tabpanel" id="panel-2" aria-labelledby="tab-2" tabindex="0" hidden><p>Four local partners. Fictional example.</p></div>
  <div role="tabpanel" id="panel-3" aria-labelledby="tab-3" tabindex="0" hidden><p>Founder breakfast, first Thursday of the month. Fictional example.</p></div>
</div>

Accordion

Native details and summary, so it works without script.

Who is africa.finance for?

Companies and partners working across Africa.

How does it relate to RWA.io?

africa.finance is powered by RWA.io.

Show the code for accordion
<div class="af-accordion">
  <details><summary>Who is africa.finance for?</summary><div><p>Companies and partners working across Africa.</p></div></details>
  <details><summary>How does it relate to RWA.io?</summary><div><p>africa.finance is powered by RWA.io.</p></div></details>
</div>

Card

The RWA.io hairline card. Identity comes from content and the accent, never new chrome.

Kijani Cold Chain

Cold storage for fresh produce between Kisumu and Mombasa.

Fictional company · Example data

Live
Show the code for card
<article class="af-card">
  <h3>Kijani Cold Chain</h3>
  <p>Cold storage for fresh produce between Kisumu and Mombasa.</p>
  <p class="af-card__meta">Fictional company · Example data</p>
  <span class="af-status"><span class="af-dot af-dot--live" aria-hidden="true"></span>Live</span>
</article>

Status

From the RWA.io dot system: a core and a ring, always with words. Teal means live.

Not started

In progress

Live

Show the code for status
<p><span class="af-status"><span class="af-dot" aria-hidden="true"></span>Not started</span></p>
<p><span class="af-status"><span class="af-dot af-dot--progress" aria-hidden="true"></span>In progress</span></p>
<p><span class="af-status"><span class="af-dot af-dot--live" aria-hidden="true"></span>Live</span></p>

Notice

A left rule and plain words. Never colour alone.

Note. Office closed on 1 Dec.

Sent. We will reply within two working days.

Check this. The meeting time changed to 10:00 EAT.

Not sent. Add your email and try again.

Show the code for notice
<div class="af-notice"><p><strong>Note.</strong> Office closed on 1 Dec.</p></div>
<div class="af-notice af-notice--success"><p><strong>Sent.</strong> We will reply within two working days.</p></div>
<div class="af-notice af-notice--warning"><p><strong>Check this.</strong> The meeting time changed to 10:00 EAT.</p></div>
<div class="af-notice af-notice--danger"><p><strong>Not sent.</strong> Add your email and try again.</p></div>

Table

Fixed layout that wraps at 320px, with a caption.

Fictional example data
CityLanguagesStage
NairobiEnglish, SwahiliLive
DakarFrench, WolofIn progress
AccraEnglish, TwiNot started
Show the code for table
<table class="af-table">
  <caption>Fictional example data</caption>
  <thead><tr><th>City</th><th>Languages</th><th>Stage</th></tr></thead>
  <tbody>
    <tr><td>Nairobi</td><td>English, Swahili</td><td><span class="af-status"><span class="af-dot af-dot--live" aria-hidden="true"></span>Live</span></td></tr>
    <tr><td>Dakar</td><td>French, Wolof</td><td><span class="af-status"><span class="af-dot af-dot--progress" aria-hidden="true"></span>In progress</span></td></tr>
    <tr><td>Accra</td><td>English, Twi</td><td><span class="af-status"><span class="af-dot" aria-hidden="true"></span>Not started</span></td></tr>
  </tbody>
</table>

The lockup links home. The footer carries the Powered by RWA.io badge, linked to rwa.io.

Show the code for header and footer
<div class="af-header">
  <a href="#header-and-footer"><img class="only-day" src="logos/logo-horizontal-day.svg" alt="africa.finance home"><img class="only-night" src="logos/logo-horizontal-night.svg" alt="africa.finance home"></a>
  <a class="af-btn af-btn--primary af-btn--small" href="#header-and-footer">Get in touch</a>
</div>
<div class="af-footer">
  <a href="https://rwa.io"><img class="only-day" src="badge/Powered-by-RWA-io-Horizontal-Light.svg" alt="Powered by RWA.io"><img class="only-night" src="badge/Powered-by-RWA-io-Horizontal-Dark.svg" alt="Powered by RWA.io"></a>
  <span>Not affiliated with any other company or regulator named here.</span>
</div>