Skip to content

borghei/Claude-Skills / product-team/ui-design-system

ui-design-system

Verified

Generates a design-token system from a brand colour, checks its contrast, and specs component variants. Use when turning a chosen colour into tokens, exporting CSS, SCSS or JSON, or extending a token set for components.

references/token-presets.json

View on GitHub
{
  "_about": "Bundled presets for design_token_generator.py. Colour scales for primary and secondary are computed from the brand colour; everything here is fixed. Edit values here, not in the script. A style missing from shadows falls back to modern. light_tint_mix is the share of white mixed into step 500 for steps 50-400.",
  "meta": {
    "version": "1.0.0",
    "generated": "auto-generated"
  },
  "base_unit": 8,
  "type_scale_ratio": 1.25,
  "base_font_size": 16,
  "light_tint_mix": {
    "50": 0.92,
    "100": 0.84,
    "200": 0.68,
    "300": 0.48,
    "400": 0.26
  },
  "semantic": {
    "success": {
      "base": "#10B981",
      "light": "#34D399",
      "dark": "#059669"
    },
    "warning": {
      "base": "#F59E0B",
      "light": "#FBBD24",
      "dark": "#D97706"
    },
    "error": {
      "base": "#EF4444",
      "light": "#F87171",
      "dark": "#DC2626"
    },
    "info": {
      "base": "#3B82F6",
      "light": "#60A5FA",
      "dark": "#2563EB"
    }
  },
  "contrast_candidates": [
    "#FFFFFF",
    "#111827",
    "#000000"
  ],
  "surface": {
    "background": "#FFFFFF",
    "foreground": "#111827",
    "card": "#FFFFFF",
    "overlay": "rgba(0, 0, 0, 0.5)",
    "divider": "#E5E7EB"
  },
  "neutral": {
    "50": "#F9FAFB",
    "100": "#F3F4F6",
    "200": "#E5E7EB",
    "300": "#D1D5DB",
    "400": "#9CA3AF",
    "500": "#6B7280",
    "600": "#4B5563",
    "700": "#374151",
    "800": "#1F2937",
    "900": "#111827",
    "DEFAULT": "#6B7280"
  },
  "font_families": {
    "modern": {
      "sans": "Inter, system-ui, -apple-system, sans-serif",
      "serif": "Merriweather, Georgia, serif",
      "mono": "Fira Code, Monaco, monospace"
    },
    "classic": {
      "sans": "Helvetica, Arial, sans-serif",
      "serif": "Times New Roman, Times, serif",
      "mono": "Courier New, monospace"
    },
    "playful": {
      "sans": "Poppins, Roboto, sans-serif",
      "serif": "Playfair Display, Georgia, serif",
      "mono": "Source Code Pro, monospace"
    }
  },
  "fontWeight": {
    "thin": 100,
    "light": 300,
    "normal": 400,
    "medium": 500,
    "semibold": 600,
    "bold": 700,
    "extrabold": 800,
    "black": 900
  },
  "lineHeight": {
    "none": 1,
    "tight": 1.25,
    "snug": 1.375,
    "normal": 1.5,
    "relaxed": 1.625,
    "loose": 2
  },
  "letterSpacing": {
    "tighter": "-0.05em",
    "tight": "-0.025em",
    "normal": "0",
    "wide": "0.025em",
    "wider": "0.05em",
    "widest": "0.1em"
  },
  "textStyles": {
    "h1": {
      "fontSize": "48px",
      "fontWeight": 700,
      "lineHeight": 1.2,
      "letterSpacing": "-0.02em"
    },
    "h2": {
      "fontSize": "36px",
      "fontWeight": 700,
      "lineHeight": 1.3,
      "letterSpacing": "-0.01em"
    },
    "h3": {
      "fontSize": "28px",
      "fontWeight": 600,
      "lineHeight": 1.4,
      "letterSpacing": "0"
    },
    "h4": {
      "fontSize": "24px",
      "fontWeight": 600,
      "lineHeight": 1.4,
      "letterSpacing": "0"
    },
    "h5": {
      "fontSize": "20px",
      "fontWeight": 600,
      "lineHeight": 1.5,
      "letterSpacing": "0"
    },
    "h6": {
      "fontSize": "16px",
      "fontWeight": 600,
      "lineHeight": 1.5,
      "letterSpacing": "0.01em"
    },
    "body": {
      "fontSize": "16px",
      "fontWeight": 400,
      "lineHeight": 1.5,
      "letterSpacing": "0"
    },
    "small": {
      "fontSize": "14px",
      "fontWeight": 400,
      "lineHeight": 1.5,
      "letterSpacing": "0"
    },
    "caption": {
      "fontSize": "12px",
      "fontWeight": 400,
      "lineHeight": 1.5,
      "letterSpacing": "0.01em"
    }
  },
  "type_scale_steps": [
    "xs",
    "sm",
    "base",
    "lg",
    "xl",
    "2xl",
    "3xl",
    "4xl",
    "5xl"
  ],
  "spacing_multipliers": [
    0,
    0.5,
    1,
    1.5,
    2,
    2.5,
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    12,
    14,
    16,
    20,
    24,
    32,
    40,
    48,
    56,
    64
  ],
  "spacing_semantic": {
    "xs": "1",
    "sm": "2",
    "md": "4",
    "lg": "6",
    "xl": "8",
    "2xl": "12",
    "3xl": "16"
  },
  "sizing": {
    "container": {
      "sm": "640px",
      "md": "768px",
      "lg": "1024px",
      "xl": "1280px",
      "2xl": "1536px"
    },
    "components": {
      "button": {
        "sm": {
          "height": "32px",
          "paddingX": "12px"
        },
        "md": {
          "height": "40px",
          "paddingX": "16px"
        },
        "lg": {
          "height": "48px",
          "paddingX": "20px"
        }
      },
      "input": {
        "sm": {
          "height": "32px",
          "paddingX": "12px"
        },
        "md": {
          "height": "40px",
          "paddingX": "16px"
        },
        "lg": {
          "height": "48px",
          "paddingX": "20px"
        }
      },
      "icon": {
        "sm": "16px",
        "md": "20px",
        "lg": "24px",
        "xl": "32px"
      }
    }
  },
  "radius": {
    "modern": {
      "none": "0",
      "sm": "4px",
      "DEFAULT": "8px",
      "md": "12px",
      "lg": "16px",
      "xl": "24px",
      "full": "9999px"
    },
    "classic": {
      "none": "0",
      "sm": "2px",
      "DEFAULT": "4px",
      "md": "6px",
      "lg": "8px",
      "xl": "12px",
      "full": "9999px"
    },
    "playful": {
      "none": "0",
      "sm": "8px",
      "DEFAULT": "16px",
      "md": "20px",
      "lg": "24px",
      "xl": "32px",
      "full": "9999px"
    }
  },
  "border_width": {
    "none": "0",
    "thin": "1px",
    "DEFAULT": "1px",
    "medium": "2px",
    "thick": "4px"
  },
  "shadows": {
    "modern": {
      "none": "none",
      "sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
      "DEFAULT": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
      "md": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
      "lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
      "xl": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
      "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
      "inner": "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"
    },
    "classic": {
      "none": "none",
      "sm": "0 1px 2px rgba(0, 0, 0, 0.1)",
      "DEFAULT": "0 2px 4px rgba(0, 0, 0, 0.1)",
      "md": "0 4px 8px rgba(0, 0, 0, 0.1)",
      "lg": "0 8px 16px rgba(0, 0, 0, 0.1)",
      "xl": "0 16px 32px rgba(0, 0, 0, 0.1)"
    }
  },
  "animation": {
    "duration": {
      "instant": "0ms",
      "fast": "150ms",
      "DEFAULT": "250ms",
      "slow": "350ms",
      "slower": "500ms"
    },
    "easing": {
      "linear": "linear",
      "ease": "ease",
      "easeIn": "ease-in",
      "easeOut": "ease-out",
      "easeInOut": "ease-in-out",
      "spring": "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
    },
    "keyframes": {
      "fadeIn": {
        "from": {
          "opacity": 0
        },
        "to": {
          "opacity": 1
        }
      },
      "slideUp": {
        "from": {
          "transform": "translateY(10px)",
          "opacity": 0
        },
        "to": {
          "transform": "translateY(0)",
          "opacity": 1
        }
      },
      "scale": {
        "from": {
          "transform": "scale(0.95)"
        },
        "to": {
          "transform": "scale(1)"
        }
      }
    }
  },
  "breakpoints": {
    "xs": "480px",
    "sm": "640px",
    "md": "768px",
    "lg": "1024px",
    "xl": "1280px",
    "2xl": "1536px"
  },
  "z-index": {
    "hide": -1,
    "base": 0,
    "dropdown": 1000,
    "sticky": 1020,
    "overlay": 1030,
    "modal": 1040,
    "popover": 1050,
    "tooltip": 1060,
    "notification": 1070
  }
}
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall