@yunlefun/ui 0.0.6 → 0.1.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.
- package/dist/adapters/nuxt-ui.css +1 -0
- package/dist/adapters/shadcn.css +1 -0
- package/dist/adapters/tdesign.css +1 -0
- package/dist/admin.css +1 -0
- package/dist/compat.css +1 -0
- package/dist/editor.css +1 -0
- package/dist/fonts.css +1 -0
- package/dist/index.css +1 -1
- package/dist/patterns.css +1 -1
- package/dist/tokens.css +1 -0
- package/dist/tokens.json +1337 -0
- package/package.json +57 -7
- package/styles/adapters/nuxt-ui.css +36 -0
- package/styles/adapters/shadcn.css +38 -0
- package/styles/adapters/tdesign.css +160 -0
- package/styles/admin.css +245 -0
- package/styles/compat.css +48 -0
- package/styles/css-vars.scss +428 -319
- package/styles/css.d.ts +2 -0
- package/styles/editor.css +259 -0
- package/styles/tokens.css +403 -0
- package/tokens/index.d.ts +69 -0
- package/tokens/index.mjs +73 -0
- package/tokens/source.mjs +703 -0
- package/unocss.d.ts +17 -0
- package/unocss.mjs +149 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export type YlfAccentTone = 'blue' | 'sun' | 'cyan' | 'coral' | 'pink' | 'green'
|
|
2
|
+
export type YlfStatus = 'success' | 'warning' | 'danger' | 'info'
|
|
3
|
+
export type YlfProfile = 'consumer' | 'admin' | 'editor'
|
|
4
|
+
export type YlfCloudShape = 'billow' | 'heap' | 'bank' | 'puff' | 'wisp'
|
|
5
|
+
|
|
6
|
+
export declare const ylfPalette: Readonly<Record<YlfAccentTone, string>>
|
|
7
|
+
export declare const ylfAccentTones: readonly YlfAccentTone[]
|
|
8
|
+
export declare const ylfStatuses: readonly YlfStatus[]
|
|
9
|
+
export declare const ylfProfiles: readonly YlfProfile[]
|
|
10
|
+
export declare const ylfCloudShapes: readonly YlfCloudShape[]
|
|
11
|
+
export declare const ylfCloudSilhouettes: Readonly<Record<YlfCloudShape, string>>
|
|
12
|
+
export declare const ylfTokenNames: readonly string[]
|
|
13
|
+
export declare const ylfCompatTokenNames: readonly string[]
|
|
14
|
+
export declare const ylfComponentTokenNames: readonly string[]
|
|
15
|
+
|
|
16
|
+
export declare const ylfTokens: {
|
|
17
|
+
readonly palette: typeof ylfPalette
|
|
18
|
+
readonly brand: {
|
|
19
|
+
readonly light: Readonly<Record<string, string>>
|
|
20
|
+
readonly dark: Readonly<Record<string, string>>
|
|
21
|
+
}
|
|
22
|
+
readonly hero: Readonly<Record<string, string>>
|
|
23
|
+
readonly accents: Readonly<Record<Exclude<YlfAccentTone, 'blue'>, {
|
|
24
|
+
readonly light: Readonly<Record<'base' | 'hover' | 'soft' | 'text' | 'on', string>>
|
|
25
|
+
readonly dark: Readonly<Record<'soft' | 'text', string>>
|
|
26
|
+
}>>
|
|
27
|
+
readonly statusMap: Readonly<Record<YlfStatus, Exclude<YlfAccentTone, 'blue'>>>
|
|
28
|
+
readonly neutrals: {
|
|
29
|
+
readonly light: Readonly<Record<string, string>>
|
|
30
|
+
readonly dark: Readonly<Record<string, string>>
|
|
31
|
+
}
|
|
32
|
+
readonly glass: {
|
|
33
|
+
readonly light: Readonly<Record<string, string>>
|
|
34
|
+
readonly dark: Readonly<Record<string, string>>
|
|
35
|
+
}
|
|
36
|
+
readonly radius: Readonly<Record<string, string>>
|
|
37
|
+
readonly shadow: {
|
|
38
|
+
readonly light: Readonly<Record<string, string>>
|
|
39
|
+
readonly dark: Readonly<Record<string, string>>
|
|
40
|
+
}
|
|
41
|
+
readonly typography: {
|
|
42
|
+
readonly fontFamily: Readonly<Record<'display' | 'wordmark' | 'heading' | 'body' | 'ui' | 'mono', string>>
|
|
43
|
+
readonly fontSize: Readonly<Record<'2xs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | 'display', string>>
|
|
44
|
+
readonly lineHeight: Readonly<Record<'heading' | 'normal' | 'body', string>>
|
|
45
|
+
}
|
|
46
|
+
readonly space: Readonly<Record<string, string>>
|
|
47
|
+
readonly layout: Readonly<Record<'page' | 'reading', string>>
|
|
48
|
+
readonly zIndex: Readonly<Record<'base' | 'sticky' | 'overlay' | 'modal' | 'popover' | 'tooltip' | 'toast', string>>
|
|
49
|
+
readonly focusAndControls: Readonly<Record<string, string>>
|
|
50
|
+
readonly interactionAndMotion: Readonly<Record<string, string>>
|
|
51
|
+
readonly atmosphere: {
|
|
52
|
+
readonly light: Readonly<Record<string, string>>
|
|
53
|
+
readonly dark: Readonly<Record<string, string>>
|
|
54
|
+
}
|
|
55
|
+
readonly cloud: {
|
|
56
|
+
readonly light: Readonly<Record<string, string>>
|
|
57
|
+
readonly dark: Readonly<Record<string, string>>
|
|
58
|
+
}
|
|
59
|
+
readonly profiles: {
|
|
60
|
+
readonly admin: Readonly<Record<'base' | 'coarse' | 'light' | 'dark', Readonly<Record<string, string>>>>
|
|
61
|
+
readonly editor: Readonly<Record<'base' | 'coarse' | 'light' | 'dark', Readonly<Record<string, string>>>>
|
|
62
|
+
}
|
|
63
|
+
readonly light: Readonly<Record<string, string>>
|
|
64
|
+
readonly dark: Readonly<Record<string, string>>
|
|
65
|
+
readonly compat: {
|
|
66
|
+
readonly light: Readonly<Record<string, string>>
|
|
67
|
+
readonly dark: Readonly<Record<string, string>>
|
|
68
|
+
}
|
|
69
|
+
}
|
package/tokens/index.mjs
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildAllTokenNames,
|
|
3
|
+
buildBaseDarkTokens,
|
|
4
|
+
buildBaseLightTokens,
|
|
5
|
+
buildCompatDarkTokens,
|
|
6
|
+
buildCompatLightTokens,
|
|
7
|
+
ylfAccents,
|
|
8
|
+
ylfAccentTones,
|
|
9
|
+
ylfAtmosphere,
|
|
10
|
+
ylfBrand,
|
|
11
|
+
ylfCloud,
|
|
12
|
+
ylfCloudShapes,
|
|
13
|
+
ylfCloudSilhouettes,
|
|
14
|
+
ylfComponentTokenNames,
|
|
15
|
+
ylfFocusAndControls,
|
|
16
|
+
ylfGlass,
|
|
17
|
+
ylfHero,
|
|
18
|
+
ylfInteractionAndMotion,
|
|
19
|
+
ylfLayout,
|
|
20
|
+
ylfNeutrals,
|
|
21
|
+
ylfPalette,
|
|
22
|
+
ylfProfiles,
|
|
23
|
+
ylfProfileTokens,
|
|
24
|
+
ylfRadius,
|
|
25
|
+
ylfShadow,
|
|
26
|
+
ylfSpace,
|
|
27
|
+
ylfStatuses,
|
|
28
|
+
ylfStatusMap,
|
|
29
|
+
ylfTypography,
|
|
30
|
+
ylfZIndex,
|
|
31
|
+
} from './source.mjs'
|
|
32
|
+
|
|
33
|
+
const tokenNames = buildAllTokenNames()
|
|
34
|
+
|
|
35
|
+
export const ylfTokenNames = tokenNames.core
|
|
36
|
+
export const ylfCompatTokenNames = tokenNames.compat
|
|
37
|
+
|
|
38
|
+
export const ylfTokens = {
|
|
39
|
+
palette: ylfPalette,
|
|
40
|
+
brand: ylfBrand,
|
|
41
|
+
hero: ylfHero,
|
|
42
|
+
accents: ylfAccents,
|
|
43
|
+
statusMap: ylfStatusMap,
|
|
44
|
+
neutrals: ylfNeutrals,
|
|
45
|
+
glass: ylfGlass,
|
|
46
|
+
radius: ylfRadius,
|
|
47
|
+
shadow: ylfShadow,
|
|
48
|
+
typography: ylfTypography,
|
|
49
|
+
space: ylfSpace,
|
|
50
|
+
layout: ylfLayout,
|
|
51
|
+
zIndex: ylfZIndex,
|
|
52
|
+
focusAndControls: ylfFocusAndControls,
|
|
53
|
+
interactionAndMotion: ylfInteractionAndMotion,
|
|
54
|
+
atmosphere: ylfAtmosphere,
|
|
55
|
+
cloud: ylfCloud,
|
|
56
|
+
profiles: ylfProfileTokens,
|
|
57
|
+
light: buildBaseLightTokens(),
|
|
58
|
+
dark: buildBaseDarkTokens(),
|
|
59
|
+
compat: {
|
|
60
|
+
light: buildCompatLightTokens(),
|
|
61
|
+
dark: buildCompatDarkTokens(),
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
ylfAccentTones,
|
|
67
|
+
ylfCloudShapes,
|
|
68
|
+
ylfCloudSilhouettes,
|
|
69
|
+
ylfComponentTokenNames,
|
|
70
|
+
ylfPalette,
|
|
71
|
+
ylfProfiles,
|
|
72
|
+
ylfStatuses,
|
|
73
|
+
}
|