Skip to content

Per breakpoint values #24

@jongacnik

Description

@jongacnik

An idea been toying with is per-breakpoint values. This could be handy when doing something like font sizes for a site. Not sure if this would be a convoluted addition or not, conceptually goes against single purpose classes a bit... pseudo code:

fontSize = {
  1: {
    *: 6,
    md: 5,
    lg: 4
  },
  2: {
    *: 3,
    md: 2,
    lg: 1
  }
}
.fs1 { font-size: 6rem }
.fs2 { font-size: 3rem }

@media (min-width: 1024px) {
  .fs1 { font-size: 5rem }
  .fs2 { font-size: 2rem }
}

@media (min-width: 1280px) {
  .fs1 { font-size: 4rem }
  .fs2 { font-size: 1rem }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions