m3-svelte 4.3.1 → 4.3.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.
@@ -144,11 +144,11 @@
144
144
  }
145
145
  }
146
146
  &.outlined {
147
- outline: 1px solid rgb(var(--m3-scheme-outline));
147
+ outline: 1px solid rgb(var(--m3-scheme-outline-variant));
148
148
  outline-offset: -1px;
149
149
  }
150
150
  &.outlined:not(:disabled, :global(input:disabled) + label) {
151
- outline-color: rgb(var(--m3-scheme-outline));
151
+ outline-color: rgb(var(--m3-scheme-outline-variant));
152
152
  color: rgb(var(--m3-scheme-on-surface-variant));
153
153
  &:is(:global(input:checked) + label) {
154
154
  outline-color: rgb(var(--m3-scheme-inverse-surface));
@@ -7,9 +7,58 @@ const onOnPrimary = DynamicColor.fromPalette({
7
7
  background: () => materialColors.onPrimary(),
8
8
  contrastCurve: () => new ContrastCurve(6, 6, 7, 11),
9
9
  });
10
- export const colors = [...materialColors.allColors, onOnPrimary];
10
+ // Custom colors for you to use
11
+ const primaryContainerSubtle = DynamicColor.fromPalette({
12
+ name: "primary_container_subtle",
13
+ palette: (s) => s.primaryPalette,
14
+ isBackground: true,
15
+ background: (s) => materialColors.highestSurface(s),
16
+ contrastCurve: () => undefined,
17
+ });
18
+ const onPrimaryContainerSubtle = DynamicColor.fromPalette({
19
+ name: "on_primary_container_subtle",
20
+ palette: (s) => s.primaryPalette,
21
+ background: () => primaryContainerSubtle,
22
+ contrastCurve: () => new ContrastCurve(6, 6, 7, 11),
23
+ });
24
+ const tertiaryContainerSubtle = DynamicColor.fromPalette({
25
+ name: "tertiary_container_subtle",
26
+ palette: (s) => s.tertiaryPalette,
27
+ isBackground: true,
28
+ background: (s) => materialColors.highestSurface(s),
29
+ contrastCurve: () => undefined,
30
+ });
31
+ const onTertiaryContainerSubtle = DynamicColor.fromPalette({
32
+ name: "on_tertiary_container_subtle",
33
+ palette: (s) => s.tertiaryPalette,
34
+ background: () => tertiaryContainerSubtle,
35
+ contrastCurve: () => new ContrastCurve(6, 6, 7, 11),
36
+ });
37
+ const errorContainerSubtle = DynamicColor.fromPalette({
38
+ name: "error_container_subtle",
39
+ palette: (s) => s.errorPalette,
40
+ isBackground: true,
41
+ background: (s) => materialColors.highestSurface(s),
42
+ contrastCurve: () => undefined,
43
+ });
44
+ const onErrorContainerSubtle = DynamicColor.fromPalette({
45
+ name: "on_error_container_subtle",
46
+ palette: (s) => s.errorPalette,
47
+ background: () => errorContainerSubtle,
48
+ contrastCurve: () => new ContrastCurve(6, 6, 7, 11),
49
+ });
50
+ export const colors = [
51
+ ...materialColors.allColors,
52
+ onOnPrimary,
53
+ primaryContainerSubtle,
54
+ onPrimaryContainerSubtle,
55
+ tertiaryContainerSubtle,
56
+ onTertiaryContainerSubtle,
57
+ errorContainerSubtle,
58
+ onErrorContainerSubtle,
59
+ ];
11
60
  export const pairs = [
12
- [materialColors.onPrimary(), onOnPrimary],
61
+ [materialColors.primary(), materialColors.onPrimary()],
13
62
  [materialColors.primaryContainer(), materialColors.onPrimaryContainer()],
14
63
  [materialColors.secondary(), materialColors.onSecondary()],
15
64
  [materialColors.secondaryContainer(), materialColors.onSecondaryContainer()],
@@ -48,6 +48,12 @@
48
48
  .m3-container {
49
49
  display: flex;
50
50
 
51
+ &:is(button) {
52
+ background: none;
53
+ border: none;
54
+ cursor: pointer;
55
+ }
56
+
51
57
  .content {
52
58
  display: flex;
53
59
  gap: 0.25rem;
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "m3-svelte",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "license": "Apache-2.0 OR GPL-3.0-only",
5
5
  "repository": "KTibow/m3-svelte",
6
6
  "author": {
7
7
  "name": "KTibow"
8
8
  },
9
9
  "homepage": "https://github.com/KTibow/m3-svelte",
10
+ "funding": "https://github.com/sponsors/KTibow",
10
11
  "files": [
11
12
  "package",
12
13
  "!package/**/*.test.*",
@@ -29,20 +30,20 @@
29
30
  },
30
31
  "dependencies": {
31
32
  "@iconify/types": "^2.0.0",
32
- "@ktibow/iconset-material-symbols": "^0.0.1748584357",
33
- "@ktibow/material-color-utilities-nightly": "^0.3.11748827599657",
34
- "svelte": "^5.33.13"
33
+ "@ktibow/iconset-material-symbols": "^0.0.1749705809",
34
+ "@ktibow/material-color-utilities-nightly": "^0.3.11750037236983",
35
+ "svelte": "^5.34.3"
35
36
  },
36
37
  "devDependencies": {
37
- "@eslint/compat": "^1.2.9",
38
- "@eslint/js": "^9.28.0",
38
+ "@eslint/compat": "^1.3.0",
39
+ "@eslint/js": "^9.29.0",
39
40
  "@sveltejs/adapter-static": "^3.0.8",
40
- "@sveltejs/kit": "^2.21.1",
41
+ "@sveltejs/kit": "^2.21.5",
41
42
  "@sveltejs/package": "^2.3.11",
42
- "@sveltejs/vite-plugin-svelte": "^5.0.3",
43
+ "@sveltejs/vite-plugin-svelte": "^5.1.0",
43
44
  "eslint": "^9.27.0",
44
45
  "eslint-config-prettier": "^10.1.5",
45
- "eslint-plugin-svelte": "^3.9.1",
46
+ "eslint-plugin-svelte": "^3.9.2",
46
47
  "fast-glob": "^3.3.3",
47
48
  "globals": "^16.2.0",
48
49
  "prettier": "^3.5.3",
@@ -51,7 +52,7 @@
51
52
  "svelte-check": "^4.2.1",
52
53
  "svelte-highlight": "^7.8.3",
53
54
  "typescript": "^5.8.3",
54
- "typescript-eslint": "^8.33.1",
55
+ "typescript-eslint": "^8.34.1",
55
56
  "vite": "^6.3.5"
56
57
  },
57
58
  "keywords": [