@marigold/theme-rui 1.3.0 → 2.0.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/dist/utils.css CHANGED
@@ -15,9 +15,9 @@
15
15
  * Use this as a default for all components (that don't have their own border).
16
16
  */
17
17
  @utility util-focus-* {
18
- border-color: --value(--color- *);
18
+ border-color: --value(--color-*);
19
19
 
20
- --tw-ring-color: --alpha(--value(--color- *) / 50%);
20
+ --tw-ring-color: --alpha(--value(--color-*) / 50%);
21
21
  --tw-ring-shadow: 0 0 0 3px var(--tw-ring-color, currentcolor);
22
22
  box-shadow:
23
23
  var(--tw-inset-shadow), var(--tw-inset-ring-shadow),
@@ -32,7 +32,7 @@
32
32
  * Use this when the component has its own border and you need to keep it.
33
33
  */
34
34
  @utility util-focus-borderless-* {
35
- --tw-ring-color: --alpha(--value(--color- *) / 50%);
35
+ --tw-ring-color: --alpha(--value(--color-*) / 50%);
36
36
  --tw-ring-shadow: 0 0 0 3px var(--tw-ring-color, currentcolor);
37
37
  box-shadow:
38
38
  var(--tw-inset-shadow), var(--tw-inset-ring-shadow),
@@ -100,3 +100,26 @@
100
100
  var(--tw-inset-shadow), var(--tw-inset-ring-shadow),
101
101
  var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
102
102
  }
103
+
104
+ /*
105
+ * Applies a touch-friendly hitbox to elements, ensuring they are easily tappable on touch devices.
106
+ * This is important for accessibility, as it helps meet WCAG guidelines for minimum touch target size
107
+ * and improves usability for users with motor impairments.
108
+ */
109
+ @utility util-touch-hitbox {
110
+ position: relative;
111
+ &:before {
112
+ content: '';
113
+ position: absolute;
114
+ display: block;
115
+ top: 50%;
116
+ left: 50%;
117
+ transform: translate(-50%, -50%);
118
+ width: 100%;
119
+ height: 100%;
120
+ /* 24x24px is WCAG before 2.2, to support 2.2 this needs to be 44x44px */
121
+ min-height: 24px;
122
+ min-width: 24px;
123
+ z-index: 9999;
124
+ }
125
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/theme-rui",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "Marigold RUI Theme",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -44,18 +44,18 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@tailwindcss/postcss": "4.1.11",
47
- "cssnano": "7.0.7",
47
+ "cssnano": "7.1.0",
48
48
  "postcss-cli": "11.0.1",
49
49
  "tailwindcss": "4.1.11",
50
- "tsup": "8.4.0",
51
- "@marigold/tsconfig": "0.4.0"
50
+ "tsup": "8.5.0",
51
+ "@marigold/tsconfig": "0.4.1"
52
52
  },
53
53
  "dependencies": {
54
54
  "tailwindcss-animate": "1.0.7",
55
55
  "tailwindcss-react-aria-components": "2.0.0",
56
- "@marigold/components": "14.0.0",
57
- "@marigold/system": "14.0.0",
58
- "@marigold/theme-plugins": "1.0.1"
56
+ "@marigold/components": "15.0.0",
57
+ "@marigold/system": "15.0.0",
58
+ "@marigold/theme-plugins": "1.0.2"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "NODE_ENV=production tsup && postcss -o dist/styles.css src/styles.css && cp src/theme.css src/global.css src/utils.css dist/"