Skip to content

Commit

Permalink
Primary & Secondary button overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Feb 10, 2025
1 parent 9889754 commit 8d00d0f
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions docfiles/themes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Colors:
| pxt-primary-light | |
| pxt-primary-foreground | Download Button Fg |
| pxt-secondary-background | Zoom & Under-Sim Buttons |
| pxt-secondary-background-hover | Zoom & Under-Sim Buttons |
| pxt-secondary-alpha0 | Zoom & Under-Sim Buttons 0% Opacity |
| pxt-secondary-dark | |
| pxt-secondary-light | Cloud Projects Card |
Expand Down
1 change: 1 addition & 0 deletions docfiles/themes/arcade-legacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"pxt-primary-light": "#FBAB82",
"pxt-primary-foreground": "#FFFFFF",
"pxt-secondary-background": "#028B9B",
"pxt-secondary-background-hover": "#015e69",
"pxt-secondary-alpha0": "#028B9B00",
"pxt-secondary-alpha50": "#028B9B32",
"pxt-secondary-dark": "#005D6A",
Expand Down
1 change: 1 addition & 0 deletions docfiles/themes/arcade-light.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"pxt-primary-light": "#a098d7",
"pxt-primary-foreground": "#FFFFFF",
"pxt-secondary-background": "#5D4FBA",
"pxt-secondary-background-hover": "#483c9a",
"pxt-secondary-alpha0": "#5D4FBA00",
"pxt-secondary-alpha50": "#5D4FBA32",
"pxt-secondary-dark": "#372E75",
Expand Down
1 change: 1 addition & 0 deletions docfiles/themes/base-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
--pxt-primary-light: #cccccc;
--pxt-primary-foreground: #ffffff;
--pxt-secondary-background: #aaaaaa;
--pxt-secondary-background-hover: #bbbbbb;
--pxt-secondary-alpha0: #aaaaaa00;
--pxt-secondary-dark: #767676;
--pxt-secondary-light: #9a9a9a;
Expand Down
1 change: 1 addition & 0 deletions docfiles/themes/high-contrast.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"pxt-primary-light": "#FFFFFF",
"pxt-primary-foreground": "#FFFFFF",
"pxt-secondary-background": "#000000",
"pxt-secondary-background-hover": "#000000",
"pxt-secondary-alpha0": "#00000000",
"pxt-secondary-dark": "#000000",
"pxt-secondary-light": "#000000",
Expand Down
1 change: 1 addition & 0 deletions docfiles/themes/microbit-light.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"pxt-primary-light": "#A38FCC",
"pxt-primary-foreground": "#FFFFFF",
"pxt-secondary-background": "#3454D1",
"pxt-secondary-background-hover": "#2742ab",
"pxt-secondary-alpha0": "#3454D100",
"pxt-secondary-alpha50": "#3454D132",
"pxt-secondary-dark": "#2a47b8",
Expand Down
20 changes: 19 additions & 1 deletion theme/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,30 @@ pre {
tab-size: 4;
}

/* Override Semantic UI */
/*
--- Override Semantic UI ---
These include body.main to add specificity so they will
take precedence over default semantic ui styling without using !important.
*/

body.main .ui.button.primary {
background-color: var(--pxt-primary-background);
color: var(--pxt-primary-foreground);
&:hover {
background-color: var(--pxt-primary-background-hover);
}
}

body.main .ui.button.secondary {
background-color: var(--pxt-secondary-background);
color: var(--pxt-secondary-foreground);
&:hover {
background-color: var(--pxt-secondary-background-hover);
}
}

body.main a {
color: var(--pxt-link);
&:hover {
Expand Down

0 comments on commit 8d00d0f

Please sign in to comment.