{"id":16675237,"url":"https://github.com/chsxf/cidercsskit","last_synced_at":"2025-10-13T04:15:20.669Z","repository":{"id":151654494,"uuid":"619165882","full_name":"chsxf/CiderCSSKit","owner":"chsxf","description":"A fast and lightweight CSS parser, written as a pure Swift package","archived":false,"fork":false,"pushed_at":"2024-10-12T17:19:19.000Z","size":929,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-13T12:45:54.666Z","etag":null,"topics":["ciderkit","css","docc","swift","swift-package","swift-package-manager"],"latest_commit_sha":null,"homepage":"https://chsxf.github.io/CiderCSSKit/documentation/cidercsskit","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chsxf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-26T13:18:45.000Z","updated_at":"2024-10-12T17:19:17.000Z","dependencies_parsed_at":"2024-04-02T10:43:31.456Z","dependency_job_id":"b01c2fcd-cdd5-4041-b0c9-8e90a0b52656","html_url":"https://github.com/chsxf/CiderCSSKit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsxf%2FCiderCSSKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsxf%2FCiderCSSKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsxf%2FCiderCSSKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chsxf%2FCiderCSSKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chsxf","download_url":"https://codeload.github.com/chsxf/CiderCSSKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221817469,"owners_count":16885544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ciderkit","css","docc","swift","swift-package","swift-package-manager"],"created_at":"2024-10-12T12:46:00.745Z","updated_at":"2025-10-13T04:15:20.598Z","avatar_url":"https://github.com/chsxf.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ❓ About This Project\n\nCiderCSSKit is lightweight CSS parser written as a pure Swift package.\nIt was primarily designed to work with [CiderKit](https://github.com/chsxf/CiderKit), but the goal is to make it as agnostic as possible.\n\n![](https://img.shields.io/badge/Platforms-macOS%2010.15%2B%20%7C%20iOS%2013%2B%20%7C%20iPadOS%2013%2B%20%7C%20tvOS%2013%2B%20%7C%20watchOS%206%2B%20%7C%20visionOS%201%2B-orange)\n![](https://img.shields.io/badge/Swift-6.0%20%7C%205.10%20%7C%205.9-orange)\n![](https://github.com/chsxf/CiderCSSKit/actions/workflows/swift.yml/badge.svg)\n[![](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg)](https://gitmoji.dev/)\n![](https://analytics.chsxf.dev/GitHubStats.badge/CiderCSSKit/README.md)\n\n# 🪄 Features\n\nCiderCSSKit is still a work-in-progress. So many CSS features are not currenlty supported.\n\nHere's the list of existing and missing features:\n\n- provides easy access to style properties, in bulk or individually\n- named colors are already implemented\n- built-in functions are limited to `rgb` and `rgba`\n- complex CSS combinators (`\u003e`, `+`, and `~`) are not implemented\n- no support pseudo-elements (like `::first-line` for example)\n- no support for parametric pseudo-classes (like `:nth-child()` for example)\n- no support for attribute selectors (like `a[target]` or `a[target=\"_blank\"]`)\n\n## Supported Attributes\n\nThe list of supported attributes is fairly limited for now but will expand over time.\n\n- `background-color`\n- `border-image` and its sub-attributes\n    - `border-image-outset`\n    - `border-image-repeat`\n    - `border-image-slice`\n    - `border-image-source`\n    - `border-image-width`\n- `color`\n- `font` and its sub-attributes\n    - `font-family`\n    - `font-size`\n    - `font-stretch`\n    - `font-style`\n    - `font-variant`\n    - `font-weight`\n    - `line-height`\n- `padding` and its sub-attributes\n    - `padding-bottom`\n    - `padding-left`\n    - `padding-right`\n    - `padding-top`\n- `text-align`\n- `transform-origin`\n- `vertical-align`\n- `visibility`\n- `z-index`\n\n## Planned improvements\n\nEven if the ultimate goal is to support all syntax features, there is a long road ahead. Below is a list of short-term planned improvements:\n\n- [ ] Add support for `hsl()` color function ([#12](https://github.com/chsxf/CiderCSSKit/issues/12))\n- [ ] Add support for the adjacent sibling combinator (`+`) ([#6](https://github.com/chsxf/CiderCSSKit/issues/6))\n- [ ] Add support for the child combinator (`\u003e`) ([#7](https://github.com/chsxf/CiderCSSKit/issues/7))\n- [ ] Add support for the general sibling combinator (`~`) ([#8](https://github.com/chsxf/CiderCSSKit/issues/8))\n- [ ] Provides basic validation configurations for most common attributes, functions and keywords\n\n[Previously Closed Issues](https://github.com/chsxf/CiderCSSKit/issues?q=is%3Aissue+is%3Aclosed)\n\n# 🚀 Getting Started\n\nThe full documentation of the package is available [here](https://chsxf.github.io/CiderCSSKit/documentation/cidercsskit).\n\n# 📦 Installation with Swift Package Manager\n\nCiderCSSKit is available through [Swift Package Manager](https://github.com/apple/swift-package-manager).\n\n## As a Package Dependency\n\nTo install it, simply add the dependency to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/chsxf/CiderCSSKit.git\", requirement: .branch(\"main\")),\n],\ntargets: [\n    .target(name: \"YourTarget\", dependencies: [\"CiderCSSKit\"]),\n]\n```\n\n## As a Project Dependency in Xcode\n\n- In Xcode, select **File \u003e Add Packages...** and enter `https://github.com/chsxf/CiderCSSKit.git` in the search field (top-right). \n- Then select **Branch** as the **Dependency Rule** with `main` in the associated text field.\n- Then select the project of your choice in the **Add to Project** list.\n- Finally, click the **Add Package** button.\n\n# ⚖️ License\n\nUnless stated otherwise, all source code and assets are distributed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchsxf%2Fcidercsskit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchsxf%2Fcidercsskit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchsxf%2Fcidercsskit/lists"}