Files
kotlin-css-generator/src/commonMain/kotlin/nl/astraeus/css/properties/CssProperty.kt
2021-11-09 13:38:36 +01:00

21 lines
329 B
Kotlin

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)