ThemeSpec is a theme specification that can be used across a variety of projects to quickly theme them based on CSS variables. Themes are scoped and multiple can be used at the same time in an application. ThemeSpec is fully compatible with darkmode and any theme can have dark variants.
Used for turning a ThemeSpec into a Theme used by elm-theme-provider.
Renders an element that showcases all the current theme's colors and settings.
var(--tmspc-font-title)
var(--tmspc-font-text)
var(--tmspc-font-code)
var(--tmspc-border-radius)
Usually used for the border radius of small elements. (e.g. buttons)
var(--tmspc-border-radius-large)
Usually used for the border radius of large elements. (e.g. cards)
var(--tmspc-focus)
Usually used for accessibility purposes.
CSS Variables based on background colors.
var(--tmspc-background)var(--tmspc-background-dark)var(--tmspc-background-darker)var(--tmspc-background-shadow)CSS Variables based on base colors.
var(--tmspc-base)var(--tmspc-base-dark)var(--tmspc-base-darker)var(--tmspc-base-shadow)CSS Variables based on accent colors.
var(--tmspc-accent)var(--tmspc-accent-dark)var(--tmspc-accent-darker)var(--tmspc-accent-shadow)CSS Variables based on success colors.
var(--tmspc-success)var(--tmspc-success-dark)var(--tmspc-success-darker)var(--tmspc-success-shadow)CSS Variables based on warning colors.
var(--tmspc-warning)var(--tmspc-warning-dark)var(--tmspc-warning-darker)var(--tmspc-warning-shadow)CSS Variables based on danger colors.
var(--tmspc-danger)var(--tmspc-danger-dark)var(--tmspc-danger-darker)var(--tmspc-danger-shadow)