diff --git a/.nx/version-plans/version-plan-1778097455598.md b/.nx/version-plans/version-plan-1778097455598.md
new file mode 100644
index 00000000000..a8459527534
--- /dev/null
+++ b/.nx/version-plans/version-plan-1778097455598.md
@@ -0,0 +1,6 @@
+---
+gamut-styles: major
+gamut: major
+---
+
+removes deprecated scss mixins and variables
diff --git a/packages/gamut-styles/README.md b/packages/gamut-styles/README.md
index a90586b56d5..1be7a4aa4ba 100644
--- a/packages/gamut-styles/README.md
+++ b/packages/gamut-styles/README.md
@@ -2,22 +2,7 @@
Base SCSS for Codecademy
-## Variables/
-
-This folder houses all shared SCSS style variables.
-It also contains a JavaScript file with color variables.
-
## Core/
This folder contains a base stylesheet for the app.
This should be imported **once** in your application.
-
-## Utils/
-
-This folder contains Sass functions (pure utilities with no stylesheet output values) and mixins (outputs CSS)
-to be used as needed both in Gamut and across the Codecademy app.
-
-The `utils.scss` and `core.scss` just import the index files from their respective folders, to make the syntax to import them from elsewhere easier, e.g.:
-
-`@use "~@codecademy/gamut-styles/utils";`
-`@use "~@codecademy/gamut-styles/core";`
diff --git a/packages/gamut-styles/core.scss b/packages/gamut-styles/core.scss
deleted file mode 100644
index 925bfab090d..00000000000
--- a/packages/gamut-styles/core.scss
+++ /dev/null
@@ -1 +0,0 @@
-@forward "core/index";
diff --git a/packages/gamut-styles/core/_fonts.scss b/packages/gamut-styles/core/_fonts.scss
deleted file mode 100644
index db1f4b32abb..00000000000
--- a/packages/gamut-styles/core/_fonts.scss
+++ /dev/null
@@ -1,131 +0,0 @@
-@font-face {
- font-family: "Nunito Sans";
- font-display: swap;
- src: url("../fonts/Nunito_Sans/nunitosans-regular-webfont.eot");
- src: url("../fonts/Nunito_Sans/nunitosans-regular-webfont.woff2")
- format("woff2"),
- url("../fonts/Nunito_Sans/nunitosans-regular-webfont.woff") format("woff"),
- url("../fonts/Nunito_Sans/nunitosans-regular-webfont.ttf") format("ttf");
- font-weight: normal;
-}
-
-@font-face {
- font-family: "Nunito Sans";
- font-display: swap;
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.eot");
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff2") format("woff2"),
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff") format("woff"),
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.ttf") format("ttf");
- font-weight: bold;
-}
-
-@font-face {
- font-family: "Regular Bold";
- font-display: swap;
- src: url("../fonts/Regular_Bold/Regular-BoldWEB.eot");
- src: url("../fonts/Regular_Bold/Regular-BoldWEB.woff2") format("woff2"),
- url("../fonts/Regular_Bold/Regular-BoldWEB.woff") format("woff"),
- url("../fonts/Regular_Bold/Regular-BoldWEB.svg") format("svg");
-}
-
-// because Regular has weird caret styles
-@font-face {
- font-family: "Regular Patch";
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.eot");
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff2") format("woff2"),
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff") format("woff"),
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.ttf") format("ttf");
- unicode-range: U+003C, U+003E;
-}
-
-@font-face {
- font-display: swap;
- font-family: "Apercu";
- font-style: normal;
- font-weight: normal;
- src: url("../fonts/Apercu/apercu-regular-pro.woff2") format("woff2"),
- url("../fonts/Apercu/apercu-regular-pro.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Apercu";
- font-style: normal;
- font-weight: bold;
- src: url("../fonts/Apercu/apercu-bold-pro.woff2") format("woff2"),
- url("../fonts/Apercu/apercu-bold-pro.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Apercu";
- font-style: italic;
- font-weight: normal;
- src: url("../fonts/Apercu/apercu-italic-pro.woff2") format("woff2"),
- url("../fonts/Apercu/apercu-italic-pro.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Apercu";
- font-style: italic;
- font-weight: bold;
- src: url("../fonts/Apercu/apercu-bold-italic-pro.woff2") format("woff2"),
- url("../fonts/Apercu/apercu-bold-italic-pro.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Suisse";
- font-weight: normal;
- src: url("../fonts/Suisse/SuisseIntlMono-Regular-WebS.woff2") format("woff2"),
- url("../fonts/Suisse/SuisseIntlMono-Regular-WebS.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Suisse";
- font-weight: bold;
- src: url("../fonts/Suisse/SuisseIntlMono-Bold-WebS.woff2") format("woff2"),
- url("../fonts/Suisse/SuisseIntlMono-Bold-WebS.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Hanken Grotesk";
- font-style: normal;
- font-weight: normal;
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-regular.woff2")
- format("woff2"),
- url("../fonts/Hanken_Grotesk/hanken-grotesk-regular.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Hanken Grotesk";
- font-style: normal;
- font-weight: bold;
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-bold.woff2") format("woff2"),
- url("../fonts/Hanken_Grotesk/hanken-grotesk-bold.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Hanken Grotesk";
- font-style: italic;
- font-weight: normal;
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-italic.woff2")
- format("woff2"),
- url("../fonts/Hanken_Grotesk/hanken-grotesk-italic.woff") format("woff");
-}
-
-@font-face {
- font-display: swap;
- font-family: "Hanken Grotesk";
- font-style: italic;
- font-weight: bold;
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-bold-italic.woff2")
- format("woff2"),
- url("../fonts/Hanken_Grotesk/hanken-grotesk-bold-italic.woff")
- format("woff");
-}
diff --git a/packages/gamut-styles/core/_reboot.scss b/packages/gamut-styles/core/_reboot.scss
deleted file mode 100644
index 93fb9c231e3..00000000000
--- a/packages/gamut-styles/core/_reboot.scss
+++ /dev/null
@@ -1,487 +0,0 @@
-// https://raw.githubusercontent.com/twbs/bootstrap/v4-dev/scss/_reboot.scss
-
-// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
-
-// Reboot
-//
-// Normalization of HTML elements, manually forked from Normalize.css to remove
-// styles targeting irrelevant browsers while applying new styles.
-//
-// Normalize is licensed MIT. https://github.com/necolas/normalize.css
-
-// Document
-//
-// 1 Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
-// 2 Change the default font family in all browsers.
-// 3 Correct the line height in all browsers.
-// 4 Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
-// 5 Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so
-// we force a non-overlapping, non-auto-hiding scrollbar to counteract.
-// 6 Change the default tap highlight to be completely transparent in iOS.
-
-*,
-*::before,
-*::after {
- box-sizing: inherit; // 1
-}
-
-html {
- box-sizing: border-box;
- font-family: sans-serif; // 2
- line-height: 1.15; // 3
- -webkit-text-size-adjust: 100%; // 4
- -ms-text-size-adjust: 100%; // 4
- -ms-overflow-style: scrollbar; // 5
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 6
-}
-
-// stylelint-disable selector-list-comma-newline-after
-// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
-article,
-aside,
-dialog,
-figcaption,
-figure,
-footer,
-header,
-hgroup,
-main,
-nav,
-section {
- display: block;
-}
-// stylelint-enable selector-list-comma-newline-after
-
-// Body
-//
-// 1. Remove the margin in all browsers.
-// 2. As a best practice, apply a default `background-color`.
-// 3. Set an explicit initial text-align value so that we can later use the
-// the `inherit` value on things like `
` elements.
-
-body {
- margin: 0; // 1
- font-family: $font-family-base;
- font-weight: $font-weight-base;
- line-height: $line-height-base;
- color: $color-body;
- text-align: left; // 3
- background-color: $bg-body; // 2
-}
-
-// Suppress the focus outline on elements that cannot be accessed via keyboard.
-// This prevents an unwanted focus outline from appearing around elements that
-// might still respond to pointer events.
-//
-// Credit: https://github.com/suitcss/base
-[tabindex="-1"]:focus {
- outline: 0 !important;
-}
-
-// Content grouping
-//
-// 1. Add the correct box sizing in Firefox.
-// 2. Show the overflow in Edge and IE.
-
-hr {
- box-sizing: content-box; // 1
- height: 0; // 1
- overflow: visible; // 2
-}
-
-//
-// Typography
-//
-
-// Remove top margins from headings
-//
-// By default, ``-`` all receive top and bottom margins. We nuke the top
-// margin for easier control within type scales as it avoids margin collapsing.
-// stylelint-disable selector-list-comma-newline-after
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- margin-top: 0;
- margin-bottom: $margin-bottom-headings;
-}
-// stylelint-enable selector-list-comma-newline-after
-
-// Reset margins on paragraphs
-//
-// Similarly, the top margin on ``s get reset. However, we also reset the
-// bottom margin to use `rem` units instead of `em`.
-p {
- margin-top: 0;
- margin-bottom: $margin-bottom-paragraph;
-}
-
-// Abbreviations
-//
-// 1. Remove the bottom border in Firefox 39-.
-// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
-// 3. Add explicit cursor to indicate changed behavior.
-// 4. Duplicate behavior to the data-* attribute for our tooltip plugin
-
-abbr[title],
-abbr[data-original-title] {
- // 4
- text-decoration: underline; // 2
- text-decoration: underline dotted; // 2
- cursor: help; // 3
- border-bottom: 0; // 1
-}
-
-address {
- margin-bottom: 1rem;
- font-style: normal;
- line-height: inherit;
-}
-
-ol,
-ul,
-dl {
- margin-top: 0;
- margin-bottom: 1rem;
-}
-
-ol ol,
-ul ul,
-ol ul,
-ul ol {
- margin-bottom: 0;
-}
-
-dt {
- font-weight: $font-weight-dt;
-}
-
-dd {
- margin-bottom: 0.5rem;
- margin-left: 0; // Undo browser default
-}
-
-blockquote {
- margin: 0 0 1rem;
-}
-
-dfn {
- font-style: italic; // Add the correct font style in Android 4.3-
-}
-
-// stylelint-disable font-weight-notation
-b,
-strong {
- font-weight: $font-weight-bold; // Add the correct font weight in Chrome, Edge, and Safari
-}
-// stylelint-enable font-weight-notation
-
-small {
- font-size: $font-size-small; // Add the correct font size in all browsers
-}
-
-//
-// Prevent `sub` and `sup` elements from affecting the line height in
-// all browsers.
-//
-
-sub,
-sup {
- position: relative;
- font-size: 75%;
- line-height: 0;
- vertical-align: baseline;
-}
-
-sub {
- bottom: -0.25em;
-}
-sup {
- top: -0.5em;
-}
-
-//
-// Links
-//
-
-a {
- color: $color-link;
- text-decoration: $decoration-link;
- background-color: transparent; // Remove the gray background on active links in IE 10.
- -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.
-
- &:hover {
- text-decoration: $hover-decoration-link;
- }
-}
-
-// And undo these styles for placeholder links/named anchors (without href)
-// which have not been made explicitly keyboard-focusable (without tabindex).
-// It would be more straightforward to just use a[href] in previous block, but that
-// causes specificity issues in many other styles that are too complex to fix.
-// See https://github.com/twbs/bootstrap/issues/19402
-
-a:not([href]):not([tabindex]) {
- color: inherit;
- text-decoration: none;
-
- &:hover,
- &:focus {
- color: inherit;
- text-decoration: none;
- }
-
- &:focus {
- outline: 0;
- }
-}
-
-//
-// Code
-//
-
-// stylelint-disable font-family-no-duplicate-names
-pre,
-code,
-kbd,
-samp {
- font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.
- font-size: 1em; // Correct the odd `em` font sizing in all browsers.
-}
-// stylelint-enable font-family-no-duplicate-names
-
-pre {
- // Remove browser default top margin
- margin-top: 0;
- // Reset browser default of `1em` to use `rem`s
- margin-bottom: 1rem;
- // Don't allow content to break outside
- overflow: auto;
- // We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so
- // we force a non-overlapping, non-auto-hiding scrollbar to counteract.
- -ms-overflow-style: scrollbar;
-}
-
-//
-// Figures
-//
-
-figure {
- // Apply a consistent margin strategy (matches our type styles).
- margin: 0 0 1rem;
-}
-
-//
-// Images and content
-//
-
-img {
- vertical-align: middle;
- border-style: none; // Remove the border on images inside links in IE 10-.
-}
-
-svg:not(:root) {
- overflow: hidden; // Hide the overflow in IE
-}
-
-//
-// Tables
-//
-
-table {
- border-collapse: collapse; // Prevent double borders
-}
-
-caption {
- padding-top: $spacer;
- padding-bottom: $spacer;
- color: $spacer;
- text-align: left;
- caption-side: bottom;
-}
-
-th {
- // Matches default ` | ` alignment by inheriting from the ``, or the
- // closest parent with a set `text-align`.
- text-align: inherit;
-}
-
-//
-// Forms
-//
-
-label {
- // Allow labels to use `margin` for spacing.
- display: inline-block;
- margin-bottom: $margin-bottom-label;
-}
-
-// Remove the default `border-radius` that macOS Chrome adds.
-//
-// Details at https://github.com/twbs/bootstrap/issues/24093
-button {
- border-radius: 0;
-}
-
-// Work around a Firefox/IE bug where the transparent `button` background
-// results in a loss of the default `button` focus styles.
-//
-// Credit: https://github.com/suitcss/base/
-button:focus-visible {
- outline: 1px dotted;
- outline: 5px auto -webkit-focus-ring-color;
-}
-
-input,
-button,
-select,
-optgroup,
-textarea {
- margin: 0; // Remove the margin in Firefox and Safari
- font-family: inherit;
- font-size: inherit;
- line-height: inherit;
-}
-
-button,
-input {
- overflow: visible; // Show the overflow in Edge
-}
-
-button,
-select {
- text-transform: none; // Remove the inheritance of text transform in Firefox
-}
-
-// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
-// controls in Android 4.
-// 2. Correct the inability to style clickable types in iOS and Safari.
-button,
-html [type="button"],
-// 1 [type="reset"],
-[type="submit"] {
- -webkit-appearance: button; // 2
-}
-
-// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
-button::-moz-focus-inner,
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner {
- padding: 0;
- border-style: none;
-}
-
-input[type="radio"],
-input[type="checkbox"] {
- box-sizing: border-box; // 1. Add the correct box sizing in IE 10-
- padding: 0; // 2. Remove the padding in IE 10-
-}
-
-input[type="date"],
-input[type="time"],
-input[type="datetime-local"],
-input[type="month"] {
- // Remove the default appearance of temporal inputs to avoid a Mobile Safari
- // bug where setting a custom line-height prevents text from being vertically
- // centered within the input.
- // See https://bugs.webkit.org/show_bug.cgi?id=139848
- // and https://github.com/twbs/bootstrap/issues/11266
- -webkit-appearance: listbox;
-}
-
-textarea {
- overflow: auto; // Remove the default vertical scrollbar in IE.
- // Textareas should really only resize vertically so they don't break their (horizontal) containers.
- resize: vertical;
-}
-
-fieldset {
- // Browsers set a default `min-width: min-content;` on fieldsets,
- // unlike e.g. ` `s, which have `min-width: 0;` by default.
- // So we reset that to ensure fieldsets behave more like a standard block element.
- // See https://github.com/twbs/bootstrap/issues/12359
- // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
- min-width: 0;
- // Reset the default outline behavior of fieldsets so they don't affect page layout.
- padding: 0;
- margin: 0;
- border: 0;
-}
-
-// 1. Correct the text wrapping in Edge and IE.
-// 2. Correct the color inheritance from `fieldset` elements in IE.
-legend {
- display: block;
- width: 100%;
- max-width: 100%; // 1
- padding: 0;
- margin-bottom: 0.5rem;
- font-size: 1.5rem;
- line-height: inherit;
- color: inherit; // 2
- white-space: normal; // 1
-}
-
-progress {
- vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.
-}
-
-// Correct the cursor style of increment and decrement buttons in Chrome.
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto;
-}
-
-[type="search"] {
- // This overrides the extra rounded corners on search inputs in iOS so that our
- // `.form-control` class can properly style them. Note that this cannot simply
- // be added to `.form-control` as it's not specific enough. For details, see
- // https://github.com/twbs/bootstrap/issues/11586.
- outline-offset: -2px; // 2. Correct the outline style in Safari.
- -webkit-appearance: none;
-}
-
-//
-// Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
-//
-
-[type="search"]::-webkit-search-cancel-button,
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-
-//
-// 1. Correct the inability to style clickable types in iOS and Safari.
-// 2. Change font properties to `inherit` in Safari.
-//
-
-::-webkit-file-upload-button {
- font: inherit; // 2
- -webkit-appearance: button; // 1
-}
-
-//
-// Correct element displays
-//
-
-output {
- display: inline-block;
-}
-
-summary {
- display: list-item; // Add the correct display in all browsers
- cursor: pointer;
-}
-
-template {
- display: none; // Add the correct display in IE
-}
-
-// Always hide an element with the `hidden` HTML attribute (from PureCSS).
-// Needed for proper display in IE 10-.
-[hidden] {
- display: none !important;
-}
diff --git a/packages/gamut-styles/core/_typography.scss b/packages/gamut-styles/core/_typography.scss
deleted file mode 100644
index fc466283395..00000000000
--- a/packages/gamut-styles/core/_typography.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-// https://raw.githubusercontent.com/twbs/bootstrap/v4-dev/scss/_type.scss
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- margin-bottom: $margin-bottom-headings;
- font-weight: $font-weight-headings;
- line-height: $line-height-headings;
-}
-
-h1 {
- font-size: $font-size-h1;
-}
-h2 {
- font-size: $font-size-h2;
-}
-h3 {
- font-size: $font-size-h3;
-}
-h4 {
- font-size: $font-size-h4;
-}
-h5 {
- font-size: $font-size-h5;
-}
-h6 {
- font-size: $font-size-h6;
-}
-
-small {
- font-size: $font-size-small;
- font-weight: $font-weight-normal;
-}
diff --git a/packages/gamut-styles/core/index.scss b/packages/gamut-styles/core/index.scss
deleted file mode 100644
index 6dc3ab28275..00000000000
--- a/packages/gamut-styles/core/index.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-@forward "../utils";
-@forward "reboot";
-@forward "fonts";
-@forward "typography";
diff --git a/packages/gamut-styles/utils.scss b/packages/gamut-styles/utils.scss
deleted file mode 100644
index 28481da2ac0..00000000000
--- a/packages/gamut-styles/utils.scss
+++ /dev/null
@@ -1 +0,0 @@
-@forward "utils/index";
diff --git a/packages/gamut-styles/utils/functions/index.scss b/packages/gamut-styles/utils/functions/index.scss
deleted file mode 100644
index c3ac6ae3a85..00000000000
--- a/packages/gamut-styles/utils/functions/index.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-@use "sass:math";
-
-@function strip-units($number) {
- @return math.div($number, ($number * 0 + 1));
-}
-
-@function px-rem($px, $base-px: 16) {
- @return calc(strip-units($px) / strip-units($base-px)) * 1rem;
-}
-
-@function px-em($px, $base-px: 16) {
- @return calc(strip-units($px) / strip-units($base-px)) * 1em;
-}
-
-// Math
-@function pow($number, $exponent) {
- $value: 1;
-
- @if $exponent > 0 {
- @for $i from 1 through $exponent {
- $value: $value * $number;
- }
- }
-
- @return $value;
-}
diff --git a/packages/gamut-styles/utils/index.scss b/packages/gamut-styles/utils/index.scss
deleted file mode 100644
index 40fe2ffb32e..00000000000
--- a/packages/gamut-styles/utils/index.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-// import order is unfortunately important here
-// variables needs to access functions, and mixins needs to access variables
-@forward "functions/index";
-@forward "variables/index";
-@forward "mixins/index";
diff --git a/packages/gamut-styles/utils/mixins/_font-smoothing.scss b/packages/gamut-styles/utils/mixins/_font-smoothing.scss
deleted file mode 100644
index 254bcf9b06e..00000000000
--- a/packages/gamut-styles/utils/mixins/_font-smoothing.scss
+++ /dev/null
@@ -1,9 +0,0 @@
-@mixin font-smoothing($value: on) {
- @if $value == on {
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- } @else {
- -webkit-font-smoothing: subpixel-antialiased;
- -moz-osx-font-smoothing: auto;
- }
-}
diff --git a/packages/gamut-styles/utils/mixins/_no-select.scss b/packages/gamut-styles/utils/mixins/_no-select.scss
deleted file mode 100644
index 4dc5460719e..00000000000
--- a/packages/gamut-styles/utils/mixins/_no-select.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-@mixin no-select {
- -webkit-touch-callout: none;
- user-select: none;
-}
diff --git a/packages/gamut-styles/utils/mixins/_responsive.scss b/packages/gamut-styles/utils/mixins/_responsive.scss
deleted file mode 100644
index 448dc1e4158..00000000000
--- a/packages/gamut-styles/utils/mixins/_responsive.scss
+++ /dev/null
@@ -1,85 +0,0 @@
-// Try to use these simple mixins if possible for your responsive needs
-@use "../variables/grid" as *;
-
-// Example usage:
-//
-// .grid {
-// display: flex;
-// flex-direction: column;
-// @include md-viewport {
-// flex-direction: row;
-// }
-// }
-
-@mixin sm-viewport {
- @media only screen and (min-width: $grid-sm-min) {
- @content;
- }
-}
-
-@mixin md-viewport {
- @media only screen and (min-width: $grid-md-min) {
- @content;
- }
-}
-
-@mixin lg-viewport {
- @media only screen and (min-width: $grid-lg-min) {
- @content;
- }
-}
-
-@mixin xl-viewport {
- @media only screen and (min-width: $grid-xl-min) {
- @content;
- }
-}
-
-// Media query abstractions if you need more complex responsive behavior
-// or custom breakpoints
-
-@mixin screen-size-lte($max) {
- @media screen and (max-width: $max) {
- @content;
- }
-}
-
-@mixin screen-size-between($min, $max) {
- @media screen and (min-width: $min) and (max-width: $max) {
- @content;
- }
-}
-
-@mixin screen-size-gte($min) {
- @media screen and (min-width: $min) {
- @content;
- }
-}
-
-// Named view port mixin
-
-@mixin getViewport($viewport) {
- @if $viewport == "xl" {
- @include xl-viewport() {
- @content;
- }
- }
- @if $viewport == "lg" {
- @include lg-viewport {
- @content;
- }
- }
- @if $viewport == "md" {
- @include md-viewport {
- @content;
- }
- }
- @if $viewport == "sm" {
- @include sm-viewport {
- @content;
- }
- }
- @if $viewport == "xs" {
- @content;
- }
-}
diff --git a/packages/gamut-styles/utils/mixins/_shadow.scss b/packages/gamut-styles/utils/mixins/_shadow.scss
deleted file mode 100644
index 9bf527d9e35..00000000000
--- a/packages/gamut-styles/utils/mixins/_shadow.scss
+++ /dev/null
@@ -1,19 +0,0 @@
-// depth based box-shadows
-
-@mixin shadow($depth: 1) {
- @if $depth == 1 {
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
- }
- @if $depth == 2 {
- box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
- }
- @if $depth == 3 {
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
- }
- @if $depth == 4 {
- box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
- }
- @if $depth == 5 {
- box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
- }
-}
diff --git a/packages/gamut-styles/utils/mixins/_sr-only.scss b/packages/gamut-styles/utils/mixins/_sr-only.scss
deleted file mode 100644
index e5a321f3f3d..00000000000
--- a/packages/gamut-styles/utils/mixins/_sr-only.scss
+++ /dev/null
@@ -1,37 +0,0 @@
-// shamelessly stolen from bootstrap
-// https://github.com/twbs/bootstrap/blob/2085c142679563189dbc34ec6bf4b00e32b8f615/scss/mixins/_screen-reader.scss
-
-@mixin screenreader-only {
- position: absolute;
- width: 1px;
- height: 1px;
- padding: 0;
- overflow: hidden;
- clip: rect(0, 0, 0, 0);
- white-space: nowrap;
- clip-path: inset(50%);
- border: 0;
-}
-
-@mixin sr-only {
- @warn "This is deprecated, please use screenreader-only";
- @include screenreader-only;
-}
-
-@mixin screenreader-only-focusable {
- &:active,
- &:focus {
- position: static;
- width: auto;
- height: auto;
- overflow: visible;
- clip: auto;
- white-space: normal;
- clip-path: none;
- }
-}
-
-@mixin sr-only-focusable {
- @warn "This is deprecated, please use screenreader-only-focusable";
- @include screenreader-only-focusable;
-}
diff --git a/packages/gamut-styles/utils/mixins/index.scss b/packages/gamut-styles/utils/mixins/index.scss
deleted file mode 100644
index 97ed010fff6..00000000000
--- a/packages/gamut-styles/utils/mixins/index.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@forward "font-smoothing";
-@forward "no-select";
-@forward "responsive";
-@forward "shadow";
-@forward "sr-only";
-@forward "legacy";
diff --git a/packages/gamut-styles/utils/mixins/legacy.scss b/packages/gamut-styles/utils/mixins/legacy.scss
deleted file mode 100644
index e0bf22eff9e..00000000000
--- a/packages/gamut-styles/utils/mixins/legacy.scss
+++ /dev/null
@@ -1,48 +0,0 @@
-// Legacy Helper mixins
-@use "../variables/index.scss";
-@use "../mixins/responsive" as *;
-
-// these variables should be located in ../variables
-// instead, they're co-located with their legacy functions so they can be removed more easily
-// NOTE: when removing, also remove the legacyBreakpoints JS object in gamut-styles/variables.js
-$bp-phone: 0;
-$bp-tablet: 736px;
-$bp-desktop: 960px;
-
-@mixin device-phone {
- @include screen-size-between($bp-phone, $bp-tablet - 1) {
- @content;
- }
-}
-
-@mixin device-tablet {
- @include screen-size-between($bp-tablet, $bp-desktop - 1) {
- @content;
- }
-}
-
-@mixin device-desktop {
- @include screen-size-gte($bp-desktop) {
- @content;
- }
-}
-
-@mixin devices($devices...) {
- @each $device in $devices {
- @if $device == phone {
- @include device-phone {
- @content;
- }
- }
- @if $device == tablet {
- @include device-tablet {
- @content;
- }
- }
- @if $device == desktop {
- @include device-desktop {
- @content;
- }
- }
- }
-}
diff --git a/packages/gamut-styles/utils/variables/_base.scss b/packages/gamut-styles/utils/variables/_base.scss
deleted file mode 100644
index f7e29b6aaa7..00000000000
--- a/packages/gamut-styles/utils/variables/_base.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-@use "colors" as *;
-
-$base-unit: 1rem;
-$spacer: $base-unit;
-$box-shadow: 0 1px 4px 0 $color-shadow;
-$box-shadow-hovered: 0 4px 10px 0 $color-shadow;
-$height-header: 4rem;
diff --git a/packages/gamut-styles/utils/variables/_colors.scss b/packages/gamut-styles/utils/variables/_colors.scss
deleted file mode 100644
index 71b931f762e..00000000000
--- a/packages/gamut-styles/utils/variables/_colors.scss
+++ /dev/null
@@ -1,302 +0,0 @@
-// NOTE: These are actively being deprecated. Use with caution.
-
-@use "sass:color";
-// =======================================
-// STANDARD COLORS
-// =======================================
-
-$color-beige: #fff0e5;
-$color-light-blue: #66c4ff;
-$color-blue: #1557ff;
-$color-green: #088a27;
-$color-light-green: #aee938;
-$color-navy: #10162f;
-$color-orange: #ff8c00;
-$color-pink: #f966ff;
-$color-red: #e91c11;
-$color-yellow: #ffd300;
-$color-hyper: #3a10e5;
-$color-pale-blue: #f5fcff;
-$color-pale-green: #f5ffe3;
-$color-pale-pink: #fff5ff;
-$color-pale-yellow: #fffae5;
-
-// =======================================
-// INTERACTIVE COLORS
-// =======================================
-
-$color-interactive-dark: $color-hyper;
-$color-interactive-light: $color-yellow;
-
-// =======================================
-// OTHER COLORS
-// =======================================
-
-$color-white: #ffffff;
-$color-black: #000000;
-$color-shadow: rgba($color-black, 0.15);
-
-// =======================================
-// PLATFORM COLORS
-// =======================================
-
-$platform-mint-500: #37c3be;
-
-$platform-mint-600: color.mix($color-black, $platform-mint-500, 20%);
-$platform-mint-700: color.mix($color-black, $platform-mint-500, 40%);
-
-$platform-purple-500: #69639a;
-
-$platform-purple-200: color.mix($color-white, $platform-purple-500, 60%);
-$platform-purple-300: color.mix($color-white, $platform-purple-500, 40%);
-$platform-purple-400: color.mix($color-white, $platform-purple-500, 20%);
-$platform-purple-600: color.mix($color-black, $platform-purple-500, 20%);
-$platform-purple-700: color.mix($color-black, $platform-purple-500, 40%);
-$platform-purple-800: color.mix($color-black, $platform-purple-500, 60%);
-$platform-purple-900: color.mix($color-black, $platform-purple-500, 80%);
-
-// =======================================
-// EDITOR COLORS
-// =======================================
-
-$color-editor-blue: #83fff5;
-$color-editor-deep-purple: #cc7bc2;
-$color-editor-gray: #939598;
-$color-editor-green: #b4d353;
-$color-editor-orange: #ff8973;
-$color-editor-purple: #b3ccff;
-$color-editor-red: #ea6c8b;
-$color-editor-yellow: #ffe083;
-
-// =======================================
-// LEGACY COLOR SWATCHES
-// =======================================
-
-$color-blue-100: #c8d7fa;
-$color-blue-200: #a5befa;
-$color-blue-300: #7da2fa;
-$color-blue-400: #5788fa;
-$color-blue-500: #3069f0;
-$color-blue-600: #2d5dcc;
-$color-blue-700: #2e4a99;
-$color-blue-800: #233466;
-$color-blue-900: #141c3a;
-$color-blue-1000: #10162f;
-$color-blue-1100: #0a0e1d;
-
-$color-pink-100: #ffd9fc;
-$color-pink-200: #ffbffa;
-$color-pink-300: #ffa6f8;
-$color-pink-400: #f288e9;
-$color-pink-500: #d957d9;
-$color-pink-600: #b035c9;
-$color-pink-700: #9129a6;
-$color-pink-800: #702080;
-$color-pink-900: #43134d;
-
-$color-purple-100: #d5ccff;
-$color-purple-200: #c0b6f2;
-$color-purple-300: #ac9df2;
-$color-purple-400: #917ef2;
-$color-purple-500: #7c5ce6;
-$color-purple-600: #6437cc;
-$color-purple-700: #4b2999;
-$color-purple-800: #381f73;
-$color-purple-900: #231347;
-
-$color-red-100: #ffd3cc;
-$color-red-200: #ffb8ad;
-$color-red-300: #ff988c;
-$color-red-400: #ff7566;
-$color-red-500: #fd4d3f;
-$color-red-600: #e53935;
-$color-red-700: #bf2e2c;
-$color-red-800: #992523;
-$color-red-900: #661917;
-
-$color-green-100: #bbfae5;
-$color-green-200: #91f2d2;
-$color-green-300: #6aebc0;
-$color-green-400: #4fe0b0;
-$color-green-500: #47cca0;
-$color-green-600: #3eb38c;
-$color-green-700: #318c6e;
-$color-green-800: #246650;
-$color-green-900: #164032;
-
-$color-orange-100: #ffe9c8;
-$color-orange-200: #ffd093;
-$color-orange-300: #ffb764;
-$color-orange-400: #ff9f3c;
-$color-orange-500: #ff881d;
-$color-orange-600: #fb7106;
-$color-orange-700: #dc5a03;
-$color-orange-800: #ba4604;
-$color-orange-900: #963606;
-
-$color-yellow-100: #fff7cc;
-$color-yellow-200: #fff2b3;
-$color-yellow-300: #ffec8c;
-$color-yellow-400: #ffe359;
-$color-yellow-500: #ffd500;
-$color-yellow-600: #ffb92e;
-$color-yellow-700: #e69729;
-$color-yellow-800: #b37620;
-$color-yellow-900: #805417;
-
-$color-gray-100: #f6f5fa;
-$color-gray-200: #dddce0;
-$color-gray-300: #c4c3c7;
-$color-gray-400: #a2a2a6;
-$color-gray-500: #828285;
-$color-gray-600: #646466;
-$color-gray-700: #4b4b4d;
-$color-gray-800: #323233;
-$color-gray-900: #19191a;
-
-$color-royal-blue: #6400e4;
-
-// =======================================
-// BRAND COLORS
-// =======================================
-
-$brand-red: $color-red-500;
-$brand-yellow: $color-yellow-500;
-$brand-orange: $color-orange-400;
-$brand-purple: $color-royal-blue;
-$brand-pink: $color-pink-400;
-$brand-mint: $color-green-300;
-$brand-magenta: $color-pink-700;
-$brand-beige: #efd9ca;
-$brand-blue: $color-blue-500;
-$brand-dark-blue: $color-blue-900;
-$brand-lavender: $color-purple-500;
-
-$deprecated-color-white: #ffffff;
-$deprecated-color-black: #000000;
-
-$deprecated-gamut-purple-500: #69639a;
-
-$deprecated-gamut-purple-100: color.mix(
- $color-white,
- $deprecated-gamut-purple-500,
- 80%
-);
-$deprecated-gamut-purple-200: color.mix(
- $color-white,
- $deprecated-gamut-purple-500,
- 60%
-);
-$deprecated-gamut-purple-300: color.mix(
- $color-white,
- $deprecated-gamut-purple-500,
- 40%
-);
-$deprecated-gamut-purple-400: color.mix(
- $color-white,
- $deprecated-gamut-purple-500,
- 20%
-);
-$deprecated-gamut-purple-600: color.mix(
- $color-black,
- $deprecated-gamut-purple-500,
- 20%
-);
-$deprecated-gamut-purple-700: color.mix(
- $color-black,
- $deprecated-gamut-purple-500,
- 40%
-);
-$deprecated-gamut-purple-800: color.mix(
- $color-black,
- $deprecated-gamut-purple-500,
- 60%
-);
-$deprecated-gamut-purple-900: color.mix(
- $color-black,
- $deprecated-gamut-purple-500,
- 80%
-);
-
-$deprecated-gamut-royal-blue-500: #4b35ef;
-
-$deprecated-gamut-royal-blue-600: color.mix(
- $color-black,
- $deprecated-gamut-royal-blue-500,
- 20%
-);
-$deprecated-gamut-royal-blue-700: color.mix(
- $color-black,
- $deprecated-gamut-royal-blue-500,
- 40%
-);
-$deprecated-gamut-royal-blue-800: color.mix(
- $color-black,
- $deprecated-gamut-royal-blue-500,
- 60%
-);
-
-$deprecated-gamut-mint-500: #37c3be;
-
-$deprecated-gamut-mint-100: color.mix(
- $color-white,
- $deprecated-gamut-mint-500,
- 80%
-);
-$deprecated-gamut-mint-200: color.mix(
- $color-white,
- $deprecated-gamut-mint-500,
- 60%
-);
-$deprecated-gamut-mint-300: color.mix(
- $color-white,
- $deprecated-gamut-mint-500,
- 40%
-);
-$deprecated-gamut-mint-400: color.mix(
- $color-white,
- $deprecated-gamut-mint-500,
- 20%
-);
-$deprecated-gamut-mint-600: color.mix(
- $color-black,
- $deprecated-gamut-mint-500,
- 20%
-);
-$deprecated-gamut-mint-700: color.mix(
- $color-black,
- $deprecated-gamut-mint-500,
- 40%
-);
-$deprecated-gamut-mint-800: color.mix(
- $color-black,
- $deprecated-gamut-mint-500,
- 60%
-);
-$deprecated-gamut-mint-900: color.mix(
- $color-black,
- $deprecated-gamut-mint-500,
- 80%
-);
-
-$deprecated-gamut-purple: $deprecated-gamut-purple-500;
-$deprecated-gamut-royal-blue: $deprecated-gamut-royal-blue-500;
-$deprecated-gamut-mint: $deprecated-gamut-mint-500;
-
-$deprecated-color-grey-1: #e9eaea;
-$deprecated-color-grey-2: #d4d5d6;
-$deprecated-color-grey-3: #bebfc1;
-$deprecated-color-grey-4: #939598;
-$deprecated-color-grey-5: #3e3e40;
-$deprecated-color-blue: #52b1db;
-$deprecated-color-mint: #34b3a0;
-$deprecated-color-red: #f65a5b;
-
-$deprecated-swatches-cc-blue-500: #225470;
-$deprecated-swatches-cc-blue-700: #204056;
-
-$deprecated-swatches-grey-blue-500: #57646e;
-$deprecated-swatches-grey-blue-600: #354551;
-
-$deprecated-swatches-mint-700: #34b3a0;
-$deprecated-swatches-mint-800: #1a7b72;
diff --git a/packages/gamut-styles/utils/variables/_grid.scss b/packages/gamut-styles/utils/variables/_grid.scss
deleted file mode 100755
index cded5f51b31..00000000000
--- a/packages/gamut-styles/utils/variables/_grid.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-// Overrides for the Grid component
-@use "../functions/index.scss" as *;
-
-// NOTE: When updating, make sure you also update the gamut-styles/variables.js file
-
-$max-content-width: 1440px;
-
-$grid-cols: 12;
-$grid-gutter-width: px-rem(16);
-$grid-outer-margin: px-rem(16);
-$grid-xs-min: px-rem(480);
-$grid-sm-min: px-rem(768);
-$grid-md-min: px-rem(1024);
-$grid-lg-min: px-rem(1200);
-$grid-xl-min: px-rem($max-content-width);
diff --git a/packages/gamut-styles/utils/variables/_responsive.scss b/packages/gamut-styles/utils/variables/_responsive.scss
deleted file mode 100644
index 933735a2c18..00000000000
--- a/packages/gamut-styles/utils/variables/_responsive.scss
+++ /dev/null
@@ -1 +0,0 @@
-$screenSizes: ("xs", "sm", "md", "lg", "xl");
diff --git a/packages/gamut-styles/utils/variables/_typography.scss b/packages/gamut-styles/utils/variables/_typography.scss
deleted file mode 100644
index 2343cba33a2..00000000000
--- a/packages/gamut-styles/utils/variables/_typography.scss
+++ /dev/null
@@ -1,56 +0,0 @@
-@use "base";
-@use "colors";
-
-// Font Families:
-
-$font-family-accent: "Suisse", "Apercu", -apple-system, BlinkMacSystemFont,
- "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
- "Helvetica Neue", sans-serif;
-
-$font-family-base: "Apercu", -apple-system, BlinkMacSystemFont, "Segoe UI",
- "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
- sans-serif;
-
-$font-monospace: Monaco, Menlo, "Ubuntu Mono", "Droid Sans Mono", Consolas,
- monospace;
-
-$font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu",
- "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-
-// Font Weights
-
-$font-weight-light: 300;
-$font-weight-normal: normal;
-$font-weight-bold: bold;
-$font-weight-base: $font-weight-normal;
-$font-weight-headings: $font-weight-bold;
-$font-weight-dt: $font-weight-bold;
-
-// Font colors
-
-$color-body: colors.$color-navy;
-$color-headings: colors.$color-gray-900;
-$bg-body: colors.$color-white;
-$color-link: colors.$deprecated-gamut-royal-blue-500;
-$hover-color-link: colors.$deprecated-gamut-royal-blue-600;
-$decoration-link: none;
-$hover-decoration-link: underline;
-
-// Font margins
-
-$margin-bottom-paragraph: base.$spacer;
-$margin-bottom-headings: base.$spacer;
-$margin-bottom-label: 0;
-$line-height-base: 1.5;
-$line-height-headings: 1.1;
-
-// Font sizes
-
-$font-size-base: base.$base-unit;
-$font-size-h1: px-rem(64);
-$font-size-h2: px-rem(44);
-$font-size-h3: px-rem(34);
-$font-size-h4: px-rem(26);
-$font-size-h5: px-rem(22);
-$font-size-h6: px-rem(20);
-$font-size-small: 85%;
diff --git a/packages/gamut-styles/utils/variables/index.js b/packages/gamut-styles/utils/variables/index.js
deleted file mode 100644
index 88af9701f32..00000000000
--- a/packages/gamut-styles/utils/variables/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-if (process.env.NODE_ENV === 'development') {
- // eslint-disable-next-line no-console
- console.warn(
- 'Importing from `gamut-styles/utils/variables` is now deprecated, please import directly from the gamut-styles package'
- );
-}
-
-export * from '../../dist/variables';
diff --git a/packages/gamut-styles/utils/variables/index.scss b/packages/gamut-styles/utils/variables/index.scss
deleted file mode 100644
index 6edb4e9ddd6..00000000000
--- a/packages/gamut-styles/utils/variables/index.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@forward "colors";
-@forward "base";
-@forward "grid";
-@forward "typography";
-@forward "responsive";
diff --git a/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/index.module.scss b/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/index.module.scss
index 6eae8bfe237..9f61025b2e8 100644
--- a/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/index.module.scss
+++ b/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/index.module.scss
@@ -1,7 +1,6 @@
@use "sass:color";
@use "variables";
@use "mixins";
-@use "~@codecademy/gamut-styles/utils" as *;
//
// Base styles
//
@@ -11,7 +10,8 @@
display: inline-flex;
justify-content: center;
font-weight: variables.$btn-font-weight;
- @include font-smoothing;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
border: 1px solid transparent;
border-radius: variables.$btn-border-radius;
user-select: none;
@@ -33,11 +33,11 @@ fieldset[disabled] a.btn {
@each $name, $color in variables.$btn-swatches {
@if $name == "brand-yellow" {
- @include mixins.button-variants($name, $color-black, $color);
+ @include mixins.button-variants($name, variables.$color-black, $color);
} @else if color.channel(color.to-space($color, hsl), "lightness") > 68 {
- @include mixins.button-variants($name, $color-black, $color);
+ @include mixins.button-variants($name, variables.$color-black, $color);
} @else {
- @include mixins.button-variants($name, $color-white, $color);
+ @include mixins.button-variants($name, variables.$color-white, $color);
}
}
diff --git a/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/mixins.scss b/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/mixins.scss
index dd4110529d1..d5c66e5d2b6 100644
--- a/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/mixins.scss
+++ b/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/mixins.scss
@@ -1,5 +1,4 @@
@use "sass:color";
-@use "~@codecademy/gamut-styles/utils" as *;
@use "variables";
// Button variants
@@ -8,7 +7,7 @@
// and disabled options for all buttons
@mixin button-variant($color, $background, $border: transparent) {
- $active-background: color.mix($color-black, $background);
+ $active-background: color.mix(variables.$color-black, $background);
@if $border == transparent {
$active-border: transparent;
@@ -24,7 +23,7 @@
}
&:focus-visible {
- box-shadow: 0 0 0 2px $color-white, 0 0 0 4px $background;
+ box-shadow: 0 0 0 2px variables.$color-white, 0 0 0 4px $background;
}
&:focus-visible,
@@ -60,7 +59,7 @@
}
&:focus-visible {
- box-shadow: 0 0 0 2px $color-white, 0 0 0 4px $color;
+ box-shadow: 0 0 0 2px variables.$color-white, 0 0 0 4px $color;
}
&:disabled {
@@ -98,7 +97,8 @@
}
.link-#{$name} {
font-weight: bold;
- @include font-smoothing;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
color: $background;
text-decoration: underline;
diff --git a/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/variables.scss b/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/variables.scss
index ebdba8f9170..dc9ffe1c3a6 100755
--- a/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/variables.scss
+++ b/packages/gamut/src/AccordionButtonDeprecated/ButtonDeprecated/styles/variables.scss
@@ -1,6 +1,4 @@
-@use "~@codecademy/gamut-styles/utils" as *;
-
-$btn-padding-x: px-rem(16) !default;
+$btn-padding-x: 1rem !default;
$btn-padding-y: 0.375rem !default;
$btn-font-weight: bold !default;
@@ -8,18 +6,18 @@ $btn-line-height: 1.5 !default;
$btn-line-height-lg: calc(4 / 3) !default;
$btn-line-height-sm: 1.5 !default;
-$btn-font-size-base: px-rem(16) !default;
-$btn-font-size-lg: px-rem(20) !default;
-$btn-font-size-sm: px-rem(16) !default;
+$btn-font-size-base: 1rem !default;
+$btn-font-size-lg: 1.25rem !default;
+$btn-font-size-sm: 1rem !default;
$btn-font-size-xs: 0.75rem !default;
$btn-padding-x-sm: 0.75rem !default;
$btn-padding-y-sm: 0.25rem !default;
-$btn-min-width-sm: px-rem(128) !default;
+$btn-min-width-sm: 8rem !default;
$btn-padding-x-lg: 1.25rem !default;
$btn-padding-y-lg: 0.75rem !default;
-$btn-min-width-lg: px-rem(160) !default;
+$btn-min-width-lg: 10rem !default;
$btn-border-radius: 2px !default;
$btn-round-border-radius: 50px !default;
@@ -30,24 +28,27 @@ $btn-outline-hover-state-modifier: 0.9 !default;
$btn-outline-active-state-modifier: 0.6 !default;
$btn-box-shadow-focus-modifier: 0.5 !default;
-$btn-disabled-color: $color-gray-600;
+$btn-disabled-color: #646466;
$btn-box-shadow-color: rgba(0, 0, 0, 0.3);
$btn-swatches: (
// Gamut Next
- "hyper": $color-hyper,
- "red": $color-red,
- "navy": $color-navy,
- "white": $color-white,
- "grey": $color-gray-300,
+ "hyper": #3a10e5,
+ "red": #e91c11,
+ "navy": #10162f,
+ "white": #ffffff,
+ "grey": #c4c3c7,
// Gamut Classic
- "brand-blue": $color-blue-500,
- "brand-red": $brand-red,
- "brand-yellow": $brand-yellow,
- "brand-purple": $brand-purple,
- "brand-dark-blue": $brand-dark-blue,
+ "brand-blue": #3069f0,
+ "brand-red": #fd4d3f,
+ "brand-yellow": #ffd500,
+ "brand-purple": #6400e4,
+ "brand-dark-blue": #141c3a,
// Editor
- "mint": $deprecated-swatches-mint-700,
- "darkmint": $deprecated-swatches-mint-800,
- "greyblue": $deprecated-swatches-grey-blue-600
+ "mint": #34b3a0,
+ "darkmint": #1a7b72,
+ "greyblue": #354551
);
+
+$color-black: #000000;
+$color-white: #ffffff;
diff --git a/packages/gamut/src/AccordionButtonDeprecated/styles.module.scss b/packages/gamut/src/AccordionButtonDeprecated/styles.module.scss
index 489c3359c10..f685414d648 100755
--- a/packages/gamut/src/AccordionButtonDeprecated/styles.module.scss
+++ b/packages/gamut/src/AccordionButtonDeprecated/styles.module.scss
@@ -1,5 +1,3 @@
-@use "~@codecademy/gamut-styles/utils" as *;
-
.accordionButton {
align-items: center;
display: flex;
@@ -8,23 +6,23 @@
width: 100%;
&.blue {
- color: $color-blue-200;
+ color: #a5befa;
}
&.yellow {
- background-color: $color-yellow-200;
- border: solid $color-yellow-400;
+ background-color: #fff2b3;
+ border: solid #ffe359;
border-width: 1px 0;
font-weight: normal;
transition: background-color 0.15s ease-in-out;
&:focus-visible {
- border-color: $color-yellow-800;
+ border-color: #b37620;
}
&:focus,
&:hover {
- background-color: $color-yellow-300;
+ background-color: #ffec8c;
}
}
@@ -40,7 +38,7 @@
margin-left: 1rem;
}
- @include md-viewport {
+ @media only screen and (min-width: 64rem) {
font-size: 1.75rem;
}
}
diff --git a/packages/gamut/src/Typography/styles/_variables.scss b/packages/gamut/src/Typography/styles/_variables.scss
deleted file mode 100644
index b0f096650ae..00000000000
--- a/packages/gamut/src/Typography/styles/_variables.scss
+++ /dev/null
@@ -1,54 +0,0 @@
-@use "~@codecademy/gamut-styles/utils";
-
-$headingSizes: (
- "xxs": (
- "size": 16,
- "margin": 16,
- "font": $font-family-base
- ),
- "xs": (
- "size": 20,
- "margin": 16,
- "font": $font-family-base
- ),
- "sm": (
- "size": 22,
- "margin": 16,
- "font": $font-family-base
- ),
- "md": (
- "size": 26,
- "margin": 20,
- "font": $font-family-base
- ),
- "lg": (
- "size": 34,
- "margin": 24,
- "font": $font-family-base
- ),
- "xl": (
- "size": 44,
- "margin": 24,
- "font": $font-family-base
- ),
- "xxl": (
- "size": 64,
- "margin": 32,
- "font": $font-family-base
- )
-);
-
-$textSizes: (
- "sm": (
- "size": 14,
- "font": $font-family-base
- ),
- "md": (
- "size": 16,
- "font": $font-family-base
- ),
- "lg": (
- "size": 20,
- "font": $font-family-base
- )
-);
diff --git a/packages/gamut/src/Video/styles/vds_base_theme.scss b/packages/gamut/src/Video/styles/vds_base_theme.scss
index 0432294ee07..8d65b2e9f32 100644
--- a/packages/gamut/src/Video/styles/vds_base_theme.scss
+++ b/packages/gamut/src/Video/styles/vds_base_theme.scss
@@ -1,5 +1,3 @@
-@use "~@codecademy/gamut-styles/utils" as *;
-
@import "~@vidstack/react/player/styles/default/theme.css";
@import "~@vidstack/react/player/styles/default/layouts/video.css";
@import "~@vidstack/react/player/styles/default/layouts/audio.css";
@@ -26,7 +24,7 @@ iframe.vds-youtube[data-no-controls] {
}
:where(.vds-video-layout[data-sm]) :where(.vds-button) {
- padding: 0px px-rem(4px) !important;
+ padding: 0px 4px !important;
}
// Small layout volume / time slider
diff --git a/packages/styleguide/src/lib/Foundations/Utilities/Utilities.mdx b/packages/styleguide/src/lib/Foundations/Utilities/Utilities.mdx
index ff66c8a70dd..58649a58230 100644
--- a/packages/styleguide/src/lib/Foundations/Utilities/Utilities.mdx
+++ b/packages/styleguide/src/lib/Foundations/Utilities/Utilities.mdx
@@ -6,7 +6,7 @@ import { ShadowExample } from './boxShadow';
export const parameters = {
title: 'Utilities',
- subtitle: 'Style utilities for both SCSS and Emotion',
+ subtitle: "Gamut's helper functions for style utilities",
status: 'static',
source: {
repo: 'gamut-styles',
@@ -27,9 +27,7 @@ To keep consistent sizing we like to use `rem` units for most things (within rea
Many times when a specific REM value is not expressive like `1.875rem` (in this case, `30px`)
it is better to express this as a pixel value that is closer to a round number.
-You can do this by using our px => rem utility in both TS and SCSS.
-
-#### TS - `pxRem`
+Do this by using the px => rem utility.
```tsx
import { pxRem } from '@codecademy/gamut-styles';
@@ -38,28 +36,16 @@ pxRem(16); // => 1rem;
pxRem('30px'); // => 1.875rem;
```
-#### SCSS - `px-rem`
-
-```scss
-@use '@codecademy/gamut-styles/utils';
-
-.heading {
- font-size: px-rem(30);
-}
-```
-
-## Style mixins
+## Style helpers
We also support various style partials to help you consistently achieve affects, like box shadows and screen reader content.
### Box shadow
-We have 5 depths of box shadows that we use.
+There are 5 depths of box shadows available to use.
-#### TS - `boxShadow`
-
```tsx
import { boxShadow } from '@codecademy/gamut-styles';
@@ -68,21 +54,9 @@ const Example = `
`;
```
-#### SCSS - `box-shadow`
-
-```scss
-@use '@codecademy/gamut-styles/utils';
-
-.box {
- @include box-shadow(3);
-}
-```
-
-### `fontSmoothing`
-
-We enable font smoothing in some places to make typography more readable.
+### Font smoothing
-#### TS - `fontSmoothing`
+Enable font smoothing to make typography more readable.
```tsx
import { fontSmoothing } from '@codecademy/gamut-styles';
@@ -98,25 +72,9 @@ const Smooth = `
`;
```
-#### SCSS - `font-smoothing`
-
-```scss
-@use '@codecademy/gamut-styles/utils';
-
-.smoothed {
- @include font-smoothing();
-}
-
-.rough {
- @include font-smoothing(false);
-}
-```
-
### No selection
-In cases where we want to prevent the user from selecting an image or text.
-
-#### TS - `noSelect`
+Prevent the user from selecting an image or text.
```tsx
import { noSelect } from '@codecademy/gamut-styles';
@@ -126,24 +84,12 @@ const Unselectable = styled.div`
`;
```
-#### SCSS - `no-select`
-
-```scss
-@use '@codecademy/gamut-styles/utils';
-
-.unselectable {
- @include font-smoothing();
-}
-```
-
### Screen readers
-Ensuring that your content is accessible can require you to make screen reader only text elements.
-We provide a few helpful mixins for use cases where you want the screen reader to be able to focus or
+Ensuring that content is accessible can require having screen reader only text elements.
+We provide helpers for use cases where you want the screen reader to be able to focus or
just be aware of the content.
-#### TS - `screenReaderOnly` | `screenReaderOnlyFocusable`
-
```tsx
import {
screenReaderOnly,
@@ -158,17 +104,3 @@ const HiddenLabelWithFocus = `
${screenReaderOnlyFocusable}
`;
```
-
-#### SCSS - `screenreader-only` | `screenreader-only-focusable`
-
-```scss
-@use '@codecademy/gamut-styles/utils';
-
-.hiddenLabel {
- @include screenreader-only();
-}
-
-.hiddenLabel__focusable {
- @include screenreader-only-focusable();
-}
-```
|