디자인 토큰을 Figma 실측값으로 교체 · 42dot Sans · ABeeZee 폰트 동봉
This commit is contained in:
@@ -14,7 +14,8 @@ void main() {
|
||||
/// 코스믹 팔레트에 속한 색인가. 토큰 밖의 색이면 Material 이 만들어 낸 것이다.
|
||||
bool isCosmic(Color? c) {
|
||||
if (c == null) return false;
|
||||
final palette = <Color>{
|
||||
// 값이 같은 토큰이 있어도 되도록 리스트에서 집합을 만든다.
|
||||
final palette = <Color>[
|
||||
AppColors.cosmicVoid,
|
||||
AppColors.cosmicSurface,
|
||||
AppColors.cosmicSurfaceContainer,
|
||||
@@ -27,7 +28,7 @@ void main() {
|
||||
AppColors.neonCyan,
|
||||
AppColors.neonViolet,
|
||||
AppColors.error,
|
||||
};
|
||||
].toSet();
|
||||
return palette.contains(c) || c == Colors.transparent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user