@nova-design-system/nova-base 3.15.0 → 3.17.0

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.
@@ -7,6 +7,208 @@ exports.NOVA_TAILWIND_COMPONENTS = void 0;
7
7
  * @ref generate-tailwind-components.ts
8
8
  */
9
9
  exports.NOVA_TAILWIND_COMPONENTS = {
10
+ 'nv-fieldslider .slider-container .track-container:has(.thumb:hover) .track-range': {
11
+ 'background': 'var(--components-slider-track-filled-hover)'
12
+ },
13
+ 'nv-fieldslider .slider-container .track-container:has(.thumb:hover) .thumb': {
14
+ 'borderColor': 'var(--components-slider-track-filled-hover)'
15
+ },
16
+ 'nv-fieldslider .slider-container .track-container:has(.thumb:focus) .track-range': {
17
+ 'background': 'var(--components-slider-track-filled-focus)'
18
+ },
19
+ 'nv-fieldslider .slider-container .track-container:has(.thumb:focus) .thumb': {
20
+ 'borderColor': 'var(--components-slider-track-filled-focus)'
21
+ },
22
+ 'nv-fieldslider[error] .slider-container .track-container .track .track-range': {
23
+ 'background': 'var(--components-slider-track-filled-error)'
24
+ },
25
+ 'nv-fieldslider[error] .slider-container .track-container .track .thumb': {
26
+ 'borderColor': 'var(--components-slider-track-filled-error)'
27
+ },
28
+ 'nv-fieldslider[error] .slider-container .track-container .track .thumb:hover': {
29
+ 'borderColor': 'var(--components-slider-track-filled-error)',
30
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error)',
31
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)',
32
+ 'backgroundColor': 'var(--components-slider-handler-background-error)'
33
+ },
34
+ 'nv-fieldslider[error] .slider-container .track-container .track .thumb:focus': {
35
+ 'borderColor': 'var(--components-slider-track-filled-error)',
36
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error)',
37
+ 'outlineOffset': 'calc(var(--focus-outline-offset) * 1)',
38
+ 'backgroundColor': 'var(--components-slider-track-filled-error)'
39
+ },
40
+ 'nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .track-range': {
41
+ 'background': 'var(--components-slider-track-filled-error)'
42
+ },
43
+ 'nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .thumb': {
44
+ 'borderColor': 'var(--components-slider-track-filled-error)'
45
+ },
46
+ '.nv-fieldtext': {
47
+ '--nv-field-border-default': 'var(--components-form-field-border-default)',
48
+ '--nv-field-border-hover': 'var(--components-form-field-border-hover)',
49
+ '--nv-field-border-focus': 'var(--components-form-field-border-focus)',
50
+ '--nv-field-border-disabled': 'var(--components-form-field-border-default)',
51
+ '--nv-field-border-readonly': 'var(--components-form-field-border-default)',
52
+ '--nv-field-focus-box-shadow': 'var(--color-focus-brand)',
53
+ '--nv-field-background': 'var(--components-form-field-background-default)',
54
+ 'display': 'flex',
55
+ 'flexDirection': 'column',
56
+ 'alignItems': 'flex-start',
57
+ 'gap': 'var(--form-gap-y)',
58
+ 'boxSizing': 'border-box',
59
+ 'maxWidth': '480px'
60
+ },
61
+ '.nv-fieldtext.fluid': {
62
+ 'maxWidth': 'unset'
63
+ },
64
+ '.nv-fieldtext.readonly': {
65
+ '--nv-field-border-default': 'var(--components-form-field-border-readonly)',
66
+ '--nv-field-border-hover': 'var(--nv-field-border-default)',
67
+ '--nv-field-border-focus': 'var(--components-form-field-border-focus)',
68
+ '--nv-field-border-disabled': 'var(--nv-field-border-default)',
69
+ '--nv-field-border-readonly': 'var(--nv-field-border-default)',
70
+ '--nv-field-background': 'var(--components-form-field-background-readonly)'
71
+ },
72
+ '.nv-fieldtext.error': {
73
+ '--nv-field-border-default': 'var(--components-form-field-border-error)',
74
+ '--nv-field-border-hover': 'var(--nv-field-border-default)',
75
+ '--nv-field-border-focus': 'var(--nv-field-border-default)',
76
+ '--nv-field-border-disabled': 'var(--nv-field-border-default)',
77
+ '--nv-field-border-readonly': 'var(--nv-field-border-default)',
78
+ '--nv-field-focus-box-shadow': 'var(--color-focus-destructive-in-field)'
79
+ },
80
+ '.nv-fieldtext.success': {
81
+ '--nv-field-border-default': 'var(--components-form-field-border-success)',
82
+ '--nv-field-border-hover': 'var(--nv-field-border-default)',
83
+ '--nv-field-border-focus': 'var(--nv-field-border-default)',
84
+ '--nv-field-border-disabled': 'var(--nv-field-border-default)',
85
+ '--nv-field-border-readonly': 'var(--nv-field-border-default)',
86
+ '--nv-field-focus-box-shadow': 'var(--color-focus-success)'
87
+ },
88
+ '.nv-fieldtext.required label::after': {
89
+ 'content': '\'*\'',
90
+ 'color': 'var(--components-form-text-required)',
91
+ 'fontWeight': 'var(--font-weight-high-emphasis)'
92
+ },
93
+ '.nv-fieldtext > label': {
94
+ 'display': 'flex',
95
+ 'alignItems': 'center',
96
+ 'gap': 'var(--form-label-gap)',
97
+ 'alignSelf': 'stretch',
98
+ 'color': 'var(--components-form-text-label-default)',
99
+ 'fontFamily': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
100
+ 'fontSize': 'var(--form-label-font-size)',
101
+ 'fontStyle': 'normal',
102
+ 'fontWeight': 'var(--font-weight-medium-emphasis)',
103
+ 'lineHeight': 'var(--form-label-line-height)'
104
+ },
105
+ '.nv-fieldtext > .input-wrapper': {
106
+ 'display': 'flex',
107
+ 'flexWrap': 'wrap',
108
+ 'gap': 'var(--form-gap-x)',
109
+ 'alignItems': 'stretch',
110
+ 'alignSelf': 'stretch'
111
+ },
112
+ '.nv-fieldtext > .input-wrapper .input-container': {
113
+ 'display': 'flex',
114
+ 'flexGrow': '1',
115
+ 'justifyContent': 'center',
116
+ 'alignItems': 'center',
117
+ 'alignSelf': 'stretch',
118
+ 'borderRadius': 'var(--form-field-radius)',
119
+ 'borderWidth': '1px',
120
+ 'borderStyle': 'solid',
121
+ 'borderColor': 'var(--nv-field-border-default)',
122
+ 'opacity': 'var(--components-form-opacity-default, 1)',
123
+ 'background': 'var(--nv-field-background)',
124
+ 'transition': 'all 150ms ease-out'
125
+ },
126
+ '.nv-fieldtext > .input-wrapper .input-container:hover': {
127
+ 'borderColor': 'var(--nv-field-border-hover)'
128
+ },
129
+ '.nv-fieldtext > .input-wrapper .input-container:focus-within, .nv-fieldtext > .input-wrapper .input-container:focus-within:hover, .nv-fieldtext > .input-wrapper .input-container:focus, .nv-fieldtext > .input-wrapper .input-container:focus:hover': {
130
+ 'borderColor': 'var(--nv-field-border-focus)',
131
+ 'boxShadow': '0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)'
132
+ },
133
+ '.nv-fieldtext > .input-wrapper .input-container:has(input:read-only)': {
134
+ 'opacity': '0.5',
135
+ 'backgroundColor': 'var(--components-form-field-background-readonly)',
136
+ 'borderColor': 'var(--nv-field-border-readonly)'
137
+ },
138
+ '.nv-fieldtext > .input-wrapper .input-container:has(input:disabled)': {
139
+ 'opacity': '0.5',
140
+ 'backgroundColor': 'var(--components-form-field-background-disabled)',
141
+ 'borderColor': 'var(--nv-field-border-disabled)'
142
+ },
143
+ '.nv-fieldtext > .input-wrapper .input-container > .leading-input': {
144
+ 'display': 'block',
145
+ 'marginLeft': 'var(--form-field-padding-x)'
146
+ },
147
+ '.nv-fieldtext > .input-wrapper .input-container input': {
148
+ 'display': 'flex',
149
+ 'alignItems': 'center',
150
+ 'flex': '1 0 0',
151
+ 'overflow': 'hidden',
152
+ 'backgroundColor': 'transparent',
153
+ 'color': 'var(--components-form-field-content-text)',
154
+ 'padding': 'var(--form-field-padding-y) var(--form-field-padding-x)',
155
+ 'fontSize': 'var(--form-field-font-size)',
156
+ 'fontStyle': 'normal',
157
+ 'fontWeight': 'var(--font-weight-medium-emphasis)',
158
+ 'lineHeight': 'var(--form-field-line-height)',
159
+ 'width': '100%'
160
+ },
161
+ '.nv-fieldtext > .input-wrapper .input-container input:focus': {
162
+ 'outline': 'none'
163
+ },
164
+ '.nv-fieldtext > .input-wrapper .input-container input::placeholder': {
165
+ 'overflow': 'hidden',
166
+ 'color': 'var(--components-form-field-content-placeholder)',
167
+ 'textOverflow': 'ellipsis',
168
+ 'fontFamily': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
169
+ 'fontSize': 'var(--form-field-font-size)',
170
+ 'fontStyle': 'normal',
171
+ 'fontWeight': 'var(--font-weight-low-emphasis)',
172
+ 'lineHeight': 'var(--form-field-line-height)'
173
+ },
174
+ '.nv-fieldtext > .input-wrapper .input-container input[type=password]::-ms-clear, .nv-fieldtext > .input-wrapper .input-container input[type=password]::-ms-reveal': {
175
+ 'display': 'none',
176
+ 'width': '0',
177
+ 'height': '0'
178
+ },
179
+ '.nv-fieldtext > .input-wrapper .input-container nv-icon.validation': {
180
+ 'color': 'var(--nv-field-border-default)',
181
+ 'marginRight': 'var(--form-gap-x)'
182
+ },
183
+ '.nv-fieldtext > .input-wrapper .input-container > .trailing-input': {
184
+ 'display': 'block',
185
+ 'marginRight': 'var(--form-field-padding-x)'
186
+ },
187
+ '.nv-fieldtext > .description': {
188
+ 'display': 'flex',
189
+ 'alignItems': 'center',
190
+ 'alignSelf': 'stretch',
191
+ 'gap': 'var(--spacing-1)',
192
+ 'color': 'var(--components-form-text-description-default)',
193
+ 'fontFamily': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
194
+ 'fontSize': 'var(--form-description-font-size)',
195
+ 'fontStyle': 'normal',
196
+ 'lineHeight': 'var(--form-description-line-height)'
197
+ },
198
+ '.nv-fieldtext > .error-description': {
199
+ 'display': 'flex',
200
+ 'alignItems': 'center',
201
+ 'alignSelf': 'stretch',
202
+ 'gap': 'var(--spacing-1)',
203
+ 'color': [
204
+ 'var(--components-form-text-description-default)',
205
+ 'var(--components-form-text-description-error)'
206
+ ],
207
+ 'fontFamily': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
208
+ 'fontSize': 'var(--form-description-font-size)',
209
+ 'fontStyle': 'normal',
210
+ 'lineHeight': 'var(--form-description-line-height)'
211
+ },
10
212
  '.nv-button': {
11
213
  'textDecoration': 'none',
12
214
  'display': 'inline-flex',
@@ -14,7 +216,7 @@ exports.NOVA_TAILWIND_COMPONENTS = {
14
216
  'alignItems': 'center',
15
217
  'fontStyle': 'normal',
16
218
  'fontWeight': 'var(--font-weight-medium-emphasis)',
17
- 'fontFamily': '\'TT Norms Pro\', sans-serif',
219
+ 'fontFamily': 'var(--font-family-default), var(--font-family-fallback), sans-serif',
18
220
  'transition': 'background-color 150ms ease-out',
19
221
  'userSelect': 'none',
20
222
  'cursor': 'pointer',
@@ -327,7 +529,7 @@ exports.NOVA_TAILWIND_COMPONENTS = {
327
529
  },
328
530
  '.nv-link, .nv-link-low, .nv-link-high': {
329
531
  'color': 'var(--color-interaction-link-high-text)',
330
- 'fontWeight': '500',
532
+ 'fontWeight': 'var(--font-weight-medium-emphasis)',
331
533
  'textDecoration': 'none'
332
534
  },
333
535
  '.nv-link:hover, .nv-link-low:hover, .nv-link-high:hover': {
@@ -367,7 +569,7 @@ exports.NOVA_TAILWIND_COMPONENTS = {
367
569
  'color': 'var(--color-interaction-container-neutral-text)',
368
570
  'backgroundColor': 'var(--color-interaction-container-neutral-background)',
369
571
  'textDecoration': 'none',
370
- 'fontWeight': '500',
572
+ 'fontWeight': 'var(--font-weight-medium-emphasis)',
371
573
  'padding': 'var(--spacing-2) var(--spacing-3)',
372
574
  'columnGap': 'var(--spacing-2)'
373
575
  },
@@ -23,72 +23,132 @@ var nova_tailwind_tokens_js_1 = require("../generated/nova-tailwind-tokens.js");
23
23
  var nova_tailwind_components_js_1 = require("../generated/nova-tailwind-components.js");
24
24
  exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
25
25
  var addUtilities = _a.addUtilities, addComponents = _a.addComponents, addBase = _a.addBase, theme = _a.theme;
26
- addBase({
27
- 'body, html': {
26
+ addBase(__assign({ 'body, html': {
28
27
  'background-color': theme('colors.background'),
29
28
  color: theme('colors.text'),
30
- },
31
- '*:disabled': {
29
+ }, '*:disabled': {
32
30
  cursor: 'not-allowed',
33
- },
34
- '*:focus, *:focus-within': {
31
+ }, '*:focus, *:focus-within': {
35
32
  outline: 'none',
36
- },
37
- 'button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible': {
33
+ }, 'button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible': {
38
34
  outline: 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
39
35
  'outline-offset': 'var(--focus-outline-offset)',
40
36
  'border-radius': 'var(--radius-rounded)',
41
- },
42
- a: {
37
+ }, a: {
43
38
  color: 'var(--color-interaction-link-high-text)',
44
39
  'text-decoration': 'underline',
45
- fontWeight: '700',
46
- },
47
- 'a:hover': {
40
+ fontWeight: 'var(--font-weight-high-emphasis)',
41
+ }, 'a:hover': {
48
42
  color: 'var(--color-interaction-link-high-text-hover)',
49
- },
50
- 'no-underline': {
43
+ }, 'no-underline': {
51
44
  'text-decoration': 'none',
45
+ } }, (function () {
46
+ var headingConfig = {
47
+ h1: { level: 'h1', color: 'high' },
48
+ h2: { level: 'h2', color: 'high' },
49
+ h3: { level: 'h3', color: 'high' },
50
+ h4: { level: 'h4', color: 'high' },
51
+ h5: {
52
+ level: 'h4',
53
+ fontWeight: 'var(--font-weight-medium-emphasis)',
54
+ color: 'medium',
55
+ },
56
+ h6: {
57
+ level: 'h4',
58
+ fontWeight: 'var(--font-weight-low-emphasis)',
59
+ color: 'low',
60
+ },
61
+ };
62
+ return Object.entries(headingConfig).reduce(function (acc, _a) {
63
+ var tag = _a[0], config = _a[1];
64
+ acc[tag] = {
65
+ fontSize: "var(--global-typography-".concat(config.level, "-font-size)"),
66
+ lineHeight: "var(--global-typography-".concat(config.level, "-line-height)"),
67
+ fontWeight: 'fontWeight' in config
68
+ ? config.fontWeight
69
+ : "var(--global-typography-".concat(config.level, "-font-weight)"),
70
+ color: "var(--color-content-".concat(config.color, "-text)"),
71
+ };
72
+ return acc;
73
+ }, {});
74
+ })()));
75
+ addComponents(__assign({}, nova_tailwind_components_js_1.NOVA_TAILWIND_COMPONENTS));
76
+ // Typography configuration for programmatic utility generation
77
+ var typographyConfig = {
78
+ heading: {
79
+ xl: {
80
+ size: '4xl',
81
+ lineHeight: 'leading-px-10',
82
+ letterSpacing: 'heading-xl',
83
+ },
84
+ lg: {
85
+ size: '3xl',
86
+ lineHeight: 'leading-px-8',
87
+ letterSpacing: 'heading-lg',
88
+ },
89
+ md: {
90
+ size: '2xl',
91
+ lineHeight: 'leading-px-7',
92
+ letterSpacing: 'heading-md',
93
+ },
94
+ sm: {
95
+ size: 'xl',
96
+ lineHeight: 'leading-px-6',
97
+ letterSpacing: 'heading-sm',
98
+ },
99
+ xs: {
100
+ size: 'lg',
101
+ lineHeight: 'leading-px-6',
102
+ letterSpacing: 'heading-xs',
103
+ },
52
104
  },
53
- h1: {
54
- fontSize: 'var(--global-typography-h1-font-size)',
55
- lineHeight: 'var(--global-typography-h1-line-height)',
56
- fontWeight: 'var(--global-typography-h1-font-weight)',
57
- color: 'var(--color-content-high-text)',
58
- },
59
- h2: {
60
- fontSize: 'var(--global-typography-h2-font-size)',
61
- lineHeight: 'var(--global-typography-h2-line-height)',
62
- fontWeight: 'var(--global-typography-h2-font-weight)',
63
- color: 'var(--color-content-high-text)',
64
- },
65
- h3: {
66
- fontSize: 'var(--global-typography-h3-font-size)',
67
- lineHeight: 'var(--global-typography-h3-line-height)',
68
- fontWeight: 'var(--global-typography-h3-font-weight)',
69
- color: 'var(--color-content-high-text)',
70
- },
71
- h4: {
72
- fontSize: 'var(--global-typography-h4-font-size)',
73
- lineHeight: 'var(--global-typography-h4-line-height)',
74
- fontWeight: 'var(--global-typography-h4-font-weight)',
75
- color: 'var(--color-content-high-text)',
76
- },
77
- h5: {
78
- fontSize: 'var(--global-typography-h4-font-size)',
79
- lineHeight: 'var(--global-typography-h4-line-height)',
80
- fontWeight: 'var(--font-weight-medium-emphasis)',
81
- color: 'var(--color-content-medium-text)',
105
+ text: {
106
+ xl: { size: 'xl', lineHeight: 'xl' },
107
+ lg: { size: 'lg', lineHeight: 'lg' },
108
+ md: { size: 'md', lineHeight: 'base' },
109
+ sm: { size: 'sm', lineHeight: 'sm' },
110
+ xs: { size: 'xs', lineHeight: 'xs' },
82
111
  },
83
- h6: {
84
- fontSize: 'var(--global-typography-h4-font-size)',
85
- lineHeight: 'var(--global-typography-h4-line-height)',
86
- fontWeight: 'var(--font-weight-low-emphasis)',
87
- color: 'var(--color-content-low-text)',
112
+ mono: {
113
+ md: { size: 'md', lineHeight: 'base' },
114
+ sm: { size: 'sm', lineHeight: 'sm' },
115
+ xs: { size: 'xs', lineHeight: 'xs' },
88
116
  },
117
+ };
118
+ var weights = ['regular', 'medium', 'bold'];
119
+ var weightMap = {
120
+ regular: 'low-emphasis',
121
+ medium: 'medium-emphasis',
122
+ bold: 'high-emphasis',
123
+ };
124
+ // Generate typography utilities programmatically
125
+ var typographyUtilities = {};
126
+ Object.entries(typographyConfig).forEach(function (_a) {
127
+ var type = _a[0], sizes = _a[1];
128
+ Object.entries(sizes).forEach(function (_a) {
129
+ var size = _a[0], config = _a[1];
130
+ weights.forEach(function (weight) {
131
+ var className = ".typo-".concat(type, "-").concat(size, "-").concat(weight);
132
+ var baseStyles = {
133
+ 'font-size': "var(--font-size-".concat(config.size, ")"),
134
+ 'font-weight': "var(--font-weight-".concat(weightMap[weight], ")"),
135
+ 'line-height': "var(--".concat(config.lineHeight.startsWith('leading-')
136
+ ? config.lineHeight
137
+ : "line-height-".concat(config.lineHeight), ")"),
138
+ };
139
+ // Add letter-spacing for headings
140
+ if (type === 'heading' && 'letterSpacing' in config) {
141
+ baseStyles['letter-spacing'] = "var(--letter-spacing-".concat(config.letterSpacing, ")");
142
+ }
143
+ // Add font-family for mono
144
+ if (type === 'mono') {
145
+ baseStyles['font-family'] = 'var(--font-family-mono), monospace';
146
+ }
147
+ typographyUtilities[className] = baseStyles;
148
+ });
149
+ });
89
150
  });
90
- addComponents(__assign({}, nova_tailwind_components_js_1.NOVA_TAILWIND_COMPONENTS));
91
- addUtilities(__assign(__assign({}, nova_tailwind_tokens_js_1.NOVA_TAILWIND_TOKENS), { '.w-inherit': {
151
+ addUtilities(__assign(__assign(__assign({}, nova_tailwind_tokens_js_1.NOVA_TAILWIND_TOKENS), { '.w-inherit': {
92
152
  width: 'inherit',
93
153
  }, '.w-initial': {
94
154
  width: 'initial',
@@ -100,194 +160,6 @@ exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
100
160
  width: 'revert',
101
161
  }, '.w-unset': {
102
162
  width: 'unset',
103
- },
104
- // Typography utilities
105
- // .typo-{type}-{size}-{weight}
106
- // Headings
107
- '.typo-heading-xl-regular': {
108
- 'font-size': 'var(--font-size-4xl)',
109
- 'font-weight': '400',
110
- 'line-height': 'var(--leading-px-10)',
111
- 'letter-spacing': 'var(--letter-spacing-heading-xl)',
112
- }, '.typo-heading-xl-medium': {
113
- 'font-size': 'var(--font-size-4xl)',
114
- 'font-weight': '500',
115
- 'line-height': 'var(--leading-px-10)',
116
- 'letter-spacing': 'var(--letter-spacing-heading-xl)',
117
- }, '.typo-heading-xl-bold': {
118
- 'font-size': 'var(--font-size-4xl)',
119
- 'font-weight': '700',
120
- 'line-height': 'var(--leading-px-10)',
121
- 'letter-spacing': 'var(--letter-spacing-heading-xl)',
122
- }, '.typo-heading-lg-regular': {
123
- 'font-size': 'var(--font-size-3xl)',
124
- 'font-weight': '400',
125
- 'line-height': 'var(--leading-px-8)',
126
- 'letter-spacing': 'var(--letter-spacing-heading-lg)',
127
- }, '.typo-heading-lg-medium': {
128
- 'font-size': 'var(--font-size-3xl)',
129
- 'font-weight': '500',
130
- 'line-height': 'var(--leading-px-8)',
131
- 'letter-spacing': 'var(--letter-spacing-heading-lg)',
132
- }, '.typo-heading-lg-bold': {
133
- 'font-size': 'var(--font-size-3xl)',
134
- 'font-weight': '700',
135
- 'line-height': 'var(--leading-px-8)',
136
- 'letter-spacing': 'var(--letter-spacing-heading-lg)',
137
- }, '.typo-heading-md-regular': {
138
- 'font-size': 'var(--font-size-2xl)',
139
- 'font-weight': '400',
140
- 'line-height': 'var(--leading-px-7)',
141
- 'letter-spacing': 'var(--letter-spacing-heading-md)',
142
- }, '.typo-heading-md-medium': {
143
- 'font-size': 'var(--font-size-2xl)',
144
- 'font-weight': '500',
145
- 'line-height': 'var(--leading-px-7)',
146
- 'letter-spacing': 'var(--letter-spacing-heading-md)',
147
- }, '.typo-heading-md-bold': {
148
- 'font-size': 'var(--font-size-2xl)',
149
- 'font-weight': '700',
150
- 'line-height': 'var(--leading-px-7)',
151
- 'letter-spacing': 'var(--letter-spacing-heading-md)',
152
- }, '.typo-heading-sm-regular': {
153
- 'font-size': 'var(--font-size-xl)',
154
- 'font-weight': '400',
155
- 'line-height': 'var(--leading-px-6)',
156
- 'letter-spacing': 'var(--letter-spacing-heading-sm)',
157
- }, '.typo-heading-sm-medium': {
158
- 'font-size': 'var(--font-size-xl)',
159
- 'font-weight': '500',
160
- 'line-height': 'var(--leading-px-6)',
161
- 'letter-spacing': 'var(--letter-spacing-heading-sm)',
162
- }, '.typo-heading-sm-bold': {
163
- 'font-size': 'var(--font-size-xl)',
164
- 'font-weight': '700',
165
- 'line-height': 'var(--leading-px-6)',
166
- 'letter-spacing': 'var(--letter-spacing-heading-sm)',
167
- }, '.typo-heading-xs-regular': {
168
- 'font-size': 'var(--font-size-lg)',
169
- 'font-weight': '400',
170
- 'line-height': 'var(--leading-px-6)',
171
- 'letter-spacing': 'var(--letter-spacing-heading-xs)',
172
- }, '.typo-heading-xs-medium': {
173
- 'font-size': 'var(--font-size-lg)',
174
- 'font-weight': '500',
175
- 'line-height': 'var(--leading-px-6)',
176
- 'letter-spacing': 'var(--letter-spacing-heading-xs)',
177
- }, '.typo-heading-xs-bold': {
178
- 'font-size': 'var(--font-size-lg)',
179
- 'font-weight': '700',
180
- 'line-height': 'var(--leading-px-6)',
181
- 'letter-spacing': 'var(--letter-spacing-heading-xs)',
182
- },
183
- // Text
184
- '.typo-text-xl-regular': {
185
- 'font-size': 'var(--font-size-xl)',
186
- 'font-weight': '400',
187
- 'line-height': 'var(--line-height-xl)',
188
- }, '.typo-text-xl-medium': {
189
- 'font-size': 'var(--font-size-xl)',
190
- 'font-weight': '500',
191
- 'line-height': 'var(--line-height-xl)',
192
- }, '.typo-text-xl-bold': {
193
- 'font-size': 'var(--font-size-xl)',
194
- 'font-weight': '700',
195
- 'line-height': 'var(--line-height-xl)',
196
- }, '.typo-text-lg-regular': {
197
- 'font-size': 'var(--font-size-lg)',
198
- 'font-weight': '400',
199
- 'line-height': 'var(--line-height-lg)',
200
- }, '.typo-text-lg-medium': {
201
- 'font-size': 'var(--font-size-lg)',
202
- 'font-weight': '500',
203
- 'line-height': 'var(--line-height-lg)',
204
- }, '.typo-text-lg-bold': {
205
- 'font-size': 'var(--font-size-lg)',
206
- 'font-weight': '700',
207
- 'line-height': 'var(--line-height-lg)',
208
- }, '.typo-text-md-regular': {
209
- 'font-size': 'var(--font-size-md)',
210
- 'font-weight': '400',
211
- 'line-height': 'var(--line-height-base)',
212
- }, '.typo-text-md-medium': {
213
- 'font-size': 'var(--font-size-md)',
214
- 'font-weight': '500',
215
- 'line-height': 'var(--line-height-base)',
216
- }, '.typo-text-md-bold': {
217
- 'font-size': 'var(--font-size-md)',
218
- 'font-weight': '700',
219
- 'line-height': 'var(--line-height-base)',
220
- }, '.typo-text-sm-regular': {
221
- 'font-size': 'var(--font-size-sm)',
222
- 'font-weight': '400',
223
- 'line-height': 'var(--line-height-sm)',
224
- }, '.typo-text-sm-medium': {
225
- 'font-size': 'var(--font-size-sm)',
226
- 'font-weight': '500',
227
- 'line-height': 'var(--line-height-sm)',
228
- }, '.typo-text-sm-bold': {
229
- 'font-size': 'var(--font-size-sm)',
230
- 'font-weight': '700',
231
- 'line-height': 'var(--line-height-sm)',
232
- }, '.typo-text-xs-regular': {
233
- 'font-size': 'var(--font-size-xs)',
234
- 'font-weight': '400',
235
- 'line-height': 'var(--line-height-xs)',
236
- }, '.typo-text-xs-medium': {
237
- 'font-size': 'var(--font-size-xs)',
238
- 'font-weight': '500',
239
- 'line-height': 'var(--line-height-xs)',
240
- }, '.typo-text-xs-bold': {
241
- 'font-size': 'var(--font-size-xs)',
242
- 'font-weight': '700',
243
- 'line-height': 'var(--line-height-xs)',
244
- },
245
- // Mono
246
- '.typo-mono-md-regular': {
247
- 'font-family': 'TT Norms Pro Mono',
248
- 'font-size': 'var(--font-size-md)',
249
- 'font-weight': '400',
250
- 'line-height': 'var(--line-height-base)',
251
- }, '.typo-mono-md-medium': {
252
- 'font-family': 'TT Norms Pro Mono',
253
- 'font-size': 'var(--font-size-md)',
254
- 'font-weight': '500',
255
- 'line-height': 'var(--line-height-base)',
256
- }, '.typo-mono-md-bold': {
257
- 'font-family': 'TT Norms Pro Mono',
258
- 'font-size': 'var(--font-size-md)',
259
- 'font-weight': '700',
260
- 'line-height': 'var(--line-height-base)',
261
- }, '.typo-mono-sm-regular': {
262
- 'font-family': 'TT Norms Pro Mono',
263
- 'font-size': 'var(--font-size-sm)',
264
- 'font-weight': '400',
265
- 'line-height': 'var(--line-height-sm)',
266
- }, '.typo-mono-sm-medium': {
267
- 'font-family': 'TT Norms Pro Mono',
268
- 'font-size': 'var(--font-size-sm)',
269
- 'font-weight': '500',
270
- 'line-height': 'var(--line-height-sm)',
271
- }, '.typo-mono-sm-bold': {
272
- 'font-family': 'TT Norms Pro Mono',
273
- 'font-size': 'var(--font-size-sm)',
274
- 'font-weight': '700',
275
- 'line-height': 'var(--line-height-sm)',
276
- }, '.typo-mono-xs-regular': {
277
- 'font-family': 'TT Norms Pro Mono',
278
- 'font-size': 'var(--font-size-xs)',
279
- 'font-weight': '400',
280
- 'line-height': 'var(--line-height-xs)',
281
- }, '.typo-mono-xs-medium': {
282
- 'font-family': 'TT Norms Pro Mono',
283
- 'font-size': 'var(--font-size-xs)',
284
- 'font-weight': '500',
285
- 'line-height': 'var(--line-height-xs)',
286
- }, '.typo-mono-xs-bold': {
287
- 'font-family': 'TT Norms Pro Mono',
288
- 'font-size': 'var(--font-size-xs)',
289
- 'font-weight': '700',
290
- 'line-height': 'var(--line-height-xs)',
291
- } }));
163
+ } }), typographyUtilities));
292
164
  });
293
165
  exports.default = exports.novaTailwindPlugin;
@@ -325,11 +325,11 @@ var resize = [
325
325
  },
326
326
  ];
327
327
  // From the nova tailwind plugin (nova-plugin.ts)
328
- var utils = [
329
- { pattern: /^text-(high|medium|low)$/ },
330
- { pattern: /^bg-level-(00|10|20|30|40)(-hover)?$/ },
331
- { pattern: /^border-(high|medium|low)$/ },
332
- ];
328
+ /*const utils = [
329
+ { pattern: /^text-(high|medium|low)$/ },
330
+ { pattern: /^bg-level-(00|10|20|30|40)(-hover)?$/ },
331
+ { pattern: /^border-(high|medium|low)$/ },
332
+ ];*/
333
333
  // From the nova tailwind components (nova-tailwind-components.ts)
334
334
  var components = __spreadArray([], Object.keys(nova_tailwind_components_js_1.NOVA_TAILWIND_COMPONENTS).filter(function (key) {
335
335
  return /^\.[a-zA-Z0-9-]+$/.test(key);
@@ -338,4 +338,4 @@ var components = __spreadArray([], Object.keys(nova_tailwind_components_js_1.NOV
338
338
  var tokens = __spreadArray(__spreadArray([], Object.keys(nova_tailwind_tokens_js_1.NOVA_TAILWIND_TOKENS), true), [
339
339
  { pattern: /-hover$/, variants: ['hover'] },
340
340
  ], false);
341
- exports.novaThemeSafelist = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.padding, true), exports.margin, true), exports.gap, true), flexBox, true), grid, true), spaceBetween, true), overflow, true), position, true), display, true), textAlign, true), textSize, true), whitespace, true), verticalAlign, true), fontWeight, true), fontFamily, true), borders, true), width, true), height, true), colors, true), cursors, true), resize, true), utils, true), components, true), tokens, true);
341
+ exports.novaThemeSafelist = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.padding, true), exports.margin, true), exports.gap, true), flexBox, true), grid, true), spaceBetween, true), overflow, true), position, true), display, true), textAlign, true), textSize, true), whitespace, true), verticalAlign, true), fontWeight, true), fontFamily, true), borders, true), width, true), height, true), colors, true), cursors, true), resize, true), components, true), tokens, true);