MaterialColor

1.0.0

Provides a default color palette, similar to Tailwind CSS, consisting of slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, and rose. Each color includes 11 different saturations, ranging from light to dark. 一个山寨了 Tailwind CSS 的 swift package。
wuyu2015/MaterialColorSwift

What's New

MaterialColorSwift 1.0.0

2024-04-06T11:51:55Z

Initial version.

MaterialColorSwift

MaterialColorSwift is a Swift package inspired by Material Design and Tailwind CSS.

Introduction

In Material Design, colors are divided into a series of levels ranging from 50 to 900. Each level represents the same color, with increasing levels indicating greater depth and saturation.

In the implementation of Tailwind CSS, the preset color palette is divided into: slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, and rose, covering most design needs.

Installation

You can integrate MaterialColorSwift into your Xcode project using Swift Package Manager:

  1. In Xcode, select "File" -> "Swift Packages" -> "Add Package Dependency..."
  2. Enter the URL of this repository: https://github.com/wuyu2015/MaterialColorSwift.git
  3. Follow the prompts to complete the integration process.

Usage

You can use these colors in your Swift code like this:

import MaterialColor

let myColor = MaterialColor.Tailwind.pink500

Contributing

Contributions to MaterialColorSwift are welcome! If you have any suggestions, feature requests, or bug reports, please create an issue or submit a pull request.

License

MaterialColorSwift is available under the MIT license.


MaterialColorSwift

简介

MaterialColorSwift 是一个山寨了 Material DesignTailwind CSS 的 swift package。

在 Material Design 中,颜色值被分为从 50 到 900 的一系列级别。每个颜色级别都代表了相同的颜色,随着级别的增加,颜色的深度和饱和度也会增加。

在 Tailwind CSS 的实现里,预设调色板被分为:青灰、灰、锌、中性、石头、红、橙、黄、酸橙、绿、翡翠、青绿、青、天蓝、蓝、靛蓝、紫罗兰、紫、品红、粉红、玫瑰,以覆盖大多数设计需求。

安装

您可以使用 Swift Package Manager 将 MaterialColorSwift 集成到您的 Xcode 项目中:

  1. 在 Xcode 中,选择 "File" -> Swift Packages" -> ""Add Package Dependency..."
  2. 输入此 URL:https://github.com/wuyu2015/MaterialColorSwift.git
  3. 按照提示完成集成过程。

使用

import MaterialColor

let myColor = MaterialColor.Tailwind.pink500

贡献

欢迎提建议、报 Bug、创建 issue、提交 pull request。

许可

MaterialColorSwift 使用 MIT 许可证。

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Apr 26 2024 22:29:51 GMT-0900 (Hawaii-Aleutian Daylight Time)