Skip to content

Add FontStyle enum #69

Closed
Closed

Description

@garyb
No description provided.

Activity

  1. vyorkin commented on Jul 8, 2018

    @vyorkin
    Collaborator

    I've found there is already existing FontStyle newtype here: https://github.com/slamdata/purescript-css/blob/9e78699ea728f519ec5b3e830aa2036823dd50a7/src/CSS/Font.purs#L67 + values. Do you want to change this?

  2. garyb commented on Jul 8, 2018

    @garyb
    MemberAuthor

    Perhaps this was missing when I opened the issue, but I think generally it might be nice to have "real types" rather than newtypes-over-strings for values that have a known set of possibilities?

  3. vyorkin commented on Jul 8, 2018

    @vyorkin
    Collaborator

    Something like

    data ObliqueValue = ObliqueDefault | ObliqueAngle (Angle Value)
    data FontStyle = Normal | Italic | Oblique ObliqueValue

    ?

  4. garyb commented on Jul 8, 2018

    @garyb
    MemberAuthor

    Yeah, exactly 👍

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