···11+/**
22+ * Customize default theme styling by overriding CSS variables:
33+ * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
44+ */
55+66+/**
77+ * Colors
88+ *
99+ * Each colors have exact same color scale system with 3 levels of solid
1010+ * colors with different brightness, and 1 soft color.
1111+ *
1212+ * - `XXX-1`: The most solid color used mainly for colored text. It must
1313+ * satisfy the contrast ratio against when used on top of `XXX-soft`.
1414+ *
1515+ * - `XXX-2`: The color used mainly for hover state of the button.
1616+ *
1717+ * - `XXX-3`: The color for solid background, such as bg color of the button.
1818+ * It must satisfy the contrast ratio with pure white (#ffffff) text on
1919+ * top of it.
2020+ *
2121+ * - `XXX-soft`: The color used for subtle background such as custom container
2222+ * or badges. It must satisfy the contrast ratio when putting `XXX-1` colors
2323+ * on top of it.
2424+ *
2525+ * The soft color must be semi transparent alpha channel. This is crucial
2626+ * because it allows adding multiple "soft" colors on top of each other
2727+ * to create an accent, such as when having inline code block inside
2828+ * custom containers.
2929+ *
3030+ * - `default`: The color used purely for subtle indication without any
3131+ * special meanings attached to it such as bg color for menu hover state.
3232+ *
3333+ * - `brand`: Used for primary brand colors, such as link text, button with
3434+ * brand theme, etc.
3535+ *
3636+ * - `tip`: Used to indicate useful information. The default theme uses the
3737+ * brand color for this by default.
3838+ *
3939+ * - `warning`: Used to indicate warning to the users. Used in custom
4040+ * container, badges, etc.
4141+ *
4242+ * - `danger`: Used to show error, or dangerous message to the users. Used
4343+ * in custom container, badges, etc.
4444+ * -------------------------------------------------------------------------- */
4545+4646+:root {
4747+ --vp-c-default-1: var(--vp-c-gray-1);
4848+ --vp-c-default-2: var(--vp-c-gray-2);
4949+ --vp-c-default-3: var(--vp-c-gray-3);
5050+ --vp-c-default-soft: var(--vp-c-gray-soft);
5151+5252+ --vp-c-brand-1: var(--vp-c-indigo-1);
5353+ --vp-c-brand-2: var(--vp-c-indigo-2);
5454+ --vp-c-brand-3: var(--vp-c-indigo-3);
5555+ --vp-c-brand-soft: var(--vp-c-indigo-soft);
5656+5757+ --vp-c-tip-1: var(--vp-c-brand-1);
5858+ --vp-c-tip-2: var(--vp-c-brand-2);
5959+ --vp-c-tip-3: var(--vp-c-brand-3);
6060+ --vp-c-tip-soft: var(--vp-c-brand-soft);
6161+6262+ --vp-c-warning-1: var(--vp-c-yellow-1);
6363+ --vp-c-warning-2: var(--vp-c-yellow-2);
6464+ --vp-c-warning-3: var(--vp-c-yellow-3);
6565+ --vp-c-warning-soft: var(--vp-c-yellow-soft);
6666+6767+ --vp-c-danger-1: var(--vp-c-red-1);
6868+ --vp-c-danger-2: var(--vp-c-red-2);
6969+ --vp-c-danger-3: var(--vp-c-red-3);
7070+ --vp-c-danger-soft: var(--vp-c-red-soft);
7171+}
7272+7373+/**
7474+ * Component: Button
7575+ * -------------------------------------------------------------------------- */
7676+7777+:root {
7878+ --vp-button-brand-border: transparent;
7979+ --vp-button-brand-text: var(--vp-c-white);
8080+ --vp-button-brand-bg: var(--vp-c-brand-3);
8181+ --vp-button-brand-hover-border: transparent;
8282+ --vp-button-brand-hover-text: var(--vp-c-white);
8383+ --vp-button-brand-hover-bg: var(--vp-c-brand-2);
8484+ --vp-button-brand-active-border: transparent;
8585+ --vp-button-brand-active-text: var(--vp-c-white);
8686+ --vp-button-brand-active-bg: var(--vp-c-brand-1);
8787+}
8888+8989+/**
9090+ * Component: Home
9191+ * -------------------------------------------------------------------------- */
9292+9393+:root {
9494+ --vp-home-hero-name-color: transparent;
9595+ --vp-home-hero-name-background: -webkit-linear-gradient(
9696+ 120deg,
9797+ #bd34fe 30%,
9898+ #41d1ff
9999+ );
100100+101101+ --vp-home-hero-image-background-image: linear-gradient(
102102+ -45deg,
103103+ #bd34fe 50%,
104104+ #47caff 50%
105105+ );
106106+ --vp-home-hero-image-filter: blur(44px);
107107+}
108108+109109+@media (min-width: 640px) {
110110+ :root {
111111+ --vp-home-hero-image-filter: blur(56px);
112112+ }
113113+}
114114+115115+@media (min-width: 960px) {
116116+ :root {
117117+ --vp-home-hero-image-filter: blur(68px);
118118+ }
119119+}
120120+121121+/**
122122+ * Component: Custom Block
123123+ * -------------------------------------------------------------------------- */
124124+125125+:root {
126126+ --vp-custom-block-tip-border: transparent;
127127+ --vp-custom-block-tip-text: var(--vp-c-text-1);
128128+ --vp-custom-block-tip-bg: var(--vp-c-brand-soft);
129129+ --vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
130130+}
131131+132132+/**
133133+ * Component: Algolia
134134+ * -------------------------------------------------------------------------- */
135135+136136+.DocSearch {
137137+ --docsearch-primary-color: var(--vp-c-brand-1) !important;
138138+}
139139+
+49
docs/api-examples.md
···11+---
22+outline: deep
33+---
44+55+# Runtime API Examples
66+77+This page demonstrates usage of some of the runtime APIs provided by VitePress.
88+99+The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
1010+1111+```md
1212+<script setup>
1313+import { useData } from 'vitepress'
1414+1515+const { theme, page, frontmatter } = useData()
1616+</script>
1717+1818+## Results
1919+2020+### Theme Data
2121+<pre>{{ theme }}</pre>
2222+2323+### Page Data
2424+<pre>{{ page }}</pre>
2525+2626+### Page Frontmatter
2727+<pre>{{ frontmatter }}</pre>
2828+```
2929+3030+<script setup>
3131+import { useData } from 'vitepress'
3232+3333+const { site, theme, page, frontmatter } = useData()
3434+</script>
3535+3636+## Results
3737+3838+### Theme Data
3939+<pre>{{ theme }}</pre>
4040+4141+### Page Data
4242+<pre>{{ page }}</pre>
4343+4444+### Page Frontmatter
4545+<pre>{{ frontmatter }}</pre>
4646+4747+## More
4848+4949+Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
+25
docs/index.md
···11+---
22+# https://vitepress.dev/reference/default-theme-home-page
33+layout: home
44+55+hero:
66+ name: "Git Storm"
77+ text: "A changelog manager"
88+ tagline: My great project tagline
99+ actions:
1010+ - theme: brand
1111+ text: Markdown Examples
1212+ link: /markdown-examples
1313+ - theme: alt
1414+ text: API Examples
1515+ link: /api-examples
1616+1717+features:
1818+ - title: Feature A
1919+ details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
2020+ - title: Feature B
2121+ details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
2222+ - title: Feature C
2323+ details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
2424+---
2525+
+85
docs/markdown-examples.md
···11+# Markdown Extension Examples
22+33+This page demonstrates some of the built-in markdown extensions provided by VitePress.
44+55+## Syntax Highlighting
66+77+VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:
88+99+**Input**
1010+1111+````md
1212+```js{4}
1313+export default {
1414+ data () {
1515+ return {
1616+ msg: 'Highlighted!'
1717+ }
1818+ }
1919+}
2020+```
2121+````
2222+2323+**Output**
2424+2525+```js{4}
2626+export default {
2727+ data () {
2828+ return {
2929+ msg: 'Highlighted!'
3030+ }
3131+ }
3232+}
3333+```
3434+3535+## Custom Containers
3636+3737+**Input**
3838+3939+```md
4040+::: info
4141+This is an info box.
4242+:::
4343+4444+::: tip
4545+This is a tip.
4646+:::
4747+4848+::: warning
4949+This is a warning.
5050+:::
5151+5252+::: danger
5353+This is a dangerous warning.
5454+:::
5555+5656+::: details
5757+This is a details block.
5858+:::
5959+```
6060+6161+**Output**
6262+6363+::: info
6464+This is an info box.
6565+:::
6666+6767+::: tip
6868+This is a tip.
6969+:::
7070+7171+::: warning
7272+This is a warning.
7373+:::
7474+7575+::: danger
7676+This is a dangerous warning.
7777+:::
7878+7979+::: details
8080+This is a details block.
8181+:::
8282+8383+## More
8484+8585+Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).