feat: 移除 postcss-prefix-selector 依赖,更新样式以支持深色模式,优化 TutorialForm 和 ZodForm 组件

This commit is contained in:
mac-mini-2024
2024-11-20 21:54:13 +08:00
parent c7edd1a65c
commit 275ebb26f7
6 changed files with 33 additions and 56 deletions

View File

@@ -6,6 +6,7 @@ import i18next from "i18next";
import { zodI18nMap } from "zod-i18n-map";
// Import your language translation files
import translation from "zod-i18n-map/locales/zh-CN/zod.json";
import { text } from '@formkit/inputs';
// lng and resources key depend on your locale.
i18next.init({
@@ -38,8 +39,8 @@ const [zodPlugin, submitHandler] = createZodPlugin(
</script>
<template>
<div class="bg-white rounded-xl shadow-xl p-8 mx-auto my-16 max-w-[450px]">
<h1>Validation from Zod schema</h1>
<div class="bg-white rounded-xl shadow-xl p-8 mx-auto my-16 max-w-[450px] dark:bg-gray-800 ">
<h1 class="text-2xl font-bold mb-4 color:gray-800 dark:text-white">Validation from Zod schema</h1>
<FormKit
type="form"
:plugins="[zodPlugin]"