tailwind.config.ts 2.39 KB
import type { Config } from 'tailwindcss';

const config: Config = {
  content: ['./src/**/*.{js,ts,jsx,tsx}', './index.html'],
  theme: {
    extend: {
      screens: {
        'mobile': '320px',
        'tablet': '768px',
        'pc': '1024px',
      },
      colors: {
        'primary': '#003da6',
        'primary-container': '#0052d9',
        'on-primary': '#ffffff',
        'on-primary-container': '#cbd6ff',
        'surface': '#f9f9ff',
        'surface-container': '#ebedf9',
        'surface-container-low': '#f1f3ff',
        'surface-container-lowest': '#ffffff',
        'surface-container-high': '#e5e8f3',
        'surface-container-highest': '#dfe2ed',
        'surface-bright': '#f9f9ff',
        'surface-dim': '#d7dae5',
        'on-surface': '#181c23',
        'on-surface-variant': '#434654',
        'outline': '#737686',
        'outline-variant': '#c3c6d7',
        'secondary': '#585e70',
        'secondary-container': '#dce2f8',
        'on-secondary': '#ffffff',
        'on-secondary-container': '#5e6476',
        'tertiary': '#004d62',
        'tertiary-container': '#006681',
        'error': '#ba1a1a',
        'error-container': '#ffdad6',
        'on-error': '#ffffff',
        'on-error-container': '#93000a',
        'background': '#f9f9ff',
        'inverse-surface': '#2c3039',
        'inverse-on-surface': '#eef0fc',
        'inverse-primary': '#b4c5ff',
      },
      spacing: {
        'stack-md': '24px',
        'stack-lg': '48px',
        'stack-sm': '12px',
        'margin-mobile': '20px',
        'margin-desktop': '80px',
        'gutter': '24px',
        'container-max': '1280px',
      },
      fontSize: {
        'display-lg': ['56px', { lineHeight: '1.2', letterSpacing: '-0.02em', fontWeight: '700' }],
        'display-lg-mobile': ['40px', { lineHeight: '1.3', fontWeight: '700' }],
        'headline-md': ['32px', { lineHeight: '1.4', fontWeight: '600' }],
        'headline-sm': ['24px', { lineHeight: '1.4', fontWeight: '600' }],
        'body-lg': ['18px', { lineHeight: '1.6', fontWeight: '400' }],
        'body-md': ['16px', { lineHeight: '1.6', fontWeight: '400' }],
        'label-md': ['14px', { lineHeight: '1.4', fontWeight: '500' }],
        'label-sm': ['12px', { lineHeight: '1.2', fontWeight: '500' }],
      },
      borderRadius: {
        'xl': '0.75rem',
        '2xl': '1rem',
        '3xl': '1.5rem',
      },
    },
  },
  plugins: [],
};

export default config;