Although these are still in flux (largely due to CSS changing under our feet to some degree), it's been almost two years since we put them out for review initially so I think it's fair to say that the core principles are solid. See #2831
2.1 KiB
Draft 1.6
-
Simplify the type definition for
interpolate
, and makeoptions
argument optional. -
Fix typo in
changedValue
definition ofcolor.change
.
Draft 1.5
- Clarify that deprecated SassColor getters (e.g.
red
,blue
, etc.) convert color to a legacy space before returning channel value.
Draft 1.4
-
In
change
, adjust algorithm for differentiatinghwb
fromhsl
when onlyhue
and nospace
is specified. -
In
change
for legacy colors, emit acolor-4-api
warning if a non-alpha channel is explicitly null and no space is set. -
In procedure for Changing a Component Value, specify that
undefined
values should return theinitialValue
. -
toSpace
usesConverting a Color
algorithm instead ofcolor.to-space()
to avoid removing missing channels when converting to a legacy space. -
In
change
and constructors, throw an error for alpha and lightness values that are out of range.
Draft 1.3
-
Rename new Embedded Protocol message from
SassColor
toColor
. -
Make
color2
a positional parameter ofinterpolate
, not an option. -
Add
rec2020
color space.
Draft 1.2
-
Add "alpha" to all channel name types.
-
Remove
isAlphaMissing
in favor ofisChannelMissing("alpha")
. -
Rename types using title-case for acronyms longer than two letters in camel-case identifiers (e.g.
ColorSpaceHsl
instead ofColorSpaceHSL
). -
Remove generic
change
overload, and makespace
optional on others. -
Return
immutable
types forchannels
andchannelsOrNull
, and remove assumption of 3 channels.
Draft 1.1
-
Clarify values in
channels
andchannelsOrNull
. -
Throw an error if construction space can not be determined.
-
Remove
alpha
from list of deprecated getters. -
Rename types:
ColorSpaceLAB
toColorSpaceLab
,ChannelNameLAB
toChannelNameLab
. -
Use
Exclude<>
instead ofOmit<>
for union types. -
Make procedure for determining space backwards compatible when using
change
for legacy colors. -
Fix channel names for
change
withoklch
andlch
.
Draft 1
- Initial draft