Codefluss Logo

Komponenten auflisten

Listet alle Komponenten-Styles des Design Systems auf: Button Styles und Card Styles.

Tool Name

list_components

Beschreibung

Das list_components Tool gibt alle im Design System definierten Komponenten-Stile zurĂŒck. Diese vorgefertigten Stile können direkt auf UI-Komponenten angewendet werden und gewĂ€hrleisten konsistentes Design.

Parameter

Dieses Tool benötigt keine Parameter.

Beispiel Request

{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "list_components", "arguments": {} }, "id": 1 }

Beispiel Response

{ "jsonrpc": "2.0", "result": { "content": [ { "type": "text", "text": "{\"buttonStyles\":[{\"id\":\"btn_001\",\"name\":\"primary\",\"backgroundColor\":\"var(--color-primary-500)\",\"textColor\":\"#FFFFFF\",\"borderRadius\":\"8px\",\"padding\":\"12px 24px\",\"fontWeight\":500},{\"id\":\"btn_002\",\"name\":\"secondary\",\"backgroundColor\":\"transparent\",\"textColor\":\"var(--color-primary-500)\",\"borderRadius\":\"8px\",\"padding\":\"12px 24px\",\"fontWeight\":500,\"border\":\"1px solid var(--color-primary-500)\"},{\"id\":\"btn_003\",\"name\":\"ghost\",\"backgroundColor\":\"transparent\",\"textColor\":\"var(--color-gray-700)\",\"borderRadius\":\"8px\",\"padding\":\"12px 24px\",\"fontWeight\":500}],\"cardStyles\":[{\"id\":\"card_001\",\"name\":\"elevated\",\"backgroundColor\":\"#FFFFFF\",\"borderRadius\":\"12px\",\"padding\":\"24px\",\"shadow\":\"var(--shadow-md)\"},{\"id\":\"card_002\",\"name\":\"outlined\",\"backgroundColor\":\"#FFFFFF\",\"borderRadius\":\"12px\",\"padding\":\"24px\",\"border\":\"1px solid var(--color-gray-200)\"},{\"id\":\"card_003\",\"name\":\"filled\",\"backgroundColor\":\"var(--color-gray-50)\",\"borderRadius\":\"12px\",\"padding\":\"24px\"}]}" } ] }, "id": 1 }

Response Format

Objekt mit zwei Arrays:

buttonStyles

FeldTypBeschreibung
idstringEindeutige ID
namestringStil-Name
backgroundColorstringHintergrundfarbe
textColorstringTextfarbe
borderRadiusstringEckenradius
paddingstringInnenabstand
fontWeightnumberSchriftgewicht
borderstringRahmen (optional)

cardStyles

FeldTypBeschreibung
idstringEindeutige ID
namestringStil-Name
backgroundColorstringHintergrundfarbe
borderRadiusstringEckenradius
paddingstringInnenabstand
shadowstringBox-Shadow (optional)
borderstringRahmen (optional)

Button Stile

NameBeschreibung
primaryHauptaktion, gefĂŒllter Hintergrund
secondarySekundÀre Aktion, umrandet
ghostTertiÀre Aktion, nur Text

Card Stile

NameBeschreibung
elevatedSchwebend mit Schatten
outlinedMit Rahmen, ohne Schatten
filledGefĂŒllter Hintergrund, ohne Rahmen

Verwandte Tools