@octaviaflow/themes 1.0.1

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.
Files changed (46) hide show
  1. package/README.md +122 -0
  2. package/docs/sass.md +189 -0
  3. package/index.scss +11 -0
  4. package/lib/index.js +5634 -0
  5. package/package.json +49 -0
  6. package/scss/_component-tokens.scss +10 -0
  7. package/scss/_config.scss +11 -0
  8. package/scss/_theme.scss +120 -0
  9. package/scss/_themes.scss +8 -0
  10. package/scss/_tokens.scss +8 -0
  11. package/scss/_utilities.scss +18 -0
  12. package/scss/compat/_themes.scss +8 -0
  13. package/scss/compat/_tokens.scss +8 -0
  14. package/scss/compat/generated/_themes.scss +271 -0
  15. package/scss/compat/generated/_tokens.scss +206 -0
  16. package/src/component-tokens/button/index.js +10 -0
  17. package/src/component-tokens/button/tokens.js +132 -0
  18. package/src/component-tokens/notification/index.js +10 -0
  19. package/src/component-tokens/notification/tokens.js +107 -0
  20. package/src/component-tokens/tag/index.js +10 -0
  21. package/src/component-tokens/tag/tokens.js +362 -0
  22. package/src/g10.js +346 -0
  23. package/src/g100.js +349 -0
  24. package/src/g90.js +350 -0
  25. package/src/index.js +42 -0
  26. package/src/tokens/Token.js +37 -0
  27. package/src/tokens/TokenFormat.js +91 -0
  28. package/src/tokens/TokenGroup.js +164 -0
  29. package/src/tokens/TokenSet.js +80 -0
  30. package/src/tokens/components.js +97 -0
  31. package/src/tokens/index.js +71 -0
  32. package/src/tokens/layout.js +42 -0
  33. package/src/tokens/type.js +52 -0
  34. package/src/tokens/v10.js +191 -0
  35. package/src/tokens/v11TokenGroup.js +436 -0
  36. package/src/tokens/v11TokenSet.js +94 -0
  37. package/src/tools.js +80 -0
  38. package/src/v10/g10.js +352 -0
  39. package/src/v10/g100.js +351 -0
  40. package/src/v10/g90.js +353 -0
  41. package/src/v10/index.js +25 -0
  42. package/src/v10/metadata.yml +217 -0
  43. package/src/v10/tokens.js +400 -0
  44. package/src/v10/white.js +355 -0
  45. package/src/white.js +349 -0
  46. package/telemetry.yml +17 -0
