Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Use CSS property `accent-color` to tint form controls (#328)
Dhruv Bhanushali60d7e86c219d
diff --git a/nuxt.config.js b/nuxt.config.jsindex 88e79130c..ceef587b4 100644--- a/nuxt.config.js+++ b/nuxt.config.js@@ -146,6 +146,7 @@ export default {'~/assets/fonts.css','~/styles/vocabulary.scss','~/styles/global.scss',+ '~/styles/accent.scss',],head,env,diff --git a/src/styles/accent.scss b/src/styles/accent.scssnew file mode 100644index 000000000..4ac5c1ac4--- /dev/null+++ b/src/styles/accent.scss@@ -0,0 +1,22 @@+:root {+ /* Accent color tints checkbox, radio, range and progress. */+ accent-color: theme('colors.trans-blue');+}++:focus-visible {+ outline-color: theme('colors.trans-blue');+}++::selection {+ /* Using white text because selection background is dark. */+ @apply bg-trans-blue text-white;+}++::-webkit-calendar-picker-indicator,+::-webkit-clear-button,+::-webkit-inner-spin-button,+::-webkit-outer-spin-button,+::marker {+ /* List markers can be tinted as text. */+ @apply text-trans-blue;+}