[go: up one dir, main page]

Skip to content

Commit

Permalink
feat(docs): use vitesse theme
Browse files Browse the repository at this point in the history
  • Loading branch information
CofCat456 committed Dec 28, 2023
1 parent 7d4ed5e commit b7fe4d7
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ export default defineConfig({
['meta', { property: 'og:description', content: 'Easy use of Google Maps with Composition API' }],
],

markdown: {
theme: {
light: 'vitesse-light',
dark: 'vitesse-dark',
},
config(md) {
// https://github.com/markdown-it/markdown-it/issues/878
md.linkify.set({
fuzzyLink: false,
});
},
},

themeConfig: {
logo: '/voomap.svg',

Expand Down
8 changes: 8 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import DefaultTheme from 'vitepress/theme';

import './styles/vars.css';
import './styles/main.css';

export default {
...DefaultTheme,
};
20 changes: 20 additions & 0 deletions docs/.vitepress/theme/styles/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
iframe {
border-width: 0;
}

.VPFeatures .VPFeature {
transition: border-color 0.25s, filter 0.25s;
}

.VPFeatures:has(.VPFeature:hover) .VPFeature:not(:hover) {
opacity: 0.75;
filter: blur(2px);
}

.VPFeature:hover {
border-color: var(--vp-button-brand-border);
}

.custom-block-title {
text-transform: uppercase;
}
25 changes: 25 additions & 0 deletions docs/.vitepress/theme/styles/vars.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Home
*/
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg,
#0F5096 10%,
#50E669);
}

:root {
--vp-button-brand-border: #50E669;
--vp-button-brand-bg: #34A77B;
}

/**
* Code
*/
:root {
--vp-code-block-bg: rgba(125, 125, 125, 0.04)
}

:root.dark {
--vp-code-block-bg: rgba(0, 0, 0, 0.2)
}

0 comments on commit b7fe4d7

Please sign in to comment.