Robert Birming

Bearming theme

Bearming theme

Bearming is a Bear theme built for readability, easy customization, and modern styling with a bit of warmth and personality.

You can use it on its own or shape it further. Swap the colors with a palette, change the look with styles, or add features with add-ons. Mix and match however you like.

To see how everything fits together, check out the style guide.

The theme was last updated 2 days ago: health check and refinements across the full theme, plus a new Bear palette.

/*
* Bearming — a personal Bear theme
* Version 5.1.1 | 2026-03-25
* Robert Birming | robertbirming.com
*/

/* Colors: Default */
:root {
  color-scheme: light dark;

  /* Light */
  --bg: #f9f7f4;
  --text: #2c2d2e;
  --link: #1f5fbf;
  --visited: #7c5a91;

  /* Derived */
  --muted: color-mix(in srgb, var(--text) 75%, var(--bg));
  --surface: color-mix(in srgb, var(--text) 5%, var(--bg));
  --border: color-mix(in srgb, var(--text) 17%, var(--bg));
}

@media (prefers-color-scheme: dark) {
  :root {

    /* Dark */
    --bg: #1c1f23;
    --text: #e6e7e8;
    --link: #74b0f4;
    --visited: #a88bbd;
  }
}

/* Settings: Default */
:root {
  --page-width: 65ch;
  --font-body: system-ui, sans-serif;
  --font-heading: var(--font-body);
  --font-size: 1.0625rem;
  --font-small: calc(var(--font-size) * 0.875);
  --font-mono: ui-monospace, monospace;
  --line-height: 1.65;
  --space-block: 1.8rem;
  --radius: 4px;
}

/* =========================
   Base - theme structure
   Best left as is
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin-inline: auto;
  padding: 1.25rem;
  max-width: var(--page-width);
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
  overflow-wrap: break-word;
  color: var(--text);
  background-color: var(--bg);
}

p {
  margin-block: 1.2em;
}

h1, h2, h3, h4 {
  margin-block: var(--space-block) 0.5em;
  line-height: 1.3;
  font-family: var(--font-heading);
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.2rem; }

a {
  color: var(--link);
  text-decoration: none;
}

@media (hover: hover) {
  a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }
}

main a:visited {
  color: var(--visited);
}

hr,
img,
pre,
blockquote {
  margin-block: var(--space-block);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

figure {
  margin-inline: 0;
  margin-block: var(--space-block);
}

figure img,
figure p {
  margin-block: 0;
}

figcaption {
  margin-block-start: 0.7em;
  font-size: var(--font-small);
  color: var(--muted);
}

blockquote > :first-child { margin-block-start: 0; }
blockquote > :last-child { margin-block-end: 0; }
blockquote cite {
  display: block;
  margin-block-start: 0.7em;
  font-style: normal;
}

pre {
  padding-block: 1rem;
  padding-inline: 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--font-small);
  line-height: 1.5;
  tab-size: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

code {
  padding-block: 0.1em;
  padding-inline: 0.3em;
  font-family: var(--font-mono);
  font-size: var(--font-small);
  overflow-wrap: anywhere;
  background: var(--surface);
  border-radius: var(--radius);
}

pre code {
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: inherit;
  overflow-wrap: normal;
}

mark {
  padding-inline: 0.15em;
  color: var(--bg);
  background: color-mix(in srgb, var(--link) 70%, var(--text));
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-small);
}

th, td {
  padding-block: 0.5em;
  padding-inline: 0.75em;
  border: 1px solid var(--border);
  text-align: start;
}

th {
  background: var(--surface);
  font-weight: 700;
}

time {
  font-family: var(--font-mono);
  font-size: var(--font-small);
  font-style: normal;
  color: var(--muted);
}

header nav p,
main > :first-child,
.post main > h1 + p {
  margin-block-start: 0;
}

.post main > h1 {
  margin-block-end: 0;
}

p.tags {
  display: block;
  margin-block: var(--space-block);
}

p.tags a,
p.tags a:visited {
  margin-inline-end: 0.5em;
  font-size: var(--font-small);
  color: var(--muted);
}

/* =========================
   Styles - view options:
   robertbirming.com/bearming/styles
   ========================= */

/* Blockquote: Default */
blockquote {
  margin-inline: 0;
  padding-block: 1em;
  padding-inline: 1.5em;
  font-style: italic;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--border);
  border-radius: var(--radius);
}

/* Header: Default */
header {
  margin-block: 0 var(--space-block);
}

header a.title {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}

.title h1 {
  margin-block: 0;
  font-size: 1.5rem;
}

nav p {
  margin-block: 0;
}

nav a {
  margin-inline-end: 0.5em;
}

/* Blog list: Default */
.blog-posts {
  margin-block-end: var(--space-block);
  padding: 0;
  list-style: none;
}

.blog-posts li {
  display: flex;
  margin-block-end: 0.3em;
}

.blog-posts li span {
  flex: 0 0 7.5rem;
}

/* Upvote button: Default */
.upvote-button {
  cursor: pointer;
  font: inherit;
}

/* Footer: Default */
footer {
  margin-block-start: var(--space-block);
  padding-block-start: 1.2rem;
  text-align: center;
  color: var(--muted);
  border-block-start: 1px solid var(--border);
}

footer p {
  margin-block: 0.5em;
}

footer span:last-child {
  font-size: var(--font-small);
}

/* =========================
   Add-ons - view options:
   robertbirming.com/bearming/add-ons
   ========================= */