Newer
Older
kotlin-css-generator / src / commonMain / kotlin / nl / astraeus / css / properties / CssProperty.kt
rnentjes on 9 Nov 2021 329 bytes v. 1.0.4, add vh,vw measurements
package nl.astraeus.css.properties

interface CssValue {
  fun css(): String
}

open class CssProperty(
  var value: String
) : CssValue {

  override fun css(): String = value

  override fun toString(): String = value
}

fun text(value: String) = TextProperty(value)

class TextProperty(
  value: String
) : CssProperty(value)