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.

assets/sample_tokens.json

View on GitHub
{
  "meta": {
    "version": "1.0.0",
    "style": "modern",
    "generated": "auto-generated"
  },
  "colors": {
    "primary": {
      "50": "#f0f5fb",
      "100": "#e0ebf7",
      "200": "#c2d8ef",
      "300": "#9bc0e4",
      "400": "#71a5d9",
      "500": "#3f85cc",
      "600": "#2664a3",
      "700": "#13467a",
      "800": "#062b51",
      "900": "#001428",
      "DEFAULT": "#0066CC"
    },
    "secondary": {
      "50": "#fbf5f0",
      "100": "#f7ebe0",
      "200": "#efd8c2",
      "300": "#e4c09b",
      "400": "#d9a571",
      "500": "#cc853f",
      "600": "#a36426",
      "700": "#7a4613",
      "800": "#512b06",
      "900": "#281400",
      "DEFAULT": "#cc6600"
    },
    "neutral": {
      "50": "#F9FAFB",
      "100": "#F3F4F6",
      "200": "#E5E7EB",
      "300": "#D1D5DB",
      "400": "#9CA3AF",
      "500": "#6B7280",
      "600": "#4B5563",
      "700": "#374151",
      "800": "#1F2937",
      "900": "#111827",
      "DEFAULT": "#6B7280"
    },
    "semantic": {
      "success": {
        "base": "#10B981",
        "light": "#34D399",
        "dark": "#059669",
        "contrast": "#111827"
      },
      "warning": {
        "base": "#F59E0B",
        "light": "#FBBD24",
        "dark": "#D97706",
        "contrast": "#111827"
      },
      "error": {
        "base": "#EF4444",
        "light": "#F87171",
        "dark": "#DC2626",
        "contrast": "#111827"
      },
      "info": {
        "base": "#3B82F6",
        "light": "#60A5FA",
        "dark": "#2563EB",
        "contrast": "#111827"
      }
    },
    "surface": {
      "background": "#FFFFFF",
      "foreground": "#111827",
      "card": "#FFFFFF",
      "overlay": "rgba(0, 0, 0, 0.5)",
      "divider": "#E5E7EB"
    }
  },
  "typography": {
    "fontFamily": {
      "sans": "Inter, system-ui, -apple-system, sans-serif",
      "serif": "Merriweather, Georgia, serif",
      "mono": "Fira Code, Monaco, monospace"
    },
    "fontSize": {
      "xs": "10px",
      "sm": "13px",
      "base": "16px",
      "lg": "20px",
      "xl": "25px",
      "2xl": "31px",
      "3xl": "39px",
      "4xl": "49px",
      "5xl": "61px"
    },
    "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"
      }
    }
  },
  "spacing": {
    "0": "0px",
    "1": "4px",
    "2": "8px",
    "3": "12px",
    "4": "16px",
    "5": "20px",
    "6": "24px",
    "7": "32px",
    "8": "40px",
    "9": "48px",
    "10": "56px",
    "11": "64px",
    "12": "72px",
    "13": "80px",
    "14": "96px",
    "15": "112px",
    "16": "128px",
    "17": "160px",
    "18": "192px",
    "19": "256px",
    "20": "320px",
    "21": "384px",
    "22": "448px",
    "23": "512px",
    "xs": "4px",
    "sm": "8px",
    "md": "16px",
    "lg": "24px",
    "xl": "40px",
    "2xl": "72px",
    "3xl": "128px"
  },
  "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"
      }
    }
  },
  "borders": {
    "radius": {
      "none": "0",
      "sm": "4px",
      "DEFAULT": "8px",
      "md": "12px",
      "lg": "16px",
      "xl": "24px",
      "full": "9999px"
    },
    "width": {
      "none": "0",
      "thin": "1px",
      "DEFAULT": "1px",
      "medium": "2px",
      "thick": "4px"
    }
  },
  "shadows": {
    "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)"
  },
  "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