Skip to content

Commit

Permalink
dark mode should have precedence over prefers contrast variants
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed May 23, 2022
1 parent aa39253 commit 56d05a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/setupContextUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,11 @@ function resolvePlugins(context, root) {
let afterVariants = [
variantPlugins['directionVariants'],
variantPlugins['reducedMotionVariants'],
variantPlugins['prefersContrastVariants'],
variantPlugins['darkVariants'],
variantPlugins['printVariant'],
variantPlugins['screenVariants'],
variantPlugins['orientationVariants'],
variantPlugins['prefersContrastVariants'],
]

return [...corePluginList, ...beforeVariants, ...userPlugins, ...afterVariants, ...layerPlugins]
Expand Down

0 comments on commit 56d05a8

Please sign in to comment.