diff --git a/AGENTS.md b/AGENTS.md index 2f14a8d..7fba7d5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,7 +6,7 @@ | --- | --- | | 전체를 그림으로 한 번에 (처음 읽을 때) | [docs/overview.md](./docs/overview.md) | | 일을 어떤 순서로 하나 (Jira → 브랜치 → 구현 순서 → 검증 → PR → 리뷰 → 릴리스) | [docs/workflow.md](./docs/workflow.md) | -| 앱 폴더에 어떤 파일이 들어가고 누가 누구를 import하나, dev/prod flavor | [docs/mobile-architecture.md](./docs/mobile-architecture.md) | +| 앱 폴더에 어떤 파일이 들어가고 누가 누구를 import하나, dev/prod flavor, 화면 이동 경로 | [docs/mobile-architecture.md](./docs/mobile-architecture.md) | | 웹 폴더 구조·의존성·bridge·환경 | [docs/web-architecture.md](./docs/web-architecture.md) | | 색·간격·글자 크기 값과 바꾸는 절차 | [docs/design-tokens.md](./docs/design-tokens.md) | | PR 올리기 전·리뷰할 때 무엇을 왜 보나 | [docs/pr-checklist.md](./docs/pr-checklist.md) | diff --git a/apps/mobile/assets/fonts/pretendard/LICENSE.txt b/apps/mobile/assets/fonts/pretendard/LICENSE.txt new file mode 100644 index 0000000..c0592ca --- /dev/null +++ b/apps/mobile/assets/fonts/pretendard/LICENSE.txt @@ -0,0 +1,94 @@ +Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard), +with Reserved Font Name Pretendard. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/apps/mobile/assets/fonts/pretendard/Pretendard-Bold.otf b/apps/mobile/assets/fonts/pretendard/Pretendard-Bold.otf new file mode 100644 index 0000000..8e5e30a Binary files /dev/null and b/apps/mobile/assets/fonts/pretendard/Pretendard-Bold.otf differ diff --git a/apps/mobile/assets/fonts/pretendard/Pretendard-Medium.otf b/apps/mobile/assets/fonts/pretendard/Pretendard-Medium.otf new file mode 100644 index 0000000..0575069 Binary files /dev/null and b/apps/mobile/assets/fonts/pretendard/Pretendard-Medium.otf differ diff --git a/apps/mobile/assets/fonts/pretendard/Pretendard-Regular.otf b/apps/mobile/assets/fonts/pretendard/Pretendard-Regular.otf new file mode 100644 index 0000000..08bf4cf Binary files /dev/null and b/apps/mobile/assets/fonts/pretendard/Pretendard-Regular.otf differ diff --git a/apps/mobile/assets/fonts/pretendard/Pretendard-SemiBold.otf b/apps/mobile/assets/fonts/pretendard/Pretendard-SemiBold.otf new file mode 100644 index 0000000..e7e36ab Binary files /dev/null and b/apps/mobile/assets/fonts/pretendard/Pretendard-SemiBold.otf differ diff --git a/apps/mobile/lib/app/router.dart b/apps/mobile/lib/app/router.dart index fa9ddf4..e653a0d 100644 --- a/apps/mobile/lib/app/router.dart +++ b/apps/mobile/lib/app/router.dart @@ -2,11 +2,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import '../features/auth/presentation/views/login_view.dart'; - -/// 경로 문자열은 여기서만 정의한다. View는 자기 경로를 모른다. -abstract final class AppRoutes { - static const login = '/login'; -} +import 'routes.dart'; /// 인증 redirect를 붙일 때는 세션 상태를 `ref.listen`으로 구독해 `refreshListenable`에 연결한다. /// `ref.watch`로 GoRouter를 다시 만들면 내비게이션 스택이 초기화되므로 쓰지 않는다. diff --git a/apps/mobile/lib/app/routes.dart b/apps/mobile/lib/app/routes.dart new file mode 100644 index 0000000..e1165d0 --- /dev/null +++ b/apps/mobile/lib/app/routes.dart @@ -0,0 +1,77 @@ +/// 경로 문자열은 여기서만 정의한다. View는 자기 경로를 모른다. +/// 아무것도 import하지 않는 상수 파일이다. 화면 연결(`GoRoute`)은 `router.dart`. +/// 전체 지도와 Figma 화면 대응은 `docs/mobile-architecture.md` 11절. +/// 상수는 미리 합의해 두고, `GoRoute`는 그 화면을 만들 때 `router.dart`에 등록한다. +/// `:id`가 있는 경로는 상수(GoRoute용)와 함수(이동용)를 같이 둔다. +abstract final class AppRoutes { + // 인증·온보딩 (로그인 전) + static const login = '/login'; + static const terms = '/terms'; + static const signup = '/signup'; + static const onboardingProfile = '/onboarding/profile'; + static const onboardingBandNew = '/onboarding/band/new'; + static const onboardingBandJoin = '/onboarding/band/join'; + + // 하단 탭 + static const home = '/home'; + static const recruit = '/recruit'; + static const chat = '/chat'; + static const my = '/my'; + + // 팀 모집 + static const recruitSearch = '/recruit/search'; + static const recruitNew = '/recruit/new'; + static const recruitDetail = '/recruit/:postId'; + static String recruitDetailOf(String postId) => '/recruit/$postId'; + + // 채팅 + static const chatRoom = '/chat/:roomId'; + static String chatRoomOf(String roomId) => '/chat/$roomId'; + static const chatMembers = '/chat/:roomId/members'; + static String chatMembersOf(String roomId) => '/chat/$roomId/members'; + + // 마이·설정·알림 + static const myProfileEdit = '/my/profile/edit'; + static const settings = '/settings'; + static const notifications = '/notifications'; + + // 합동공연 + static const showNew = '/shows/new'; + static const showNewPlace = '/shows/new/place'; + static const show = '/shows/:showId'; + static String showOf(String showId) => '/shows/$showId'; + static const showEdit = '/shows/:showId/edit'; + static String showEditOf(String showId) => '/shows/$showId/edit'; + static const showFeedNew = '/shows/:showId/feed/new'; + static String showFeedNewOf(String showId) => '/shows/$showId/feed/new'; + static const showFeedPost = '/shows/:showId/feed/:postId'; + static String showFeedPostOf(String showId, String postId) => + '/shows/$showId/feed/$postId'; + static const showScheduleNew = '/shows/:showId/schedule/new'; + static String showScheduleNewOf(String showId) => + '/shows/$showId/schedule/new'; + static const showSchedule = '/shows/:showId/schedule/:scheduleId'; + static String showScheduleOf(String showId, String scheduleId) => + '/shows/$showId/schedule/$scheduleId'; + static const showSetlist = '/shows/:showId/setlist/:bandId'; + static String showSetlistOf(String showId, String bandId) => + '/shows/$showId/setlist/$bandId'; + static const showRoles = '/shows/:showId/roles'; + static String showRolesOf(String showId) => '/shows/$showId/roles'; + static const showAccountOwner = '/shows/:showId/account-owner'; + static String showAccountOwnerOf(String showId) => + '/shows/$showId/account-owner'; + static const showEntry = '/shows/:showId/entry'; + static String showEntryOf(String showId) => '/shows/$showId/entry'; + static const showEntrySearch = '/shows/:showId/entry/search'; + static String showEntrySearchOf(String showId) => + '/shows/$showId/entry/search'; + + // 밴드 + static const band = '/bands/:bandId'; + static String bandOf(String bandId) => '/bands/$bandId'; + static const bandEdit = '/bands/:bandId/edit'; + static String bandEditOf(String bandId) => '/bands/$bandId/edit'; + static const bandMembers = '/bands/:bandId/members'; + static String bandMembersOf(String bandId) => '/bands/$bandId/members'; +} diff --git a/apps/mobile/lib/features/auth/presentation/views/login_view.dart b/apps/mobile/lib/features/auth/presentation/views/login_view.dart index d4e761d..7592460 100644 --- a/apps/mobile/lib/features/auth/presentation/views/login_view.dart +++ b/apps/mobile/lib/features/auth/presentation/views/login_view.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import '../../../../shared/theme/app_spacing.dart'; +import '../../../../shared/theme/app_typography.dart'; /// 로그인 화면. 첫 공통 예제(로그인 → 보호 화면 → 세션 복원 → 로그아웃)를 구현할 때 채운다. class LoginView extends StatelessWidget { @@ -12,7 +13,7 @@ class LoginView extends StatelessWidget { body: Center( child: Padding( padding: const EdgeInsets.all(AppSpacing.x4), - child: Text('로그인', style: Theme.of(context).textTheme.titleLarge), + child: Text('로그인', style: context.textStyles.title1Bold), ), ), ); diff --git a/apps/mobile/lib/shared/theme/app_colors.dart b/apps/mobile/lib/shared/theme/app_colors.dart index 8a8b454..21fd0e5 100644 --- a/apps/mobile/lib/shared/theme/app_colors.dart +++ b/apps/mobile/lib/shared/theme/app_colors.dart @@ -1,80 +1,221 @@ import 'package:flutter/material.dart'; -/// 원시(primitive) 팔레트. 이 파일 밖에서 쓰지 않는다. +/// 원시(primitive) 팔레트. Figma 디자인 시스템 v3의 Primitive와 같은 이름·값. +/// 이 파일 밖에서 쓰지 않는다. 아직 안 쓰는 원시 값(gray.*)은 docs 표에만 있고, 쓸 때 여기에 추가한다. /// /// 값의 기준은 `docs/design-tokens.md`이고, /// `apps/web/src/shared/styles/tokens.css`와 같은 값을 유지한다. abstract final class _Palette { - static const brand500 = Color(0xFF4F46E5); - static const brand600 = Color(0xFF4338CA); - static const gray50 = Color(0xFFF9FAFB); - static const gray200 = Color(0xFFE5E7EB); - static const gray600 = Color(0xFF4B5563); - static const gray900 = Color(0xFF111827); - static const red500 = Color(0xFFEF4444); + static const pink50 = Color(0xFFFFEAF4); + static const pink300 = Color(0xFFFF5FA6); + static const pink500 = Color(0xFFFF2F8C); + static const pink600 = Color(0xFFE62A7E); + static const pink700 = Color(0xFFC7256D); + static const blue50 = Color(0xFFE9F4FF); + static const blue500 = Color(0xFF2F97FF); + static const blue600 = Color(0xFF2887E6); + static const blue700 = Color(0xFF1A6EC2); static const white = Color(0xFFFFFFFF); + static const black = Color(0xFF000000); } -/// 의미(semantic) 색 토큰. 위젯은 `context.colors.primary`처럼 이것만 쓰고 -/// hex 값이나 `Colors.*`를 직접 쓰지 않는다. +/// 의미(semantic) 색 토큰. 이름은 Figma Semantic 이름을 camelCase로 옮긴 것. +/// 위젯은 `context.colors.labelNormal`처럼 이것만 쓰고 hex 값이나 `Colors.*`를 직접 쓰지 않는다. +/// Figma Semantic 값이 Primitive에 없으면 여기에 값을 그대로 둔다. @immutable class AppColors extends ThemeExtension { const AppColors({ - required this.primary, - required this.primaryPressed, - required this.onPrimary, - required this.background, - required this.surface, - required this.textPrimary, - required this.textSecondary, - required this.border, - required this.danger, + required this.labelNormal, + required this.labelStrong, + required this.labelNeutral, + required this.labelAlternative, + required this.labelAssistive, + required this.labelDisable, + required this.backgroundNormal, + required this.backgroundAlternative, + required this.backgroundWarning, + required this.interactionInactive, + required this.interactionDisable, + required this.lineNormal, + required this.lineNeutral, + required this.lineAlternative, + required this.lineStrong, + required this.statusPositive, + required this.statusCautionary, + required this.statusDestructive, + required this.inversePrimary, + required this.inverseBackground, + required this.inverseLabel, + required this.staticWhite, + required this.staticBlack, + required this.fillNormal, + required this.fillStrong, + required this.fillAlternative, + required this.materialDimmer, + required this.pink50, + required this.pink300, + required this.pink500, + required this.pink600, + required this.pink700, + required this.blue50, + required this.blue500, + required this.blue600, + required this.blue700, }); static const light = AppColors( - primary: _Palette.brand500, - primaryPressed: _Palette.brand600, - onPrimary: _Palette.white, - background: _Palette.gray50, - surface: _Palette.white, - textPrimary: _Palette.gray900, - textSecondary: _Palette.gray600, - border: _Palette.gray200, - danger: _Palette.red500, + labelNormal: Color(0xFF171719), // Label/Normal + labelStrong: _Palette.black, // Label/Strong + labelNeutral: Color(0xE02E2F33), // Label/Neutral (88%) + labelAlternative: Color(0xFF6E6E73), // Label/Alternative + labelAssistive: Color(0xFFB9B9B9), // Label/Assistive + labelDisable: Color(0x2937383C), // Label/Disable (16%) + backgroundNormal: _Palette.white, // Background/Normal/Normal + backgroundAlternative: Color(0xFFF7F7F8), // Background/Normal/Alternative + backgroundWarning: Color(0xFFF1E1E1), // Background/Normal/Warning + interactionInactive: Color(0xFF989BA2), // Interaction/Inactive + interactionDisable: Color(0xFFF4F4F5), // Interaction/Disable + lineNormal: Color(0x3870737C), // Line/Normal (22%) + lineNeutral: Color(0x2970737C), // Line/Neutral (16%) + lineAlternative: Color(0x1470737C), // Line/Alternative (8%) + lineStrong: Color(0xFFB6B6B6), // Line/Strong + statusPositive: Color(0xFF00BF40), // Status/Positive + statusCautionary: Color(0xFFFF9200), // Status/Cautionary + statusDestructive: Color(0xFFEF2E2E), // Status/Destructive + inversePrimary: Color(0xFF3385FF), // Inverse/Primary + inverseBackground: Color(0xFF1B1C1E), // Inverse/Background + inverseLabel: Color(0xFFF7F7F8), // Inverse/Label + staticWhite: _Palette.white, // Static/White + staticBlack: _Palette.black, // Static/Black + fillNormal: Color(0x1470737C), // Fill/Normal (8%) + fillStrong: Color(0x2970737C), // Fill/Strong (16%) + fillAlternative: Color(0x0D70737C), // Fill/Alternative (5%) + materialDimmer: Color(0x85171719), // Material/Dimmer (52%) + pink50: _Palette.pink50, // Primary-Pink/50 + pink300: _Palette.pink300, // Primary-Pink/300 + pink500: _Palette.pink500, // Primary-Pink/500 + pink600: _Palette.pink600, // Primary-Pink/600 + pink700: _Palette.pink700, // Primary-Pink/700 + blue50: _Palette.blue50, // Primary-Blue/50 + blue500: _Palette.blue500, // Primary-Blue/500 + blue600: _Palette.blue600, // Primary-Blue/600 + blue700: _Palette.blue700, // Primary-Blue/700 ); - final Color primary; - final Color primaryPressed; - final Color onPrimary; - final Color background; - final Color surface; - final Color textPrimary; - final Color textSecondary; - final Color border; - final Color danger; + final Color labelNormal; + final Color labelStrong; + final Color labelNeutral; + final Color labelAlternative; + final Color labelAssistive; + final Color labelDisable; + final Color backgroundNormal; + final Color backgroundAlternative; + final Color backgroundWarning; + final Color interactionInactive; + final Color interactionDisable; + final Color lineNormal; + final Color lineNeutral; + final Color lineAlternative; + final Color lineStrong; + final Color statusPositive; + final Color statusCautionary; + final Color statusDestructive; + final Color inversePrimary; + final Color inverseBackground; + final Color inverseLabel; + final Color staticWhite; + final Color staticBlack; + final Color fillNormal; + final Color fillStrong; + final Color fillAlternative; + final Color materialDimmer; + final Color pink50; + final Color pink300; + final Color pink500; + final Color pink600; + final Color pink700; + final Color blue50; + final Color blue500; + final Color blue600; + final Color blue700; @override AppColors copyWith({ - Color? primary, - Color? primaryPressed, - Color? onPrimary, - Color? background, - Color? surface, - Color? textPrimary, - Color? textSecondary, - Color? border, - Color? danger, + Color? labelNormal, + Color? labelStrong, + Color? labelNeutral, + Color? labelAlternative, + Color? labelAssistive, + Color? labelDisable, + Color? backgroundNormal, + Color? backgroundAlternative, + Color? backgroundWarning, + Color? interactionInactive, + Color? interactionDisable, + Color? lineNormal, + Color? lineNeutral, + Color? lineAlternative, + Color? lineStrong, + Color? statusPositive, + Color? statusCautionary, + Color? statusDestructive, + Color? inversePrimary, + Color? inverseBackground, + Color? inverseLabel, + Color? staticWhite, + Color? staticBlack, + Color? fillNormal, + Color? fillStrong, + Color? fillAlternative, + Color? materialDimmer, + Color? pink50, + Color? pink300, + Color? pink500, + Color? pink600, + Color? pink700, + Color? blue50, + Color? blue500, + Color? blue600, + Color? blue700, }) { return AppColors( - primary: primary ?? this.primary, - primaryPressed: primaryPressed ?? this.primaryPressed, - onPrimary: onPrimary ?? this.onPrimary, - background: background ?? this.background, - surface: surface ?? this.surface, - textPrimary: textPrimary ?? this.textPrimary, - textSecondary: textSecondary ?? this.textSecondary, - border: border ?? this.border, - danger: danger ?? this.danger, + labelNormal: labelNormal ?? this.labelNormal, + labelStrong: labelStrong ?? this.labelStrong, + labelNeutral: labelNeutral ?? this.labelNeutral, + labelAlternative: labelAlternative ?? this.labelAlternative, + labelAssistive: labelAssistive ?? this.labelAssistive, + labelDisable: labelDisable ?? this.labelDisable, + backgroundNormal: backgroundNormal ?? this.backgroundNormal, + backgroundAlternative: + backgroundAlternative ?? this.backgroundAlternative, + backgroundWarning: backgroundWarning ?? this.backgroundWarning, + interactionInactive: interactionInactive ?? this.interactionInactive, + interactionDisable: interactionDisable ?? this.interactionDisable, + lineNormal: lineNormal ?? this.lineNormal, + lineNeutral: lineNeutral ?? this.lineNeutral, + lineAlternative: lineAlternative ?? this.lineAlternative, + lineStrong: lineStrong ?? this.lineStrong, + statusPositive: statusPositive ?? this.statusPositive, + statusCautionary: statusCautionary ?? this.statusCautionary, + statusDestructive: statusDestructive ?? this.statusDestructive, + inversePrimary: inversePrimary ?? this.inversePrimary, + inverseBackground: inverseBackground ?? this.inverseBackground, + inverseLabel: inverseLabel ?? this.inverseLabel, + staticWhite: staticWhite ?? this.staticWhite, + staticBlack: staticBlack ?? this.staticBlack, + fillNormal: fillNormal ?? this.fillNormal, + fillStrong: fillStrong ?? this.fillStrong, + fillAlternative: fillAlternative ?? this.fillAlternative, + materialDimmer: materialDimmer ?? this.materialDimmer, + pink50: pink50 ?? this.pink50, + pink300: pink300 ?? this.pink300, + pink500: pink500 ?? this.pink500, + pink600: pink600 ?? this.pink600, + pink700: pink700 ?? this.pink700, + blue50: blue50 ?? this.blue50, + blue500: blue500 ?? this.blue500, + blue600: blue600 ?? this.blue600, + blue700: blue700 ?? this.blue700, ); } @@ -82,20 +223,83 @@ class AppColors extends ThemeExtension { AppColors lerp(AppColors? other, double t) { if (other == null) return this; return AppColors( - primary: Color.lerp(primary, other.primary, t)!, - primaryPressed: Color.lerp(primaryPressed, other.primaryPressed, t)!, - onPrimary: Color.lerp(onPrimary, other.onPrimary, t)!, - background: Color.lerp(background, other.background, t)!, - surface: Color.lerp(surface, other.surface, t)!, - textPrimary: Color.lerp(textPrimary, other.textPrimary, t)!, - textSecondary: Color.lerp(textSecondary, other.textSecondary, t)!, - border: Color.lerp(border, other.border, t)!, - danger: Color.lerp(danger, other.danger, t)!, + labelNormal: Color.lerp(labelNormal, other.labelNormal, t)!, + labelStrong: Color.lerp(labelStrong, other.labelStrong, t)!, + labelNeutral: Color.lerp(labelNeutral, other.labelNeutral, t)!, + labelAlternative: Color.lerp( + labelAlternative, + other.labelAlternative, + t, + )!, + labelAssistive: Color.lerp(labelAssistive, other.labelAssistive, t)!, + labelDisable: Color.lerp(labelDisable, other.labelDisable, t)!, + backgroundNormal: Color.lerp( + backgroundNormal, + other.backgroundNormal, + t, + )!, + backgroundAlternative: Color.lerp( + backgroundAlternative, + other.backgroundAlternative, + t, + )!, + backgroundWarning: Color.lerp( + backgroundWarning, + other.backgroundWarning, + t, + )!, + interactionInactive: Color.lerp( + interactionInactive, + other.interactionInactive, + t, + )!, + interactionDisable: Color.lerp( + interactionDisable, + other.interactionDisable, + t, + )!, + lineNormal: Color.lerp(lineNormal, other.lineNormal, t)!, + lineNeutral: Color.lerp(lineNeutral, other.lineNeutral, t)!, + lineAlternative: Color.lerp(lineAlternative, other.lineAlternative, t)!, + lineStrong: Color.lerp(lineStrong, other.lineStrong, t)!, + statusPositive: Color.lerp(statusPositive, other.statusPositive, t)!, + statusCautionary: Color.lerp( + statusCautionary, + other.statusCautionary, + t, + )!, + statusDestructive: Color.lerp( + statusDestructive, + other.statusDestructive, + t, + )!, + inversePrimary: Color.lerp(inversePrimary, other.inversePrimary, t)!, + inverseBackground: Color.lerp( + inverseBackground, + other.inverseBackground, + t, + )!, + inverseLabel: Color.lerp(inverseLabel, other.inverseLabel, t)!, + staticWhite: Color.lerp(staticWhite, other.staticWhite, t)!, + staticBlack: Color.lerp(staticBlack, other.staticBlack, t)!, + fillNormal: Color.lerp(fillNormal, other.fillNormal, t)!, + fillStrong: Color.lerp(fillStrong, other.fillStrong, t)!, + fillAlternative: Color.lerp(fillAlternative, other.fillAlternative, t)!, + materialDimmer: Color.lerp(materialDimmer, other.materialDimmer, t)!, + pink50: Color.lerp(pink50, other.pink50, t)!, + pink300: Color.lerp(pink300, other.pink300, t)!, + pink500: Color.lerp(pink500, other.pink500, t)!, + pink600: Color.lerp(pink600, other.pink600, t)!, + pink700: Color.lerp(pink700, other.pink700, t)!, + blue50: Color.lerp(blue50, other.blue50, t)!, + blue500: Color.lerp(blue500, other.blue500, t)!, + blue600: Color.lerp(blue600, other.blue600, t)!, + blue700: Color.lerp(blue700, other.blue700, t)!, ); } } extension AppColorsContext on BuildContext { - /// `context.colors.primary` 형태로 쓴다. + /// `context.colors.labelNormal` 형태로 쓴다. AppColors get colors => Theme.of(this).extension()!; } diff --git a/apps/mobile/lib/shared/theme/app_theme.dart b/apps/mobile/lib/shared/theme/app_theme.dart index cac890b..f6292d5 100644 --- a/apps/mobile/lib/shared/theme/app_theme.dart +++ b/apps/mobile/lib/shared/theme/app_theme.dart @@ -7,17 +7,21 @@ import 'app_typography.dart'; /// 색·크기 값은 여기서 새로 정하지 않고 토큰 파일에서만 가져온다. abstract final class AppTheme { static final light = ThemeData( + // Material 기본 위젯이 쓰는 primary는 Primary-Pink/500. colorScheme: ColorScheme.fromSeed( - seedColor: AppColors.light.primary, - primary: AppColors.light.primary, - onPrimary: AppColors.light.onPrimary, - surface: AppColors.light.surface, + seedColor: AppColors.light.pink500, + primary: AppColors.light.pink500, + onPrimary: AppColors.light.staticWhite, + secondary: AppColors.light.blue500, + onSecondary: AppColors.light.staticWhite, + surface: AppColors.light.backgroundNormal, // Material 3의 기본 글자색은 onSurface다. 토큰의 본문 색으로 맞춘다. - onSurface: AppColors.light.textPrimary, - error: AppColors.light.danger, + onSurface: AppColors.light.labelNormal, + error: AppColors.light.statusDestructive, ), - scaffoldBackgroundColor: AppColors.light.background, - textTheme: AppTypography.textTheme, - extensions: const [AppColors.light], + scaffoldBackgroundColor: AppColors.light.backgroundNormal, + fontFamily: AppFontFamily.pretendard, + textTheme: AppTextStyles.standard.toTextTheme(), + extensions: [AppColors.light, AppTextStyles.standard], ); } diff --git a/apps/mobile/lib/shared/theme/app_typography.dart b/apps/mobile/lib/shared/theme/app_typography.dart index 5a5a396..dd33d34 100644 --- a/apps/mobile/lib/shared/theme/app_typography.dart +++ b/apps/mobile/lib/shared/theme/app_typography.dart @@ -1,27 +1,187 @@ import 'package:flutter/material.dart'; -/// 글자 크기 토큰. 웹의 `--font-size-*`와 같은 값을 쓴다. +/// 글꼴. `pubspec.yaml`의 fonts에 Regular·Medium·SemiBold·Bold만 넣었다. +abstract final class AppFontFamily { + static const pretendard = 'Pretendard'; +} + +/// 글자 크기 토큰 (Figma 디자인 시스템 v3 타이포그래피). 웹의 `--font-size-*`와 같은 값을 쓴다. abstract final class AppFontSize { - static const sm = 14.0; - static const md = 16.0; - static const lg = 20.0; - static const xl = 24.0; + static const head = 24.0; + static const title1 = 18.0; + static const title2 = 16.0; + static const body1 = 14.0; + static const caption1 = 12.0; + static const tag = 10.0; +} + +/// 행간(배수). Figma에서 auto인 스타일은 지정하지 않는다(글꼴 기본 행간). +abstract final class AppLineHeight { + static const head = 1.3; + static const body1 = 1.4; } -/// 토큰을 Material `TextTheme`에 매핑한다. 위젯은 `Theme.of(context).textTheme.*`를 쓰고 -/// `TextStyle(fontSize: 16)`처럼 크기를 직접 쓰지 않는다. -/// 지정하지 않은 스타일은 Material 기본값과 합쳐진다. 폰트 패밀리는 디자인 확정 후 넣는다. -abstract final class AppTypography { - static const textTheme = TextTheme( - headlineSmall: TextStyle( - fontSize: AppFontSize.xl, - fontWeight: FontWeight.w700, +TextStyle _style(double size, FontWeight weight, [double? height]) => TextStyle( + fontFamily: AppFontFamily.pretendard, + fontSize: size, + fontWeight: weight, + height: height, + letterSpacing: 0, +); + +/// 글자 스타일 토큰. 이름은 Figma 텍스트 스타일 이름(Title-1(B) → `title1Bold`). +/// 위젯은 `context.textStyles.body1Regular`처럼 이것만 쓰고 `TextStyle(fontSize: 16)`을 직접 만들지 않는다. +/// 색은 넣지 않는다. 기본 글자색(`labelNormal`)을 물려받고, 바꿀 때만 `.copyWith(color: context.colors.*)`. +@immutable +class AppTextStyles extends ThemeExtension { + const AppTextStyles({ + required this.head, + required this.title1Bold, + required this.title1Regular, + required this.title2Bold, + required this.title2SemiBold, + required this.title2Regular, + required this.body1Bold, + required this.body1SemiBold, + required this.body1Medium, + required this.body1Regular, + required this.caption1SemiBold, + required this.caption1Medium, + required this.caption1Regular, + required this.tag1, + required this.tag2, + }); + + static final standard = AppTextStyles( + head: _style(AppFontSize.head, FontWeight.w600, AppLineHeight.head), + title1Bold: _style(AppFontSize.title1, FontWeight.w700), + title1Regular: _style(AppFontSize.title1, FontWeight.w400), + title2Bold: _style(AppFontSize.title2, FontWeight.w700), + title2SemiBold: _style(AppFontSize.title2, FontWeight.w600), + title2Regular: _style(AppFontSize.title2, FontWeight.w400), + body1Bold: _style(AppFontSize.body1, FontWeight.w700, AppLineHeight.body1), + body1SemiBold: _style( + AppFontSize.body1, + FontWeight.w600, + AppLineHeight.body1, + ), + body1Medium: _style( + AppFontSize.body1, + FontWeight.w500, + AppLineHeight.body1, ), - titleLarge: TextStyle( - fontSize: AppFontSize.lg, - fontWeight: FontWeight.w600, + body1Regular: _style( + AppFontSize.body1, + FontWeight.w400, + AppLineHeight.body1, ), - bodyMedium: TextStyle(fontSize: AppFontSize.md), - bodySmall: TextStyle(fontSize: AppFontSize.sm), + caption1SemiBold: _style(AppFontSize.caption1, FontWeight.w600), + caption1Medium: _style(AppFontSize.caption1, FontWeight.w500), + caption1Regular: _style(AppFontSize.caption1, FontWeight.w400), + tag1: _style(AppFontSize.tag, FontWeight.w600), + tag2: _style(AppFontSize.tag, FontWeight.w500), ); + + final TextStyle head; + final TextStyle title1Bold; + final TextStyle title1Regular; + final TextStyle title2Bold; + final TextStyle title2SemiBold; + final TextStyle title2Regular; + final TextStyle body1Bold; + final TextStyle body1SemiBold; + final TextStyle body1Medium; + final TextStyle body1Regular; + final TextStyle caption1SemiBold; + final TextStyle caption1Medium; + final TextStyle caption1Regular; + final TextStyle tag1; + final TextStyle tag2; + + /// Material 기본 위젯(버튼·입력창·다이얼로그 등)이 쓰는 `TextTheme`에 Figma 스타일을 넣는다. + /// 화면 코드는 `TextTheme` 이름 대신 `context.textStyles.*`를 쓴다. + TextTheme toTextTheme() => TextTheme( + headlineSmall: head, + titleLarge: title1Bold, + titleMedium: title2SemiBold, + titleSmall: body1SemiBold, + bodyLarge: title2Regular, + bodyMedium: body1Regular, + bodySmall: caption1Regular, + labelLarge: body1SemiBold, + labelMedium: caption1Medium, + labelSmall: tag2, + ); + + @override + AppTextStyles copyWith({ + TextStyle? head, + TextStyle? title1Bold, + TextStyle? title1Regular, + TextStyle? title2Bold, + TextStyle? title2SemiBold, + TextStyle? title2Regular, + TextStyle? body1Bold, + TextStyle? body1SemiBold, + TextStyle? body1Medium, + TextStyle? body1Regular, + TextStyle? caption1SemiBold, + TextStyle? caption1Medium, + TextStyle? caption1Regular, + TextStyle? tag1, + TextStyle? tag2, + }) { + return AppTextStyles( + head: head ?? this.head, + title1Bold: title1Bold ?? this.title1Bold, + title1Regular: title1Regular ?? this.title1Regular, + title2Bold: title2Bold ?? this.title2Bold, + title2SemiBold: title2SemiBold ?? this.title2SemiBold, + title2Regular: title2Regular ?? this.title2Regular, + body1Bold: body1Bold ?? this.body1Bold, + body1SemiBold: body1SemiBold ?? this.body1SemiBold, + body1Medium: body1Medium ?? this.body1Medium, + body1Regular: body1Regular ?? this.body1Regular, + caption1SemiBold: caption1SemiBold ?? this.caption1SemiBold, + caption1Medium: caption1Medium ?? this.caption1Medium, + caption1Regular: caption1Regular ?? this.caption1Regular, + tag1: tag1 ?? this.tag1, + tag2: tag2 ?? this.tag2, + ); + } + + @override + AppTextStyles lerp(AppTextStyles? other, double t) { + if (other == null) return this; + return AppTextStyles( + head: TextStyle.lerp(head, other.head, t)!, + title1Bold: TextStyle.lerp(title1Bold, other.title1Bold, t)!, + title1Regular: TextStyle.lerp(title1Regular, other.title1Regular, t)!, + title2Bold: TextStyle.lerp(title2Bold, other.title2Bold, t)!, + title2SemiBold: TextStyle.lerp(title2SemiBold, other.title2SemiBold, t)!, + title2Regular: TextStyle.lerp(title2Regular, other.title2Regular, t)!, + body1Bold: TextStyle.lerp(body1Bold, other.body1Bold, t)!, + body1SemiBold: TextStyle.lerp(body1SemiBold, other.body1SemiBold, t)!, + body1Medium: TextStyle.lerp(body1Medium, other.body1Medium, t)!, + body1Regular: TextStyle.lerp(body1Regular, other.body1Regular, t)!, + caption1SemiBold: TextStyle.lerp( + caption1SemiBold, + other.caption1SemiBold, + t, + )!, + caption1Medium: TextStyle.lerp(caption1Medium, other.caption1Medium, t)!, + caption1Regular: TextStyle.lerp( + caption1Regular, + other.caption1Regular, + t, + )!, + tag1: TextStyle.lerp(tag1, other.tag1, t)!, + tag2: TextStyle.lerp(tag2, other.tag2, t)!, + ); + } +} + +extension AppTextStylesContext on BuildContext { + /// `context.textStyles.body1Regular` 형태로 쓴다. + AppTextStyles get textStyles => Theme.of(this).extension()!; } diff --git a/apps/mobile/pubspec.yaml b/apps/mobile/pubspec.yaml index 4109d0f..ce26eb0 100644 --- a/apps/mobile/pubspec.yaml +++ b/apps/mobile/pubspec.yaml @@ -35,3 +35,15 @@ flutter: uses-material-design: true assets: - shorebird.yaml + # Pretendard 1.3.9 (SIL OFL 1.1, assets/fonts/pretendard/LICENSE.txt). 디자인에 쓰는 굵기만 넣는다. + fonts: + - family: Pretendard + fonts: + - asset: assets/fonts/pretendard/Pretendard-Regular.otf + weight: 400 + - asset: assets/fonts/pretendard/Pretendard-Medium.otf + weight: 500 + - asset: assets/fonts/pretendard/Pretendard-SemiBold.otf + weight: 600 + - asset: assets/fonts/pretendard/Pretendard-Bold.otf + weight: 700 diff --git a/apps/mobile/test/app/routes_test.dart b/apps/mobile/test/app/routes_test.dart new file mode 100644 index 0000000..0447433 --- /dev/null +++ b/apps/mobile/test/app/routes_test.dart @@ -0,0 +1,42 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:highfive/app/routes.dart'; + +/// `:name` 자리를 값으로 바꾼다. GoRoute가 경로를 맞추는 방식과 같다. +String fill(String pattern, Map params) => + pattern.replaceAllMapped(RegExp(r':(\w+)'), (m) => params[m[1]]!); + +void main() { + const ids = { + 'postId': 'p1', + 'roomId': 'r1', + 'showId': 's1', + 'scheduleId': 'sc1', + 'bandId': 'b1', + }; + + test('이동용 함수는 같은 이름의 경로 상수를 채운 값과 같다', () { + final cases = { + AppRoutes.recruitDetail: AppRoutes.recruitDetailOf('p1'), + AppRoutes.chatRoom: AppRoutes.chatRoomOf('r1'), + AppRoutes.chatMembers: AppRoutes.chatMembersOf('r1'), + AppRoutes.show: AppRoutes.showOf('s1'), + AppRoutes.showEdit: AppRoutes.showEditOf('s1'), + AppRoutes.showFeedNew: AppRoutes.showFeedNewOf('s1'), + AppRoutes.showFeedPost: AppRoutes.showFeedPostOf('s1', 'p1'), + AppRoutes.showScheduleNew: AppRoutes.showScheduleNewOf('s1'), + AppRoutes.showSchedule: AppRoutes.showScheduleOf('s1', 'sc1'), + AppRoutes.showSetlist: AppRoutes.showSetlistOf('s1', 'b1'), + AppRoutes.showRoles: AppRoutes.showRolesOf('s1'), + AppRoutes.showAccountOwner: AppRoutes.showAccountOwnerOf('s1'), + AppRoutes.showEntry: AppRoutes.showEntryOf('s1'), + AppRoutes.showEntrySearch: AppRoutes.showEntrySearchOf('s1'), + AppRoutes.band: AppRoutes.bandOf('b1'), + AppRoutes.bandEdit: AppRoutes.bandEditOf('b1'), + AppRoutes.bandMembers: AppRoutes.bandMembersOf('b1'), + }; + + cases.forEach((pattern, built) { + expect(built, fill(pattern, ids), reason: pattern); + }); + }); +} diff --git a/apps/mobile/test/shared/theme/app_theme_test.dart b/apps/mobile/test/shared/theme/app_theme_test.dart index 8bd6408..36a7a4f 100644 --- a/apps/mobile/test/shared/theme/app_theme_test.dart +++ b/apps/mobile/test/shared/theme/app_theme_test.dart @@ -1,9 +1,11 @@ +import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:highfive/shared/theme/app_colors.dart'; import 'package:highfive/shared/theme/app_theme.dart'; +import 'package:highfive/shared/theme/app_typography.dart'; void main() { - test('글자 스타일의 색은 textPrimary 토큰이다', () { + test('글자 스타일의 색은 labelNormal 토큰이다', () { final t = AppTheme.light.textTheme; for (final style in [ @@ -12,7 +14,18 @@ void main() { t.bodyMedium, t.bodySmall, ]) { - expect(style?.color, AppColors.light.textPrimary); + expect(style?.color, AppColors.light.labelNormal); } }); + + test('Material 글자 스타일은 Pretendard와 Figma 스타일 값을 쓴다', () { + final t = AppTheme.light.textTheme; + final s = AppTextStyles.standard; + + expect(t.bodyMedium?.fontFamily, AppFontFamily.pretendard); + expect(t.bodyMedium?.fontSize, s.body1Regular.fontSize); + expect(t.bodyMedium?.fontWeight, FontWeight.w400); + expect(t.titleLarge?.fontSize, s.title1Bold.fontSize); + expect(t.titleLarge?.fontWeight, FontWeight.w700); + }); } diff --git a/apps/web/package.json b/apps/web/package.json index ff9dc33..9053032 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -20,6 +20,7 @@ "format:check": "prettier --check ." }, "dependencies": { + "pretendard": "^1.3.9", "react": "^19.3.1", "react-dom": "^19.3.1", "react-router": "^8.5.1" diff --git a/apps/web/pnpm-lock.yaml b/apps/web/pnpm-lock.yaml index 800924c..f3bb87f 100644 --- a/apps/web/pnpm-lock.yaml +++ b/apps/web/pnpm-lock.yaml @@ -166,6 +166,9 @@ importers: .: dependencies: + pretendard: + specifier: ^1.3.9 + version: 1.3.9 react: specifier: ^19.3.1 version: 19.3.1 @@ -1320,6 +1323,9 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + pretendard@1.3.9: + resolution: {integrity: sha512-PaQAADyLY5v4kYFwkpSJHbSSYIkiriY/1xXw75TKoZ9UQQqeU+tvP05yTdZAWibiIYoo8ZKtRv8PM7w0IaywSw==} + prettier@3.9.10: resolution: {integrity: sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==} engines: {node: '>=14'} @@ -2584,6 +2590,8 @@ snapshots: prelude-ls@1.2.1: {} + pretendard@1.3.9: {} + prettier@3.9.10: {} pretty-format@27.5.1: diff --git a/apps/web/src/app/NotFoundPage.module.css b/apps/web/src/app/NotFoundPage.module.css index 84e55a1..254005b 100644 --- a/apps/web/src/app/NotFoundPage.module.css +++ b/apps/web/src/app/NotFoundPage.module.css @@ -5,5 +5,5 @@ } .link { - color: var(--color-primary); + color: var(--color-pink-500); } diff --git a/apps/web/src/shared/styles/global.css b/apps/web/src/shared/styles/global.css index a2f1c51..2b1232f 100644 --- a/apps/web/src/shared/styles/global.css +++ b/apps/web/src/shared/styles/global.css @@ -1,3 +1,8 @@ +/* Pretendard (SIL OFL 1.1). 디자인에 쓰는 굵기만 (앱 pubspec.yaml fonts와 같다) */ +@import 'pretendard/dist/web/static/Pretendard-Regular.css'; +@import 'pretendard/dist/web/static/Pretendard-Medium.css'; +@import 'pretendard/dist/web/static/Pretendard-SemiBold.css'; +@import 'pretendard/dist/web/static/Pretendard-Bold.css'; @import './tokens.css'; *, @@ -11,15 +16,9 @@ } body { - font-family: - system-ui, - -apple-system, - 'Apple SD Gothic Neo', - 'Noto Sans KR', - sans-serif; - font-size: var(--font-size-md); - color: var(--color-text-primary); - background: var(--color-background); + font: var(--text-body1-regular); + color: var(--color-label-normal); + background: var(--color-background-normal); } #root { diff --git a/apps/web/src/shared/styles/tokens.css b/apps/web/src/shared/styles/tokens.css index 168dbdb..aa8e7b4 100644 --- a/apps/web/src/shared/styles/tokens.css +++ b/apps/web/src/shared/styles/tokens.css @@ -1,24 +1,55 @@ :root { - /* primitive — use only inside this file */ - --brand-500: #4f46e5; - --brand-600: #4338ca; - --gray-50: #f9fafb; - --gray-200: #e5e7eb; - --gray-600: #4b5563; - --gray-900: #111827; - --red-500: #ef4444; + /* primitive — Figma 디자인 시스템 v3 Primitive. use only inside this file */ + --pink-50: #ffeaf4; + --pink-300: #ff5fa6; + --pink-500: #ff2f8c; + --pink-600: #e62a7e; + --pink-700: #c7256d; + --blue-50: #e9f4ff; + --blue-500: #2f97ff; + --blue-600: #2887e6; + --blue-700: #1a6ec2; --white: #ffffff; + --black: #000000; + + /* semantic — Figma Semantic 이름. components use only these */ + --color-label-normal: #171719; + --color-label-strong: var(--black); + --color-label-neutral: rgb(46 47 51 / 0.88); + --color-label-alternative: #6e6e73; + --color-label-assistive: #b9b9b9; + --color-label-disable: rgb(55 56 60 / 0.16); + --color-background-normal: var(--white); + --color-background-alternative: #f7f7f8; + --color-background-warning: #f1e1e1; + --color-interaction-inactive: #989ba2; + --color-interaction-disable: #f4f4f5; + --color-line-normal: rgb(112 115 124 / 0.22); + --color-line-neutral: rgb(112 115 124 / 0.16); + --color-line-alternative: rgb(112 115 124 / 0.08); + --color-line-strong: #b6b6b6; + --color-status-positive: #00bf40; + --color-status-cautionary: #ff9200; + --color-status-destructive: #ef2e2e; + --color-inverse-primary: #3385ff; + --color-inverse-background: #1b1c1e; + --color-inverse-label: #f7f7f8; + --color-static-white: var(--white); + --color-static-black: var(--black); + --color-fill-normal: rgb(112 115 124 / 0.08); + --color-fill-strong: rgb(112 115 124 / 0.16); + --color-fill-alternative: rgb(112 115 124 / 0.05); + --color-material-dimmer: rgb(23 23 25 / 0.52); + --color-pink-50: var(--pink-50); + --color-pink-300: var(--pink-300); + --color-pink-500: var(--pink-500); + --color-pink-600: var(--pink-600); + --color-pink-700: var(--pink-700); + --color-blue-50: var(--blue-50); + --color-blue-500: var(--blue-500); + --color-blue-600: var(--blue-600); + --color-blue-700: var(--blue-700); - /* semantic — components use only these */ - --color-primary: var(--brand-500); - --color-primary-pressed: var(--brand-600); - --color-on-primary: var(--white); - --color-background: var(--gray-50); - --color-surface: var(--white); - --color-text-primary: var(--gray-900); - --color-text-secondary: var(--gray-600); - --color-border: var(--gray-200); - --color-danger: var(--red-500); --space-1: 4px; --space-2: 8px; --space-3: 12px; @@ -28,8 +59,27 @@ --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; - --font-size-sm: 14px; - --font-size-md: 16px; - --font-size-lg: 20px; - --font-size-xl: 24px; + /* typography — Figma 디자인 시스템 v3 텍스트 스타일. `font: var(--text-body1-regular);`처럼 쓴다 */ + --font-family: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; + --font-size-head: 24px; + --font-size-title1: 18px; + --font-size-title2: 16px; + --font-size-body1: 14px; + --font-size-caption1: 12px; + --font-size-tag: 10px; + --text-head: 600 var(--font-size-head) / 1.3 var(--font-family); + --text-title1-bold: 700 var(--font-size-title1) / normal var(--font-family); + --text-title1-regular: 400 var(--font-size-title1) / normal var(--font-family); + --text-title2-bold: 700 var(--font-size-title2) / normal var(--font-family); + --text-title2-semibold: 600 var(--font-size-title2) / normal var(--font-family); + --text-title2-regular: 400 var(--font-size-title2) / normal var(--font-family); + --text-body1-bold: 700 var(--font-size-body1) / 1.4 var(--font-family); + --text-body1-semibold: 600 var(--font-size-body1) / 1.4 var(--font-family); + --text-body1-medium: 500 var(--font-size-body1) / 1.4 var(--font-family); + --text-body1-regular: 400 var(--font-size-body1) / 1.4 var(--font-family); + --text-caption1-semibold: 600 var(--font-size-caption1) / normal var(--font-family); + --text-caption1-medium: 500 var(--font-size-caption1) / normal var(--font-family); + --text-caption1-regular: 400 var(--font-size-caption1) / normal var(--font-family); + --text-tag1: 600 var(--font-size-tag) / normal var(--font-family); + --text-tag2: 500 var(--font-size-tag) / normal var(--font-family); } diff --git a/docs/design-tokens.md b/docs/design-tokens.md index eca6e89..27028a6 100644 --- a/docs/design-tokens.md +++ b/docs/design-tokens.md @@ -5,13 +5,13 @@ ## 1. 원칙 - **기준은 이 문서의 표**다. Figma 변수가 생기면 그 이름을 그대로 따라 표를 고친다. -- **두 단계**: 원시(primitive) 토큰(`brand.500`, `gray.200`)은 팔레트, 의미(semantic) 토큰(`color.primary`, `color.border`)은 쓰임새. 화면 코드는 **의미 토큰만** 쓴다. 원시 토큰은 토큰 파일 안에서만 참조한다. 디자인이 바뀌면 의미 토큰이 가리키는 원시 값만 바꾸면 되고 화면 코드는 그대로다. +- **두 단계**: 원시(primitive) 토큰(`pink.500`, `gray.200`)은 팔레트, 의미(semantic) 토큰(`label.normal`, `line.normal`)은 쓰임새. 화면 코드는 **의미 토큰만** 쓴다. 원시 토큰은 토큰 파일 안에서만 참조한다. 디자인이 바뀌면 의미 토큰이 가리키는 원시 값만 바꾸면 되고 화면 코드는 그대로다. - **앱과 웹은 각자 파일에 손으로 같은 값을 둔다.** 토큰이 수십 개 수준이라 생성 도구(Style Dictionary 등)보다 손 동기화가 단순하다. 토큰이 100개를 넘거나 다크 모드가 들어오면 그때 생성 도구를 검토한다. | 위치 | 파일 | | --- | --- | | 기준 | `docs/design-tokens.md` (이 문서) | -| 앱 | `apps/mobile/lib/shared/theme/app_colors.dart`, `app_spacing.dart`, `app_radius.dart`, `app_typography.dart` | +| 앱 | `apps/mobile/lib/shared/theme/app_colors.dart`, `app_spacing.dart`, `app_radius.dart`, `app_typography.dart`, 글꼴 `assets/fonts/pretendard/` | | 웹 | `apps/web/src/shared/styles/tokens.css` | ## 2. 바꾸는 절차 @@ -28,34 +28,87 @@ ## 3. 토큰 표 -현재 값은 **디자인 확정 전 임시값**이다. 이름과 구조만 믿고, 값은 디자인이 나오면 바뀐다. +색·글자는 Figma 디자인 시스템 v3 기준이다. 간격·모서리는 Figma에 아직 없어 임시값이다. ### 색 — 원시 (토큰 파일 안에서만) +Figma 디자인 시스템 v3 Primitive (Neutral → `gray`, Primary-Pink → `pink`, Primary-Blue → `blue`). +(미사용)은 아직 어떤 의미 토큰도 가리키지 않아 토큰 파일에 없다. 처음 쓸 때 앱·웹 토큰 파일에 같이 추가한다. + | 이름 | 값 | | --- | --- | -| brand.500 | `#4F46E5` | -| brand.600 | `#4338CA` | -| gray.50 | `#F9FAFB` | -| gray.200 | `#E5E7EB` | -| gray.600 | `#4B5563` | -| gray.900 | `#111827` | -| red.500 | `#EF4444` | +| gray.50 | `#F7F7F7` (미사용) | +| gray.100 | `#EBEBEC` (미사용) | +| gray.200 | `#E2E2E2` (미사용) | +| gray.300 | `#D3D3D3` (미사용) | +| gray.400 | `#B1B1B2` (미사용) | +| gray.500 | `#858586` (미사용) | +| gray.700 | `#545456` (미사용) | +| gray.800 | `#0B0B0C` (미사용) | +| pink.50 | `#FFEAF4` | +| pink.300 | `#FF5FA6` | +| pink.500 | `#FF2F8C` | +| pink.600 | `#E62A7E` | +| pink.700 | `#C7256D` | +| blue.50 | `#E9F4FF` | +| blue.500 | `#2F97FF` | +| blue.600 | `#2887E6` | +| blue.700 | `#1A6EC2` | | white | `#FFFFFF` | +| black | `#000000` | ### 색 — 의미 (화면 코드가 쓰는 것) -| 이름 | 가리킴 | 앱 | 웹 | 쓰임 | +Figma Semantic 이름 그대로. 앱은 `context.colors.<앱 이름>`, 웹은 `var(<웹 이름>)`. +Figma Semantic 값이 원시 팔레트에 없으면 토큰 파일의 의미 토큰에 값을 그대로 둔다. %는 불투명도. + +| 이름 | 값 | 앱 | 웹 | 쓰임 | | --- | --- | --- | --- | --- | -| color.primary | brand.500 | `context.colors.primary` | `var(--color-primary)` | 주 버튼, 강조 | -| color.primaryPressed | brand.600 | `.primaryPressed` | `--color-primary-pressed` | 눌림 상태 | -| color.onPrimary | white | `.onPrimary` | `--color-on-primary` | primary 위 글자 | -| color.background | gray.50 | `.background` | `--color-background` | 화면 바탕 | -| color.surface | white | `.surface` | `--color-surface` | 카드·시트 | -| color.textPrimary | gray.900 | `.textPrimary` | `--color-text-primary` | 본문 | -| color.textSecondary | gray.600 | `.textSecondary` | `--color-text-secondary` | 보조 설명 | -| color.border | gray.200 | `.border` | `--color-border` | 구분선·테두리 | -| color.danger | red.500 | `.danger` | `--color-danger` | 오류·삭제 | +| label.normal | `#171719` | `labelNormal` | `--color-label-normal` | 본문 글자 | +| label.strong | black | `labelStrong` | `--color-label-strong` | 가장 진한 글자 | +| label.neutral | `#2E2F33` 88% | `labelNeutral` | `--color-label-neutral` | 보조 본문 | +| label.alternative | `#6E6E73` | `labelAlternative` | `--color-label-alternative` | 보조 설명 | +| label.assistive | `#B9B9B9` | `labelAssistive` | `--color-label-assistive` | placeholder·힌트 | +| label.disable | `#37383C` 16% | `labelDisable` | `--color-label-disable` | 비활성 글자 | +| background.normal | white | `backgroundNormal` | `--color-background-normal` | 화면 바탕 | +| background.alternative | `#F7F7F8` | `backgroundAlternative` | `--color-background-alternative` | 구역 구분 바탕 | +| background.warning | `#F1E1E1` | `backgroundWarning` | `--color-background-warning` | 경고 바탕 | +| interaction.inactive | `#989BA2` | `interactionInactive` | `--color-interaction-inactive` | 선택 안 된 상태 | +| interaction.disable | `#F4F4F5` | `interactionDisable` | `--color-interaction-disable` | 비활성 요소 바탕 | +| line.normal | `#70737C` 22% | `lineNormal` | `--color-line-normal` | 기본 테두리 | +| line.neutral | `#70737C` 16% | `lineNeutral` | `--color-line-neutral` | 구분선 | +| line.alternative | `#70737C` 8% | `lineAlternative` | `--color-line-alternative` | 옅은 구분선 | +| line.strong | `#B6B6B6` | `lineStrong` | `--color-line-strong` | 진한 테두리 | +| status.positive | `#00BF40` | `statusPositive` | `--color-status-positive` | 성공 | +| status.cautionary | `#FF9200` | `statusCautionary` | `--color-status-cautionary` | 주의 | +| status.destructive | `#EF2E2E` | `statusDestructive` | `--color-status-destructive` | 오류·삭제 | +| inverse.primary | `#3385FF` | `inversePrimary` | `--color-inverse-primary` | 어두운 바탕 위 강조 | +| inverse.background | `#1B1C1E` | `inverseBackground` | `--color-inverse-background` | 어두운 바탕 (토스트 등) | +| inverse.label | `#F7F7F8` | `inverseLabel` | `--color-inverse-label` | 어두운 바탕 위 글자 | +| static.white | white | `staticWhite` | `--color-static-white` | 모드와 상관없이 흰색 | +| static.black | black | `staticBlack` | `--color-static-black` | 모드와 상관없이 검정 | +| fill.normal | `#70737C` 8% | `fillNormal` | `--color-fill-normal` | 채움 바탕 | +| fill.strong | `#70737C` 16% | `fillStrong` | `--color-fill-strong` | 진한 채움 | +| fill.alternative | `#70737C` 5% | `fillAlternative` | `--color-fill-alternative` | 옅은 채움 | +| material.dimmer | `#171719` 52% | `materialDimmer` | `--color-material-dimmer` | 모달 뒤 어둡게 | + +### 색 — 브랜드 (Primary-Pink · Primary-Blue) + +Figma에서 둘 다 Primary다. 화면에서 바로 쓴다. Material 기본 위젯의 primary는 `pink.500`, secondary는 `blue.500`. + +| 이름 | 앱 | 웹 | +| --- | --- | --- | +| pink.50 | `pink50` | `--color-pink-50` | +| pink.300 | `pink300` | `--color-pink-300` | +| pink.500 | `pink500` | `--color-pink-500` | +| pink.600 | `pink600` | `--color-pink-600` | +| pink.700 | `pink700` | `--color-pink-700` | +| blue.50 | `blue50` | `--color-blue-50` | +| blue.500 | `blue500` | `--color-blue-500` | +| blue.600 | `blue600` | `--color-blue-600` | +| blue.700 | `blue700` | `--color-blue-700` | + +다크 모드 전용 값(Figma Background/Elevated, Transparent)은 다크 모드를 넣을 때 추가한다. ### 간격 (4 배수) @@ -76,16 +129,33 @@ | radius.md | 12 | `AppRadius.md` | `--radius-md` | | radius.lg | 16 | `AppRadius.lg` | `--radius-lg` | -### 글자 크기 - -| 이름 | 값 | 앱 | 웹 | -| --- | --- | --- | --- | -| fontSize.sm | 14 | `textTheme.bodySmall` | `--font-size-sm` | -| fontSize.md | 16 | `textTheme.bodyMedium` | `--font-size-md` | -| fontSize.lg | 20 | `textTheme.titleLarge` | `--font-size-lg` | -| fontSize.xl | 24 | `textTheme.headlineSmall` | `--font-size-xl` | - -앱은 크기를 `AppFontSize`에 두고 `AppTypography.textTheme`가 Material `TextTheme`에 매핑한다. 위젯은 `Theme.of(context).textTheme.*`만 쓴다. +### 글자 (Figma 디자인 시스템 v3 타이포그래피) + +글꼴은 **Pretendard** (SIL OFL 1.1). Regular·Medium·SemiBold·Bold만 쓴다. 자간 0. +앱은 `apps/mobile/assets/fonts/pretendard/`에 파일을 두고 `pubspec.yaml` fonts에 등록, 웹은 `pretendard` npm 패키지(글자 범위별로 나눠 필요한 조각만 받는다). + +| Figma | 굵기 | 크기 | 행간 | 앱 `context.textStyles.*` | 웹 `font: var(...)` | +| --- | --- | --- | --- | --- | --- | +| Head(SB) | SemiBold 600 | 24 | 130% | `head` | `--text-head` | +| Title-1(B) | Bold 700 | 18 | auto | `title1Bold` | `--text-title1-bold` | +| Title-1(R) | Regular 400 | 18 | auto | `title1Regular` | `--text-title1-regular` | +| Title-2(B) | Bold 700 | 16 | auto | `title2Bold` | `--text-title2-bold` | +| Title-2(SB) | SemiBold 600 | 16 | auto | `title2SemiBold` | `--text-title2-semibold` | +| Title-2(R) | Regular 400 | 16 | auto | `title2Regular` | `--text-title2-regular` | +| Body-1(B) | Bold 700 | 14 | 140% | `body1Bold` | `--text-body1-bold` | +| Body-1(SB) | SemiBold 600 | 14 | 140% | `body1SemiBold` | `--text-body1-semibold` | +| Body-1(M) | Medium 500 | 14 | 140% | `body1Medium` | `--text-body1-medium` | +| Body-1(R) | Regular 400 | 14 | 140% | `body1Regular` | `--text-body1-regular` | +| Caption-1(SB) | SemiBold 600 | 12 | auto | `caption1SemiBold` | `--text-caption1-semibold` | +| Caption-1(M) | Medium 500 | 12 | auto | `caption1Medium` | `--text-caption1-medium` | +| Caption-1(R) | Regular 400 | 12 | auto | `caption1Regular` | `--text-caption1-regular` | +| Tag-1 | SemiBold 600 | 10 | auto | `tag1` | `--text-tag1` | +| Tag-2 | Medium 500 | 10 | auto | `tag2` | `--text-tag2` | + +- auto는 글꼴 기본 행간 (앱은 `height` 지정 안 함, 웹은 `normal`). +- 스타일에는 색이 없다. 기본 글자색 `label.normal`을 물려받고, 다른 색은 앱 `.copyWith(color: context.colors.*)`, 웹 `color: var(--color-*)`로 따로 준다. +- Material 기본 위젯용으로 `TextTheme`에도 매핑해 둔다 (`bodyMedium` = Body-1(R), `titleLarge` = Title-1(B) 등, `AppTextStyles.toTextTheme`). 화면 코드는 `TextTheme` 이름을 쓰지 않는다. +- Figma 표기와 스타일이 어긋난 곳: Head 표기는 32px지만 스타일은 24px → 24. Caption-1(SB) 표기는 Regular → SemiBold. Title-1(B)·Caption-1(R)·Tag-2는 Figma 스타일이 없어 이름대로 정했다. 디자인 확인 필요. ## 4. 쓰는 법 @@ -95,11 +165,11 @@ Container( padding: const EdgeInsets.all(AppSpacing.x4), decoration: BoxDecoration( - color: context.colors.surface, - border: Border.all(color: context.colors.border), + color: context.colors.backgroundNormal, + border: Border.all(color: context.colors.lineNormal), borderRadius: BorderRadius.circular(AppRadius.md), ), - child: Text(title, style: Theme.of(context).textTheme.titleLarge), + child: Text(title, style: context.textStyles.title1Bold), ) ``` @@ -108,10 +178,10 @@ Container( ```css .card { padding: var(--space-4); - background: var(--color-surface); - border: 1px solid var(--color-border); + background: var(--color-background-normal); + border: 1px solid var(--color-line-normal); border-radius: var(--radius-md); - font-size: var(--font-size-md); + font: var(--text-body1-regular); } ``` @@ -126,6 +196,5 @@ Container( ## 6. 아직 없는 것 (필요해질 때 같은 절차로 추가) - 다크 모드 (`AppColors.dark`, `@media (prefers-color-scheme: dark)`) -- 폰트 패밀리·행간·자간 - 그림자, 애니메이션 시간 - 컴포넌트 토큰 (버튼 높이, 입력창 높이 등) diff --git a/docs/mobile-architecture.md b/docs/mobile-architecture.md index c6136ee..4818553 100644 --- a/docs/mobile-architecture.md +++ b/docs/mobile-architecture.md @@ -16,7 +16,8 @@ lib/ │ ├── di.dart (있음) setupDi: get_it 등록. Service·Repository는 여기에 추가 │ ├── env.dart (있음) Flavor, AppEnv(apiBaseUrl 등 환경값) │ ├── providers.dart (있음) 앱 전역 연결 Provider (appEnvProvider) -│ └── router.dart (있음) AppRoutes 경로 상수 + routerProvider. 인증 redirect는 여기 +│ ├── routes.dart (있음) AppRoutes 경로 상수만 (11절 지도) +│ └── router.dart (있음) routerProvider, GoRoute 등록. 인증 redirect는 여기 │ ├── core/ 기술 기반. 도메인(공연·예매)을 모른다 │ ├── di/locator.dart (있음) getIt 인스턴스 @@ -241,7 +242,7 @@ Service(DioException) ─► core/network/api_error_mapper ─► AppException - ViewModel을 get_it에 등록 - Provider `build()`에서 신청·예매·결제 같은 쓰기 요청 - 다른 기능의 `presentation/` import (View·ViewModel·widgets·providers) -- `Colors.*`, hex, 숫자 패딩·폰트 크기 직접 사용 — 토큰만 (`context.colors`, `AppSpacing`, `textTheme`) +- `Colors.*`, hex, 숫자 패딩·폰트 크기 직접 사용 — 토큰만 (`context.colors`, `AppSpacing`, `context.textStyles`) - `*.g.dart`·`*.freezed.dart` 수정 - 토큰·개인정보를 SharedPreferences·로그·URL·분석 이벤트에 넣기 - 문구를 고정하는 테스트, 생성 파일 테스트 @@ -268,7 +269,7 @@ Service(DioException) ─► core/network/api_error_mapper ─► AppException | 파일 | snake_case + 역할 접미사 | `login_view.dart`, `login_view_model.dart`, `auth_repository.dart`, `auth_service.dart`, `login_request_dto.dart` | | 클래스 | 파일명의 PascalCase | `LoginViewModel` | | Provider | `xxxProvider` | `sessionProvider`, `performanceDetailProvider` | -| 라우트 경로 | `AppRoutes`에만 | `AppRoutes.performanceDetail` | +| 라우트 경로 | `AppRoutes`에만 | `AppRoutes.show`, `AppRoutes.showOf(id)` | | 테스트 | `<파일>_test.dart`, 테스트명은 한국어 문장 | `'중복 탭은 한 번만 요청한다'` | ## 10. 환경(flavor) @@ -289,3 +290,77 @@ dev와 prod는 네이티브 flavor로 나눈다. 앱 ID가 달라서 두 앱이 - **명령에는 항상 `--flavor`를 붙인다.** Android는 flavor 없이 빌드하면 `Gradle build failed to produce an .apk file` 오류로 실패한다. iOS는 원래 `Runner` 스킴이 남아 있어 flavor 없이도 빌드되지만, 결과는 prod 앱 ID에 dev 환경(DEV 배너·dev API)이 섞인 앱이다. 이 빌드는 배포에 쓰지 않는다. - Xcode에서 직접 빌드할 때 Dart 쪽 flavor는 빌드 구성 이름에서 정해진다. `Debug-dev`처럼 `-` 뒤 이름이 스킴 이름과 같으면 그 flavor를 쓴다(flutter_tools `parseFlavorFromConfiguration`). 그래서 `dev`·`prod` 스킴을 고르면 맞게 들어간다. `Runner` 스킴(구성 `Debug`)은 구성 이름에 flavor가 없어서 마지막 `fvm flutter` 명령이 `ios/Flutter/Generated.xcconfig`에 남긴 `FLAVOR` 값을 쓴다. 그러니 Xcode에서는 `Runner` 스킴으로 빌드하지 않는다. - CocoaPods를 쓰게 되면 `ios/Podfile`의 `project 'Runner', {...}`에 새 구성 6개를 매핑해야 한다(`Debug-dev`는 `:debug`, `Release-dev`·`Profile-dev`는 `:release`, prod도 같게). 각 구성의 Pods xcconfig도 include해야 한다. 지금은 SwiftPM을 써서 Podfile이 없다. + +## 11. 화면 이동 경로 + +Figma `와이어프레임 New` → `11/8 pm 확정 영역: 티켓 신청 전까지` 기준으로 정한 지도다. 경로 상수는 `app/routes.dart`의 `AppRoutes`에 미리 두고, `GoRoute`는 그 화면을 만드는 PR에서 `app/router.dart`에 등록한다(빈 화면을 미리 만들지 않는다). 바꿀 때는 이 표와 `AppRoutes`를 같은 PR에서 고친다. + +- 하단 탭 4개: 홈 · 팀 모집 · 채팅 · 마이. 탭 전환은 각 탭 상태를 유지한다(`StatefulShellRoute`, 탭 화면을 만들 때 도입). +- 화면 안의 탭(공연 페이지의 정보·피드·일정·티켓 관리, 메시지함의 전체·받은 문의·보낸 문의·공연 채팅, 마이의 내 공연·찜한 공연)은 경로를 나누지 않고 화면 상태로 둔다. +- 팝업·바텀시트·토스트·확인창은 경로가 아니다. 띄운 화면의 ViewModel이 연다. +- 고정 하위 경로(`/recruit/new`, `/recruit/search`, `/shows/new`)는 `:id` 경로보다 먼저 등록한다. 아니면 `new`가 id로 잡힌다. +- 로그인 전 화면 외에는 전부 로그인 필요. 인증 redirect는 `routerProvider`에 붙인다(로그인 → 온보딩 미완료면 온보딩 → 홈). + +### 로그인 전 + +| 경로 | 화면 | Figma 프레임 | +| --- | --- | --- | +| `/login` | 로그인 (소셜 로그인 버튼) | 약관 동의 (1117:7761) | +| `/terms` | 약관 동의 | 약관 동의 카카오 | +| `/signup` | 회원가입 | 계정-회원가입 | +| `/onboarding/profile` | 프로필 정보 입력 | 온보딩-프로필정보 입력1 | +| `/onboarding/band/new` | 새 밴드 만들기 (밴드 정보 입력 1·2단계) | 온보딩-계정생성-새밴드만들기, 온보딩-밴드정보 입력1·2 | +| `/onboarding/band/join` | 코드로 밴드 합류 | 온보딩-계정생성-코드로합류, 온보딩-코드합류-밴드확인 | + +### 하단 탭 + +| 경로 | 화면 | Figma 프레임 | +| --- | --- | --- | +| `/home` | 홈 (공연 없음·판매 전·판매 중·공연 당일 상태) | 홈 화면, 합동공연을 만들기 전, 티켓판매 전, 티켓 판매중인 공연이 있음, 공연 당일 | +| `/recruit` | 팀 모집 공고 목록 | 팀 모집 탭-공고목록 | +| `/chat` | 메시지함 | 메세지함-공통 | +| `/my` | 마이페이지 | 마이페이지, 마이페이지-찜한공연탭 | + +### 팀 모집 · 채팅 · 마이 + +| 경로 | 화면 | Figma 프레임 | +| --- | --- | --- | +| `/recruit/search` | 공고 검색·필터 | 팀 모집 검색_결과, 필터 | +| `/recruit/new` | 모집 공고 작성 | 모집 공고작성 | +| `/recruit/:postId` | 모집 공고 상세 (내 공고·타 팀 공고·마감) | 모집공고-상세_내가 보는 내 밴드 공고, 모집공고-타 팀이 보는 내 밴드 공고 | +| `/chat/:roomId` | 채팅방 (문의 채팅·합동공연 대표자 채팅) | 문의채팅-*, 캐주얼 문의, 합동공연 대표자 채팅 | +| `/chat/:roomId/members` | 채팅 참여자 목록 | 합동공연 대표자 채팅-참여자 목록 | +| `/my/profile/edit` | 내 프로필 수정 | 내 프로필 수정 | +| `/settings` | 설정 (계정·탈퇴·고객지원) | 설정 | +| `/notifications` | 알림 목록 | 알림-목록, 알림-비어있음 | + +### 합동공연 + +| 경로 | 화면 | Figma 프레임 | +| --- | --- | --- | +| `/shows/new` | 공연 열고 팀 모집하기 (공연 정보 불러오기 포함) | 공연 열고 팀 모집하기, 공연 정보 불러오기 | +| `/shows/new/place` | 장소 검색·위치 확인 | 합동공연생성-장소검색, 합동공연생성-위치확인 | +| `/shows/:showId` | 공연 페이지 (정보·피드·일정·티켓 관리 탭) | 정보탭_*, 공고상세_피드, 공고상세_일정, N팀 모집 상태 | +| `/shows/:showId/edit` | 공연 정보 수정 | 공연정보수정 | +| `/shows/:showId/feed/new` | 피드 글쓰기 | 피드-글쓰기_대표자용·팀원용, 글쓰기v2 | +| `/shows/:showId/feed/:postId` | 게시글 상세·댓글 | 피드-게시글상세_댓글 | +| `/shows/:showId/schedule/new` | 일정 등록 | 일정-등록v2, 일정-날짜선택 v2 | +| `/shows/:showId/schedule/:scheduleId` | 일정 상세·수정 | 일정 상세-* | +| `/shows/:showId/setlist/:bandId` | 밴드별 셋리스트 (곡 추가·편집) | 라인업-각 밴드 셋리스트 페이지, 셋리스트-편집, 라인업-곡추가 | +| `/shows/:showId/roles` | 역할 관리 (현장 담당자) | 역할관리-페이지, 역할관리-현장담당자추가 | +| `/shows/:showId/account-owner` | 계좌 주인 지정·변경 | 계좌주인_지정화면, 계좌주인 변경-* | +| `/shows/:showId/entry` | 현장 입장 QR 스캔 | 공연당일-현장 입장 시작, 현장입장_* | +| `/shows/:showId/entry/search` | 이름으로 찾아 입장 처리 | 이름으로 찾기, 이름찾기_* | + +### 밴드 + +| 경로 | 화면 | Figma 프레임 | +| --- | --- | --- | +| `/bands/:bandId` | 밴드 프로필 (내 밴드·타 팀) | 밴드프로필, 밴드프로필-타 팀 프로필 열람 | +| `/bands/:bandId/edit` | 밴드 프로필 수정 | 밴드프로필-수정 | +| `/bands/:bandId/members` | 팀원 관리 (대표자 위임·내보내기) | 팀원관리-페이지 | + +### 아직 안 정한 것 + +- 관객 쪽(공유 링크로 공연 보기·예매·현장 신청·내 티켓·환불)은 확정 영역 밖이다. 앱인지 웹(`apps/web`)인지부터 정한다. +- 공유 링크·푸시 알림이 여는 딥링크 형식. diff --git a/docs/overview.md b/docs/overview.md index 8bb3bbc..04fff48 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -264,7 +264,7 @@ flowchart LR doc --> dart["앱 토큰 파일
lib/shared/theme/app_*.dart"] doc --> css["웹 토큰 파일
src/shared/styles/tokens.css"] dart --> theme["app_theme.dart
ThemeData로 묶기"] - theme --> w["위젯
context.colors · AppSpacing · textTheme"] + theme --> w["위젯
context.colors · AppSpacing · context.textStyles"] css --> comp["컴포넌트 CSS
var(--color-*) · var(--space-*)"] ``` diff --git a/docs/pr-checklist.md b/docs/pr-checklist.md index 43b7880..5116871 100644 --- a/docs/pr-checklist.md +++ b/docs/pr-checklist.md @@ -88,7 +88,7 @@ PR 템플릿(`.github/PULL_REQUEST_TEMPLATE.md`)의 체크박스는 이 문서 ### A6. 디자인 토큰 -- 본다: 위젯·컴포넌트 코드에 hex, `Colors.*`, 숫자 패딩·폰트 크기·모서리가 없다. 전부 `context.colors.*` / `AppSpacing` / `AppRadius` / `textTheme`, 웹은 `var(--color-*)` 등. 토큰 값을 바꿨으면 앱·웹·`design-tokens.md` 셋 다 같은 PR에 있고 캡처가 있다. +- 본다: 위젯·컴포넌트 코드에 hex, `Colors.*`, 숫자 패딩·폰트 크기·모서리가 없다. 전부 `context.colors.*` / `AppSpacing` / `AppRadius` / `context.textStyles`, 웹은 `var(--color-*)` 등. 토큰 값을 바꿨으면 앱·웹·`design-tokens.md` 셋 다 같은 PR에 있고 캡처가 있다. - 왜: 화면 리듬(여백·모서리·글자 크기)이 같으면 디자인이 달라도 "같은 앱"으로 느낀다. 반대로 한 화면만 14px 대신 15px이면 이유 없이 어색하다. - 확인: ```bash