Skip to content

mornin-ystIUBqR/charcoal-ios

 
 

Repository files navigation

charcoal-ios ― PIXIV Design System

Usage

SwiftUI

Text("Hello")
  .charcoalTypography20Bold()

Button("OK") {}
  .charcoalPrimaryButton(size: .medium)

UIKit

Storyboardとコードから利用可能です。

let label = CharcoalTypography20()
label.isBold = true
label.text = "Hello"

let buttton = CharcoalPrimaryMButton()
button.setTitle("OK", for: .normal)

Installation

Swift Package Managerを使ってライブラリをインストールすることができます。

dependencies: [
  .package(url: "https://github.com/pixiv/charcoal-ios", .upToNextMajor(from: "1.0.0"))
]

Requirements

  • iOS 13+
  • macOS 11+

Documentation

Documentation

Development

SwiftLint

brew install swiftlint

Code Format

swift run -c release --package-path BuildTools swiftformat .

Releases

No releases published

Packages

No packages published

Languages

  • Swift 92.9%
  • JavaScript 7.1%