WebTypes, as used in gnorium.com
Shared web types for Swift web development.
WebTypes provides common type definitions and design tokens used across Swift web packages, ensuring consistency in styling and behavior.
- Design Tokens: Colors, spacing, typography
- Shared Types: Common web-related type definitions
- Type Safety: Compile-time guarantees for web values
Add WebTypes to your Package.swift:
dependencies: [
.package(url: "https://github.com/gnorium/web-types", branch: "main")
]Then add it to your target dependencies:
.target(
name: "YourTarget",
dependencies: [
.product(name: "WebTypes", package: "web-types")
]
)import WebTypes
// Use shared design tokens
let primaryColor = Color.primary
let standardSpacing = Spacing.medium- Swift 6.2+
Apache License 2.0 - See LICENSE for details
Contributions welcome! Please open an issue or submit a pull request.
- design-tokens - Universal design tokens based on Apple HIG
- diff-engine - Platform-agnostic character-level diff engine
- embedded-swift-utilities - Utility functions for Embedded Swift environments
- markdown-utilities - Markdown rendering with media attribution support
- admin-core - Core admin functionalities for web applications
- web-apis - Web API implementations for Swift WebAssembly
- web-builders - HTML, CSS, JS, and SVG DSL builders
- web-components - Reusable UI components for web applications
- web-formats - Structured data format builders
- web-security - Portable security utilities for web applications