CSS Variables and Unicode Symbols: Style a Minimal Website

CSS variables for color, borders and fonts, plus a reference of Unicode symbol sets, add personality to a personal website without images or frameworks. Symbols are plain text, so they survive RSS feeds, email and print.

By
Brennan Kenneth Brown
Published
Reading time
10 minutes
Level
Beginner
You need
  • A website whose CSS you can edit
  • Basic HTML and CSS
Grid of colorful occult sigil symbols on a black background
72 Goeta Sigils' by S.L. MacGregor Mathers and Aleister Crowley from 'The Book of the Goetia of Solomon the King.' 1904. | Wikimedia Commons (edited by the Author)

Minimal personal websites, such as those on platforms like Bear Blog, are fast and readable, but they can also look plain. This guide shows how to add visual interest with CSS variables (custom properties) for colour, borders and fonts, then a reference of Unicode symbols you can use as icons, bullets and category markers. Everything stays small and fast: no images, no icon font and no framework, in the spirit of brutalist web design.

Keep contrast and screen-reader behaviour in mind as you decorate. The web accessibility checklist covers what to check.

1. Colours

CSS variables are officially called CSS custom properties.

At the very top of your stylesheet, wrapped inside a :root selector, you can define a legend of every colour your site uses:

:root {
  --color-ink: #1a1a1a;
  --color-paper: #faf8f3;
  --color-accent: #d6473b;
  --color-link: #3b6bd6;
  --color-muted: #6b6b6b;
}

body {
  color: var(--color-ink);
  background: var(--color-paper);
}

a {
  color: var(--color-link);
}

Now the whole site uses five named colours instead of hex codes scattered across rules.

To add a dark mode, swap the values inside a @media (prefers-color-scheme: dark) block and every single reference updates everywhere at once.

/* Dark mode via system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #f0ede8;
    --color-paper: #1a1a1a;
    --color-accent: #e85a4f;
    --color-link: #7aa2f7;
    --color-muted: #a0a0a0;
  }
}

Here's the colour legend from my own site, Brennan.day (built as described in this Eleventy and hand-written CSS guide), which uses the Gruvbox palette:

:root {
  color-scheme: light dark;

  /* Base colors (light mode) */
  --bg: #fbf1c7;
  --bg-alt: #f9f5d7;
  --panel: #f2e5bc;
  --fg: #3c3836;
  --muted: #665c54;
  --border: #7c6f64;

  --accent-primary: #9a2420;
  --accent-secondary: #076678;
  --code-inline: #5c7a8c;
  --code-bg: #fdf6e4;

  /* Link colors */
  --link: var(--accent-primary);
  --visited: #b16286;

  /* Navigation rainbow colors */
  --nav-red: #cc241d;
  --nav-orange: #d65d0e;
  --nav-yellow: #d79921;
  --nav-green: #98971a;
  --nav-aqua: #689d6a;
  --nav-blue: #458588;
  --nav-purple: #b16286;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #282828;
    --bg-alt: #32302f;
    --panel: #1d2021;
    --fg: #ebdbb2;
    --muted: #a89984;
    --border: #504945;

    --accent-primary: #7b9b8f;
    --accent-secondary: #de402e;
    --code-inline: #eaafaf;
    --code-bg: #32302f;

    --link: var(--accent-primary);
    --visited: #d3869b;

    --nav-red: #fb4934;
    --nav-orange: #fe8019;
    --nav-yellow: #fabd2f;
    --nav-green: #b8bb26;
    --nav-aqua: #8ec07c;
    --nav-blue: #83a598;
    --nav-purple: #d3869b;
  }
}

Palettes

