StratoLMS themes
StratoLMS has a built-in, build-time theme with four replaceable layers:
tokens, UI primitives, domain blocks, and page layouts. The default paper
preset preserves the original warm identity; slate and ink are included for
different product voices.
Quick changes
Section titled “Quick changes”- Change a colour or spacing value in root
theme.config.tsundertokens, or choosepaper,slate, orinkunderpreset. - Change a page composition with
layouts.home,layouts.catalog,layouts.course, orlayouts.learn. - Run
stratolms theme eject CourseCardto copy a built-in component intosrc/theme/overrides/and make it yours.
The registry is resolved at build time: built-in < local override. Customize the built-in theme through tokens, layouts, and creator-owned local overrides.
CSP and assets
Section titled “CSP and assets”The starter CSP permits same-origin images and data: images, but not remote
hero origins. Keep images local and provide heroAlt. Do not use style
attributes or Astro define:vars; use data attributes, CSS tokens, and scoped
style blocks. The starter intentionally uses system font stacks and no web-font
request by default.
Migrating
Section titled “Migrating”Curriculum.astro, CourseCard.astro, Pricing.astro, and their siblings now
live under src/theme/components/blocks/. A site that edited one of those
files should re-apply its change as an override with stratolms theme eject.
The blocked VideoEmbed inline aspect-ratio attribute was fixed separately:
ratios now use the CSP-safe MediaFrame data contract. This behavioural fix is
independent of the additive theme redesign.
See tokens, components, layouts, overriding, and the external-theme decision.