Releases: SFDigitalServices/design-system
v2.5.1
🐛 Bug fixes
This bug fix adds the lib directory to the published sfgov-design-system package so that the tailwind preset can be imported:
module.exports = {
presets: [
// like this
'sfgov-design-system/tailwind.preset'
// ...or this
require('sfgov-design-system/tailwind.preset'),
]
}🏠 Internal
We've resolved some critical dependency vulnerabilities in lerna-lite in #120.
v2.5.0
🚀 Features
- There's a new
icons.cssbundle, andsfgov-iconstyles are included insfds.css
🐛 Bug fixes
- Rendering improvements for
<sfgov-icon>, which might address SG-1819
📝 Documentation
- We've moved all of our documentation to Docusaurus 🎉
🏠 Internal
- We now have a monorepo, which will one day house multiple npm packages in addition to
sfgov-design-system
v2.4.0
🚀 Features
-
A new Tailwind preset!
module.exports = { presets: ['sfgov-design-system/tailwind.preset'] }
-
A public Tailwind config (
sfgov-design-system/tailwind.config) for extending directly
🐛 Bug fixes
- Updated color values from Figma in #97
📝 Documentation
- New button component docs!
- Improved good/bad example rendering
- Delegated
clickevent listener on empty links (href="#") to prevent janky scrolling
🏠 Internal
- ESLint for JS with the no-expiring-todo-comments rule
- Stylelint for CSS with a
no-expiring-todo-comments-like rule - Markdownlint for our docs with a rule insisting that every page have a
titlein YAML frontmatter
Full Changelog: v2.3.1...v2.4.0
v2.3.1
What's Changed
- Bump node-fetch from 2.6.1 to 2.6.7 by @dependabot in #82
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #83
- Replace "placeholder" with "hint" by @coreyhunt in #85
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- Upgrade eleventy to 1.0, resolve npm audits by @shawnbot in #71
- Adds Icon documentation by @coreyhunt in #68
- Create fields-and-forms.md by @coreyhunt in #81
- Release 2.3.0 by @shawnbot in #76
Full Changelog: v2.2.2...v2.3.0
v2.2.2
v2.2.1
📝 Documentation
This is a documentation-focused patch release intended to fix some issues we've observed since 2.2.0:
- The "Resources" nav link is now present
- The grid overlay keyboard shortcut now works
- The package version in the top grey bar now shows the current version
See #60 for more information.
v2.2.0
🚀 Features
- We have our first pass at the grid system, powered by Tailwind's CSS grid utilities (#52)
- Icons are now part of the system! We publish SVG files for each one, and JavaScript bundles that make it easy to embed them in HTML (#22)
- We now offer a
details-resetclass andopen:utility variants (e.g.hidden open:blockto show when the<details>element is open) to support great-looking disclosure components. There's a new docs page for the "Details" component, too (part of #54) - Our CSS now also includes width (
w-) and max-width (max-w-) utilities for 4 discretely sized content widths:sm,md,lgandxl(part of #52) - In addition to grid plugins, our Tailwind theme now also includes
gap,opacity,pointerEvents,visibility, andzIndexto support the documentation site (part of #52) - We now have a
mdbreakpoint for responsive utilities that applies to screens420pxan wider (part of #49) - Our spacing scale now includes both
96and100values.100will be deprecate in the 3.0.0 release
🐛 Bug fixes
- The
title-smandtitle-xsclasses now work on both small and large screens (part of #49) - The
slate-1color value (previously#CEDAE4) now matches the#EFF3F4in Figma <kbd>components no longer overlap, and have better documentation (#48)
📖 Documentation
v2.0.0
This release includes a complete rebuild of the design-system.sf.gov site with Eleventy. There are a lot of changes to the system included:
Tailwind
We've enabled a bunch of Tailwind plugins:
flexDirectionandflexWrapto support reverse-column ordering and wrapping of flex contentsinsetto support positioning viatop,right,bottom, andleftCSS properties with our spacing scalepositionCSS utilities of the same nameoverflowfor overflow visibility utilities and scrolling support
I also updated some variants:
displaynow also hasgroup-hovervariants to support showing heading links on hover (in docs)flexDirectionis responsive, so you can vary the flex direction by viewport widthinsetandpositionare also responsive, because relative and absolute positioning usually differ responsively
Theme
Our Tailwind theme has some changes to support docs:
borderWidth.DEFAULThas changed from4pxto3px, affecting theborderand related utilitiesborderRadius['0'] = '0'gives usrounded-0and edge- and corner-specific utilities to flatten corners on certain elements- I've added
2,3, and4keys (allpxvalues) to theborderWidthobject to give us more explicit utilities fontFamily.inherit = 'inherit'andtextColor.inherit = 'inherit'enable thefont-inheritandtext-inheritutilities, which make it easier to explicitly allow typography settings to affect child elements- The
widthandheighttheme keys now include our spacing scale so you can set the sizes of elements to any size in our scale withw-andh-utilities
CSS updates
base.css
Base styles now:
- reset padding and margin on
<html>and<body> - set
<a>color to bright ("action") blue withtext-action - color input placeholders (
::placeholder) withtext-slate-light
docs.css
The new docs.css bundle includes styles to support the new docs site. There is currently a .prose scope that applies styles to elements like headings, but it's very much a work in progress and nowhere near ready to roll out on, say, Drupal-generated content on sf.gov. The most important part of this are the syntax highlighting colors.
fonts.css
The fonts bundle now also loads the Traditional Chinese subset of Noto Sans TC.
typography.css
Our typography bundle now explicitly styles <pre> and <code> elements with font-mono and forces children to inherit the monospace font with font-inherit. <pre> elements also get whitespace-pre-wrap out of the box.
Postcss config
I've removed two things from our postcss setup because we weren't using them:
- SCSS syntax (
postcss-scss) postcss-custom-properties