@@ -0,0 +1,206 @@
1
+ // Code generated by @octaviaflow/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright OctaviaFlow. 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ @use 'sass:map';
10
+ @use '../../config';
11
+ @use '../../theme';
12
+
13
+ /// Internal helper for generating CSS Custom Properties
14
+ @function _get($token) {
15
+ @if config.$use-fallback-value == false {
16
+ @return var(--#{config.$prefix}-#{$token});
17
+ } @else {
18
+ @return var(--#{config.$prefix}-#{$token}, #{theme.get($token)});
19
+ }
20
+ }
21
+
22
+ /// CSS Custom Property for the interactive-01 token
23
+ $interactive-01: _get('interactive-01') !default;
24
+
25
+ /// CSS Custom Property for the interactive-02 token
26
+ $interactive-02: _get('interactive-02') !default;
27
+
28
+ /// CSS Custom Property for the interactive-03 token
29
+ $interactive-03: _get('interactive-03') !default;
30
+
31
+ /// CSS Custom Property for the interactive-04 token
32
+ $interactive-04: _get('interactive-04') !default;
33
+
34
+ /// CSS Custom Property for the ui-background token
35
+ $ui-background: _get('ui-background') !default;
36
+
37
+ /// CSS Custom Property for the ui-01 token
38
+ $ui-01: _get('ui-01') !default;
39
+
40
+ /// CSS Custom Property for the ui-02 token
41
+ $ui-02: _get('ui-02') !default;
42
+
43
+ /// CSS Custom Property for the ui-03 token
44
+ $ui-03: _get('ui-03') !default;
45
+
46
+ /// CSS Custom Property for the ui-04 token
47
+ $ui-04: _get('ui-04') !default;
48
+
49
+ /// CSS Custom Property for the ui-05 token
50
+ $ui-05: _get('ui-05') !default;
51
+
52
+ /// CSS Custom Property for the text-01 token
53
+ $text-01: _get('text-01') !default;
54
+
55
+ /// CSS Custom Property for the text-02 token
56
+ $text-02: _get('text-02') !default;
57
+
58
+ /// CSS Custom Property for the text-03 token
59
+ $text-03: _get('text-03') !default;
60
+
61
+ /// CSS Custom Property for the text-04 token
62
+ $text-04: _get('text-04') !default;
63
+
64
+ /// CSS Custom Property for the text-05 token
65
+ $text-05: _get('text-05') !default;
66
+
67
+ /// CSS Custom Property for the icon-01 token
68
+ $icon-01: _get('icon-01') !default;
69
+
70
+ /// CSS Custom Property for the icon-02 token
71
+ $icon-02: _get('icon-02') !default;
72
+
73
+ /// CSS Custom Property for the icon-03 token
74
+ $icon-03: _get('icon-03') !default;
75
+
76
+ /// CSS Custom Property for the link-01 token
77
+ $link-01: _get('link-01') !default;
78
+
79
+ /// CSS Custom Property for the link-02 token
80
+ $link-02: _get('link-02') !default;
81
+
82
+ /// CSS Custom Property for the inverse-link token
83
+ $inverse-link: _get('inverse-link') !default;
84
+
85
+ /// CSS Custom Property for the inverse-01 token
86
+ $inverse-01: _get('inverse-01') !default;
87
+
88
+ /// CSS Custom Property for the inverse-02 token
89
+ $inverse-02: _get('inverse-02') !default;
90
+
91
+ /// CSS Custom Property for the support-01 token
92
+ $support-01: _get('support-01') !default;
93
+
94
+ /// CSS Custom Property for the support-02 token
95
+ $support-02: _get('support-02') !default;
96
+
97
+ /// CSS Custom Property for the support-03 token
98
+ $support-03: _get('support-03') !default;
99
+
100
+ /// CSS Custom Property for the support-04 token
101
+ $support-04: _get('support-04') !default;
102
+
103
+ /// CSS Custom Property for the inverse-support-01 token
104
+ $inverse-support-01: _get('inverse-support-01') !default;
105
+
106
+ /// CSS Custom Property for the inverse-support-02 token
107
+ $inverse-support-02: _get('inverse-support-02') !default;
108
+
109
+ /// CSS Custom Property for the inverse-support-03 token
110
+ $inverse-support-03: _get('inverse-support-03') !default;
111
+
112
+ /// CSS Custom Property for the inverse-support-04 token
113
+ $inverse-support-04: _get('inverse-support-04') !default;
114
+
115
+ /// CSS Custom Property for the overlay-01 token
116
+ $overlay-01: _get('overlay-01') !default;
117
+
118
+ /// CSS Custom Property for the danger-01 token
119
+ $danger-01: _get('danger-01') !default;
120
+
121
+ /// CSS Custom Property for the danger-02 token
122
+ $danger-02: _get('danger-02') !default;
123
+
124
+ /// CSS Custom Property for the inverse-focus-ui token
125
+ $inverse-focus-ui: _get('inverse-focus-ui') !default;
126
+
127
+ /// CSS Custom Property for the hover-primary token
128
+ $hover-primary: _get('hover-primary') !default;
129
+
130
+ /// CSS Custom Property for the active-primary token
131
+ $active-primary: _get('active-primary') !default;
132
+
133
+ /// CSS Custom Property for the hover-primary-text token
134
+ $hover-primary-text: _get('hover-primary-text') !default;
135
+
136
+ /// CSS Custom Property for the hover-secondary token
137
+ $hover-secondary: _get('hover-secondary') !default;
138
+
139
+ /// CSS Custom Property for the active-secondary token
140
+ $active-secondary: _get('active-secondary') !default;
141
+
142
+ /// CSS Custom Property for the hover-tertiary token
143
+ $hover-tertiary: _get('hover-tertiary') !default;
144
+
145
+ /// CSS Custom Property for the active-tertiary token
146
+ $active-tertiary: _get('active-tertiary') !default;
147
+
148
+ /// CSS Custom Property for the hover-ui token
149
+ $hover-ui: _get('hover-ui') !default;
150
+
151
+ /// CSS Custom Property for the hover-light-ui token
152
+ $hover-light-ui: _get('hover-light-ui') !default;
153
+
154
+ /// CSS Custom Property for the hover-selected-ui token
155
+ $hover-selected-ui: _get('hover-selected-ui') !default;
156
+
157
+ /// CSS Custom Property for the active-ui token
158
+ $active-ui: _get('active-ui') !default;
159
+
160
+ /// CSS Custom Property for the active-light-ui token
161
+ $active-light-ui: _get('active-light-ui') !default;
162
+
163
+ /// CSS Custom Property for the selected-ui token
164
+ $selected-ui: _get('selected-ui') !default;
165
+
166
+ /// CSS Custom Property for the selected-light-ui token
167
+ $selected-light-ui: _get('selected-light-ui') !default;
168
+
169
+ /// CSS Custom Property for the inverse-hover-ui token
170
+ $inverse-hover-ui: _get('inverse-hover-ui') !default;
171
+
172
+ /// CSS Custom Property for the hover-danger token
173
+ $hover-danger: _get('hover-danger') !default;
174
+
175
+ /// CSS Custom Property for the active-danger token
176
+ $active-danger: _get('active-danger') !default;
177
+
178
+ /// CSS Custom Property for the hover-row token
179
+ $hover-row: _get('hover-row') !default;
180
+
181
+ /// CSS Custom Property for the visited-link token
182
+ $visited-link: _get('visited-link') !default;
183
+
184
+ /// CSS Custom Property for the disabled-01 token
185
+ $disabled-01: _get('disabled-01') !default;
186
+
187
+ /// CSS Custom Property for the disabled-02 token
188
+ $disabled-02: _get('disabled-02') !default;
189
+
190
+ /// CSS Custom Property for the disabled-03 token
191
+ $disabled-03: _get('disabled-03') !default;
192
+
193
+ /// CSS Custom Property for the decorative-01 token
194
+ $decorative-01: _get('decorative-01') !default;
195
+
196
+ /// CSS Custom Property for the button-separator token
197
+ $button-separator: _get('button-separator') !default;
198
+
199
+ /// CSS Custom Property for the skeleton-01 token
200
+ $skeleton-01: _get('skeleton-01') !default;
201
+
202
+ /// CSS Custom Property for the skeleton-02 token
203
+ $skeleton-02: _get('skeleton-02') !default;
204
+
205
+ /// CSS Custom Property for the hover-field token
206
+ $hover-field: _get('hover-field') !default;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright OctaviaFlow
3
+ * Author: Vishal Kumar
4
+ * Created: 11/November/2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ export * as buttonTokens from './tokens';
@@ -0,0 +1,132 @@
1
+ /**
2
+ * Copyright OctaviaFlow
3
+ * Author: Vishal Kumar
4
+ * Created: 11/November/2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ const buttonSeparator = {
11
+ fallback: '#e0e0e0',
12
+ whiteTheme: '#e0e0e0',
13
+ g10: '#e0e0e0',
14
+ g90: '#161616',
15
+ g100: '#161616',
16
+ };
17
+
18
+ const buttonPrimary = {
19
+ whiteTheme: '#0f62fe',
20
+ g10: '#0f62fe',
21
+ g90: '#0f62fe',
22
+ g100: '#0f62fe',
23
+ };
24
+
25
+ const buttonSecondary = {
26
+ whiteTheme: '#393939',
27
+ g10: '#393939',
28
+ g90: '#6f6f6f',
29
+ g100: '#6f6f6f',
30
+ };
31
+
32
+ const buttonTertiary = {
33
+ whiteTheme: '#0f62fe',
34
+ g10: '#0f62fe',
35
+ g90: '#ffffff',
36
+ g100: '#ffffff',
37
+ };
38
+
39
+ const buttonDangerPrimary = {
40
+ whiteTheme: '#da1e28',
41
+ g10: '#da1e28',
42
+ g90: '#da1e28',
43
+ g100: '#da1e28',
44
+ };
45
+
46
+ const buttonDangerSecondary = {
47
+ whiteTheme: '#da1e28',
48
+ g10: '#da1e28',
49
+ g90: '#ff8389',
50
+ g100: '#fa4d56',
51
+ };
52
+
53
+ const buttonDangerActive = {
54
+ whiteTheme: '#750e13',
55
+ g10: '#750e13',
56
+ g90: '#750e13',
57
+ g100: '#750e13',
58
+ };
59
+
60
+ const buttonPrimaryActive = {
61
+ whiteTheme: '#002d9c',
62
+ g10: '#002d9c',
63
+ g90: '#002d9c',
64
+ g100: '#002d9c',
65
+ };
66
+
67
+ const buttonSecondaryActive = {
68
+ whiteTheme: '#6f6f6f',
69
+ g10: '#6f6f6f',
70
+ g90: '#393939',
71
+ g100: '#393939',
72
+ };
73
+
74
+ const buttonTertiaryActive = {
75
+ whiteTheme: '#002d9c',
76
+ g10: '#002d9c',
77
+ g90: '#c6c6c6',
78
+ g100: '#c6c6c6',
79
+ };
80
+
81
+ const buttonDangerHover = {
82
+ whiteTheme: '#b81921',
83
+ g10: '#b81921',
84
+ g90: '#b81921',
85
+ g100: '#b81921',
86
+ };
87
+
88
+ const buttonPrimaryHover = {
89
+ whiteTheme: '#0050e6',
90
+ g10: '#0050e6',
91
+ g90: '#0050e6',
92
+ g100: '#0050e6',
93
+ };
94
+
95
+ const buttonSecondaryHover = {
96
+ whiteTheme: '#474747',
97
+ g10: '#474747',
98
+ g90: '#5e5e5e',
99
+ g100: '#5e5e5e',
100
+ };
101
+
102
+ const buttonTertiaryHover = {
103
+ whiteTheme: '#0050e6',
104
+ g10: '#0050e6',
105
+ g90: '#f4f4f4',
106
+ g100: '#f4f4f4',
107
+ };
108
+
109
+ const buttonDisabled = {
110
+ whiteTheme: '#c6c6c6',
111
+ g10: '#c6c6c6',
112
+ g90: 'rgb(141 141 141 / 30%)',
113
+ g100: 'rgb(141 141 141 / 30%)',
114
+ };
115
+
116
+ export {
117
+ buttonSeparator,
118
+ buttonPrimary,
119
+ buttonSecondary,
120
+ buttonTertiary,
121
+ buttonDangerPrimary,
122
+ buttonDangerSecondary,
123
+ buttonDangerActive,
124
+ buttonPrimaryActive,
125
+ buttonSecondaryActive,
126
+ buttonTertiaryActive,
127
+ buttonDangerHover,
128
+ buttonPrimaryHover,
129
+ buttonSecondaryHover,
130
+ buttonTertiaryHover,
131
+ buttonDisabled,
132
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright OctaviaFlow
3
+ * Author: Vishal Kumar
4
+ * Created: 11/November/2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ export * as notificationTokens from './tokens';
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Copyright OctaviaFlow
3
+ * Author: Vishal Kumar
4
+ * Created: 11/November/2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ import {
11
+ red10,
12
+ gray80,
13
+ gray90,
14
+ green10,
15
+ blue10,
16
+ yellow10,
17
+ white0,
18
+ } from '@octaviaflow/colors';
19
+ import {
20
+ textInverse as textInverseWhite,
21
+ textOnColorDisabled as textOnColorDisabledWhite,
22
+ } from '../../white';
23
+ import {
24
+ textInverse as textInverseG10,
25
+ textOnColorDisabled as textOnColorDisabledG10,
26
+ } from '../../g10';
27
+ import {
28
+ textInverse as textInverseG90,
29
+ textOnColorDisabled as textOnColorDisabledG90,
30
+ } from '../../g90';
31
+ import {
32
+ textInverse as textInverseG100,
33
+ textOnColorDisabled as textOnColorDisabledG100,
34
+ } from '../../g100';
35
+ import {
36
+ buttonTertiaryActive,
37
+ buttonTertiaryHover,
38
+ buttonTertiary,
39
+ } from '../button/tokens';
40
+
41
+ export const notificationBackgroundError = {
42
+ whiteTheme: red10,
43
+ g10: red10,
44
+ g90: gray80,
45
+ g100: gray90,
46
+ };
47
+
48
+ export const notificationBackgroundSuccess = {
49
+ whiteTheme: green10,
50
+ g10: green10,
51
+ g90: gray80,
52
+ g100: gray90,
53
+ };
54
+
55
+ export const notificationBackgroundInfo = {
56
+ whiteTheme: blue10,
57
+ g10: blue10,
58
+ g90: gray80,
59
+ g100: gray90,
60
+ };
61
+
62
+ export const notificationBackgroundWarning = {
63
+ whiteTheme: yellow10,
64
+ g10: yellow10,
65
+ g90: gray80,
66
+ g100: gray90,
67
+ };
68
+
69
+ export const notificationActionHover = {
70
+ whiteTheme: white0,
71
+ g10: white0,
72
+ };
73
+
74
+ export const notificationActionTertiaryInverse = {
75
+ whiteTheme: buttonTertiary.g100,
76
+ g10: buttonTertiary.g90,
77
+ g90: buttonTertiary.g10,
78
+ g100: buttonTertiary.whiteTheme,
79
+ };
80
+
81
+ export const notificationActionTertiaryInverseActive = {
82
+ whiteTheme: buttonTertiaryActive.g100,
83
+ g10: buttonTertiaryActive.g90,
84
+ g90: buttonTertiaryActive.g10,
85
+ g100: buttonTertiaryActive.whiteTheme,
86
+ };
87
+
88
+ export const notificationActionTertiaryInverseHover = {
89
+ whiteTheme: buttonTertiaryHover.g100,
90
+ g10: buttonTertiaryHover.g90,
91
+ g90: buttonTertiaryHover.g10,
92
+ g100: buttonTertiaryHover.whiteTheme,
93
+ };
94
+
95
+ export const notificationActionTertiaryInverseText = {
96
+ whiteTheme: textInverseG100,
97
+ g10: textInverseG90,
98
+ g90: textInverseG10,
99
+ g100: textInverseWhite,
100
+ };
101
+
102
+ export const notificationActionTertiaryInverseTextOnColorDisabled = {
103
+ whiteTheme: textOnColorDisabledG100,
104
+ g10: textOnColorDisabledG90,
105
+ g90: textOnColorDisabledG10,
106
+ g100: textOnColorDisabledWhite,
107
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright OctaviaFlow
3
+ * Author: Vishal Kumar
4
+ * Created: 11/November/2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ export * as tagTokens from './tokens';