Skip to content
Epiktetos Theme1.0.0
1.0.02 min read

Assets and Styling

CSS, font, color, spacing, and asset-loading reference for Epiktetos.

Epiktetos combines WordPress theme metadata, theme.json design tokens, and front-end CSS assets.

Enqueued CSS

HandleFile
epiktetos-fontsassets/css/fonts.css
epiktetos-stylestyle.css
epiktetos-frontendassets/css/frontend.css

Editor styles also include assets/css/editor.css.

Fonts

The readme describes the theme as using self-hosted Libre Baskerville and Inter fonts. The CSS assets include font declarations in assets/css/fonts.css, and functions.php preloads an Inter font on wp_head.

Core design tokens

theme.json defines:

Token areaExamples
LayoutContent width 680px, wide width 960px.
ColorsBackground #FAFAF9, text primary #1C1917, primary #78716C, border colors, success, warning, error, info.
TypographyDisplay, body, mono families and named font sizes from caption to display.
SpacingPresets from 12px through 120px.

Asset versioning

The helper epiktetos_asset_ver() returns the file modification time when an asset exists, otherwise it falls back to the theme version. This makes local cache-busting more precise during theme development.

Styling ownership

Use theme.json for editor-facing design tokens and theme CSS for front-end component behavior. Keep both in sync when changing the visual system.

Related articles