Framework
Theme Wireframe
This Wireframe theme is a theme for some specific usages, like for prototyping and design of journeys with non-Orange charted themes.
Overview
🧬 Theme version: 2.9.0
Note
The Wireframe theme uses the Shantell Sans font family
Important
The Wireframe theme does not embed charts colors yet, and is read only: it cannot be suclassed or derivated.
How to use the theme
You can use WireframeTheme directly. To use the WireframeTheme without further modifications, you will have to use the OUDSThemeableView for your root view and give it an instance of WireframeTheme. Keep in mind the themes are Swift class objects and can be heavy, so you may use only as instance as singleton and not store any properties.
@main
struct YourApp: App {
var body: some Scene {
WindowGroup {
OUDSThemeableView(theme: WireframeTheme()) {
// Your root view
}
}
}
}
Then, in your views, you can simply use the theme through an environment variable to get the tokens:
struct SomeView: View {
// Get OUDS environment variable for theme thanks to themeable view
@Environment(\.theme) var theme
var body: some View {
// Use the theme to retrieve the tokens
// For spaces: theme.spaces
// For sizes: theme.sizes
// For borders: theme.borders
// For elevations: theme.elevations
// For opacities: theme.opacities
// For colors: theme.colors
// For button configuration: theme.button
// For link configuration: theme.link
// Etc.
}
}
How to tune the theme
You cannot tune the Wireframe theme.
Typography
The Wireframe theme uses the Shantell Sans font family and must not use others.
How to enrich the theme
You cannot derivate the Wireframe theme.
How it looks like
Actions
Button

Content display
Bullet list

Controls
Checkboxes
Chips
Password input

Pin code input

Radios
Switches
Text area

Text input

Dialogs
Alert message

Inline alert

Foundations
Typography

Indicators
Badge
Progress indicator
Skeleton

Tags
Layouts
Colored surface

Dividers
Navigations
Link

List item
Tab bar
Tool bar
Topics
Group
class WireframeThemeThis Wireframe theme is a theme for some specific usages, like for prototyping and design of journeys with non-Orange charted themes. This is an override of the default basic OUDSTheme for some usages. It can override any properties from its superclass, but it cannot be subclassed.
enum WireframeBrandColorRawTokensThis enum helps to add new color raw tokens exclusive to this WireframeTheme. Such tokens are packed in a Swift enum so as to gather them in one object with the suitable namespace and avoid to have just constants in nothing else (i.e. publicly accessible from everywhere). More optimized than dimensionstruct_.
enum WireframeBrandFontRawTokensThis enum helps to add new font raw tokens exclusive to this WireframeTheme Such tokens are packed in a Swift enum so as to gather them in one object with the suitable namespace and avoid to have just constants in nothing else (i.e. publicly accessible from everywhere). More optimized than dimensionstruct_.
Classes
class WireframeThemeBorderSemanticTokensProviderA class which wraps all border semantic tokens and expose them. This provider should be integrated as a AllBorderSemanticTokensProvider implementation inside some OUDSTheme so as to provide all tokens to the users.
class WireframeThemeColorSemanticTokensProviderA class which wraps all color semantic tokens, multiple or not, and expose them. This provider should be integrated as a AllColorSemanticTokensProvider implementation inside OUDSTheme so as to provide all tokens to the users.
class WireframeThemeFontSemanticTokensProviderA class which wraps all font semantic tokens, multiple, composite or not, and expose them. This provider should be integrated as a AllFontSemanticTokensProvider implementation inside OUDSTheme so as to provide all tokens to the users.
Type Aliases
Extended Modules