@arbor-css/core 0.0.1 → 0.0.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/dist/config.d.ts +3 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +2 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/runtime/components/SystemDemo.js +1 -1
- package/dist/runtime/components/SystemDemo.js.map +1 -1
- package/dist/runtime/readProperties.js +1 -1
- package/dist/runtime/readProperties.js.map +1 -1
- package/dist/stylesheet/generateStylesheet.d.ts +2 -1
- package/dist/stylesheet/generateStylesheet.d.ts.map +1 -1
- package/dist/stylesheet/generateStylesheet.js +3 -15
- package/dist/stylesheet/generateStylesheet.js.map +1 -1
- package/package.json +14 -8
- package/dist/arborPreset.d.ts +0 -344
- package/dist/arborPreset.d.ts.map +0 -1
- package/dist/arborPreset.js +0 -198
- package/dist/arborPreset.js.map +0 -1
- package/dist/primitives/labelProps.d.ts +0 -1
- package/dist/primitives/labelProps.d.ts.map +0 -1
- package/dist/primitives/labelProps.js +0 -2
- package/dist/primitives/labelProps.js.map +0 -1
- package/dist/primitives/localProps.d.ts +0 -1
- package/dist/primitives/localProps.d.ts.map +0 -1
- package/dist/primitives/localProps.js +0 -2
- package/dist/primitives/localProps.js.map +0 -1
- package/dist/primitives/primitives.d.ts +0 -46
- package/dist/primitives/primitives.d.ts.map +0 -1
- package/dist/primitives/primitives.js +0 -75
- package/dist/primitives/primitives.js.map +0 -1
- package/dist/primitives/systemProps.d.ts +0 -329
- package/dist/primitives/systemProps.d.ts.map +0 -1
- package/dist/primitives/systemProps.js +0 -45
- package/dist/primitives/systemProps.js.map +0 -1
- package/dist/runtime/components/ColorRange.d.ts +0 -2
- package/dist/runtime/components/ColorRange.d.ts.map +0 -1
- package/dist/runtime/components/ColorRange.js +0 -52
- package/dist/runtime/components/ColorRange.js.map +0 -1
- package/dist/runtime/components/ModeTokenValues.d.ts +0 -2
- package/dist/runtime/components/ModeTokenValues.d.ts.map +0 -1
- package/dist/runtime/components/ModeTokenValues.js +0 -2
- package/dist/runtime/components/ModeTokenValues.js.map +0 -1
- package/dist/runtime/components/PrimitiveTokenValues.d.ts +0 -2
- package/dist/runtime/components/PrimitiveTokenValues.d.ts.map +0 -1
- package/dist/runtime/components/PrimitiveTokenValues.js +0 -82
- package/dist/runtime/components/PrimitiveTokenValues.js.map +0 -1
- package/dist/runtime/components/Shadows.d.ts +0 -2
- package/dist/runtime/components/Shadows.d.ts.map +0 -1
- package/dist/runtime/components/Shadows.js +0 -27
- package/dist/runtime/components/Shadows.js.map +0 -1
- package/dist/runtime/components/Spacing.d.ts +0 -2
- package/dist/runtime/components/Spacing.d.ts.map +0 -1
- package/dist/runtime/components/Spacing.js +0 -27
- package/dist/runtime/components/Spacing.js.map +0 -1
- package/dist/runtime/components/Typography.d.ts +0 -2
- package/dist/runtime/components/Typography.d.ts.map +0 -1
- package/dist/runtime/components/Typography.js +0 -30
- package/dist/runtime/components/Typography.js.map +0 -1
- package/dist/util/convertStructure.d.ts +0 -8
- package/dist/util/convertStructure.d.ts.map +0 -1
- package/dist/util/convertStructure.js +0 -30
- package/dist/util/convertStructure.js.map +0 -1
- package/dist/util/tokenifyColors.d.ts +0 -6
- package/dist/util/tokenifyColors.d.ts.map +0 -1
- package/dist/util/tokenifyColors.js +0 -10
- package/dist/util/tokenifyColors.js.map +0 -1
- package/dist/util/tokenifyColors.test.d.ts +0 -2
- package/dist/util/tokenifyColors.test.d.ts.map +0 -1
- package/dist/util/tokenifyColors.test.js +0 -25
- package/dist/util/tokenifyColors.test.js.map +0 -1
package/dist/arborPreset.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { $globalProps } from '@arbor-css/globals';
|
|
2
|
-
import { createModeSchema, derive, } from '@arbor-css/modes';
|
|
3
|
-
const colorIntents = {
|
|
4
|
-
fg: 'color',
|
|
5
|
-
bg: 'color',
|
|
6
|
-
border: 'color',
|
|
7
|
-
};
|
|
8
|
-
const textIntents = {
|
|
9
|
-
size: 'font-size',
|
|
10
|
-
weight: 'font-weight',
|
|
11
|
-
lineHeight: 'line-height',
|
|
12
|
-
font: 'other',
|
|
13
|
-
};
|
|
14
|
-
const shadowIntents = {
|
|
15
|
-
x: 'shadow-x',
|
|
16
|
-
y: 'shadow-y',
|
|
17
|
-
blur: 'shadow-blur',
|
|
18
|
-
spread: 'shadow-spread',
|
|
19
|
-
color: 'shadow-color',
|
|
20
|
-
compiled: 'shadow',
|
|
21
|
-
};
|
|
22
|
-
export const arborModeSchema = createModeSchema({
|
|
23
|
-
colors: {
|
|
24
|
-
main: {
|
|
25
|
-
paper: 'color',
|
|
26
|
-
wash: 'color',
|
|
27
|
-
lighter: 'color',
|
|
28
|
-
light: 'color',
|
|
29
|
-
mid: 'color',
|
|
30
|
-
heavy: 'color',
|
|
31
|
-
heavier: 'color',
|
|
32
|
-
ink: 'color',
|
|
33
|
-
},
|
|
34
|
-
neutral: {
|
|
35
|
-
paper: 'color',
|
|
36
|
-
wash: 'color',
|
|
37
|
-
lighter: 'color',
|
|
38
|
-
light: 'color',
|
|
39
|
-
mid: 'color',
|
|
40
|
-
heavy: 'color',
|
|
41
|
-
heavier: 'color',
|
|
42
|
-
ink: 'color',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
// intents
|
|
46
|
-
action: {
|
|
47
|
-
primary: colorIntents,
|
|
48
|
-
secondary: colorIntents,
|
|
49
|
-
ambient: colorIntents,
|
|
50
|
-
},
|
|
51
|
-
control: colorIntents,
|
|
52
|
-
surface: {
|
|
53
|
-
primary: colorIntents,
|
|
54
|
-
secondary: colorIntents,
|
|
55
|
-
ambient: colorIntents,
|
|
56
|
-
},
|
|
57
|
-
text: {
|
|
58
|
-
primary: textIntents,
|
|
59
|
-
secondary: textIntents,
|
|
60
|
-
ambient: textIntents,
|
|
61
|
-
},
|
|
62
|
-
// density
|
|
63
|
-
density: 'other',
|
|
64
|
-
spacing: {
|
|
65
|
-
xs: 'spacing',
|
|
66
|
-
sm: 'spacing',
|
|
67
|
-
md: 'spacing',
|
|
68
|
-
lg: 'spacing',
|
|
69
|
-
xl: 'spacing',
|
|
70
|
-
},
|
|
71
|
-
// other cosmetics
|
|
72
|
-
borderWidth: {
|
|
73
|
-
sm: 'border-width',
|
|
74
|
-
md: 'border-width',
|
|
75
|
-
lg: 'border-width',
|
|
76
|
-
},
|
|
77
|
-
borderRadius: {
|
|
78
|
-
sm: 'border-radius',
|
|
79
|
-
md: 'border-radius',
|
|
80
|
-
lg: 'border-radius',
|
|
81
|
-
},
|
|
82
|
-
shadow: {
|
|
83
|
-
color: 'color',
|
|
84
|
-
sm: shadowIntents,
|
|
85
|
-
md: shadowIntents,
|
|
86
|
-
lg: shadowIntents,
|
|
87
|
-
xl: shadowIntents,
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
function createShadowIntentLevel(primitives, size) {
|
|
91
|
-
return {
|
|
92
|
-
x: derive `${primitives.$tokens.shadows[size].x}`,
|
|
93
|
-
y: derive `${primitives.$tokens.shadows[size].y}`,
|
|
94
|
-
blur: derive `${primitives.$tokens.shadows[size].blur}`,
|
|
95
|
-
spread: derive `${primitives.$tokens.shadows[size].spread}`,
|
|
96
|
-
color: derive `${{
|
|
97
|
-
value: arborModeSchema.$tokens.shadow.color,
|
|
98
|
-
fallback: primitives.$tokens.shadows[size].color,
|
|
99
|
-
}}`,
|
|
100
|
-
compiled: derive `${arborModeSchema.$tokens.shadow[size].x} ${arborModeSchema.$tokens.shadow[size].y} ${arborModeSchema.$tokens.shadow[size].blur} ${arborModeSchema.$tokens.shadow[size].spread} ${arborModeSchema.$tokens.shadow[size].color}`,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export function createArborModeValues(config) {
|
|
104
|
-
// FIXME: user-facing typing for this is good, but internally something is
|
|
105
|
-
// broken...
|
|
106
|
-
const mainColor = config.primitives.$tokens.colors[config.mainColor];
|
|
107
|
-
return {
|
|
108
|
-
colors: {
|
|
109
|
-
main: mainColor,
|
|
110
|
-
neutral: mainColor.$neutral,
|
|
111
|
-
},
|
|
112
|
-
surface: {
|
|
113
|
-
primary: {
|
|
114
|
-
bg: derive `${arborModeSchema.$tokens.colors.main.lighter}`,
|
|
115
|
-
fg: derive `${arborModeSchema.$tokens.colors.main.ink}`,
|
|
116
|
-
border: derive `${arborModeSchema.$tokens.colors.main.heavy}`,
|
|
117
|
-
},
|
|
118
|
-
secondary: {
|
|
119
|
-
bg: derive `${arborModeSchema.$tokens.colors.main.wash}`,
|
|
120
|
-
fg: derive `${arborModeSchema.$tokens.colors.neutral.ink}`,
|
|
121
|
-
border: derive `${arborModeSchema.$tokens.colors.main.ink}`,
|
|
122
|
-
},
|
|
123
|
-
ambient: {
|
|
124
|
-
bg: derive `${arborModeSchema.$tokens.colors.neutral.paper}`,
|
|
125
|
-
fg: derive `${arborModeSchema.$tokens.colors.neutral.ink}`,
|
|
126
|
-
border: derive `${arborModeSchema.$tokens.colors.neutral.heavy}`,
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
action: {
|
|
130
|
-
primary: {
|
|
131
|
-
bg: derive `${arborModeSchema.$tokens.colors.main.mid}`,
|
|
132
|
-
fg: derive `${arborModeSchema.$tokens.colors.main.ink}`,
|
|
133
|
-
border: derive `${arborModeSchema.$tokens.colors.main.heavy}`,
|
|
134
|
-
},
|
|
135
|
-
secondary: {
|
|
136
|
-
bg: derive `${arborModeSchema.$tokens.colors.neutral.wash}`,
|
|
137
|
-
fg: derive `${arborModeSchema.$tokens.colors.neutral.heavier}`,
|
|
138
|
-
border: derive `${arborModeSchema.$tokens.colors.neutral.heavy}`,
|
|
139
|
-
},
|
|
140
|
-
ambient: {
|
|
141
|
-
bg: derive `${arborModeSchema.$tokens.colors.main.lighter}`,
|
|
142
|
-
fg: derive `${arborModeSchema.$tokens.colors.main.ink}`,
|
|
143
|
-
border: 'transparent',
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
control: {
|
|
147
|
-
bg: derive `${arborModeSchema.$tokens.colors.neutral.paper}`,
|
|
148
|
-
fg: derive `${arborModeSchema.$tokens.colors.neutral.ink}`,
|
|
149
|
-
border: derive `${arborModeSchema.$tokens.colors.neutral.heavy}`,
|
|
150
|
-
},
|
|
151
|
-
density: 1,
|
|
152
|
-
spacing: {
|
|
153
|
-
xs: derive `calc(${config.primitives.$tokens.spacing.xs} / ${arborModeSchema.$tokens.density})`,
|
|
154
|
-
sm: derive `calc(${config.primitives.$tokens.spacing.sm} / ${arborModeSchema.$tokens.density})`,
|
|
155
|
-
md: derive `calc(${config.primitives.$tokens.spacing.md} / ${arborModeSchema.$tokens.density})`,
|
|
156
|
-
lg: derive `calc(${config.primitives.$tokens.spacing.lg} / ${arborModeSchema.$tokens.density})`,
|
|
157
|
-
xl: derive `calc(${config.primitives.$tokens.spacing.xl} / ${arborModeSchema.$tokens.density})`,
|
|
158
|
-
},
|
|
159
|
-
text: {
|
|
160
|
-
primary: {
|
|
161
|
-
size: derive `calc(${config.primitives.$tokens.typography['3xl'].size} / ${arborModeSchema.$tokens.density})`,
|
|
162
|
-
weight: config.primitives.$tokens.typography['3xl'].weight,
|
|
163
|
-
lineHeight: config.primitives.$tokens.typography['3xl'].lineHeight,
|
|
164
|
-
font: 'sans-serif',
|
|
165
|
-
},
|
|
166
|
-
secondary: {
|
|
167
|
-
size: derive `calc(${config.primitives.$tokens.typography.md.size} / ${arborModeSchema.$tokens.density})`,
|
|
168
|
-
weight: config.primitives.$tokens.typography.md.weight,
|
|
169
|
-
lineHeight: config.primitives.$tokens.typography.md.lineHeight,
|
|
170
|
-
font: 'sans-serif',
|
|
171
|
-
},
|
|
172
|
-
ambient: {
|
|
173
|
-
size: derive `calc(${config.primitives.$tokens.typography.sm.size} / ${arborModeSchema.$tokens.density})`,
|
|
174
|
-
weight: config.primitives.$tokens.typography.sm.weight,
|
|
175
|
-
lineHeight: config.primitives.$tokens.typography.sm.lineHeight,
|
|
176
|
-
font: 'sans-serif',
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
borderRadius: {
|
|
180
|
-
sm: derive `calc(${$globalProps.roundness} * ${config.primitives.$tokens.spacing.md} / ${arborModeSchema.$tokens.density})`,
|
|
181
|
-
md: derive `calc(${$globalProps.roundness} * ${config.primitives.$tokens.spacing.lg} / ${arborModeSchema.$tokens.density})`,
|
|
182
|
-
lg: derive `calc(${$globalProps.roundness} * ${config.primitives.$tokens.spacing.xl} / ${arborModeSchema.$tokens.density})`,
|
|
183
|
-
},
|
|
184
|
-
borderWidth: {
|
|
185
|
-
sm: '1',
|
|
186
|
-
md: '1',
|
|
187
|
-
lg: '2',
|
|
188
|
-
},
|
|
189
|
-
shadow: {
|
|
190
|
-
color: derive `${arborModeSchema.$tokens.colors.neutral.heavier}`,
|
|
191
|
-
sm: createShadowIntentLevel(config.primitives, 'sm'),
|
|
192
|
-
md: createShadowIntentLevel(config.primitives, 'md'),
|
|
193
|
-
lg: createShadowIntentLevel(config.primitives, 'lg'),
|
|
194
|
-
xl: createShadowIntentLevel(config.primitives, 'xl'),
|
|
195
|
-
},
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
//# sourceMappingURL=arborPreset.js.map
|
package/dist/arborPreset.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arborPreset.js","sourceRoot":"","sources":["../src/arborPreset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACN,gBAAgB,EAChB,MAAM,GAGN,MAAM,kBAAkB,CAAC;AAG1B,MAAM,YAAY,GAAG;IACpB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,MAAM,EAAE,OAAO;CACW,CAAC;AAE5B,MAAM,WAAW,GAAG;IACnB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,UAAU,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AO,CAAC,OAAO,GAAG;SAC1H;QACD,WAAW,EAAE;YACZ,EAAE,EAAE,GAAG;YACP,EAAE,EAAE,GAAG;YACP,EAAE,EAAE,GAAG;SACP;QACD,MAAM,EAAE;YACP,KAAK,EAAE,MAAM,CAAA,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE;YAChE,EAAE,EAAE,uBAAuB,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC;YACpD,EAAE,EAAE,uBAAuB,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC;YACpD,EAAE,EAAE,uBAAuB,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC;YACpD,EAAE,EAAE,uBAAuB,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC;SACpD;KAC4D,CAAC;AAChE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=labelProps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labelProps.d.ts","sourceRoot":"","sources":["../../src/primitives/labelProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labelProps.js","sourceRoot":"","sources":["../../src/primitives/labelProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=localProps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localProps.d.ts","sourceRoot":"","sources":["../../src/primitives/localProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localProps.js","sourceRoot":"","sources":["../../src/primitives/localProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ColorRangeItem, CompiledColors } from '@arbor-css/colors';
|
|
2
|
-
import { GlobalConfig } from '@arbor-css/globals';
|
|
3
|
-
import { CompiledShadows } from '@arbor-css/shadows';
|
|
4
|
-
import { CompiledSpacing } from '@arbor-css/spacing';
|
|
5
|
-
import { Token, TokenSchema } from '@arbor-css/tokens';
|
|
6
|
-
import { CompiledTypography } from '@arbor-css/typography';
|
|
7
|
-
export declare const defaultDefaultScheme = "light";
|
|
8
|
-
export interface PrimitivesConfig<TCompiledColors extends CompiledColors<any, any>, TCompiledTypography extends CompiledTypography<any>, TCompiledSpacing extends CompiledSpacing<any>, TCompiledShadows extends CompiledShadows<any>, TOtherTokens extends TokenSchema = TokenSchema> {
|
|
9
|
-
colors: TCompiledColors;
|
|
10
|
-
typography: TCompiledTypography;
|
|
11
|
-
spacing: TCompiledSpacing;
|
|
12
|
-
shadows: TCompiledShadows;
|
|
13
|
-
misc?: TOtherTokens;
|
|
14
|
-
defaultScheme?: keyof TCompiledColors;
|
|
15
|
-
schemeTags?: Record<string, string>;
|
|
16
|
-
globals?: Partial<GlobalConfig>;
|
|
17
|
-
}
|
|
18
|
-
type LiteralsToTokens<T extends Record<string, any>> = {
|
|
19
|
-
[K in keyof T]: T[K] extends string | number ? Token : T[K] extends Record<string, any> ? LiteralsToTokens<T[K]> : never;
|
|
20
|
-
};
|
|
21
|
-
export interface PrimitivesColorScheme {
|
|
22
|
-
[Color: string]: ColorRangeItem[];
|
|
23
|
-
}
|
|
24
|
-
export type Primitives<TCompiledColors extends CompiledColors<any, any> = CompiledColors<any, any>, TCompiledTypography extends CompiledTypography = CompiledTypography, TCompiledSpacing extends CompiledSpacing = CompiledSpacing, TCompiledShadows extends CompiledShadows = CompiledShadows, TOtherTokens extends TokenSchema = TokenSchema> = {
|
|
25
|
-
/**
|
|
26
|
-
* A map of color values, keyed by scheme name.
|
|
27
|
-
* Each entry is the same structure: a record of color name keys
|
|
28
|
-
* and string values which represent CSS colors.
|
|
29
|
-
*/
|
|
30
|
-
colors: TCompiledColors;
|
|
31
|
-
typography: TCompiledTypography;
|
|
32
|
-
spacing: TCompiledSpacing;
|
|
33
|
-
shadows: TCompiledShadows;
|
|
34
|
-
defaultScheme: keyof TCompiledColors;
|
|
35
|
-
schemeTags: Record<string, string>;
|
|
36
|
-
globals: GlobalConfig;
|
|
37
|
-
$tokens: {
|
|
38
|
-
colors: LiteralsToTokens<TCompiledColors[keyof TCompiledColors]['colors']>;
|
|
39
|
-
typography: LiteralsToTokens<TCompiledTypography['levels']>;
|
|
40
|
-
spacing: LiteralsToTokens<TCompiledSpacing['levels']>;
|
|
41
|
-
shadows: LiteralsToTokens<TCompiledShadows['levels']>;
|
|
42
|
-
} & TOtherTokens;
|
|
43
|
-
};
|
|
44
|
-
export declare function createPrimitives<TCompiledColors extends CompiledColors<any, any>, TCompiledTypography extends CompiledTypography, TCompiledSpacing extends CompiledSpacing, TCompiledShadows extends CompiledShadows, TOtherTokens extends TokenSchema>(config: PrimitivesConfig<TCompiledColors, TCompiledTypography, TCompiledSpacing, TCompiledShadows, TOtherTokens>): Primitives<TCompiledColors, TCompiledTypography, TCompiledSpacing, TCompiledShadows, TOtherTokens>;
|
|
45
|
-
export {};
|
|
46
|
-
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/primitives/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAkB,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAe,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAqB,MAAM,uBAAuB,CAAC;AAG9E,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C,MAAM,WAAW,gBAAgB,CAChC,eAAe,SAAS,cAAc,CAAC,GA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;;OAIG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,mBAAmB,CAAC;IAChC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,aAAa,EAAE,MAAM,eAAe,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE;QACR,MAAM,EAAE,gBAAgB,CAAC,eAAe,CAAC,MAAM,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3E,UAAU,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC5D,OAAO,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;QACtD,OAAO,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;KACtD,GAAG,YAAY,CAAC;CACjB,CAAC;AAEF,wBAAgB,gBAAgB,CAC/B,eAAe,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,EAChD,mBAAmB,SAAS,kBAAkB,EAC9C,gBAAgB,SAAS,eAAe,EACxC,gBAAgB,SAAS,eAAe,EACxC,YAAY,SAAS,WAAW,EAEhC,MAAM,EAAE,gBAAgB,CACvB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,CACZ,GACC,UAAU,CACZ,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,CACZ,CAgGA"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defaultGlobals } from '@arbor-css/globals';
|
|
2
|
-
import { createToken } from '@arbor-css/tokens';
|
|
3
|
-
import { isTypographyLevel } from '@arbor-css/typography';
|
|
4
|
-
import { convertStructure } from '../util/convertStructure.js';
|
|
5
|
-
export const defaultDefaultScheme = 'light';
|
|
6
|
-
export function createPrimitives(config) {
|
|
7
|
-
const { colors, defaultScheme, globals: userGlobals } = config;
|
|
8
|
-
const arbitraryScheme = Object.values(colors)[0];
|
|
9
|
-
if (!arbitraryScheme) {
|
|
10
|
-
throw new Error('At least one color scheme must be defined in primitives');
|
|
11
|
-
}
|
|
12
|
-
// TODO: validate all scheme shapes are the same...
|
|
13
|
-
const $colorProps = convertStructure(arbitraryScheme.colors, (item) => typeof item === 'string', (_, path) => createToken(path.join('-'), {
|
|
14
|
-
type: 'color',
|
|
15
|
-
purpose: 'color',
|
|
16
|
-
group: path.slice(0, -1).join('-'),
|
|
17
|
-
tag: '🎨',
|
|
18
|
-
}));
|
|
19
|
-
const $typographyProps = convertStructure(config.typography.levels, isTypographyLevel, (_, path) => ({
|
|
20
|
-
size: createToken(`typography-${path.join('-')}-size`, {
|
|
21
|
-
type: 'length',
|
|
22
|
-
purpose: 'font-size',
|
|
23
|
-
group: path.join('-'),
|
|
24
|
-
tag: '🅰️',
|
|
25
|
-
}),
|
|
26
|
-
weight: createToken(`typography-${path.join('-')}-weight`, {
|
|
27
|
-
type: '*',
|
|
28
|
-
purpose: 'font-weight',
|
|
29
|
-
group: path.join('-'),
|
|
30
|
-
tag: '🅰️',
|
|
31
|
-
}),
|
|
32
|
-
lineHeight: createToken(`typography-${path.join('-')}-line-height`, {
|
|
33
|
-
type: '*',
|
|
34
|
-
purpose: 'line-height',
|
|
35
|
-
group: path.join('-'),
|
|
36
|
-
tag: '🅰️',
|
|
37
|
-
}),
|
|
38
|
-
}));
|
|
39
|
-
const $spacingProps = convertStructure(config.spacing.levels, (value) => typeof value === 'string' || typeof value === 'number', (_, path) => createToken(`spacing-${path.join('-')}`, {
|
|
40
|
-
type: 'length',
|
|
41
|
-
purpose: 'spacing',
|
|
42
|
-
tag: 's',
|
|
43
|
-
}));
|
|
44
|
-
const $shadowProps = convertStructure(config.shadows.levels, (value) => typeof value === 'string' || typeof value === 'number', (_, path) => createToken(`shadow-${path.join('-')}`, {
|
|
45
|
-
type: '*',
|
|
46
|
-
purpose: 'shadow',
|
|
47
|
-
tag: '🌫️',
|
|
48
|
-
}));
|
|
49
|
-
const globals = {
|
|
50
|
-
...defaultGlobals,
|
|
51
|
-
...userGlobals,
|
|
52
|
-
};
|
|
53
|
-
const schemeTags = {
|
|
54
|
-
light: '☀️',
|
|
55
|
-
dark: '🌑',
|
|
56
|
-
...config.schemeTags,
|
|
57
|
-
};
|
|
58
|
-
return {
|
|
59
|
-
defaultScheme: defaultScheme ?? defaultDefaultScheme,
|
|
60
|
-
schemeTags,
|
|
61
|
-
globals,
|
|
62
|
-
colors,
|
|
63
|
-
typography: config.typography,
|
|
64
|
-
spacing: config.spacing,
|
|
65
|
-
shadows: config.shadows,
|
|
66
|
-
$tokens: {
|
|
67
|
-
...(config.misc ?? {}),
|
|
68
|
-
colors: $colorProps,
|
|
69
|
-
typography: $typographyProps,
|
|
70
|
-
spacing: $spacingProps,
|
|
71
|
-
shadows: $shadowProps,
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=primitives.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../src/primitives/primitives.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAgB,MAAM,oBAAoB,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAsB,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAsB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAwD5C,MAAM,UAAU,gBAAgB,CAO/B,MAMC;IAQD,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAE/D,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM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