feat(ui): establish shared design system foundations

This commit is contained in:
2026-09-08 07:09:05 +03:00
parent 36698322b7
commit d762ba5034
18 changed files with 401 additions and 40 deletions
+7 -2
View File
@@ -1,11 +1,10 @@
import "@mantine/core/styles.css";
import "@mantine/dates/styles.css";
import "dayjs/locale/ru";
import "../src/app/styles.css";
import "../src/shared/i18n";
import { MantineProvider } from "@mantine/core";
import type { Preview } from "@storybook/react-vite";
import { theme } from "../src/app/theme";
import { cssVariablesResolver, theme } from "@/shared/theme";
const colorSchemeManager = {
get: () => "light" as const,
@@ -18,11 +17,17 @@ const colorSchemeManager = {
const preview: Preview = {
parameters: {
layout: "padded",
options: {
storySort: {
order: ["Design System", ["Foundations", "Components"], "Product"],
},
},
controls: { expanded: true },
},
decorators: [
(Story) => (
<MantineProvider
cssVariablesResolver={cssVariablesResolver}
theme={theme}
forceColorScheme="light"
colorSchemeManager={colorSchemeManager}