typewritingclass 0.3.4 → 0.3.5
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 +28 -111
- package/dist/index.cjs +12 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +12 -1
- package/dist/rule.d.cts +1 -1
- package/dist/rule.d.ts +1 -1
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/{types-B-eG4WLT.d.cts → types-uXRYakpo.d.cts} +11 -1
- package/dist/{types-B-eG4WLT.d.ts → types-uXRYakpo.d.ts} +11 -1
- package/package.json +16 -1
package/README.md
CHANGED
|
@@ -1,149 +1,70 @@
|
|
|
1
1
|
# Typewriting Class
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CSS-in-TypeScript with full autocomplete. Design tokens as properties, not strings.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
pnpm add typewritingclass
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
### Chainable API (recommended)
|
|
11
|
+
## Use
|
|
14
12
|
|
|
15
13
|
```ts
|
|
14
|
+
import 'typewritingclass/inject'
|
|
16
15
|
import { tw } from 'typewritingclass'
|
|
17
16
|
|
|
18
|
-
const card = tw
|
|
19
|
-
.bg.white.rounded.lg.p(6).flex.gap(4)
|
|
20
|
-
.hover(tw.bg('blue-50'))
|
|
21
|
-
.md.p(8)
|
|
22
|
-
.dark(tw.bg('slate-800'))
|
|
17
|
+
const card = tw.bg.white.rounded.lg.p(6).shadow.md
|
|
23
18
|
```
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Design tokens are accessed via property names — no strings needed:
|
|
20
|
+
## Property-access tokens
|
|
28
21
|
|
|
29
22
|
```ts
|
|
30
23
|
tw.bg.blue500 // background-color: #3b82f6
|
|
31
24
|
tw.textColor.slate900 // color: #0f172a
|
|
32
25
|
tw.rounded.lg // border-radius: 0.5rem
|
|
33
26
|
tw.shadow.md // box-shadow: ...
|
|
34
|
-
tw.text.lg // font-size
|
|
27
|
+
tw.text.lg // font-size + line-height
|
|
35
28
|
tw.font.bold // font-weight: 700
|
|
36
29
|
tw.items.center // align-items: center
|
|
37
|
-
tw.justify.between // justify-content: space-between
|
|
38
30
|
tw.cursor.pointer // cursor: pointer
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Color tokens support opacity via callable syntax:
|
|
42
|
-
|
|
43
|
-
```ts
|
|
44
|
-
tw.bg.blue500(50) // background-color: rgb(59 130 246 / 0.5)
|
|
45
|
-
```
|
|
46
31
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
```ts
|
|
50
|
-
import { cx, bg, rounded, p, when, hover } from 'typewritingclass'
|
|
51
|
-
|
|
52
|
-
cx(bg.blue500, rounded.lg, p(4))
|
|
53
|
-
|
|
54
|
-
// With opacity
|
|
55
|
-
cx(bg.blue500(25), rounded.lg, p(4))
|
|
32
|
+
tw.bg.blue500(50) // 50% opacity
|
|
56
33
|
```
|
|
57
34
|
|
|
58
|
-
|
|
35
|
+
Any CSS value works as a string argument: `tw.bg('#ff6347')`.
|
|
59
36
|
|
|
60
|
-
|
|
37
|
+
## Modifiers
|
|
61
38
|
|
|
62
39
|
```ts
|
|
63
|
-
tw.bg
|
|
40
|
+
tw.hover.bg.blue500
|
|
41
|
+
tw.dark.bg.slate900
|
|
42
|
+
tw.md.p(8)
|
|
43
|
+
tw.hover(tw.bg.blue500.textColor.white)
|
|
64
44
|
```
|
|
65
45
|
|
|
66
|
-
|
|
46
|
+
## Standalone utilities
|
|
67
47
|
|
|
68
48
|
```ts
|
|
69
|
-
import { cx,
|
|
70
|
-
import { hover, md, dark } from 'typewritingclass'
|
|
71
|
-
import { blue, white, slate } from 'typewritingclass/theme/colors'
|
|
72
|
-
|
|
73
|
-
const card = cx(
|
|
74
|
-
p(6), bg(white), rounded('lg'),
|
|
75
|
-
flex(), gap(4),
|
|
76
|
-
when(hover)(bg(blue[50])),
|
|
77
|
-
when(md)(p(8)),
|
|
78
|
-
when(dark)(bg(slate[800])),
|
|
79
|
-
)
|
|
80
|
-
```
|
|
49
|
+
import { cx, bg, rounded, p } from 'typewritingclass'
|
|
81
50
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### Chainable builder
|
|
85
|
-
|
|
86
|
-
- **`tw`** — proxy-based chainable API with access to all utilities and modifiers via a single import
|
|
87
|
-
- Property-access tokens: `tw.bg.blue500`, `tw.rounded.lg`, `tw.font.bold`
|
|
88
|
-
- Property syntax for modifiers: `tw.hover.bg.blue500`
|
|
89
|
-
- Function syntax for multi-utility modifiers: `tw.hover(tw.bg.blue500.textColor.white)`
|
|
90
|
-
- Value-less utilities as properties: `tw.flex.flexCol.relative`
|
|
91
|
-
- Arbitrary values: `tw.bg('custom-color').p(6)`
|
|
92
|
-
- Resolves to class string via `.toString()`, `.value`, `.className`, or template literals
|
|
93
|
-
|
|
94
|
-
### Composition
|
|
95
|
-
|
|
96
|
-
- **`cx(...rules)`** — compose utilities into a single class name
|
|
97
|
-
- **`when(...modifiers)(...rules)`** — apply styles conditionally
|
|
98
|
-
|
|
99
|
-
### Utilities
|
|
100
|
-
|
|
101
|
-
| Category | Functions |
|
|
102
|
-
|---|---|
|
|
103
|
-
| Spacing | `p`, `px`, `py`, `pt`, `pr`, `pb`, `pl`, `m`, `mx`, `my`, `mt`, `mr`, `mb`, `ml`, `gap`, `gapX`, `gapY` |
|
|
104
|
-
| Colors | `bg`, `textColor`, `borderColor` |
|
|
105
|
-
| Typography | `text`, `font`, `tracking`, `leading`, `textAlign` |
|
|
106
|
-
| Layout | `flex`, `flexCol`, `flexRow`, `grid`, `gridCols`, `gridRows`, `display`, `items`, `justify`, `self` |
|
|
107
|
-
| Sizing | `w`, `h`, `size`, `minW`, `minH`, `maxW`, `maxH` |
|
|
108
|
-
| Position | `relative`, `absolute`, `fixed`, `sticky`, `top`, `right`, `bottom`, `left`, `inset`, `z` |
|
|
109
|
-
| Borders | `rounded`, `roundedT`, `roundedB`, `roundedL`, `roundedR`, `border`, `borderT`, `borderR`, `borderB`, `borderL`, `ring` |
|
|
110
|
-
| Effects | `shadow`, `opacity`, `backdrop` |
|
|
111
|
-
| Interactivity | `cursor`, `select`, `pointerEvents` |
|
|
112
|
-
| Overflow | `overflow`, `overflowX`, `overflowY` |
|
|
113
|
-
|
|
114
|
-
### Modifiers
|
|
115
|
-
|
|
116
|
-
| Type | Modifiers |
|
|
117
|
-
|---|---|
|
|
118
|
-
| Pseudo-classes | `hover`, `focus`, `active`, `disabled`, `focusVisible`, `focusWithin`, `firstChild`, `lastChild` |
|
|
119
|
-
| Responsive | `sm` (640px), `md` (768px), `lg` (1024px), `xl` (1280px), `_2xl` (1536px) |
|
|
120
|
-
| Color scheme | `dark` |
|
|
121
|
-
|
|
122
|
-
### Theme tokens
|
|
123
|
-
|
|
124
|
-
```ts
|
|
125
|
-
import { blue, slate } from 'typewritingclass/theme/colors'
|
|
126
|
-
import { bold, lg } from 'typewritingclass/theme/typography'
|
|
127
|
-
import { md } from 'typewritingclass/theme/shadows'
|
|
128
|
-
import { lg as lgRadius } from 'typewritingclass/theme/borders'
|
|
51
|
+
cx(bg.blue500, rounded.lg, p(4))
|
|
52
|
+
cx(bg.blue500(25), rounded.lg, p(4))
|
|
129
53
|
```
|
|
130
54
|
|
|
131
|
-
|
|
55
|
+
## Immutable chains
|
|
132
56
|
|
|
133
57
|
```ts
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
colors: { brand: { 500: '#6366f1' } },
|
|
138
|
-
})
|
|
58
|
+
const base = tw.flex.flexCol
|
|
59
|
+
const a = base.gap(4) // base unchanged
|
|
60
|
+
const b = base.gap(8)
|
|
139
61
|
```
|
|
140
62
|
|
|
141
|
-
|
|
63
|
+
## Dynamic values
|
|
142
64
|
|
|
143
65
|
```ts
|
|
144
66
|
import { dcx, bg, p, dynamic } from 'typewritingclass'
|
|
145
67
|
|
|
146
|
-
// Wrap a runtime value with dynamic(), then compose via dcx()
|
|
147
68
|
const { className, style } = dcx(p(4), bg(dynamic(userColor)))
|
|
148
69
|
```
|
|
149
70
|
|
|
@@ -151,16 +72,12 @@ const { className, style } = dcx(p(4), bg(dynamic(userColor)))
|
|
|
151
72
|
|
|
152
73
|
| Path | Contents |
|
|
153
74
|
|---|---|
|
|
154
|
-
| `typewritingclass` | Core API (`cx`, `when`, all utilities and modifiers) |
|
|
155
|
-
| `typewritingclass/
|
|
75
|
+
| `typewritingclass` | Core API (`tw`, `cx`, `when`, all utilities and modifiers) |
|
|
76
|
+
| `typewritingclass/inject` | Runtime style injection (import once in your entry file) |
|
|
77
|
+
| `typewritingclass/preflight.css` | Optional CSS reset |
|
|
156
78
|
| `typewritingclass/theme/colors` | Color scales |
|
|
157
79
|
| `typewritingclass/theme/typography` | Font sizes, weights, line heights |
|
|
158
80
|
| `typewritingclass/theme/shadows` | Shadow presets |
|
|
159
81
|
| `typewritingclass/theme/borders` | Border radius tokens |
|
|
160
|
-
| `typewritingclass/theme/
|
|
161
|
-
| `typewritingclass/
|
|
162
|
-
| `typewritingclass/theme/filters` | Filter presets |
|
|
163
|
-
| `typewritingclass/theme/createTheme` | `createTheme()` |
|
|
164
|
-
| `typewritingclass/inject` | Runtime style injection (auto-initializing side-effect import) |
|
|
165
|
-
| `typewritingclass/runtime` | `__twcDynamic()` (internal compiler helper) |
|
|
166
|
-
| `typewritingclass/rule` | `createRule()`, `createDynamicRule()`, `wrapWithSelector()`, `wrapWithMediaQuery()` |
|
|
82
|
+
| `typewritingclass/theme/createTheme` | `createTheme()` for custom themes |
|
|
83
|
+
| `typewritingclass/rule` | `createRule()`, `wrapWithSelector()`, etc. for custom utilities |
|
package/dist/index.cjs
CHANGED
|
@@ -458,6 +458,16 @@ var textTransformTokens = {
|
|
|
458
458
|
capitalize: "capitalize",
|
|
459
459
|
none: "none"
|
|
460
460
|
};
|
|
461
|
+
var gradientDirectionTokens = {
|
|
462
|
+
toRight: "to right",
|
|
463
|
+
toLeft: "to left",
|
|
464
|
+
toTop: "to top",
|
|
465
|
+
toBottom: "to bottom",
|
|
466
|
+
toTopRight: "to top right",
|
|
467
|
+
toTopLeft: "to top left",
|
|
468
|
+
toBottomRight: "to bottom right",
|
|
469
|
+
toBottomLeft: "to bottom left"
|
|
470
|
+
};
|
|
461
471
|
var UTIL_TOKENS = {
|
|
462
472
|
// Color utilities
|
|
463
473
|
bg: { tokens: colorTokens, supportsOpacity: true },
|
|
@@ -508,7 +518,8 @@ var UTIL_TOKENS = {
|
|
|
508
518
|
self: { tokens: selfTokens },
|
|
509
519
|
textWrap: { tokens: textWrapTokens },
|
|
510
520
|
textOverflow: { tokens: textOverflowTokens },
|
|
511
|
-
textTransform: { tokens: textTransformTokens }
|
|
521
|
+
textTransform: { tokens: textTransformTokens },
|
|
522
|
+
bgGradient: { tokens: gradientDirectionTokens }
|
|
512
523
|
};
|
|
513
524
|
|
|
514
525
|
// src/utilities/colors.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StyleRule, D as DynamicResult, M as Modifier, C as ColorTokenKey, T as TextSizeTokens, F as FontWeightTokens, a as TrackingTokens, L as LeadingTokens, b as TextAlignTokens, c as FontFamilyTokens, d as TextTransformTokens, e as TextOverflowTokens, f as TextWrapTokens, g as DisplayTokens, A as AlignItemsTokens, J as JustifyTokens, h as SelfTokens, O as OverflowTokens, i as ObjectFitTokens, R as RadiusTokens, j as ShadowTokens, k as CursorTokens, l as DynamicValue } from './types-
|
|
2
|
-
export { B as Brand, m as CSSColor, n as CSSFontWeight, o as CSSLength, p as CSSShadow, q as ColorInput, r as RadiusInput, s as ShadowInput, t as SizeInput, u as SpacingInput, U as Utility, v as dynamic, w as isDynamic } from './types-
|
|
1
|
+
import { S as StyleRule, D as DynamicResult, M as Modifier, C as ColorTokenKey, T as TextSizeTokens, F as FontWeightTokens, a as TrackingTokens, L as LeadingTokens, b as TextAlignTokens, c as FontFamilyTokens, d as TextTransformTokens, e as TextOverflowTokens, f as TextWrapTokens, g as DisplayTokens, A as AlignItemsTokens, J as JustifyTokens, h as SelfTokens, O as OverflowTokens, i as ObjectFitTokens, R as RadiusTokens, j as ShadowTokens, k as CursorTokens, G as GradientDirectionTokens, l as DynamicValue } from './types-uXRYakpo.cjs';
|
|
2
|
+
export { B as Brand, m as CSSColor, n as CSSFontWeight, o as CSSLength, p as CSSShadow, q as ColorInput, r as RadiusInput, s as ShadowInput, t as SizeInput, u as SpacingInput, U as Utility, v as dynamic, w as isDynamic } from './types-uXRYakpo.cjs';
|
|
3
3
|
export { ThemeConfig, ThemeResult, ThemeVars, createTheme } from './theme/createTheme.cjs';
|
|
4
4
|
export { i as injectTheme, s as setTheme } from './inject-theme-CTzyfQH0.cjs';
|
|
5
5
|
|
|
@@ -293,6 +293,9 @@ type TwTextOverflowUtility = TwUtility & {
|
|
|
293
293
|
type TwTextTransformUtility = TwUtility & {
|
|
294
294
|
[K in keyof TextTransformTokens]: TwChainString;
|
|
295
295
|
};
|
|
296
|
+
type TwGradientDirectionUtility = TwUtility & {
|
|
297
|
+
[K in keyof GradientDirectionTokens]: TwChainString;
|
|
298
|
+
};
|
|
296
299
|
/** @internal A modifier usable as a property (`tw.hover.bg(…)`) or function (`tw.hover(tw.bg(…))`). */
|
|
297
300
|
type TwModifier = TwChainString & ((...chains: (TwChain | string)[]) => TwChainString);
|
|
298
301
|
/** @internal A parameterized modifier that requires arguments before it becomes a modifier. */
|
|
@@ -550,7 +553,7 @@ interface TwChain {
|
|
|
550
553
|
readonly bgRepeat: TwUtility;
|
|
551
554
|
readonly bgSize: TwUtility;
|
|
552
555
|
readonly bgImage: TwUtility;
|
|
553
|
-
readonly bgGradient:
|
|
556
|
+
readonly bgGradient: TwGradientDirectionUtility;
|
|
554
557
|
readonly gradientFrom: TwColorUtilityNoOpacity;
|
|
555
558
|
readonly gradientVia: TwColorUtilityNoOpacity;
|
|
556
559
|
readonly gradientTo: TwColorUtilityNoOpacity;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StyleRule, D as DynamicResult, M as Modifier, C as ColorTokenKey, T as TextSizeTokens, F as FontWeightTokens, a as TrackingTokens, L as LeadingTokens, b as TextAlignTokens, c as FontFamilyTokens, d as TextTransformTokens, e as TextOverflowTokens, f as TextWrapTokens, g as DisplayTokens, A as AlignItemsTokens, J as JustifyTokens, h as SelfTokens, O as OverflowTokens, i as ObjectFitTokens, R as RadiusTokens, j as ShadowTokens, k as CursorTokens, l as DynamicValue } from './types-
|
|
2
|
-
export { B as Brand, m as CSSColor, n as CSSFontWeight, o as CSSLength, p as CSSShadow, q as ColorInput, r as RadiusInput, s as ShadowInput, t as SizeInput, u as SpacingInput, U as Utility, v as dynamic, w as isDynamic } from './types-
|
|
1
|
+
import { S as StyleRule, D as DynamicResult, M as Modifier, C as ColorTokenKey, T as TextSizeTokens, F as FontWeightTokens, a as TrackingTokens, L as LeadingTokens, b as TextAlignTokens, c as FontFamilyTokens, d as TextTransformTokens, e as TextOverflowTokens, f as TextWrapTokens, g as DisplayTokens, A as AlignItemsTokens, J as JustifyTokens, h as SelfTokens, O as OverflowTokens, i as ObjectFitTokens, R as RadiusTokens, j as ShadowTokens, k as CursorTokens, G as GradientDirectionTokens, l as DynamicValue } from './types-uXRYakpo.js';
|
|
2
|
+
export { B as Brand, m as CSSColor, n as CSSFontWeight, o as CSSLength, p as CSSShadow, q as ColorInput, r as RadiusInput, s as ShadowInput, t as SizeInput, u as SpacingInput, U as Utility, v as dynamic, w as isDynamic } from './types-uXRYakpo.js';
|
|
3
3
|
export { ThemeConfig, ThemeResult, ThemeVars, createTheme } from './theme/createTheme.js';
|
|
4
4
|
export { i as injectTheme, s as setTheme } from './inject-theme-CTzyfQH0.js';
|
|
5
5
|
|
|
@@ -293,6 +293,9 @@ type TwTextOverflowUtility = TwUtility & {
|
|
|
293
293
|
type TwTextTransformUtility = TwUtility & {
|
|
294
294
|
[K in keyof TextTransformTokens]: TwChainString;
|
|
295
295
|
};
|
|
296
|
+
type TwGradientDirectionUtility = TwUtility & {
|
|
297
|
+
[K in keyof GradientDirectionTokens]: TwChainString;
|
|
298
|
+
};
|
|
296
299
|
/** @internal A modifier usable as a property (`tw.hover.bg(…)`) or function (`tw.hover(tw.bg(…))`). */
|
|
297
300
|
type TwModifier = TwChainString & ((...chains: (TwChain | string)[]) => TwChainString);
|
|
298
301
|
/** @internal A parameterized modifier that requires arguments before it becomes a modifier. */
|
|
@@ -550,7 +553,7 @@ interface TwChain {
|
|
|
550
553
|
readonly bgRepeat: TwUtility;
|
|
551
554
|
readonly bgSize: TwUtility;
|
|
552
555
|
readonly bgImage: TwUtility;
|
|
553
|
-
readonly bgGradient:
|
|
556
|
+
readonly bgGradient: TwGradientDirectionUtility;
|
|
554
557
|
readonly gradientFrom: TwColorUtilityNoOpacity;
|
|
555
558
|
readonly gradientVia: TwColorUtilityNoOpacity;
|
|
556
559
|
readonly gradientTo: TwColorUtilityNoOpacity;
|
package/dist/index.js
CHANGED
|
@@ -458,6 +458,16 @@ var textTransformTokens = {
|
|
|
458
458
|
capitalize: "capitalize",
|
|
459
459
|
none: "none"
|
|
460
460
|
};
|
|
461
|
+
var gradientDirectionTokens = {
|
|
462
|
+
toRight: "to right",
|
|
463
|
+
toLeft: "to left",
|
|
464
|
+
toTop: "to top",
|
|
465
|
+
toBottom: "to bottom",
|
|
466
|
+
toTopRight: "to top right",
|
|
467
|
+
toTopLeft: "to top left",
|
|
468
|
+
toBottomRight: "to bottom right",
|
|
469
|
+
toBottomLeft: "to bottom left"
|
|
470
|
+
};
|
|
461
471
|
var UTIL_TOKENS = {
|
|
462
472
|
// Color utilities
|
|
463
473
|
bg: { tokens: colorTokens, supportsOpacity: true },
|
|
@@ -508,7 +518,8 @@ var UTIL_TOKENS = {
|
|
|
508
518
|
self: { tokens: selfTokens },
|
|
509
519
|
textWrap: { tokens: textWrapTokens },
|
|
510
520
|
textOverflow: { tokens: textOverflowTokens },
|
|
511
|
-
textTransform: { tokens: textTransformTokens }
|
|
521
|
+
textTransform: { tokens: textTransformTokens },
|
|
522
|
+
bgGradient: { tokens: gradientDirectionTokens }
|
|
512
523
|
};
|
|
513
524
|
|
|
514
525
|
// src/utilities/colors.ts
|
package/dist/rule.d.cts
CHANGED
package/dist/rule.d.ts
CHANGED
package/dist/runtime.d.cts
CHANGED
package/dist/runtime.d.ts
CHANGED
|
@@ -346,6 +346,16 @@ interface TextTransformTokens {
|
|
|
346
346
|
capitalize: string;
|
|
347
347
|
none: string;
|
|
348
348
|
}
|
|
349
|
+
interface GradientDirectionTokens {
|
|
350
|
+
toRight: string;
|
|
351
|
+
toLeft: string;
|
|
352
|
+
toTop: string;
|
|
353
|
+
toBottom: string;
|
|
354
|
+
toTopRight: string;
|
|
355
|
+
toTopLeft: string;
|
|
356
|
+
toBottomRight: string;
|
|
357
|
+
toBottomLeft: string;
|
|
358
|
+
}
|
|
349
359
|
/**
|
|
350
360
|
* A self-contained CSS rule produced by utility functions or modifier
|
|
351
361
|
* composition.
|
|
@@ -512,4 +522,4 @@ interface DynamicResult {
|
|
|
512
522
|
style: Record<string, string>;
|
|
513
523
|
}
|
|
514
524
|
|
|
515
|
-
export { type AlignItemsTokens as A, type Brand as B, type ColorTokenKey as C, type DynamicResult as D, type FontWeightTokens as F, type JustifyTokens as J, type LeadingTokens as L, type Modifier as M, type OverflowTokens as O, type RadiusTokens as R, type StyleRule as S, type TextSizeTokens as T, type Utility as U, type TrackingTokens as a, type TextAlignTokens as b, type FontFamilyTokens as c, type TextTransformTokens as d, type TextOverflowTokens as e, type TextWrapTokens as f, type DisplayTokens as g, type SelfTokens as h, type ObjectFitTokens as i, type ShadowTokens as j, type CursorTokens as k, type DynamicValue as l, type CSSColor as m, type CSSFontWeight as n, type CSSLength as o, type CSSShadow as p, type ColorInput as q, type RadiusInput as r, type ShadowInput as s, type SizeInput as t, type SpacingInput as u, dynamic as v, isDynamic as w };
|
|
525
|
+
export { type AlignItemsTokens as A, type Brand as B, type ColorTokenKey as C, type DynamicResult as D, type FontWeightTokens as F, type GradientDirectionTokens as G, type JustifyTokens as J, type LeadingTokens as L, type Modifier as M, type OverflowTokens as O, type RadiusTokens as R, type StyleRule as S, type TextSizeTokens as T, type Utility as U, type TrackingTokens as a, type TextAlignTokens as b, type FontFamilyTokens as c, type TextTransformTokens as d, type TextOverflowTokens as e, type TextWrapTokens as f, type DisplayTokens as g, type SelfTokens as h, type ObjectFitTokens as i, type ShadowTokens as j, type CursorTokens as k, type DynamicValue as l, type CSSColor as m, type CSSFontWeight as n, type CSSLength as o, type CSSShadow as p, type ColorInput as q, type RadiusInput as r, type ShadowInput as s, type SizeInput as t, type SpacingInput as u, dynamic as v, isDynamic as w };
|
|
@@ -346,6 +346,16 @@ interface TextTransformTokens {
|
|
|
346
346
|
capitalize: string;
|
|
347
347
|
none: string;
|
|
348
348
|
}
|
|
349
|
+
interface GradientDirectionTokens {
|
|
350
|
+
toRight: string;
|
|
351
|
+
toLeft: string;
|
|
352
|
+
toTop: string;
|
|
353
|
+
toBottom: string;
|
|
354
|
+
toTopRight: string;
|
|
355
|
+
toTopLeft: string;
|
|
356
|
+
toBottomRight: string;
|
|
357
|
+
toBottomLeft: string;
|
|
358
|
+
}
|
|
349
359
|
/**
|
|
350
360
|
* A self-contained CSS rule produced by utility functions or modifier
|
|
351
361
|
* composition.
|
|
@@ -512,4 +522,4 @@ interface DynamicResult {
|
|
|
512
522
|
style: Record<string, string>;
|
|
513
523
|
}
|
|
514
524
|
|
|
515
|
-
export { type AlignItemsTokens as A, type Brand as B, type ColorTokenKey as C, type DynamicResult as D, type FontWeightTokens as F, type JustifyTokens as J, type LeadingTokens as L, type Modifier as M, type OverflowTokens as O, type RadiusTokens as R, type StyleRule as S, type TextSizeTokens as T, type Utility as U, type TrackingTokens as a, type TextAlignTokens as b, type FontFamilyTokens as c, type TextTransformTokens as d, type TextOverflowTokens as e, type TextWrapTokens as f, type DisplayTokens as g, type SelfTokens as h, type ObjectFitTokens as i, type ShadowTokens as j, type CursorTokens as k, type DynamicValue as l, type CSSColor as m, type CSSFontWeight as n, type CSSLength as o, type CSSShadow as p, type ColorInput as q, type RadiusInput as r, type ShadowInput as s, type SizeInput as t, type SpacingInput as u, dynamic as v, isDynamic as w };
|
|
525
|
+
export { type AlignItemsTokens as A, type Brand as B, type ColorTokenKey as C, type DynamicResult as D, type FontWeightTokens as F, type GradientDirectionTokens as G, type JustifyTokens as J, type LeadingTokens as L, type Modifier as M, type OverflowTokens as O, type RadiusTokens as R, type StyleRule as S, type TextSizeTokens as T, type Utility as U, type TrackingTokens as a, type TextAlignTokens as b, type FontFamilyTokens as c, type TextTransformTokens as d, type TextOverflowTokens as e, type TextWrapTokens as f, type DisplayTokens as g, type SelfTokens as h, type ObjectFitTokens as i, type ShadowTokens as j, type CursorTokens as k, type DynamicValue as l, type CSSColor as m, type CSSFontWeight as n, type CSSLength as o, type CSSShadow as p, type ColorInput as q, type RadiusInput as r, type ShadowInput as s, type SizeInput as t, type SpacingInput as u, dynamic as v, isDynamic as w };
|
package/package.json
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typewritingclass",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
|
+
"description": "CSS-in-TypeScript with full autocomplete and type checking",
|
|
5
|
+
"license": "MIT",
|
|
4
6
|
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"css",
|
|
9
|
+
"css-in-ts",
|
|
10
|
+
"css-in-js",
|
|
11
|
+
"typescript",
|
|
12
|
+
"styling",
|
|
13
|
+
"tailwind",
|
|
14
|
+
"utility-css",
|
|
15
|
+
"autocomplete"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://github.com/corysimmons/typewritingclass",
|
|
18
|
+
"bugs": "https://github.com/corysimmons/typewritingclass/issues",
|
|
19
|
+
"sideEffects": false,
|
|
5
20
|
"repository": {
|
|
6
21
|
"type": "git",
|
|
7
22
|
"url": "https://github.com/corysimmons/typewritingclass",
|