mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
feat(theme): dark theme detection
This commit is contained in:
@@ -74,6 +74,7 @@
|
|||||||
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
||||||
"@typescript-eslint/parser": "^5.30.6",
|
"@typescript-eslint/parser": "^5.30.6",
|
||||||
"@unocss/cli": "^0.44.3",
|
"@unocss/cli": "^0.44.3",
|
||||||
|
"@unocss/preset-web-fonts": "^0.44.3",
|
||||||
"@unocss/reset": "^0.44.3",
|
"@unocss/reset": "^0.44.3",
|
||||||
"@vitejs/plugin-react": "^2.0.0",
|
"@vitejs/plugin-react": "^2.0.0",
|
||||||
"c8": "^7.11.3",
|
"c8": "^7.11.3",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export interface PropertiesSectionProps {
|
|||||||
|
|
||||||
export function PropertiesSection({ data }: PropertiesSectionProps) {
|
export function PropertiesSection({ data }: PropertiesSectionProps) {
|
||||||
return data.length ? (
|
return data.length ? (
|
||||||
<Section title="Properties">
|
<Section title="Properties" className="dark:text-white">
|
||||||
<PropertyList data={data} />
|
<PropertyList data={data} />
|
||||||
</Section>
|
</Section>
|
||||||
) : null;
|
) : null;
|
||||||
@@ -35,7 +35,7 @@ export interface ParametersSectionProps {
|
|||||||
|
|
||||||
export function ParametersSection({ data }: ParametersSectionProps) {
|
export function ParametersSection({ data }: ParametersSectionProps) {
|
||||||
return data.length ? (
|
return data.length ? (
|
||||||
<Section title="Parameters">
|
<Section title="Parameters" className="dark:text-white">
|
||||||
<ParameterTable data={data} />
|
<ParameterTable data={data} />
|
||||||
</Section>
|
</Section>
|
||||||
) : null;
|
) : null;
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
import { defineConfig } from 'unocss';
|
import presetWebFonts from '@unocss/preset-web-fonts';
|
||||||
|
import { defineConfig, presetUno } from 'unocss';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
theme: {
|
presets: [
|
||||||
fontFamily: {
|
presetUno({ dark: 'media' }),
|
||||||
mono: ['JetBrains Mono'],
|
presetWebFonts({
|
||||||
},
|
provider: 'google',
|
||||||
},
|
fonts: {
|
||||||
|
sans: 'JetBrains Mono',
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2460,6 +2460,7 @@ __metadata:
|
|||||||
"@typescript-eslint/eslint-plugin": ^5.30.6
|
"@typescript-eslint/eslint-plugin": ^5.30.6
|
||||||
"@typescript-eslint/parser": ^5.30.6
|
"@typescript-eslint/parser": ^5.30.6
|
||||||
"@unocss/cli": ^0.44.3
|
"@unocss/cli": ^0.44.3
|
||||||
|
"@unocss/preset-web-fonts": ^0.44.3
|
||||||
"@unocss/reset": ^0.44.3
|
"@unocss/reset": ^0.44.3
|
||||||
"@vitejs/plugin-react": ^2.0.0
|
"@vitejs/plugin-react": ^2.0.0
|
||||||
"@vscode/codicons": ^0.0.31
|
"@vscode/codicons": ^0.0.31
|
||||||
@@ -4472,7 +4473,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@unocss/preset-web-fonts@npm:0.44.3":
|
"@unocss/preset-web-fonts@npm:0.44.3, @unocss/preset-web-fonts@npm:^0.44.3":
|
||||||
version: 0.44.3
|
version: 0.44.3
|
||||||
resolution: "@unocss/preset-web-fonts@npm:0.44.3"
|
resolution: "@unocss/preset-web-fonts@npm:0.44.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user