Packages

Type safe CSS-in-gleam using generated code

Current section

Files

Jump to
monks_of_style src monks scale.gleam
Raw

src/monks/scale.gleam

//// The **`scale`** [CSS](/en-US/docs/Web/CSS) property allows you to specify scale transforms individually and independently of the {{CSSxRef("transform")}} property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the `transform` value.
////
/// - : Specifies that no scaling should be applied.
pub const none = #("scale", "none")
pub const initial = #("scale", "initial")
pub const inherit = #("scale", "inherit")
pub const unset = #("scale", "unset")
pub const revert = #("scale", "revert")
pub const revert_layer = #("scale", "revert_layer")
/// Enter a raw string value for scale
pub fn raw(value: String) -> #(String, String) {
#("scale", value)
}
/// Enter a variable name to be used for scale.
/// It will be wrapped in `var()` and have `--` prepended.
pub fn var(variable: String) -> #(String, String) {
#("scale", "var(--" <> variable <> ")")
}