@cosmocart/blog-themes
v0.1.0
Published
CSS-variable theme tokens for the cosmo-blog renderer (minimal-light, minimal-dark).
Readme
@cosmocart/blog-themes
CSS-variable token sets used by @cosmocart/blog-renderer. Two themes ship out of the box: minimal-light and minimal-dark.
import { themes, type ThemeName } from '@cosmocart/blog-themes'
import '@cosmocart/blog-themes/styles.css'
const tokens = themes['minimal-dark']You can also wrap any subtree in a data-cosmo-blog-theme="minimal-dark" attribute and the styles.css ships per-theme rules.
