Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Sass @import usage with @forward #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmkane
Copy link

@rmkane rmkane commented Feb 14, 2023

The use of @import is discouraged. Utilize the @use rule instead.

See: https://sass-lang.com/documentation/at-rules/import

"The Sass team discourages the continued use of the @import rule. Sass will gradually phase it out over the next few years, and eventually remove it from the language entirely. Prefer the @use rule instead."

Changelog

  • Removed extraeneous $color-text comments from scss/css files
  • Implemented @use over @import
  • scss/_main.scss defaults to the Sakura base theme
    • In turn, scss/sakura.scss does not specify overrides
  • Updated test.html to include missing themes
    • Also added padding to theme switcher labels
  • Updated README 'earthy' theme example
  • Updated package-lock.json version 3 (latest stable node/npm)
    • Reference versions: node 18.14.0 (LTS) / npm 9.3.1

The use of @import is discouraged. Utilize the @use rule instead.

See: <https://sass-lang.com/documentation/at-rules/import>
"The Sass team discourages the continued use of the @import rule. Sass will
gradually phase it out over the next few years, and eventually remove it from
the language entirely. Prefer the @use rule instead."

Changelog:

* Removed extraeneous $color-text comments from scss/css files
* Implemented @use over @import
* scss/_main.scss defaults to the Sakura base theme
  * In turn, scss/sakura.scss does not specify overrides
* Updated test.html to include missing themes
  * Also added padding to theme switcher labels
* Updated README 'earthy' theme example
* Updated package-lock.json version 3 (latest stable node/npm)
  * Reference versions: node 18.14.0 (LTS) / npm 9.3.1
@vercel
Copy link

vercel bot commented Feb 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
sakura ❌ Failed (Inspect) Feb 14, 2023 at 8:06PM (UTC)

@rmkane rmkane changed the title Replace SASS @import usage with @forward Replace Sass @import usage with @forward Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant