Releases: bitcrowd/bitstyles
Releases · bitcrowd/bitstyles
Release list
3.0.0-rc.2
Fixed
- All of the variables can now be overridden by users
Breaking
- Removes
settings/color-base, and merges its variables intosettings/color-palette. If you’re already using the Sass module system, you’ll need to rename all variables containingcolor-basetocolor-palette
3.0.0-rc.1
Added
- The entire library is now compatible with the Sass module system, and backwards compatibile with the existing Sass import system. This means you can import the whole library or its parts with
@use/@forwardor@import, and override variables in all of the available ways. The functions and mixins are all available in both systems
2.0.0
Added
- The breakpoints at which
.a-cardis output can now be specified with the$bitstyles-card-breakpointsSass variable. Default is atm, andlbreakpoints - Added
$bitstyles-grays-hint-color-mixand$bitstyles-grays-hint-colorvariables to allow control over how thegraycolor palette is generated - Added
$bitstyles-color-mix-percentageslist variable, giving control over which percentage intervals are generated in each color’s palette - There’s now the
generate-palette($base-color, $mix-color, $percentages)function to automate generating palettes of individual colors - Color scales based on the semantic colors (
brand-1,warningetc.) are now available in shades as well as tints (brand-1-shades,warning-shadesetc.) - Inputs’ placeholder text font-weight and font-style can now be customized using
$bitstyles-input-placeholder-font-weightand$bitstyles-input-placeholder-font-stylevariables respectively - The
.u-gapclasses are now available atmandxlbreakpoints - The
.u-align,.u-self, and.u-justifysets of utility classes are now all available atmbreakpoint. The available breakpoints can be customized - The various
.u-flex-classes are now available at thembreakpoint. The available breakpoints can be customized by overriding$bitstyles-flex-breakpoints - Adds
.u-flex-nowrapand.u-flex-rowclasses - Adds
url-encode-colorfunction to our color tools, to encode hex colors correctly
Changed
- Background color of the
htmlelement is now thebackgroundcolor at 100% instead of 95% - Default color scales are now generated with colors at more percentage mixes:
1, 2, 3, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 97, 98, 99, 100
Docs
- Adds a
Design Tokenssection to the storybook, and lists all available colors
Fixed
- Selects now correctly display the icon specified as a background in Sass, even when postcss isn’t being used (note that you’ll have to deal with the prefixing of the
appearanceproperty, prefereably using autoprefixer)
Breaking
- Renamed
u-flex__shrink-x(wherexis a number) tou-flex-shrink-x - Renamed
u-flex__grow-x(wherexis a number) tou-flex-grow-x - Renamed
u-flex--wraptou-flex-wrap - Renamed
u-flex--coltou-flex-col
v1.5.0
Added
.u-grid-colsclasses are available at thexlbreakpoint- All
.u-grid-cols,.u-col-span, and.u-col-startclasses are now specified using Sass variables, and can therefore be overridden
Breaking
- All
.u-grid--x-colclasses, wherexis a number, have been renamed tou-grid-cols-x - All
.u-grid__col-span-xclasses, wherexis a number, have been renamed to.u-col-span-x - All
.u-grid__col-xclasses, wherexis a number, have been renamed to.u-col-start-x
v1.4.0
Added
- We have a new media-query available in
$bitstyles-breakpoints:motion-ok. It’s available using themedia-querymixin, and applies when the user has not set a preference to reduce motion in their UIs, allowing a no-motion-first approach to animations - All dropdown, sidebar, and navbar examples in our storybook documentation have JS behaviour using alpinejs
- Modal behavior is implemented using
a11y-dialog
Changed
- The
topbaratom is now not fixed by default. Set the variable$bitstyles-topbar-positiontofixedto replace that behavior
Breaking
- The
topbaratom no longer sets a background and foreground color, and the corresponding variables ($bitstyles-topbar-colorand$bitstyles-topbar-background-color) have been removed. If you were using that functionality, use theu-fgandu-bgutility classes instead
v1.3.0
Added
- Dropdown atom has a new variant
.a-dropdown--full-widththat causes the dropdown to span the full width of its nearestposition: relativeparent element. Combinable witha-dropdown--top - Gap sizes can now be specified, and the class suffixes named, using a Sass variable
- You can now override which directions the margin and padding utility classes are output for (
top,bottom, etc.), and what those classes are named independently of the CSS property, using$bitstyles-margin-directionsand$bitstyles-padding-directionsrespectively - You can now override the sizes the margin & padding utility classes are output for, using
$bitstyles-margin-sizesand$bitstyles-padding-sizesrespectively - Border utility classes are now available at all four directions, and on a per-color basis. Currectly only
gray-10andgray-70, this can now be customized using sass variables. - Border utility classes can now be available at breakpoints by overriding the
$bitstyles-border-breakpointsvariable - Default breakpoints now include
xl, for ultra-widescreens .a-contentmax-width and padding is now customisable using Sass variables, and by default now includes a 100% option- A new
.u-zutility class for settingz-index
Changed
- The size of gap generated by
.u-gap-mis now1rem, not0.8rem
Fixed
- The checkbox checkmark is now correctly centered, and only rendered once
Breaking
- The double-dashes have been removed from the
.u-marginand.u-paddingclasses (e.g..u-margin-m--top). To migrate, replace the--in the classnames with- - The
.u-border--top.u-border--bottomclasses have been replaced with.u-border-gray-70-topand.u-border-gray-10-bottomrespectively .u-fixed-ratiois renamed.u-aspect-ratio, and the double-dashes are replaced with single. Please rename all uses e.g..u-fixed-ratio--16-9becomes.u-aspect-ratio-16-9.u-fixed-ratio__innerhas been removed, and is no longer necessary. To migrate, move other classes that may be on that element to the.u-fixed-ratioelement, and remove the.u-fixed-ratio__innerelement- Now requires version
^1.34.0ofdart-sass, in order to use the newMath.divfunction and remove all the division using/characters. - Removes the
contentmixin. If you need thecontentfunctionality, use the.a-contentclassname instead (it’s customisable using Sass variables, see the settings.scss file)
v1.2.0
Added
- More aspects of the sidebar organism can now be specified in Sass variables
a-dropdown--topvariant of dropdown component
Changed
- Sidebar examples now include the closed state, so that it can be seen on small-viewports
Breaking
- Sidebar Sass variables have been renamed, so if you were using or overriding those variables in your project, you’ll need to rename
$sidebar-widthto$bitstyles-sidebar-large-width - Renames
.a-dropdown--reverseto.a-dropdown--right
v1.1.0
[1.1.0] - 2021-04-15
Added
- New component in UI layer: sidebar
- Added this changelog
Changed
- [Docs] Improved documentation: added links to classes used in the storybook examples
- [Docs] Navbar examples are now in iframes of fixed height, so the examples are clearly visible in docs view
- Webfonts are now included in the release
- Updated the modal component visual styles, and added examples for dialogs, alerts, and informational modals
- Breadcrumbs & pagination components are now wrapped in labelled
<nav>elements - Imports of Sass partials are now alphabetized within each layer
- Navbar component (largescreen version) now scrolls instead of wrapping when the links inside take up more space than available
Fixed
a-button--navanda-button--nav-largeare no longer centered
Breaking
- Node version bumped to LTS (14.16.0)
1.0.6
[#436] Add npmignore file (2)
Removes the npmignore, in favour of the build key in package.json