@blockle/blocks 0.1.0 → 0.2.1
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/LICENSE +1 -1
- package/README.md +43 -12
- package/dist/index.cjs +119 -0
- package/dist/index.d.ts +1 -28
- package/dist/index.mjs +119 -0
- package/dist/reset.css.cjs +5 -0
- package/dist/reset.css.d.ts +390 -0
- package/dist/reset.css.mjs +4 -0
- package/dist/styles/lib/css/atoms/atomicProperties.cjs +70 -0
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +71 -0
- package/dist/styles/lib/css/atoms/breakpoints.cjs +11 -0
- package/dist/styles/lib/css/atoms/breakpoints.mjs +12 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +45 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +46 -0
- package/dist/styles/lib/css/reset/reset.css.cjs +37 -0
- package/dist/styles/lib/css/reset/reset.css.mjs +36 -0
- package/dist/styles/lib/css/theme/makeTheme.cjs +10 -0
- package/dist/styles/lib/css/theme/makeTheme.mjs +11 -0
- package/dist/styles/lib/css/theme/makeVanillaTheme.cjs +16 -0
- package/dist/styles/lib/css/theme/makeVanillaTheme.mjs +17 -0
- package/dist/styles/lib/css/theme/tokens.cjs +77 -0
- package/dist/styles/lib/css/theme/tokens.mjs +78 -0
- package/dist/styles/lib/css/theme/vars.css.cjs +9 -0
- package/dist/styles/lib/css/theme/vars.css.mjs +10 -0
- package/dist/styles/themes/momotaro/momotaroTheme.css.cjs +11 -0
- package/dist/styles/themes/momotaro/momotaroTheme.css.mjs +12 -0
- package/dist/styles/themes/momotaro/tokens.cjs +77 -0
- package/dist/styles/themes/momotaro/tokens.mjs +78 -0
- package/dist/themes/momotaro.cjs +4 -0
- package/dist/themes/momotaro.d.ts +1 -0
- package/dist/themes/momotaro.mjs +4 -0
- package/package.json +59 -79
- package/reset.css/index.d.ts +1 -0
- package/reset.css/package.json +5 -0
- package/themes/momotaro/index.d.ts +1 -0
- package/themes/momotaro/package.json +5 -0
- package/dist/Badge/Badge.d.ts +0 -7
- package/dist/Badge/Badge.spec.d.ts +0 -1
- package/dist/Badge/Badge.stories.d.ts +0 -1
- package/dist/Badge/index.d.ts +0 -1
- package/dist/Box/Box.d.ts +0 -10
- package/dist/Box/index.d.ts +0 -1
- package/dist/Button/Button.d.ts +0 -13
- package/dist/Button/Button.spec.d.ts +0 -1
- package/dist/Button/Button.stories.d.ts +0 -1
- package/dist/Button/index.d.ts +0 -1
- package/dist/Card/Card.d.ts +0 -11
- package/dist/Card/Card.spec.d.ts +0 -1
- package/dist/Card/Card.stories.d.ts +0 -1
- package/dist/Card/index.d.ts +0 -1
- package/dist/Dialog/Dialog.d.ts +0 -13
- package/dist/Dialog/index.d.ts +0 -1
- package/dist/Divider/Divider.d.ts +0 -4
- package/dist/Divider/index.d.ts +0 -1
- package/dist/Drawer/Drawer.d.ts +0 -10
- package/dist/Drawer/index.d.ts +0 -1
- package/dist/Dropdown/Dropdown.d.ts +0 -17
- package/dist/Dropdown/index.d.ts +0 -1
- package/dist/FlatButton/FlatButton.d.ts +0 -15
- package/dist/FlatButton/index.d.ts +0 -1
- package/dist/Grid/Grid.d.ts +0 -10
- package/dist/Grid/index.d.ts +0 -1
- package/dist/Icon/Icon.d.ts +0 -26
- package/dist/Icon/Icon.spec.d.ts +0 -1
- package/dist/Icon/index.d.ts +0 -1
- package/dist/IconButton/IconButton.d.ts +0 -12
- package/dist/IconButton/index.d.ts +0 -1
- package/dist/Inline/Inline.d.ts +0 -8
- package/dist/Inline/index.d.ts +0 -1
- package/dist/Link/Link.d.ts +0 -9
- package/dist/Link/index.d.ts +0 -1
- package/dist/Loader/Loader.d.ts +0 -4
- package/dist/Loader/index.d.ts +0 -1
- package/dist/OutlineButton/OutlineButton.d.ts +0 -12
- package/dist/OutlineButton/index.d.ts +0 -1
- package/dist/Panel/Panel.d.ts +0 -10
- package/dist/Panel/index.d.ts +0 -1
- package/dist/Paper/Paper.d.ts +0 -14
- package/dist/Paper/Paper.spec.d.ts +0 -1
- package/dist/Paper/index.d.ts +0 -1
- package/dist/RippleBox/RippleBox.d.ts +0 -8
- package/dist/RippleBox/createRipple.d.ts +0 -2
- package/dist/RippleBox/index.d.ts +0 -1
- package/dist/Stack/Stack.d.ts +0 -13
- package/dist/Stack/index.d.ts +0 -1
- package/dist/Tag/Tag.d.ts +0 -8
- package/dist/Tag/index.d.ts +0 -1
- package/dist/Text/Text.d.ts +0 -10
- package/dist/Text/Text.spec.d.ts +0 -1
- package/dist/Text/index.d.ts +0 -1
- package/dist/TextField/TextField.d.ts +0 -22
- package/dist/TextField/TextField.stories.d.ts +0 -1
- package/dist/TextField/index.d.ts +0 -1
- package/dist/blockle-blocks.esm.js +0 -823
- package/dist/blockle-blocks.js +0 -854
- package/dist/blocks.css +0 -2554
- package/dist/blocks.css.map +0 -1
- package/dist/cx.d.ts +0 -3
- package/dist/setupTests.d.ts +0 -1
- package/dist/useAnimationState/index.d.ts +0 -1
- package/dist/useAnimationState/useAnimationState.d.ts +0 -6
- package/dist/useFlip/animate.d.ts +0 -14
- package/dist/useFlip/index.d.ts +0 -1
- package/dist/useFlip/useFlip.d.ts +0 -8
- package/dist/useLayer/index.d.ts +0 -1
- package/dist/useLayer/useLayer.d.ts +0 -1
- package/dist/useStyles/blocks.d.ts +0 -34
- package/dist/useStyles/index.d.ts +0 -2
- package/dist/useStyles/useStyles.d.ts +0 -3
- package/dist/utils/animate/animateCss.d.ts +0 -11
- package/dist/utils/animate/index.d.ts +0 -1
- package/dist/utils/getEventPosition.d.ts +0 -6
- package/dist/utils/index.d.ts +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { defineProperties, createSprinkles } from "@vanilla-extract/sprinkles";
|
|
3
|
+
import { unresponsiveProperties, responsiveProperties } from "./atomicProperties.mjs";
|
|
4
|
+
import { breakpointQuery, breakpointNames } from "./breakpoints.mjs";
|
|
5
|
+
setFileScope("src/lib/css/atoms/sprinkles.css.ts?used", "blocks");
|
|
6
|
+
const unresponsiveAtomicProperties = defineProperties({
|
|
7
|
+
properties: unresponsiveProperties,
|
|
8
|
+
shorthands: {
|
|
9
|
+
inset: ["top", "bottom", "left", "right"]
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const responsiveAtomicProperties = defineProperties({
|
|
13
|
+
defaultCondition: "mobile",
|
|
14
|
+
conditions: {
|
|
15
|
+
mobile: {},
|
|
16
|
+
tablet: {
|
|
17
|
+
"@media": breakpointQuery("tablet")
|
|
18
|
+
},
|
|
19
|
+
desktop: {
|
|
20
|
+
"@media": breakpointQuery("desktop")
|
|
21
|
+
},
|
|
22
|
+
wide: {
|
|
23
|
+
"@media": breakpointQuery("wide")
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
responsiveArray: breakpointNames,
|
|
27
|
+
properties: responsiveProperties,
|
|
28
|
+
shorthands: {
|
|
29
|
+
margin: ["marginTop", "marginBottom", "marginLeft", "marginRight"],
|
|
30
|
+
marginX: ["marginLeft", "marginRight"],
|
|
31
|
+
marginY: ["marginTop", "marginBottom"],
|
|
32
|
+
padding: ["paddingTop", "paddingBottom", "paddingLeft", "paddingRight"],
|
|
33
|
+
paddingX: ["paddingLeft", "paddingRight"],
|
|
34
|
+
paddingY: ["paddingTop", "paddingBottom"],
|
|
35
|
+
placeItems: ["justifyContent", "alignItems"]
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const atoms = createSprinkles(
|
|
39
|
+
unresponsiveAtomicProperties,
|
|
40
|
+
responsiveAtomicProperties
|
|
41
|
+
// colorAtomicProperties,
|
|
42
|
+
);
|
|
43
|
+
endFileScope();
|
|
44
|
+
export {
|
|
45
|
+
atoms
|
|
46
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
fileScope.setFileScope("src/lib/css/reset/reset.css.ts?used", "blocks");
|
|
5
|
+
css.globalStyle(":where(*, *::before, *::after)", {
|
|
6
|
+
boxSizing: "inherit"
|
|
7
|
+
});
|
|
8
|
+
css.globalStyle(":where(html)", {
|
|
9
|
+
lineHeight: 1.5,
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
WebkitFontSmoothing: "antialiased"
|
|
12
|
+
});
|
|
13
|
+
css.globalStyle(":where(body)", {
|
|
14
|
+
margin: 0,
|
|
15
|
+
padding: 0,
|
|
16
|
+
fontFamily: "Calibri, sans-serif"
|
|
17
|
+
});
|
|
18
|
+
css.globalStyle(":where(button, input, optgroup, select, textarea)", {
|
|
19
|
+
fontFamily: "inherit",
|
|
20
|
+
fontSize: "100%",
|
|
21
|
+
lineHeight: "inherit",
|
|
22
|
+
margin: 0,
|
|
23
|
+
padding: 0
|
|
24
|
+
});
|
|
25
|
+
css.globalStyle(":where(p, ul, ol, pre, blockquote)", {
|
|
26
|
+
margin: 0,
|
|
27
|
+
padding: 0
|
|
28
|
+
});
|
|
29
|
+
css.globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
|
|
30
|
+
margin: 0,
|
|
31
|
+
padding: 0,
|
|
32
|
+
fontSize: "inherit"
|
|
33
|
+
});
|
|
34
|
+
css.globalStyle(":where(pre)", {
|
|
35
|
+
whiteSpace: "pre-wrap"
|
|
36
|
+
});
|
|
37
|
+
fileScope.endFileScope();
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { globalStyle } from "@vanilla-extract/css";
|
|
3
|
+
setFileScope("src/lib/css/reset/reset.css.ts?used", "blocks");
|
|
4
|
+
globalStyle(":where(*, *::before, *::after)", {
|
|
5
|
+
boxSizing: "inherit"
|
|
6
|
+
});
|
|
7
|
+
globalStyle(":where(html)", {
|
|
8
|
+
lineHeight: 1.5,
|
|
9
|
+
boxSizing: "border-box",
|
|
10
|
+
WebkitFontSmoothing: "antialiased"
|
|
11
|
+
});
|
|
12
|
+
globalStyle(":where(body)", {
|
|
13
|
+
margin: 0,
|
|
14
|
+
padding: 0,
|
|
15
|
+
fontFamily: "Calibri, sans-serif"
|
|
16
|
+
});
|
|
17
|
+
globalStyle(":where(button, input, optgroup, select, textarea)", {
|
|
18
|
+
fontFamily: "inherit",
|
|
19
|
+
fontSize: "100%",
|
|
20
|
+
lineHeight: "inherit",
|
|
21
|
+
margin: 0,
|
|
22
|
+
padding: 0
|
|
23
|
+
});
|
|
24
|
+
globalStyle(":where(p, ul, ol, pre, blockquote)", {
|
|
25
|
+
margin: 0,
|
|
26
|
+
padding: 0
|
|
27
|
+
});
|
|
28
|
+
globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
|
|
29
|
+
margin: 0,
|
|
30
|
+
padding: 0,
|
|
31
|
+
fontSize: "inherit"
|
|
32
|
+
});
|
|
33
|
+
globalStyle(":where(pre)", {
|
|
34
|
+
whiteSpace: "pre-wrap"
|
|
35
|
+
});
|
|
36
|
+
endFileScope();
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const css = require("@vanilla-extract/css");
|
|
3
|
+
const styles_lib_css_theme_vars_css_cjs = require("./vars.css.cjs");
|
|
4
|
+
const styles_lib_css_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
|
|
5
|
+
const makeTheme = (theme) => {
|
|
6
|
+
return {
|
|
7
|
+
vars: css.createTheme(styles_lib_css_theme_vars_css_cjs.vars, styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(theme.tokens))
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
exports.makeTheme = makeTheme;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createTheme } from "@vanilla-extract/css";
|
|
2
|
+
import { vars } from "./vars.css.mjs";
|
|
3
|
+
import { makeVanillaTheme } from "./makeVanillaTheme.mjs";
|
|
4
|
+
const makeTheme = (theme) => {
|
|
5
|
+
return {
|
|
6
|
+
vars: createTheme(vars, makeVanillaTheme(theme.tokens))
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
makeTheme
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const makeVanillaTheme = (tokens) => {
|
|
3
|
+
return {
|
|
4
|
+
space: tokens.space,
|
|
5
|
+
borderRadius: tokens.border.radius,
|
|
6
|
+
color: tokens.color,
|
|
7
|
+
borderWidth: tokens.border.width,
|
|
8
|
+
fontFamily: tokens.typography.fontFamily,
|
|
9
|
+
fontSize: tokens.typography.fontSize,
|
|
10
|
+
fontWeight: tokens.typography.fontWeight,
|
|
11
|
+
lineHeight: tokens.typography.lineHeight,
|
|
12
|
+
transition: tokens.transition,
|
|
13
|
+
shadow: tokens.shadow
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.makeVanillaTheme = makeVanillaTheme;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const makeVanillaTheme = (tokens) => {
|
|
2
|
+
return {
|
|
3
|
+
space: tokens.space,
|
|
4
|
+
borderRadius: tokens.border.radius,
|
|
5
|
+
color: tokens.color,
|
|
6
|
+
borderWidth: tokens.border.width,
|
|
7
|
+
fontFamily: tokens.typography.fontFamily,
|
|
8
|
+
fontSize: tokens.typography.fontSize,
|
|
9
|
+
fontWeight: tokens.typography.fontWeight,
|
|
10
|
+
lineHeight: tokens.typography.lineHeight,
|
|
11
|
+
transition: tokens.transition,
|
|
12
|
+
shadow: tokens.shadow
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
makeVanillaTheme
|
|
17
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const tokens = {
|
|
3
|
+
typography: {
|
|
4
|
+
fontFamily: {
|
|
5
|
+
standard: "Roboto, sans-serif",
|
|
6
|
+
secondary: "Roboto, sans-serif"
|
|
7
|
+
},
|
|
8
|
+
fontSize: {
|
|
9
|
+
xsmall: "0.75rem",
|
|
10
|
+
small: "0.875rem",
|
|
11
|
+
medium: "1rem",
|
|
12
|
+
large: "1.125rem",
|
|
13
|
+
xlarge: "1.25rem"
|
|
14
|
+
},
|
|
15
|
+
fontWeight: {
|
|
16
|
+
regular: 400,
|
|
17
|
+
medium: 500,
|
|
18
|
+
strong: 700
|
|
19
|
+
},
|
|
20
|
+
lineHeight: {
|
|
21
|
+
xsmall: "1rem",
|
|
22
|
+
small: "1.25rem",
|
|
23
|
+
medium: "1.5rem",
|
|
24
|
+
large: "1.75rem",
|
|
25
|
+
xlarge: "2rem"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
space: {
|
|
29
|
+
none: 0,
|
|
30
|
+
gutter: "1rem",
|
|
31
|
+
xsmall: "0.25rem",
|
|
32
|
+
small: "0.5rem",
|
|
33
|
+
medium: "1rem",
|
|
34
|
+
large: "1.5rem",
|
|
35
|
+
xlarge: "2rem"
|
|
36
|
+
},
|
|
37
|
+
transition: {
|
|
38
|
+
slow: "0.5s",
|
|
39
|
+
normal: "0.3s",
|
|
40
|
+
fast: "0.1s"
|
|
41
|
+
},
|
|
42
|
+
border: {
|
|
43
|
+
radius: {
|
|
44
|
+
small: "0.25rem",
|
|
45
|
+
medium: "0.5rem",
|
|
46
|
+
large: "1rem",
|
|
47
|
+
xlarge: "2rem"
|
|
48
|
+
},
|
|
49
|
+
width: {
|
|
50
|
+
small: "1px",
|
|
51
|
+
medium: "2px",
|
|
52
|
+
large: "4px"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
shadow: {
|
|
56
|
+
small: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
57
|
+
medium: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
|
|
58
|
+
large: "0 4px 8px 0 rgba(0, 0, 0, 0.05)"
|
|
59
|
+
},
|
|
60
|
+
color: {
|
|
61
|
+
black: "#000000",
|
|
62
|
+
white: "#ffffff",
|
|
63
|
+
body: "#ffffff",
|
|
64
|
+
primaryLight: "#f5f5f5",
|
|
65
|
+
primary: "#e0e0e0",
|
|
66
|
+
primaryDark: "#aeaeae",
|
|
67
|
+
secondaryLight: "#f5f5f5",
|
|
68
|
+
secondary: "#e0e0e0",
|
|
69
|
+
secondaryDark: "#aeaeae",
|
|
70
|
+
text: "#000000",
|
|
71
|
+
textLight: "#ffffff",
|
|
72
|
+
textDark: "#aeaeae",
|
|
73
|
+
caution: "#ff0000",
|
|
74
|
+
link: "#0000ff"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.tokens = tokens;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const tokens = {
|
|
2
|
+
typography: {
|
|
3
|
+
fontFamily: {
|
|
4
|
+
standard: "Roboto, sans-serif",
|
|
5
|
+
secondary: "Roboto, sans-serif"
|
|
6
|
+
},
|
|
7
|
+
fontSize: {
|
|
8
|
+
xsmall: "0.75rem",
|
|
9
|
+
small: "0.875rem",
|
|
10
|
+
medium: "1rem",
|
|
11
|
+
large: "1.125rem",
|
|
12
|
+
xlarge: "1.25rem"
|
|
13
|
+
},
|
|
14
|
+
fontWeight: {
|
|
15
|
+
regular: 400,
|
|
16
|
+
medium: 500,
|
|
17
|
+
strong: 700
|
|
18
|
+
},
|
|
19
|
+
lineHeight: {
|
|
20
|
+
xsmall: "1rem",
|
|
21
|
+
small: "1.25rem",
|
|
22
|
+
medium: "1.5rem",
|
|
23
|
+
large: "1.75rem",
|
|
24
|
+
xlarge: "2rem"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
space: {
|
|
28
|
+
none: 0,
|
|
29
|
+
gutter: "1rem",
|
|
30
|
+
xsmall: "0.25rem",
|
|
31
|
+
small: "0.5rem",
|
|
32
|
+
medium: "1rem",
|
|
33
|
+
large: "1.5rem",
|
|
34
|
+
xlarge: "2rem"
|
|
35
|
+
},
|
|
36
|
+
transition: {
|
|
37
|
+
slow: "0.5s",
|
|
38
|
+
normal: "0.3s",
|
|
39
|
+
fast: "0.1s"
|
|
40
|
+
},
|
|
41
|
+
border: {
|
|
42
|
+
radius: {
|
|
43
|
+
small: "0.25rem",
|
|
44
|
+
medium: "0.5rem",
|
|
45
|
+
large: "1rem",
|
|
46
|
+
xlarge: "2rem"
|
|
47
|
+
},
|
|
48
|
+
width: {
|
|
49
|
+
small: "1px",
|
|
50
|
+
medium: "2px",
|
|
51
|
+
large: "4px"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
shadow: {
|
|
55
|
+
small: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
56
|
+
medium: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
|
|
57
|
+
large: "0 4px 8px 0 rgba(0, 0, 0, 0.05)"
|
|
58
|
+
},
|
|
59
|
+
color: {
|
|
60
|
+
black: "#000000",
|
|
61
|
+
white: "#ffffff",
|
|
62
|
+
body: "#ffffff",
|
|
63
|
+
primaryLight: "#f5f5f5",
|
|
64
|
+
primary: "#e0e0e0",
|
|
65
|
+
primaryDark: "#aeaeae",
|
|
66
|
+
secondaryLight: "#f5f5f5",
|
|
67
|
+
secondary: "#e0e0e0",
|
|
68
|
+
secondaryDark: "#aeaeae",
|
|
69
|
+
text: "#000000",
|
|
70
|
+
textLight: "#ffffff",
|
|
71
|
+
textDark: "#aeaeae",
|
|
72
|
+
caution: "#ff0000",
|
|
73
|
+
link: "#0000ff"
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
tokens
|
|
78
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_css_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
|
|
5
|
+
const styles_lib_css_theme_tokens_cjs = require("./tokens.cjs");
|
|
6
|
+
fileScope.setFileScope("src/lib/css/theme/vars.css.ts?used", "blocks");
|
|
7
|
+
const vars = css.createThemeContract(styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(styles_lib_css_theme_tokens_cjs.tokens));
|
|
8
|
+
fileScope.endFileScope();
|
|
9
|
+
exports.vars = vars;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { createThemeContract } from "@vanilla-extract/css";
|
|
3
|
+
import { makeVanillaTheme } from "./makeVanillaTheme.mjs";
|
|
4
|
+
import { tokens } from "./tokens.mjs";
|
|
5
|
+
setFileScope("src/lib/css/theme/vars.css.ts?used", "blocks");
|
|
6
|
+
const vars = createThemeContract(makeVanillaTheme(tokens));
|
|
7
|
+
endFileScope();
|
|
8
|
+
export {
|
|
9
|
+
vars
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const styles_lib_css_theme_makeTheme_cjs = require("../../lib/css/theme/makeTheme.cjs");
|
|
4
|
+
const styles_themes_momotaro_tokens_cjs = require("./tokens.cjs");
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/momotaroTheme.css.ts?used", "blocks");
|
|
6
|
+
const theme = styles_lib_css_theme_makeTheme_cjs.makeTheme({
|
|
7
|
+
name: "momotaro",
|
|
8
|
+
tokens: styles_themes_momotaro_tokens_cjs.tokens
|
|
9
|
+
});
|
|
10
|
+
fileScope.endFileScope();
|
|
11
|
+
exports.theme = theme;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { makeTheme } from "../../lib/css/theme/makeTheme.mjs";
|
|
3
|
+
import { tokens } from "./tokens.mjs";
|
|
4
|
+
setFileScope("src/themes/momotaro/momotaroTheme.css.ts?used", "blocks");
|
|
5
|
+
const theme = makeTheme({
|
|
6
|
+
name: "momotaro",
|
|
7
|
+
tokens
|
|
8
|
+
});
|
|
9
|
+
endFileScope();
|
|
10
|
+
export {
|
|
11
|
+
theme
|
|
12
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const tokens = {
|
|
3
|
+
border: {
|
|
4
|
+
radius: {
|
|
5
|
+
small: "4px",
|
|
6
|
+
medium: "8px",
|
|
7
|
+
large: "16px",
|
|
8
|
+
xlarge: "32px"
|
|
9
|
+
},
|
|
10
|
+
width: {
|
|
11
|
+
small: "1px",
|
|
12
|
+
medium: "2px",
|
|
13
|
+
large: "4px"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
color: {
|
|
17
|
+
white: "#fff",
|
|
18
|
+
black: "#000",
|
|
19
|
+
body: "#F4F6FA",
|
|
20
|
+
primaryLight: "#E4DFFF",
|
|
21
|
+
primary: "#7265E3",
|
|
22
|
+
primaryDark: "#4D3CAB",
|
|
23
|
+
secondaryLight: "#7265E3",
|
|
24
|
+
secondary: "#7FE3F0",
|
|
25
|
+
secondaryDark: "#4D3CAB",
|
|
26
|
+
text: "#2D3142",
|
|
27
|
+
textLight: "#9C9EB9",
|
|
28
|
+
textDark: "#4C5980",
|
|
29
|
+
caution: "#FF9B90",
|
|
30
|
+
link: "#7265E3"
|
|
31
|
+
},
|
|
32
|
+
shadow: {
|
|
33
|
+
small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
|
|
34
|
+
medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
|
|
35
|
+
large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
|
|
36
|
+
},
|
|
37
|
+
space: {
|
|
38
|
+
none: "0px",
|
|
39
|
+
gutter: "28px",
|
|
40
|
+
xsmall: "4px",
|
|
41
|
+
small: "8px",
|
|
42
|
+
medium: "12px",
|
|
43
|
+
large: "16px",
|
|
44
|
+
xlarge: "24px"
|
|
45
|
+
},
|
|
46
|
+
transition: {
|
|
47
|
+
slow: "0.5s",
|
|
48
|
+
normal: "0.3s",
|
|
49
|
+
fast: "0.1s"
|
|
50
|
+
},
|
|
51
|
+
typography: {
|
|
52
|
+
fontFamily: {
|
|
53
|
+
standard: '"Rubik", sans-serif',
|
|
54
|
+
secondary: '"Rubik", sans-serif'
|
|
55
|
+
},
|
|
56
|
+
fontSize: {
|
|
57
|
+
xsmall: "12px",
|
|
58
|
+
small: "14px",
|
|
59
|
+
medium: "16px",
|
|
60
|
+
large: "20px",
|
|
61
|
+
xlarge: "24px"
|
|
62
|
+
},
|
|
63
|
+
fontWeight: {
|
|
64
|
+
regular: 400,
|
|
65
|
+
medium: 500,
|
|
66
|
+
strong: 700
|
|
67
|
+
},
|
|
68
|
+
lineHeight: {
|
|
69
|
+
xsmall: "1rem",
|
|
70
|
+
small: "1.25rem",
|
|
71
|
+
medium: "1.5rem",
|
|
72
|
+
large: "1.75rem",
|
|
73
|
+
xlarge: "2rem"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.tokens = tokens;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const tokens = {
|
|
2
|
+
border: {
|
|
3
|
+
radius: {
|
|
4
|
+
small: "4px",
|
|
5
|
+
medium: "8px",
|
|
6
|
+
large: "16px",
|
|
7
|
+
xlarge: "32px"
|
|
8
|
+
},
|
|
9
|
+
width: {
|
|
10
|
+
small: "1px",
|
|
11
|
+
medium: "2px",
|
|
12
|
+
large: "4px"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
color: {
|
|
16
|
+
white: "#fff",
|
|
17
|
+
black: "#000",
|
|
18
|
+
body: "#F4F6FA",
|
|
19
|
+
primaryLight: "#E4DFFF",
|
|
20
|
+
primary: "#7265E3",
|
|
21
|
+
primaryDark: "#4D3CAB",
|
|
22
|
+
secondaryLight: "#7265E3",
|
|
23
|
+
secondary: "#7FE3F0",
|
|
24
|
+
secondaryDark: "#4D3CAB",
|
|
25
|
+
text: "#2D3142",
|
|
26
|
+
textLight: "#9C9EB9",
|
|
27
|
+
textDark: "#4C5980",
|
|
28
|
+
caution: "#FF9B90",
|
|
29
|
+
link: "#7265E3"
|
|
30
|
+
},
|
|
31
|
+
shadow: {
|
|
32
|
+
small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
|
|
33
|
+
medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
|
|
34
|
+
large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
|
|
35
|
+
},
|
|
36
|
+
space: {
|
|
37
|
+
none: "0px",
|
|
38
|
+
gutter: "28px",
|
|
39
|
+
xsmall: "4px",
|
|
40
|
+
small: "8px",
|
|
41
|
+
medium: "12px",
|
|
42
|
+
large: "16px",
|
|
43
|
+
xlarge: "24px"
|
|
44
|
+
},
|
|
45
|
+
transition: {
|
|
46
|
+
slow: "0.5s",
|
|
47
|
+
normal: "0.3s",
|
|
48
|
+
fast: "0.1s"
|
|
49
|
+
},
|
|
50
|
+
typography: {
|
|
51
|
+
fontFamily: {
|
|
52
|
+
standard: '"Rubik", sans-serif',
|
|
53
|
+
secondary: '"Rubik", sans-serif'
|
|
54
|
+
},
|
|
55
|
+
fontSize: {
|
|
56
|
+
xsmall: "12px",
|
|
57
|
+
small: "14px",
|
|
58
|
+
medium: "16px",
|
|
59
|
+
large: "20px",
|
|
60
|
+
xlarge: "24px"
|
|
61
|
+
},
|
|
62
|
+
fontWeight: {
|
|
63
|
+
regular: 400,
|
|
64
|
+
medium: 500,
|
|
65
|
+
strong: 700
|
|
66
|
+
},
|
|
67
|
+
lineHeight: {
|
|
68
|
+
xsmall: "1rem",
|
|
69
|
+
small: "1.25rem",
|
|
70
|
+
medium: "1.5rem",
|
|
71
|
+
large: "1.75rem",
|
|
72
|
+
xlarge: "2rem"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
tokens
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { theme } from '../reset.css.js';
|