ph-utils 0.12.7 → 0.12.8
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/lib/theme.js +3 -0
- package/package.json +1 -1
package/lib/theme.js
CHANGED
@@ -130,10 +130,13 @@ export function initColorTheme() {
|
|
130
130
|
export async function toggleColorTheme(color) {
|
131
131
|
const vars = [
|
132
132
|
`--nt-primary-color: ${color};`,
|
133
|
+
`--l-primary-color: ${color};`,
|
133
134
|
`--nt-primary-color-dark1: ${adjust(color, 1, false)};`,
|
135
|
+
`--l-primary-color-dark1: ${adjust(color, 1, false)};`,
|
134
136
|
];
|
135
137
|
for (let i = 1; i <= 5; i++) {
|
136
138
|
vars.push(`--nt-primary-color-light${i}: ${adjust(color, i)};`);
|
139
|
+
vars.push(`--l-primary-color-light${i}: ${adjust(color, i)};`);
|
137
140
|
}
|
138
141
|
let $style = document.getElementById("color-theme-style");
|
139
142
|
if ($style == null) {
|