How to use the @ant-design/colors.green.primary function in @ant-design/colors

To help you get started, we’ve selected a few @ant-design/colors examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github heartexlabs / label-studio / src / interfaces / object / PolygonRegion.js View on Github external
function createHoverAnchor({ point, group, layer }) {
  const hoverAnchor = new Konva.Circle({
    name: "hoverAnchor",
    x: point[0],
    y: point[1],
    stroke: green.primary,
    fill: green[0],
    strokeWidth: 2,
    radius: 5,
  });

  group.add(hoverAnchor);
  layer.draw();
  return hoverAnchor;
}

@ant-design/colors

Color palettes calculator of Ant Design

MIT
Latest version published 6 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages