@conduction/docusaurus-preset 3.45.2 → 3.45.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/diagrams/cn-platform.js +10 -3
package/package.json
CHANGED
|
@@ -38,11 +38,18 @@ class CnPlatform extends HTMLElement {
|
|
|
38
38
|
const ground = this.hasAttribute('ground');
|
|
39
39
|
const tone = this.getAttribute('tone') || 'cobalt-50';
|
|
40
40
|
|
|
41
|
+
/* Semantic surfaces, not raw palette steps, so the stage follows the
|
|
42
|
+
theme. The `tone` attribute still names the light-mode intent and
|
|
43
|
+
each branch resolves to the same colour it always did on a white
|
|
44
|
+
ground; only dark mode changes. A raw `var(--c-cobalt-50)` here
|
|
45
|
+
stayed pale in dark mode while the legend text on it went light,
|
|
46
|
+
which is how the caption on the spec-driven-development post ended
|
|
47
|
+
up at 1.15:1. */
|
|
41
48
|
const stageBg = tone === 'white'
|
|
42
|
-
? '
|
|
49
|
+
? 'var(--conduction-color-surface-card)'
|
|
43
50
|
: tone === 'light'
|
|
44
|
-
? 'var(--
|
|
45
|
-
: 'var(--
|
|
51
|
+
? 'var(--conduction-color-surface-sunken)'
|
|
52
|
+
: 'var(--conduction-color-surface-subtle)';
|
|
46
53
|
|
|
47
54
|
this.shadowRoot.innerHTML = `
|
|
48
55
|
<style>
|