-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathbody.ws.ts
More file actions
31 lines (29 loc) · 759 Bytes
/
body.ws.ts
File metadata and controls
31 lines (29 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { BodyIcon } from "@webstudio-is/icons/svg";
import {
defaultStates,
type PresetStyle,
type WsComponentMeta,
} from "@webstudio-is/sdk";
import { body } from "@webstudio-is/sdk/normalize.css";
import { props } from "./__generated__/body.props";
import type { defaultTag } from "./body";
const presetStyle = {
body: [
...body,
{
property: "-webkit-font-smoothing",
value: { type: "keyword", value: "antialiased" },
},
{
property: "-moz-osx-font-smoothing",
value: { type: "keyword", value: "grayscale" },
},
],
} satisfies PresetStyle<typeof defaultTag>;
export const meta: WsComponentMeta = {
icon: BodyIcon,
states: defaultStates,
presetStyle,
initialProps: ["id", "class"],
props,
};