Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5f22f1a
add css variables
notraiyan Apr 30, 2025
fb76cc0
add css variables to colors
notraiyan Apr 30, 2025
78ed04f
change to css variables
notraiyan Apr 30, 2025
6c863dc
fix color variables
notraiyan Apr 30, 2025
9a2b749
convert some more colors
notraiyan Apr 30, 2025
469249e
update mix,rgba,darken,tint sass functions
notraiyan Apr 30, 2025
3aa1d7a
fix typo
notraiyan Apr 30, 2025
58ee746
fix typo 1
notraiyan Apr 30, 2025
04a2457
Revert "fix typo 1"
notraiyan Apr 30, 2025
3ee8ef1
Revert "fix typo"
notraiyan Apr 30, 2025
12612ca
Revert "update mix,rgba,darken,tint sass functions"
notraiyan Apr 30, 2025
720010e
convert some more colors
notraiyan Apr 30, 2025
db612ce
Merge branch 'develop' into notraiyan/DP-38077-Switch-To-CSS-Variables
notraiyan Apr 30, 2025
f5b1054
add changelog
notraiyan May 1, 2025
15b89ed
update colors
notraiyan May 1, 2025
ebfd143
Merge branch 'develop' into notraiyan/DP-38077-Switch-To-CSS-Variables
notraiyan May 1, 2025
058177f
revert colors
notraiyan May 1, 2025
43e59ea
resolve feedback
notraiyan May 7, 2025
461daab
Merge branch 'develop' into notraiyan/DP-38077-Switch-To-CSS-Variables
notraiyan May 7, 2025
fdcb33d
Merge branch 'develop' into notraiyan/DP-38077-Switch-To-CSS-Variables
notraiyan May 9, 2025
0859edb
Merge branch 'develop' into notraiyan/DP-38077-Switch-To-CSS-Variables
notraiyan May 22, 2025
711bb1f
Merge branch 'develop' into notraiyan/DP-38077-Switch-To-CSS-Variables
clairesunstudio May 27, 2025
7d81f8c
Merge branch 'develop' into ethansev/DP-39213-Complete-mayflower-tran…
Ethansev Jun 27, 2025
f3eeae3
Deprecated scss functions and replace span-columns mixins with css grid.
Ethansev Jul 9, 2025
c35cba8
Merge branch 'develop' into ethansev/DP-39213-Complete-mayflower-tran…
Ethansev Jul 9, 2025
a77dd68
Refactor SCSS to use CSS variables for colors and gradients.
Ethansev Jul 9, 2025
2c5003c
Added new pre-calculated CSS variables for transparency and gradients…
Ethansev Jul 13, 2025
6103c4f
Added new CSS variables for gray shades and added warnings for missin…
Ethansev Jul 13, 2025
fb8e2d6
Updated grid mixins by adding alignment and justification parameters,…
Ethansev Jul 14, 2025
3432a09
Changed the color hexcode for font-link.
Ethansev Jul 14, 2025
25e489a
Added DP-39213 changelog.
Ethansev Jul 14, 2025
75dcea4
Merge branch 'develop' into ethansev/DP-39213-Complete-mayflower-tran…
Ethansev Jul 14, 2025
04cfe04
Added empty lines to fix linting.
Ethansev Jul 14, 2025
5b02938
resolve conflicts
clairesunstudio Oct 9, 2025
f3af11a
resolve conflicts
clairesunstudio Oct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions changelogs/DP-39213.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Changed:
- project: Assets
component: _color-tokens
description: |-
Complete CSS variables transition started in DP-38077 by adding pre-calculated transparency and gradient variables.
- Added ~105 new CSS variables for transparency variations (10%, 15%, 20%, 25%, 30%, 40%, 50%, 60%, 70%, 75%, 80%, 85%, 89%, 90%)
- Added pre-mixed color combinations to replace rgba() usage
- Added tint/shade CSS variables for all brand colors (bay-blue, berkshires-green, duckling-yellow, independence-cranberry)
issue: DP-39213
impact: Minor
- project: Assets
component: _variables
description: |-
Created new CSS variable for standardized box shadows.
- Added --mf-box-shadow CSS variable to replace SCSS $box-shadow usage
- Updated all box-shadow instances to use the new CSS variable
issue: DP-39213
impact: Patch

