Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DesignSystem 색상 명칭 수정 및 Resource 접근 제어 추가 #12

Merged
merged 3 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "0.900",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "0.900",
"blue" : "0x12",
"green" : "0x12",
"red" : "0x12"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
39 changes: 39 additions & 0 deletions Shared/Sources/DesignSystem/Sources/Color+Resource.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// Color+Resource.swift
//
//
// Created by 홍승현 on 1/27/24.
//

import SwiftUI

public extension Color {
static let gray050: Color = .init(.gray050)
static let gray100: Color = .init(.gray100)
static let gray200: Color = .init(.gray200)
static let gray300: Color = .init(.gray300)
static let gray400: Color = .init(.gray400)
static let gray500: Color = .init(.gray500)
static let gray600: Color = .init(.gray600)
static let gray700: Color = .init(.gray700)
static let gray800: Color = .init(.gray800)
static let gray900: Color = .init(.gray900)

static let green050: Color = .init(.green050)
static let green100: Color = .init(.green100)
static let green200: Color = .init(.green200)
static let green300: Color = .init(.green300)
static let green400: Color = .init(.green400)
static let green500: Color = .init(.green500)
static let green600: Color = .init(.green600)
static let green700: Color = .init(.green700)
static let green800: Color = .init(.green800)
static let green900: Color = .init(.green900)

static let pyeonHaengBlue: Color = .init(.pyeonHaengBlue)
static let pyeonHaengGreen: Color = .init(.pyeonHaengGreen)
static let pyeonHaengRed: Color = .init(.pyeonHaengRed)
static let pyeonHaengYellow: Color = .init(.pyeonHaengYellow)

static let blur: Color = .init(.blur)
}
16 changes: 16 additions & 0 deletions Shared/Sources/DesignSystem/Sources/Image+Resource.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// Image+Resource.swift
//
//
// Created by 홍승현 on 1/28/24.
//

import SwiftUI

public extension Image {
static let cu: Image = .init(.CU)
static let gs25: Image = .init(.GS_25)
static let _7Eleven: Image = .init(._7Eleven)
static let emart24: Image = .init(.emart24)
static let ministop: Image = .init(.ministop)
}