The area has been enjoying some glorious sun shine and warm weather.
But the Met Office says showers and thunderstorms are likely to bring periods of heavy rain, lightning and hail in places this afternoon.
The warning is in place between 1pm and 10pm today.
This stunning home is the most expensive for sale in Dewsbury on Rightmove
Man wanted on recall to prison for breaching terms of release
Appeal launched following three burglaries in same road in Dewsbury Moor
Illegal goods worth over £40,000 seized in Kirklees
Campaigner hails 'massive' accessibility improvements at Dewsbury train station
According to the Met Office forecast, storms are most likely in Dewsbury at around 2pm.
It says: "Where flooding or lightning strikes occur, there is a chance of delays and some cancellations to train and bus services
"Spray and sudden flooding are likely to lead to difficult driving conditions and some temporary road closures
"There is a slight chance that power cuts could occur and other services to some homes and businesses could temporarily be lost."
Temperatures are expected to reach a high of 23C today.
Tomorrow is expected to be sunny with some clouds and a chance of showers later in the afternoon.