From 4315a8d7617cd5f29901a58544f8d4f71837d1d2 Mon Sep 17 00:00:00 2001 From: YESEONG LEE Date: Tue, 12 May 2026 15:01:27 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[#6]=20feat:=20DVDesign=20Color=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets.xcassets/color/Contents.json | 6 +++ .../color/black.colorset/Contents.json | 38 ++++++++++++++++ .../color/danger.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray100.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray200.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray300.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray400.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray500.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray600.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray700.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray800.colorset/Contents.json | 38 ++++++++++++++++ .../color/gray900.colorset/Contents.json | 38 ++++++++++++++++ .../color/vault dark.colorset/Contents.json | 38 ++++++++++++++++ .../vault green dark.colorset/Contents.json | 38 ++++++++++++++++ .../vault green tint.colorset/Contents.json | 38 ++++++++++++++++ .../color/vault green.colorset/Contents.json | 38 ++++++++++++++++ .../color/warning.colorset/Contents.json | 38 ++++++++++++++++ .../white.colorset}/Contents.json | 8 ++-- .../Foundations/Color/Color+DVColor.swift | 9 ++++ .../Sources/Foundations/Color/DVColor.swift | 45 +++++++++++++++++++ .../Foundations/Color/View+DVColor.swift | 13 ++++++ .../Sources/Foundations/PlaceholderC.swift | 1 - 22 files changed, 685 insertions(+), 5 deletions(-) create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/vault green.colorset/Contents.json create mode 100644 Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json rename Projects/DVDesign/Resources/Assets.xcassets/{Color.colorset => color/white.colorset}/Contents.json (82%) create mode 100644 Projects/DVDesign/Sources/Foundations/Color/Color+DVColor.swift create mode 100644 Projects/DVDesign/Sources/Foundations/Color/DVColor.swift create mode 100644 Projects/DVDesign/Sources/Foundations/Color/View+DVColor.swift delete mode 100644 Projects/DVDesign/Sources/Foundations/PlaceholderC.swift diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json new file mode 100644 index 0000000..f300ce4 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x00", + "green" : "0x00", + "red" : "0x00" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x00", + "green" : "0x00", + "red" : "0x00" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json new file mode 100644 index 0000000..0e632f6 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x40", + "green" : "0x40", + "red" : "0xE8" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x40", + "green" : "0x40", + "red" : "0xE8" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json new file mode 100644 index 0000000..cb7627f --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xF5", + "green" : "0xF7", + "red" : "0xF4" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xF5", + "green" : "0xF7", + "red" : "0xF4" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json new file mode 100644 index 0000000..0c6b06c --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xEE", + "green" : "0xF0", + "red" : "0xEB" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xEE", + "green" : "0xF0", + "red" : "0xEB" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json new file mode 100644 index 0000000..fbca630 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xE4", + "green" : "0xE6", + "red" : "0xE2" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xE4", + "green" : "0xE6", + "red" : "0xE2" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json new file mode 100644 index 0000000..91c4804 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xC6", + "green" : "0xC9", + "red" : "0xC2" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xC6", + "green" : "0xC9", + "red" : "0xC2" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json new file mode 100644 index 0000000..dc10b7e --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xA8", + "green" : "0xAD", + "red" : "0xA0" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xA8", + "green" : "0xAD", + "red" : "0xA0" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json new file mode 100644 index 0000000..6f18c7d --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x90", + "green" : "0x97", + "red" : "0x7B" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x90", + "green" : "0x97", + "red" : "0x7B" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json new file mode 100644 index 0000000..3df53be --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x60", + "green" : "0x66", + "red" : "0x55" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x60", + "green" : "0x66", + "red" : "0x55" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json new file mode 100644 index 0000000..0d2d750 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x40", + "green" : "0x46", + "red" : "0x37" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x40", + "green" : "0x46", + "red" : "0x37" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json new file mode 100644 index 0000000..5c3bebe --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x20", + "green" : "0x24", + "red" : "0x1A" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x20", + "green" : "0x24", + "red" : "0x1A" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json new file mode 100644 index 0000000..7bdfdc9 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x2E", + "green" : "0x1B", + "red" : "0x1B" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x2E", + "green" : "0x1B", + "red" : "0x1B" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json new file mode 100644 index 0000000..6add2ec --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x50", + "green" : "0x6B", + "red" : "0x1A" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x50", + "green" : "0x6B", + "red" : "0x1A" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json new file mode 100644 index 0000000..3a44c88 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xE5", + "green" : "0xF0", + "red" : "0xD4" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0xE5", + "green" : "0xF0", + "red" : "0xD4" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/vault green.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green.colorset/Contents.json new file mode 100644 index 0000000..a125197 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x75", + "green" : "0x9E", + "red" : "0x2D" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x75", + "green" : "0x9E", + "red" : "0x2D" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json new file mode 100644 index 0000000..bef9e81 --- /dev/null +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x23", + "green" : "0xA6", + "red" : "0xF5" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "0x23", + "green" : "0xA6", + "red" : "0xF5" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DVDesign/Resources/Assets.xcassets/Color.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/white.colorset/Contents.json similarity index 82% rename from Projects/DVDesign/Resources/Assets.xcassets/Color.colorset/Contents.json rename to Projects/DVDesign/Resources/Assets.xcassets/color/white.colorset/Contents.json index 951b907..92ef031 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/Color.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/white.colorset/Contents.json @@ -2,12 +2,12 @@ "colors" : [ { "color" : { - "color-space" : "srgb", + "color-space" : "display-p3", "components" : { "alpha" : "1.000", "blue" : "0xFF", "green" : "0xFF", - "red" : "0xFE" + "red" : "0xFF" } }, "idiom" : "universal" @@ -20,12 +20,12 @@ } ], "color" : { - "color-space" : "srgb", + "color-space" : "display-p3", "components" : { "alpha" : "1.000", "blue" : "0xFF", "green" : "0xFF", - "red" : "0xFE" + "red" : "0xFF" } }, "idiom" : "universal" diff --git a/Projects/DVDesign/Sources/Foundations/Color/Color+DVColor.swift b/Projects/DVDesign/Sources/Foundations/Color/Color+DVColor.swift new file mode 100644 index 0000000..7b1cc3d --- /dev/null +++ b/Projects/DVDesign/Sources/Foundations/Color/Color+DVColor.swift @@ -0,0 +1,9 @@ +// Copyright © 2026 Devault. All rights reserved + +import SwiftUI + +public extension Color { + static func dv(_ token: DVColor) -> Color { + token.color + } +} diff --git a/Projects/DVDesign/Sources/Foundations/Color/DVColor.swift b/Projects/DVDesign/Sources/Foundations/Color/DVColor.swift new file mode 100644 index 0000000..bdf755f --- /dev/null +++ b/Projects/DVDesign/Sources/Foundations/Color/DVColor.swift @@ -0,0 +1,45 @@ +// Copyright © 2026 Devault. All rights reserved + +import SwiftUI + +public enum DVColor: CaseIterable { + case vaultGreen + case vaultGreenDark + case vaultGreenTint + case vaultDark + case gray900 + case gray800 + case gray700 + case gray600 + case gray500 + case gray400 + case gray300 + case gray200 + case gray100 + case white + case black + case danger + case warning + + public var color: Color { + switch self { + case .vaultGreen: return Color("vault green", bundle: .module) + case .vaultGreenDark: return Color("vault green dark", bundle: .module) + case .vaultGreenTint: return Color("vault green tint", bundle: .module) + case .vaultDark: return Color("vault dark", bundle: .module) + case .gray900: return Color("gray900", bundle: .module) + case .gray800: return Color("gray800", bundle: .module) + case .gray700: return Color("gray700", bundle: .module) + case .gray600: return Color("gray600", bundle: .module) + case .gray500: return Color("gray500", bundle: .module) + case .gray400: return Color("gray400", bundle: .module) + case .gray300: return Color("gray300", bundle: .module) + case .gray200: return Color("gray200", bundle: .module) + case .gray100: return Color("gray100", bundle: .module) + case .white: return Color("white", bundle: .module) + case .black: return Color("black", bundle: .module) + case .danger: return Color("danger", bundle: .module) + case .warning: return Color("warning", bundle: .module) + } + } +} diff --git a/Projects/DVDesign/Sources/Foundations/Color/View+DVColor.swift b/Projects/DVDesign/Sources/Foundations/Color/View+DVColor.swift new file mode 100644 index 0000000..f7ee8ba --- /dev/null +++ b/Projects/DVDesign/Sources/Foundations/Color/View+DVColor.swift @@ -0,0 +1,13 @@ +// Copyright © 2026 Devault. All rights reserved + +import SwiftUI + +public extension View { + func dvForegroundColor(_ token: DVColor) -> some View { + self.foregroundStyle(token.color) + } + + func dvBackgroundColor(_ token: DVColor) -> some View { + self.background(token.color) + } +} diff --git a/Projects/DVDesign/Sources/Foundations/PlaceholderC.swift b/Projects/DVDesign/Sources/Foundations/PlaceholderC.swift deleted file mode 100644 index f2ef082..0000000 --- a/Projects/DVDesign/Sources/Foundations/PlaceholderC.swift +++ /dev/null @@ -1 +0,0 @@ -// This file exists to ensure the directory is tracked by Xcode. From fe11b9feaa6134ebad32b837c3619ef41b1fd4f7 Mon Sep 17 00:00:00 2001 From: YESEONG LEE Date: Tue, 12 May 2026 15:36:15 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[#6]=20fix:=20=EC=BB=AC=EB=9F=AC=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=8D=BC=ED=8B=B0=20=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../color/black.colorset/Contents.json | 4 ++-- .../color/danger.colorset/Contents.json | 4 ++-- .../color/gray100.colorset/Contents.json | 4 ++-- .../color/gray200.colorset/Contents.json | 4 ++-- .../color/gray300.colorset/Contents.json | 16 ++++++++-------- .../color/gray400.colorset/Contents.json | 4 ++-- .../color/gray500.colorset/Contents.json | 4 ++-- .../color/gray600.colorset/Contents.json | 4 ++-- .../color/gray700.colorset/Contents.json | 4 ++-- .../color/gray800.colorset/Contents.json | 4 ++-- .../color/gray900.colorset/Contents.json | 4 ++-- .../color/vault dark.colorset/Contents.json | 4 ++-- .../vault green dark.colorset/Contents.json | 2 +- .../vault green tint.colorset/Contents.json | 4 ++-- .../color/warning.colorset/Contents.json | 4 ++-- .../color/white.colorset/Contents.json | 6 +++--- 16 files changed, 38 insertions(+), 38 deletions(-) diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json index f300ce4..be9d677 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/black.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x00", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x00", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json index 0e632f6..374e698 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/danger.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x40", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x40", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json index cb7627f..f4a81ab 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray100.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xF5", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xF5", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json index 0c6b06c..dbd79ae 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray200.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xEE", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xEE", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json index fbca630..dbd79ae 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray300.colorset/Contents.json @@ -2,12 +2,12 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", - "blue" : "0xE4", - "green" : "0xE6", - "red" : "0xE2" + "blue" : "0xEE", + "green" : "0xF0", + "red" : "0xEB" } }, "idiom" : "universal" @@ -20,12 +20,12 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", - "blue" : "0xE4", - "green" : "0xE6", - "red" : "0xE2" + "blue" : "0xEE", + "green" : "0xF0", + "red" : "0xEB" } }, "idiom" : "universal" diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json index 91c4804..0c8a7f2 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray400.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xC6", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xC6", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json index dc10b7e..faf0085 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray500.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xA8", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xA8", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json index 6f18c7d..39754d5 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray600.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x90", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x90", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json index 3df53be..5b1378b 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray700.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x60", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x60", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json index 0d2d750..118b1ff 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray800.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x40", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x40", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json index 5c3bebe..89f863b 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/gray900.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x20", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x20", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json index 7bdfdc9..db994b4 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/vault dark.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x2E", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x2E", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json index 6add2ec..c72aae2 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green dark.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x50", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json index 3a44c88..b4830c5 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/vault green tint.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xE5", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xE5", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json index bef9e81..ed50339 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/warning.colorset/Contents.json @@ -2,7 +2,7 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x23", @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0x23", diff --git a/Projects/DVDesign/Resources/Assets.xcassets/color/white.colorset/Contents.json b/Projects/DVDesign/Resources/Assets.xcassets/color/white.colorset/Contents.json index 92ef031..5d2d400 100644 --- a/Projects/DVDesign/Resources/Assets.xcassets/color/white.colorset/Contents.json +++ b/Projects/DVDesign/Resources/Assets.xcassets/color/white.colorset/Contents.json @@ -2,12 +2,12 @@ "colors" : [ { "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xFF", "green" : "0xFF", - "red" : "0xFF" + "red" : "0xFE" } }, "idiom" : "universal" @@ -20,7 +20,7 @@ } ], "color" : { - "color-space" : "display-p3", + "color-space" : "srgb", "components" : { "alpha" : "1.000", "blue" : "0xFF",