> 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: $w

## Namespace: custom-class-list

## Article: Introduction

## Article Link: https://dev.wix.com/docs/velo/velo-only-apis/$w/custom-class-list/introduction.md

## Article Content:

# Introduction
> This property is only available to Wix Studio users.

CustomClassList provides functionality for manipulating an element's custom CSS classes. For example, 
you can add a custom class to an element or replace an existing class with a new custom class.

Custom classes are those that you define for a site, not the predefined global classes
that are provided for each element.  

You define custom CSS classes in the `global.css` file which can be accessed in the Page Code section of the editor.

With CustomClassList, you can use code to:
+ [Add](https://dev.wix.com/docs/velo/velo-only-apis/$w/custom-class-list/add.md), [remove](https://dev.wix.com/docs/velo/velo-only-apis/$w/custom-class-list/remove.md), [replace](https://dev.wix.com/docs/velo/velo-only-apis/$w/custom-class-list/replace.md), or [toggle](https://dev.wix.com/docs/velo/velo-only-apis/$w/custom-class-list/toggle.md) custom classes.
+ [Retrieve](https://dev.wix.com/docs/velo/velo-only-apis/$w/custom-class-list/values.md) a list of an element's CSS classes.
+ Check if an element's class list [contains](https://dev.wix.com/docs/velo/velo-only-apis/$w/custom-class-list/contains.md) a specific custom CSS class.

> **Note:** CustomClassList only affects custom classes. If you use it for global classes, there is no effect on the element.  

## See also
+ [About CSS Styling](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/frontend-code/custom-css/about-css-styling.md)
+ [Styling Elements with CSS](https://dev.wix.com/docs/velo/velo-only-apis/$w/styling-elements-with-css.md)
+ [About CSS Styling](https://www.youtube.com/watch?v=xynm4m83CqM)