MCPcopy Create free account
hub / github.com/api-platform/website / generateStrokeWidth

Function generateStrokeWidth

pwa/plugins/stroke-plugin.js:24–36  ·  view source on GitHub ↗
(e, borderWidths, prefix)

Source from the content-addressed store, hash-verified

22 }, {});
23
24const generateStrokeWidth = (e, borderWidths, prefix) =>
25 Object.keys(borderWidths).reduce((acc, key) => {
26 if (typeof borderWidths[key] === "string") {
27 return {
28 ...acc,
29 [`${prefix}-${e(key)}`]: {
30 "-webkit-text-stroke-width": borderWidths[key],
31 },
32 };
33 }
34
35 return acc;
36 }, {});
37
38module.exports = plugin(({ e, addUtilities, theme, variants }) => {
39 const colors = theme("colors");

Callers 1

stroke-plugin.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected