Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

585 B
Raw Blame
import type { ParsedStyleDecl } from "@webstudio-is/css-data";
import { styles } from "./__generated__/style-presets";

const _stylePresets = {
  ...styles,
  "w-embed": [
    ...styles["w-embed"],
    {
      selector: "w-embed",
      property: "display",
      value: {
        type: "keyword",
        value: "block",
      },
    },
  ],
};

type Key = keyof typeof _stylePresets;

type WfIcons = Record<`w-icon-${string}`, ParsedStyleDecl>;

export type WfStylePresets = Record<Key, Array<ParsedStyleDecl>> & WfIcons;
export const stylePresets = _stylePresets as WfStylePresets;