Fixed:
- project: Assets
component: Mixins
description: |-
Remove all SCSS color functions (rgba) to complete CSS variables transition.
- Replaced rgba() fallbacks with pre-calculated CSS variables
- Added neat-warn messages with solid color fallbacks for unknown colors
- Fixed ma-border-decorative mixin to properly detect and handle CSS variables
issue: DP-39213
impact: Patch
- project: Assets
component: Grid
description: |-
Added new CSS Grid mixins to replace deprecated bourbon-neat span-columns system.
- ma-grid: Creates CSS grid containers with customizable columns, gaps, and alignment
- ma-grid-span: Handles grid item spanning with support for legacy "X of Y" syntax
- ma-grid-responsive: Provides mobile-first responsive grids with customizable breakpoints
- ma-grid-two-column: Simple two-column layout with customizable ratios
- ma-grid-span-to-end: Helper for spanning from a column to grid end
- Includes input validation and developer warnings for better DX
- Updated components to migrate from span-columns to new grid mixins
issue: DP-39213
impact: Minor

Deprecated:
- project: Assets
component: Mixins
description: |-
Deprecated legacy bourbon-neat span-columns mixins in favor of CSS Grid.
- Added deprecation warnings to span-columns, shift, and omega mixins
- Provided modern CSS Grid alternatives in documentation
issue: DP-39213
impact: Minor
46 changes: 22 additions & 24 deletions packages/assets/scss/00-base/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
@use "variables" as *;
// breakpoint values used for below only
$bp-xs: 480px !default;
$bp-s: 620px !default;
$bp-m: 780px !default;
$bp-l: 910px !default;
$bp-xs: 480px !default;
$bp-s: 620px !default;
$bp-m: 780px !default;
$bp-l: 910px !default;
$bp-l-ex: 1000px !default;
$bp-xl: 1200px !default;

$bp-xl: 1200px !default;

// Global breakpoint media variables.
$bp-x-small-min: "min-width: " + ($bp-xs + 1) !default;
$bp-x-small-max: "max-width:" + $bp-xs !default;
$bp-small-min: "min-width: " + ($bp-s + 1) !default;
$bp-small-max: "max-width:" + $bp-s !default;
$bp-medium-min: "min-width: " + ($bp-m + 1) !default;
$bp-medium-max: "max-width:" + $bp-m !default;
$bp-large-min: "min-width: " + ($bp-l + 1) !default;
$bp-large-max: "max-width:" + $bp-l !default;
$bp-large-extended-min: "min-width: " + ($bp-l-ex + 1) !default;
$bp-large-extended-max: "max-width:" + $bp-l-ex !default;
$bp-x-large-min: "min-width: " + ($bp-xl + 1) !default;
$bp-x-large-max: "max-width:" + $bp-xl !default;
$bp-x-small-min: "min-width: " + ($bp-xs + 1) !default;
$bp-x-small-max: "max-width:" + $bp-xs !default;
$bp-small-min: "min-width: " + ($bp-s + 1) !default;
$bp-small-max: "max-width:" + $bp-s !default;
$bp-medium-min: "min-width: " + ($bp-m + 1) !default;
$bp-medium-max: "max-width:" + $bp-m !default;
$bp-large-min: "min-width: " + ($bp-l + 1) !default;
$bp-large-max: "max-width:" + $bp-l !default;
$bp-large-extended-min: "min-width: " + ($bp-l-ex + 1) !default;
$bp-large-extended-max: "max-width:" + $bp-l-ex !default;
$bp-x-large-min: "min-width: " + ($bp-xl + 1) !default;
$bp-x-large-max: "max-width:" + $bp-xl !default;

// See max-width in variables
$bp-page-width-min: "min-width:" + ($max-width + 1) !default;
$bp-page-width-max: "max-width:" + $max-width !default;

$bp-page-width-min: "min-width:" + ($max-width + 1) !default;
$bp-page-width-max: "max-width:" + $max-width !default;

// One-off breakpoints (consider consolidation)
$bp-centered-content-width: "min-width: 1315px" !default;

// Semi Global breakpoint media variables
// switch the header from full width to hamburger
$bp-header-toggle-min: "min-width: 941px" !default;
$bp-header-toggle-max: "max-width: 940px" !default;
$bp-header-toggle-min: "min-width: 941px" !default;
$bp-header-toggle-max: "max-width: 940px" !default;

// Feedback form custom breakpoint
$bp-feedback-min: "min-width: 650px" !default;
$bp-feedback-min: "min-width: 650px" !default;
Loading