AgentSkillsCN

nice-uiux

NICE 品牌设计系统——涵盖色彩、字体、间距、组件及视觉样式。由实施人员和质量保证专员共同使用,确保 UI 完全符合 nice.com 的品牌规范。

SKILL.md
--- frontmatter
name: nice-uiux
description: NICE brand design system — colors, typography, spacing, components, and visual patterns. Used by implementer and qa agents to ensure UI matches nice.com brand guidelines.
user_invocable: false

NICE Brand Design System

Reference: https://nice.com

Tailwind Theme (single source of truth)

ts
// tailwind.config.ts — extend section
{
  theme: {
    extend: {
      fontFamily: {
        sans: ['"Be Vietnam Pro"', 'sans-serif'],
      },
      colors: {
        nice: {
          black: '#22212b',       // Dark sections, footer, primary buttons
          primary: '#3694fd',     // CTA buttons, links, accents
          'dark-blue': '#2c79ee', // Hover states
          text: '#11181c',        // Body text (not pure black)
          'gray-text': '#6d6d72', // Secondary/muted text
          'gray-bg': '#f2f0eb',   // Alternating section backgrounds (warm gray)
          'gray-base': '#e8e6e0', // Borders, dividers
          pink: '#ff5b8a',        // Alerts (sparingly)
          'dark-red': '#e73b71',  // Error/destructive (sparingly)
          green: '#00e2a0',       // Success (sparingly)
        },
      },
      borderRadius: {
        card: '32px',
        'card-lg': '40px',
        pill: '38px',
      },
      fontSize: {
        hero: ['54px', { lineHeight: '1.2', letterSpacing: '-0.03em', fontWeight: '500' }],
        section: ['42px', { lineHeight: '1.2', fontWeight: '500' }],
        subsection: ['36px', { lineHeight: '1.2', fontWeight: '500' }],
        'body-lg': ['20px', { lineHeight: '1.35', fontWeight: '300' }],
      },
    },
  },
}

Font import:

code
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

Typography Rules

  • Headings: weight 500 (medium) — never bold 700
  • Body: weight 300 (light) for large text, 400 (regular) for standard
  • Buttons and nav links: weight 300 at 16px

Component Reference

ComponentTailwind
Sectionpy-16 md:py-24 px-4 max-w-7xl mx-auto
Dark sectionbg-nice-black text-white py-16 md:py-24
Hero gradientbg-gradient-to-br from-purple-800 via-indigo-700 to-blue-500 text-white
H1text-hero text-nice-black
H2text-section text-nice-black
Body largetext-body-lg text-nice-gray-text
Bodytext-base font-normal text-nice-text
Primary buttonbg-nice-black text-white rounded-full px-6 py-3 font-light
Blue buttonbg-nice-primary text-nice-black rounded-full px-5 py-2 font-light
Ghost buttonborder border-nice-black text-nice-black rounded-full px-6 py-3 font-light
Cardbg-white rounded-card p-8
Featured cardbg-white rounded-card-lg p-8
Footerbg-nice-black text-white

Visual Rules

  1. No shadows — completely flat design. No box-shadow, no drop-shadow.
  2. Pill shapes — all buttons, tags, badges use rounded-full or rounded-pill.
  3. Large card radius — cards use rounded-card (32px), not typical 8-12px.
  4. Warm grays only — never use Tailwind's default cool/blue gray-*. Use nice-gray-*.
  5. Dark text on blue buttonsnice-primary pairs with nice-black text, never white.
  6. Alternating sections — white and nice-gray-bg backgrounds alternate.
  7. Generous whitespace — sections breathe. Use py-16 to py-24, 24-32px grid gaps.
  8. Purple-blue gradient — hero sections only. Never on cards or buttons.