@nice2dev/omniwerk-branding 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +232 -0
- package/assets/fonts/AntonSC-Regular.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/dist/OmniWerkLogo.d.ts +104 -0
- package/dist/colors.d.ts +85 -0
- package/dist/fonts.cjs +9 -0
- package/dist/fonts.d.ts +63 -0
- package/dist/fonts.mjs +53 -0
- package/dist/index.cjs +60 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.mjs +487 -0
- package/dist/theme.d.ts +186 -0
- package/package.json +65 -0
package/README.md
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# @nice2dev/omniwerk-branding
|
|
2
|
+
|
|
3
|
+
Official OmniWerk brand assets, logos, and theme for React applications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @nice2dev/omniwerk-branding
|
|
9
|
+
# or
|
|
10
|
+
pnpm add @nice2dev/omniwerk-branding
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **Logo Components** — Icon, text, and combined logo variants
|
|
16
|
+
- **Brand Colors** — Complete color palette with light/dark schemes
|
|
17
|
+
- **Typography** — Anton SC font for headlines (SIL OFL 1.1 licensed)
|
|
18
|
+
- **Theme Presets** — Ready-to-use themes for Tailwind, MUI, and CSS variables
|
|
19
|
+
- **Animations** — Animated logo and loading spinner
|
|
20
|
+
|
|
21
|
+
## Quick Start
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import {
|
|
25
|
+
OmniWerkLogo,
|
|
26
|
+
OmniWerkFontLoader,
|
|
27
|
+
OMNIWERK_COLORS
|
|
28
|
+
} from '@nice2dev/omniwerk-branding';
|
|
29
|
+
|
|
30
|
+
function App() {
|
|
31
|
+
return (
|
|
32
|
+
<>
|
|
33
|
+
{/* Load Anton SC font from Google Fonts */}
|
|
34
|
+
<OmniWerkFontLoader />
|
|
35
|
+
|
|
36
|
+
{/* Logo with gradient */}
|
|
37
|
+
<OmniWerkLogo
|
|
38
|
+
variant="horizontal"
|
|
39
|
+
size="lg"
|
|
40
|
+
gradient="brand"
|
|
41
|
+
/>
|
|
42
|
+
</>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Components
|
|
48
|
+
|
|
49
|
+
### OmniWerkLogo
|
|
50
|
+
|
|
51
|
+
Complete logo with icon and text.
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
// Icon only
|
|
55
|
+
<OmniWerkLogo variant="icon" />
|
|
56
|
+
|
|
57
|
+
// Text only
|
|
58
|
+
<OmniWerkLogo variant="text" />
|
|
59
|
+
|
|
60
|
+
// Horizontal (default)
|
|
61
|
+
<OmniWerkLogo variant="horizontal" size="lg" />
|
|
62
|
+
|
|
63
|
+
// Vertical (stacked)
|
|
64
|
+
<OmniWerkLogo variant="vertical" showTagline />
|
|
65
|
+
|
|
66
|
+
// With gradient
|
|
67
|
+
<OmniWerkLogo gradient="brand" />
|
|
68
|
+
|
|
69
|
+
// Custom color
|
|
70
|
+
<OmniWerkLogo color="#FF0000" />
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### OmniWerkAnimatedLogo
|
|
74
|
+
|
|
75
|
+
Logo with entrance and hover animations.
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
<OmniWerkAnimatedLogo
|
|
79
|
+
size="xl"
|
|
80
|
+
variant="vertical"
|
|
81
|
+
animate
|
|
82
|
+
pulseOnHover
|
|
83
|
+
/>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### OmniWerkIcon
|
|
87
|
+
|
|
88
|
+
Standalone icon component.
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
<OmniWerkIcon size={48} gradient="primary" />
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### OmniWerkText
|
|
95
|
+
|
|
96
|
+
Text-only component with Anton SC font.
|
|
97
|
+
|
|
98
|
+
```tsx
|
|
99
|
+
<OmniWerkText fontSize={32} showTagline />
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### OmniWerkLoadingSpinner
|
|
103
|
+
|
|
104
|
+
Rotating logo as loading indicator.
|
|
105
|
+
|
|
106
|
+
```tsx
|
|
107
|
+
<OmniWerkLoadingSpinner size={48} gradient="brand" />
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### OmniWerkSplash
|
|
111
|
+
|
|
112
|
+
Full-screen splash screen.
|
|
113
|
+
|
|
114
|
+
```tsx
|
|
115
|
+
<OmniWerkSplash
|
|
116
|
+
background="brand"
|
|
117
|
+
showTagline
|
|
118
|
+
onComplete={() => navigate('/home')}
|
|
119
|
+
duration={2000}
|
|
120
|
+
/>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### OmniWerkFontLoader
|
|
124
|
+
|
|
125
|
+
Loads Anton SC font from Google Fonts.
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
// Add once at app root
|
|
129
|
+
<OmniWerkFontLoader />
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Sizes
|
|
133
|
+
|
|
134
|
+
| Size | Icon | Font | Spacing |
|
|
135
|
+
|------|------|------|---------|
|
|
136
|
+
| xs | 16px | 10px | 4px |
|
|
137
|
+
| sm | 24px | 14px | 6px |
|
|
138
|
+
| md | 32px | 20px | 8px |
|
|
139
|
+
| lg | 48px | 32px | 12px |
|
|
140
|
+
| xl | 64px | 48px | 16px |
|
|
141
|
+
| xxl | 96px | 72px | 24px |
|
|
142
|
+
|
|
143
|
+
## Colors
|
|
144
|
+
|
|
145
|
+
```tsx
|
|
146
|
+
import { OMNIWERK_COLORS } from '@nice2dev/omniwerk-branding';
|
|
147
|
+
|
|
148
|
+
// Primary palette
|
|
149
|
+
OMNIWERK_COLORS.primary // #1A237E (Deep Blue)
|
|
150
|
+
OMNIWERK_COLORS.primaryLight // #534BAE
|
|
151
|
+
OMNIWERK_COLORS.primaryDark // #000051
|
|
152
|
+
|
|
153
|
+
// Secondary palette
|
|
154
|
+
OMNIWERK_COLORS.secondary // #00BCD4 (Cyan)
|
|
155
|
+
OMNIWERK_COLORS.secondaryLight // #62EFFF
|
|
156
|
+
OMNIWERK_COLORS.secondaryDark // #008BA3
|
|
157
|
+
|
|
158
|
+
// Semantic
|
|
159
|
+
OMNIWERK_COLORS.success // #4CAF50
|
|
160
|
+
OMNIWERK_COLORS.warning // #FF9800
|
|
161
|
+
OMNIWERK_COLORS.error // #F44336
|
|
162
|
+
OMNIWERK_COLORS.info // #2196F3
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Gradients
|
|
166
|
+
|
|
167
|
+
```tsx
|
|
168
|
+
import { OMNIWERK_GRADIENTS } from '@nice2dev/omniwerk-branding';
|
|
169
|
+
|
|
170
|
+
// Available presets
|
|
171
|
+
'primary' // Deep blue gradient
|
|
172
|
+
'secondary' // Cyan gradient
|
|
173
|
+
'brand' // Primary to secondary
|
|
174
|
+
'brandReverse' // Secondary to primary
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Theme Integration
|
|
178
|
+
|
|
179
|
+
### CSS Variables
|
|
180
|
+
|
|
181
|
+
```tsx
|
|
182
|
+
import { OMNIWERK_CSS_VARS } from '@nice2dev/omniwerk-branding';
|
|
183
|
+
|
|
184
|
+
// Add to your global styles
|
|
185
|
+
<style>{OMNIWERK_CSS_VARS}</style>
|
|
186
|
+
|
|
187
|
+
// Then use in CSS
|
|
188
|
+
.my-element {
|
|
189
|
+
color: var(--omniwerk-primary);
|
|
190
|
+
background: var(--omniwerk-surface);
|
|
191
|
+
font-family: var(--omniwerk-font-logo);
|
|
192
|
+
}
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Tailwind CSS
|
|
196
|
+
|
|
197
|
+
```js
|
|
198
|
+
// tailwind.config.js
|
|
199
|
+
import { omniWerkTailwindPreset } from '@nice2dev/omniwerk-branding';
|
|
200
|
+
|
|
201
|
+
export default {
|
|
202
|
+
presets: [omniWerkTailwindPreset],
|
|
203
|
+
// ...
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Then use the classes:
|
|
208
|
+
|
|
209
|
+
```html
|
|
210
|
+
<div class="bg-omniwerk-primary text-white">
|
|
211
|
+
<h1 class="font-omniwerk-logo">OMNIWERK</h1>
|
|
212
|
+
</div>
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Material UI
|
|
216
|
+
|
|
217
|
+
```tsx
|
|
218
|
+
import { createTheme } from '@mui/material/styles';
|
|
219
|
+
import { omniWerkMuiTheme, omniWerkMuiDarkTheme } from '@nice2dev/omniwerk-branding';
|
|
220
|
+
|
|
221
|
+
const lightTheme = createTheme(omniWerkMuiTheme);
|
|
222
|
+
const darkTheme = createTheme(omniWerkMuiDarkTheme);
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Font License
|
|
226
|
+
|
|
227
|
+
The Anton SC font is licensed under the **SIL Open Font License, Version 1.1**.
|
|
228
|
+
See [assets/fonts/OFL.txt](assets/fonts/OFL.txt) for the complete license.
|
|
229
|
+
|
|
230
|
+
## License
|
|
231
|
+
|
|
232
|
+
MIT © NiceToDev
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The Anton Project Authors (https://github.com/googlefonts/AntonFont.git)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
export type OmniWerkLogoSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
4
|
+
export type OmniWerkLogoVariant = 'icon' | 'text' | 'horizontal' | 'vertical';
|
|
5
|
+
export type OmniWerkGradientPreset = 'primary' | 'secondary' | 'brand' | 'brandReverse';
|
|
6
|
+
export interface OmniWerkLogoProps {
|
|
7
|
+
/** Logo size preset */
|
|
8
|
+
size?: OmniWerkLogoSize;
|
|
9
|
+
/** Logo variant */
|
|
10
|
+
variant?: OmniWerkLogoVariant;
|
|
11
|
+
/** Custom color (overrides gradient) */
|
|
12
|
+
color?: string;
|
|
13
|
+
/** Use gradient fill */
|
|
14
|
+
gradient?: OmniWerkGradientPreset | false;
|
|
15
|
+
/** Show tagline */
|
|
16
|
+
showTagline?: boolean;
|
|
17
|
+
/** Additional CSS class */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Inline styles */
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
/** Click handler */
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/** Accessible label */
|
|
24
|
+
'aria-label'?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface OmniWerkIconProps {
|
|
27
|
+
size?: number;
|
|
28
|
+
color?: string;
|
|
29
|
+
gradient?: OmniWerkGradientPreset | false;
|
|
30
|
+
className?: string;
|
|
31
|
+
style?: CSSProperties;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* OmniWerk icon - the stylized "O" with circuit pattern.
|
|
35
|
+
*/
|
|
36
|
+
export declare const OmniWerkIcon: React.ForwardRefExoticComponent<OmniWerkIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
37
|
+
export interface OmniWerkTextProps {
|
|
38
|
+
fontSize?: number;
|
|
39
|
+
color?: string;
|
|
40
|
+
showTagline?: boolean;
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: CSSProperties;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* OmniWerk text using Anton SC font.
|
|
46
|
+
*/
|
|
47
|
+
export declare const OmniWerkText: React.ForwardRefExoticComponent<OmniWerkTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
/**
|
|
49
|
+
* Complete OmniWerk logo with icon and text.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* // Icon only
|
|
54
|
+
* <OmniWerkLogo variant="icon" />
|
|
55
|
+
*
|
|
56
|
+
* // Full horizontal logo
|
|
57
|
+
* <OmniWerkLogo variant="horizontal" size="lg" />
|
|
58
|
+
*
|
|
59
|
+
* // With gradient
|
|
60
|
+
* <OmniWerkLogo variant="horizontal" gradient="brand" />
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare const OmniWerkLogo: React.ForwardRefExoticComponent<OmniWerkLogoProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
export interface OmniWerkAnimatedLogoProps extends OmniWerkLogoProps {
|
|
65
|
+
/** Enable entrance animation */
|
|
66
|
+
animate?: boolean;
|
|
67
|
+
/** Pulse on hover */
|
|
68
|
+
pulseOnHover?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Animated OmniWerk logo with entrance and hover effects.
|
|
72
|
+
*/
|
|
73
|
+
export declare const OmniWerkAnimatedLogo: React.ForwardRefExoticComponent<OmniWerkAnimatedLogoProps & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
export interface OmniWerkLoadingSpinnerProps {
|
|
75
|
+
size?: number;
|
|
76
|
+
color?: string;
|
|
77
|
+
gradient?: OmniWerkGradientPreset | false;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Loading spinner using the OmniWerk icon.
|
|
81
|
+
*/
|
|
82
|
+
export declare const OmniWerkLoadingSpinner: React.FC<OmniWerkLoadingSpinnerProps>;
|
|
83
|
+
export interface OmniWerkSplashProps {
|
|
84
|
+
/** Background color or gradient */
|
|
85
|
+
background?: 'primary' | 'brand' | string;
|
|
86
|
+
/** Logo color (for contrast) */
|
|
87
|
+
logoColor?: string;
|
|
88
|
+
/** Show tagline */
|
|
89
|
+
showTagline?: boolean;
|
|
90
|
+
/** Callback when animation completes */
|
|
91
|
+
onComplete?: () => void;
|
|
92
|
+
/** Duration in ms */
|
|
93
|
+
duration?: number;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Full-screen splash with OmniWerk branding.
|
|
97
|
+
*/
|
|
98
|
+
export declare const OmniWerkSplash: React.FC<OmniWerkSplashProps>;
|
|
99
|
+
/**
|
|
100
|
+
* Component that loads the Anton SC font from Google Fonts.
|
|
101
|
+
* Include once at the app root.
|
|
102
|
+
*/
|
|
103
|
+
export declare const OmniWerkFontLoader: React.FC;
|
|
104
|
+
export default OmniWerkLogo;
|
package/dist/colors.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file colors.ts
|
|
3
|
+
* @description OmniWerk brand colors
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* OmniWerk brand color palette.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OMNIWERK_COLORS: {
|
|
9
|
+
readonly primary: "#1A237E";
|
|
10
|
+
readonly primaryLight: "#534BAE";
|
|
11
|
+
readonly primaryDark: "#000051";
|
|
12
|
+
readonly secondary: "#00BCD4";
|
|
13
|
+
readonly secondaryLight: "#62EFFF";
|
|
14
|
+
readonly secondaryDark: "#008BA3";
|
|
15
|
+
readonly tertiary: "#FFC107";
|
|
16
|
+
readonly tertiaryLight: "#FFF350";
|
|
17
|
+
readonly tertiaryDark: "#C79100";
|
|
18
|
+
readonly success: "#4CAF50";
|
|
19
|
+
readonly warning: "#FF9800";
|
|
20
|
+
readonly error: "#F44336";
|
|
21
|
+
readonly info: "#2196F3";
|
|
22
|
+
readonly background: "#FAFAFA";
|
|
23
|
+
readonly surface: "#FFFFFF";
|
|
24
|
+
readonly onBackground: "#212121";
|
|
25
|
+
readonly onSurface: "#212121";
|
|
26
|
+
readonly outline: "#BDBDBD";
|
|
27
|
+
readonly surfaceVariant: "#E0E0E0";
|
|
28
|
+
readonly backgroundDark: "#121212";
|
|
29
|
+
readonly surfaceDark: "#1E1E1E";
|
|
30
|
+
readonly onBackgroundDark: "#E0E0E0";
|
|
31
|
+
readonly onSurfaceDark: "#E0E0E0";
|
|
32
|
+
readonly outlineDark: "#424242";
|
|
33
|
+
readonly surfaceVariantDark: "#2C2C2C";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* OmniWerk gradient presets.
|
|
37
|
+
*/
|
|
38
|
+
export declare const OMNIWERK_GRADIENTS: {
|
|
39
|
+
readonly primary: {
|
|
40
|
+
readonly type: "linear";
|
|
41
|
+
readonly angle: 135;
|
|
42
|
+
readonly stops: readonly [{
|
|
43
|
+
readonly offset: 0;
|
|
44
|
+
readonly color: "#1A237E";
|
|
45
|
+
}, {
|
|
46
|
+
readonly offset: 100;
|
|
47
|
+
readonly color: "#534BAE";
|
|
48
|
+
}];
|
|
49
|
+
};
|
|
50
|
+
readonly secondary: {
|
|
51
|
+
readonly type: "linear";
|
|
52
|
+
readonly angle: 135;
|
|
53
|
+
readonly stops: readonly [{
|
|
54
|
+
readonly offset: 0;
|
|
55
|
+
readonly color: "#00BCD4";
|
|
56
|
+
}, {
|
|
57
|
+
readonly offset: 100;
|
|
58
|
+
readonly color: "#62EFFF";
|
|
59
|
+
}];
|
|
60
|
+
};
|
|
61
|
+
readonly brand: {
|
|
62
|
+
readonly type: "linear";
|
|
63
|
+
readonly angle: 135;
|
|
64
|
+
readonly stops: readonly [{
|
|
65
|
+
readonly offset: 0;
|
|
66
|
+
readonly color: "#1A237E";
|
|
67
|
+
}, {
|
|
68
|
+
readonly offset: 100;
|
|
69
|
+
readonly color: "#00BCD4";
|
|
70
|
+
}];
|
|
71
|
+
};
|
|
72
|
+
readonly brandReverse: {
|
|
73
|
+
readonly type: "linear";
|
|
74
|
+
readonly angle: 315;
|
|
75
|
+
readonly stops: readonly [{
|
|
76
|
+
readonly offset: 0;
|
|
77
|
+
readonly color: "#00BCD4";
|
|
78
|
+
}, {
|
|
79
|
+
readonly offset: 100;
|
|
80
|
+
readonly color: "#1A237E";
|
|
81
|
+
}];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export type OmniWerkColorKey = keyof typeof OMNIWERK_COLORS;
|
|
85
|
+
export type OmniWerkGradientKey = keyof typeof OMNIWERK_GRADIENTS;
|
package/dist/fonts.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={logo:"'Anton SC', sans-serif",body:"'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",mono:"'Roboto Mono', 'Fira Code', monospace"},t="@import url('https://fonts.googleapis.com/css2?family=Anton+SC&display=swap');",n=`
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Anton SC';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url('./assets/fonts/AntonSC-Regular.ttf') format('truetype');
|
|
8
|
+
}
|
|
9
|
+
`,e={xl:{fontSize:"72px",letterSpacing:"2px",fontFamily:o.logo,fontWeight:400},lg:{fontSize:"48px",letterSpacing:"1.5px",fontFamily:o.logo,fontWeight:400},md:{fontSize:"32px",letterSpacing:"1px",fontFamily:o.logo,fontWeight:400},sm:{fontSize:"20px",letterSpacing:"0.5px",fontFamily:o.logo,fontWeight:400},xs:{fontSize:"14px",letterSpacing:"0.25px",fontFamily:o.logo,fontWeight:400}};exports.OMNIWERK_FONTS=o;exports.OMNIWERK_FONT_FACE=n;exports.OMNIWERK_FONT_IMPORT=t;exports.OMNIWERK_LOGO_STYLES=e;
|
package/dist/fonts.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file fonts.ts
|
|
3
|
+
* @description OmniWerk brand typography
|
|
4
|
+
*
|
|
5
|
+
* Anton SC font is licensed under SIL Open Font License 1.1.
|
|
6
|
+
* See assets/fonts/OFL.txt for full license text.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* OmniWerk font family names.
|
|
10
|
+
*/
|
|
11
|
+
export declare const OMNIWERK_FONTS: {
|
|
12
|
+
/** Anton SC font for logo and headlines (SIL OFL 1.1 license) */
|
|
13
|
+
readonly logo: "'Anton SC', sans-serif";
|
|
14
|
+
/** Body font */
|
|
15
|
+
readonly body: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif";
|
|
16
|
+
/** Monospace font */
|
|
17
|
+
readonly mono: "'Roboto Mono', 'Fira Code', monospace";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* CSS for loading Anton SC font from Google Fonts.
|
|
21
|
+
*/
|
|
22
|
+
export declare const OMNIWERK_FONT_IMPORT = "@import url('https://fonts.googleapis.com/css2?family=Anton+SC&display=swap');";
|
|
23
|
+
/**
|
|
24
|
+
* CSS for self-hosted Anton SC font.
|
|
25
|
+
* Use this if you want to bundle the font instead of loading from Google.
|
|
26
|
+
*/
|
|
27
|
+
export declare const OMNIWERK_FONT_FACE = "\n@font-face {\n font-family: 'Anton SC';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('./assets/fonts/AntonSC-Regular.ttf') format('truetype');\n}\n";
|
|
28
|
+
/**
|
|
29
|
+
* Logo text style presets.
|
|
30
|
+
*/
|
|
31
|
+
export declare const OMNIWERK_LOGO_STYLES: {
|
|
32
|
+
readonly xl: {
|
|
33
|
+
readonly fontSize: "72px";
|
|
34
|
+
readonly letterSpacing: "2px";
|
|
35
|
+
readonly fontFamily: "'Anton SC', sans-serif";
|
|
36
|
+
readonly fontWeight: 400;
|
|
37
|
+
};
|
|
38
|
+
readonly lg: {
|
|
39
|
+
readonly fontSize: "48px";
|
|
40
|
+
readonly letterSpacing: "1.5px";
|
|
41
|
+
readonly fontFamily: "'Anton SC', sans-serif";
|
|
42
|
+
readonly fontWeight: 400;
|
|
43
|
+
};
|
|
44
|
+
readonly md: {
|
|
45
|
+
readonly fontSize: "32px";
|
|
46
|
+
readonly letterSpacing: "1px";
|
|
47
|
+
readonly fontFamily: "'Anton SC', sans-serif";
|
|
48
|
+
readonly fontWeight: 400;
|
|
49
|
+
};
|
|
50
|
+
readonly sm: {
|
|
51
|
+
readonly fontSize: "20px";
|
|
52
|
+
readonly letterSpacing: "0.5px";
|
|
53
|
+
readonly fontFamily: "'Anton SC', sans-serif";
|
|
54
|
+
readonly fontWeight: 400;
|
|
55
|
+
};
|
|
56
|
+
readonly xs: {
|
|
57
|
+
readonly fontSize: "14px";
|
|
58
|
+
readonly letterSpacing: "0.25px";
|
|
59
|
+
readonly fontFamily: "'Anton SC', sans-serif";
|
|
60
|
+
readonly fontWeight: 400;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type OmniWerkLogoStyleSize = keyof typeof OMNIWERK_LOGO_STYLES;
|
package/dist/fonts.mjs
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
/** Anton SC font for logo and headlines (SIL OFL 1.1 license) */
|
|
3
|
+
logo: "'Anton SC', sans-serif",
|
|
4
|
+
/** Body font */
|
|
5
|
+
body: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
6
|
+
/** Monospace font */
|
|
7
|
+
mono: "'Roboto Mono', 'Fira Code', monospace"
|
|
8
|
+
}, t = "@import url('https://fonts.googleapis.com/css2?family=Anton+SC&display=swap');", n = `
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Anton SC';
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
src: url('./assets/fonts/AntonSC-Regular.ttf') format('truetype');
|
|
15
|
+
}
|
|
16
|
+
`, e = {
|
|
17
|
+
xl: {
|
|
18
|
+
fontSize: "72px",
|
|
19
|
+
letterSpacing: "2px",
|
|
20
|
+
fontFamily: o.logo,
|
|
21
|
+
fontWeight: 400
|
|
22
|
+
},
|
|
23
|
+
lg: {
|
|
24
|
+
fontSize: "48px",
|
|
25
|
+
letterSpacing: "1.5px",
|
|
26
|
+
fontFamily: o.logo,
|
|
27
|
+
fontWeight: 400
|
|
28
|
+
},
|
|
29
|
+
md: {
|
|
30
|
+
fontSize: "32px",
|
|
31
|
+
letterSpacing: "1px",
|
|
32
|
+
fontFamily: o.logo,
|
|
33
|
+
fontWeight: 400
|
|
34
|
+
},
|
|
35
|
+
sm: {
|
|
36
|
+
fontSize: "20px",
|
|
37
|
+
letterSpacing: "0.5px",
|
|
38
|
+
fontFamily: o.logo,
|
|
39
|
+
fontWeight: 400
|
|
40
|
+
},
|
|
41
|
+
xs: {
|
|
42
|
+
fontSize: "14px",
|
|
43
|
+
letterSpacing: "0.25px",
|
|
44
|
+
fontFamily: o.logo,
|
|
45
|
+
fontWeight: 400
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
o as OMNIWERK_FONTS,
|
|
50
|
+
n as OMNIWERK_FONT_FACE,
|
|
51
|
+
t as OMNIWERK_FONT_IMPORT,
|
|
52
|
+
e as OMNIWERK_LOGO_STYLES
|
|
53
|
+
};
|