|Specsavers County Championship Division Two, SSE Swalec (day two):|
|Derbyshire 288: Madsen 70, Milnes 53: de Lange 3-82, van der Gugten 3-88 & 2-0|
|Glamorgan 237: Selman 50; Palladino 4-36, Mendis 3-68|
|Glamorgan 4 pts, Derbyshire 5 pts|
Derbyshire finished an attritional day's cricket on 2-0, 53 runs ahead after Glamorgan were dismissed for 237 just before the close.
The home innings fell away against spinners Jeevan Mendis and 16-year-old Hamidullah Qadri in the final session.
Nick Selman's patient 50 off 159 balls was the top score in a largely sedate home effort.
Earlier, seamer Tony Palladino claimed three wickets in quick succession to leave them struggling at 87-4 at tea.
Afghan-born Qadri, Derbyshire's youngest Championship player, bowled tightly with the pink ball under the floodlights, taking 1-16 in 15 overs - including the maiden wicket of Andrew Salter, caught at slip for nine off 75 balls.
Bizarrely, Derbyshire sent out two nightwatchmen in Tom Taylor and Palladino for the last two overs at 21:10 BST, but both men survived to continue on Wednesday.
Glamorgan batsman Nick Selman told BBC Wales Sport:
"It was good to spend time in the middle again, just getting used to that pink ball as they bowled pretty well and stuck to their lines. At the end we weren't patient enough and with our batting line-up we should have got 340 but hopefully we can come out and take some poles.
"When you're set (against the pink ball), it's easy to pick up but with the spin it's a bit tricky to pick up, especially Mendis when he was bowling wrong 'uns. It was quite easy to play during twilight and the more time you spend out there the better.
"If the (bad) weather stays away, we've got a big day and hopefully the quicks can take some poles early on and crack it open."
Derbyshire bowler Tony Palladino told BBC Radio Derby:
"It's always nice to get wickets early in your spell and it set us up a bit, we had a quiet middle session but we kept it reasonably tight and got our rewards later in the day.
"The pink ball is a lot different, it doesn't buff up as nicely with spit or when you polish it, you just give it a dry polish. It swung early but not much in the middle period so the spinners bowled a lot of overs and it was turning for them.
"(Hamidullah Qadri) bowled like John Emburey there, he did exactly what you what from a finger-spinner in the first innings, he kept it tight and hopefully he'll get his rewards second innings."