@coopdigital/styles 1.5.0 → 1.5.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopdigital/styles",
3
3
  "type": "module",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -41,5 +41,5 @@
41
41
  "lightningcss": "^1.32.0",
42
42
  "sass": "^1.101.0"
43
43
  },
44
- "gitHead": "6a99f896553ea4541e8337bfa290d1838853a242"
44
+ "gitHead": "2bc73189fad734ed1efe037081705e97b63ab424"
45
45
  }
@@ -1,3 +1,4 @@
1
+ /* oxlint-disable */
1
2
  import { definePreset } from "unocss"
2
3
 
3
4
  function generateTertiaryColors() {
@@ -130,8 +131,6 @@ const presetCoop = definePreset(() => {
130
131
  function* ([, rule, color], { theme }) {
131
132
  const root = color.split("-")[0]
132
133
 
133
- // console.log(root, color)
134
-
135
134
  if (root in theme.colors || color in theme.colors) {
136
135
  const cssVar = `var(--color-${color})`
137
136
  //const cssVar = extractColorVarName(value)
@@ -147,10 +146,7 @@ const presetCoop = definePreset(() => {
147
146
  },
148
147
  ],
149
148
 
150
- //bgColorRule,
151
- //borderColorRule,
152
-
153
- /*
149
+ /*
154
150
  To support presetWind3 and presetWind4 and probably future presets
155
151
  we decided to use rules instead of editing font-size inside theme
156
152
  */
@@ -186,14 +182,8 @@ const presetCoop = definePreset(() => {
186
182
 
187
183
  // Blues
188
184
  "text-link": "text-blue-500",
189
- //"text-button-secondary2": "text-blue-700",
190
- //"bg-button-primary2": "bg-blue-700",
191
185
  "icon-brand-blue": "fill-brand-blue",
192
186
 
193
- // Teal
194
- //"text-button-secondary": "text-teal",
195
- //"bg-button-primary": "bg-teal",
196
-
197
187
  // Reds
198
188
  "text-offer": "text-red-500",
199
189
  "text-error": "text-red-500",
@@ -215,10 +205,8 @@ const presetCoop = definePreset(() => {
215
205
  "text-secondary": "text-grey-800",
216
206
  "bg-primary": "bg-white",
217
207
  "bg-secondary": "bg-grey-200",
218
- // "bg-membership": "bg-tint-blue",
219
208
  "bg-footer": "bg-grey-900",
220
- "bg-footer-light": "bg-grey-cool-100", // bg-footer-shop
221
- // "bg-neutral-warm": "bg-grey-warm-100",
209
+ "bg-footer-light": "bg-grey-cool-100",
222
210
  "border-divider": "border-grey-600",
223
211
 
224
212
  // Yellows