Releases: oddbird/accoutrement
v4.0.5
- 🐛 BUGFIX: Address Sass deprecation warnings
- 🏠 INTERNAL: Upgrade dev dependencies
Full Changelog: v4.0.4...v4.0.5
v4.0.4
- 🏠 INTERNAL: Remove documentation from npm package
- 🏠 INTERNAL: Upgrade dev dependencies
Full Changelog: v4.0.3...v4.0.4
v4.0.3
What's Changed
- BUGFIX: Fixed a bug with
tokens.get()
that didn't allow per-property inline functional adjustments -- #117
New Contributors
- @justin-duncan made their first contribution in #118
Full Changelog: v4.0.2...v4.0.3
v4.0.2
What's Changed
- BUGFIX: Fixed a bug with
tokens.get()
memorization -- #112 - INTERNAL: Upgrade dev dependencies.
- Tokens:
- NEW: Add
$ignore-cache
parameter totokens.get()
function, in order to override the cached value of a token.
- NEW: Add
- Sass Utilities:
- NEW: Removed unnecessary string length checks in the
split()
function.
- NEW: Removed unnecessary string length checks in the
New Contributors
Full Changelog: v4.0.1...v4.0.2
v4.0.1
4.0.1 - 03/28/22
- INTERNAL: Upgrade dev dependencies.
- DOCS: Update modules list -- #111
Full Changelog: v4.0.0...v4.0.1
v4.0.0
4.0.0 - 03/02/22
No changes since v4.0.0-rc.1.
This is a major update, moving over to Sass modules, and removing some features that no longer seem necessary.
In addition to fixing a bug with the handling of non-alias #
symbols, and implementing deep map merges where appropriate, we also added some functionality around compiling maps for export, and working with different color palettes.
See the Changelog for details.
New Contributors
- @dvdherron made their first contribution in #89
- @stacyk made their first contribution in #93
- @oluoluoxenfree made their first contribution in #96
- @jerivas made their first contribution in #106
Full Changelog: v3.0.1...v4.0.0
v4.0.0-rc.1
No substantive changes (mostly documentation) since v4.0.0-beta.3.
Full Changelog: v4.0.0-beta.3...v4.0.0-rc.1
Bug fixes and token map compilers
In addition to fixing a bug with the handling of non-alias #
symbols, and implementing deep map merges where appropriate, we also added some functionality around compiling maps for export, and working with different color palettes…
-
BREAKING: Map
multi-merge
utility and alladd-*
functions
for adding one or more token maps (egadd-sizes
,add-colors
, etc)
now perform a deep merge of the token maps.
Previously a shallow merge was performed,
which could result in removing nested values from maps. -
- NEW:
map-compile
andmap-compile-with
functions for compiling
tokens in Accoutrement maps and formatting them for static exports.
- NEW:
-
- NEW:
compile-*
functions provide an export option for respective token maps
(see:compile-changes
,compile-easing
,compile-times
).
- NEW:
-
- NEW:
compile-colors
function provides an export option for color token maps. - NEW:
with-colors
mixin allows the overriding of the global color palette for
a section of contents.
- NEW:
-
- NEW:
compile-ratios
function provides an export option for ratio token maps.
- NEW:
-
- NEW:
compile-sizes
function provides an export option for size token maps.
- NEW:
-
Type:
- NEW:
compile-fonts
function provides an export option for font token maps.
- NEW:
Beta: Migratation to Sass Modules
This is a major update, moving over to Sass modules,
and removing some features that no longer seem necessary.
-
BREAKING: Requires Sass modules, and other recent features of Dart Sass.
Legacy versions of Sass (Node & Ruby) are no longer supported -
BREAKING: The old "init" module, which provided light-weight
browser normalization, is no longer included. We now recommend
using CSS Remedy. -
BREAKING: The old "core" module has been broken into individual modules
for "utilities" (extending several Sass modules),
"tokens" (the map syntax parser),
"variables" (converting Sass variables & maps to CSS custom properties),
and "ratios" (for typographic scales and layout aspect ratios) -
- NEW: These functions are now available directly,
as well as being registered in the map syntax
- NEW: These functions are now available directly,
-
- NEW:
ident()
function adds--
and an optional prefix to any string,
in order to generate a custom property identifier. - NEW:
custom-props()
mixin generates custom properties
for every key/value pair in a map.
- NEW:
-
- NEW: A module just for the custom map syntax parser & function registration
- BREAKING: The
$functions
map no longer accepts alias references
or any other aspects of the token syntax - BREAKING: Ratios are no longer first-class adjustments
(like functions) in the token syntax - BREAKING:
tokens.$handle-missing-keys
defaults tonull
,
and no longer supports the legacysilent
option. - BREAKING:
get-token()
is renamedget()
,
and only accepts bare token names (no#
prefix),
including theouter->inner
nested token syntax. - NEW: The new
compile()
function provides direct access to
parse & resolve an arbitrary token value
(including aliases with#
prefix),
rather than calling a specific token by name. - NEW: All the built-in Sass module functions are registered by default,
as<module-name>.<function-name>
- NEW:
has-token()
function checks a map
to see if the given token is defined,
and supports theouter->inner
nested token syntax.
-
- NEW: Built-in named ratios are now available as individual variables,
(without the_
prefix that is applied in token maps) - NEW:
is-ratio()
function can be used to type-check ratios,
including ratio tokens.
- NEW: Built-in named ratios are now available as individual variables,
-
- NEW:
scale()
function applies a modular scale to any value,
allowing you to move up or down the scale any number of steps.
- NEW:
-
- BREAKING: Removed
global-box-sizing
- BREAKING: Removed
clearfix
- BREAKING: Removed
fluid-ratio
- BREAKING: Removed
position
. Can achieve the majority of functionality in CSS using
Inset
- BREAKING: Removed
Beta: Migratation to Sass Modules
(configuration is broken in this release)