Skip to content
This repository was archived by the owner on Jun 15, 2021. It is now read-only.
This repository was archived by the owner on Jun 15, 2021. It is now read-only.

White text on light mode @Animations and transitions #2

Open
@GiammaCarioca

Description

@GiammaCarioca

If you include the mixins heading-2 and heading-3 you get light text on a light background.

I've solved the issue like this:

template
<h2 :class="{ 'light-text': isDarkMode, 'dark-text': !isDarkMode }">Team</h2>

style

h2 {
  /* @include heading-2; */
  font-size: 60px;
  line-height: 86px;
  font-weight: bold;
} 

h3 {
  /* @include heading-3; */
  font-size: 30px;
  line-height: 43px;
  font-weight: bold;
  margin-bottom: 16px;
}

https://github.com/GiammaCarioca/vue-admin-dashboard/commit/5a8780c73f64869b8d7c9472a7a7337a3fe16d0d

Maybe there's a smarter way to go about it? I don't know SASS but maybe you could use a conditional within the mixin... I know you can do something like that on styled components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions