johnwalley / allotment

A React component for resizable split views
https://allotment.mulberryhousesoftware.com/
MIT License
990 stars 55 forks source link

Pass border styling as props to allotment #716

Open justindoody opened 1 year ago

justindoody commented 1 year ago

I have different border colors dependent on light/dark theme and it was more of a pain to sort out than expected. Rather than the --separator-border css var it would be nice to pass props to Allotment for configuring that take precedence.

Perhaps something like:

<Allotment seperatorStyles="bg-gray-300 dark:bg-slate-700">

My eventual working solution in case anyone needs it. (wish i wasn't using !important)

.split-view-view::before {
    @apply bg-gray-300 !important;
    @apply dark:bg-slate-700 !important;
}
riazus commented 6 months ago

Hello, are there updates about this issue?