Changelog
Version 4.0 introduces breaking changes, improvements, and new features. Quick summary:
Breaking Changes
1. Updated Image Shortcode
widths
now comes beforesizes
.- Introduced
imageClass
for<img>
-specific classes
If you use the Nunjucks image shortcode, you might have to update your arguments.
2. Cascade Layers
- Global CSS is now organized with cascade layers
- Local CSS (formerly "inline") does not use cascade layers and has higher specificity
The "inline" CSS bundle was renamed to "local".
3. New Color System
- Running
npm run colors
after setting colors insrc/_data/designTokens/colorsBase.json
generates or updates thecolors.json
file, creating:- Scalable palettes for
neutral
andvibrant
colors - Standalone values for
fixed
colors, including a "subdued" version for dark themes
- Scalable palettes for
The src/assets/css/global/base/variables.css
file has changed significantly.
Update your colors in src/_data/designTokens/colorsBase.json
.
New Features
- Now using the Eleventy Image Transform Plugin which allows co-located images with HTML and Markdown syntax, amongst other features
- Custom attributes lcan now be applied directly to Markdown image syntax
- Button styles have been refreshed
border-radius
is now a design token- Added a
3XS
spacing value - New
grid
composition layout:data-layout='thirds'
- New OG image template
More in the release blog post: https://eleventy-excellent.netlify.app/blog/eleventy-excellent-40/
Have fun!
Full Changelog: v3.7.5...v4.0.0