Drastically reduce size of output JS.
fastOptJS
reduced by ~590kfullOptJS
reduced by ~140kRemove Scalaz as a dependency.
ext-react
module to the core
module.createStyleElement
installStyle
<style>.addToDocument()
styleF
inputs are safe to be stored in a Map
(which is (by default) what ScalaCss does under-the-hood).
If you use styleF
with custom data types, see the new section at the end of Functional Styles.scalacss.ext.CssReset
. It wasn't advertised and isn't appropriate here.scalacss.internal
with scalacss._
being a curated list of exports.Export
from def
to val
so inner content can be imported.(Skipping 0.5.2 due to botched release)
background-clip
now has type-safe DSL.FontFace
names are now optional.
When specified they are never modified and duplication is allowed.
When not specified, they are given a unique name.scalacss.Defaults
was broken in that it always pointed to dev settings and never chose prod settings.
This has been deprecated and replaced with scalacss.devOrProdDefaults
. Unfortunately you can no longer
import its members directly and must instead, store it in a val
somewhere in your project first.
Upgrade dependencies:
Compile for Scala 2.12 with -opt:l:method
Replace all instance of Stream
with List
, Vector
or Iterator
grid-template-areas
now has type-safe DSL and produces correct CSS.@an-tex
& @vmarc
).steps
now default to direction=end
when unspecified. (thanks @Myrddin27
)caret-color
font-variantion-settings
hanging-punctuation
initial-letter
overscroll-behavior
overscroll-behavior-x
overscroll-behavior-y
display: flow-root
font-family: system-ui
background-repeat
gap
pointer-events
row-gap
user-select
justify-content: start|end|left|right|baseline|first baseline|last baseline|space-evenly|stretch|safe center|unsafe center
If you like what I do —my OSS libraries, my contributions to other OSS libs, my programming blog— and you'd like to support me, more content, more lib maintenance, please become a patron! I do all my OSS work unpaid so showing your support will make a big difference.