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

Add color variables to css #2516

Merged
merged 5 commits into from
Jun 24, 2024
Merged
Changes from 1 commit
Commits
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
Next Next commit
add color variables to css
This allows their easy re-use within plugins
  • Loading branch information
cairocoder01 committed Jun 14, 2024
commit 2fb6bcc99866acdedc859057e2444d0a54e5b87a
8 changes: 8 additions & 0 deletions dt-assets/scss/_main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:map";
/************************************************

Stylesheet: Main Stylesheet
Expand Down Expand Up @@ -43,6 +44,13 @@ color:$light-gray;
width: 100%;
}

html {
--primary-color: #{map.get($foundation-palette, "primary")};
--secondary-color: #{map.get($foundation-palette, "secondary")};
--success-color: #{map.get($foundation-palette, "success")};
--warning-color: #{map.get($foundation-palette, "warning")};
--alert-color: #{map.get($foundation-palette, "alert")};
}
body {
background-color: #e2e2e2;
}
Expand Down
Loading