Trim redundant source comments
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
/**
|
||||
* Theme plugin, browser half: ThemeService over the --dsw-* token base
|
||||
* stylesheets in src/styles/ (the sole token source; components must not
|
||||
* hardcode colors). apply(id) toggles body[data-ds-dark-theme] — theming is
|
||||
* CSS cascade, zero React renders. Contract: api-contracts v3 section 8.
|
||||
* The base stylesheets ship separately (the web shell imports them as base
|
||||
* CSS); this plugin only owns the registry and the body-attribute switch.
|
||||
* Browser theme registry over the `--dsw-*` token stylesheets. Theme changes
|
||||
* update CSS variables and `body[data-ds-dark-theme]` without React renders.
|
||||
*/
|
||||
import type { Context } from 'cordis'
|
||||
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
/**
|
||||
* Theme plugin, node half. Pure UI plugin: the empty apply exists so the
|
||||
* plugin appears in the host cordis.yml / Loader (load and lifecycle follow
|
||||
* the host; the browser half ships via exports["./client"], discovered
|
||||
* through the package.json dshClient declaration). ThemeService and its
|
||||
* types live in the client half; consumers import the /client subpath.
|
||||
* Contract: api-contracts v3 section 8.
|
||||
*/
|
||||
/** Host loader entry for the browser implementation exported from `./client`. */
|
||||
|
||||
/** Host plugin body — no host-side behavior for the theme plugin. */
|
||||
export function apply(): void {}
|
||||
|
||||
Reference in New Issue
Block a user