- Added table modifier class
--t-lined
- Variable
--line-detail
renamed as--line
throughout.
- Font size bump 112.5% (default 18px) for 768px up.
- Color variable outputs changed to the OKLAB color space. (Tried the OKLCH color space, but this distorted the lightness levels, especially of the lighter greens coming out as orange.)
- Accessibility: focus state styling now based on that of the design systems of the NHS.co.uk and GOV.UK.
- Improved
t-link-inside
and renamed aspanel-link
(old name is still present for backgards compatability). - Improved link variations:
t-no-underline
/t-underline-hover-only
- Added link groups (for menus):
links-no-underline
/links-underline-hover-only
- Reinvention of the way Codebase handles rounded corners. Breaking changes:
- Different border radius size classes now only provide values — e.g. they need to be paired with
rounded
,rounded-tl
etc. class as a modifier; - Now there is only one
unrounded
reset. Four corner-specific rounding corner classes have been added. - Removed
rounded-circle
androunded-full
(you only needrounded-pill
to accomplish all thay they were used for).
- Different border radius size classes now only provide values — e.g. they need to be paired with
- Focus ring now copying the Accessability Style Guide.
- Heading tags that are
:first-child
now have their top margins removed.
- Added utility
overflow-clip
usingoverflow: clip
. (overflow-hidden
is now aliased to this, for backwards compatability.)
- Updated NPM packages, including Eleventy and Dart-Sass. The Dart-Sass update required making some updates to several Sass functions in Codebase, fixing breaking changes for the preprocessor.
- Colors now have
color-mix()
functons and OKLAB color space. Base color variables are now available for overriding in the root variables. - Reverted to a simpler focus ring stying using recent browser defaults, because this is now working well in all the evergreen browsers (including rounded corners). But, added a little outline-offset to improve readability and visibility when touching a simlar-colored button.
- Simpler font stacks.
- A little text-underline-offset has been added to links.
- Reduced
margin-bottom
of typographic base block elements (and.table
) to 1rem. Now controlled by a variable. - Simplified heading sizes (ems equivalent of 16px, 18px, 20px, 24px, 30px, 36px, as usually specified in WYSIWYG editors). Also, simplified by removing heading size bump for MD screens (use the responsive
clamp()
controledt-long-read
ort-display
in those situations where you need bigger text). - All Heading tags and heading utility classes now have built-in
margin-top
. As margin-block controlled by a variable. (Usemt-0
to override.) - "Heading sizes" utility classes now only change text sizes. They do not affect margins offont weights.
- Improved
.t-no-underline
and.t-link-inside
(panel links). - All tables now need the
.table
class. - Paddings utility
.p-block
renamed.p-cell
(alias.p-block
is still available.) - Removed
-webkit-overflow-scrolling: touch;
from the body tag.
- Reverted to the browser built-in accessibility focus ring outline (no longer using a box shadow). But set 2px outline thickness and 2px offset. Evergreen browsers have outlines that now follow rounded corners on inputs and buttons.
- Improved
t-tight
andt-loose
letter spacing. - Improved
t-link-inside
/t-link
(i.e. panel links) and examples.
- Media query controlled max-width utilities (e.g. md:w-xs), so that layout blocks can be set to different max-widths at different breakpoint widths.
- Increased heading sizes (for both base and
MD
bump sizes).
- Added position
static
utility to all breakpoints. - Added text-wrap
t-balance
utility.
- Adjusted headings
h1
toh6
so that they have a ×1.125 font size increase, that takes effect atmd
(1024px default). - Improved
t-sm
so that its minimum size is 13.5px, usingmax(.75em, 13.5px)
. - Improved
t-lg
so that it simply upsizes by ×1.25. - Added
t-display
that increases font sizes (×1.25 → 2) using aclamp()
ramp. - Added
w-fit-content
. - Added
h-100dvh
andh-max-100dvh
. - Removed
w-25%
,w-50%
,w-75%
as these are almost never used.
- Added
xs:
,sm:
,md:
, andlg:
—aspect-ratio-unset
- Added
xs:
,sm:
,md:
, andlg:
media query tiered variants to allflex
modifier classes. - Added
xs:
,sm:
,md:
, andlg:
media query tiers togrid
wrapper setup classes. - Improved
t-link-inside
andt-link
. - Added
rounded-xl
.
- ~~Improved heading variables, so that
--h1
through--h6
scale down by ~0.875 forsm
viewports. Now, the heading variables can be safely be utilised by the designer.~~ See v.5.2.11.
- Changed
t-loose
andt-tight
units fromrem
toem
. Improvement shows more when used on headings.
- Added
grid-dense
to the CSS grid system. - Added
xs:
,sm:
,md:
, andlg:
media query tiered variants to the image/video aspect ratio utilities.
These variants enable you to both set up and rearrange a square tile array for different device sizes.
- Minor bug fix:
h-max-100%
now works OK.
- Activating focus ring on buttons only for
:focus-visible
. - Removing the
hide-focus-ring
class.
- Smaller text for
btn-sm
. Larger text forbtn-lg
.
- Fixed bug with
overflow-x
failing to to work as a wrapper around oversized tables on narrow viewports (phones).
- Improvements to container classes, to prevent interference with e.g. the HubSpot required container-fluid class
- Improvements to forms, for compatibility with iOS added features
- Changed all interpolated Sass variables to CSS variables (custom properties), and refactored
- Updated dependencies. Corrected Sass function units, adding % to color mix in default variables and button hover states (because of the Dart Sass breaking change).
- Removed PostCSS and associated dependencies, and CSSNANO. Now no auto-added vendor prefixes. (A few are still required; these have been added manually.) CSS minification is now done by the NPM Sass plugin, using
--style compressed
. - To enable running on Windows machines, added
npm-run-all
and changed thenpm run dev
script inpackage.json
(still runs on Macs). - Changed “warning” orange to amber, because it was too similar to “danger” red. Maintained accessability by changing text on warning UI elements (buttons, badges, and labels) from white to black. Also, the named color
-orange
is now named-amber
(this is a breaking change). - Improvements to tables (this shaved 2KB off of the minified file size!)
- Improvements to forms.
- Improvements to glassmorphic backgrounds.
- Additions to aspect-ratios.
- Updated the documentation.
- Added
width: 100%
to theblock
utility class, because in Safari<input type="text" class="block">
and<button class="block">
were not going full width.
- Breaking change: improved CSS grid gap and flexbox gap, using the full set of responsive spacing variables: now
gap-1
thrugap-6
(and column only and row only versions, and breakpoint alternatives) instead of the simplergap-sm
,gap-md
, andgap-lg
. Alsoflexbox-gap
has gone; use these newgap-*
utilities instead. - Improved
focus-visible
focus ring: black and white "checker" dotted line, comprised of black dotted outline overlaying a solid white box-shadow of the same thickness. btn
class (for links) now doesn't have the input focus ring; it has the link focus ring.- Updated npm packages.
- Added hover states to opacity utilities.
- improved the docs -- fixed broken links.
- Added
img-cover-*
positioning (top-right, right, etc.). - Fixed the docs sidebar, was prevented from independently scrolling on iPad and touch devices.
container
classes base no longer set using[class=container]
-- improving compatibillity with other platforms.container
classes now have x-axis insets controlled by amin()
finction on the width -- so, no more need for x-axis paddings.- Added
t-link-inside
andt-link
. (Removed the previously undocumentedt-hyperlink
).
- For improved keyboard-user accessibility,
:focus-visible
focus rings on links are now the default user-agent stylesheet gray offset, with a white box-shadow inside the offset (for inproved visibility over dark backgrounds) - For improved keyboard-user accessibility,
:focus-visible
focus rings on form elements and.btn
buttons a 0.25rem light blue box shadow. - Capability to remove box shadows above or below a media query breakpoint.
- For improved accessibility, defailt font size is now 100% (not 16px). This will still be 16px for many people, but now visually impaired people or others who increase the default font size in their browser settings can do so.
- x-axis and y-axis margin utilities (
mx-
andmy-
) now usemargin-inline
andmargin-block
. Similar for paddings. - Improved system font stacks, based on https://systemfontstack.com.
- Hover states for box shadows.
- Added posiiton utilities
z-index-997
andz-index-998
for better handling of offcanvas, modals, etc. - Set long-read
clamp()
to max at 1.25rem size. - Other minor fixes.
- Some corrections and improvements in the docs.
- Correcting the version control number from
v.1
tov.5
- Default gaps for flexbox and grid are now 1.5rem.
- Added for
gap-sm
andgap-lg
for grid (only, not flexbox). This done for all gridgap
,col-gap
, androw-gap
at 5 media query tiers.
- Added grid
col-gap
androw-gap
classes (at 5 media query tiers).
- Added
loading="lazy"
to the docs placeholder images, and discussedloading="lazy"
in the docs atclassless-basics/media
.
aspect-ratio
classes now using the new CSS aspect ratio style (the old padding hack is still available in mixins).- The same
aspect-ratio
class is required to map an overlay on to a hero component. - Other minor fixes
- The
container
default is now the same ascontainer-xxl
(max width 1792px).
- Added
b-transparent
andhover:b-transparent
. - A few minor fixes.
- Initial upload of Codebase v.5.0.0.