The content value used in the following properties:
flexBasis content
contain contentIf you need something that elm-css does not support right now, the
Css.property
and Css.Global.selector
functions let you define custom properties and selectors, respectively.
Create a style from multiple other styles.
underlineOnHover =
batch
[ textDecoration none
, hover
[ textDecoration underline ]
]
css
[ color (rgb 128 64 32)
, underlineOnHover
]...has the same result as:
css
[ color (rgb 128 64 32)
, textDecoration none
, hover
[ textDecoration underline ]
]Define a custom property.
css [ property "-webkit-font-smoothing" "none" ]...outputs
-webkit-font-smoothing: none;!importantTransforms the given property by adding !important to the end of its declaration.
Define a custom pseudo-class.
This can be useful for deprecated pseudo-classes such as -moz-any-link, which
has been deprecated and removed
in modern browsers.
button
[ css [ pseudoClass "-moz-any-link" [ color (hex "f00") ] ] ]
[ text "Whee!" ]...outputs
<button class="f9fcb2">Whee!</button>
<style>
.f9fcb2:-moz-any-link {
color: #f00;
}
</style>An :active
pseudo-class.
button [ active [ color (rgb 12 160 190) ] ]This pseudo-class is for any checkbox, option or radio input that is checked or toggled on.
checked
[ backgroundColor (rgb 0 0 255)
]default [ color (hex "#ff0000") ]defined [ fontStyle italic ]button [ disabled [ color (rgb 194 194 194) ] ]An :empty
pseudo-class.
empty
[ backgroundColor (rgb 20 20 20)
]An :enabled
pseudo-class.
enabled
[ borderColor (rgba 150 150 0 0.5)
]first
[ marginTop (pct 30)
]A :first-of-type
pseudo-class.
firstChild
[ fontWeight bold
]A :first-of-type
pseudo-class.
firstOfType
[ color (rgb 255 0 0)
]focus
[ border3 (px 2) solid (rgb 0 0 0)
]fullscreen
[ backgroundColor (rgb 0 0 0)
]hover
[ fontWeight bold
, color (rgb 255 50 0)
]inRange
[ backgroundColor (rgb 0 255 0)
]An :indeterminate
pseudo-class.
indeterminate
[ backgroundColor (rgb 100 100 100)
]An :invalid
pseudo-class.
invalid
[ color (rgb 255 0 0)
, fontWeight bold
]lastChild
[ backgroundColor (rgb 0 0 255)
]lastOfType
[ color (rgb 100 100 100)
]leftHandPage
[ color (rgb 100 100 100)
]Note: This is called leftHandPage instead of left or left_ is
because both of those are taken by property and value keyword functions.
link
[ color (rgb 0 0 255)
]onlyChild
[ backgroundColor (rgb 255 255 255)
]An :only-of-type
pseudo-class.
onlyOfType
[ color (rgb 255 0 0)
, fontStyle italic
]An :out-of-range
pseudo-class.
outOfRange
[ color (rgb 255 0 0)
]readOnly
[ color (rgb 50 50 50)
]readWrite
[ backgroundColor (rgb 0 50 150)
]required
[ border (px 2) solid (rgb 100 100 100)
]rightHandPage
[ color (rgb 100 100 100)
]Note: This is called rightHandPage instead of right or right_ is
because both of those are taken by property and value keyword functions.
root
[ backgroundColor (rgb 0 200 200)
]scope
[ backgroundColor (rgb 0 200 200)
]target
[ fontWeight bold
, border3 (px 2) dotted (rgb 255 0 0)
]valid
[ border3 (px 1) solid (rgb 0 255 0)
]visited
[ color (rgb 150 0 255)
]dir rtl
[ backgroundColor (hex "#ff0000")
]lang "en-GB"
[ backgroundColor (hex "#ff0000")
]The first argument is a list of selectors to not select.
not ["p.notthis", ".notthat"]
[ backgroundColor (hex "#ff0000")
]nthChild "3"
[ backgroundColor (hex "#ff0000")
]An :nth-last-child()
pseudo-class.
This is the same as nthChild, but counting from the end rather than the start.
nthLastChild "3n+4"
[ backgroundColor (hex "#ff0000")
]An :nth-of-type()
pseudo-class.
nthOfType "odd"
[ backgroundColor (hex "#ff0000")
]An :nth-last-of-type()
pseudo-class.
nthLastOfType "0n+1"
[ backgroundColor (hex "#ff0000")
]Define a custom pseudo-element.
textarea
[ css [ pseudoElement "-webkit-scrollbar" [ display none ] ] ]
[]...outputs
<textarea class="d84ff7"></textarea>
<style>
.d84ff7::-webkit-scrollbar {
display: none;
}
</style>div [ after [ content "hi!" ] ]--TODO : Introduce a way to do content - lots of options there, not just text. Also it's overloaded with flexBasis content.
backdrop
[ background (rgba 255 0 0 0.25)
]div [ before [ content "hi!" ] ]--TODO : Introduce a way to do content - lots of options there, not just text. Also it's overloaded with flexBasis content.
cue
[ color (rgba 255 255 0 1)
, fontWeight (int 600)
]A ::first-letter
pseudo-element.
firstLetter
[ fontSize (rem 2)
]A ::first-line
pseudo-element.
firstLine
[ fontWeight (int 600)
]marker
[ color (rgba 255 255 0 1)
, fontWeight (int 600)
]A ::placeholder
pseudo-element.
Be careful when using placeholders as they can negatively impact accessibility.
placeholder
[ opacity (num 1) <| important
, color (rgb 90 90 90)
, fontWeight (int 400)
]]
selection
[ backgroundColor (rgb 200 140 15)
]slotted "*"
[ backgroundColor (rgb 200 140 15)
]A type alias used to accept a length among other values.
Compiles to a 0 value with no units.
css [ padding zero ]...compiles to:
padding: 0;This conveniently lets you avoid doing things like padding (px 0)
in length units.
borderWidth (inch 5)(This is inch instead of in because in is a reserved keyword in Elm.)
A unitless integer. Useful with properties like zIndex which accept unitless integers.
zIndex (int 3)A type alias used to accept an angle among other values.
A type alias used to accept a 'width' among other values.
grad 400 -- one full circle
grad 38.8rad 6.2832 -- approximately one full circle
rad 1turn 1 -- one full circle
turn 0.25A type alias used to accept an time among other values.
The minmax()
value for grid properties.
gridAutoRows (minmax (px 2) (pct 100))The fit-content()
value that can have a length or percentage value that you want the property to be clamped to.
Not to be confused with the fitContent value for flex properties.
gridAutoColumns (fitContentTo (pct 100))
height (fitContentTo (rem 20))Produces an custom-ident
value used by properties such as (but not limited to) listStyle and
listStyleType.
listStyleType (customIdent "hello-world")Note: This method does not do any checking if the identifierer supplied is valid.
Produces a string
value used by properties such as:
listStyleType (string "> ")
quotes2 (string "«") (string "»")
fontLanguageOverride (string "ENG")The url value for the cursor,
fill,
strokeImage,
and backgroundImage properties.
A type alias used to accept a color among other values.
[RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()) in hexadecimal notation.
You can optionally include # as the first character, for benefits like syntax highlighting in editors, ease of copy/pasting from tools which express these as e.g. #abcdef0, etc.
color (hex "#60b5cc")
color (hex "60b5cc")[RGB color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()) in functional notation.
color (rgb 96 181 204)color (rgba 96 181 204 0.25)The s and l values are expressed as a number between 0 and 1 and are converted to the appropriate percentage.
color (hsl 193 0.51 0.59) -- hsl(193, 51%, 59%)The s and l values are expressed as a number between 0 and 1 and are converted to the appropriate percentage.
color (hsla 193 0.51 0.59 0.25) -- hsl(193, 51%, 59%, 0.25)The currentcolor
value used by properties such as color, backgroundColor
color currentcolorA type alias used to accept an image among other values.
A type alias used to accept a basic shape.
A type alias used to accept a basic shape among other values.
Provides a one-argument inset() value. (Which creates an
inset rectangle shape.)
clipPath <| insetRect (px 20) Nothing, "inset(20px)" )
clipPath <| insetRect (px 20) (Just <| insetRound (px 2))
clipPath <| insetRect2 (pct 40) (pct 20) (Just <| insetRound4 (px 1) (px 2) (px 3) (px 1))
clipPath <| insetRect3 (px 20) (px 10) (pct 10) (Just <| insetRound (px 4))
clipPath <| insetRect3 (em 4) (em 1) (px 2) Nothing
clipPath <| insetRect4 (cm 4) (cm 5) (cm 2) (cm 1) (Just <| insetRound3 (mm 12) (mm 3) (mm 8))
clipPath <| insetRect4 (pt 20) (pt 10) (pt 30) (pt 40) (Just <| insetRound2 (pt 2) (pt 5))Note: This is called insetRect instead of inset because inset and inset_
are already property and value functions handling other areas of CSS.
Provides a 2-argument inset() value. (Which creates an
inset rectangle shape.)
clipPath <| insetRect (px 20) Nothing, "inset(20px)" )
clipPath <| insetRect (px 20) (Just <| insetRound (px 2))
clipPath <| insetRect2 (pct 40) (pct 20) (Just <| insetRound4 (px 1) (px 2) (px 3) (px 1))
clipPath <| insetRect3 (px 20) (px 10) (pct 10) (Just <| insetRound (px 4))
clipPath <| insetRect3 (em 4) (em 1) (px 2) Nothing
clipPath <| insetRect4 (cm 4) (cm 5) (cm 2) (cm 1) (Just <| insetRound3 (mm 12) (mm 3) (mm 8))
clipPath <| insetRect4 (pt 20) (pt 10) (pt 30) (pt 40) (Just <| insetRound2 (pt 2) (pt 5))Note: This is called insetRect2 instead of inset2 because inset and inset_
are already property and value functions handling other areas of CSS.
Provides a 2-argument inset() value. (Which creates an
inset rectangle shape.)
clipPath <| insetRect (px 20) Nothing, "inset(20px)" )
clipPath <| insetRect (px 20) (Just <| insetRound (px 2))
clipPath <| insetRect2 (pct 40) (pct 20) (Just <| insetRound4 (px 1) (px 2) (px 3) (px 1))
clipPath <| insetRect3 (px 20) (px 10) (pct 10) (Just <| insetRound (px 4))
clipPath <| insetRect3 (em 4) (em 1) (px 2) Nothing
clipPath <| insetRect4 (cm 4) (cm 5) (cm 2) (cm 1) (Just <| insetRound3 (mm 12) (mm 3) (mm 8))
clipPath <| insetRect4 (pt 20) (pt 10) (pt 30) (pt 40) (Just <| insetRound2 (pt 2) (pt 5))Note: This is called insetRect3 instead of inset3 because inset and inset_
are already property and value functions handling other areas of CSS.
Provides a 2-argument inset() value. (Which creates an
inset rectangle shape.)
clipPath <| insetRect (px 20) Nothing, "inset(20px)" )
clipPath <| insetRect (px 20) (Just <| insetRound (px 2))
clipPath <| insetRect2 (pct 40) (pct 20) (Just <| insetRound4 (px 1) (px 2) (px 3) (px 1))
clipPath <| insetRect3 (px 20) (px 10) (pct 10) (Just <| insetRound (px 4))
clipPath <| insetRect3 (em 4) (em 1) (px 2) Nothing
clipPath <| insetRect4 (cm 4) (cm 5) (cm 2) (cm 1) (Just <| insetRound3 (mm 12) (mm 3) (mm 8))
clipPath <| insetRect4 (pt 20) (pt 10) (pt 30) (pt 40) (Just <| insetRound2 (pt 2) (pt 5))Note: This is called insetRect4 instead of inset4 because inset and inset_
are already property and value functions handling other areas of CSS.
Provides a 1-value border radius for use with insetRect(#insetRect) (inset()).
insetRect (px 40) (Just <| insetRound (px 2))
insetRect (px 40) (Just <| insetRound2 (px 2) (px 5))
insetRect (px 40) (Just <| insetRound3 (px 2) (px 3) (px 4))
insetRect (px 40) (Just <| insetRound4 (px 2) (px 5) (px 1) (px 3))Provides a 2-value border radius for use with insetRect(#insetRect) (inset()).
insetRect (px 40) (Just <| insetRound (px 2))
insetRect (px 40) (Just <| insetRound2 (px 2) (px 5))
insetRect (px 40) (Just <| insetRound3 (px 2) (px 3) (px 4))
insetRect (px 40) (Just <| insetRound4 (px 2) (px 5) (px 1) (px 3))Provides a 3-value border radius for use with insetRect(#insetRect) (inset()).
insetRect (px 40) (Just <| insetRound (px 2))
insetRect (px 40) (Just <| insetRound2 (px 2) (px 5))
insetRect (px 40) (Just <| insetRound3 (px 2) (px 3) (px 4))
insetRect (px 40) (Just <| insetRound4 (px 2) (px 5) (px 1) (px 3))Provides a 4-value border radius for use with insetRect(#insetRect) (inset()).
insetRect (px 40) (Just <| insetRound (px 2))
insetRect (px 40) (Just <| insetRound2 (px 2) (px 5))
insetRect (px 40) (Just <| insetRound3 (px 2) (px 3) (px 4))
insetRect (px 40) (Just <| insetRound4 (px 2) (px 5) (px 1) (px 3))Provides a one-argument circle() value.
clipPath (circle (pct 10))
clipPath (circle closestSide)
clipPath (circleAt (pct 10) left)
clipPath (circleAt closestSide (rem 5))
clipPath (circleAt2 closestSide (rem 5) (rem 1))Note: This is not to be confused with circle_,
which is a keyword value for properties such as listStyleType.
Provides a 2-argument circle(<rad> at <pos>) value.
clipPath (circleAt (pct 10) left_)
clipPath (circleAt closestSide (rem 5))
clipPath (circleAt2 closestSide (rem 5) (rem 1))Provides a 3-argument circle(<rad> at <posX> <posY>) value.
clipPath (circleAt2 closestSide (rem 5) (rem 1))
clipPath (circleAt2 (pct 10) top_ left_)Provides a one-argument ellipse() value.
clipPath (ellipse (px 20) (px 10))
clipPath (ellipse closestSide farthestSide)
clipPath (ellipseAt closestSide (pct 10) left_)
clipPath (ellipseAt (pct 20) (pct 10) (rem 5))
clipPath (ellipseAt2 (rem 5) closestSide (rem 5) (rem 1))Provides a 3-argument ellipse(<radiusX> <radiusY> at <pos>) value.
clipPath (ellipseAt (pct 50) (pct 10) left_)
clipPath (ellipseAt (rem 5) closestSide (rem 5))Provides a 4-argument ellipse(<radiusX> <radiusY> at <posX> <posY>) value.
clipPath (ellipseAt2 (rem 6) closestSide (rem 5) (rem 1))
clipPath (ellipseAt2 farthestSide (pct 10) left_ top_)Creates a polygon() value for CSS
properties that accept a <basic-shape> value.
Each numerical argument is a Float that represents a percentage.
clipPath <| polygon [ (20, 30), (40, 80.3), (14, 50) ]Creates a path() value for CSS properties that accept a
<basic-shape> value.
The input string needs to be a valid SVG path string.
clipPath <| path "M161.693,39.249C94.047,39.249 39.127,94.169 39.127,161.816C39.127,229.462 94.047,284.382 161.693,284.382C229.34,284.382 284.26,229.462 284.26,161.816C284.26,94.169 229.34,39.249 161.693,39.249ZM161.693,71.382C211.605,71.382 211.605,252.249 161.693,252.249C111.782,252.249 71.26,211.727 71.26,161.816C71.26,111.904 111.782,71.382 161.693,71.382Z"A type alias used to accept a blend mode.
A type alias used to accept a blend mode among other values.
A type alias used to accept a filter function.
A type alias used to accept a filter function, among other values.
Provides a blur() filter function value.
backdropFilter <| blur (px 20)
-- backdrop-filter: blur(20px);Provides a brightness() filter function value.
filter <| brightness (pct 20)
-- backdrop-filter: brightness(20%);
filter <| brightness zero -- completely black
backdropFilter <| contrast (num 1) -- no effect
filter <| brightness (num 0.4)Provides a contrast() filter function value.
backdropFilter <| contrast (pct 20)
-- backdrop-filter: contrast(20%);
backdropFilter <| contrast zero -- completely gray
backdropFilter <| contrast (num 1) -- no effect
backdropFilter <| contrast (num 0.4)Provides a drop-shadow() filter function value.
filter <| dropShadow (px 20) (px 3) (Just <| px 30) (Just <| hex "#fff")
-- filter: drop-shadow(20px 4px 30px #fff);Provides a grayscale() filter function value.
backdropFilter <| grayscale (pct 20)
-- backdrop-filter: grayscale(20%);
backdropFilter <| grayscale zero -- no effect
backdropFilter <| grayscale (num 1) -- completely grayscale
backdropFilter <| grayscale (num 0.4) -- 40% grayscaleProvides a hue-rotate() filter function value.
backdropFilter <| hueRotate (deg -180)
-- backdrop-filter: hue-rotate(-180deg);Provides a invert() filter function value.
backdropFilter <| invert (pct 20)
-- backdrop-filter: invert(20%);
backdropFilter <| invert zero -- no effect
backdropFilter <| invert (num 1) -- completely inverted
backdropFilter <| invert (num 0.4) -- 40% inversionProvides a opacity() filter function value.
backdropFilter <| opacity_ (pct 20)
-- backdrop-filter: opacity(20%);
backdropFilter <| opacity_ zero -- completely transparent
backdropFilter <| opacity_ (num 1) -- no effect
backdropFilter <| opacity_ (num 0.4) -- 40% transparentNote: This is called opacity_ instead of opacity because opacity is already used as a property function.
Provides a saturate() filter function value.
filter <| saturate (pct 20)
-- filter: saturate(20%);
filter <| saturate zero -- completely desaturated
filter <| saturate (num 1) -- no effect
filter <| saturate (num 2) -- double saturation
filter <| saturate (num 0.4) -- 40% saturatedProvides a sepia() filter function value.
filter <| sepia (pct 20)
-- filter: sepia(20%);
filter <| sepia zero -- no effect
filter <| sepia (num 1) -- completely sepia
filter <| sepia (num 0.4) -- 40% sepiaA type alias used to accept a line-style.
This includes hidden as a possible value.
A type alias used to accept a line-style
(without the hidden) value among other values.
A type alias used to accept a line-width.
A type alias used to accept a line-width among other values.
The css calc function.
almostPct100 =
calc (pct 100) (minus (px 2))
-- The following compiles to: calc(100vh - (2px + 2rem))
screenMinusBorderAndFooter =
calc (vh 100) (minus (calc (px 2) (plus (rem 2))))
myWidth =
width almostPct100
myHeight =
height screenMinusBorderAndFooterCAUTION: calc can easily be used to create invalid CSS values! For example,
zIndex (calc (pct 100) (minus (px 5))) compiles to z-index: calc(100% - 5px);
which is invalid. According to the spec, calc may return values that have no
relation to its arguments, so unfortunately there's not much elm-css can do
to make calc more reliable. Use with caution!
Use with calc to subtract one value from another.
calc (pct 100) (minus (px 2))
-- calc: (100% - 2px)Use with calc to add one numeric value to another.
calc (pct 100) (plus (px 2))
-- calc: (100% + 2px)Use with calc to multiply a value by a unitless number.
calc (pct 100) (times (int 2))
-- calc: (100% * 2px)Use with calc to divide a value by a unitless number.
calc (pct 100) (dividedBy (int 2))
-- calc: (100% / 2px)Many different kinds of CSS properties use the same keyword values, so they're put in this place for easier understanding.
Some of these keywords are used only in one property but they fit into a group of functionality (like Logical Values), so they're also grouped here.
All CSS properties can have the values unset, initial, inherit and revert.
A type that is used in properties for CSS wide values. See CSS-wide values.
The unset value.
Any CSS property can be set to this value.
display unset
borderStyle unsetThe initial value.
Any CSS property can be set to this value.
display initial
borderStyle initialThe inherit value.
Any CSS property can be set to this value.
display inheritThe revert value.
Any CSS property can be set to this value.
all revert
color revertThe auto value used in many properties such as (but not limited to) width,
zoom,
outlineStyle,
and flexBasis.
width auto
zoom auto
flexBasis autoThe none value used in many properties such as (but not limited to) display,
borderStyle,
maxWidth,
clear,
strokeDashJustify,
and flex.
display none
borderStyle none
strokeDashJustify none
flex noneThe left value, used in many properties such as:
backgroundPosition left_
clear left_
float left_
justifyContent left_
justifyItems left_
justifySelf left_
pageBreakAfter left_
textAlign left_The value is called left_ instead of left because left is already a property function.
The right value, used in many properties such as:
backgroundPosition right_
clear right_
float right_
justifyContent right_
justifyItems right_
justifySelf right_
pageBreakAfter right_
textAlign right_The value is called right_ instead of right because right is already a property function.
The top value, used in the following properties:
backgroundPositioncaptionSideobjectPosition2perspectiveOrigin2strokePosition2transformOriginverticalAlignbackgroundPosition top_
captionSide top_
objectPosition2 right_ top_
perspectiveOrigin2 left_ top_
transformOrigin top_
verticalAlign top_The value is called top_ instead of top because top is already a property function.
The bottom value, used in the following properties:
backgroundPositioncaptionSideobjectPosition2perspectiveOrigin2strokePosition2transformOriginverticalAlignbackgroundPosition bottom_
captionSide bottom_
objectPosition2 right_ bottom_
perspectiveOrigin2 left_ bottom_
transformOrigin bottom_
verticalAlign bottom_The value is called bottom_ instead of bottom because bottom is already a property function.
Logical values are those that set properties by their relation to the user's reading direction.
Sometimes these keywords mean other things too.
The inline value.
This is a CSS Logical value used by display and resize.
display inline
resize inlineThe start value.
It's used in the following properties as a CSS Logical value:
alignContent start
justifyItems startIt's also used as an animation keyword used in steps2.
steps2 3 startThe end value.
It's used in the following properties as a CSS Logical value:
alignContent end
justifyItems endIt's also used as an animation keyword used in steps2.
steps2 3 endThe block-start value, which is a CSS Logical value.
It can be used with captionSide.
captionSide blockStartThe block-end value, which is a CSS Logical value.
It can be used with captionSide.
captionSide blockEndSets inline-start, which is a CSS Logical value.
It can be used with the following properties:
clear inlineStart
captionSide inlineStart
float inlineStartSets inline-end, which is a CSS Logical value.
It can be used with the following properties:
clear inlineEnd
captionSide inlineEnd
float inlineEndThe min-content value used for properties such as:
sizing (eg. width, height, inlineSize)
min/max sizing (eg. minWidth, maxBlockWidth)
width minContentThe max-content value used for properties such as:
sizing (eg. width, height, inlineSize)
min/max sizing (eg. minWidth, maxBlockWidth)
width maxContentThe fit-content value used for properties such as:
sizing (eg. width, height, inlineSize)
min/max sizing (eg. minWidth, maxBlockWidth)
width fitContentSets x value for usage with scrollSnapType2
and rotate2.
scrollSnapType2 x mandatory
rotate x (deg 10)Sets y value for usage with scrollSnapType2
and rotate2.
scrollSnapType2 y mandatory
rotate y (deg 50)The stretch value used in the following properties:
alignContent stretch
strokeDashJustify stretchThe center value, used in many properties such as:
alignContentalignItemsalignSelfbackgroundPositionjustifyContentjustifyItemsjustifySelfscrollSnapAlignbackgroundPosition enter
justifyContent centerThe margin-box value, used in clipPath.
clipPath marginBoxThe border-box value, used in the following properties:
boxSizing borderBox
backgroundClip borderBox
backgroundOrigin borderBox
strokeOrigin borderBoxThe padding-box value, used with backgroundClip,
backgroundOrigin,
and strokeOrigin.
backgroundClip paddingBox
backgroundOrigin paddingBox
strokeOrigin paddingBoxThe content-box value, used in the following properties:
boxSizing contentBox
backgroundClip contentBox
backgroundOrigin contentBox
strokeOrigin contentBoxThe fill-box value used by strokeOrigin
and transformBox.
strokeOrigin fillBox
transformBox fillBoxThe stroke-box value used by strokeOrigin
and transformBox.
strokeOrigin strokeBoxx
transformBox strokeBoxThe view-box value used by transformBox.
transformBox viewBoxThe baseline value, used in the following properties:
alignItems baseline
verticalAlign baselineA sub value for the following properties:
fontVariantPosition sub
verticalAlign subA super value for the following properties:
fontVariantPosition super
verticalAlign superThe ruby value used by display and fontVariantEastAsian.
display ruby
fontVariantEastAsian2 ruby jis83A full-width value for:
textTransformForces the writing of characters in a square so they can be aligned in East Asian scripts.
fontVariantEastAsianActivates the East Asian characters that are roughly be the same width.
textTransform fullWidth
fontVariantEastAsian fullWidthA under value for the textUnderlinePosition property and the textEmphasisPosition2 property.
textUnderlinePosition under
textEmphasisPosition2 under left_The circle value used by properties such as listStyle,
listStyleType, textEmphasis and textEmphasisStyle.
listStyleType circle_
textEmphasis2 circle_ (hex "ff0000")
textEmphasisStyle circle_Note: This is not to be confused with circle,
circleAt or circleAt2, which are
<basic-shape> data types.
The visible value used for properties such as visibility, overflow and pointer-events.
visibility visible
overflow visible
pointerEvents visibleThe thin value used by various properties.
In borderWidth and
columnRuleWidth, the value is
equivalent to 1px.
borderWidth thin
columnRuleWidth thinIt's also used in scrollbarWidth.
scrollbarWidth thinThe thick value used by properties such as borderWidth,
and columnRuleWidth.
borderWidth thick
columnRuleWidth thickThe value is equivalent of 5px.
The normal value, which can be used with such properties as:
fontVariantCapsfontKerningfontLanguageOverridewhiteSpacewordBreakcolumnGapzoomanimationDirectionalignItemslineBreakalignItems normal
columnGap normal
fontVariantCaps normal
whiteSpace normal
wordBreak normal
zoom normalThe all value used in properties such as columnSpan
and pointerEvents.
columnSpan all_
pointerEvents all_This value function has an underscore because all is already a property function.
Sets always value for usage with scrollSnapStop, pageBreakBefore, and pageBreakAfter.
scrollSnapStop always
pageBreakBefore always
pageBreakAfter alwaysThe scroll value used for properties such as overflow and background-attachment.
overflow scroll
backgroundAttachment scrollThe column value, used in flex-direction,
break-before and break-after properties.
flexDirection column
breakBefore column
breakAfter columnThe content value used in the following properties:
flexBasis content
contain contentThe fill value used in properties such as objectFit,
pointerEvents, paintOrder and maskBorderSlice.
objectFit fill_
pointerEvents fill_
paintOrder2 fill_ markers
maskBorderSlice4 fill_ (num 20) (pct 10) (num 45)The value is called fill_ instead of fill because fill is already a property function.
The stroke value used by pointerEvents and paintOrder.
pointerEvents stroke
paintOrder2 stroke markersThe text value for the cursor,
backgroundClip,
and user-select properties.
backgroundClip text
cursor text
userSelect textSets the style value for:
contain. (This value is considered at-risk from being depreciated for this property.)fontSynthesis contain style
fontSynthesis styleThe clip value used by overflow and textOverflow.
overflow clip
overflowX clip
overflowY clip
textOverflow clipSets cover for the following properties:
backgroundSize cover
strokeSize coverSets contain for the following properties:
backgroundSize (It always show the whole background
image, even if it leaves empty spaces on the sides.)objectFit (Replaced content is scaled to maintain proportions within the element's content box.)userSelect (Lets selection start within the element but that selection will be contained within that element's bounds.)overscrollBehavior (This means that default scroll overflow behavior
is observed inside the element, but scroll chaining will not happen to neighbouring elements.)backgroundSize contain_
overscrollBehavior contain_The value is called contain_ instead of contain because contain is already a property function.
The repeat value for background properties
and strokeRepeat.
backgroundRepeat repeat
strokeRepeat repeatThe no-repeat value for background properties
and strokeRepeat.
backgroundRepeat noRepeat
strokeRpeat noRepeatThe repeat-x value for repeating backgrounds
and strokeRepeat.
backgroundRepeat repeatX
strokeRepeat repeatXThe repeat-y value for repeating backgrounds
and strokeRepeat.
backgroundRepeat repeatY
strokeRepeat repeatYThe space value for repeating backgrounds
and strokeRepeat.
backgroundRepeat space
strokeRepeat spaceThe round value used for properties such as:
This is called round_ because round is a function
word used in Elm Core's Basics module.
backgroundRepeat round_
strokeLineCap round_
strokeLinejoin2 miter round_
strokeRepeat round_Sets isolate value for usage with isolation, and
unicodeBidi.
isolation isolate
unicodeBidi isolateA match-parent value for the text-align,
and strokeOrigin properties.
textAlign matchParent
strokeOrigin matchParentA nowrap value for the white-space
and flex-wrapproperties.
whiteSpace nowrap
flexWrap nowrapSets display.
display2 block flex_Note: This function accepts flex_ and grid_
ather than flex and grid because
flex and grid are already property functions.
For display: inline list-item and similar property values that include list-item
look at displayListItem2 and displayListItem3.
The display property.
This function is used to generate complex display: list-item properties
such as display: block list-item.
displayListItem2 blockThe display property.
This function is used to generate complex display: list-item properties
such as display: block flow-root list-item.
displayListItem3 block flowRootThe flex value used by display.
display flex_The value is called flex_ instead of flex because flex is already a property function.
The flow-root value used by display.
display flowRootThe grid value used by display.
The value is called grid_ instead of grid because
grid is already a property function.
display grid_The contents value used by display.
display contentsThe list-item value used by display.
display listItemThe inline-block value used by display.
display inlineBlockThe inline-flex value used by display.
display inlineFlexThe inline-table value used by display.
display inlineTableThe inline-grid value used by display.
display inlineGridThe ruby-base value used by display.
display rubyBaseThe ruby-base-container value used by display.
display rubyBaseContainerThe ruby-text value used by display.
display rubyTextThe ruby-text-container value used by display.
display rubyTextContainerThe table-caption value used by display.
display tableCaptionThe table-cell value used by display.
display tableCellThe table-column value used by display.
display tableColumnThe table-column-group value used by display.
display tableColumnGroupThe table-header-group value used by display.
display tableHeaderGroupThe table-row value used by display.
display tableRowThe table-row-group value used by display.
display tableRowGroupSets the position of an element.
position absolute
position relativeposition absoluteThe default position value is static. See also position: sticky, and [the differences between absolute, relative, and fixed positioning](https://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-differ/
A fixed position
or fixed background-attachment
or fixed table-layout.
position fixed
backgroundAttachment fixed
tableLayout fixedThe default position value is static. See also position: sticky, and the differences between absolute, relative, and fixed positioning
position relativeThe default position value is static. See also position: sticky, and the differences between absolute, relative, and fixed positioning.
position staticThis is the default position value. See also position: sticky, and the differences between absolute, relative, and fixed positioning.
position stickyThe default position value is static. See also the differences between absolute, relative, and fixed positioning.
Sets z-index
zIndex (int 10)
zIndex autoNOTE: Z-index is not as simple as it looks! Make sure to read about stacking contexts if you're not already familiar with them.
Sets isolation
isolation auto
isolation isolateSets box-sizing property.
boxSizing contentBox
boxSizing borderBoxThe contain property.
contain none
contain content
contain2 size layout
contain3 size layout style
contain4 -- all multiple choice values in use, no value entry neededThe contain property.
This two-argument version lets you use 2 of the 4 multiple choice values you can use for this property.
contain2 size layoutThe contain property.
This two-argument version lets you use 3 of the 4 multiple choice values you can use for this property.
contain3 size layout styleThe contain property.
This 4-argument version lets you use all 4 multiple choice values you can use for this property.
contain4 size layout style paintNote: The style value is considered at-risk from being depreciated.
Sets the size value for contain.
This indicates that the element can be sized without needing to look at the size of its descendants.
contain sizeSets the inline-size value for contain.
Indicates that inline size containment is applied to the element.
contain inlineSize_Note: This is named inlineSize_ instead of inlineSize because
it is already a property function.
Sets the layout value for contain.
This indicates that nothing outside the element may affect its internal layout and vice versa.
contain layoutSets the paint value for contain.
Indicates that descendants of the element will not display outside its bounds and will not be painted by the browser if the containing box is offscreen.
contain paintThe contain-intrinsic-size
property.
This 1-argument variant lets you use global values, none and lengths for width and height.
containIntrinsicSize revert
containIntrinsicSize none
-- width + height
containIntrinsicSize (px 500)
-- width | height
containIntrinsicSize2 (rem 5) (px 800)
-- width + height w/ auto
containIntrinsicSize2 auto (px 800)
-- width w/ auto | height w/ auto
containIntrinsicSize4 auto (rem 50) auto (px 250)The contain-intrinsic-size
property.
This 2-argument variant lets you use separate lengths for
width and height or joined with and height with auto.
containIntrinsicSize revert
containIntrinsicSize none
-- width + height
containIntrinsicSize (px 500)
-- width | height
containIntrinsicSize2 (rem 5) (px 800)
-- width + height w/ auto
containIntrinsicSize2 auto (px 800)
-- width w/ auto | height w/ auto
containIntrinsicSize4 auto (rem 50) auto (px 250)The contain-intrinsic-size
property.
This 4-argument variant lets you use separate lengths for
width and height with auto.
Note: The 1st and 3rd argument can only be auto.
containIntrinsicSize revert
containIntrinsicSize none
-- width + height
containIntrinsicSize (px 500)
-- width | height
containIntrinsicSize2 (rem 5) (px 800)
-- width + height w/ auto
containIntrinsicSize2 auto (px 800)
-- width w/ auto | height w/ auto
containIntrinsicSize4 auto (rem 50) auto (px 250)The contain-intrinsic-width
property.
This 1-argument variant lets you use global values, none and lengths.
containIntrinsicWidth revert
containIntrinsicWidth none
-- specified width
containIntrinsicWidth (px 500)
-- specified width w/ auto
containIntrinsicWidth2 auto (px 800)The contain-intrinsic-width
property.
This 2-argument variant lets you use lengths with auto.
Note: The 1st argument can only be auto.
containIntrinsicWidth revert
containIntrinsicWidth none
-- specified width
containIntrinsicWidth (px 500)
-- specified width w/ auto
containIntrinsicWidth2 auto (px 800)The contain-intrinsic-height
property.
This 1-argument variant lets you use global values, none and lengths.
containIntrinsicHeight revert
containIntrinsicHeight none
-- specified height
containIntrinsicHeight (px 500)
-- specified height w/ auto
containIntrinsicHeight2 auto (px 800)The contain-intrinsic-height
property.
This 2-argument variant lets you use lengths with auto.
Note: The 1st argument can only be auto.
containIntrinsicHeight revert
containIntrinsicHeight none
-- specified height
containIntrinsicHeight (px 500)
-- specified height w/ auto
containIntrinsicHeight2 auto (px 800)The contain-intrinsic-inline-size
property.
This 1-argument variant lets you use global values, none and lengths.
containIntrinsicInlineSize revert
containIntrinsicInlineSize none
-- specified inline size
containIntrinsicInlineSize (px 500)
-- specified inline size w/ auto
containIntrinsicInlineSize2 auto (px 800)The contain-intrinsic-inline-size
property.
This 2-argument variant lets you use lengths with auto.
Note: The 1st argument can only be auto.
containIntrinsicInlineSize revert
containIntrinsicInlineSize none
-- specified inline size
containIntrinsicInlineSize (px 500)
-- specified inline size w/ auto
containIntrinsicInlineSize2 auto (px 800)The contain-intrinsic-block-size
property.
This 1-argument variant lets you use global values, none and lengths.
containIntrinsicBlockSize revert
containIntrinsicBlockSize none
-- specified block size
containIntrinsicBlockSize (px 500)
-- specified block size w/ auto
containIntrinsicBlockSize2 auto (px 800)The contain-intrinsic-block-size
property.
This 2-argument variant lets you use lengths with auto.
Note: The 1st argument can only be auto.
containIntrinsicBlockSize revert
containIntrinsicBlockSize none
-- specified block size
containIntrinsicBlockSize (px 500)
-- specified block size w/ auto
containIntrinsicBlockSize2 auto (px 800)The width property.
width (px 150)
width (em 1.5)
width auto
width minContentThe min-width property.
minWidth (px 150)
minWidth (em 1.5)
minWidth autoThe max-width property.
maxWidth (px 150)
maxWidth (em 1.5)
maxWidth autoThe height property.
height (px 34)The min-height property.
minHeight (px 20)The max-height property.
maxHeight (px 20)The block-size property.
blockSize (px 20)The min-block-size property.
minBlockSize (px 20)The max-block-size property.
maxBlockSize (px 20)The inline-size property.
inlineSize (px 20)The min-inline-size property.
minInlineSize (px 20)The max-inline-size property.
maxInlineSize (px 20)Sets the inset property.
inset sets the top, bottom, left and right properties.
inset (px 10) -- top, bottom, left and right are all 10px.
inset2 (pct 5) (pct 5) -- top & bottom = 5%, left & right = 5%
inset3 (px 20) (px 20) (px 20) -- top = 20px, left & right = 20px, bottom = 20px
inset4 (px 20) (px 20) (px 40) (px 20) -- top = 20px, right = 20px, bottom = 40px, left = 20pxSets the inset property.
inset sets the top, bottom, left and right properties.
inset (px 10) -- top, bottom, left and right are all 10px.
inset2 (pct 5) (pct 5) -- top & bottom = 5%, left & right = 5%
inset3 (px 20) (px 20) (px 20) -- top = 20px, left & right = 20px, bottom = 20px
inset4 (px 20) (px 20) (px 40) (px 20) -- top = 20px, right = 20px, bottom = 40px, left = 20pxSets the inset property.
inset sets the top, bottom, left and right properties.
inset (px 10) -- top, bottom, left and right are all 10px.
inset2 (pct 5) (pct 5) -- top & bottom = 5%, left & right = 5%
inset3 (px 20) (px 20) (px 20) -- top = 20px, left & right = 20px, bottom = 20px
inset4 (px 20) (px 20) (px 40) (px 20) -- top = 20px, right = 20px, bottom = 40px, left = 20pxSets the inset property.
inset sets the top, bottom, left and right properties.
inset (px 10) -- top, bottom, left and right are all 10px.
inset2 (pct 5) (pct 5) -- top & bottom = 5%, left & right = 5%
inset3 (px 20) (px 20) (px 20) -- top = 20px, left & right = 20px, bottom = 20px
inset4 (px 20) (px 20) (px 40) (px 20) -- top = 20px, right = 20px, bottom = 40px, left = 20pxSets the inset-block property.
inset-block sets the inset-block-start and inset-block-end properties.
insetBlock (px 10) -- block start and block end are both 10px.
insetBlock2 (pct 5) (pct 5) -- block start = 5%, block end = 5%Sets the inset-block property.
inset-block sets the inset-block-start and inset-block-end properties.
insetBlock (px 10) -- block start and block end are both 10px.
insetBlock2 (pct 5) (pct 5) -- block start = 5%, block end = 5%Sets the inset-inline property.
inset-inline sets the inset-inline-start and inset-inline-end properties.
insetInline (px 10) -- inline start and inline end are both 10px.
insetInline2 (pct 5) (pct 5) -- inline start = 5%, inline end = 5%Sets the inset-inline property.
inset-inline sets the inset-inline-start and inset-inline-end properties.
insetInline (px 10) -- inline start and inline end are both 10px.
insetInline2 (pct 5) (pct 5) -- inline start = 5%, inline end = 5%Sets the inset-block-start property.
insetBlockStart (px 10)
insetBlockStart (pct 50)
insetBlockStart auto
insetBlockStart zeroSets the inset-block-end property.
insetBlockEnd (px 10)
insetBlockEnd (pct 50)
insetBlockEnd auto
insetBlockEnd zeroSets the inset-inline-start property.
insetInlineStart (px 10)
insetInlineStart (pct 50)
insetInlineStart auto
insetInlineStart zeroSets the inset-inline-end property.
insetInlineEnd (px 10)
insetInlineEnd (pct 50)
insetInlineEnd auto
insetInlineEnd zeroSets margin property.
The margin property is a shorthand property for setting margin-top,
margin-right, margin-bottom, and margin-left in a single declaration.
If there is only one argument value, it applies to all sides. If there are two values, the top and bottom margins are set to the first value and the right and left margins are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.
margin (em 4) -- set all margins to 4em
margin2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2px
margin3 (em 4) (px 2) (pct 5) -- top = 4em, right = 2px, bottom = 5%, left = 2px
margin4 (em 4) (px 2) (pct 5) (px 3) -- top = 4em, right = 2px, bottom = 5%, left = 3pxYou may want to check out this article on collapsing margins!
Sets margin property.
The margin2 property is a shorthand property for setting margin-top,
margin-right, margin-bottom, and margin-left in a single declaration.
The top and bottom margins are set to the first value and the right and left margins are set to the second.
margin2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2pxYou may want to check out this article on collapsing margins!
Sets margin property.
The margin3 property is a shorthand property for setting margin-top,
margin-right, margin-bottom, and margin-left in a single declaration.
The top margin is set to the first value, the left and right are set to the second, and the bottom is set to the third.
margin3 (em 4) (px 2) (pct 5) -- top = 4em, right = 2px, bottom = 5%, left = 2pxYou may want to check out this article on collapsing margins!
Sets margin property.
The margin4 property is a shorthand property for setting margin-top,
margin-right, margin-bottom, and margin-left in a single declaration.
The four values apply to the top, right, bottom, and left margins.
margin4 (em 4) (px 2) (pct 5) (px 3) -- top = 4em, right = 2px, bottom = 5%, left = 3pxYou may want to check out this article on collapsing margins!
Sets margin-top property.
marginTop (px 4)This article on margin-top versus margin-bottom may be useful.
Sets margin-right property.
marginRight (px 4)Sets margin-bottom property.
marginBottom (px 4)This article on margin-top versus margin-bottom may be useful.
Sets margin-left property.
marginLeft (px 4)Sets margin-block property.
The margin-block property is a shorthand property for setting margin-block-start and
margin-block-end in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the block start margin is set to the first value and the block end margin is set to the second.
marginBlock (em 4) -- set both block margins to 4em
marginBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxYou may want to check out this article on collapsing margins!
Sets margin-block property.
The margin-block property is a shorthand property for setting margin-block-start and
margin-block-end in a single declaration.
The block start margin is set to the first value and the block end margin is set to the second.
marginBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxYou may want to check out this article on collapsing margins!
Sets margin-block-start property.
marginBlockStart (px 4)Sets margin-block-end property.
marginBlockEnd (px 4)Sets margin-inline property.
The margin-inline property is a shorthand property for setting margin-inline-start and
margin-inline-end in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the inline start margin is set to the first value and the inline end margin is set to the second.
marginInline (em 4) -- set both inline margins to 4em
marginInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxYou may want to check out this article on collapsing margins!
Sets margin-inline property.
The margin-inline property is a shorthand property for setting margin-inline-start and
margin-inline-end in a single declaration.
The inline start margin is set to the first value and the inline end margin is set to the second.
marginInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxYou may want to check out this article on collapsing margins!
Sets margin-inline-start property.
marginInlineStart (px 4)Sets margin-inline-end property.
marginInlineEnd (px 4)Sets padding property.
The padding property is a shorthand property for setting padding-top,
padding-right, padding-bottom, and padding-left in a single declaration.
If there is only one argument value, it applies to all sides. If there are two values, the top and bottom paddings are set to the first value and the right and left paddings are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.
padding (em 4) -- set all margins to 4em
padding2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2px
padding3 (em 4) (px 2) (pct 5) -- top = 4em, right = 2px, bottom = 5%, left = 2px
padding4 (em 4) (px 2) (pct 5) (px 3) -- top = 4em, right = 2px, bottom = 5%, left = 3pxSets padding property.
The padding2 property is a shorthand property for setting padding-top,
padding-right, padding-bottom, and padding-left in a single declaration.
The top and bottom margins are set to the first value and the right and left margins are set to the second.
padding2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2pxSets padding property.
The padding3 property is a shorthand property for setting padding-top,
padding-right, padding-bottom, and padding-left in a single declaration.
The top padding is set to the first value, the left and right are set to the second, and the bottom is set to the third.
padding3 (em 4) (px 2) (pct 5) -- top = 4em, right = 2px, bottom = 5%, left = 2pxSets padding property.
The padding4 property is a shorthand property for setting padding-top,
padding-right, padding-bottom, and padding-left in a single declaration.
The four values apply to the top, right, bottom, and left paddings.
padding4 (em 4) (px 2) (pct 5) (px 3) -- top = 4em, right = 2px, bottom = 5%, left = 3pxSets padding-top property.
paddingTop (px 4)Sets padding-right property.
paddingRight (px 4)Sets padding-bottom property.
paddingBottom (px 4)Sets padding-left property.
paddingLeft (px 4)Sets padding-block property.
The padding-block property is a shorthand property for setting padding-block-start and
padding-block-end in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the block start is set to the first value and the block end is set to the second.
paddingBlock (em 4) -- set both block start and block end to 4em
paddingBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxSets padding-block property.
The padding-block property is a shorthand property for setting padding-block-start and
padding-block-end in a single declaration.
The block start value is set to the first value and the block end value is set to the second.
paddingBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxSets padding-block-start property.
paddingBlockStart (px 4)Sets padding-block-end property.
paddingBlockEnd (px 4)Sets padding-inline property.
The padding-inline property is a shorthand property for setting padding-inline-start and
padding-inline-end and in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the inline start is set to the first value and the inline end is set to the second.
paddingInline (em 4) -- set both inline start and inline end to 4em
paddingInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxSets padding-inline property.
The padding-inline property is a shorthand property for setting padding-inline-start and
padding-inline-end in a single declaration.
The inline start value is set to the first value and the inline end value is set to the second.
paddingInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxSets padding-inline-start property.
paddingInlineStart (px 4)Sets padding-inline-end property.
paddingInlineEnd (px 4)Sets border property.
border (px 1)
border2 (px 1) solid
border3 (px 1) solid (hex "#f00")Sets border property.
border (px 1)
border2 (px 1) solid
border3 (px 1) solid (hex "#f00")Sets border property.
border (px 1)
border2 (px 1) solid
border3 (px 1) solid (hex "#f00")Sets border-top property.
borderTop (px 1)
borderTop2 (px 1) solid
borderTop3 (px 1) solid (hex "#f00")Sets border-top property.
borderTop (px 1)
borderTop2 (px 1) solid
borderTop3 (px 1) solid (hex "#f00")Sets border-top property.
borderTop (px 1)
borderTop2 (px 1) solid
borderTop3 (px 1) solid (hex "#f00")Sets border-right property.
borderRight (px 1)
borderRight2 (px 1) solid
borderRight3 (px 1) solid (hex "#f00")Sets border-right property.
borderRight (px 1)
borderRight2 (px 1) solid
borderRight3 (px 1) solid (hex "#f00")Sets border-right property.
borderRight (px 1)
borderRight2 (px 1) solid
borderRight3 (px 1) solid (hex "#f00")Sets border-bottom property.
borderBottom (px 1)
borderBottom2 (px 1) solid
borderBottom3 (px 1) solid (hex "#f00")Sets border-bottom property.
borderBottom (px 1)
borderBottom2 (px 1) solid
borderBottom3 (px 1) solid (hex "#f00")Sets border-bottom property.
borderBottom (px 1)
borderBottom2 (px 1) solid
borderBottom3 (px 1) solid (hex "#f00")Sets border-left property.
borderLeft (px 1)
borderLeft2 (px 1) solid
borderLeft3 (px 1) solid (hex "#f00")Sets border-left property.
borderLeft (px 1)
borderLeft2 (px 1) solid
borderLeft3 (px 1) solid (hex "#f00")Sets border-left property.
borderLeft (px 1)
borderLeft2 (px 1) solid
borderLeft3 (px 1) solid (hex "#f00")Sets border-block property.
borderBlock (px 1)
borderBlock2 (px 1) solid
borderBlock3 (px 1) solid (hex "#f00")Sets border-block property.
borderBlock (px 1)
borderBlock2 (px 1) solid
borderBlock3 (px 1) solid (hex "#f00")Sets border-block property.
borderBlock (px 1)
borderBlock2 (px 1) solid
borderBlock3 (px 1) solid (hex "#f00")Sets border-block-start property.
borderBlockStart (px 1)
borderBlockStart2 (px 1) solid
borderBlockStart3 (px 1) solid (hex "#f00")Sets border-block-start property.
borderBlockStart (px 1)
borderBlockStart2 (px 1) solid
borderBlockStart3 (px 1) solid (hex "#f00")Sets border-block-start property.
borderBlockStart (px 1)
borderBlockStart2 (px 1) solid
borderBlockStart3 (px 1) solid (hex "#f00")Sets border-block-end property.
borderBlockEnd (px 1)
borderBlockEnd2 (px 1) solid
borderBlockEnd3 (px 1) solid (hex "#f00")Sets border-block-end property.
borderBlockEnd (px 1)
borderBlockEnd2 (px 1) solid
borderBlockEnd3 (px 1) solid (hex "#f00")Sets border-block-end property.
borderBlockEnd (px 1)
borderBlockEnd2 (px 1) solid
borderBlockEnd3 (px 1) solid (hex "#f00")Sets border-inline property.
borderInline (px 1)
borderInline2 (px 1) solid
borderInline3 (px 1) solid (hex "#f00")Sets border-inline property.
borderInline (px 1)
borderInline2 (px 1) solid
borderInline3 (px 1) solid (hex "#f00")Sets border-inline property.
borderInline (px 1)
borderInline2 (px 1) solid
borderInline3 (px 1) solid (hex "#f00")Sets border-inline-start property.
borderInlineStart (px 1)
borderInlineStart2 (px 1) solid
borderInlineStart3 (px 1) solid (hex "#f00")Sets border-inline-start property.
borderInlineStart (px 1)
borderInlineStart2 (px 1) solid
borderInlineStart3 (px 1) solid (hex "#f00")Sets border-inline-start property.
borderInlineStart (px 1)
borderInlineStart2 (px 1) solid
borderInlineStart3 (px 1) solid (hex "#f00")Sets border-inline-end property.
borderInlineEnd (px 1)
borderInlineEnd2 (px 1) solid
borderInlineEnd3 (px 1) solid (hex "#f00")Sets border-inline-end property.
borderInlineEnd (px 1)
borderInlineEnd2 (px 1) solid
borderInlineEnd3 (px 1) solid (hex "#f00")Sets border-inline-end property.
borderInlineEnd (px 1)
borderInlineEnd2 (px 1) solid
borderInlineEnd3 (px 1) solid (hex "#f00")Sets border-width property.
borderWidth (px 1)
borderWidth2 (px 1) thin
borderWidth3 (px 1) thin zero
borderWidth4 (px 1) thin zero (em 1)Sets border-width property.
borderWidth (px 1)
borderWidth2 (px 1) thin
borderWidth3 (px 1) thin zero
borderWidth4 (px 1) thin zero (em 1)Sets border-width property.
borderWidth (px 1)
borderWidth2 (px 1) thin
borderWidth3 (px 1) thin zero
borderWidth4 (px 1) thin zero (em 1)Sets border-width property.
borderWidth (px 1)
borderWidth2 (px 1) thin
borderWidth3 (px 1) thin zero
borderWidth4 (px 1) thin zero (em 1)Sets border-top-width property.
borderTopWidth (px 1)Sets border-right-width property.
borderRightWidth (px 1)Sets border-bottom-width property.
borderBottomWidth (px 1)Sets border-left-width property.
borderLeftWidth (px 1)Sets border-block-width property.
borderBlockWidth (px 1)Sets border-block-start-width property.
borderBlockStartWidth (px 1)Sets border-block-end-width property.
borderBlockEndWidth (px 1)Sets border-inline-width property.
borderTopWidth (px 1)Sets border-inline-start-width property.
borderInlineStartWidth (px 1)Sets border-inline-end-width property.
borderInlineEndWidth (px 1)Sets border-style property.
borderStyle solid
borderStyle2 solid none
borderStyle3 solid none dotted
borderStyle4 solid none dotted grooveSets border-style property.
borderStyle solidSets border-style property.
borderStyle2 solid noneSets border-style property.
borderStyle4 solid none dotted grooveSets border-top-style property.
borderTopStyle solidSets border-right-style property.
borderRightStyle solidSets border-bottom-style property.
borderBottomStyle solidSets border-left-style property.
borderLeftStyle solidSets border-block-style property.
borderBlockStyle solidSets border-block-start-style property.
borderBlockStartStyle solidSets border-block-end-style property.
borderBlockEndStyle solidSets border-inline-style property.
borderInlineStyle solidSets border-inline-start-style property.
borderInlineStartStyle solidSets border-inline-end-style property.
borderInlineEndStyle solidThe dotted value used by properties such as borderStyle,
columnRuleStyle, and textDecorationStyle.
It represents a line that consists of dots.
borderStyle dotted
columnRuleStyle dotted
textDecorationStyle dottedThe dashed value used by properties such as borderStyle,
columnRuleStyle, and textDecorationStyle.
borderStyle dashed
columnRuleStyle dashed
textDecorationStyle dashedIt represents a line that consists of dashes.
The solid value used by properties such as borderStyle,
columnRuleStyle, and textDecorationStyle.
borderStyle solid
columnRuleStyle solid
textDecorationStyle solidIt represents a solid, continuous line.
The double value used by properties such as borderStyle,
columnRuleStyle, and textDecorationStyle.
borderStyle double
columnRuleStyle double
textDecorationStyle doubleIt represents a double line: two lines side by side.
The groove value used by properties such as borderStyle,
columnRuleStyle, and textDecorationStyle.
borderStyle groove
columnRuleStyle groove
textDecorationStyle grooveAdds a bevel based on the color value, which makes things appear pressed into the document.
The ridge value used by properties such as borderStyle,
columnRuleStyle, and textDecorationStyle.
borderStyle ridge
columnRuleStyle ridge
textDecorationStyle ridgeSimilar to groove, but reverses the color values in a way that makes things appear raised.
The inset value used by properties such as borderStyle,
columnRuleStyle, and textDecorationStyle.
This is called inset_ rather than inset because inset is already a property function.
borderStyle inset_
columnRuleStyle inset_
textDecorationStyle inset_Adds a split tone to the line that makes it appear slightly depressed.
Contrast with outset
The outset value used by properties such as borderStyle,
columnRuleStyle,
and textDecorationStyle,
and strokeAlign.
borderStyle outset
columnRuleStyle outset
strokeAlign outset
textDecorationStyle outsetSimilar to inset_, but reverses the colors in a way that makes it appear slightly raised.
Sets border-color property.
borderColor (rgb 0 0 0)
borderColor2 (rgb 0 0 0) (hsl 10 10 10)
borderColor3 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff")
borderColor4 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff") transparentSets border-color property.
borderColor (rgb 0 0 0)
borderColor2 (rgb 0 0 0) (hsl 10 10 10)
borderColor3 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff")
borderColor4 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff") transparentSets border-color property.
borderColor (rgb 0 0 0)
borderColor2 (rgb 0 0 0) (hsl 10 10 10)
borderColor3 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff")
borderColor4 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff") transparentSets border-color property.
borderColor (rgb 0 0 0)
borderColor2 (rgb 0 0 0) (hsl 10 10 10)
borderColor3 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff")
borderColor4 (rgb 0 0 0) (hsl 10 10 10) (hex "#fff") transparentSets border-top-color property.
borderTopColor (rgb 0 0 0)Sets border-right-color property.
borderRightColor (rgb 0 0 0)Sets border-bottom-color property.
borderBottomColor (rgb 0 0 0)Sets border-left-color property.
borderLeftColor (rgb 0 0 0)Sets border-block-color property.
borderBlockColor (rgb 0 0 0)Sets border-block-start-color property.
borderBlockStartColor (rgb 0 0 0)Sets border-block-end-color property.
borderBlockEndColor (rgb 0 0 0)Sets border-inline-color property.
borderInlineColor (rgb 0 0 0)Sets border-inline-start-color property.
borderInlineStartColor (rgb 0 0 0)Sets border-inline-end-color property.
borderInlineEndColor (rgb 0 0 0)Sets border-radius property.
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius property.
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius property.
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-radius property.
borderRadius (em 4)
borderRadius2 (em 4) (px 2)
borderRadius3 (em 4) (px 2) (pct 5)
borderRadius4 (em 4) (px 2) (pct 5) (px 3)Sets border-top-left-radius property.
borderTopLeftRadius (em 4)
borderTopLeftRadius2 (em 4) (px 2)Sets border-top-left-radius property.
borderTopLeftRadius (em 4)
borderTopLeftRadius2 (em 4) (px 2)Sets border-top-right-radius property.
borderTopRightRadius (em 4)
borderTopRightRadius2 (em 4) (px 2)Sets border-top-right-radius property.
borderTopRightRadius (em 4)
borderTopRightRadius2 (em 4) (px 2)Sets border-bottom-right-radius property.
borderBottomRightRadius (em 4)
borderBottomRightRadius2 (em 4) (px 2)Sets border-bottom-right-radius property.
borderBottomRightRadius (em 4)
borderBottomRightRadius2 (em 4) (px 2)Sets border-bottom-left-radius property.
borderBottomLeftRadius (em 4)
borderBottomLeftRadius2 (em 4) (px 2)Sets border-bottom-left-radius property.
borderBottomLeftRadius (em 4)
borderBottomLeftRadius2 (em 4) (px 2)Sets border-start-start-radius property.
borderStartStartRadius (em 4)
borderStartStartRadius2 (em 4) (px 2)Sets border-start-start-radius property.
borderStartStartRadius (em 4)
borderStartStartRadius2 (em 4) (px 2)Sets border-start-end-radius property.
borderStartEndRadius (em 4)
borderStartEndRadius2 (em 4) (px 2)Sets border-start-end-radius property.
borderStartEndRadius (em 4)
borderStartEndRadius2 (em 4) (px 2)Sets border-end-start-radius property.
borderEndStartRadius (em 4)
borderEndStartRadius2 (em 4) (px 2)Sets border-end-start-radius property.
borderEndStartRadius (em 4)
borderEndStartRadius2 (em 4) (px 2)Sets border-end-end-radius property.
borderEndEndRadius (em 4)
borderEndEndRadius2 (em 4) (px 2)Sets border-end-end-radius property.
borderEndEndRadius (em 4)
borderEndEndRadius2 (em 4) (px 2)Sets border-image-outset property.
borderImageOutset (rem 1)
borderImageOutset2 (num 1) (num 1.2)
borderImageOutset3 (px 30) (num 2) (px 45)
borderImageOutset4 (px 7) (px 12) (px 14) (px 5)Specifies the distance by which an element's border image is set out from its border box. Supports values specified as length units or unitless numbers. Negative values are invalid.
Sets border-image-outset property.
borderImageOutset (rem 1)
borderImageOutset2 (num 1) (num 1.2)
borderImageOutset3 (px 30) (num 2) (px 45)
borderImageOutset4 (px 7) (px 12) (px 14) (px 5)Specifies the distance by which an element's border image is set out from its border box. Supports values specified as length units or unitless numbers. Negative values are invalid.
Sets border-image-outset property.
borderImageOutset (rem 1)
borderImageOutset2 (num 1) (num 1.2)
borderImageOutset3 (px 30) (num 2) (px 45)
borderImageOutset4 (px 7) (px 12) (px 14) (px 5)Specifies the distance by which an element's border image is set out from its border box. Supports values specified as length units or unitless numbers. Negative values are invalid.
Sets border-image-outset property.
borderImageOutset (rem 1)
borderImageOutset2 (num 1) (num 1.2)
borderImageOutset3 (px 30) (num 2) (px 45)
borderImageOutset4 (px 7) (px 12) (px 14) (px 5)Specifies the distance by which an element's border image is set out from its border box. Supports values specified as length units or unitless numbers. Negative values are invalid.
Sets border-image-width property.
borderImageWidth (rem 1)
borderImageWidth2 (num 1) (num 1.2)
borderImageWidth3 (pct 5) (pct 15) (pct 10)
borderImageWidth4 (px 7) (px 12) (px 14) (px 5)Specifies the width of an element's border image. Supports values specified as length units, percentages, unitless numbers or auto. Negative values are invalid.
Sets border-image-width property.
borderImageWidth (rem 1)
borderImageWidth2 (num 1) (num 1.2)
borderImageWidth3 (pct 5) (pct 15) (pct 10)
borderImageWidth4 (px 7) (px 12) (px 14) (px 5)Specifies the width of an element's border image. Supports values specified as length units, percentages, unitless numbers or auto. Negative values are invalid.
Sets border-image-width property.
borderImageWidth (rem 1)
borderImageWidth2 (num 1) (num 1.2)
borderImageWidth3 (pct 5) (pct 15) (pct 10)
borderImageWidth4 (px 7) (px 12) (px 14) (px 5)Specifies the width of an element's border image. Supports values specified as length units, percentages, unitless numbers or auto. Negative values are invalid.
Sets border-image-width property.
borderImageWidth (rem 1)
borderImageWidth2 (num 1) (num 1.2)
borderImageWidth3 (pct 5) (pct 15) (pct 10)
borderImageWidth4 (px 7) (px 12) (px 14) (px 5)Specifies the width of an element's border image. Supports values specified as length units, percentages, unitless numbers or auto. Negative values are invalid.
Sets outline.
outline zero
outline noneSets outline.
outline3 (em 0.25) auto (rgb 120 250 32)Sets outline-width.
outlineWidth (px 2)
outlineWidth thinSets outline-color.
outlineColor (hex "eee")
outlineColor invert_The invert value used by properties such as outlineColor
outlineColor invert_Note: This is called invert_ instead of invert because invert is already used as a filter-function value.
Sets outline-style.
outlineStyle auto
outlineStyle dashedSets outline-offset.
outlineOffset (px 2)Sets overflow.
overflow visible
overflow hidden
overflow scroll
overflow auto
overflow2 visible hidden -- x: visible, y: hiddenSets overflow.
overflow visible
overflow hidden
overflow scroll
overflow auto
overflow2 visible hidden -- x: visible, y: hiddenSets overflow-x.
overflowX visible
overflowX hidden
overflowX scroll
overflowX autoSets overflow-y.
overflowY visible
overflowY hidden
overflowY scroll
overflowY autoSets overflow-block.
overflowBlock visible
overflowBlock hidden
overflowBlock scroll
overflowBlock autoSets overflow-inline.
overflowInline visible
overflowInline hidden
overflowInline scroll
overflowInline autoSets overflow-wrap
overflowWrap breakWord
overflowWrap normalSets overflow-anchor
overflowAnchor auto
overflowAnchor noneThe break-word value, which can be used with such properties as
overflow-wrap
and word-break.
overflowWrap breakWord
wordBreak breakWordThe anywhere value used by overflowWrap and lineBreak.
overflowWrap anywhere
lineBreak anywhereThe resize property.
resize none
resize both
resize inlineThe horizontal value used by resize.
resize horizontalThe vertical value used by resize.
resize verticalThe flex shorthand property.
flex none
flex auto
flex (num 1)The flex shorthand property.
flex2 zero autoThe flex shorthand property.
flex3 (num 1) zero (pct 50)Sets flex-basis.
flexBasis (em 10)
flexBasis (px 3)
flexBasis (pct 100)
flexBasis autoSets flex-grow.
flexGrow (num 3)
flexGrow (num 0.6)Sets flex-shrink.
flexShrink (num 2)
flexShrink (num 0.6)Sets flex-direction.
flexDirection columnSets flex-wrap.
flexWrap wrap
flexWrap wrapReverse
flexWrap nowrapThe flex-flow shorthand property.
flexFlow rowReverse
flexFlow wrap
flexFlow inherit
flexFlow2 column wrapReverseThe flex-flow shorthand property.
flexFlow rowReverse
flexFlow wrap
flexFlow inherit
flexFlow2 column wrapReverseSets align-content.
alignContent flexStartNote: This property has no effect when the flexbox has only a single line.
Sets align-content.
alignContent2 unsafe startNote: This property has no effect when the flexbox has only a single line.
Sets align-items.
alignItems firstBaselineSets align-items.
alignItems2 unsafe selfStartSets align-self.
alignSelf firstBaselineSets align-self.
alignSelf2 unsafe flexStartSets justify-content.
justifyContent2 safe flexStartThe justify-items property.
justifyItems centerThe justify-items property.
justifyItems2 unsafe right_The justify-self property.
justifySelf2 unsafe left_The place-content property.
placeContent is a shorthand for the alignContent and
justifyContent properties in a single declaration.
This one-argument version only accepts global values.
placeContent inherit
placeContent2 flexStart flexEndThe place-content property.
placeContent is a shorthand for the alignContent and
justifyContent properties in a single declaration.
This two-argumant version accepts alignContent and justifyContent values.
placeContent inherit
placeContent2 flexStart flexEndThe place-items property.
placeItems is a shorthand for the alignItems and
justifyItems properties in a single declaration.
This one-argument version only accepts global values.
placeItems inherit
placeItems2 center selfEndThe place-items property.
placeItems is a shorthand for the alignItems and
justifyItems properties in a single declaration.
This one-argument version only accepts global values.
placeItems inherit
placeItems2 center selfEndThe place-self property.
placeSelf is a shorthand for the alignSelf and
justifySelf properties in a single declaration.
This one-argument version only accepts global values.
placeSelf inherit
placeSelf2 flexStart flexEndThe place-self property.
placeSelf is a shorthand for the alignSelf and
justifySelf properties in a single declaration.
This one-argument version only accepts global values.
placeSelf inherit
placeSelf2 flexStart flexEndSets order
order (num 2)
order (num -2)The row flex-direction value.
flexDirection rowThe row-reverse flex-direction value.
flexDirection rowReverseThe column-reverse flex-direction value.
flexDirection columnReverseThe flex-start value used by alignItems,
justifyContent,
and alignContent.
alignItems flexStart
justifyContent flexStart
alignContent flexStartThe flex-end value used by alignItems,
justifyContent,
and alignContent.
alignItems flexEnd
justifyContent flexEnd
alignContent flexEndThe space-between value used by justifyContent
and alignContent.
justifyContent spaceBetween
alignContent spaceBetweenThe space-around value used by justifyContent
and alignContent.
justifyContent spaceAround
alignContent spaceAroundDistribute items evenly, with an equal size space between each element and the start and end.
justifyContent spaceEvenlyThe first baseline value used for properties such as alignContent,
alignItems,
and alignSelf.
alignItems firstBaselineThe last baseline value used for properties such as alignContent,
alignItems,
and alignSelf.
alignItems lastBaselineThe safe value used for properties such as alignContent2.
alignContent2 safe centerThe unsafe value used for properties such as alignContent2.
alignContent2 unsafe centerThe legacy value used for properties such as justifyItems.
justifyItems legacyThe legacy left value used for properties such as justifyItems.
justifyItems legacyLeftThe legacy right value used for properties such as justifyItems.
justifyItems legacyRightThe legacy center value used for properties such as justifyItems.
justifyItems legacyCenterThe wrap flex-wrap value.
flexWrap wrapThe wrap-reverse flex-wrap value.
flexWrap wrapReverseA break-spaces value for the white-space property.
whiteSpace breakSpacesExtensible type representing the possibilities of the
<fixed-size> type used in grids.
Extensible type representing the possibilities of the
<track-breadth> type used in grids.
Extensible type representing the possibilities of the
<track-size> type used in grids.
Type representing the possibilities of the
<track-size> type used in grids.
The 1-argument version of the grid-auto-rows
property.
gridAutoRows (px 100)
gridAutoRows (vmax 30)
gridAutoRows (fr 1)
gridAutoRows (minmax (fr 2) (pct 20))The many-argument version of the grid-auto-rows
property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
gridAutoRows (px 100)
gridAutoRows (vmax 30)
gridAutoRows (fr 1)
gridAutoRows (minmax (fr 2) (pct 20))
gridAutoRowsMany [ fr 1, px 100, minmax (fr 2) (pct 20) ]
gridAutoRowsMany [] -- unsetThe 1-argument version of the grid-auto-columns
property.
gridAutoColumns (px 100)
gridAutoColumns (vmax 30)
gridAutoColumns (fr 1)
gridAutoColumns (minmax (fr 2) (pct 20))
gridAutoColumnsMany [ fr 1, px 100, minmax (fr 2) (pct 20) ]
gridAutoColumnsMany [] -- unsetThe many-argument version of the grid-auto-columns
property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
gridAutoColumns (px 100)
gridAutoColumns (vmax 30)
gridAutoColumns (fr 1)
gridAutoColumns (minmax (fr 2) (pct 20))
gridAutoColumnsMany [ fr 1, px 100, minmax (fr 2) (pct 20) ]
gridAutoColumnsMany [] -- unsetThe 1-argument version of the grid-auto-flow
property.
gridAutoFlow dense
gridAutoFlow column
gridAutoFlow2 row denseThe 1-argument version of the grid-auto-flow
property.
gridAutoFlow2 row dense(The last argument can only be dense but I thought this
would be the most natural way to make it fit into Elm,
even if it's a bit redundant.)
A type encapsulating the possibilities for defining a <grid-line>,
which are the lines around the spaces in a CSS grid.
Creates a grid line value with a <custom-ident> value and an optional integer.
gridLineIdent "footer" Nothing -- footer
gridLineIdent "header" (Just 1) -- header 1
gridLineSpanNum 4 -- span 4
gridLineSpanIdent "header" Nothing -- span header
gridLineSpanIdent "footer" (Just 1) -- span header 1Creates a grid line value with a 'span' keyword value followed by an integer.
gridLineIdent "footer" Nothing -- footer
gridLineIdent "header" (Just 1) -- header 1
gridLineSpanNum 4 -- span 4
gridLineSpanIdent "header" Nothing -- span header
gridLineSpanIdent "footer" (Just 1) -- span header 1Creates a grid line value with a 'span' keyword value followed by an ident and an optional integer.
gridLineIdent "footer" Nothing -- footer
gridLineIdent "header" (Just 1) -- header 1
gridLineSpanNum 4 -- span 4
gridLineSpanIdent "header" Nothing -- span header
gridLineSpanIdent "footer" (Just 1) -- span header 1The grid-area
property.
This variant is for keywords or for 1 <grid-line> (GridLine) that determines
the start and end positions of this grid item.
Numbers used in this should not be zero, else they won't work.
gridArea auto
gridArea inherit
gridArea <| gridLineSpanNum 4
gridArea <| gridLineIdent "big-grid" (Just 4)
gridArea2
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
gridArea3
( gridLineIdent "big-grid" (Just 4))
( gridLineSpanIdent "other-grid" Nothing)
( num 7 )
gridArea4
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
( num 7 )
( gridLineSpanIdent "another-grid" (Just 12) )The grid-area
property.
This variant specifies 2 <grid-line>s (GridLine) that determines
the start and end positions of this grid item.
Numbers used in this should not be zero, else they won't work.
gridArea auto
gridArea inherit
gridArea <| gridLineSpanNum 4
gridArea <| gridLineIdent "big-grid" (Just 4)
gridArea2
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
gridArea3
( gridLineIdent "big-grid" (Just 4))
( gridLineSpanIdent "other-grid" Nothing)
( num 7 )
gridArea4
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
( num 7 )
( gridLineSpanIdent "another-grid" (Just 12) )The grid-area
property.
This variant specifies 3 <grid-line>s (GridLine) that determines
the start and end positions of this grid item.
Numbers used in this should not be zero, else they won't work.
gridArea auto
gridArea inherit
gridArea <| gridLineSpanNum 4
gridArea <| gridLineIdent "big-grid" (Just 4)
gridArea2
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
gridArea3
( gridLineIdent "big-grid" (Just 4))
( gridLineSpanIdent "other-grid" Nothing)
( num 7 )
gridArea4
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
( num 7 )
( gridLineSpanIdent "another-grid" (Just 12) )The grid-area
property.
This variant specifies 4 <grid-line>s (GridLine) that determines
the start and end positions of this grid item.
Numbers used in this should not be zero, else they won't work.
gridArea auto
gridArea inherit
gridArea <| gridLineSpanNum 4
gridArea <| gridLineIdent "big-grid" (Just 4)
gridArea2
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
gridArea3
( gridLineIdent "big-grid" (Just 4))
( gridLineSpanIdent "other-grid" Nothing)
( num 7 )
gridArea4
( gridLineIdent "big-grid" (Just 4) )
( gridLineSpanIdent "other-grid" Nothing )
( num 7 )
( gridLineSpanIdent "another-grid" (Just 12) )The grid-row
property.
This variant is for single keyword arguments and
specifying 1 <grid-line> (GridLine), which determines
the start and end position of this grid item.
Numbers used in this should not be zero, else they won't work.
gridRow auto
gridRow inherit
gridRow <| gridLineIdent "main-grid" (Just 3)
-- grid-row: main-grid 3
gridRow2 auto ( gridLineSpanIdent "grid-thing" (Just 5) )
-- grid-row: auto / span grid-thing 5The grid-row
property.
This variant specifies 2 <grid-line>s (GridLine) that determine
the start and end position of this grid item.
Numbers used in this should not be zero, else they won't work.
gridRow auto
gridRow inherit
gridRow <| gridLineIdent "main-grid" (Just 3)
-- grid-row: main-grid 3
gridRow2 auto ( gridLineSpanIdent "grid-thing" (Just 5) )
-- grid-row: auto / span grid-thing 5The 1-argument version of the grid-row-start
property.
gridRowStart inherit
gridRowStart auto
gridRowStart <| gridLineSpanIdent "big-grid" Nothing
gridRowStart <| int 3
gridRowStart <| gridLineIdent "big-grid" (Just 2)The 1-argument version of the grid-row-end
property.
gridRowEnd inherit
gridRowEnd auto
gridRowEnd <| gridLineSpanIdent "big-grid" Nothing
gridRowEnd <| int 3
gridRowEnd <| gridLineIdent "big-grid" (Just 2)The grid-column
property.
This variant is for single keyword arguments and
specifying 1 <grid-line> (GridLine), which determines
the start and end position of this grid item.
Numbers used in this should not be zero, else they won't work.
gridColumn auto
gridColumn inherit
gridColumn <| gridLineIdent "main-grid" (Just 3)
-- grid-column: main-grid 3
gridColumn2 auto ( gridLineSpanIdent "grid-thing") (Just 5) )
-- grid-column: auto / span grid-thing 5The grid-column
property.
This variant specifies 2 <grid-line>s (GridLine) that determine
the start and end position of this grid item.
Numbers used in this should not be zero, else they won't work.
gridColumn auto
gridColumn inherit
gridColumn <| gridLineIdent "main-grid" (Just 3)
-- grid-column: main-grid 3
gridColumn2 auto ( gridLineSpanIdent "grid-thing") (Just 5) )
-- grid-column: auto / span grid-thing 5The 1-argument version of the grid-column-start
property.
gridColumnStart inherit
gridColumnStart auto
gridColumnStart <| gridLineSpanIdent "big-grid") Nothing
gridColumnStart <| int 3
gridColumnStart <| gridLineIdent "big-grid" (Just 2)The 1-argument version of the grid-column-end
property.
gridColumnEnd inherit
gridColumnEnd auto
gridColumnEnd <| gridLineSpanIdent "big-grid") Nothing
gridColumnEnd <| int 3
gridColumnEnd <| gridLineIdent "big-grid" (Just 2)Thegrid-template
property.
gridTemplate initial
gridTemplate none
gridTemplate <|
templateAreasRowsColumns
[ templateAreaRow
( Just <| lineNames ["header-left"] )
"head head"
( Just <| px 30 )
( Just <| lineNames ["header-right"] )
, templateAreaRow
( Just <| lineNames ["main-left"] )
"nav main"
( Just <| fr 1 )
( Just <| lineNames ["main-right"])
, templateAreaRow
( Just <| lineNames ["footer-left"] )
"nav foot"
( Just <| px 30 )
( Just <| lineNames ["footer-right"])
]
( Just <| templateColumns
( px 120 )
[ fr 120
]
)
gridTemplate <|
templateRowsColumns
( trackList
( lineNames ["line1", "line2"] )
[ px 300
, lineNames ["line3"]
]
)
( autoTrackList
( minmax (px 210) maxContent )
[ autoRepeat autoFill [px 200]
, pct 20
]
)The grid-template-areas
property. Use the gridTemplateAreasMany function if you want
to use multiple strings as a value.
gridTemplateAreas none
gridTemplateAreas inherit
gridTemplateAreasCells
[ "c c b"
, "c a b"
, "c d e"
]A version of gridTemplateAreas that
lets you input a list of strings as values, representing grid cells.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
gridTemplateAreasCells
[ "c c b"
, "c a b"
, "c d e"
]
gridTemplateAreasCells [] -- unsetThe grid-template-rows
property.
gridTemplateRows inherit
gridTemplateRows none
gridTemplateRows <|
trackList (px 200) [fr 1, px 180]
gridTemplateRows <|
trackList
( lineNames ["line1", "line2"] )
[ px 300
, lineNames ["line3"]
]
gridTemplateRows <|
trackList [ fixedRepeat (num 4) [px 520] ]
gridTemplateRows <|
autoTrackList
( minmax (px 210) maxContent )
[ autoRepeat autoFill [px 200]
, pct 20
]The grid-template-columns
property.
gridTemplateColumns inherit
gridTemplateColumns none
gridTemplateColumns <|
trackList (px 200) [fr 1, px 180]
gridTemplateColumns <|
trackList
( lineNames ["line1", "line2"] )
[ px 300
, lineNames ["line3"]
]
gridTemplateColumns <|
trackList [ fixedRepeat (num 4) [px 520] ]
gridTemplateColumns <|
autoTrackList
( minmax (px 210) maxContent )
[ autoRepeat autoFill [px 200]
, pct 20
]Provides structured input for gridTemplate for
inputting rows and columns, equivalent to inputting gridTemplateRows
and [gridTemplateColumns] separately.
gridTemplate <|
templateRowsColumns
trackList
( lineNames ["line1", "line2"] )
[ px 300
, lineNames ["line3"]
]
autoTrackList
( minmax (px 210) maxContent )
[ autoRepeat autoFill [px 200]
, pct 20
]Provides structured input for gridTemplate for
inputting areas combined with rows, and then columns.
gridTemplate <|
templateAreasRowsColumns
[ templateAreaRow
( Just <| lineNames ["left"] )
"nav foot"
( Just <| px 30 )
( Just <| lineNames ["right"])
]
( Just <| templateColumns
( px 120 )
[ fr 120
]
)The portion of a possible way of giving a
gridTemplate`a value that sets rows and areas.
gridTemplate <|
templateAreasRowsColumns
[ templateAreaRow
( Just <| lineNames ["header-left"] )
"head head"
( Just <| px 30 )
( Just <| lineNames ["header-right"] )
, templateAreaRow
( Just <| lineNames ["main-left"] )
"nav main"
( Just <| fr 1 )
( Just <| lineNames ["main-right"])
, templateAreaRow
( Just <| lineNames ["footer-left"] )
"nav foot"
( Just <| px 30 )
( Just <| lineNames ["footer-right"])
]
( Just <| templateColumns
( px 120 )
[ fr 120
]
)The portion of a possible way of giving a
gridTemplate`a value that sets columns.
The first value is the head of the list. This function is structured in this way to prevent giving empty lists.
gridTemplate <|
templateAreasRowsColumns
[ templateAreaRow
( Just <| lineNames ["left"] )
"nav foot"
( Just <| px 30 )
( Just <| lineNames ["right"])
]
( Just <| templateColumns
( px 120 )
[ fr 120
]
)Creates a <track-list> value for use in creating grid tempolates.
gridTemplateColumns <|
trackList [ fixedRepeat (num 4) [px 520] ]Creates a <auto-track-list> value for use in creating grid templates.
gridTemplateColumns <|
autoTrackList
( minmax (px 210) maxContent )
[ autoRepeat autoFill [px 200]
, pct 20
]Performs the repeat() function used in CSS Grid track lists. This lets you
repeat a pattern of grid lines in CSS Grid without duplicating code.
This is the fixed variant of the repeat() function. In this variant, you must
specify a num before specifying the track list pattern you want to repeat.
gridTemplate <|
templateRowsColumns
( trackList
( lineNames ["line1", "line2"] )
[ px 300
, lineNames ["line3"]
]
)
( autoTrackList
( minmax (px 210) maxContent )
[ autoRepeat autoFill [px 200]
, pct 20
]
)Performs the repeat() function used in CSS Grid track lists. This lets you
repeat a pattern of grid lines in CSS Grid without duplicating code.
You must specify a autoFit, or autoFill before specifying the track
list pattern you want to repeat.
gridTemplateRows <|
autoTrackList
[ lineNames ["linename1"]
, px 100
, lineNames ["linename2"]
, autoRepeat autoFit
(px 10)
[ lineNames["row-start"]
, px 250
, lineNames["row-end"]
]
, px 100
]The auto-fill value used in the repeat() function.
gridTemplateColumnsList
[ minmax (px 210) maxContent
, repeatedTracks autoFill [px 200]
, pct 20
](Note: due to a naming conflict, the repeat() function is
called repeatedTracks in this package.)
The auto-fit value used in the repeat() function.
gridTemplateColumnsList
[ minmax (px 210) maxContent
, repeatedTracks autoFit [px 200]
, pct 20
](Note: due to a naming conflict, the repeat() function is
called repeatedTracks in this package.)
Custom ident(s) that are only used in grid area definitions, for naming lines of a grid layout. A line may have multiple names.
Line names are case sensitive.
gridTemplateColumnsList
[ lineNames["line1", "line2"]
, px 300
, lineNames["line3"]
]
--- grid-template-colums: [line1 line2] 300px [line3];The dense value for the grid-auto-flow property.
gridAutoFlow dense
gridAutoFlow2 row denseSets the gap property.
The gap property is a shorthand for setting row-gap and column-gap
in a single declaration.
gap specifies the size of spacing between items within grid, flex
and multi-column layouts.
gap initial
gap (px 20) -- 20px gap between all items.
gap2 (px 20) (px 40) -- 20px row gap, 40px column gap.Sets the gap property.
The gap property is a shorthand for setting row-gap and column-gap
in a single declaration.
gap specifies the size of spacing between items within grid, flex
and multi-column layouts.
gap2 (px 20) (px 40) -- 20px row gap, 40px column gap.Sets the row-gap property.
row-gap specifies the size of spacing between rows of items within grid, flex
and multi-column layouts.
rowGap normal
rowGap (px 20)Sets the column-gap property.
column-gap specifies the size of spacing between column of items within grid, flex
and multi-column layouts.
columnGap normal
columnGap (px 20)Sets background-color.
backgroundColor (hex "#60b5cc")
backgroundColor (rgb 96 181 204)
backgroundColor (rgba 96 181 204 0.5)
backgroundColor transparentSets background-attachment.
backgroundAttachment local
backgroundAttachmentMany [ fixed, scroll, fixed ]
backgroundAttachmentMany [ fixed, scroll, fixed ]
backgroundAttachmentMany [] -- background-attachment: unset;Sets background-attachment.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
backgroundAttachment local
backgroundAttachmentMany [ fixed, scroll, fixed ]
backgroundAttachmentMany [ fixed, scroll, fixed ]
backgroundAttachmentMany [] -- background-attachment: unset;The local background-attachment value
backgroundAttachment localSets background-blend-mode.
Note that this takes an argument of color_, not color!
backgroundBlendMode color_
backgroundBlendMode darken
backgroundBlendMode colorBurn
backgroundBlendModeMany [ darken, color_ ]
backgroundBlendModeMany [] -- background-blend-mode: unset;Sets background-blend-mode.
Note that this takes an argument of color_, not color!
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
backgroundBlendMode color_
backgroundBlendMode darken
backgroundBlendMode colorBurn
backgroundBlendModeMany [ darken, color_ ]
backgroundBlendModeMany [] -- background-blend-mode: unset;The multiply background-blend-mode value
backgroundBlendMode multiplyThe screen background-blend-mode value
backgroundBlendMode screenThe overlay background-blend-mode value
backgroundBlendMode overlayThe darken background-blend-mode value
backgroundBlendMode darkenThe lighten background-blend-mode value
backgroundBlendMode lightenThe color-dodge background-blend-mode value
backgroundBlendMode color - colorDodgeThe color-burn background-blend-mode value
backgroundBlendMode colorBurnThe hard-light background-blend-mode value
backgroundBlendMode hardLightThe soft-light background-blend-mode value
backgroundBlendMode softLightThe difference background-blend-mode value
backgroundBlendMode differenceThe exclusion background-blend-mode value
backgroundBlendMode exclusionThe hue background-blend-mode value
backgroundBlendMode hueThe saturation background-blend-mode value
backgroundBlendMode saturationThe luminosity background-blend-mode value
backgroundBlendMode luminositySets background-clip.
Note that this takes an argument of text, not color!
backgroundClip text
backgroundClip paddingBox
backgroundClip contentBox
backgroundClipMany [ text, borderBox, text ]
backgroundClipMany [] -- background-clip: unset;Sets background-clip.
Note that this takes an argument of text, not color!
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
backgroundClip text
backgroundClip paddingBox
backgroundClip contentBox
backgroundClipMany [ text, borderBox, text ]
backgroundClipMany [] -- background-clip: unset;Sets background-origin.
backgroundOrigin paddingBox
backgroundOrigin contentBox
backgroundOriginMany [ contentBox, borderBox, contentBox ]
backgroundOriginMany [] -- background-origin: unset;Sets background-origin.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
backgroundOrigin paddingBox
backgroundOrigin contentBox
backgroundOriginMany [ contentBox, borderBox, contentBox ]
backgroundOriginMany [] -- background-origin: unset;Sets background-image.
backgroundImage (url "http://www.example.com/chicken.jpg")
backgroundImage (linearGradient (stop red) (stop blue))See also backgroundImages if you need multiple images.
Sets background-image for multiple images.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
backgroundImageMany
(linearGradient (stop red) (stop blue))
[ url "http://www.example.com/chicken.jpg" ]
backgroundImageMany [] -- background-image: unset;See also backgroundImage if you need only one.
Sets background-position.
backgroundPosition left_
backgroundPosition (px 45)backgroundPosition sets the horizontal direction. If you need the vertical
direction instead, use backgroundPosition2 like this:
backgroundPosition2 zero (px 45)If you need to set the offsets from the right or bottom, use
backgroundPosition4 like this:
backgroundPosition4 right_ (px 20) bottom_ (pct 30)Sets background-position.
backgroundPosition2 left_ top_
backgroundPosition2 (px 45) (pct 50)backgroundPosition2 sets both the horizontal and vertical directions (in that
order, same as CSS.) If you need only the horizontal, you can use
backgroundPosition instead:
backgroundPosition left_If you need to set the offsets from the right or bottom, use
backgroundPosition4.
Sets background-position.
backgroundPosition3 right_ (px 20) centerThe three-argument form of background position sets one side to center and the other to the specified offest. So the example above would position the background image 20px from the right, and center it vertically.
Sets background-position.
backgroundPosition4 right_ (px 20) bottom_ (pct 30)The four-argument form of background position alternates sides and offets. So the example above would position the background image 20px from the right, and 30% from the bottom.
See also backgroundPosition for horizontal alignment and
backgroundPosition2 for horizontal (from left) and
vertical (from top) alignment.
Sets background-repeat
backgroundRepeat repeat
backgroundRepeat repeatXIf you need to set horizontal and vertical direction separately, see
backgroundRepeat2
Sets background-repeat along the horizontal axis, then the vertical axis.
backgroundRepeat2 repeat space
backgroundRepeat2 space roundIf you only need to set one value for both, see
backgroundRepeat instead.
Sets background-size.
backgroundSize cover
backgroundSize (px 400)If you give a length value, it will be used for the width. The height will be set
proportional to the size of the background-image. If you
need to set both width and height explicitly, use
backgroundImage2 instead.
Sets background-size for both width and height (in that order.)
backgroundSize2 (px 300) (px 100)
backgroundSize2 auto (px 400)If you only want to set the width, use backgroundImage instead.
Sets font-size
fontSize xxSmall
fontSize (px 12)Check out fluid typography for some cool stuff you can do with this.
The xx-small font-size value.
fontSize xxSmallThe x-small font-size value.
fontSize xSmallThe small font-size value.
fontSize smallThe medium value used by properties such as fontSize,
borderWidth,
columnRuleWidth.
fontSize medium
borderWidth medium
columnRuleWidth mediumThe value is equivalent of 3px when using for border-width.
The large font-size value.
fontSize largeThe x-large font-size value.
fontSize xLargeThe xx-large font-size value.
fontSize xxLargeThe xxx-large font-size value.
fontSize xxxLargeThe smaller font-size value.
fontSize smallerThe larger font-size value.
fontSize largerSets font-size-adjust
fontSizeAdjust zero
fontSizeAdjust none
fontSizeAdjust (num 0.5)Sets font-display
fontDisplay auto
fontDisplay block
fontDisplay swap
fontDisplay fallback
fontDisplay optionalSets fallback value for usage with fontDisplay or strokeLinejoin.
fontDisplay fallback
strokeLinejoin2 miter fallbackSets swap value for usage with fontDisplay.
fontDisplay swapSets optional value for usage with fontDisplay.
fontDisplay optionalFor when your font is one of the six generic font family names - serif, sansSerif, monospace, cursive, fantasy, or systemUi.
If you want to refer to a font by its name (like Helvetica or Arial), use fontFamilyMany instead.
Define multiple font families.
Per the CSS spec, a generic name must always be at the end of this list. (The generic names are serif, sansSerif, monospace, cursive or fantasy.)
fontFamilyMany [ "Gill Sans Extrabold", "Helvetica", "Arial" ] sansSerifThis function will automatically wrap each font family in quotation marks unless it is one of the six [generic names]((https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#%3Cgeneric-name%3E)) (like sans-serif), which must never be quoted.
The serif generic font family name.
fontFamily serif
fontFamilyMany [ "Gill Sans", "Helvetica" ] serifThis can be used with fontFamily and fontFamilyMany.
The sans-serif generic font family name.
fontFamily sansSerif
fontFamilyMany [ "Georgia", "Times" ] sansSerifThis can be used with fontFamily and fontFamilyMany.
The monospace generic font family name.
fontFamily monospace
fontFamilyMany [ "Source Code Pro", "Lucida Console" ] monospaceThis can be used with fontFamily and fontFamilyMany.
The cursive generic font family name.
fontFamily cursive
fontFamilyMany [ "Brush Script Std", "Lucida Calligraphy" ] cursiveThis can be used with fontFamily and fontFamilyMany.
The fantasy generic font family name.
fontFamily fantasy
fontFamilyMany [ "Herculanum", "Harrington" ] fantasyThis can be used with fontFamily and fontFamilyMany.
The system-ui generic font family name.
You may want to read more about the system font stack before using this one.
fontFamily systemUi
fontFamilyMany [ "", "Segoe UI" ] systemUi
fontFamilyMany [ "system-ui", "Segoe UI", "Roboto", "Helvetica", "Arial", "sans-serif", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" ] sansSerifThis can be used with fontFamily and fontFamilyMany.
The ui-serif generic font family name.
fontFamily uiSerif
fontFamilyMany [ "New York" ] uiSerifThis can be used with fontFamily and fontFamilyMany.
The ui-sans-serif generic font family name.
fontFamily uiSansSerifThis can be used with fontFamily and fontFamilyMany.
The ui-monospace generic font family name.
fontFamily uiMonospaceThis can be used with fontFamily and fontFamilyMany.
The ui-rounded generic font family name.
fontFamily uiRoundedThis can be used with fontFamily and fontFamilyMany.
The math generic font family name.
fontFamily mathThis can be used with fontFamily and fontFamilyMany.
The fangsong generic font family name.
fontFamily fangsongThis can be used with fontFamily and fontFamilyMany.
Sets color.
color (hex "#60b5cc")
color (rgb 96 181 204)
color (rgba 96 181 204 0.5)Sets font-style
fontStyle italicSets font-weight
fontWeight bold
fontWeight (int 300)Sets font-stretch
fontStretch ultraCondensed
fontStretch extraCondensed
fontStretch condensed
fontStretch semiCondensed
fontStretch normal
fontStretch semiExpanded
fontStretch expanded
fontStretch extraExpanded
fontStretch ultraExpanded
fontStretch (pct 100)Sets ultra-condensed value for usage with fontStretch.
fontDisplay ultraCondensedSets extra-condensed value for usage with fontStretch.
fontDisplay extraCondensedSets condensed value for usage with fontStretch.
fontDisplay CondensedSets semi-condensed value for usage with fontStretch.
fontDisplay semiCondensedSets semi-expanded value for usage with fontStretch.
fontDisplay semiExpandedSets expanded value for usage with fontStretch.
fontDisplay ExpandedSets extra-expanded value for usage with fontStretch.
fontDisplay extraExpandedSets ultra-expanded value for usage with fontStretch.
fontDisplay ultraExpandedThe font-synthesis property.
fontSynthesis none
fontSynthesis smallCaps
fontSynthesis2 smallCaps weight
fontSynthesis3 weight style smallCapsThe font-synthesis property.
This is the two-argument variant, in which you can indicate two different font properties to be synthesised by the browser.
fontSynthesis2 smallCaps weightThe font-synthesis property.
This is the three-argument variant, in which you can indicate all three different font properties to be synthesised by the browser.
fontSynthesis3 weight style smallCapsThe weight value for the fontSynthesis property.
fontSynthesis weightThe 1-argument variant of the font-variation-settings
property.
For controlling aspects of variable fonts.
Use fontVariationSettingsMany to work with variable font tags.
fontVariationSettings normal
fontVariationSettings inherit
fontVariationSettingsMany [ ("XHGT", 0.7) ]The multi-argument variant of the font-variation-settings
property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
For using single keywords with this property, use fontVariationSettings.
fontVariationSettingsMany [ ("XHGT", 0.7) ]
fontVariationSettingsMany [] -- font-variation-settings: unset;fontFeatureSettings normal
fontFeatureSettings (featureTag "liga")
fontFeatureSettings (featureTag2 "swsh" 2)Sets font-feature-settings
in a way that lets you add a list of featureTags.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
fontFeatureSettingsMany featureTag "liga" [ featureTag2 "swsh" 2 ]
fontFeatureSettingsMany [] -- font-feature-settings: unset;Creates a feature-tag-value
for use with fontFeatureSettings
and fontFeatureSettingsMany
featureTag "smcp"Creates a feature-tag-value
with an specific value
for use with fontFeatureSettings
and fontFeatureSettingsMany
featureTag2 "swsh" 2A type that encapsulates all special font variant keywords plus additional types.
A type that encapsulates all special font variant keywords.
The font-variant
CSS property.
This is a shorthand property, encapsulating the following:
fontVariantCapsfontVariantEastAsianfontVariantLigaturesfontVariantNumericfontVariantEmojifontVariantPositionfontVariant inherit
fontVariant normal
fontVariant jis83
fontVariant2 commonLigatures smallCaps
fontVariant2 noCommonLigatures slashedZeroThe font-variant
CSS property.
This is a shorthand property, encapsulating the following:
fontVariantCapsfontVariantEastAsianfontVariantLigaturesfontVariantNumericfontVariantEmojifontVariantPositionfontVariant inherit
fontVariant normal
fontVariant jis83
fontVariant2 commonLigatures smallCaps
fontVariant2 noCommonLigatures slashedZeroA type that encapsulates all caps font variant keywords plus additional types.
Sets font-variant-caps.
fontVariantCaps normal
fontVariantCaps smallCaps
fontVariantCaps allSmallCaps
fontVariantCaps petiteCaps
fontVariantCaps allPetiteCaps
fontVariantCaps unicase
fontVariantCaps titlingCapsThe small-caps value used in
fontVariantCaps smallCaps
fontSynthesis2 smallCaps styleThe all-small-caps font-variant-caps value.
fontVariantCaps allSmallCapsThe petite-caps font-variant-caps value.
fontVariantCaps petiteCapsThe all-petite-caps font-variant-caps value.
fontVariantCaps allPetiteCapsThe unicase font-variant-caps value.
fontVariantCaps unicaseThe titling-caps font-variant-caps value.
fontVariantCaps titlingCapsA type that encapsulates all east asian font variant keywords plus additional types.
A type that encapsulates all east asian font variant keywords.
The font-variant-east-asian property.
This property controls the use of alternative glyphs for East Asian scripts.
fontVariantEastAsian normal
fontVariantEastAsian2 ruby jis83
fontVariantEastAsian3 ruby jis90 fullWidthThe font-variant-east-asian property.
This property controls the use of alternative glyphs for East Asian scripts.
fontVariantEastAsian2 ruby jis83The font-variant-east-asian property.
This property controls the use of alternative glyphs for East Asian scripts.
fontVariantEastAsian3 ruby jis90 fullWidthSets the jis78 value for fontVariantEastAsian.
This specifies that the JIS X 0208:1978 standard for East Asian logographic glyphs should be used.
fontVariantEastAsian jis78Sets the jis83 value for fontVariantEastAsian.
This specifies that the JIS X 0208:1983 standard for East Asian logographic glyphs should be used.
fontVariantEastAsian jis83Sets the jis90 value for fontVariantEastAsian.
This specifies that the JIS X 0208:1990 standard for East Asian logographic glyphs should be used.
fontVariantEastAsian jis90Sets the jis04 value for fontVariantEastAsian.
This specifies that the JIS X 0208:2004 standard for East Asian logographic glyphs should be used.
fontVariantEastAsian jis04Sets the simplified value for fontVariantEastAsian.
This specifies that no particular standard should be used for East Asian logographic glyphs apart from them being simplified Chinese glyphs.
fontVariantEastAsian simplifiedSets the traditional value for fontVariantEastAsian.
This specifies that no particular standard should be used for East Asian logographic glyphs apart from them being traditional Chinese glyphs.
fontVariantEastAsian traditionalSets the proportional-width value for fontVariantEastAsian.
This activates the East Asian characters that vary in width.
(As opposed to fullWidth, which specifies that they should roughly be the same width.)
fontVariantEastAsian proportionalWidthA type that encapsulates all ligature font variant keywords plus additional types.
Sets font-variant-ligatures.
fontVariantLigatures discretionaryLigatures
fontVariantLigatures noneThe common-ligatures font-variant-ligatures value.
fontVariantLigatures commonLigaturesThe no-common-ligatures font-variant-ligatures value.
fontVariantLigatures noCommonLigaturesThe discretionary-ligatures font-variant-ligatures value.
fontVariantLigatures discretionaryLigaturesThe no-discretionary-ligatures font-variant-ligatures value.
fontVariantLigatures noDiscretionaryLigaturesThe historical-ligatures font-variant-ligatures value.
fontVariantLigatures historicalLigaturesThe no-historical-ligatures font-variant-ligatures value.
fontVariantLigatures noHistoricalLigaturesThe contextual font-variant-ligatures value.
fontVariantLigatures contextualThe no-contextual font-variant-ligatures value.
fontVariantLigatures noContextualA type that encapsulates all numeric font variant keywords plus additional types.
A type that encapsulates all numeric font variant keywords.
Sets font-variant-numeric.
fontVariantNumeric ordinal
fontVariantNumericMany [ slashedZero liningNums ]Sets font-variant-numeric.
This one can be tricky to use because many of the options are mutually exclusive.
For example, normal cannot be used with any of the others, so the only way
to get it from this function is to pass Nothing for everything. The other
arguments are chosen such that you can choose between the mutually exclusive
values, or leave that value off.
fontVariantNumeric ordinal
fontVariantNumeric4 Nothing Nothing Nothing Nothing -- "normal"
fontVariantNumeric4
(Just ordinal)
Nothing
(Just tabularNums)
Nothing
-- "ordinal tabular-nums"The ordinal font-variant-numeric value.
fontVariantNumeric ordinalThe slashed-zero font-variant-numeric value.
fontVariantNumeric slashedZeroThe lining-nums font-variant-numeric value.
fontVariantNumeric liningNumsThe oldstyle-nums font-variant-numeric value.
fontVariantNumeric oldstyleNumsThe proportional-nums font-variant-numeric value.
fontVariantNumeric proportionalNumsThe tabular-nums font-variant-numeric value.
fontVariantNumeric tabularNumsThe diagonal-fractions font-variant-numeric value.
fontVariantNumeric diagonalFractionsThe stacked-fractions font-variant-numeric value.
fontVariantNumeric stackedFractionsA type that encapsulates all emoji font variant keywords plus additional types.
The font-variant-emoji
property.
fontVariantEmoji unset
fontVariantEmoji emoji
fontVariantEmoji normalThe emoji value used with fontFamily, fontFamilyMany and fontVariantEmoji.
fontFamily emoji
fontVariantEmoji emojiThe unicode value used with fontVariantEmoji.
fontVariantEmoji unicodeA type that encapsulates all position font variant keywords plus additional types.
The font-variant-position property.
fontVariantPosition sub
fontVariantPosition normalThe font-kerning property.
fontKerning noneThe font-language-override property.
fontLanguageOverride normal
fontLanguageOverride (string "ENG")The font-optical-sizing property.
fontOpticalSizing noneSets line-height
lineHeight (pct 150)
lineHeight (em 2)
lineHeight (num 1.5)
lineHeight normalSets letter-spacing
letterSpacing (pct 150)
letterSpacing (em 2)
letterSpacing (num 1.5)
letterSpacing normalThe text-indent property.
textIndent (em 1.5)The text-indent property.
textIndent2 (em 1.5) hangingThe text-indent property.
textIndent3 (em 1.5) hanging eachLineThe hanging value used for properties such as textIdent2.
textIdent2 (px 20) hangingThe each-line value used for properties such as textIdent2.
textIdent2 (px 20) eachLineSets word-spacing.
wordSpacing normal
wordSpacing zero
wordSpacing (px 5)Sets tab-size
Note: only positive integer values are allowed.
tabSize (int 4)Sets word-break
Note: breakWord has been depreciated.
wordBreak normal
wordBreak breakAll
wordBreak keepAll
wordBreak breakWordA breakAll value for the word-break property.
wordBreak breakAllA keepAll value for the word-break property.
wordBreak keepAllSets the lineBreak property.
lineBreak auto
lineBreak strictSets loose value for usage with lineBreak.
lineBreak looseSets white-space
whiteSpace pre
whiteSpace nowrap
whiteSpace preWrap
whiteSpace preLineA pre value for the white-space property.
whiteSpace preA pre-wrap value for the white-space property.
whiteSpace preWrapA pre-line value for the white-space property.
whiteSpace preLineSets the text-overflow property.
text-overflow describes how text that gets cut off is signalled to users.
When the one-argument version is used, it sets the end of text (right end for LTR users) that is cut off.
textOverflow ellipsisWhen the two-argument version is used, it specifies how the text cut-off is displayed at the start (left in LTR) and the end (right in LTR) of the text.
textOverflow2 ellipsis ellipsisSets the text-overflow property.
text-overflow describes how text that gets cut off is signalled to users.
This version specifies how the text cut-off is displayed at the start (left in LTR) and at the end (right in LTR) of the text.
textOverflow2 ellipsis ellipsisSets ellipsis value for usage with textOverflow.
textOverflow ellipsisSets hyphens
hyphens none
hyphens manual
hyphens autoSets manual value for usage with hyphens.
hyphens manualSets hanging-punctuation
hangingPunctuation none
hangingPunctuation first_
hangingPunctuation2 first_ forceEnd
hangingPunctuation3 first_ allowEnd lastSets hanging-punctuation
first_ first_, last first and last last are invalid combinations.
hangingPunctuation2 first_ forceEndSets hanging-punctuation
hangingPunctuation3 first_ allowEnd lastSets first value for usage with hangingPunctuation.
hangingPunctuation first_This is called first_ instead of first because
first is already a pseudo-class function.
Sets last value for usage with hangingPunctuation.
hangingPunctuation lastSets force-end value for usage with hangingPunctuation.
hangingPunctuation forceEndSets allow-end value for usage with hangingPunctuation.
hangingPunctuation allowEndSets text-decoration shorthand property.
textDecoration underlineSets text-decoration property.
textDecoration2 underline dottedSets text-decoration property.
textDecoration3 underline dotted (hex "#cf0")Sets text-decoration-line property.
textDecorationLine underlineSets text-decoration-line property.
textDecorationLine2 underline overlineNote: The first and second argument MUST NOT be the same.
Sets text-decoration-line property.
textDecorationLine3 underline overline lineThroughSets text-decoration-style property.
textDecorationStyle wavyThe wavy text-decoration-style value.
textDecorationStyle wavyThe underline text-decoration-line value.
textDecorationLine underlineThe overline text-decoration-line value.
textDecorationLine overlineThe line-through text-decoration-line value.
textDecorationLine lineThroughSets text-decoration-color property.
textDecorationColor (hex "#0cf")Sets the transparent value for usage with textDecorationColor.
textDecorationColor transparentSets the text-decoration-thickness property.
textDecorationThickness (pct 10)Sets the from-font value for usage with textDecorationThickness.
textDecorationThickness fromFontSets text-decoration-skip-ink property.
textDecorationSkipInk auto
textDecorationSkipInk all_
textDecorationSkipInk nonetextUnderlinePosition auto
textUnderlinePosition under
textUnderlinePosition left_
textUnderlinePosition right_textUnderlinePosition2 under left_
textUnderlinePosition2 under right_Sets the text-underline-offset property.
textUnderlineOffset (pct 5)Sets the text-emphasis property.
This is for drawing attention towards textual elements in a way that is commonly used in East Asian languages.
String values should only be one character in length.
textEmphasis (hex "ff0000")
textEmphasis sesame
textEmphasis2 triangle (hex "00ff00")
textEmphasis3 filled dot (hex "ff0000")Sets the text-emphasis property.
This 2-argument form sets textEmphasisStyle and textEmphasisColor in a single declaration.
String values should only be one character in length.
textEmphasis (hex "ff0000")
textEmphasis sesame
textEmphasis2 triangle (hex "00ff00")
textEmphasis3 filled dot (hex "ff0000")Sets the text-emphasis property.
This 3-argument form sets textEmphasisStyle2 and a textEmphasisColor in a single declaration.
textEmphasis (hex "ff0000")
textEmphasis sesame
textEmphasis2 triangle (hex "00ff00")
textEmphasis3 filled dot (hex "ff0000")Sets the text-emphasis-style property.
String values should only be one character in length.
textEmphasisStyle none
textEmphasisStyle open
textEmphasisStyle (string "🐯")Sets the text-emphasis-style property when you want to use two arguments - one for filled or open, and one for the shape style.
textEmphasisStyle filled sesame
textEmphasisStyle open dotSets the text-emphasis-color property.
textEmphasisColor currentcolor
textEmphasisColor (hex "0000ff")
textEmphasisColor transparentSets the text-emphasis-position property.
This is the one argument version, which is limited to setting global values.
If you want to specify the positions of the text-emphasis, you must use the 2-argument form.
textEmphasisPosition inherit
textEmphasisPosition revert
textEmphasisPosition2 over left_
textEmphasisPosition2 under right_Sets the the text-emphasis-position property.
This is the 2-argument form that lets you specify the positions of the emphasis.
if you want to apply global values, you must use the 1-argument form.
textEmphasisPosition inherit
textEmphasisPosition revert
textEmphasisPosition2 over left_
textEmphasisPosition2 under right_The filled value used in textEmphasis.
textEmphasis filledThe open value used in textEmphasis.
textEmphasis openThe dot value used in textEmphasis.
textEmphasis dotThe doubleCircle value used in textEmphasis.
textEmphasis doubleCircleThe triangle value used in textEmphasis.
textEmphasis triangleThe sesame value used in textEmphasis.
textEmphasis sesameThe over value used in textEmphasisPosition2.
textEmphasisPosition2 over left_Sets text-transform.
textTransform capitalize
textTransform uppercaseA capitalize value for the text-transform property.
textTransform capitalizeAn uppercase value for the text-transform property.
textTransform uppercaseA lowercase value for the text-transform property.
textTransform lowercaseThe full-size-kana value used by textTransform
textTransform fullSizeKana
Sets text-align
textAlign left_
textAlign justfyA justify value for the text-align
textAlign justifySets text-justify
textJustify interWord
textJustify interCharacter
textJustify auto
textJustify noneA inter-word value for the textJustify property.
textJustify interWordA inter-character value for the textJustify property.
textJustify interCharacterSets direction
direction ltr
direction rtlSets writing-mode.
writingMode horizontalTb
writingMode verticalRl
writingMode verticalLrSets vertical-lr value for usage with writingMode.
writingMode verticalLrSets vertical-rl value for usage with writingMode.
writingMode verticalRlSets horizontal-tb value for usage with writingMode.
writingMode horizontalTbSets unicode-bidi
unicodeBidi normal
unicodeBidi embed
unicodeBidi isolate
unicodeBidi bidiOverride
unicodeBidi isolateOverride
unicodeBidi plaintextSets embed value for usage with unicodeBidi.
unicodeBidi embedSets plaintext value for usage with unicodeBidi.
unicodeBidi plaintextSets bidi-override value for usage with unicodeBidi.
unicodeBidi bidiOverrideSets isolate-override value for usage with unicodeBidi.
unicodeBidi isolateOverrideSets text-orientation.
textOrientation sideways
textOrientation uprightA mixed value for the
textOrientation property.
textOrientation mixedA sideways value for the
textOrientation property.
textOrientation sidewaysA sideways-right value for the
textOrientation property.
textOrientation sidewaysRightA upright value for the
textOrientation property.
textOrientation uprightA use-glyph-orientation value for the
textOrientation property.
textOrientation useGlyphOrientationSets the quotes property.
This one-argument version can only use keyword or global values.
quotes none
quotes inherit
quotes2 (string "\"") (string "\"")
quotes4 (string "\"") (string "\"") (string "'") (string "'")Sets the quotes property.
This 2-argument version sets the starting and closing quotation marks for a top-level quote (a quote that is not nested within another quote). It only accepts string values.
quotes auto
quotes2 (string "\"") (string "\"") -- "Hey, this is a first-level quote."
quotes2 (string "'") (string "'") -- 'Hey, this is a first-level quote.'
quotes2 (string "«") (string "»") -- «Hey, this is a first-level quote.»Sets the quotes property.
This 4-argument version sets the starting and closing quotation marks for both a top-level quote and a nested quote. It only accepts string values.
quotes auto
quotes2 (string "\"") (string "\"")
-- "Hey, this is a first-level quote."
quotes4 (string "\"") (string "\"") (string "\'") (string "\'")
{- "Hey, this is a first-level quote.
'And this is someone else I made up for
a second-level quote!' Yeah, I did that!"
-}
quotes4 (string "«") (string "»") (string "👏") (string "🤔")
{- «Hey, this is a first-level quote.
👏And this is something else I made up for
a second-level quote!🤔 Yeah, I did that!»
-}Sets text-rendering.
textRendering geometricPrecision
textRendering optimizeSpeedA geometricPrecision value for the text-rendering property.
textRendering geometricPrecisionAn optimizeLegibility value for the text-rendering property.
textRendering optimizeLegibilityAn optimizeSpeed value for the text-rendering property.
textRendering optimizeSpeedSets user-select
userSelect none
userSelect auto
userSelect text
userSelect contain_
userSelect all_Sets speak
speak none
speak normal
speak spellOutSets spellOut value for usage with speak.
speak spellOutA type alias used to accept a list-style-type
A type alias used to accept a list-style-type among other values.
Note: The [symbols()](https://developer.mozilla.org/en-US/docs/Web/CSS/symbols()) function is not supported.
Use property instead.
The list-style shorthand property.
listStyle lowerAlpha
listStyle outside
listStyle (url "https://example.com")The list-style shorthand property.
listStlye2 lowerAlpha insideFor other combinations of two values please use the dedicated functions:
listStyleType,
listStlyePosition,
and listStyleImage
The list-style shorthand property.
listStyle3 arabic outside (url "https://example.com")The list-style-position property
listStylePosition inside
listStylePosition outsideThe inside value used for properties such as list-style-position,
and listStyle.
listStylePosition insideThe inside value used for properties such as list-style-position,
and listStyle.
listStylePosition outsideThe list-style-type property.
listStyleType decimalLeadingZeroThe list-style-image property.
listStyleImage (url "https://example.com")The arabic-indic value used by properties such as listStyle,
and listStyleType
listStyleType arabicIndicThe armenian value used by properties such as listStyle,
and listStyleType
listStyleType armenianThe bengali value used by properties such as listStyle,
and listStyleType
listStyleType bengaliThe cambodian value used by properties such as listStyle,
and listStyleType
listStyleType cambodianThe cjk-decimal value used by properties such as listStyle,
and listStyleType
listStyleType cjkDecimalThe cjk-earthly-branch value used by properties such as listStyle,
and listStyleType
listStyleType cjkEarthlyBranchThe cjk-heavenly-stem value used by properties such as listStyle,
and listStyleType
listStyleType cjkHeavenlyStemThe cjk-ideographic value used by properties such as listStyle,
and listStyleType
listStyleType cjkIdeographicThe decimal value used by properties such as listStyle,
and listStyleType
listStyleType decimalThe decimal-leading-zero value used by properties such as listStyle,
and listStyleType
listStyleType decimalLeadingZeroThe devanagari value used by properties such as listStyle,
and listStyleType
listStyleType devanagariThe disclosure-closed value used by properties such as listStyle,
and listStyleType
listStyleType disclosureClosedThe disclosure-open value used by properties such as listStyle,
and listStyleType
listStyleType disclosureOpenThe disc value used by properties such as listStyle,
and listStyleType
listStyleType discThe ethiopic-numeric value used by properties such as listStyle,
and listStyleType
listStyleType ethiopicNumericThe georgian value used by properties such as listStyle,
and listStyleType
listStyleType georgianThe gujarati value used by properties such as listStyle,
and listStyleType
listStyleType gujaratiThe gurmukhi value used by properties such as listStyle,
and listStyleType
listStyleType gurmukhiThe hebrew value used by properties such as listStyle,
and listStyleType
listStyleType hebrewThe hiragana value used by properties such as listStyle,
and listStyleType
listStyleType hiraganaThe hiragana-iroha value used by properties such as listStyle,
and listStyleType
listStyleType hiraganaIrohaThe japanese-formal value used by properties such as listStyle,
and listStyleType
listStyleType japaneseFormalThe japanese-informal value used by properties such as listStyle,
and listStyleType
listStyleType japaneseInformalThe kannada value used by properties such as listStyle,
and listStyleType
listStyleType kannadaThe katakana value used by properties such as listStyle,
and listStyleType
listStyleType katakanaThe katakana-iroha value used by properties such as listStyle,
and listStyleType
listStyleType katakanaIrohaThe khmer value used by properties such as listStyle,
and listStyleType
listStyleType khmerThe korean-hangul-formal value used by properties such as listStyle,
and listStyleType
listStyleType koreanHangulFormalThe korean-hanja-formal value used by properties such as listStyle,
and listStyleType
listStyleType koreanHanjaFormalThe korean-hanja-informal value used by properties such as listStyle,
and listStyleType
listStyleType koreanHanjaInformalThe lao value used by properties such as listStyle,
and listStyleType
listStyleType laoThe lower-alpha value used by properties such as listStyle,
and listStyleType
listStyleType lowerAlphaThe lower-armenian value used by properties such as listStyle,
and listStyleType
listStyleType lowerArmenianThe lower-greek value used by properties such as listStyle,
and listStyleType
listStyleType lowerGreekThe lower-latin value used by properties such as listStyle,
and listStyleType
listStyleType lowerLatinThe lower-roman value used by properties such as listStyle,
and listStyleType
listStyleType lowerRomanThe malayalam value used by properties such as listStyle,
and listStyleType
listStyleType malayalamThe monogolian value used by properties such as listStyle,
and listStyleType
listStyleType monogolianThe myanmar value used by properties such as listStyle,
and listStyleType
listStyleType myanmarThe oriya value used by properties such as listStyle,
and listStyleType
listStyleType oriyaThe persian value used by properties such as listStyle,
and listStyleType
listStyleType persianThe simp-chinese-formal value used by properties such as listStyle,
and listStyleType
listStyleType simpChineseFormalThe simp-chinese-informal value used by properties such as listStyle,
and listStyleType
listStyleType simpChineseInformalThe tamil value used by properties such as listStyle,
and listStyleType
listStyleType tamilThe telugu value used by properties such as listStyle,
and listStyleType
listStyleType teluguThe thai value used by properties such as listStyle,
and listStyleType
listStyleType thaiThe tibetan value used by properties such as listStyle,
and listStyleType
listStyleType tibetanThe trad-chinese-formal value used by properties such as listStyle,
and listStyleType
listStyleType tradChineseFormalThe trad-chinese-informal value used by properties such as listStyle,
and listStyleType
listStyleType tradChineseInformalThe upper-alpha value used by properties such as listStyle,
and listStyleType
listStyleType upperAlphaThe upper-armenian value used by properties such as listStyle,
and listStyleType
listStyleType upperArmenianThe upper-latin value used by properties such as listStyle,
and listStyleType
listStyleType upperLatinThe upper-roman value used by properties such as listStyle,
and listStyleType
listStyleType upperRomanSets columns
columns (px 300)
columns (num 2)
columns2 (px 300) (num 2)Sets columns
columns (px 300)
columns (num 2)
columns2 (px 300) (num 2)Sets column-width
columnWidth auto
columnWidth (px 200)Sets column-count
columnCount auto
columnCount (num 3)Sets column-fill
columnFill auto
columnFill balance
columnFill balanceAllA balance value used in properties such as columnFill
columnFill balanceA balance-all value used in properties such as columnFill
columnFill balanceAllSets column-span
columnSpan all_
columnSpan noneSets column-rule.
This is a shorthand for the columnRuleWidth,
columnRuleStyle, and columnRuleColor
properties.
columnRule thin
columnRule2 thin solid
columnRule3 thin solid (hex "#000000")Sets column-rule.
This is a shorthand for the columnRuleWidth,
columnRuleStyle, and columnRuleColor
properties.
columnRule thin
columnRule2 thin solid
columnRule3 thin solid (hex "#000000")Sets column-rule.
This is a shorthand for the columnRuleWidth,
columnRuleStyle, and columnRuleColor
properties.
columnRule thin
columnRule2 thin solid
columnRule3 thin solid (hex "#000000")Sets column-rule-width
columnRuleWidth thin
columnRuleWidth (px 2)Sets column-rule-style
columnRuleStyle solid
columnRuleStyle dotted
columnRuleStyle dashedSets column-rule-color
columnRuleColor (rgb 0 0 0)
columnRuleColor (hex "#fff")Sets border-collapse.
borderCollapse collapse
borderCollapse separateA collapse value for the border-collapse and
visibility property.
borderCollapse collapse
visibility collapseA separate value for the border-separate property.
borderCollapse separateSets border-spacing.
borderSpacing zero
borderSpacing (px 5)Sets border-spacing, defining horizontal and vertical spacing separately.
borderSpacing2 (cm 1) (em 2)Sets caption-side.
captionSide top_
captionSide bottom_
captionSide blockStart
captionSide inlineEndSets empty-cells.
emptyCells show
emptyCells hideA show value for the empty-cells property.
emptyCells showA hide value for the empty-cells property.
emptyCells hideSets table-layout.
tableLayout auto
tableLayout fixedSets break-before.
breakBefore autoSets break-after.
breakAfter autoSets break-inside
breakInside auto
breakInside avoid
breakInside avoidPage
breakInside avoidColumnSets avoid value for usage with breakAfter,
breakBefore and breakInside.
breakBefore avoid
breakAfter avoid
breakInside avoidSets avoid-page value for usage with breakAfter,
breakBefore and breakInside.
breakBefore avoidPage
breakAfter avoidPage
breakInside avoidPageSets avoid-column value for usage with breakAfter,
breakBefore and breakInside.
breakBefore avoidColumn
breakAfter avoidColumn
breakInside avoidColumnSets page value for usage with breakAfter and
breakBefore.
breakBefore page
breakAfter pageSets page-break-before
This property has been depreciated and replaced with
breakBefore, but is still included for backwards
compatibility.
pageBreakBefore auto
pageBreakBefore always
pageBreakBefore avoid
pageBreakBefore left_
pageBreakBefore right_Sets page-break-after
This property has been depreciated and replaced with
breakAfter, but is still included for backwards
compatibility.
pageBreakAfter auto
pageBreakAfter always
pageBreakAfter avoid
pageBreakAfter left_
pageBreakAfter right_Sets page-break-inside
pageBreakInside auto
pageBreakInside avoidSets orphans
Note: This function accepts only positive integers.
orphans (int 2)Sets widows
Note: This function accepts only positive integers.
widows (int 2)Sets box-decoration-break
boxDecorationBreak slice
boxDecorationBreak cloneSets float.
float none
float left_
float right_
float inlineStartSets clear property.
clear none
clear both
clear left_
clear right_
clear inlineStart
clear inlineEndSets vertical-align.
verticalAlign textBottom
verticalAlign (em 1)A textTop value for the vertical-align property.
verticalAlign textTopA textBottom value for the vertical-align property.
verticalAlign textBottomA middle value for the vertical-align property.
verticalAlign middleSets object-fit
objectFit fill_
objectFit contain_
objectFit cover
objectFit scaleDown
objectFit noneSets scale-down value for usage with objectFit.
objectFit scaleDownSets object-position.
objectPosition left_
objectPosition (px 45)objectPosition sets the horizontal direction. If you need the vertical
direction instead, use objectPosition2 like this:
objectPosition zero (px 45)If you need to set the offsets from the right or bottom, use
objectPosition4 like this:
objectPosition4 right_ (px 20) bottom_ (pct 25)Sets object-position.
objectPosition2 left_ top_
objectPosition2 (px 45) (pct 50)objectPosition2 sets both the horizontal and vertical directions (in that
order, same as CSS.) If you need only the horizontal, you can use
objectPosition instead:
objectPosition left_If you need to set the offsets from the right or bottom, use
objectPosition4 like this:
objectPosition4 right_ (px 20) bottom_ (pct 25)Sets object-position.
objectPosition4 right_ (px 20) bottom_ (pct 30)The four-argument form of object position alternates sides and offets. So the example above would position the object image 20px from the right, and 30% from the bottom.
See also objectPosition for horizontal alignment and
objectPosition2 for horizontal (from left) and
vertical (from top) alignment.
Sets pointer-events
pointerEvents none
pointerEvents autoThe visiblePainted value used by pointerEvents.
pointerEvents visiblePaintedThe visibleFill value used by pointerEvents.
pointerEvents visibleFillThe visibleStroke value used by pointerEvents.
pointerEvents visibleStrokeThe painted value used by pointerEvents.
pointerEvents paintedThe touch-action
property.
touchAction auto
touchAction panY
touchAction pinchZoomThe pan-x value used by touch-action.
touchAction panXThe pan-y value used by touch-action.
touchAction panYThe pinch-zoom value used by touch-action.
touchAction pinchZoomThe manipulation value used by touch-action.
touchAction manipulationSets the
scrollbar-color property.
scrollbarColor auto
scrollbarColor (hex "f35d93")Sets the scrollbar-width property.
scrollbarWidth auto
scrollbarWidth thinThe scrollbar-gutter
property.
This 1-argument variant can accept global values and some keywords.
scrollbarGutter auto
scrollbarGutter inherit
scrollbarGutter2 stable bothEdgesThe scrollbar-gutter
property.
This 2-argument variant can only accept the keywords stable and bothEdges.
scrollbarGutter auto
scrollbarGutter inherit
scrollbarGutter2 stable bothEdgesThe stable value used by scrollbarGutter.
scrollbarGutter stableThe both-edges value used by scrollbarGutter.
scrollbarGutter2 stable bothEdgesSets scroll-behavior
scrollBehavior auto
scrollBehavior smoothSets smooth value for usage with scrollBehavior.
scrollBehavior smoothSets the overscroll-behavior property.
This property is a shorthand for setting both overscroll-behavior-x and overscroll-behavior-y.
overscrollBehavior auto -- sets both X and Y to auto
overscrollBehavior2 auto contain -- X = auto, Y = contain.Sets the overscroll-behavior property.
This property is a shorthand for setting both overscroll-behavior-x and overscroll-behavior-y.
overscrollBehavior2 auto contain_ -- X = auto, Y = contain.Sets the overscroll-behavior-x property.
overscrollBehaviorX auto
overscrollBehaviorX contain_Sets the overscroll-behavior-y property.
overscrollBehaviorY auto
overscrollBehaviorY contain_Sets the overscroll-behavior-block property.
overscrollBehaviorBlock auto
overscrollBehaviorBlock contain_Sets the overscroll-behavior-inline property.
overscrollBehaviorInline auto
overscrollBehaviorInline contain_Sets scroll-snap-type
scrollSnapType noneSets scroll-snap-type
scrollSnapType2 x mandatory
scrollSnapType2 both proximitySets scroll-snap-align
scrollSnapAlign none
scrollSnapAlign start
scrollSnapAlign center
scrollSnapAlign endSets scroll-snap-stop
scrollSnapStop normal
scrollSnapStop alwaysSets mandatory value for usage with scrollSnapType2.
scrollSnapType2 x mandatorySets proximity value for usage with scrollSnapType2.
scrollSnapType2 x proximitySets scroll-margin property.
The scrollMargin property is a shorthand property for setting
scroll-margin-top, scroll-margin-right, scroll-margin-bottom,
and scroll-margin-left in a single declaration.
If there is only one argument value, it applies to all sides. If there are two values, the top and bottom margins are set to the first value and the right and left margins are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.
scrollMargin (em 4) -- set all margins to 4em
scrollMargin2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2px
scrollMargin3 (em 4) (px 2) (pt 5) -- top = 4em, right = 2px, bottom = 5pt, left = 2px
scrollMargin4 (em 4) (px 2) (pt 5) (px 3) -- top = 4em, right = 2px, bottom = 5pt, left = 3pxSets scroll-margin property.
The scrollMargin2 property is a shorthand property for setting
scroll-margin-top, scroll-margin-right, scroll-margin-bottom,
and scroll-margin-left in a single declaration.
The top and bottom margins are set to the first value and the right and left margins are set to the second.
scrollMargin2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2pxSets scroll-margin property.
The scrollMargin3 property is a shorthand property for setting
scroll-margin-top, scroll-margin-right, scroll-margin-bottom,
and scroll-margin-left in a single declaration.
The top margin is set to the first value, the left and right are set to the second, and the bottom is set to the third.
scrollMargin3 (em 4) (px 2) (pt 5) -- top = 4em, right = 2px, bottom = 5pt, left = 2pxSets scroll-margin property.
The scrollMargin4 property is a shorthand property for setting
scroll-margin-top, scroll-margin-right, scroll-margin-bottom,
and scroll-margin-left in a single declaration.
The four values apply to the top, right, bottom, and left margins.
scrollMargin4 (em 4) (px 2) (pt 5) (px 3) -- top = 4em, right = 2px, bottom = 5pt, left = 3pxSets scroll-margin-top property.
scrollMarginTop (px 4)Sets scroll-margin-left property.
scrollMarginLeft (px 4)Sets scroll-margin-right property.
scrollMarginRight (px 4)Sets scroll-margin-bottom property.
scrollMarginBottom (px 4)Sets scroll-margin-block property.
The scrollMarginBlock property is a shorthand property for setting
scroll-margin-block-start and scroll-margin-block-end in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the block start margin is set to the first value and the block end margin is set to the second.
scrollMarginBlock (em 4) -- set both block margins to 4em
scrollMarginBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxSets scroll-margin-block property.
The scrollMarginBlock2 property is a shorthand property for setting
scroll-margin-block-start and scroll-margin-block-end in a single declaration.
The block start margin is set to the first value and the block end margin is set to the second.
scrollMarginBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxSets scroll-margin-inline property.
The scrollMarginInline property is a shorthand property for setting
scroll-margin-inline-start and scroll-margin-inline-end in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the inline start margin is set to the first value and the inline end margin is set to the second.
scrollMarginInline (em 4) -- set both inline margins to 4em
scrollMarginInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxSets scroll-margin-inline property.
The scrollMarginInline2 property is a shorthand property for setting
scroll-margin-inline-start and scroll-margin-inline-end in a single declaration.
The inline start margin is set to the first value and the inline end margin is set to the second.
scrollMarginInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxSets scroll-margin-block-start property.
scrollMarginBlockStart (px 4)Sets scroll-margin-block-end property.
scrollMarginBlockEnd (px 4)Sets scroll-margin-inline-start property.
scrollMarginInlineStart (px 4)Sets scroll-margin-inline-end property.
scrollMarginInlineEnd (px 4)Sets scroll-padding property.
The scrollPadding property is a shorthand property for setting
scroll-padding-top, scroll-padding-right, scroll-padding-bottom,
and scroll-padding-left in a single declaration.
If there is only one argument value, it applies to all sides. If there are two values, the top and bottom paddings are set to the first value and the right and left paddings are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.
scrollPadding (em 4) -- set all paddings to 4em
scrollPadding2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2px
scrollPadding3 (em 4) (px 2) (pct 5) -- top = 4em, right = 2px, bottom = 5%, left = 2px
scrollPadding4 (em 4) (px 2) (pct 5) (px 3) -- top = 4em, right = 2px, bottom = 5%, left = 3pxSets scroll-padding property.
The scrollPadding2 property is a shorthand property for setting
scroll-padding-top, scroll-padding-right, scroll-padding-bottom,
and scroll-padding-left in a single declaration.
The top and bottom margins are set to the first value and the right and left margins are set to the second.
scrollPadding2 (em 4) (px 2) -- top & bottom = 4em, right & left = 2pxSets scroll-padding property.
The scrollPadding3 property is a shorthand property for setting
scroll-padding-top, scroll-padding-right, scroll-padding-bottom,
and scroll-padding-left in a single declaration.
The top padding is set to the first value, the left and right are set to the second, and the bottom is set to the third.
scrollPadding3 (em 4) (px 2) (pct 5) -- top = 4em, right = 2px, bottom = 5%, left = 2pxSets scroll-padding property.
The scrollPadding4 property is a shorthand property for setting
scroll-padding-top, scroll-padding-right, scroll-padding-bottom,
and scroll-padding-left in a single declaration.
The four values apply to the top, right, bottom, and left paddings.
scrollPadding4 (em 4) (px 2) (pct 5) (px 3) -- top = 4em, right = 2px, bottom = 5%, left = 3pxSets scroll-padding-top property.
scrollPaddingTop (px 4)Sets scroll-padding-left property.
scrollPaddingLeft (px 4)Sets scroll-padding-right property.
scrollPaddingRight (px 4)Sets scroll-padding-bottom property.
scrollPaddingBottom (px 4)Sets scroll-padding-block property.
The scroll-padding-block property is a shorthand property for setting
scroll-padding-block-start and scroll-padding-block-end in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the block start padding is set to the first value and the block end padding is set to the second.
scrollPaddingBlock (em 4) -- set both block paddings to 4em
scrollPaddingBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxSets scroll-padding-block property.
The scroll-padding-block property is a shorthand property for setting
scroll-padding-block-start and scroll-padding-block-end in a single declaration.
The block start padding is set to the first value and the block end padding is set to the second.
scrollPaddingBlock2 (em 4) (px 2) -- block start = 4em, block end = 2pxSets scroll-padding-inline property.
The scroll-padding-inline property is a shorthand property for setting
scroll-padding-inline-start and scroll-padding-inline-end in a single declaration.
If there is only one argument value, it applies to both sides. If there are two values, the inline start padding is set to the first value and the inline end padding is set to the second.
scrollPaddingInline (em 4) -- set both inline paddings to 4em
scrollPaddingInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxSets scroll-padding-inline property.
The scroll-padding-inline property is a shorthand property for setting
scroll-padding-inline-start and scroll-padding-inline-end in a single declaration.
The inline start padding is set to the first value and the inline end padding is set to the second.
scrollPaddingInline2 (em 4) (px 2) -- inline start = 4em, inline end = 2pxSets scroll-padding-block-start property.
scrollPaddingBlockStart (px 4)Sets scroll-padding-block-end property.
scrollPaddingBlockEnd (px 4)Sets scroll-padding-inline-start property.
scrollPaddingInlineStart (px 4)Sets scroll-padding-inline-end property.
scrollPaddingInlineEnd (px 4)A type alias used for the various cursor properties
The cursor
property.
cursor2 (url "https://example.com") moveThe cursor
property.
cursor4 (url "https://example.com") (num 34) zero movetext is also a supported value for cursor.
The default value for the cursor property.
This value is called default_ instead of default because
default is already a pseudo-class function.
The context-menu value for the cursor property.
The vertical-text value for the cursor property.
The notAllowed value for the cursor property.
The nesw-resize value for the cursor property.
The nwse-resize value for the cursor property.
Sets caret-color
caretColor (hex "#60b5cc")
caretColor (rgb 96 181 204)
caretColor (rgba 96 181 204 0.5)Produces [linear-gradient()](https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient())
values used by properties such as backgroundImage,
and listStyleImage
linearGradient (stop red) (stop blue) []
linearGradient (stop red) (stop blue) [ stop green ]Produces [linear-gradient()](https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient())
values used by properties such as backgroundImage,
and listStyleImage
linearGradient2 toTop (stop red) (stop blue) []
linearGradient2 toTop (stop red) (stop blue) [ stop green ]Provides a stop for a gradient.
linearGradient (stop3 (hex "111") zero (pt 1)) (stop3 (hex "6454") (pt 2) (pct 45))Provides the to bottom side angle for gradients.
linearGradient toBottom (stop red) (stop blue) []If you want your gradient to go to a corner, use toBottomLeft or toBottomRight:
linearGradient toBottomLeft (stop red) (stop blue) []
linearGradient toBottomRight (stop red) (stop blue) []Provides the to bottom left corner angle for gradients.
linearGradient toBottomLeft (stop red) (stop blue) []If you want your gradient to go to a side, use toBottom or toLeft instead:
linearGradient toBottom (stop red) (stop blue) []
linearGradient toLeft (stop red) (stop blue) []Provides the to bottom right corner angle for gradients.
linearGradient toBottomRight (stop red) (stop blue) []If you want your gradient to go to a side, use toBottom or toRight instead:
linearGradient toBottom (stop red) (stop blue) []
linearGradient toRight (stop red) (stop blue) []Provides the to left side angle for gradients.
linearGradient toLeft (stop red) (stop blue) []If you want your gradient to go to a corner, use toTopLeft or toBottomLeft:
linearGradient toTopLeft (stop red) (stop blue) []
linearGradient toBottomLeft (stop red) (stop blue) []Provides the to right side angle for gradients.
linearGradient toRight (stop red) (stop blue) []If you want your gradient to go to a corner, use toTopRight or toBottomRight:
linearGradient toTopRight (stop red) (stop blue) []
linearGradient toBottomRight (stop red) (stop blue) []Provides the to top side angle for gradients.
linearGradient toTop (stop red) (stop blue) []If you want your gradient to go to a corner, use toTopLeft or toTopRight:
linearGradient toTopLeft (stop red) (stop blue) []
linearGradient toTopRight (stop red) (stop blue) []Provides the to top left corner angle for gradients.
linearGradient toTopLeft (stop red) (stop blue) []If you want your gradient to go to a side, use toTop or toLeft instead:
linearGradient toTop (stop red) (stop blue) []
linearGradient toLeft (stop red) (stop blue) []Provides the to top right corner angle for gradients.
linearGradient toTopRight (stop red) (stop blue) []If you want your gradient to go to a side, use toTop or toRight instead:
linearGradient toTop (stop red) (stop blue) []
linearGradient toRight (stop red) (stop blue) []Configuration for boxShadow.
The box-shadow property.
boxShadow initial
boxShadow noneFor defining shadows look at boxShadowsMany.
Sets box-shadow.
If you give an empty list, the value will be none. This is to make it impossible for it
to have no values in the output.
boxShadowMany [] -- "box-shadow: none"
-- "box-shadow: 3px 5px #aabbcc"
button
[ css
[ boxShadowMany
[ { defaultBoxShadow
| offsetX = px 3
, offsetY = px 5
, color = Just (hex "#aabbcc")
}
]
]
]
[ text "Zap!" ]Configuration for textShadow.
The text-shadow property.
boxShadow initial
boxShadow noneThis 1-argument variant is for single keyword values only.
For defining shadows look at textShadowMany.
Sets text-shadow.
This multi-argument variant is for defining shadows only.
For single keyword values, look at textShadow.
textShadowMany [] -- "text-shadow: unset"
-- "text-shadow: 3px 5px #aabbcc"
span
[ css
[ textShadow
[ { defaultTextShadow
| offsetX = px 3
, offsetY = px 5
, color = Just (hex "#aabbcc")
}
]
]
]
[ text "Zap!" ]A type alias used to accept a transform-function.
A type alias used to accept a transform-function among other values.
The transform property.
transform <| matrix 1.0 2.0 3.0 4.0 5.0 6.0
transform <| matrix3d 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
transform <| translate (px 12)
transform <| translate2 (px 12) (pct 50)
transform <| translateX (em 2)
transform <| translateY (inch 3)
transform <| translateZ (px 2)
transform <| translate3d (px 12) (pct 50) (em 3)
transform <| scale_ 2
transform <| scale2_ 2 0.5
transform <| scaleX 2
transform <| scaleY 0.5
transform <| scaleZ 0.3
transform <| scale3d 2.5 1.2 0.3
transform <| skew (deg 20)
transform <| skew2 (deg 30)
transform <| skewX (deg 30)
transform <| skewY (rad 1.07)
transform <| rotate_ (turn 0.5)
transform <| rotateX (deg 10)
transform <| rotateY (deg 10)
transform <| rotateZ (deg 10)
transform <| rotate3d 1 2.0 3.0 (deg 10)
transform <| perspective_ (px 17)Sets transform
with a series of transform-functions.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
transformMany [ translate (px 12), scale_ 2, skew (deg 20) ]
transformMany [] -- transform: unset;Sets transform-origin.
This is the 1-argument variant, which lets you set certain keywords and single lengths or percentages.
transformOrigin top_
transformOrigin center
transformOrigin bottom
transformOrigin (px 30)
transformOrigin (pct 50)
transformOrigin2 left_ top_
transformOrigin2 right_ center
transformOrigin2 right_ bottom_
transformOrigin2 (pct 50) (pct 50)
transformOrigin3 (pct 10) (px 2) (px 10)
transformOrigin3 left_ (px 5) (px -4)
transformOrigin3 right_ bottom_ (rem 2)Sets transform-origin.
This 2-argument variant lets you set x and y offsets in a single declaration.
transformOrigin2 left_ top_
transformOrigin2 right_ center
transformOrigin2 right_ bottom_
transformOrigin2 (pct 50) (pct 50)Sets transform-origin.
This 3-argument variant lets you set x, y and z offsets in a single declaration.
transformOrigin3 (pct 10) (px 2) (px 10)
transformOrigin3 left_ (px 5) (px -4)
transformOrigin3 right_ bottom_ (rem 2)Sets the transform-box property.
transformBox contentBox
transformBox fillBoxSets the transform-style property.
transformStyle flat
transformStyle inheritThe flat value used in the transformStyle property.
transformStyle flatThe preserve-3d value used in the transformStyle property.
transformStyle preserve3dSets matrix value for usage with transform.
The first four numeric values describe the linear transformation.
The last two numeric values describe the translation to apply.
transform (matrix 1 2 -1 1 80 80)Sets matrix3d value for usage with transform.
Every fourth number describes the translation to apply. All other describe the
linear tranformation.
transform (matrix3d 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1)Sets scale value for usage with transform.
transform (scale_ 0.7)This is called scale_ instead of scale because scale is already a property function.
Sets scale value for usage with transform.
transform (scale2_ 0.7 0.7)This is called scale2_ instead of scale2 because scale2 is already a property function.
Sets scaleX value for usage with transform.
transform (scaleX 0.7)Sets scaleY value for usage with transform.
transform (scaleY 0.7)Sets scaleZ value for usage with transform.
transform (scaleZ 0.7)Sets scale3d value for usage with transform.
transform (scale3d 2 0.7 0.2)The rotate property.
This one-argument version lets you set a global variable, none, or angle.
rotate none
rotate inherit
rotate (deg 60)
rotate2 x (deg 50)
rotate2 y (deg 100)
rotate4 1 1 1 (deg 90)The rotate property.
This 2-argument version lets you set an axis, then an angle value.
rotate2 x (deg 50)
rotate2 y (deg 100)The rotate property.
This 4-argument version lets you set a 3D vector, than an angle value.
rotate4 1 1 1 (deg 90)Sets rotate value for usage with transform.
transform (rotate_ (deg 30))This is called rotate_ instead of rotate because rotate is already a property function.
Sets rotateX value for usage with transform.
transform (rotateX (deg 30))Sets rotateY value for usage with transform.
transform (rotateY (deg 30))Sets rotateZ value for usage with transform.
transform (rotateZ (deg 30))Sets rotate3d value for usage with transform.
transform (rotate3d 0 1 0 (deg 30))Sets skew value for usage with transform.
transform (skew (deg 30))Sets skew value for usage with transform.
transform (skew2 (deg 30) (deg 10))Sets skewX value for usage with transform.
transform (skewX (deg 30))Sets skewY value for usage with transform.
transform (skewY (deg 30))Sets translate value for usage with transform.
transform (translate (px 10))Sets translate value for usage with transform.
transform (translate (px 10) (px 20))Sets translateX value for usage with transform.
transform (translateX (px 10))Sets translateY value for usage with transform.
transform (translateY (px 10))Sets translateZ value for usage with transform.
transform (translateZ (px 10))Sets translate3d value for usage with transform.
transform (translate3d (px 12) (pct 50) (em 3))The perspective property.
Negative values are not supported and any value smaller than 1px is clamped to 1px.
perspective none
perspective (px 100)
perspective (rem 50)The perspective-origin property.
This one-argument version either supports a global value or the x-position.
perspectiveOrigin inherit
perspectiveOrigin left_
perspectiveOrigin (pct 50)
perspectiveOrigin2 left_ center
perspectiveOrigin2 (rem 50) (pct 20)The perspective-origin property.
This two-argument version takes an X position and then a Y position.
pperspectiveOrigin2 left_ center
perspectiveOrigin2 (rem 50) (pct 20)Sets perspective value for usage with transform.
transform (perspective_ (px 17))The value is called perspective_ instead of perspective because
perspective is already a property function.
Sets backface-visibility
backfaceVisibility visible
backfaceVisibility hiddenThe animation-name property.
animationName (customIdent "pulse") []The animation-name property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationNameMany [customIdent "pulse"]
animationNameMany [] -- animation-name: unset;The animation-duration property.
animationDuration (s 1)The animation-duration property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationDurationMany [ s 1, ms 300, s 4.5 ]
animationDurationMany [] -- animation-duration: unset;The animation-timing-function property.
animationTimingFunction linearThe animation-timing-function property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationTimingFunctionMany linear [ cubicBezier 0.42 0 0.38 1, stepEnd ]
animationTimingFunctionMany [] -- animation-timing-function: unset;The animation-iteration-count property.
animationIterationCount (num 3.5)
animationIterationCount infiniteThe animation-iteration-count property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationIterationCountMany [num 3.5, infinte, zero ]
animationIterationCountMany [] -- animation-iteration-count: unset;The animation-direction property.
animationDirection reverseThe animation-direction property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationDirectionMany [ reverse, normal, alternate, alternateReverse ]
animationDirectionMany [] -- animation-direction: unset;The animation-play-state property.
animationPlayState runningThe animation-play-state property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationPlayStateMany [ running, paused ]
animationPlayStateMany [] -- animation-play-state: unset;The animation-delay property.
animationDelay (s 1)The animation-delay property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationDelayMany (s 1) [ ms 300, s 4.5 ]
animationDelayMany [] -- animation-delay: unset;The animation-fill-mode property.
animationFillMode forwardsThe animation-fill-mode property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
animationFillModeMany [ forwards, none, both, backwards ]
animationFillModeMany [] -- animation-fill-mode: unset;A type alias used to accept an easing-function.
A type alias used to accept an easing-function among other values.
The linear value used for properties such as animationTimingFunction.
animationTimingFunction linearThe ease value used for properties such as animationTimingFunction.
animationTimingFunction easeThe ease-in value used for properties such as animationTimingFunction.
animationTimingFunction easeInThe ease-out value used for properties such as animationTimingFunction.
animationTimingFunction easeOutThe ease-in-out value used for properties such as animationTimingFunction.
animationTimingFunction easeInOutProduces the cubic-bezier() value used for properties such as animationTimingFunction
animationTimingFunction (cubicBezier 0.2 0 0.5 1)The step-start value used for properties such as animationTimingFunction.
animationTimingFunction stepStartThe step-end value used for properties such as animationTimingFunction.
animationTimingFunction stepEndProduces the steps() value used for properties such as animationTimingFunction.
animationTimingFunction (steps 3)Produces the steps() value used for properties such as animationTimingFunction.
animationTimingFunction (steps2 3 jumpStart)The jump-start value used for functions like step2
steps2 3 jumpStartThe jump-end value used for functions like step2
steps2 3 jumpEndThe jump-none value used for functions like step2
steps2 3 jumpNoneThe jump-both value used for functions like step2
steps2 3 jumpBothThe infinite value used for functions like animationIterationCount
animationIterationCount infiniteThe reverse value used for functions like animationDirection
animationDirection reverseThe alternate value used for functions like animationDirection
animationDirection alternateThe alternate-reverse value used for functions like animationDirection
animationDirection alternateReverseThe running value used for functions like animationPlayState
animationPlayState runningThe paused value used for functions like animationPlayState
animationPlayState pausedThe forwards value used for functions like animationFillMode
animationFillMode forwardsThe backwards value used for functions like animationFillMode
animationFillMode backwardsSets opacity
opacity (num 0.5)
opacity (num 1.0)
opacity zeroSets visibility
visibility visible
visibility hidden
visibility collapseSets mix-blend-mode
mixBlendMode multiply
mixBlendMode saturationSets image-rendering
imageRendering auto
imageRendering crispEdges
imageRendering pixelatedSets crisp-edges value for usage with imageRendering.
imageRendering crispEdgesSets pixelated value for usage with imageRendering.
imageRendering pixelatedThe 1-argument variant of the
clip-path property.
clipPath marginBox
clipPath inherit
clipPath (circle (pct 2))
clipPath (url "test-img.svg")
clipPath2 marginBox (circleAt2 farthestSide left top)The 2-argument variant of the
clip-path property.
clipPath2 marginBox (circleAt2 farthestSide left top)Sets the mask-border-mode
property.
maskBorderMode inherit
maskBorderMode luminanceSets the 1-argument variant of the mask-border-repeat
property.
maskBorderRepeat stretch
maskBorderRepeat revert
maskBorderRepeat2 stretch repeatSets the 2-argument variant of the mask-border-repeat
property.
maskBorderRepeat2 stretch repeatSets the 1-argument variant of the mask-border-outset
property.
maskBorderOutset revert
maskBorderOutset (num 2.5)
maskBorderOutset (px 30)
-- top+bottom | left+right
maskBorderOutset2 (px 30) (px 10)
-- top | left+right | bottom
maskBorderOutset3 (px 12) (px 16) (px 4)
-- top | right | bottom | left
maskBorderOutset4 (rem 2) (rem 1) (rem 3) (rem 4)Sets the 2-argument variant of the mask-border-outset
property.
-- top+bottom | left+right
maskBorderOutset2 (px 30) (px 10)Sets the 3-argument variant of the mask-border-outset
property.
-- top | left+right | bottom
maskBorderOutset3 (px 12) (px 16) (px 4)Sets the 4-argument variant of the mask-border-outset
property.
-- top | right | bottom | left
maskBorderOutset4 (rem 2) (rem 1) (rem 3) (rem 4)Sets the 1-argument variant of the mask-border-slice
property.
maskBorderSlice initial
maskBorderSlice (num 2.5)
maskBorderSlice (rem 3)
-- top+bottom | left+right
maskBorderSlice2 (num 30) (pct 10)
-- top | left+right | bottom
maskBorderSlice3 (px 12) (num 2) fill_
-- top | right | bottom | left
maskBorderSlice4 (rem 2) (rem 1) fill_ (rem 4)Sets the 2-argument variant of the mask-border-slice
property.
-- top+bottom | left+right
maskBorderSlice2 (num 30) (pct 10)Sets the 3-argument variant of the mask-border-slice
property.
-- top | left+right | bottom
maskBorderSlice3 (px 12) (num 2) fill_Sets the 4-argument variant of the mask-border-slice
property.
-- top | right | bottom | left
maskBorderSlice4 (rem 2) (rem 1) fill_ (rem 4)Sets the 1-argument variant of the mask-border-width
property.
maskBorderWidth initial
maskBorderWidth auto
maskBorderWidth (rem 3)
-- top+bottom | left+right
maskBorderWidth2 (num 30) (pct 10)
-- top | left+right | bottom
maskBorderWidth3 (px 12) auto (px 20)
-- top | right | bottom | left
maskBorderWidth4 (rem 2) (rem 1) auto (rem 4)Sets the 2-argument variant of the mask-border-width
property.
-- top+bottom | left+right
maskBorderWidth2 (num 30) (pct 10)Sets the 3-argument variant of the mask-border-width
property.
-- top | left+right | bottom
maskBorderWidth3 (px 12) auto (px 20)Sets the 4-argument variant of the mask-border-width
property.
-- top | right | bottom | left
maskBorderWidth4 (rem 2) (rem 1) auto (rem 4)The 1-argument variant of the mask-clip
property.
This does not support non-standard keyword values such as border.
maskClip contentBox
maskClip revert
maskClipMany [contentBox, marginBox, noClip]The multi-argument variant of the mask-clip
property.
This does not support non-standard keyword values such as border.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
maskClipMany [contentBox, marginBox, noClip]
maskClipMany [] -- mask-clip: unset;The mask-composite
property.
maskComposite add
maskComposite revertThe 1-argument variant of the mask-mode
property.
maskMode inherit
maskMode alpha
maskModeMany [alpha, luminance, alpha, matchSource]The multi-argument variant of the mask-mode
property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
maskModeMany [alpha, luminance, alpha, matchSource]
maskModeMany [] -- mask-mode: unset;The 1-argument variant of the mask-origin
property.
maskOrigin inherit
maskOrigin contentBox
maskOriginMany [paddingBox, borderBox]The multi-argument variant of the mask-origin
property.
If you give an empty list, the value will be unset. This is to make it impossible for it
to have no values in the output.
maskOriginMany [paddingBox, borderBox]
maskOriginMany [] -- mask-origin: unset;The 1-argument variant of the mask-position
property.
maskPosition top_
maskPosition inheritThe 1-argument variant of the mask-repeat
property.
maskRepeat revert
maskRepeat repeatX
maskRepeat Css.round
maskRepeat2 repeat spaceThe 2-argument variant of the mask-repeat
property.
maskRepeat2 repeat spaceThe 1-argument variant of the mask-size
property.
maskSize auto
maskSize (pct 20)
maskSize (rem 200)
maskSize2 auto (pct 10)The 2-argument variant of the mask-size
property.
maskSize auto
maskSize (pct 20)
maskSize (rem 200)
maskSize2 auto (pct 10)Sets the mask-type
property.
maskType inherit
maskType luminanceSets no-clip value for usage with maskClip.
maskClip noClipSets add value for usage with maskComposite.
maskComposite addSets subtract value for usage with maskComposite.
maskComposite subtractSets intersect value for usage with maskComposite.
maskComposite intersectSets exclude value for usage with maskComposite.
maskComposite excludeSets alpha value for usage with maskMode, maskType and maskBorderMode.
maskMode alpha
maskType alpha
maskBorderMode alphaSets luminance value for usage with maskMode, maskType and maskBorderMode.
maskMode luminance
maskType luminance
maskBorderMode luminanceSets match-source value for usage with maskMode.
maskMode matchSourceThe filter property.
This single-argument version lets you use global value keywords, as
well as none, URLs to SVG filters and single filter functions.
If you want to stack filter functions, use filterMany.
filter <| blur (px 6)
filter <| grayscale (pct 60)
filter <| url "thing.svg#filter1"
filter none
filter inherit
filterMany [] -- unset
filterMany [ invert (pct 70), sepia(pct 50) ]The filter property.
This multi-argument version lets you stack multiple filter functions and URLs to SVG filters.
An empty list will create an unset value.
filterMany [] -- unset
filterMany [ invert (pct 70), sepia(pct 50) ]The backdrop-filter property.
This single-argument version lets you use global value keywords, as
well as none, URLs to SVG filters and single filter functions.
If you want to stack filter functions, use backdropFilterMany.
backdropFilter <| blur (px 6)
backdropFilter <| grayscale (pct 60)
backdropFilter <| url "thing.svg#filter1"
backdropFilter none
backdropFilter inherit
backdropFilterMany [] -- unset
backdropFilterMany [ invert (pct 70), sepia(pct 50) ]The backdrop-filter property.
This multi-argument version lets you stack multiple filter functions and URLs to SVG filters.
An empty list will create an unset value.
backdropFilterMany [] -- unset
backdropFilterMany [ invert (pct 70), sepia(pct 50) ]The paint-order property.
This one-argument version indicates which parts of text and shape graphics are painted first, followed by the other two in their relative default order.
paintOrder normal -- normal paint order.
paintOrder2 fill_ stroke -- fill, stroke, then markers.
paintOrder3 markers stroke fill_ -- markers, stroke, then fill.The paint-order property.
This two-argument version indicates which parts of text and shape graphics are painted first, followed by the other remaining one.
paintOrder2 fill_ stroke -- fill, stroke, then markers.The paint-order property.
This three-argument version explicitly indicates in which order should all the parts of text and shape graphics be painted.
paintOrder3 markers stroke fill_ -- markers, stroke, then fill.Provides the markers value for paintOrder.
paintOrder markersSets stroke-dasharray
strokeDasharray (num 2)
strokeDasharray (num 2.5)
strokeDasharray (em 2)
strokeDasharray (pct 15)Sets stroke-dashoffset
strokeDashoffset zero
strokeDashoffset (num 100)
strokeDashoffset (pct 25)Sets stroke-width
strokeWidth zero
strokeWidth (px 2)
strokeWidth (em 2)
strokeWidth (num 2)
strokeWidth (num 2.5)
strokeWidth (pct 15)Sets stroke-align
Note: This function accepts inset_ rather than inset because
inset is already a property function.
strokeAlign center
strokeAlign inset_
strokeAlign outsetSets stroke-color
strokeColor (rgb 0 100 44)
strokeColor (hex "#FF9E2C")Sets stroke-image
strokeImage (url "#svg-pattern")
strokeImage (url "http://www.example.com/chicken.jpg")Sets stroke-miterlimit
strokeMiterlimit (num 4)Sets stroke-opacity
strokeOpacity (num 0.5)Sets stroke-position.
strokePosition left_
strokePosition (px 45)strokePosition sets the horizontal direction. If you need the vertical
direction instead, use strokePosition2 like this:
strokePosition zero (px 45)If you need to set the offsets from the right or bottom, use
strokePosition4 like this:
strokePosition4 right_ (px 20) bottom_ (pct 25)Sets stroke-position.
strokePosition2 left_ top_
strokePosition2 (px 45) (pct 50)strokePosition2 sets both the horizontal and vertical directions (in that
order, same as CSS.) If you need only the horizontal, you can use
strokePosition instead:
strokePosition left_If you need to set the offsets from the right or bottom, use
strokePosition4 like this:
strokePosition4 right_ (px 20) bottom_ (pct 25)Sets stroke-position.
strokePosition4 right_ (px 20) bottom_ (pct 30)The four-argument form of stroke-position alternates sides and offets. So the example above would position the stroke-image 20px from the right, and 30% from the bottom.
See also strokePosition for horizontal alignment and
strokePosition2 for horizontal (from left) and
vertical (from top) alignment.
Sets stroke-repeat
strokeRepeat repeat
strokeRepeat repeatXIf you need to set horizontal and vertical direction separately, see
strokeRepeat2
Sets stroke-repeat along the horizontal axis, then the vertical axis.
strokeRepeat2 repeat space
strokeRepeat2 space roundIf you only need to set one value for both, see
strokeRepeat instead.
Sets stroke-size.
strokeSize cover
strokeSize (px 400)If you give a length value, it will be used for the width. The height will be set
proportional to the size of the stroke-image. If you
need to set both width and height explicitly, use
strokeImage2 instead.
Sets stroke-size.
strokeSize2 (px 300) (px 100)
strokeSize2 auto (px 400)If you only want to set the width, use strokeImage instead.
Sets stroke-dash-corner.
strokeDashCorner none
strokeDashCorner (px 10)
strokeDashCorner (em 5)Sets stroke-linecap
strokeLinecap butt
strokeLinecap square
strokeLinecap roundA butt value for the strokeLinecap property.
strokeLinecap buttThe square value used by properties such as strokeLinecap,
listStyle,
and listStyleType.
strokeLinecap square
listStyleType squareSets stroke-break
strokeBreak boundingBox
strokeBreak slice
strokeBreak cloneA boundingBox value for the strokeBreak property.
strokeBreak boundingBoxA slice value for the strokeBreak and boxDecorationBreak properties.
strokeBreak slice
boxDecorationbreak cloneA clone value for the strokeBreak and boxDecorationBreak properties.
strokeBreak clone
boxDecorationBreak cloneSets stroke-origin
strokeOrign matchParent
strokeOrign fillBox
strokeOrign strokeBox
strokeOrign contentBox
strokeOrign paddingBox
strokeOrign borderBoxSets stroke-linejoin.
strokeLinejoin crop
strokeLinejoin arcs
strokeLinejoin miterNote: if you only want to specifiy the rendering of the cap of a corner you need to use strokeLinejoin2
and set it's first value to miter like so: strokeLinejoin2 miter bevel.
Sets stroke-linejoin.
strokeLinejoin crop bevel
strokeLinejoin arcs round
strokeLinejoin miter fallbackSets crop value for usage with strokeLinejoin.
strokeLinejoin cropSets arcs value for usage with strokeLinejoin.
strokeLinejoin arcsSets miter value for usage with strokeLinejoin.
strokeLinejoin miterSets bevel value for usage with strokeLinejoin.
strokeLinejoin miter bevelSets stroke-dash-justify.
strokeDashJustify none
strokeDashJustify stretch
strokeDashJustify compress
strokeDashJustify dashes
strokeDashJustify gapsSets compress value for usage with strokeDashJustify.
strokeDashJustify compressSets dashes value for usage with strokeDashJustify.
strokeDashJustify dashesSets gaps value for usage with strokeDashJustify.
strokeDashJustify gaps
A CSS property (such as
color), or multiple properties grouped into one.This corresponds to the CSS
display: none.This (roughly) corresponds to the CSS
:hover { text-decoration: underline; font-weight: bold; }.You can use
Stylevalues to reuse styles (like mixins in other CSS systems).batchcomes in handy for this!