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

fix: primary color usage in components #910

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/components/CustomCharts/FunnelChart.res
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ let make = (
let i = i->Float.fromInt
let opacity = (i +. 1.) /. length
let borderTop = `${(size *. 14.)
->Float.toString}rem solid rgb(0,109,249,${opacity->Float.toString})`
->Float.toString}rem solid rgb(var(--color-primary),${opacity->Float.toString})`
vsrivatsa-edinburgh marked this conversation as resolved.
Show resolved Hide resolved

let currentWidthRatio = switch widths->Array.get(i->Float.toInt) {
| Some(width) => width
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ let make = (
barChartData->Array.mapWithIndex((_data, i) => {
let i = i->Int.toFloat
let opacity = (length -. i +. 1.) /. (length +. 1.)
`rgb(0,109,249,${opacity->Float.toString})`
`rgb(var(--color-primary),${opacity->Float.toString})`
vsrivatsa-edinburgh marked this conversation as resolved.
Show resolved Hide resolved
})
}
let defaultOptions: HighchartsHorizontalBarChart.options = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomCharts/HighchartPieChart.res
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let make = (
pieSeriesData->Array.mapWithIndex((_data, i) => {
let i = i->Int.toFloat
let opacity = (length -. i +. 1.) /. (length +. 1.)
`rgb(0,109,249,${opacity->Float.toString})`
`rgb(var(--color-primary),${opacity->Float.toString})`
vsrivatsa-edinburgh marked this conversation as resolved.
Show resolved Hide resolved
})
}
let defaultOptions: HighchartsPieChart.options = {
Expand Down
Loading