@@ -109,6 +109,15 @@ const classNames = computed(() => {
109109* Last Update : Aug 03, 2022
110110*/
111111.nav {
112+ --p-border-nav-link-active : theme (borderColor.brand.accent.DEFAULT);
113+ --p-border-dark-nav-link-active : theme (borderColor.dark.brand.accent.DEFAULT);
114+
115+ --p-bg-nav-tabs-active : theme (backgroundColor.default.DEFAULT);
116+ --p-bg-dark-nav-tabs-active : theme (backgroundColor.dark.default.DEFAULT);
117+
118+ --p-bg-nav-pills-active : theme (backgroundColor.default.alpha);
119+ --p-bg-dark-nav-pills-active : theme (backgroundColor.default.alpha);
120+
112121 /**
113122 * Default navigation
114123 * is horizontal
@@ -164,8 +173,8 @@ const classNames = computed(() => {
164173 & .router-link-active:not (.nav__link--exact ),
165174 & .router-link-exact-active.nav__link--exact {
166175 &:not (.nav__link--disabled ) {
167- @apply border-b-brand-accent ;
168- @apply dark :border-b-dark-brand-accent ;
176+ @apply border-b-[color:var(--p-border-nav-link-active)] ;
177+ @apply dark :border-b-[color: var ( --p-border- dark-nav-link-active )] ;
169178 }
170179 }
171180 }
@@ -182,8 +191,8 @@ const classNames = computed(() => {
182191 & .router-link-active:not (.nav__link--exact ),
183192 & .router-link-exact-active.nav__link--exact {
184193 &:not (.nav__link--disabled ) {
185- @apply border-r border-r-brand-accent rounded-tr-none;
186- @apply dark :border-r-dark-brand-accent ;
194+ @apply border-r border-r-[color:var(--p-border-nav-link-active)] rounded-tr-none;
195+ @apply dark :border-r-[color: var ( --p-border- dark-nav-link-active )] ;
187196 }
188197 }
189198 }
@@ -196,8 +205,8 @@ const classNames = computed(() => {
196205 & .router-link-active:not (.nav__link--exact ),
197206 & .router-link-exact-active.nav__link--exact {
198207 &:not (.nav__link--disabled ) {
199- @apply border-l border-l-brand-accent rounded-tl-none;
200- @apply dark :border-l-dark-brand-accent ;
208+ @apply border-l border-l-[color:var(--p-border-nav-link-active)] rounded-tl-none;
209+ @apply dark :border-l-[color: var ( --p-border- dark-nav-link-active )] ;
201210 }
202211 }
203212 }
@@ -220,8 +229,8 @@ const classNames = computed(() => {
220229 & .router-link-active:not (.nav__link--exact ),
221230 & .router-link-exact-active.nav__link--exact {
222231 &:not (.nav__link--disabled ) {
223- @apply border-t-default border-x-default bg-ground ;
224- @apply dark :border-t-dark-default dark:border-x-dark-default dark:bg-dark-ground ;
232+ @apply border-t-default border-x-default bg-[color:var(--p-bg-nav-tabs-active)] ;
233+ @apply dark :border-t-dark-default dark:border-x-dark-default dark:bg-[color: var ( --p-bg- dark-nav-tabs-active )] ;
225234 }
226235 }
227236 }
@@ -236,8 +245,8 @@ const classNames = computed(() => {
236245 & .router-link-active:not (.nav__link--exact ),
237246 & .router-link-exact-active.nav__link--exact {
238247 &:not (.nav__link--disabled ) {
239- @apply border-l-default border-y-default border-r-transparent bg-ground rounded-l rounded-r-none;
240- @apply dark :border-l-dark-default dark:border-y-dark-default dark:border-r-transparent dark:bg-dark-ground ;
248+ @apply border-l-default border-y-default border-r-transparent bg-[color:var(--p-bg-nav-tabs-active)] rounded-l rounded-r-none;
249+ @apply dark :border-l-dark-default dark:border-y-dark-default dark:border-r-transparent dark:bg-[color: var ( --p-bg- dark-nav-tabs-active )] ;
241250 }
242251 }
243252 }
@@ -273,8 +282,8 @@ const classNames = computed(() => {
273282 & .router-link-active:not (.nav__link--exact ),
274283 & .router-link-exact-active.nav__link--exact {
275284 &:not (.nav__link--disabled ) {
276- @apply bg-ground rounded-b;
277- @apply dark :bg-dark-ground ;
285+ @apply bg-[color:var(--p-bg-nav-pills-active)] rounded-b;
286+ @apply dark :bg-[color: var ( --p-bg- dark-nav-pills-active )] ;
278287 }
279288 }
280289 }
0 commit comments