Skip to main content

Overview

Retrieves all local styles defined in the current Figma document, including color styles, text styles, effect styles, and grid styles.

Parameters

This tool takes no parameters.

Response

Returns a JSON object containing all styles in the document:
styles
array
Array of style objects from the Figma document

Usage Example

// Get all styles from the document
const result = await get_styles();

console.log(result);
// {
//   "styles": [
//     {
//       "id": "S:abc123",
//       "name": "Primary/Blue",
//       "type": "FILL",
//       "description": "Primary brand color"
//     },
//     {
//       "id": "S:def456",
//       "name": "Heading/Large",
//       "type": "TEXT",
//       "description": "Large heading style"
//     }
//   ]
// }

Common Use Cases

Style Audit

List all styles in a document to audit consistency and organization

Style Documentation

Generate documentation of available design tokens and styles

Design System Analysis

Analyze style usage patterns across your design system

Migration Planning

Identify styles that need to be migrated or updated

Notes

  • This tool only returns local styles defined in the current document
  • Remote/library styles from other files are not included
  • The response includes all style types: fill, text, effect, and grid styles

Build docs developers (and LLMs) love