@mekari/pixel3-theme 0.2.1 → 0.2.2-dev.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/conditions.d.mts +4 -1
- package/dist/conditions.d.ts +4 -1
- package/dist/index.js +2889 -409
- package/dist/index.mjs +2888 -408
- package/dist/semanticTokens/colors.d.mts +892 -0
- package/dist/semanticTokens/colors.d.ts +892 -0
- package/dist/semanticTokens/index.d.mts +951 -0
- package/dist/semanticTokens/index.d.ts +951 -0
- package/dist/semanticTokens/spacing.d.mts +59 -0
- package/dist/semanticTokens/spacing.d.ts +59 -0
- package/dist/tokens/borders.d.mts +2 -2
- package/dist/tokens/borders.d.ts +2 -2
- package/dist/tokens/colors.d.mts +37 -34
- package/dist/tokens/colors.d.ts +37 -34
- package/dist/tokens/index.d.mts +59 -35
- package/dist/tokens/index.d.ts +59 -35
- package/dist/tokens/radii.d.mts +5 -0
- package/dist/tokens/radii.d.ts +5 -0
- package/dist/tokens/spacing.d.mts +16 -0
- package/dist/tokens/spacing.d.ts +16 -0
- package/dist/tokens-next/borders.d.mts +22 -0
- package/dist/tokens-next/borders.d.ts +22 -0
- package/dist/tokens-next/colors.d.mts +441 -0
- package/dist/tokens-next/colors.d.ts +441 -0
- package/dist/tokens-next/index.d.mts +772 -0
- package/dist/tokens-next/index.d.ts +772 -0
- package/dist/tokens-next/radii.d.mts +26 -0
- package/dist/tokens-next/radii.d.ts +26 -0
- package/dist/tokens-next/shadows.d.mts +28 -0
- package/dist/tokens-next/shadows.d.ts +28 -0
- package/dist/tokens-next/spacing.d.mts +51 -0
- package/dist/tokens-next/spacing.d.ts +51 -0
- package/package.json +1 -1
- package/src/conditions.ts +6 -4
- package/src/global-css.ts +4 -0
- package/src/index.ts +15 -2
- package/src/recipes/accordion.ts +12 -2
- package/src/recipes/autocomplete.ts +6 -1
- package/src/recipes/avatar.ts +68 -11
- package/src/recipes/badge.ts +174 -50
- package/src/recipes/banner.ts +36 -11
- package/src/recipes/broadcast.ts +78 -12
- package/src/recipes/button.ts +132 -9
- package/src/recipes/carousel.ts +5 -0
- package/src/recipes/chart.ts +10 -5
- package/src/recipes/checkbox.ts +68 -13
- package/src/recipes/color-picker.ts +74 -23
- package/src/recipes/date-picker.ts +165 -31
- package/src/recipes/divider.ts +5 -1
- package/src/recipes/dropzone.ts +80 -8
- package/src/recipes/form-control.ts +12 -3
- package/src/recipes/input-tag.ts +48 -8
- package/src/recipes/input.ts +75 -8
- package/src/recipes/modal.ts +30 -9
- package/src/recipes/popover.ts +28 -9
- package/src/recipes/progress.ts +9 -2
- package/src/recipes/radio.ts +52 -21
- package/src/recipes/rich-text-editor.ts +32 -6
- package/src/recipes/segmented-control.ts +47 -7
- package/src/recipes/select.ts +42 -0
- package/src/recipes/slider.ts +46 -6
- package/src/recipes/table.ts +26 -11
- package/src/recipes/tabs.ts +35 -3
- package/src/recipes/tag.ts +43 -13
- package/src/recipes/textarea.ts +0 -46
- package/src/recipes/timeline.ts +36 -8
- package/src/recipes/toast.ts +21 -4
- package/src/recipes/toggle.ts +59 -11
- package/src/recipes/tooltip.ts +5 -1
- package/src/recipes/upload.ts +51 -16
- package/src/semanticTokens/colors.ts +893 -0
- package/src/semanticTokens/index.ts +8 -0
- package/src/semanticTokens/spacing.ts +59 -0
- package/src/tokens/borders.ts +1 -1
- package/src/tokens/colors.ts +18 -23
- package/src/tokens/index.ts +2 -2
- package/src/tokens/radii.ts +5 -5
- package/src/tokens/spacing.ts +17 -17
- package/src/tokens-next/borders.ts +10 -0
- package/src/tokens-next/colors.ts +171 -0
- package/src/tokens-next/index.ts +32 -0
- package/src/tokens-next/radii.ts +10 -0
- package/src/tokens-next/shadows.ts +28 -0
- package/src/tokens-next/spacing.ts +16 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const radii: {
|
|
2
|
+
none: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
sm: {
|
|
6
|
+
value: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
value: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
value: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
xl: {
|
|
18
|
+
value: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
full: {
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { radii };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const radii: {
|
|
2
|
+
none: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
sm: {
|
|
6
|
+
value: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
value: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
value: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
xl: {
|
|
18
|
+
value: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
full: {
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { radii };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const shadows: {
|
|
2
|
+
xs: {
|
|
3
|
+
value: string[];
|
|
4
|
+
};
|
|
5
|
+
sm: {
|
|
6
|
+
value: string[];
|
|
7
|
+
};
|
|
8
|
+
md: {
|
|
9
|
+
value: string[];
|
|
10
|
+
};
|
|
11
|
+
lg: {
|
|
12
|
+
value: string[];
|
|
13
|
+
};
|
|
14
|
+
focus: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
outline: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
outer: {
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
none: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { shadows };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const shadows: {
|
|
2
|
+
xs: {
|
|
3
|
+
value: string[];
|
|
4
|
+
};
|
|
5
|
+
sm: {
|
|
6
|
+
value: string[];
|
|
7
|
+
};
|
|
8
|
+
md: {
|
|
9
|
+
value: string[];
|
|
10
|
+
};
|
|
11
|
+
lg: {
|
|
12
|
+
value: string[];
|
|
13
|
+
};
|
|
14
|
+
focus: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
outline: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
outer: {
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
none: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { shadows };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const spacing: {
|
|
2
|
+
0: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
0.5: {
|
|
6
|
+
value: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
1: {
|
|
10
|
+
value: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
1.5: {
|
|
14
|
+
value: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
2: {
|
|
18
|
+
value: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
3: {
|
|
22
|
+
value: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
4: {
|
|
26
|
+
value: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
5: {
|
|
30
|
+
value: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
6: {
|
|
34
|
+
value: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
8: {
|
|
38
|
+
value: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
10: {
|
|
42
|
+
value: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
20: {
|
|
46
|
+
value: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { spacing };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const spacing: {
|
|
2
|
+
0: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
0.5: {
|
|
6
|
+
value: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
1: {
|
|
10
|
+
value: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
1.5: {
|
|
14
|
+
value: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
2: {
|
|
18
|
+
value: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
3: {
|
|
22
|
+
value: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
4: {
|
|
26
|
+
value: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
5: {
|
|
30
|
+
value: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
6: {
|
|
34
|
+
value: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
8: {
|
|
38
|
+
value: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
10: {
|
|
42
|
+
value: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
20: {
|
|
46
|
+
value: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { spacing };
|
package/package.json
CHANGED
package/src/conditions.ts
CHANGED
|
@@ -2,9 +2,9 @@ export const conditions = {
|
|
|
2
2
|
extend: {
|
|
3
3
|
disabled: '&:is(:disabled, [disabled], [aria-disabled=true], [data-disabled])',
|
|
4
4
|
invalid: '&:is([aria-invalid=true], [data-invalid])',
|
|
5
|
+
active: '&:is(:active, [data-active], [data-active=true])',
|
|
5
6
|
checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])',
|
|
6
|
-
indeterminate:
|
|
7
|
-
'&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])',
|
|
7
|
+
indeterminate: '&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])',
|
|
8
8
|
closed: '&:is([data-state=closed])',
|
|
9
9
|
open: '&:is([open], [data-state=open])',
|
|
10
10
|
hidden: '&:is([hidden])',
|
|
@@ -12,12 +12,14 @@ export const conditions = {
|
|
|
12
12
|
loading: '& > [data-loading=true], &:is([data-loading], [aria-busy=true])',
|
|
13
13
|
hasIcon: '&[data-has-icon=true]',
|
|
14
14
|
hasLabel: '&[data-has-label=true]',
|
|
15
|
-
active: '&[data-active=true], [data-active]',
|
|
16
15
|
highlight: '&[data-highlight=true], [data-highlight]',
|
|
17
16
|
hasBorder: '&[data-has-border=true]',
|
|
18
17
|
hasBackground: '&[data-has-background=true]',
|
|
19
18
|
isFullWidth: '&[data-is-full-width=true]',
|
|
20
19
|
placementLeft: '&[data-placement=left]',
|
|
21
|
-
placementRight: '&[data-placement=right]'
|
|
20
|
+
placementRight: '&[data-placement=right]',
|
|
21
|
+
nextTheme: '[data-panda-theme=next] &',
|
|
22
|
+
light: '.light &',
|
|
23
|
+
dark: '.dark &',
|
|
22
24
|
}
|
|
23
25
|
}
|
package/src/global-css.ts
CHANGED
|
@@ -16,6 +16,10 @@ export const globalCss = defineGlobalStyles({
|
|
|
16
16
|
lineHeight: 'var(--mp-line-heights-lg)',
|
|
17
17
|
_dark: {
|
|
18
18
|
colorScheme: 'dark'
|
|
19
|
+
},
|
|
20
|
+
_nextTheme: {
|
|
21
|
+
background: 'var(--mp-colors-background-neutral)',
|
|
22
|
+
color: 'var(--mp-colors-text-default)',
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
'*, *::before, *::after': {
|
package/src/index.ts
CHANGED
|
@@ -7,23 +7,36 @@ import { keyframes } from './keyframes'
|
|
|
7
7
|
import { recipes, slotRecipes } from './recipes'
|
|
8
8
|
import { textStyles } from './text-styles'
|
|
9
9
|
import { tokens } from './tokens'
|
|
10
|
+
import { tokensNext } from './tokens-next'
|
|
11
|
+
import { semanticTokens } from './semanticTokens'
|
|
10
12
|
import { globalFontface } from './fonts'
|
|
11
13
|
|
|
12
14
|
const preset: Preset = definePreset({
|
|
13
15
|
name: '@mekari/pixel3-theme',
|
|
16
|
+
// Main Theme
|
|
14
17
|
theme: {
|
|
15
18
|
extend: {
|
|
19
|
+
tokens,
|
|
16
20
|
breakpoints,
|
|
17
21
|
keyframes,
|
|
18
22
|
textStyles,
|
|
19
|
-
tokens,
|
|
20
23
|
recipes,
|
|
21
24
|
slotRecipes
|
|
22
25
|
}
|
|
23
26
|
},
|
|
27
|
+
// Alternate Theme
|
|
28
|
+
themes: {
|
|
29
|
+
next: {
|
|
30
|
+
tokens: tokensNext,
|
|
31
|
+
semanticTokens
|
|
32
|
+
},
|
|
33
|
+
},
|
|
24
34
|
conditions,
|
|
25
|
-
globalFontface,
|
|
26
35
|
globalCss,
|
|
36
|
+
staticCss: {
|
|
37
|
+
themes: ['next']
|
|
38
|
+
},
|
|
39
|
+
globalFontface,
|
|
27
40
|
globalVars: {
|
|
28
41
|
'--font-inter': 'Inter, sans-serif'
|
|
29
42
|
}
|
package/src/recipes/accordion.ts
CHANGED
|
@@ -23,12 +23,22 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
23
23
|
fontWeight: 'semiBold',
|
|
24
24
|
fontSize: 'md',
|
|
25
25
|
color: 'dark',
|
|
26
|
-
_disabled: { opacity: '0.4', cursor: 'not-allowed' }
|
|
26
|
+
_disabled: { opacity: '0.4', cursor: 'not-allowed' },
|
|
27
|
+
_nextTheme: {
|
|
28
|
+
color: 'text.default'
|
|
29
|
+
}
|
|
27
30
|
},
|
|
28
31
|
item: {
|
|
29
32
|
borderBottomWidth: '1px',
|
|
30
33
|
borderColor: 'gray.100',
|
|
31
|
-
_last: {
|
|
34
|
+
_last: {
|
|
35
|
+
borderBottomWidth: '1px',
|
|
36
|
+
borderColor: 'gray.100',
|
|
37
|
+
_nextTheme: { borderColor: 'border.default' }
|
|
38
|
+
},
|
|
39
|
+
_nextTheme: {
|
|
40
|
+
borderColor: 'border.default'
|
|
41
|
+
}
|
|
32
42
|
},
|
|
33
43
|
panel: {
|
|
34
44
|
py: 3
|
|
@@ -28,7 +28,12 @@ const autocompleteSlotRecipe = defineSlotRecipe({
|
|
|
28
28
|
zIndex: '999',
|
|
29
29
|
py: 2,
|
|
30
30
|
height: '9.5',
|
|
31
|
-
_hover: { color: 'blue.500' }
|
|
31
|
+
_hover: { color: 'blue.500', _nextTheme: { color: 'text.link' } },
|
|
32
|
+
_nextTheme: {
|
|
33
|
+
background: 'background.stage',
|
|
34
|
+
borderColor: 'border.default',
|
|
35
|
+
color: 'text.link',
|
|
36
|
+
}
|
|
32
37
|
},
|
|
33
38
|
emptyText: {
|
|
34
39
|
px: 3,
|
package/src/recipes/avatar.ts
CHANGED
|
@@ -2,31 +2,76 @@ import { defineSlotRecipe } from '@pandacss/dev'
|
|
|
2
2
|
|
|
3
3
|
const variantColor = {
|
|
4
4
|
gray: {
|
|
5
|
-
root: {
|
|
5
|
+
root: {
|
|
6
|
+
backgroundColor: 'gray.50',
|
|
7
|
+
_nextTheme: {
|
|
8
|
+
backgroundColor: 'background.neutral.subtle'
|
|
9
|
+
}
|
|
10
|
+
}
|
|
6
11
|
},
|
|
7
12
|
sky: {
|
|
8
|
-
root: {
|
|
13
|
+
root: {
|
|
14
|
+
backgroundColor: 'sky.400',
|
|
15
|
+
_nextTheme: {
|
|
16
|
+
backgroundColor: 'chart.cat01'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
9
19
|
},
|
|
10
20
|
teal: {
|
|
11
|
-
root: {
|
|
21
|
+
root: {
|
|
22
|
+
backgroundColor: 'teal.400',
|
|
23
|
+
_nextTheme: {
|
|
24
|
+
backgroundColor: 'chart.cat02'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
12
27
|
},
|
|
13
28
|
violet: {
|
|
14
|
-
root: {
|
|
29
|
+
root: {
|
|
30
|
+
backgroundColor: 'violet.400',
|
|
31
|
+
_nextTheme: {
|
|
32
|
+
backgroundColor: 'chart.cat03'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
15
35
|
},
|
|
16
36
|
amber: {
|
|
17
|
-
root: {
|
|
37
|
+
root: {
|
|
38
|
+
backgroundColor: 'amber.400',
|
|
39
|
+
_nextTheme: {
|
|
40
|
+
backgroundColor: 'chart.cat04'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
18
43
|
},
|
|
19
44
|
rose: {
|
|
20
|
-
root: {
|
|
45
|
+
root: {
|
|
46
|
+
backgroundColor: 'rose.400',
|
|
47
|
+
_nextTheme: {
|
|
48
|
+
backgroundColor: 'chart.cat06'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
21
51
|
},
|
|
22
52
|
stone: {
|
|
23
|
-
root: {
|
|
53
|
+
root: {
|
|
54
|
+
backgroundColor: 'stone.400',
|
|
55
|
+
_nextTheme: {
|
|
56
|
+
backgroundColor: 'chart.cat05'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
24
59
|
},
|
|
25
60
|
lime: {
|
|
26
|
-
root: {
|
|
61
|
+
root: {
|
|
62
|
+
backgroundColor: 'lime.400',
|
|
63
|
+
_nextTheme: {
|
|
64
|
+
backgroundColor: 'chart.cat07'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
27
67
|
},
|
|
28
68
|
pink: {
|
|
29
|
-
root: {
|
|
69
|
+
root: {
|
|
70
|
+
backgroundColor: 'pink.400',
|
|
71
|
+
_nextTheme: {
|
|
72
|
+
backgroundColor: 'chart.cat08'
|
|
73
|
+
}
|
|
74
|
+
}
|
|
30
75
|
}
|
|
31
76
|
}
|
|
32
77
|
|
|
@@ -52,6 +97,9 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
52
97
|
cursor: 'var(--mp-avatar--cursor)',
|
|
53
98
|
_hasBorder: {
|
|
54
99
|
borderWidth: '0.125rem'
|
|
100
|
+
},
|
|
101
|
+
_nextTheme: {
|
|
102
|
+
color: 'text.inverse'
|
|
55
103
|
}
|
|
56
104
|
},
|
|
57
105
|
fallback: {
|
|
@@ -126,7 +174,12 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
126
174
|
{
|
|
127
175
|
variantColor: 'gray',
|
|
128
176
|
css: {
|
|
129
|
-
root: {
|
|
177
|
+
root: {
|
|
178
|
+
color: 'gray.600',
|
|
179
|
+
_nextTheme: {
|
|
180
|
+
color: 'text.secondary'
|
|
181
|
+
}
|
|
182
|
+
}
|
|
130
183
|
}
|
|
131
184
|
}
|
|
132
185
|
],
|
|
@@ -156,7 +209,11 @@ const avatarGroupSlotRecipe = defineSlotRecipe({
|
|
|
156
209
|
justifyContent: 'center',
|
|
157
210
|
borderRadius: 'full',
|
|
158
211
|
userSelect: 'none',
|
|
159
|
-
cursor: 'var(--mp-avatar-group--cursor)'
|
|
212
|
+
cursor: 'var(--mp-avatar-group--cursor)',
|
|
213
|
+
_nextTheme: {
|
|
214
|
+
color: 'text.inverse',
|
|
215
|
+
backgroundColor: 'background.brand.bold',
|
|
216
|
+
}
|
|
160
217
|
}
|
|
161
218
|
},
|
|
162
219
|
variants: {
|