These tools help you pick or check a palette:

  • Radix Colors offers full accessible 12-step scales. Backgrounds, borders, text, hover states, all pre-matched to hue-appropriate greys and ready to drop straight into that :root legend above.
  • Realtime Colors lets you plug in a palette and previews a mock website with it, including contrast ratios.
  • WebAIM's Contrast Checker checks whether a foreground and background hex colour pair passes WCAG AA or AAA.
  • Accessible Palette uses the CIELAB colour model to generate shades that stay consistent as they get lighter or darker, if you'd rather build your own scale from a starting colour.

Most text should use neutral colours with strong contrast against the background. Accent colours work well on links, headers, symbols (covered below), and hover and click states, including on backgrounds as well as text.

2. Borders

A single border line, one or two pixels wide, can change how a site feels. Where you put it matters. A full box around the whole body makes the content feel contained, perhaps more formal. A border on the left edge of a blockquote emphasizes that it's someone else's voice. A rule along the top and bottom of each post turns a long scroll of text into a stack of distinct items.

/* the content of the site, boxed like a page */
body {
  max-width: 40em;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid var(--color-ink);
}

/* a post divided from other posts, top and bottom only */
article {
  padding: 2rem 0;
  border-top: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
}

/* an aside, left edge only */
blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

It doesn't need to be solid, either. Styles like border-style: dashed or dotted give it a different quality entirely, almost handmade or zine-like. A double border creates a frame effect.

And if you want the visual weight of a border without it eating into the box model, box-shadow: 0 0 0 1px var(--color-ink) draws a border that doesn't affect layout, sizing, or spacing calculations.

Try the border on the body, on each post, or only on pull-quotes, and keep whichever looks best.

3. Fonts

Custom fonts add weight and slow page loads. Instead, Modern Font Stacks provides system font stack CSS organized by typeface classification, which uses built-in fonts on every modern OS.

If you do want custom fonts, Bunny Fonts is an alternative to Google Fonts.

4. Other Tricks

These need only a few lines of CSS each:

Style ::selection. This is the colour someone sees when they click-and-drag to highlight your text, and is usually a default blue. Two lines change it:

::selection {
  background: var(--color-accent);
  color: var(--color-paper);
}

Style ::marker. List bullets are pseudo-elements too, and you can restyle them directly instead of using list-style: none and a fake icon image. You can also swap the bullet for one of the Unicode symbols covered below:

li::marker {
  content: "◆  ";
  color: var(--color-accent);
}

Play with text-decoration. Link underlines can be changed with text-decoration-thickness, text-underline-offset, and and text-decoration-style: wavy | dotted | dashed:

a {
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

How Do I Use Unicode Symbols as Icons?

Loading the full Font Awesome library, hundreds of KB with a JS injection layer, for a handful of icons carries a performance cost. Unicode characters give you many symbols for free.

Every symbol in this reference is a character, not an icon or SVG. Using unicode characters means no CDN request, no icon font to license or version, no build step.

These are symbols pulled from Unicode blocks, and most render reliably across operating systems, browsers, and fallback fonts. The reference below is organized into thematic groups (celestial, elemental, occult, card suits, chess) so you can build a consistent visual vocabulary for categorizing posts, marking status and flagging priority.

Emojis are also an option, but they look different on each operating system and browser, and you can't colour them with CSS.

Because these characters are Unicode text, you can colour and size them like any other text. That gives you a lightweight taxonomy that works anywhere plain text works.

Here's how I colour symbols on my site using the rainbow palette from the colour legend above:

.sym {
  font-family: 'Noto Sans Symbols 2', sans-serif;
  font-size: 2em;
  font-variant-emoji: text;
}

.sym-red    { color: var(--nav-red); }
.sym-orange { color: var(--nav-orange); }
.sym-yellow { color: var(--nav-yellow); }
.sym-green  { color: var(--nav-green); }
.sym-aqua   { color: var(--nav-aqua); }
.sym-blue   { color: var(--nav-blue); }
.sym-purple { color: var(--nav-purple); }

Usage: <span class="sym sym-red">♥</span> or <span class="sym sym-blue">♠</span>

I've set font-size: 2em to make the symbols twice as large as the surrounding text, helping them stand out more in tables and inline usage. Adjust this value to suit your preference.

The font-variant-emoji: text property forces certain Unicode characters (like ⚡, zodiac signs etc.) to render as text characters instead of emojis, ensuring consistent styling across browsers and operating systems.

Because the symbols are still plain text, they work in RSS feeds, email newsletters, printed zines, terminal-rendered markdown, wherever your writing ends up.

The suggested uses in the tables below are examples. You can use the symbols to organize media logs, post types or bullet journal keys.

Core Symbols (most reliable)

Symbol Name Unicode Suggested use
• Bullet U+2022 Task
○ White circle U+25CB Event
— Em dash U+2014 Note
● Black circle U+25CF Complete / filled
★ Black star U+2605 Priority
☆ White star U+2606 Priority (secondary)
▲ Black triangle U+25B2 Warning / deadline
△ White triangle U+25B3 Warning (lighter)
■ Black square U+25A0 Category block
□ White square U+25A1 Category (unfilled)
◆ Black diamond U+25C6 Highlight
◇ White diamond U+25C7 Highlight (lighter)
✓ Check mark U+2713 Done
✗ Ballot X U+2717 Cancelled
→ Right arrow U+2192 Migrated / moved
½ Vulgar fraction U+00BD In progress

Progress / Fill Indicators (Geometric Shapes)

Symbol Name Unicode Suggested use
○ Empty circle U+25CB 0%
◔ Circle, quarter fill U+25D4 25%
◑ Circle, half fill (right) U+25D1 50%
◒ Circle, half fill (bottom) U+25D2 50% (alt)
◕ Circle, three-quarter fill U+25D5 75%
● Full circle U+25CF 100%
◐ Circle, half fill (left) U+25D0 50% (alt)
◍ Circle with vertical fill U+25CD Partial / mixed

Weather

Symbol Name Unicode Suggested use
☀ Sun U+2600 Clear / good day
☁ Cloud U+2601 Overcast / low energy
☂ Umbrella U+2602 Rain / obstacles
☃ Snowman U+2603 Cold / slow season
☄ Comet U+2604 Rare event / big change
⚡ High voltage U+26A1 Sudden burst / urgent
❄ Snowflake U+2744 Pause / stillness

Celestial: Moon & Sun

Symbol Name Unicode Suggested use
☽ First quarter moon (crescent) U+263D Waxing / starting
☉ Sun U+2609 Full / peak
☾ Last quarter moon (crescent) U+263E Waning / finishing
⏾ Last quarter moon (alt glyph) U+23FE Waning (alt)

Classical Elements (Alchemical)

Symbol Name Unicode Suggested use
🜂 Fire U+1F702 Urgent / energy / motivation
🜄 Water U+1F704 Emotional / reflective
🜁 Air U+1F701 Ideas / communication / social
🜃 Earth U+1F703 Practical / routine / physical

Classical Planets

Symbol Name Unicode Suggested use
☿ Mercury U+263F Communication / messages
♀ Venus U+2640 Relationships / beauty / self-care
♂ Mars U+2642 Action / conflict / push-through
♃ Jupiter U+2643 Growth / opportunity / luck
♄ Saturn U+2644 Discipline / limits / deadlines
♅ Uranus U+2645 Disruption / sudden insight
♆ Neptune U+2646 Dreams / intuition / fog
♇ Pluto U+2647 Transformation / deep change

Zodiac (Monthly "theme of the season" markers, or tagging entries by the sign in effect)

Symbol Name Unicode
♈ Aries U+2648
♉ Taurus U+2649
♊ Gemini U+264A
♋ Cancer U+264B
♌ Leo U+264C
♍ Virgo U+264D
♎ Libra U+264E
♏ Scorpio U+264F
♐ Sagittarius U+2650
♑ Capricorn U+2651
♒ Aquarius U+2652
♓ Pisces U+2653

Occult / Fortune Accents

Symbol Name Unicode Suggested use
⚸ Black moon Lilith U+26B8 Shadow work / hidden things
⚹ Sextile aspect U+26B9 Luck / favorable alignment
⚶ Vesta U+26B6 Nurture / growth marker
✵ Heavy outlined star U+2735 Magic / spell-cast / wish
✶ Six-pointed black star U+2736 Magic (alt)
✷ Eight-pointed pinwheel star U+2737 Magic (alt, busier)
⛤ Pentagram U+26E4 Ritual / intention-setting
⛥ Pentagram within circle U+26E5 Ritual (protective)
⛦ White pentagram U+26E6 Ritual (lighter)
⛧ Inverted pentagram U+26E7 Ritual (alt orientation)

Card Suits

Symbol Name Unicode Suggested use
♠ Spade U+2660 Work / career
♥ Heart U+2665 Relationships / self-care
♦ Diamond U+2666 Money / finance
♣ Club U+2663 Growth / learning

Chess Pieces

Symbol Name Unicode Suggested use
♛ Black queen U+265B Top priority
♜ Black rook U+265C Major task
♝ Black bishop U+265D Supporting task
♞ Black knight U+265E Lateral / creative task
♟ Black pawn U+265F Small / routine task
♚ Black king U+265A Anchor / non-negotiable

There are also White variants (♔♕♖♗♘♙, U+2654–2659).

Dice

Symbol Name Unicode Suggested use
⚀ Die face 1 U+2680 Intensity/effort scale: lowest
⚁ Die face 2 U+2681 Scale: low
⚂ Die face 3 U+2682 Scale: mid
⚃ Die face 4 U+2683 Scale: mid-high
⚄ Die face 5 U+2684 Scale: high
⚅ Die face 6 U+2685 Scale: highest

I Ching Trigrams

Symbol Name Unicode
☰ Qian (Heaven) U+2630
☱ Dui (Lake) U+2631
☲ Li (Fire) U+2632
☳ Zhen (Thunder) U+2633
☴ Xun (Wind) U+2634
☵ Kan (Water) U+2635
☶ Gen (Mountain) U+2636
☷ Kun (Earth) U+2637

There is an existing Bagua, a set of symbols from China rich with meaning. You can use these to style an 8-domain life map: career, knowledge, family, wealth, health, creativity, relationships, self. Beyond there's a full 64-hexagram set (U+4DC0–4DFF) available for a much larger vocabulary, if desired.

Directional / Momentum Modifiers

Symbol Name Unicode Suggested use
← Left arrow U+2190 Reverted / went back
↑ Up arrow U+2191 Escalated priority
→ Right arrow U+2192 Migrated / moved forward
↓ Down arrow U+2193 Deprioritized
↔ Left-right arrow U+2194 Ongoing / back-and-forth
↻ Clockwise open arrow U+21BB Recurring
⇄ Right-left arrows U+21C4 Swapped / exchanged

Novelty / Decorative Only (less likely to render; test before relying on)

Symbol Name Unicode Note
🀇–🀡 Mahjong tiles U+1F007–1F029 Low legibility at smaller size
🁢–🀿 Domino tiles U+1F031– Low legibility at smaller size
𐇐–𐇽 Phaistos Disc symbols U+101D0 block Beautiful but archaic; unreliable across systems

Why Use Symbols as Personal Iconography?

Beyond the practical case (Unicode costs nothing, loads instantly and degrades gracefully), symbols let you mark entries with meaning. I put a pentagram (⛤) next to posts about setting intentions and a comet (☄) next to posts about sudden change. Marking a post with the moon (☾) instead of a checkbox reads as "waning, finishing" instead of just "done".

A big inspiration is Devine Lu Linvega, whose wiki at xxiivv.com uses a deliberate system of personal iconography, including a crest built from the visual language of Neon Hermetism. It is a good example of a site where the visual system is part of the content.

Symbol Architecture Ideas

  1. Primary category layer: pick one grouped set as your main taxonomy. The four elements (🜂🜄🜁🜃) are a strong choice.
  2. Status/progress layer: moon phases (☽☉☾) or fill circles (○◔◑◕●) for where something stands.
  3. Priority layer: stars (★☆) or dice (⚀–⚅) for weight/urgency.
  4. Modifier layer: arrows (→↑↓↻) stacked onto any entry regardless of category.
  5. Rare/special accent: reserve one symbol (⛤ pentagram, or ✵ starburst) exclusively for entries that need to stand out.

How Do I Make Symbols Render the Same Everywhere?

To make symbols look the same across operating systems and browsers, load them from a font CDN and append the text= flag, which lets you choose individual symbols rather than loading the entire typeface.

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&text=%E2%80%A2%E2%97%8B%E2%80%94%E2%97%8F%E2%98%85%E2%98%86%E2%96%B2%E2%96%B3%E2%96%A0%E2%96%A1%E2%97%86%E2%97%87%E2%9C%93%E2%9C%97%E2%86%92%E2%97%94%E2%97%91%E2%97%92%E2%97%95%E2%97%90%E2%97%8D%E2%98%80%E2%98%81%E2%98%82%E2%98%83%E2%98%84%E2%9A%A1%E2%9D%84%E2%98%BD%E2%98%89%E2%98%BE%E2%8F%BE%F0%9F%9C%82%F0%9F%9C%84%F0%9F%9C%81%F0%9F%9C%83%E2%98%BF%E2%99%80%E2%99%82%E2%99%83%E2%99%84%E2%99%85%E2%99%86%E2%99%87%E2%99%88%E2%99%89%E2%99%8A%E2%99%8B%E2%99%8C%E2%99%8D%E2%99%8E%E2%99%8F%E2%99%90%E2%99%91%E2%99%92%E2%99%93%E2%9A%B8%E2%9A%B9%E2%9A%B6%E2%9C%B5%E2%9C%B6%E2%9C%B7%E2%9B%A4%E2%9B%A5%E2%9B%A6%E2%9B%A7%E2%99%A0%E2%99%A5%E2%99%A6%E2%99%A3%E2%99%A1%E2%99%9B%E2%99%9C%E2%99%9D%E2%99%9E%E2%99%9F%E2%99%9A%E2%99%94%E2%99%95%E2%99%96%E2%99%97%E2%99%98%E2%99%99%E2%9A%80%E2%9A%81%E2%9A%82%E2%9A%83%E2%9A%84%E2%9A%85%E2%98%B0%E2%98%B1%E2%98%B2%E2%98%B3%E2%98%B4%E2%98%B5%E2%98%B6%E2%98%B7%E2%86%90%E2%86%91%E2%86%93%E2%86%94%E2%86%BB%E2%87%84&display=swap" rel="stylesheet">

The text= string is long because it covers every symbol in the tables above.

Then add this CSS, which replaces the earlier .sym rule:

:root {
  --font-body: 'Inter', 'Roboto', 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
  --font-symbols: 'Noto Sans Symbols 2', var(--font-body);
}

.sym {
  font-family: var(--font-symbols);
  font-weight: normal;
  font-style: normal;
}

.sym-blue   { color: #3b6bd6; }
.sym-yellow { color: #d6a53b; }
.sym-red    { color: #d6473b; }
.sym-purple { color: #8b5cd6; }
.sym-green  { color: #3bd68f; }

Usage: <span class="sym sym-red">▲</span>

The string is pre-encoded for the symbols in the reference tables above (about 95 characters), so it is one font request with no per-category loading. If you add symbols later that aren't in that list, you'll need to edit the URL with the new character included.

Summary

A :root colour legend, a deliberate border, a system font stack and a small symbol vocabulary keep a site light while giving it a recognizable look. Take whichever parts suit your site and skip the rest.