Skip to content

Constraint: CssColor #107

Description

@cursor

Goal

Add a CssColor constraint — validate a string as a correct CSS color, following Symfony Validator logic.

Reference

  • Symfony: Symfony\Component\Validator\Constraints\CssColor and its validator.
  • Supported formats (hex, rgb, named colors, etc.) — match the reference.

Scope

  • Constraint + validator, options if present in Symfony.
  • Tests for each supported format and invalid strings.

Complexity

2 / 5.


Migrated from Linear: IGO-8
Priority: High
Estimate: 2 points

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions