sve-ui 0.1.0 → 0.1.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/LICENCE +21 -0
- package/README.md +91 -2
- package/dist/components/Box/Box.svelte +14 -4
- package/dist/components/Box/Box.svelte.d.ts +36 -0
- package/dist/components/Center/Center.svelte +9 -4
- package/dist/components/Center/Center.svelte.d.ts +7 -2
- package/dist/components/Circle/Circle.svelte.d.ts +20 -15
- package/dist/components/CodeExample/CodeExample.svelte +43 -38
- package/dist/components/CodeExample/CodeExample.svelte.d.ts +11 -1
- package/dist/components/Flex/Flex.svelte.d.ts +4 -0
- package/dist/components/Grid/Grid.svelte +16 -0
- package/dist/components/Grid/Grid.svelte.d.ts +44 -0
- package/dist/components/GridItem/GridItem.svelte +22 -0
- package/dist/components/GridItem/GridItem.svelte.d.ts +29 -0
- package/dist/components/Loaders/DotPulse.svelte +62 -0
- package/dist/components/Loaders/DotPulse.svelte.d.ts +40 -0
- package/dist/components/Loaders/DotSpinner.svelte +121 -0
- package/dist/components/Loaders/DotSpinner.svelte.d.ts +40 -0
- package/dist/components/Loaders/DotWave.svelte +67 -0
- package/dist/components/Loaders/DotWave.svelte.d.ts +40 -0
- package/dist/components/Spacer/Spacer.svelte +3 -2
- package/dist/components/Spacer/Spacer.svelte.d.ts +7 -2
- package/dist/components/Square/Square.svelte.d.ts +20 -15
- package/dist/components/Text/Text.svelte +51 -0
- package/dist/components/Text/Text.svelte.d.ts +45 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +6 -0
- package/dist/theme/breakpoints.d.ts +8 -0
- package/dist/theme/breakpoints.js +8 -0
- package/dist/theme/index.d.ts +183 -0
- package/dist/theme/index.js +19 -0
- package/dist/theme/radius.d.ts +10 -0
- package/dist/theme/radius.js +10 -0
- package/dist/theme/sizes.d.ts +60 -0
- package/dist/theme/sizes.js +33 -0
- package/dist/theme/spacing.d.ts +35 -0
- package/dist/theme/spacing.js +35 -0
- package/dist/theme/typography.d.ts +63 -0
- package/dist/theme/typography.js +63 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { sizes } from './sizes';
|
|
2
|
+
import { radius } from './radius';
|
|
3
|
+
import { spacing } from './spacing';
|
|
4
|
+
import { typography } from './typography';
|
|
5
|
+
import { breakpoints } from './breakpoints';
|
|
6
|
+
export const theme = {
|
|
7
|
+
colors: {
|
|
8
|
+
primary: '#F56565',
|
|
9
|
+
secondary: '#ED8936',
|
|
10
|
+
tertiary: '#ECC94B',
|
|
11
|
+
dark: '#2D3748',
|
|
12
|
+
light: '#EDF2F7',
|
|
13
|
+
},
|
|
14
|
+
sizes,
|
|
15
|
+
spacing,
|
|
16
|
+
radius,
|
|
17
|
+
breakpoints,
|
|
18
|
+
...typography
|
|
19
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const sizes: {
|
|
2
|
+
container: {
|
|
3
|
+
base: string;
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
};
|
|
9
|
+
px: string;
|
|
10
|
+
0.5: string;
|
|
11
|
+
1: string;
|
|
12
|
+
1.5: string;
|
|
13
|
+
2: string;
|
|
14
|
+
2.5: string;
|
|
15
|
+
3: string;
|
|
16
|
+
3.5: string;
|
|
17
|
+
4: string;
|
|
18
|
+
5: string;
|
|
19
|
+
6: string;
|
|
20
|
+
7: string;
|
|
21
|
+
8: string;
|
|
22
|
+
9: string;
|
|
23
|
+
10: string;
|
|
24
|
+
12: string;
|
|
25
|
+
14: string;
|
|
26
|
+
16: string;
|
|
27
|
+
20: string;
|
|
28
|
+
24: string;
|
|
29
|
+
28: string;
|
|
30
|
+
32: string;
|
|
31
|
+
36: string;
|
|
32
|
+
40: string;
|
|
33
|
+
44: string;
|
|
34
|
+
48: string;
|
|
35
|
+
52: string;
|
|
36
|
+
56: string;
|
|
37
|
+
60: string;
|
|
38
|
+
64: string;
|
|
39
|
+
72: string;
|
|
40
|
+
80: string;
|
|
41
|
+
96: string;
|
|
42
|
+
max: string;
|
|
43
|
+
min: string;
|
|
44
|
+
full: string;
|
|
45
|
+
"3xs": string;
|
|
46
|
+
"2xs": string;
|
|
47
|
+
xs: string;
|
|
48
|
+
sm: string;
|
|
49
|
+
md: string;
|
|
50
|
+
lg: string;
|
|
51
|
+
xl: string;
|
|
52
|
+
"2xl": string;
|
|
53
|
+
"3xl": string;
|
|
54
|
+
"4xl": string;
|
|
55
|
+
"5xl": string;
|
|
56
|
+
"6xl": string;
|
|
57
|
+
"7xl": string;
|
|
58
|
+
"8xl": string;
|
|
59
|
+
prose: string;
|
|
60
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { spacing } from "./spacing";
|
|
2
|
+
const largeSizes = {
|
|
3
|
+
max: "max-content",
|
|
4
|
+
min: "min-content",
|
|
5
|
+
full: "100%",
|
|
6
|
+
"3xs": "14rem",
|
|
7
|
+
"2xs": "16rem",
|
|
8
|
+
xs: "20rem",
|
|
9
|
+
sm: "24rem",
|
|
10
|
+
md: "28rem",
|
|
11
|
+
lg: "32rem",
|
|
12
|
+
xl: "36rem",
|
|
13
|
+
"2xl": "42rem",
|
|
14
|
+
"3xl": "48rem",
|
|
15
|
+
"4xl": "56rem",
|
|
16
|
+
"5xl": "64rem",
|
|
17
|
+
"6xl": "72rem",
|
|
18
|
+
"7xl": "80rem",
|
|
19
|
+
"8xl": "90rem",
|
|
20
|
+
prose: "60ch",
|
|
21
|
+
};
|
|
22
|
+
const container = {
|
|
23
|
+
base: "100%",
|
|
24
|
+
sm: "640px",
|
|
25
|
+
md: "768px",
|
|
26
|
+
lg: "1024px",
|
|
27
|
+
xl: "1280px",
|
|
28
|
+
};
|
|
29
|
+
export const sizes = {
|
|
30
|
+
...largeSizes,
|
|
31
|
+
...spacing,
|
|
32
|
+
container,
|
|
33
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const spacing: {
|
|
2
|
+
px: string;
|
|
3
|
+
0.5: string;
|
|
4
|
+
1: string;
|
|
5
|
+
1.5: string;
|
|
6
|
+
2: string;
|
|
7
|
+
2.5: string;
|
|
8
|
+
3: string;
|
|
9
|
+
3.5: string;
|
|
10
|
+
4: string;
|
|
11
|
+
5: string;
|
|
12
|
+
6: string;
|
|
13
|
+
7: string;
|
|
14
|
+
8: string;
|
|
15
|
+
9: string;
|
|
16
|
+
10: string;
|
|
17
|
+
12: string;
|
|
18
|
+
14: string;
|
|
19
|
+
16: string;
|
|
20
|
+
20: string;
|
|
21
|
+
24: string;
|
|
22
|
+
28: string;
|
|
23
|
+
32: string;
|
|
24
|
+
36: string;
|
|
25
|
+
40: string;
|
|
26
|
+
44: string;
|
|
27
|
+
48: string;
|
|
28
|
+
52: string;
|
|
29
|
+
56: string;
|
|
30
|
+
60: string;
|
|
31
|
+
64: string;
|
|
32
|
+
72: string;
|
|
33
|
+
80: string;
|
|
34
|
+
96: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const spacing = {
|
|
2
|
+
px: "1px",
|
|
3
|
+
0.5: "0.125rem",
|
|
4
|
+
1: "0.25rem",
|
|
5
|
+
1.5: "0.375rem",
|
|
6
|
+
2: "0.5rem",
|
|
7
|
+
2.5: "0.625rem",
|
|
8
|
+
3: "0.75rem",
|
|
9
|
+
3.5: "0.875rem",
|
|
10
|
+
4: "1rem",
|
|
11
|
+
5: "1.25rem",
|
|
12
|
+
6: "1.5rem",
|
|
13
|
+
7: "1.75rem",
|
|
14
|
+
8: "2rem",
|
|
15
|
+
9: "2.25rem",
|
|
16
|
+
10: "2.5rem",
|
|
17
|
+
12: "3rem",
|
|
18
|
+
14: "3.5rem",
|
|
19
|
+
16: "4rem",
|
|
20
|
+
20: "5rem",
|
|
21
|
+
24: "6rem",
|
|
22
|
+
28: "7rem",
|
|
23
|
+
32: "8rem",
|
|
24
|
+
36: "9rem",
|
|
25
|
+
40: "10rem",
|
|
26
|
+
44: "11rem",
|
|
27
|
+
48: "12rem",
|
|
28
|
+
52: "13rem",
|
|
29
|
+
56: "14rem",
|
|
30
|
+
60: "15rem",
|
|
31
|
+
64: "16rem",
|
|
32
|
+
72: "18rem",
|
|
33
|
+
80: "20rem",
|
|
34
|
+
96: "24rem",
|
|
35
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const typography: {
|
|
2
|
+
fonts: {
|
|
3
|
+
heading: string;
|
|
4
|
+
body: string;
|
|
5
|
+
};
|
|
6
|
+
fontSizes: {
|
|
7
|
+
'6xs': string;
|
|
8
|
+
'5xs': string;
|
|
9
|
+
"4xs": string;
|
|
10
|
+
"3xs": string;
|
|
11
|
+
"2xs": string;
|
|
12
|
+
xs: string;
|
|
13
|
+
sm: string;
|
|
14
|
+
md: string;
|
|
15
|
+
lg: string;
|
|
16
|
+
xl: string;
|
|
17
|
+
'2xl': string;
|
|
18
|
+
'3xl': string;
|
|
19
|
+
'4xl': string;
|
|
20
|
+
'5xl': string;
|
|
21
|
+
'6xl': string;
|
|
22
|
+
'7xl': string;
|
|
23
|
+
'8xl': string;
|
|
24
|
+
'9xl': string;
|
|
25
|
+
'10xl': string;
|
|
26
|
+
};
|
|
27
|
+
fontWeights: {
|
|
28
|
+
hairline: number;
|
|
29
|
+
thin: number;
|
|
30
|
+
light: number;
|
|
31
|
+
normal: number;
|
|
32
|
+
medium: number;
|
|
33
|
+
semibold: number;
|
|
34
|
+
bold: number;
|
|
35
|
+
extrabold: number;
|
|
36
|
+
black: number;
|
|
37
|
+
};
|
|
38
|
+
letterSpacings: {
|
|
39
|
+
tighter: string;
|
|
40
|
+
tight: string;
|
|
41
|
+
normal: string;
|
|
42
|
+
wide: string;
|
|
43
|
+
wider: string;
|
|
44
|
+
widest: string;
|
|
45
|
+
};
|
|
46
|
+
lineHeights: {
|
|
47
|
+
normal: string;
|
|
48
|
+
none: number;
|
|
49
|
+
shorter: number;
|
|
50
|
+
short: number;
|
|
51
|
+
base: number;
|
|
52
|
+
tall: number;
|
|
53
|
+
taller: string;
|
|
54
|
+
"3": string;
|
|
55
|
+
"4": string;
|
|
56
|
+
"5": string;
|
|
57
|
+
"6": string;
|
|
58
|
+
"7": string;
|
|
59
|
+
"8": string;
|
|
60
|
+
"9": string;
|
|
61
|
+
"10": string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export const typography = {
|
|
2
|
+
fonts: {
|
|
3
|
+
heading: 'Inter, sans-serif',
|
|
4
|
+
body: 'system-ui, sans-serif',
|
|
5
|
+
},
|
|
6
|
+
fontSizes: {
|
|
7
|
+
'6xs': '0.10rem',
|
|
8
|
+
'5xs': '0.20rem',
|
|
9
|
+
"4xs": "0.30rem",
|
|
10
|
+
"3xs": "0.45rem",
|
|
11
|
+
"2xs": "0.625rem",
|
|
12
|
+
xs: '0.75rem',
|
|
13
|
+
sm: '0.875rem',
|
|
14
|
+
md: '1rem',
|
|
15
|
+
lg: '1.125rem',
|
|
16
|
+
xl: '1.25rem',
|
|
17
|
+
'2xl': '1.5rem',
|
|
18
|
+
'3xl': '1.875rem',
|
|
19
|
+
'4xl': '2.25rem',
|
|
20
|
+
'5xl': '3rem',
|
|
21
|
+
'6xl': '3.75rem',
|
|
22
|
+
'7xl': '4.5rem',
|
|
23
|
+
'8xl': '6rem',
|
|
24
|
+
'9xl': '8rem',
|
|
25
|
+
'10xl': '10rem',
|
|
26
|
+
},
|
|
27
|
+
fontWeights: {
|
|
28
|
+
hairline: 100,
|
|
29
|
+
thin: 200,
|
|
30
|
+
light: 300,
|
|
31
|
+
normal: 400,
|
|
32
|
+
medium: 500,
|
|
33
|
+
semibold: 600,
|
|
34
|
+
bold: 700,
|
|
35
|
+
extrabold: 800,
|
|
36
|
+
black: 900,
|
|
37
|
+
},
|
|
38
|
+
letterSpacings: {
|
|
39
|
+
tighter: "-0.05em",
|
|
40
|
+
tight: "-0.025em",
|
|
41
|
+
normal: "0",
|
|
42
|
+
wide: "0.025em",
|
|
43
|
+
wider: "0.05em",
|
|
44
|
+
widest: "0.1em",
|
|
45
|
+
},
|
|
46
|
+
lineHeights: {
|
|
47
|
+
normal: "normal",
|
|
48
|
+
none: 1,
|
|
49
|
+
shorter: 1.25,
|
|
50
|
+
short: 1.375,
|
|
51
|
+
base: 1.5,
|
|
52
|
+
tall: 1.625,
|
|
53
|
+
taller: "2",
|
|
54
|
+
"3": ".75rem",
|
|
55
|
+
"4": "1rem",
|
|
56
|
+
"5": "1.25rem",
|
|
57
|
+
"6": "1.5rem",
|
|
58
|
+
"7": "1.75rem",
|
|
59
|
+
"8": "2rem",
|
|
60
|
+
"9": "2.25rem",
|
|
61
|
+
"10": "2.5rem",
|
|
62
|
+
}
|
|
63
|
+
};
|