refactor: привести шаблон к правилам стайлгайда

- Архитектура SLM: провайдеры перенесены в infrastructure/mantine, стили в shared/styles
- SVG-спрайты: переход на @gromlab/svg-sprites, добавлен preload в layout
- Стили: переменные и брейкпоинты приведены к базовому набору стайлгайда (rem, Mobile First)
- PostCSS: добавлены postcss-custom-media, postcss-nesting, autoprefixer, @csstools/postcss-global-data
- tsconfig: исправлен алиас shared/* → ./src/shared/*
- Удалены app/styles/, app/providers/, scripts/create-svg-sprite.js, public/img/sprites/
- README переписан на SLM-архитектуру
- Добавлены иконки: clipboard-tick, doctor, people, symptom
This commit is contained in:
2026-04-30 19:24:40 +03:00
parent 1950c3612a
commit bf792f6159
27 changed files with 549 additions and 321 deletions

View File

@@ -1,6 +1,10 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
'@csstools/postcss-global-data': {
files: ['src/shared/styles/media.css'],
},
'postcss-custom-media': {},
'postcss-preset-mantine': {},
'postcss-simple-vars': {
variables: {
@@ -11,6 +15,8 @@ const config = {
'mantine-breakpoint-xl': '88em',
},
},
'postcss-nesting': {},
autoprefixer: {},
},
};