@rothko-ui/tokens 1.4.2
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/LICENSE +21 -0
- package/README.md +29 -0
- package/build/tokens.css +414 -0
- package/package.json +39 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 rothko-ui
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# @rothko-ui/tokens
|
2
|
+
|
3
|
+
Welcome to the `@rothko-ui/tokens` package. This package provides style tokens for the Rothko-UI component library, ensuring consistent theming and styling options for internal Rothko-UI components.
|
4
|
+
|
5
|
+
## Overview
|
6
|
+
|
7
|
+
The `@rothko-ui/tokens` package uses `style-dictionary` to manage and generate design tokens. These tokens play a crucial role in maintaining a unified design and theming across different components within the Rothko-UI library.
|
8
|
+
|
9
|
+
## Development
|
10
|
+
|
11
|
+
The package comes with several scripts to aid in development:
|
12
|
+
|
13
|
+
- `yarn build`: Generates the tokens in the form of CSS files.
|
14
|
+
- `yarn clean`: Removes generated files.
|
15
|
+
- `yarn lint`: Lints the source files.
|
16
|
+
|
17
|
+
## Exports
|
18
|
+
|
19
|
+
The package primarily exports CSS files containing the design tokens:
|
20
|
+
|
21
|
+
- CSS variables for different themes: `build/*.css`
|
22
|
+
|
23
|
+
## Licensing
|
24
|
+
|
25
|
+
The `@rothko-ui/tokens` package is licensed under the terms of the [LICENSE.txt](LICENSE.txt) file. Please refer to it for detailed information.
|
26
|
+
|
27
|
+
## Questions & Support
|
28
|
+
|
29
|
+
For questions, clarifications, or support regarding the `@rothko-ui/tokens` package, please raise an issue in the [repository](https://github.com/luxo-ai/rothko-ui) or contact the author at `luxo@rothko-ui.com`.
|
package/build/tokens.css
ADDED
@@ -0,0 +1,414 @@
|
|
1
|
+
/**
|
2
|
+
* Do not edit directly
|
3
|
+
* Generated on Sat, 22 Feb 2025 20:45:30 GMT
|
4
|
+
*/
|
5
|
+
|
6
|
+
:root, :root .light {
|
7
|
+
--rothko-primary-100: #000000;
|
8
|
+
--rothko-primary-200: #000000;
|
9
|
+
--rothko-primary-300: #000000;
|
10
|
+
--rothko-primary-400: #000000;
|
11
|
+
--rothko-primary-500: #000000;
|
12
|
+
--rothko-primary-600: #000000;
|
13
|
+
--rothko-primary-700: #000000;
|
14
|
+
--rothko-primary-800: #000000;
|
15
|
+
--rothko-primary-900: #000000;
|
16
|
+
--rothko-primary: #000000;
|
17
|
+
--rothko-primary-foreground: #FFF;
|
18
|
+
--rothko-secondary-100: #FFDFF9;
|
19
|
+
--rothko-secondary-200: #FFBFF8;
|
20
|
+
--rothko-secondary-300: #FFA0FC;
|
21
|
+
--rothko-secondary-400: #F888FF;
|
22
|
+
--rothko-secondary-500: #ea61ff;
|
23
|
+
--rothko-secondary-600: #BB46DB;
|
24
|
+
--rothko-secondary-700: #9030B7;
|
25
|
+
--rothko-secondary-800: #681E93;
|
26
|
+
--rothko-secondary-900: #4B127A;
|
27
|
+
--rothko-secondary: #ea61ff;
|
28
|
+
--rothko-secondary-foreground: #fff;
|
29
|
+
--rothko-success-100: #DFFFD9;
|
30
|
+
--rothko-success-200: #B8FFB3;
|
31
|
+
--rothko-success-300: #8DFF8F;
|
32
|
+
--rothko-success-400: #70FF80;
|
33
|
+
--rothko-success-500: #41ff69;
|
34
|
+
--rothko-success-600: #2FDB64;
|
35
|
+
--rothko-success-700: #20B75D;
|
36
|
+
--rothko-success-800: #149353;
|
37
|
+
--rothko-success-900: #0C7A4D;
|
38
|
+
--rothko-success: #41ff69;
|
39
|
+
--rothko-success-foreground: #000;
|
40
|
+
--rothko-info-100: #D8D2FE;
|
41
|
+
--rothko-info-200: #B1A5FE;
|
42
|
+
--rothko-info-300: #8978FD;
|
43
|
+
--rothko-info-400: #6957FB;
|
44
|
+
--rothko-info-500: #3620f9;
|
45
|
+
--rothko-info-600: #2817D6;
|
46
|
+
--rothko-info-700: #1D10B3;
|
47
|
+
--rothko-info-800: #130A90;
|
48
|
+
--rothko-info-900: #0C0677;
|
49
|
+
--rothko-info: #3620f9;
|
50
|
+
--rothko-info-foreground: #FFF;
|
51
|
+
--rothko-warning-100: #FEFBCE;
|
52
|
+
--rothko-warning-200: #FEF69E;
|
53
|
+
--rothko-warning-300: #FEF06E;
|
54
|
+
--rothko-warning-400: #FEEA4A;
|
55
|
+
--rothko-warning-500: #fee10e;
|
56
|
+
--rothko-warning-600: #DABE0A;
|
57
|
+
--rothko-warning-700: #B69D07;
|
58
|
+
--rothko-warning-800: #937C04;
|
59
|
+
--rothko-warning-900: #796502;
|
60
|
+
--rothko-warning: #fee10e;
|
61
|
+
--rothko-warning-foreground: #000;
|
62
|
+
--rothko-danger-100: #FFE0CF;
|
63
|
+
--rothko-danger-200: #FFB9A0;
|
64
|
+
--rothko-danger-300: #FF8971;
|
65
|
+
--rothko-danger-400: #FF5D4E;
|
66
|
+
--rothko-danger-500: #ff1313;
|
67
|
+
--rothko-danger-600: #DB0D1F;
|
68
|
+
--rothko-danger-700: #B70927;
|
69
|
+
--rothko-danger-800: #93062A;
|
70
|
+
--rothko-danger-900: #7A032C;
|
71
|
+
--rothko-danger: #ff1313;
|
72
|
+
--rothko-danger-foreground: #FFF;
|
73
|
+
--rothko-background: #fff;
|
74
|
+
--rothko-border: #000;
|
75
|
+
--rothko-foreground: #000;
|
76
|
+
--rothko-icon-background: #000;
|
77
|
+
--rothko-icon-border: #000;
|
78
|
+
--rothko-slider-handle-border: #262626;
|
79
|
+
--rothko-slider-handle-background: #262626;
|
80
|
+
--rothko-slider-range-background: #3c54ff;
|
81
|
+
--rothko-slider-track-background: rgb(0 0 0 / 8%);
|
82
|
+
--rothko-dropdown-background: #FFF;
|
83
|
+
--rothko-dropdown-multiselect-foreground: #3620f9;
|
84
|
+
--rothko-dropdown-multiselect-border: #3620f9;
|
85
|
+
--rothko-dropdown-multiselect-background: #FFF;
|
86
|
+
--rothko-dropdown-option-background-focus: #EEE;
|
87
|
+
--rothko-tabs-border: #000;
|
88
|
+
--rothko-tabs-background: transparent;
|
89
|
+
--rothko-tabs-foreground: #000;
|
90
|
+
--rothko-radio-border: #DEE7F5;
|
91
|
+
--rothko-radio-background: #EBF2FB;
|
92
|
+
--rothko-radio-background-focus: #3c54ff;
|
93
|
+
--rothko-table-background: #fff;
|
94
|
+
--rothko-table-header-background: #f8f9fa;
|
95
|
+
--rothko-table-row-border: #f3f3f5;
|
96
|
+
--rothko-table-row-minimized-background: #f8f9fa;
|
97
|
+
--rothko-toast-foreground: #fff;
|
98
|
+
--rothko-toast-background: #000;
|
99
|
+
--rothko-toast-life-filled-background: #ff0000;
|
100
|
+
--rothko-toast-life-empty-background: #e1594e;
|
101
|
+
--rothko-accordion-border: #000;
|
102
|
+
--rothko-accordion-background: #f8f9fa;
|
103
|
+
--rothko-checkbox-background: #DEE7F5;
|
104
|
+
--rothko-checkbox-background-focus: #3c54ff;
|
105
|
+
--rothko-checkbox-icon-background: #fff;
|
106
|
+
--rothko-input-background: rgba(188, 199, 223, 0.24);
|
107
|
+
--rothko-input-foreground: #000;
|
108
|
+
--rothko-skeleton-background: #DEE7F5;
|
109
|
+
--rothko-skeleton-foreground: #EBF2FB;
|
110
|
+
--rothko-switch-border: #d9d9d9;
|
111
|
+
--rothko-switch-background: #dee7f5;
|
112
|
+
--rothko-switch-background-focus: #41ff69;
|
113
|
+
--rothko-switch-handle-background: #fff;
|
114
|
+
--rothko-typography-link-color: #492bfb;
|
115
|
+
--rothko-typography-body-color: #000;
|
116
|
+
--rothko-typography-heading-color: #000;
|
117
|
+
--rothko-typography-code-color: #5327fb;
|
118
|
+
}
|
119
|
+
|
120
|
+
:root, :root .light {
|
121
|
+
fill: var(--rothko-icon-background, #000)
|
122
|
+
}
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Do not edit directly
|
126
|
+
* Generated on Sat, 22 Feb 2025 20:45:30 GMT
|
127
|
+
*/
|
128
|
+
|
129
|
+
:root .dark {
|
130
|
+
--rothko-primary-100: #FFFFFF;
|
131
|
+
--rothko-primary-200: #FFFFFF;
|
132
|
+
--rothko-primary-300: #FFFFFF;
|
133
|
+
--rothko-primary-400: #FFFFFF;
|
134
|
+
--rothko-primary-500: #FFFFFF;
|
135
|
+
--rothko-primary-600: #FFFFFF;
|
136
|
+
--rothko-primary-700: #FFFFFF;
|
137
|
+
--rothko-primary-800: #FFFFFF;
|
138
|
+
--rothko-primary-900: #FFFFFF;
|
139
|
+
--rothko-primary: #FFFFFF;
|
140
|
+
--rothko-primary-foreground: #000;
|
141
|
+
--rothko-secondary-100: #FFE3F9;
|
142
|
+
--rothko-secondary-200: #FFC7F9;
|
143
|
+
--rothko-secondary-300: #FFABFD;
|
144
|
+
--rothko-secondary-400: #F995FF;
|
145
|
+
--rothko-secondary-500: #ec73ff;
|
146
|
+
--rothko-secondary-600: #BE54DB;
|
147
|
+
--rothko-secondary-700: #9239B7;
|
148
|
+
--rothko-secondary-800: #6A2493;
|
149
|
+
--rothko-secondary-900: #4D167A;
|
150
|
+
--rothko-secondary: #ec73ff;
|
151
|
+
--rothko-secondary-foreground: #000;
|
152
|
+
--rothko-success-100: #E1FFDB;
|
153
|
+
--rothko-success-200: #BCFFB7;
|
154
|
+
--rothko-success-300: #93FF95;
|
155
|
+
--rothko-success-400: #78FF87;
|
156
|
+
--rothko-success-500: #4bff71;
|
157
|
+
--rothko-success-600: #36DB69;
|
158
|
+
--rothko-success-700: #25B760;
|
159
|
+
--rothko-success-800: #179355;
|
160
|
+
--rothko-success-900: #0E7A4E;
|
161
|
+
--rothko-success: #4bff71;
|
162
|
+
--rothko-success-foreground: #000;
|
163
|
+
--rothko-info-100: #DAD4FF;
|
164
|
+
--rothko-info-200: #B4A9FF;
|
165
|
+
--rothko-info-300: #8E7FFF;
|
166
|
+
--rothko-info-400: #705FFF;
|
167
|
+
--rothko-info-500: #3f2aff;
|
168
|
+
--rothko-info-600: #2F1EDB;
|
169
|
+
--rothko-info-700: #2115B7;
|
170
|
+
--rothko-info-800: #160D93;
|
171
|
+
--rothko-info-900: #0E087A;
|
172
|
+
--rothko-info: #3f2aff;
|
173
|
+
--rothko-info-foreground: #FFF;
|
174
|
+
--rothko-warning-100: #FEFBCE;
|
175
|
+
--rothko-warning-200: #FEF69E;
|
176
|
+
--rothko-warning-300: #FEF06E;
|
177
|
+
--rothko-warning-400: #FEEA4A;
|
178
|
+
--rothko-warning-500: #fee10e;
|
179
|
+
--rothko-warning-600: #DABE0A;
|
180
|
+
--rothko-warning-700: #B69D07;
|
181
|
+
--rothko-warning-800: #937C04;
|
182
|
+
--rothko-warning-900: #796502;
|
183
|
+
--rothko-warning: #fee10e;
|
184
|
+
--rothko-warning-foreground: #000;
|
185
|
+
--rothko-danger-100: #FFE2D3;
|
186
|
+
--rothko-danger-200: #FFBFA8;
|
187
|
+
--rothko-danger-300: #FF937D;
|
188
|
+
--rothko-danger-400: #FF6B5D;
|
189
|
+
--rothko-danger-500: #ff2727;
|
190
|
+
--rothko-danger-600: #DB1C2D;
|
191
|
+
--rothko-danger-700: #B71330;
|
192
|
+
--rothko-danger-800: #930C2F;
|
193
|
+
--rothko-danger-900: #7A072F;
|
194
|
+
--rothko-danger: #ff2727;
|
195
|
+
--rothko-danger-foreground: #FFF;
|
196
|
+
--rothko-background: #141414;
|
197
|
+
--rothko-border: #FFF;
|
198
|
+
--rothko-foreground: #FFF;
|
199
|
+
--rothko-icon-background: #FFF;
|
200
|
+
--rothko-icon-border: #FFF;
|
201
|
+
--rothko-slider-handle-border: #2d3035;
|
202
|
+
--rothko-slider-handle-background: #2d3035;
|
203
|
+
--rothko-slider-range-background: #4d63ff;
|
204
|
+
--rothko-slider-track-background: rgb(255 255 255 / 8%);
|
205
|
+
--rothko-dropdown-background: #141414;
|
206
|
+
--rothko-dropdown-multiselect-foreground: #c42317;
|
207
|
+
--rothko-dropdown-multiselect-border: #c42317;
|
208
|
+
--rothko-dropdown-multiselect-background: #000;
|
209
|
+
--rothko-dropdown-option-background-focus: #3B3B3B;
|
210
|
+
--rothko-tabs-border: #FFF;
|
211
|
+
--rothko-tabs-background: transparent;
|
212
|
+
--rothko-tabs-foreground: #FFF;
|
213
|
+
--rothko-radio-border: #6b6b6b;
|
214
|
+
--rothko-radio-background: #2D3035;
|
215
|
+
--rothko-radio-background-focus: #2D3035;
|
216
|
+
--rothko-table-background: #080808;
|
217
|
+
--rothko-table-header-background: #141414;
|
218
|
+
--rothko-table-row-border: #000;
|
219
|
+
--rothko-table-row-minimized-background: #141414;
|
220
|
+
--rothko-toast-foreground: #FFF;
|
221
|
+
--rothko-toast-background: #141414;
|
222
|
+
--rothko-toast-life-filled-background: #e93c2f;
|
223
|
+
--rothko-toast-life-empty-background: transparent;
|
224
|
+
--rothko-accordion-border: #FFF;
|
225
|
+
--rothko-accordion-background: #141414;
|
226
|
+
--rothko-checkbox-background: #DEE7F5;
|
227
|
+
--rothko-checkbox-background-focus: #4d63ff;
|
228
|
+
--rothko-checkbox-icon-background: #fff;
|
229
|
+
--rothko-input-background: rgba(188, 199, 223, 0.24);
|
230
|
+
--rothko-input-foreground: #FFF;
|
231
|
+
--rothko-skeleton-background: #DEE7F5;
|
232
|
+
--rothko-skeleton-foreground: #EBF2FB;
|
233
|
+
--rothko-switch-border: #494949;
|
234
|
+
--rothko-switch-background: #2d3035;
|
235
|
+
--rothko-switch-background-focus: #4bff71;
|
236
|
+
--rothko-switch-handle-background: #757985;
|
237
|
+
--rothko-typography-link-color: #e93c2f;
|
238
|
+
--rothko-typography-body-color: #FFF;
|
239
|
+
--rothko-typography-heading-color: #FFF;
|
240
|
+
--rothko-typography-code-color: #ec73ff;
|
241
|
+
}
|
242
|
+
|
243
|
+
:root .dark {
|
244
|
+
fill: var(--rothko-icon-background, #000)
|
245
|
+
}
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Do not edit directly
|
249
|
+
* Generated on Sat, 22 Feb 2025 20:45:30 GMT
|
250
|
+
*/
|
251
|
+
|
252
|
+
:root {
|
253
|
+
--rothko-font-family-bold: 'Helvetica';
|
254
|
+
--rothko-font-family-italic: 'Helvetica';
|
255
|
+
--rothko-font-family-light: 'Helvetica';
|
256
|
+
--rothko-font-family-regular: 'Helvetica';
|
257
|
+
--rothko-font-family-heading: 'Helvetica';
|
258
|
+
--rothko-font-family-code: monospace;
|
259
|
+
--rothko-spacing-unit: 4;
|
260
|
+
--rothko-disabled-opacity: 0.5;
|
261
|
+
--rothko-divider-weight: 1px;
|
262
|
+
--rothko-font-size-body: 1rem;
|
263
|
+
--rothko-font-size-h1: 2.5rem;
|
264
|
+
--rothko-font-size-h2: 2.25rem;
|
265
|
+
--rothko-font-size-h3: 2rem;
|
266
|
+
--rothko-font-size-h4: 1.75rem;
|
267
|
+
--rothko-font-size-h5: 1.5rem;
|
268
|
+
--rothko-font-size-h6: 1.25rem;
|
269
|
+
--rothko-font-size-body-small: 0.875rem;
|
270
|
+
--rothko-font-size-label: 0.75rem;
|
271
|
+
--rothko-font-size-caption: 0.75rem;
|
272
|
+
--rothko-font-size-code: 1rem;
|
273
|
+
--rothko-line-height-body: 1.5rem;
|
274
|
+
--rothko-line-height-h1: 3.25rem;
|
275
|
+
--rothko-line-height-h2: 2.75rem;
|
276
|
+
--rothko-line-height-h3: 2.5rem;
|
277
|
+
--rothko-line-height-h4: 2.25rem;
|
278
|
+
--rothko-line-height-h5: 2rem;
|
279
|
+
--rothko-line-height-h6: 1.75rem;
|
280
|
+
--rothko-line-height-body-small: 1.25rem;
|
281
|
+
--rothko-line-height-label: 0.9375rem;
|
282
|
+
--rothko-line-height-caption: 0.9375rem;
|
283
|
+
--rothko-line-height-code: 1.5rem;
|
284
|
+
--rothko-radius-xs: 0.125rem;
|
285
|
+
--rothko-radius-s: 0.25rem;
|
286
|
+
--rothko-radius-m: 0.5rem;
|
287
|
+
--rothko-radius-l: 0.75rem;
|
288
|
+
--rothko-border-width-xs: 1px;
|
289
|
+
--rothko-border-width-s: 2px;
|
290
|
+
--rothko-border-width-m: 4px;
|
291
|
+
--rothko-border-width-l: 8px;
|
292
|
+
--rothko-hover-opacity: 0.8;
|
293
|
+
}
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Do not edit directly
|
297
|
+
* Generated on Sat, 22 Feb 2025 20:45:30 GMT
|
298
|
+
*/
|
299
|
+
|
300
|
+
:root {
|
301
|
+
--rothko-autocomplete-dropdown-max-height: 13.5rem;
|
302
|
+
--rothko-button-border-radius: 0.125rem;
|
303
|
+
--rothko-input-border-radius: 0.125rem;
|
304
|
+
}
|
305
|
+
|
306
|
+
@layer utilities {
|
307
|
+
.rothko-font-regular {
|
308
|
+
font-family: var(--rothko-font-family-regular);
|
309
|
+
}
|
310
|
+
.rothko-font-bold {
|
311
|
+
font-family: var(--rothko-font-family-bold);
|
312
|
+
font-weight: bold;
|
313
|
+
}
|
314
|
+
.rothko-font-italic {
|
315
|
+
font-family: var(--rothko-font-family-italic);
|
316
|
+
}
|
317
|
+
.rothko-font-light {
|
318
|
+
font-family: var(--rothko-font-family-light);
|
319
|
+
font-weight: 200;
|
320
|
+
}
|
321
|
+
.rothko-font-heading {
|
322
|
+
font-family: var(--rothko-font-family-heading);
|
323
|
+
font-weight: 700;
|
324
|
+
}
|
325
|
+
.rothko-font-code {
|
326
|
+
font-family: var(--rothko-font-family-code);
|
327
|
+
}
|
328
|
+
.rothko-color-body {
|
329
|
+
color: var(--rothko-typography-body-color);
|
330
|
+
}
|
331
|
+
.rothko-color-heading {
|
332
|
+
color: var(--rothko-typography-heading-color);
|
333
|
+
}
|
334
|
+
.rothko-color-code {
|
335
|
+
color: var(--rothko-typography-code-color);
|
336
|
+
}
|
337
|
+
/* XS */
|
338
|
+
.rothko-paragraph-size-xs {
|
339
|
+
font-size: var(--rothko-font-size-body-xsmall, 0.75rem);
|
340
|
+
line-height: var(--rothko-line-height-body-xsmall, 0.9375rem);
|
341
|
+
}
|
342
|
+
/* S */
|
343
|
+
.rothko-paragraph-size-s {
|
344
|
+
font-size: var(--rothko-font-size-body-small, 0.875rem);
|
345
|
+
line-height: var(--rothko-line-height-body-small, 1.25rem);
|
346
|
+
}
|
347
|
+
/* M */
|
348
|
+
.rothko-paragraph-size-m,
|
349
|
+
.rothko-paragraph-size-default {
|
350
|
+
font-size: var(--rothko-font-size-body, 1rem);
|
351
|
+
line-height: var(--rothko-line-height-body, 1.5rem);
|
352
|
+
}
|
353
|
+
/* L */
|
354
|
+
.rothko-paragraph-size-l {
|
355
|
+
font-size: var(--rothko-font-size-body-large, 1.25rem);
|
356
|
+
line-height: var(--rothko-line-height-body-large, 1.75rem);
|
357
|
+
}
|
358
|
+
/* h1 */
|
359
|
+
.rothko-heading-size-h1 {
|
360
|
+
font-size: var(--rothko-font-size-h1, 2.5rem);
|
361
|
+
line-height: var(--rothko-line-height-h1, 3.25rem);
|
362
|
+
}
|
363
|
+
/* h2 */
|
364
|
+
.rothko-heading-size-h2 {
|
365
|
+
font-size: var(--rothko-font-size-h2, 2.25rem);
|
366
|
+
line-height: var(--rothko-line-height-h2, 2.75rem);
|
367
|
+
}
|
368
|
+
/* h3 */
|
369
|
+
.rothko-heading-size-h3 {
|
370
|
+
font-size: var(--rothko-font-size-h3, 2rem);
|
371
|
+
line-height: var(--rothko-line-height-h3, 2.5rem);
|
372
|
+
}
|
373
|
+
/* h4 */
|
374
|
+
.rothko-heading-size-h4 {
|
375
|
+
font-size: var(--rothko-font-size-h4, 1.75rem);
|
376
|
+
line-height: var(--rothko-line-height-h4, 2.25rem);
|
377
|
+
}
|
378
|
+
/* h5 */
|
379
|
+
.rothko-heading-size-h5 {
|
380
|
+
font-size: var(--rothko-font-size-h5, 1.5rem);
|
381
|
+
line-height: var(--rothko-line-height-h5, 2rem);
|
382
|
+
}
|
383
|
+
/* h6 */
|
384
|
+
.rothko-heading-size-h6 {
|
385
|
+
font-size: var(--rothko-font-size-h6, 1.25rem);
|
386
|
+
line-height: var(--rothko-line-height-h6, 1.75rem);
|
387
|
+
}
|
388
|
+
/* code */
|
389
|
+
.rothko-code-size {
|
390
|
+
font-size: var(--rothko-font-size-code, 1rem);
|
391
|
+
line-height: var(--rothko-line-height-code, 1.25rem);
|
392
|
+
}
|
393
|
+
.ios-tap-highlight-color-transparent {
|
394
|
+
-webkit-tap-highlight-color: transparent;
|
395
|
+
}
|
396
|
+
.slash-separated:not(:last-of-type)::after {
|
397
|
+
content: ' / ';
|
398
|
+
}
|
399
|
+
.font-smoothing-antialiased {
|
400
|
+
/* Use font smoothing to make text more readable + lighter */
|
401
|
+
-webkit-font-smoothing: antialiased;
|
402
|
+
-moz-osx-font-smoothing: grayscale;
|
403
|
+
}
|
404
|
+
.hide-chrome-browser-outline {
|
405
|
+
outline: none;
|
406
|
+
:active,
|
407
|
+
:focus {
|
408
|
+
outline: none;
|
409
|
+
}
|
410
|
+
}
|
411
|
+
.webkit-overflow-scrolling-touch {
|
412
|
+
-webkit-overflow-scrolling: touch;
|
413
|
+
}
|
414
|
+
}
|
package/package.json
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"name": "@rothko-ui/tokens",
|
3
|
+
"version": "1.4.2",
|
4
|
+
"repository": {
|
5
|
+
"type": "git",
|
6
|
+
"url": "git+https://github.com/luxo-ai/rothko-ui.git",
|
7
|
+
"directory": "packages/tokens"
|
8
|
+
},
|
9
|
+
"publishConfig": {
|
10
|
+
"access": "public"
|
11
|
+
},
|
12
|
+
"private": false,
|
13
|
+
"license": "MIT",
|
14
|
+
"author": "Luis Serazo <luxo.ai@proton.me>",
|
15
|
+
"description": "Style tokens for Rothko UI",
|
16
|
+
"source": "./src/index.ts",
|
17
|
+
"styles": "./build/tokens.css",
|
18
|
+
"scripts": {
|
19
|
+
"prebuild": "yarn clean",
|
20
|
+
"build": "node ./src/build.js",
|
21
|
+
"clean": "rimraf build"
|
22
|
+
},
|
23
|
+
"devDependencies": {
|
24
|
+
"fs": "^0.0.1-security",
|
25
|
+
"lodash.compact": "^3.0.1",
|
26
|
+
"path": "^0.12.7",
|
27
|
+
"rimraf": "^3.0.2",
|
28
|
+
"style-dictionary": "^3.9.2"
|
29
|
+
},
|
30
|
+
"exports": {
|
31
|
+
"./style.css": "./build/tokens.css"
|
32
|
+
},
|
33
|
+
"files": [
|
34
|
+
"build/tokens.css",
|
35
|
+
"LICENSE",
|
36
|
+
"README"
|
37
|
+
],
|
38
|
+
"gitHead": "fa0338bf50f574c0a42d143d3bd317a40a6e3fb9"
|
39
|
+
}
|