Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
✨ Add purple and green theme colors
Browse files Browse the repository at this point in the history
  • Loading branch information
acollierr17 committed Feb 18, 2021
1 parent 95b3d77 commit f2b34d8
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 1 deletion.
4 changes: 3 additions & 1 deletion styles/theme.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
@require './wrapper'
@require './toc'
@require './iconfont.css'
// add themes later

@require './themes/red'
@require './themes/green'
@require './themes/purple'

html, body
padding 0
Expand Down
147 changes: 147 additions & 0 deletions styles/themes/green.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
@import '../variables.styl'

.reco-theme-green {
a,
p a code,
.theme-default-content a code {
color: $greenAccentColor;
}

.back-to-ceiling .icon {
fill: $greenAccentColor !important;
}

// title hover
.abstract-item .title:after {
background-color: $greenAccentColor;
}
.abstract-item .title:hover a {
color: $greenAccentColor;
}

// tag
.tags span {
background-color: $greenAccentColor;
}

// tag
span.tag-item {
background-color: inherit;
}

// tag
span.tag-item:hover {
color: $greenAccentColor;
}

// category title
.category-item a:hover {
background-color: $greenAccentColor;
border-radius: inherit;
}

.category-item {
transition: none !important;
}

// weird css stuff aka category name
.category-item.active a {
background-color: $greenAccentColor;
border-radius: inherit;
}

// @parent-theme/components/Home.vue
.hero .action-button {
background-color: $greenAccentColor;
border-bottom-color: darken($greenAccentColor, 10%);
&:hover {
background-color: lighten($greenAccentColor, 10%);
}
}

.color-picker .iconfont {
color: $greenAccentColor;
}

// @parent-theme/components/NavLinks.vue
.nav-links {
a,
.dropdown-wrapper .dropdown-title,
.dropdown-wrapper .nav-dropdown .dropdown-item a {
color: inherit;

&:hover,
&.router-link-active {
color: $greenAccentColor;

.iconfont {
color: $greenAccentColor;
}
}
}

.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active::after {
border-left-color: $greenAccentColor;
}
}

@media (min-width: $MQMobile) {
.nav-item > a:not(.external) {
&:hover,
&.router-link-active {
border-bottom-color: $greenAccentColor;
}
}
}

// @parent-theme/components/PageEdit.vue
.page-edit {
.edit-link a {
color: $greenAccentColor;
}

.last-updated .prefix {
color: $greenAccentColor;
}
}

// @parent-theme/components/SidebarLink.vue
&.yuu-theme-dark {
a.sidebar-link {
color: $darkAltTextColor;
}
}

// @parent-theme/components/SidebarLink.vue
a.sidebar-link {
color: inherit;

&:hover {
color: $greenAccentColor;
}

&.active {
color: $greenAccentColor;
border-left-color: $greenAccentColor;
}
}

// authors
span.author-item:hover {
color: $greenAccentColor !important;
}
// tags
span.tag-item:hover {
color: $greenAccentColor !important;
}

// sidebars
a.sidebar-link.active {
background-color: unset !important;
}

// @vuepress/plugin-pwa/lib/SWUpdatePopup.vue
.sw-update-popup {
border-color: $greenAccentColor;
}
}
147 changes: 147 additions & 0 deletions styles/themes/purple.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
@import '../variables.styl';

.reco-theme-purple {
a,
p a code,
.theme-default-content a code {
color: $purpleAccentColor;
}

.back-to-ceiling .icon {
fill: $purpleAccentColor !important;
}

// title hover
.abstract-item .title:after {
background-color: $purpleAccentColor;
}
.abstract-item .title:hover a {
color: $purpleAccentColor;
}

// tag
.tags span {
background-color: $purpleAccentColor;
}

// tag
span.tag-item {
background-color: inherit;
}

// tag
span.tag-item:hover {
color: $purpleAccentColor;
}

// category title
.category-item a:hover {
background-color: $purpleAccentColor;
border-radius: inherit;
}

.category-item {
transition: none !important;
}

// weird css stuff aka category name
.category-item.active a {
background-color: $purpleAccentColor;
border-radius: inherit;
}

// @parent-theme/components/Home.vue
.hero .action-button {
background-color: $purpleAccentColor;
border-bottom-color: darken($purpleAccentColor, 10%);
&:hover {
background-color: lighten($purpleAccentColor, 10%);
}
}

.color-picker .iconfont {
color: $purpleAccentColor;
}

// @parent-theme/components/NavLinks.vue
.nav-links {
a,
.dropdown-wrapper .dropdown-title,
.dropdown-wrapper .nav-dropdown .dropdown-item a {
color: inherit;

&:hover,
&.router-link-active {
color: $purpleAccentColor;

.iconfont {
color: $purpleAccentColor;
}
}
}

.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active::after {
border-left-color: $purpleAccentColor;
}
}

@media (min-width: $MQMobile) {
.nav-item > a:not(.external) {
&:hover,
&.router-link-active {
border-bottom-color: $purpleAccentColor;
}
}
}

// @parent-theme/components/PageEdit.vue
.page-edit {
.edit-link a {
color: $purpleAccentColor;
}

.last-updated .prefix {
color: $purpleAccentColor;
}
}

// @parent-theme/components/SidebarLink.vue
&.yuu-theme-dark {
a.sidebar-link {
color: $darkAltTextColor;
}
}

// @parent-theme/components/SidebarLink.vue
a.sidebar-link {
color: inherit;

&:hover {
color: $purpleAccentColor;
}

&.active {
color: $purpleAccentColor;
border-left-color: $purpleAccentColor;
}
}

// authors
span.author-item:hover {
color: $purpleAccentColor !important;
}
// tags
span.tag-item:hover {
color: $purpleAccentColor !important;
}

// sidebars
a.sidebar-link.active {
background-color: unset !important;
}

// @vuepress/plugin-pwa/lib/SWUpdatePopup.vue
.sw-update-popup {
border-color: $purpleAccentColor;
}
}
3 changes: 3 additions & 0 deletions styles/variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ $blueAccentColor = #2196f3;
// purple theme colors
$purpleAccentColor = #a846eb;

// green theme colors
$greenAccentColor = #2ecc71;

// content block colors
$tipGreen = #42b983;
$warningYellow = #ffe564;
Expand Down

0 comments on commit f2b34d8

Please sign in to comment.