Theme Lexicon

The site.standard.theme.basic lexicon provides a simplified theme definition for publications, enabling basic color customization for content display across different platforms and applications.

Overview

This lexicon ensures publications maintain their visual identity across different reading applications and platforms by defining core colors for content display.

Schema

Required Properties

PropertyTypeDescription
backgroundrefColor used for content background (ref → site.standard.theme.color#rgb)
foregroundrefColor used for content text (ref → site.standard.theme.color#rgb)
accentrefColor used for links and button backgrounds (ref → site.standard.theme.color#rgb)
accentForegroundrefColor used for button text (ref → site.standard.theme.color#rgb)

Color Format

Colors are defined using the site.standard.theme.color#rgb type from the site.standard.theme.color lexicon.

RGB Color Type

Each color is an object with three required integer properties:

PropertyTypeRangeDescription
rinteger0-255Red channel value
ginteger0-255Green channel value
binteger0-255Blue channel value

RGBA Color Type

The site.standard.theme.color lexicon also defines an rgba type for colors with transparency:

PropertyTypeRangeDescription
rinteger0-255Red channel value
ginteger0-255Green channel value
binteger0-255Blue channel value
ainteger0-100Alpha (opacity) value, where 0 is transparent and 100 is opaque

Color Roles

  • background: Main surface color for content areas
  • foreground: Default color for body text and content
  • accent: Color for interactive elements like links and button backgrounds
  • accentForeground: Text color used on accent-colored backgrounds (ex: button text)

Usage in Publications

Include the basic theme in your publication record:

{
  "$type": "site.standard.publication",
  "url": "https://myblog.com",
  "name": "My Blog",
  "basicTheme": {
    "$type": "site.standard.theme.basic",
    "background": {
      "$type": "site.standard.theme.color#rgb",
      "r": 255,
      "g": 255,
      "b": 255
    },
    "foreground": {
      "$type": "site.standard.theme.color#rgb",
      "r": 31,
      "g": 41,
      "b": 55
    },
    "accent": {
      "$type": "site.standard.theme.color#rgb",
      "r": 59,
      "g": 130,
      "b": 246
    },
    "accentForeground": {
      "$type": "site.standard.theme.color#rgb",
      "r": 255,
      "g": 255,
      "b": 255
    }
  }
}

Best Practices

  1. Consider readability: Ensure foreground/background combinations are legible
  2. Test button colors: Verify accent/accentForeground pairs have sufficient contrast
  3. Provide all required properties: All four color properties are required for a valid theme
Standard.site© 2026
Built by the communityDesigned for the ATmosphere