@astryx-vue/themes 0.38.0 → 0.40.0

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/butter/base.css CHANGED
@@ -15,8 +15,12 @@
15
15
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
16
16
 
17
17
  @layer astryx.tokens {
18
- [data-astryx-theme='butter'] {
18
+ /* 只有页面根默认跟随读者;主题包装元素不声明配色,`system` 模式的 Theme 取外面的配色。 */
19
+ html[data-astryx-theme='butter'] {
19
20
  color-scheme: light dark;
21
+ }
22
+
23
+ [data-astryx-theme='butter'] {
20
24
  background-color: var(--astryx-color-background-body);
21
25
  color: var(--astryx-color-text-primary);
22
26
  font-family: var(--astryx-font-family-body);
@@ -15,8 +15,12 @@
15
15
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
16
16
 
17
17
  @layer astryx.tokens {
18
- [data-astryx-theme='chocolate'] {
18
+ /* 只有页面根默认跟随读者;主题包装元素不声明配色,`system` 模式的 Theme 取外面的配色。 */
19
+ html[data-astryx-theme='chocolate'] {
19
20
  color-scheme: light dark;
21
+ }
22
+
23
+ [data-astryx-theme='chocolate'] {
20
24
  background-color: var(--astryx-color-background-body);
21
25
  color: var(--astryx-color-text-primary);
22
26
  font-family: var(--astryx-font-family-body);
package/matcha/base.css CHANGED
@@ -15,8 +15,12 @@
15
15
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
16
16
 
17
17
  @layer astryx.tokens {
18
- [data-astryx-theme='matcha'] {
18
+ /* 只有页面根默认跟随读者;主题包装元素不声明配色,`system` 模式的 Theme 取外面的配色。 */
19
+ html[data-astryx-theme='matcha'] {
19
20
  color-scheme: light dark;
21
+ }
22
+
23
+ [data-astryx-theme='matcha'] {
20
24
  background-color: var(--astryx-color-background-body);
21
25
  color: var(--astryx-color-text-primary);
22
26
  font-family: var(--astryx-font-family-body);
package/neutral/base.css CHANGED
@@ -15,10 +15,13 @@
15
15
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
16
16
 
17
17
  @layer astryx.tokens {
18
- :root,
19
- [data-astryx-theme='neutral'] {
18
+ /* 只有页面根默认跟随读者;主题包装元素不声明配色,`system` 模式的 Theme 取外面的配色。 */
19
+ :root {
20
20
  color-scheme: light dark;
21
+ }
21
22
 
23
+ :root,
24
+ [data-astryx-theme='neutral'] {
22
25
  --astryx-color-background-surface: light-dark(#ffffff, #262626);
23
26
  --astryx-color-background-body: light-dark(#f1f1f1, #1b1b1b);
24
27
  --astryx-color-background-card: light-dark(#ffffff, #1b1b1b);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/themes",
3
3
  "type": "module",
4
- "version": "0.38.0",
4
+ "version": "0.40.0",
5
5
  "description": "CSS themes for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
package/stone/base.css CHANGED
@@ -14,8 +14,12 @@
14
14
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
15
15
 
16
16
  @layer astryx.tokens {
17
- [data-astryx-theme='stone'] {
17
+ /* 只有页面根默认跟随读者;主题包装元素不声明配色,`system` 模式的 Theme 取外面的配色。 */
18
+ html[data-astryx-theme='stone'] {
18
19
  color-scheme: light dark;
20
+ }
21
+
22
+ [data-astryx-theme='stone'] {
19
23
  background-color: var(--astryx-color-background-body);
20
24
  color: var(--astryx-color-text-primary);
21
25
  font-family: var(--astryx-font-family-body);
package/y2k/base.css CHANGED
@@ -17,8 +17,12 @@
17
17
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
18
18
 
19
19
  @layer astryx.tokens {
20
- [data-astryx-theme='y2k'] {
20
+ /* 只有页面根默认跟随读者;主题包装元素不声明配色,`system` 模式的 Theme 取外面的配色。 */
21
+ html[data-astryx-theme='y2k'] {
21
22
  color-scheme: light dark;
23
+ }
24
+
25
+ [data-astryx-theme='y2k'] {
22
26
  background-color: var(--astryx-color-background-body);
23
27
  color: var(--astryx-color-text-primary);
24
28
  font-family: var(--astryx-font-family-body);