@sneat/components 0.27.6 → 0.27.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sneat/components",
3
- "version": "0.27.6",
3
+ "version": "0.27.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,12 +35,26 @@
35
35
 
36
36
  // https://ionicframework.com/docs/theming/colors
37
37
  :root {
38
- --ion-color-header: #f0f7ff;
39
- --ion-color-header-rgb: 240, 247, 255;
40
- --ion-color-header-contrast: #000000;
41
- --ion-color-header-contrast-rgb: 0, 0, 0;
42
- --ion-color-header-shade: #d3d9e0;
43
- --ion-color-header-tint: #f2f8ff;
38
+ // Semantic surface tokens. An app can override these at :root or on a
39
+ // narrower host to brand an individual card/menu without replacing shared
40
+ // component markup.
41
+ --sneat-card-header-background: #f0f7ff;
42
+ --sneat-card-header-background-rgb: 240, 247, 255;
43
+ --sneat-card-header-color: #000000;
44
+ --sneat-card-header-color-rgb: 0, 0, 0;
45
+ --sneat-card-header-background-shade: #d3d9e0;
46
+ --sneat-card-header-background-tint: #f2f8ff;
47
+
48
+ --sneat-pane-header-background: var(--ion-color-light);
49
+ --sneat-pane-header-color: var(--ion-color-light-contrast);
50
+
51
+ // Ionic color alias for headers such as <ion-item-divider color="header">.
52
+ --ion-color-header: var(--sneat-card-header-background);
53
+ --ion-color-header-rgb: var(--sneat-card-header-background-rgb);
54
+ --ion-color-header-contrast: var(--sneat-card-header-color);
55
+ --ion-color-header-contrast-rgb: var(--sneat-card-header-color-rgb);
56
+ --ion-color-header-shade: var(--sneat-card-header-background-shade);
57
+ --ion-color-header-tint: var(--sneat-card-header-background-tint);
44
58
  }
45
59
 
46
60
  .ion-color-header {
@@ -52,14 +66,18 @@
52
66
  --ion-color-tint: var(--ion-color-header-tint);
53
67
  }
54
68
 
55
- ion-item.sneat-card-header {
56
- --background: var(--ion-color-header);
57
- --color: var(--ion-color-header-contrast);
69
+ .sneat-card-header {
70
+ --background: var(--sneat-card-header-background);
71
+ --color: var(--sneat-card-header-color);
72
+ background: var(--sneat-card-header-background);
73
+ color: var(--sneat-card-header-color);
58
74
  }
59
75
 
60
76
  .sneat-pane-header {
61
- --background: var(--ion-color-light);
62
- --color: var(--ion-color-light-contrast);
77
+ --background: var(--sneat-pane-header-background);
78
+ --color: var(--sneat-pane-header-color);
79
+ background: var(--sneat-pane-header-background);
80
+ color: var(--sneat-pane-header-color);
63
81
  }
64
82
  .cardy {
65
83
  //--ion-background-color: #fcfcfc;