Releases: oddbird/cascading-color-system
Releases · oddbird/cascading-color-system
v0.1.0-beta.18
- 🏠 INTERNAL: Address Sass deprecation warnings
- 🏠 INTERNAL: Upgrade dev dependencies
Full Changelog: v0.1.0-beta.17...v0.1.0-beta.18
v0.1.0-beta.17
What's Changed
- 🏠 INTERNAL: Use Sass modules instead of global functions
- 🏠 INTERNAL: Upgrade dependencies
Full Changelog: v0.1.0-beta.16...v0.1.0-beta.17
v0.1.0-beta.16
- 🏠 INTERNAL: Remove documentation from npm package
- 🏠 INTERNAL: Upgrade dependencies
New Contributors
Full Changelog: v0.1.0-beta.15...v0.1.0-beta.16
Fix demo site
- INTERNAL: Update dependencies & fix demo site [#12]
Documentation cleanup
- INTERNAL: Update homepage & documentation links
More flexible user form controls
- NEW: All form inputs & buttons are now optional
- NEW: Support radio-inputs for
light/dark/automodes:[data-ccs-input="light-mode"][data-ccs-input="dark-mode"][data-ccs-input="auto-mode"]
- NEW: Optionally unset theme-related user values when changing themes:
- Add
unset-valuesto theme input:[data-ccs-input="theme unset-values"]
- Add
- INTERNAL: Upgrade dev dependencies
Documentation and Cleanup
This is a minor non-breaking pre-release, upgrading dependencies and adding documentation to the repository and npm package, along with some module re-arranging.
- INTERNAL: Upgrade dev dependencies
- INTERNAL: Split
modesandpaletteinto their owntoolsmodule that can be imported as plain Sass without any CSS output - DOCS: Added documentation to repo
Arbitrary Colors
This is a major breaking pre-release, adding support for arbitrary color names,
so you can define more complex and customized cascading themes.
- BREAKING: Replaced individual
$*-huesettings with a combined$huesmap
of (string) color name keys with (number|null) hue values.
This allows the tool to generate any number of colors.
The default('prime', 'accent', 'neutral')shorthand
creates identical default settings to previous releases.
Acceptable shorthands:- a single
number|nullvalue will be assigned a key:prime - a
string|list(of strings) will generate keys withnullvalues
- a single
- BREAKING: Added a
$colorslist argument (first) in both the
colors()andgradient()mixins --
set to the list of$huesmap-keys by default - BREAKING: Since
accentcolors are no longer hard-coded,
the built-in themes have replaced--ccs-accent--themesettings
with more generic--ccs-theme--1and--ccs-theme--2--
which can be assigned to other color names as needed. - NEW: Any color with
neutralin the name
will use the neutral saturation,
rather than the default saturation
Mode fixes and improvements
- BUGFIX: Source & cascade order was causing HTML modes to fail
- BREAKING: Rename
--ccs-mode--invertto--ccs-invert,
and--ccs-mode--invert-zeroto--ccs-invert--zero - BREAKING: Remove
prefers-color-schememedia-query from fallback colors,
since more browsers support variables than color-scheme queries - DOCS: Added documentation of fallback and mode settings
mode toggles
- NEW:
--ccs-mode--zeroand--ccs-mode--invert-zero
provide mode values of0(dark) or1(light),
rather than-1(dark) and1(light) - NEW:
if-mode($light, $dark)function returns a CSScalc()toggle
between two values, depending on the current (light/dark) mode