The scaler component for resource cards renders with a bright green color that doesn't match the rest of the Prime theme.
Steps to reproduce
- Deploy a Prime image of Rancher or enable the Prime theme
- Create a deployment
- Navigate to Cluster Explorer => Deployments and click on the deployment created in step 2
Actual behavior
The scaler controls for pods renders a bright green color that doesn't match the Prime theme
Expected behavior
The scaler controls use colors that align with the Prime theme
Additional context
For both the background color and hover styles, we calculate the color based on the --primary variable:
|
background-color: hsl(from var(--primary) h s calc(l + 30)); |
|
&:hover { |
|
background-color: hsl(from var(--primary) h s calc(l + 20)); |
|
} |
I think that we can benefit from being more explicit about our colors so that they render properly across all our supported themes.
Related issues
Original context
Image is worth a thousand words:

The scaler component for resource cards renders with a bright green color that doesn't match the rest of the Prime theme.
Steps to reproduce
Actual behavior
The scaler controls for pods renders a bright green color that doesn't match the Prime theme
Expected behavior
The scaler controls use colors that align with the Prime theme
Additional context
For both the background color and hover styles, we calculate the color based on the
--primaryvariable:dashboard/shell/components/Resource/Detail/Card/Scaler.vue
Line 57 in c4bd488
dashboard/shell/components/Resource/Detail/Card/Scaler.vue
Lines 79 to 81 in c4bd488
I think that we can benefit from being more explicit about our colors so that they render properly across all our supported themes.
Related issues
Original context
Image is worth a thousand words: