docs: add color-scheme (#193)
* docs: add `color-scheme` to doc this change will fix **Choose File** text color in input file * docs: fix `Nuxt` logo in light mode * docs: fix line number highlight
This commit is contained in:
parent
13ba39e2aa
commit
caa8994d22
|
|
@ -17,6 +17,9 @@ export default defineConfig({
|
||||||
['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }],
|
['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }],
|
||||||
['link', { rel: 'manifest', href: '/site.webmanifest' }],
|
['link', { rel: 'manifest', href: '/site.webmanifest' }],
|
||||||
|
|
||||||
|
['meta', { name: 'theme-color', media: '(prefers-color-scheme: light)', content: 'white' }],
|
||||||
|
['meta', { name: 'theme-color', media: '(prefers-color-scheme: dark)', content: 'black' }],
|
||||||
|
|
||||||
['meta', { name: 'creator', content: 'radix-vue' }],
|
['meta', { name: 'creator', content: 'radix-vue' }],
|
||||||
['meta', { name: 'theme-color', content: '#41b883' }],
|
['meta', { name: 'theme-color', content: '#41b883' }],
|
||||||
['meta', { name: 'og:type', content: 'website' }],
|
['meta', { name: 'og:type', content: 'website' }],
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
|
html {
|
||||||
|
color-scheme: light;
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark {
|
||||||
|
color-scheme: dark;
|
||||||
|
}
|
||||||
|
|
||||||
.theme-zinc {
|
.theme-zinc {
|
||||||
--background: 0 0% 100%;
|
--background: 0 0% 100%;
|
||||||
--foreground: 240 10% 3.9%;
|
--foreground: 240 10% 3.9%;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ description: How to install dependencies and structure your app.
|
||||||
<LinkedCard href="/docs/installation/nuxt">
|
<LinkedCard href="/docs/installation/nuxt">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="w-12 h-12" viewBox="0 0 900 900" fill="none">
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-12 h-12" viewBox="0 0 900 900" fill="none">
|
||||||
<title>Nuxt</title>
|
<title>Nuxt</title>
|
||||||
<path d="M504.908 750H839.476C850.103 750.001 860.542 747.229 869.745 741.963C878.948 736.696 886.589 729.121 891.9 719.999C897.211 710.876 900.005 700.529 900 689.997C899.995 679.465 897.193 669.12 891.873 660.002L667.187 274.289C661.876 265.169 654.237 257.595 645.036 252.329C635.835 247.064 625.398 244.291 614.773 244.291C604.149 244.291 593.711 247.064 584.511 252.329C575.31 257.595 567.67 265.169 562.36 274.289L504.908 372.979L392.581 179.993C387.266 170.874 379.623 163.301 370.42 158.036C361.216 152.772 350.777 150 340.151 150C329.525 150 319.086 152.772 309.883 158.036C300.679 163.301 293.036 170.874 287.721 179.993L8.12649 660.002C2.80743 669.12 0.00462935 679.465 5.72978e-06 689.997C-0.00461789 700.529 2.78909 710.876 8.10015 719.999C13.4112 729.121 21.0523 736.696 30.255 741.963C39.4576 747.229 49.8973 750.001 60.524 750H270.538C353.748 750 415.112 713.775 457.336 643.101L559.849 467.145L614.757 372.979L779.547 655.834H559.849L504.908 750ZM267.114 655.737L120.551 655.704L340.249 278.586L449.87 467.145L376.474 593.175C348.433 639.03 316.577 655.737 267.114 655.737Z" fill="white"/>
|
<path d="M504.908 750H839.476C850.103 750.001 860.542 747.229 869.745 741.963C878.948 736.696 886.589 729.121 891.9 719.999C897.211 710.876 900.005 700.529 900 689.997C899.995 679.465 897.193 669.12 891.873 660.002L667.187 274.289C661.876 265.169 654.237 257.595 645.036 252.329C635.835 247.064 625.398 244.291 614.773 244.291C604.149 244.291 593.711 247.064 584.511 252.329C575.31 257.595 567.67 265.169 562.36 274.289L504.908 372.979L392.581 179.993C387.266 170.874 379.623 163.301 370.42 158.036C361.216 152.772 350.777 150 340.151 150C329.525 150 319.086 152.772 309.883 158.036C300.679 163.301 293.036 170.874 287.721 179.993L8.12649 660.002C2.80743 669.12 0.00462935 679.465 5.72978e-06 689.997C-0.00461789 700.529 2.78909 710.876 8.10015 719.999C13.4112 729.121 21.0523 736.696 30.255 741.963C39.4576 747.229 49.8973 750.001 60.524 750H270.538C353.748 750 415.112 713.775 457.336 643.101L559.849 467.145L614.757 372.979L779.547 655.834H559.849L504.908 750ZM267.114 655.737L120.551 655.704L340.249 278.586L449.87 467.145L376.474 593.175C348.433 639.03 316.577 655.737 267.114 655.737Z" fill="currentColor"/>
|
||||||
</svg>
|
</svg>
|
||||||
<p class="mt-2 font-medium">Nuxt</p>
|
<p class="mt-2 font-medium">Nuxt</p>
|
||||||
</LinkedCard>
|
</LinkedCard>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ You can choose between using CSS variables or Tailwind CSS utility classes for t
|
||||||
|
|
||||||
To use utility classes for theming set `tailwind.cssVariables` to `false` in your `components.json` file.
|
To use utility classes for theming set `tailwind.cssVariables` to `false` in your `components.json` file.
|
||||||
|
|
||||||
```json {8} title="components.json"
|
```json {7} title="components.json"
|
||||||
{
|
{
|
||||||
"style": "default",
|
"style": "default",
|
||||||
"tailwind": {
|
"tailwind": {
|
||||||
|
|
@ -39,7 +39,7 @@ To use utility classes for theming set `tailwind.cssVariables` to `false` in you
|
||||||
To use CSS variables for theming set `tailwind.cssVariables` to `true` in your `components.json` file.
|
To use CSS variables for theming set `tailwind.cssVariables` to `true` in your `components.json` file.
|
||||||
|
|
||||||
|
|
||||||
```json {8} title="components.json"
|
```json {7} title="components.json"
|
||||||
{
|
{
|
||||||
"style": "default",
|
"style": "default",
|
||||||
"tailwind": {
|
"tailwind": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user