ThemeCore
module ThemeCore| Assembly | Nacara.Theme.Core |
| Attributes | [<RequireQualifiedAccess>] |
Functions and values
contentStylesheet (registry: Registry) : Registry
contentStylesheet (registry: Registry) : RegistryRegister the shared content stylesheet on its own, in the nacara.content layer, linked from every page by stylesheetLinks.
It reads the --nacara-* tokens, which the site defines or takes from tokensStylesheet.
| Parameter | |
|---|---|
registry | What the theme is contributing to. |
defaultTokens (value: bool) (options: SiteOptions) : SiteOptionsdefaults: SiteOptionsplugin () : IPlugin
plugin () : IPluginA plugin for a site that writes its own layouts and stylesheet.
It registers what configureBase does, the default tokens and the content stylesheet.
pluginWith (configure: SiteOptions -> SiteOptions) : IPluginregisterWith (configure: SiteOptions -> SiteOptions) (site: Site) : SitetokensStylesheet (registry: Registry) : Registry
tokensStylesheet (registry: Registry) : RegistryRegister the default tokens on their own, in the nacara.tokens layer, linked from every page before the site's stylesheet.
They set the tokens on :root, :root[data-theme="light"] and :root[data-theme="dark"]. A site overriding one writes it under the same selector.
| Parameter | |
|---|---|
registry | What the theme is contributing to. |