> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: CSS Properties Examples

## Article: CSS Properties Examples

## Article Link: https://dev.wix.com/docs/site-extensions/editor-react-components/editor-element/css/css-properties-examples.md

## Article Content:

# CSS Properties Examples
This article provides practical examples of using CSS properties and CSS custom properties in your component manifests.

## Basic CSS property 

A simple text component with standard CSS properties:

```typescript
editorElement: {
  selector: '.text',
  displayName: 'Text',
  cssProperties: {
    color: {
      displayName: 'Text Color',
      defaultValue: '#333333',
    },
    fontSize: {
      displayName: 'Text Size',
      defaultValue: '16px',
    },
    fontFamily: {
      displayName: 'Font',
      defaultValue: 'sans-serif',
    },
  },
}
```

## Basic CSS custom property

A button component using CSS custom properties (CSS variables):

```typescript
editorElement: {
  selector: '.button',
  displayName: 'Button',
  cssCustomProperties: {
    iconSize: {
      cssPropertyType: 'length',
      displayName: 'Icon Size',
      defaultValue: '24px',
    },
    iconColor: {
      cssPropertyType: 'color',
      displayName: 'Icon Color',
      defaultValue: '#ffffff',
    },
  },
}
```

Your component CSS must reference these variables:

```css
.button-icon {
  width: var(--iconSize, 24px);
  height: var(--iconSize, 24px);
  color: var(--iconColor, #ffffff);
}
```

## Nested elements

Both CSS properties and CSS custom properties can be defined on nested elements within your component.

```typescript
editorElement: {
  selector: '.card',
  displayName: 'Card',
  cssProperties: {
    backgroundColor: { defaultValue: '#fff' },
    boxShadow: {},
  },
  elements: {
    title: {
      elementType: 'inlineElement',
      inlineElement: {
        selector: '.card-title',
        displayName: 'Title',
        cssProperties: {
          font: {},
          color: { defaultValue: '#333' },
        },
      },
    },
  },
}
```

Separate design controls are displayed to users for each element when selected.

## Button component with states

A button showing CSS properties with state variations:

```typescript
editorElement: {
  selector: '.button',
  displayName: 'Button',
  cssProperties: {
    backgroundColor: {
      displayName: 'Background',
      defaultValue: '#007bff',
      statesDefaultValues: {
        disabled: '#cccccc',
      },
    },
    color: {
      displayName: 'Text Color',
      defaultValue: '#ffffff',
      statesDefaultValues: {
        disabled: '#666666',
      },
    },
    borderRadius: {
      displayName: 'Corner Rounding',
      defaultValue: '4px',
    },
  },
  states: {
    disabled: {
      displayName: 'Disabled State',
    },
  },
}
```

## Card component with multiple elements

A card component with nested text, image, a drop shadow filter, and a custom property for content spacing:

```typescript
editorElement: {
  selector: '.card',
  displayName: 'Card',
  cssProperties: {
    backgroundColor: { defaultValue: '#ffffff' },
    borderRadius: { defaultValue: '8px' },
    padding: { defaultValue: '16px' },
    filter: {
      filter: {
        filterFunctions: ['drop_shadow'],
      },
    },
  },
  cssCustomProperties: {
    contentGap: {
      cssPropertyType: 'gap',
      displayName: 'Content Spacing',
      defaultValue: '12px',
    },
  },
  elements: {
    image: {
      elementType: 'inlineElement',
      inlineElement: {
        selector: '.card-image',
        displayName: 'Image',
        cssProperties: {
          objectFit: { defaultValue: 'cover' },
          borderRadius: { defaultValue: '4px' },
        },
      },
    },
    title: {
      elementType: 'inlineElement',
      inlineElement: {
        selector: '.card-title',
        displayName: 'Title',
        cssProperties: {
          font: {},
          color: { defaultValue: '#333333' },
        },
      },
    },
    description: {
      elementType: 'inlineElement',
      inlineElement: {
        selector: '.card-description',
        displayName: 'Description',
        cssProperties: {
          font: {},
          color: { defaultValue: '#666666' },
        },
      },
    },
  },
}
```

Component CSS:

```css
.card {
  display: flex;
  flex-direction: column;
  gap: var(--contentGap, 12px);
}
```