Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebTypes, as used in gnorium.com

Shared web types for Swift web development.

Overview

WebTypes provides common type definitions and design tokens used across Swift web packages, ensuring consistency in styling and behavior.

Features

  • Design Tokens: Colors, spacing, typography
  • Shared Types: Common web-related type definitions
  • Type Safety: Compile-time guarantees for web values

Installation

Swift Package Manager

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")
    ]
)

Usage

import WebTypes

// Use shared design tokens
let primaryColor = Color.primary
let standardSpacing = Spacing.medium

Requirements

  • Swift 6.2+

License

Apache License 2.0 - See LICENSE for details

Contributing

Contributions welcome! Please open an issue or submit a pull request.

Related Packages

About

WebTypes, as used in gnorium.com

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages